client.admins.identify() -> Intercom.AdminWithAppclient.admins.identify() -> Intercom.AdminWithApp | undefinedclient.admins.away({ ...params }) -> Intercom.Adminclient.admins.away({ ...params }) -> Intercom.Admin | undefinedclient.admins.find({ ...params }) -> Intercom.Adminclient.admins.find({ ...params }) -> Intercom.Admin | undefinedclient.articles.list({ ...params }) -> core.Pageclient.aiContent.listContentImportSources() -> Intercom.ContentImportSourcesListclient.articles.create({ ...params }) -> Intercom.Articleclient.aiContent.createContentImportSource({ ...params }) -> Intercom.ContentImportSourceclient.articles.find({ ...params }) -> Intercom.Articleclient.aiContent.getContentImportSource({ ...params }) -> Intercom.ContentImportSourceclient.articles.update({ ...params }) -> Intercom.Articleclient.aiContent.updateContentImportSource({ ...params }) -> Intercom.ContentImportSourceNew gifts in store for the jolly season
", +await client.aiContent.updateContentImportSource({ + source_id: "source_id", + sync_behavior: "api", + url: "https://www.example.com" }); -``` +```client.articles.delete({ ...params }) -> Intercom.DeletedArticleObjectclient.aiContent.deleteContentImportSource({ ...params }) -> voidclient.articles.search({ ...params }) -> Intercom.SearchArticlesResponseclient.aiContent.listExternalPages() -> Intercom.ExternalPagesListclient.helpCenters.find({ ...params }) -> Intercom.HelpCenterclient.aiContent.createExternalPage({ ...params }) -> Intercom.ExternalPageclient.helpCenters.list({ ...params }) -> core.Pageclient.aiContent.getExternalPage({ ...params }) -> Intercom.ExternalPageclient.companies.retrieve({ ...params }) -> Intercom.CompanyListclient.aiContent.updateExternalPage({ ...params }) -> Intercom.ExternalPageclient.companies.createOrUpdate({ ...params }) -> Intercom.Companyclient.aiContent.deleteExternalPage({ ...params }) -> Intercom.ExternalPageclient.companies.find({ ...params }) -> Intercom.Companyclient.articles.list({ ...params }) -> core.Pageclient.companies.update({ ...params }) -> Intercom.Companyclient.articles.create({ ...params }) -> Intercom.Articleclient.companies.delete({ ...params }) -> Intercom.DeletedCompanyObjectclient.articles.find({ ...params }) -> Intercom.Articleclient.companies.listAttachedContacts({ ...params }) -> Intercom.CompanyAttachedContactsclient.articles.update({ ...params }) -> Intercom.ArticleNew gifts in store for the jolly season
" }); -``` +```client.companies.listAttachedSegments({ ...params }) -> Intercom.CompanyAttachedSegmentsclient.articles.delete({ ...params }) -> Intercom.DeletedArticleObjectclient.companies.list({ ...params }) -> core.Pageclient.articles.search({ ...params }) -> Intercom.ArticleSearchResponseclient.companies.scroll({ ...params }) -> core.Pageclient.awayStatusReasons.listAwayStatusReasons() -> Intercom.AwayStatusReason[]client.companies.attachContact({ ...params }) -> Intercom.Companyclient.export.enqueueANewReportingDataExportJob({ ...params }) -> Intercom.PostExportReportingDataEnqueueResponseclient.companies.detachContact({ ...params }) -> Intercom.Companyclient.export.listAvailableDatasetsAndAttributes() -> Intercom.GetExportReportingDataGetDatasetsResponseclient.dataExport.exportReportingData({ ...params }) -> Intercom.DataExportExportReportingDataResponseclient.contacts.listAttachedCompanies({ ...params }) -> core.Pageclient.dataExport.downloadReportingDataExport({ ...params }) -> voidclient.contacts.listAttachedSegments({ ...params }) -> Intercom.ContactSegmentsclient.dataExport.create({ ...params }) -> Intercom.DataExportclient.contacts.listAttachedSubscriptions({ ...params }) -> Intercom.SubscriptionTypeListclient.dataExport.find({ ...params }) -> Intercom.DataExportclient.contacts.attachSubscription({ ...params }) -> Intercom.SubscriptionTypeclient.dataExport.cancel({ ...params }) -> Intercom.DataExportclient.contacts.detachSubscription({ ...params }) -> Intercom.SubscriptionTypeclient.dataExport.download({ ...params }) -> voidclient.contacts.listAttachedTags({ ...params }) -> Intercom.TagListclient.helpCenters.find({ ...params }) -> Intercom.HelpCenterclient.contacts.find({ ...params }) -> Intercom.Contactclient.helpCenters.list({ ...params }) -> core.Pageclient.internalArticles.listInternalArticles() -> Intercom.InternalArticleListclient.internalArticles.createInternalArticle({ ...params }) -> Intercom.InternalArticleclient.internalArticles.retrieveInternalArticle({ ...params }) -> Intercom.InternalArticleclient.internalArticles.updateInternalArticle({ ...params }) -> Intercom.InternalArticleNew gifts in store for the jolly season
" +}); + +``` +client.internalArticles.deleteInternalArticle({ ...params }) -> Intercom.DeletedInternalArticleObjectclient.internalArticles.searchInternalArticles({ ...params }) -> Intercom.InternalArticleSearchResponseclient.ipAllowlist.getIpAllowlist() -> Intercom.IpAllowlistclient.ipAllowlist.updateIpAllowlist({ ...params }) -> Intercom.IpAllowlistclient.companies.retrieve({ ...params }) -> Intercom.CompaniesRetrieveResponseclient.companies.createOrUpdate({ ...params }) -> Intercom.Companyclient.companies.find({ ...params }) -> Intercom.Companyclient.companies.update({ ...params }) -> Intercom.Companyclient.companies.delete({ ...params }) -> Intercom.DeletedCompanyObjectclient.companies.listAttachedContacts({ ...params }) -> Intercom.CompanyAttachedContactsclient.companies.listAttachedSegments({ ...params }) -> Intercom.CompanyAttachedSegmentsclient.companies.list({ ...params }) -> core.Pageclient.companies.scroll({ ...params }) -> core.Pageclient.companies.attachContact({ ...params }) -> Intercom.Companyclient.companies.detachContact({ ...params }) -> Intercom.Companyclient.contacts.listAttachedCompanies({ ...params }) -> core.Pageclient.contacts.listAttachedSegments({ ...params }) -> Intercom.ContactSegmentsclient.contacts.listAttachedSubscriptions({ ...params }) -> Intercom.SubscriptionTypeListclient.contacts.attachSubscription({ ...params }) -> Intercom.SubscriptionTypeclient.contacts.detachSubscription({ ...params }) -> Intercom.SubscriptionTypeclient.contacts.listAttachedTags({ ...params }) -> Intercom.TagListclient.contacts.find({ ...params }) -> Intercom.ContactsFindResponseclient.contacts.update({ ...params }) -> Intercom.ContactsUpdateResponseclient.contacts.delete({ ...params }) -> Intercom.ContactDeletedclient.contacts.mergeLeadInUser({ ...params }) -> Intercom.ContactsMergeLeadInUserResponseclient.contacts.search({ ...params }) -> core.Pageclient.contacts.list({ ...params }) -> core.Pageclient.contacts.create({ ...params }) -> Intercom.ContactsCreateResponseclient.contacts.showContactByExternalId({ ...params }) -> Intercom.ShowContactByExternalIdResponseclient.contacts.archive({ ...params }) -> Intercom.ContactArchivedclient.contacts.unarchive({ ...params }) -> Intercom.ContactUnarchivedclient.contacts.blockContact({ ...params }) -> Intercom.ContactBlockedclient.notes.list({ ...params }) -> core.Pageclient.notes.create({ ...params }) -> Intercom.Noteclient.notes.find({ ...params }) -> Intercom.Noteclient.tags.tagContact({ ...params }) -> Intercom.Tagclient.tags.untagContact({ ...params }) -> Intercom.Tagclient.tags.tagConversation({ ...params }) -> Intercom.Tagclient.tags.untagConversation({ ...params }) -> Intercom.Tagclient.tags.list() -> Intercom.TagListclient.tags.create({ ...params }) -> Intercom.Tagclient.tags.find({ ...params }) -> Intercom.Tagclient.tags.delete({ ...params }) -> voidclient.tags.tagTicket({ ...params }) -> Intercom.Tagclient.tags.untagTicket({ ...params }) -> Intercom.Tagclient.conversations.list({ ...params }) -> core.Pageclient.conversations.create({ ...params }) -> Intercom.Messageclient.conversations.find({ ...params }) -> Intercom.Conversationclient.conversations.update({ ...params }) -> Intercom.Conversationclient.conversations.deleteConversation({ ...params }) -> Intercom.ConversationDeletedclient.conversations.search({ ...params }) -> core.Pageclient.conversations.reply({ ...params }) -> Intercom.Conversationclient.conversations.manage({ ...params }) -> Intercom.Conversationclient.conversations.attachContactAsAdmin({ ...params }) -> Intercom.Conversationclient.conversations.detachContactAsAdmin({ ...params }) -> Intercom.Conversationclient.conversations.redactConversationPart({ ...params }) -> Intercom.Conversationclient.conversations.convertToTicket({ ...params }) -> Intercom.Ticket | undefinedclient.conversations.runAssignmentRules({ ...params }) -> Intercom.Conversationclient.customChannelEvents.notifyNewConversation({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.customChannelEvents.notifyNewMessage({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.customChannelEvents.notifyQuickReplySelected({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.customChannelEvents.notifyAttributeCollected({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.customObjectInstances.getCustomObjectInstancesByExternalId({ ...params }) -> Intercom.CustomObjectInstance | undefinedclient.customObjectInstances.createCustomObjectInstances({ ...params }) -> Intercom.CustomObjectInstance | undefinedclient.customObjectInstances.deleteCustomObjectInstancesById({ ...params }) -> Intercom.CustomObjectInstanceDeletedclient.customObjectInstances.getCustomObjectInstancesById({ ...params }) -> Intercom.CustomObjectInstance | undefinedclient.customObjectInstances.deleteCustomObjectInstancesByExternalId({ ...params }) -> Intercom.CustomObjectInstanceDeletedclient.dataAttributes.list({ ...params }) -> Intercom.DataAttributeListclient.dataAttributes.create({ ...params }) -> Intercom.DataAttributeclient.dataAttributes.update({ ...params }) -> Intercom.DataAttributeclient.events.list({ ...params }) -> Intercom.DataEventSummaryclient.events.create({ ...params }) -> voidclient.events.summaries({ ...params }) -> voidclient.jobs.status({ ...params }) -> Intercom.Jobsclient.messages.create({ ...params }) -> Intercom.Messageclient.segments.list({ ...params }) -> Intercom.SegmentListclient.segments.find({ ...params }) -> Intercom.Segmentclient.subscriptionTypes.list() -> Intercom.SubscriptionTypeListclient.phoneCallRedirects.create({ ...params }) -> Intercom.PhoneSwitch | undefinedclient.calls.listCalls({ ...params }) -> Intercom.CallListclient.calls.showCall({ ...params }) -> Intercom.Callclient.calls.showCallRecording({ ...params }) -> voidclient.calls.showCallTranscript({ ...params }) -> stringclient.calls.listCallsWithTranscripts({ ...params }) -> Intercom.ListCallsWithTranscriptsResponseclient.teams.list() -> Intercom.TeamListclient.teams.find({ ...params }) -> Intercom.Teamclient.ticketStates.listTicketStates() -> Intercom.TicketStateListclient.ticketTypes.list() -> Intercom.TicketTypeListclient.ticketTypes.create({ ...params }) -> Intercom.TicketType | undefinedclient.ticketTypes.get({ ...params }) -> Intercom.TicketType | undefinedclient.ticketTypes.update({ ...params }) -> Intercom.TicketType | undefinedclient.tickets.reply({ ...params }) -> Intercom.TicketReplyclient.tickets.create({ ...params }) -> Intercom.Ticket | undefinedclient.tickets.enqueueCreateTicket({ ...params }) -> Intercom.Jobsclient.tickets.get({ ...params }) -> Intercom.Ticket | undefinedclient.tickets.update({ ...params }) -> Intercom.Ticket | undefinedclient.tickets.deleteTicket({ ...params }) -> Intercom.DeleteTicketResponseclient.tickets.search({ ...params }) -> core.Page<(Intercom.Ticket | undefined), Intercom.TicketList>client.visitors.find({ ...params }) -> Intercom.Visitor | undefinedclient.visitors.update({ ...params }) -> Intercom.Visitor | undefinedclient.visitors.mergeToContact({ ...params }) -> Intercom.Contactclient.helpCenters.collections.list({ ...params }) -> core.Pageclient.helpCenters.collections.create({ ...params }) -> Intercom.Collectionclient.helpCenters.collections.find({ ...params }) -> Intercom.Collectionclient.helpCenters.collections.update({ ...params }) -> Intercom.Collectionclient.helpCenters.collections.delete({ ...params }) -> Intercom.DeletedCollectionObjectclient.news.items.list() -> Intercom.PaginatedResponseclient.news.items.create({ ...params }) -> Intercom.NewsItemNew costumes in store for this spooky season
", + sender_id: 991267834, + state: "live", + deliver_silently: true, + labels: ["Product", "Update", "New"], + reactions: ["\uD83D\uDE06", "\uD83D\uDE05"], + newsfeed_assignments: [{ + newsfeed_id: 53, + published_at: 1664638214 + }] +}); + +``` +client.news.items.find({ ...params }) -> Intercom.NewsItemclient.news.items.update({ ...params }) -> Intercom.NewsItemNew gifts in store for the jolly season
", + sender_id: 991267845, + reactions: ["\uD83D\uDE1D", "\uD83D\uDE02"] + } +}); + +``` +client.news.items.delete({ ...params }) -> Intercom.DeletedObjectclient.news.feeds.listItems({ ...params }) -> Intercom.PaginatedResponseclient.news.feeds.list() -> Intercom.PaginatedResponseclient.news.feeds.find({ ...params }) -> Intercom.Newsfeedclient.ticketTypes.attributes.create({ ...params }) -> Intercom.TicketTypeAttribute | undefinedclient.ticketTypes.attributes.update({ ...params }) -> Intercom.TicketTypeAttribute | undefinedclient.unstable.admins.identifyAdmin() -> Intercom.AdminWithApp | undefinedclient.unstable.admins.setAwayAdmin({ ...params }) -> Intercom.Admin | undefinedclient.unstable.admins.listActivityLogs({ ...params }) -> Intercom.ActivityLogListclient.unstable.admins.listAdmins() -> Intercom.AdminListclient.unstable.admins.retrieveAdmin({ ...params }) -> Intercom.Admin | undefinedclient.unstable.aiContent.listContentImportSources() -> Intercom.ContentImportSourcesListclient.unstable.aiContent.createContentImportSource({ ...params }) -> Intercom.ContentImportSourceclient.unstable.aiContent.getContentImportSource({ ...params }) -> Intercom.ContentImportSourceclient.unstable.aiContent.updateContentImportSource({ ...params }) -> Intercom.ContentImportSourceclient.unstable.aiContent.deleteContentImportSource({ ...params }) -> voidclient.unstable.aiContent.listExternalPages() -> Intercom.ExternalPagesListclient.unstable.aiContent.createExternalPage({ ...params }) -> Intercom.ExternalPageclient.unstable.aiContent.getExternalPage({ ...params }) -> Intercom.ExternalPageclient.unstable.aiContent.updateExternalPage({ ...params }) -> Intercom.ExternalPageclient.unstable.aiContent.deleteExternalPage({ ...params }) -> Intercom.ExternalPageclient.unstable.articles.listArticles() -> Intercom.ArticleListclient.unstable.articles.createArticle({ ...params }) -> Intercom.Articleclient.unstable.articles.retrieveArticle({ ...params }) -> Intercom.Articleclient.unstable.articles.deleteArticle({ ...params }) -> Intercom.DeletedArticleObjectclient.unstable.articles.searchArticles({ ...params }) -> Intercom.ArticleSearchResponseclient.unstable.awayStatusReasons.listAwayStatusReasons() -> Intercom.AwayStatusReason[]client.unstable.export.enqueueANewReportingDataExportJob({ ...params }) -> Intercom.PostExportReportingDataEnqueueResponseclient.unstable.export.listAvailableDatasetsAndAttributes() -> Intercom.GetExportReportingDataGetDatasetsResponseclient.unstable.helpCenter.listAllCollections() -> Intercom.CollectionListclient.unstable.helpCenter.createCollection({ ...params }) -> Intercom.Collectionclient.unstable.helpCenter.retrieveCollection({ ...params }) -> Intercom.Collectionclient.unstable.helpCenter.updateCollection({ ...params }) -> Intercom.Collectionclient.unstable.helpCenter.deleteCollection({ ...params }) -> Intercom.DeletedCollectionObjectclient.unstable.helpCenter.retrieveHelpCenter({ ...params }) -> Intercom.HelpCenterclient.unstable.helpCenter.listHelpCenters() -> Intercom.HelpCenterListclient.unstable.internalArticles.listInternalArticles() -> Intercom.InternalArticleListclient.unstable.internalArticles.createInternalArticle({ ...params }) -> Intercom.InternalArticleclient.unstable.internalArticles.retrieveInternalArticle({ ...params }) -> Intercom.InternalArticleclient.unstable.internalArticles.updateInternalArticle({ ...params }) -> Intercom.InternalArticleNew gifts in store for the jolly season
" +}); + +``` +client.unstable.internalArticles.deleteInternalArticle({ ...params }) -> Intercom.DeletedInternalArticleObjectclient.unstable.internalArticles.searchInternalArticles({ ...params }) -> Intercom.InternalArticleSearchResponseclient.unstable.companies.retrieveCompany({ ...params }) -> Intercom.CompanyListclient.unstable.companies.createOrUpdateCompany({ ...params }) -> Intercom.Companyclient.unstable.companies.retrieveACompanyById({ ...params }) -> Intercom.Companyclient.unstable.companies.updateCompany({ ...params }) -> Intercom.Companyclient.unstable.companies.deleteCompany({ ...params }) -> Intercom.DeletedCompanyObjectclient.unstable.companies.listAttachedContacts({ ...params }) -> Intercom.CompanyAttachedContactsclient.unstable.companies.listAttachedSegmentsForCompanies({ ...params }) -> Intercom.CompanyAttachedSegmentsclient.unstable.companies.listAllCompanies({ ...params }) -> Intercom.CompanyListclient.unstable.companies.scrollOverAllCompanies({ ...params }) -> Intercom.CompanyScroll | undefinedclient.unstable.companies.attachContactToACompany({ ...params }) -> Intercom.Companyclient.unstable.companies.detachContactFromACompany({ ...params }) -> Intercom.Companyclient.unstable.notes.listCompanyNotes({ ...params }) -> Intercom.NoteListclient.unstable.notes.listNotes({ ...params }) -> Intercom.NoteListclient.unstable.notes.createNote({ ...params }) -> Intercom.Noteclient.unstable.notes.retrieveNote({ ...params }) -> Intercom.Noteclient.unstable.contacts.listCompaniesForAContact({ ...params }) -> Intercom.ContactAttachedCompaniesclient.unstable.contacts.listSegmentsForAContact({ ...params }) -> Intercom.ContactSegmentsclient.unstable.contacts.listSubscriptionsForAContact({ ...params }) -> Intercom.SubscriptionTypeListclient.unstable.contacts.listTagsForAContact({ ...params }) -> Intercom.TagListclient.unstable.contacts.showContact({ ...params }) -> Intercom.ShowContactResponseclient.unstable.contacts.updateContact({ ...params }) -> Intercom.UpdateContactResponseclient.unstable.contacts.deleteContact({ ...params }) -> Intercom.ContactDeletedclient.unstable.contacts.mergeContact({ ...params }) -> Intercom.MergeContactResponseclient.unstable.contacts.searchContacts({ ...params }) -> Intercom.ContactListclient.unstable.contacts.listContacts() -> Intercom.ContactListclient.unstable.contacts.createContact({ ...params }) -> Intercom.CreateContactResponseclient.unstable.contacts.showContactByExternalId({ ...params }) -> Intercom.ShowContactByExternalIdResponseclient.unstable.contacts.archiveContact({ ...params }) -> Intercom.ContactArchivedclient.unstable.contacts.unarchiveContact({ ...params }) -> Intercom.ContactUnarchivedclient.unstable.contacts.blockContact({ ...params }) -> Intercom.ContactBlockedclient.unstable.subscriptionTypes.attachSubscriptionTypeToContact({ ...params }) -> Intercom.SubscriptionTypeclient.unstable.subscriptionTypes.detachSubscriptionTypeToContact({ ...params }) -> Intercom.SubscriptionTypeclient.unstable.subscriptionTypes.listSubscriptionTypes() -> Intercom.SubscriptionTypeListclient.unstable.tags.attachTagToContact({ ...params }) -> Intercom.Tagclient.unstable.tags.detachTagFromContact({ ...params }) -> Intercom.Tagclient.unstable.tags.attachTagToConversation({ ...params }) -> Intercom.Tagclient.unstable.tags.detachTagFromConversation({ ...params }) -> Intercom.Tagclient.unstable.tags.listTags() -> Intercom.TagListclient.unstable.tags.createTag({ ...params }) -> Intercom.Tagclient.unstable.tags.findTag({ ...params }) -> Intercom.Tagclient.unstable.tags.deleteTag({ ...params }) -> voidclient.unstable.tags.attachTagToTicket({ ...params }) -> Intercom.Tagclient.contacts.update({ ...params }) -> Intercom.Contactclient.unstable.tags.detachTagFromTicket({ ...params }) -> Intercom.Tagclient.contacts.delete({ ...params }) -> Intercom.ContactDeletedclient.unstable.conversations.listConversations({ ...params }) -> Intercom.ConversationListclient.contacts.mergeLeadInUser({ ...params }) -> Intercom.Contactclient.unstable.conversations.createConversation({ ...params }) -> Intercom.Messageclient.unstable.conversations.retrieveConversation({ ...params }) -> Intercom.Conversationclient.contacts.search({ ...params }) -> core.Pageclient.unstable.conversations.updateConversation({ ...params }) -> Intercom.Conversationclient.unstable.conversations.deleteConversation({ ...params }) -> Intercom.ConversationDeletedclient.contacts.list({ ...params }) -> core.Pageclient.unstable.conversations.searchConversations({ ...params }) -> Intercom.ConversationListclient.contacts.create({ ...params }) -> Intercom.Contactclient.unstable.conversations.replyConversation({ ...params }) -> Intercom.Conversationclient.contacts.archive({ ...params }) -> Intercom.ContactArchivedclient.unstable.conversations.manageConversation({ ...params }) -> Intercom.Conversationclient.contacts.unarchive({ ...params }) -> Intercom.ContactUnarchivedclient.unstable.conversations.attachContactToConversation({ ...params }) -> Intercom.Conversationclient.notes.list({ ...params }) -> core.Pageclient.unstable.conversations.detachContactFromConversation({ ...params }) -> Intercom.Conversationclient.notes.create({ ...params }) -> Intercom.Noteclient.unstable.conversations.listHandlingEvents({ ...params }) -> Intercom.HandlingEventListclient.notes.find({ ...params }) -> Intercom.Noteclient.unstable.conversations.redactConversation({ ...params }) -> Intercom.Conversationclient.tags.tagContact({ ...params }) -> Intercom.Tagclient.unstable.conversations.convertConversationToTicket({ ...params }) -> Intercom.Ticket | undefinedclient.tags.untagContact({ ...params }) -> Intercom.Tagclient.unstable.customChannelEvents.notifyNewConversation({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.tags.tagConversation({ ...params }) -> Intercom.Tagclient.unstable.customChannelEvents.notifyNewMessage({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.tags.untagConversation({ ...params }) -> Intercom.Tagclient.unstable.customChannelEvents.notifyQuickReplySelected({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.tags.list() -> Intercom.TagListclient.unstable.customChannelEvents.notifyAttributeCollected({ ...params }) -> Intercom.CustomChannelNotificationResponseclient.tags.create({ ...params }) -> Intercom.Tagclient.unstable.customObjectInstances.getCustomObjectInstancesByExternalId({ ...params }) -> Intercom.CustomObjectInstance | undefinedclient.tags.find({ ...params }) -> Intercom.Tagclient.unstable.customObjectInstances.createCustomObjectInstances({ ...params }) -> Intercom.CustomObjectInstance | undefinedclient.tags.delete({ ...params }) -> voidclient.unstable.customObjectInstances.deleteCustomObjectInstancesById({ ...params }) -> Intercom.CustomObjectInstanceDeletedclient.tags.tagTicket({ ...params }) -> Intercom.Tagclient.unstable.customObjectInstances.getCustomObjectInstancesById({ ...params }) -> Intercom.CustomObjectInstance | undefinedclient.tags.untagTicket({ ...params }) -> Intercom.Tagclient.unstable.customObjectInstances.deleteCustomObjectInstancesByExternalId({ ...params }) -> Intercom.CustomObjectInstanceDeletedclient.conversations.list({ ...params }) -> core.Pageclient.unstable.dataAttributes.lisDataAttributes({ ...params }) -> Intercom.DataAttributeListclient.conversations.create({ ...params }) -> Intercom.Messageclient.unstable.dataAttributes.createDataAttribute({ ...params }) -> Intercom.DataAttributeclient.conversations.find({ ...params }) -> Intercom.Conversationclient.unstable.dataAttributes.updateDataAttribute({ ...params }) -> Intercom.DataAttributeclient.conversations.update({ ...params }) -> Intercom.Conversationclient.unstable.dataEvents.lisDataEvents({ ...params }) -> Intercom.DataEventSummaryclient.conversations.search({ ...params }) -> core.Pageclient.unstable.dataEvents.createDataEvent({ ...params }) -> voidclient.conversations.reply({ ...params }) -> Intercom.Conversationclient.unstable.dataEvents.dataEventSummaries({ ...params }) -> voidclient.conversations.manage({ ...params }) -> Intercom.Conversationclient.unstable.dataExport.createDataExport({ ...params }) -> Intercom.DataExportclient.conversations.runAssignmentRules({ ...params }) -> Intercom.Conversationclient.unstable.dataExport.getDataExport({ ...params }) -> Intercom.DataExportclient.conversations.attachContactAsAdmin({ ...params }) -> Intercom.Conversationclient.unstable.dataExport.cancelDataExport({ ...params }) -> Intercom.DataExportclient.conversations.detachContactAsAdmin({ ...params }) -> Intercom.Conversationclient.unstable.dataExport.downloadDataExport({ ...params }) -> voidclient.conversations.redactConversationPart({ ...params }) -> Intercom.Conversationclient.unstable.workflows.exportWorkflow({ ...params }) -> Intercom.WorkflowExportclient.conversations.convertToTicket({ ...params }) -> Intercom.Ticketclient.unstable.jobs.status({ ...params }) -> Intercom.Jobsclient.dataAttributes.list({ ...params }) -> Intercom.DataAttributeListclient.unstable.macros.listMacros({ ...params }) -> Intercom.MacroListclient.dataAttributes.create({ ...params }) -> Intercom.DataAttributeclient.unstable.macros.getMacro({ ...params }) -> Intercom.Macro | undefinedclient.dataAttributes.update({ ...params }) -> Intercom.DataAttributeclient.unstable.messages.createMessage({ ...params }) -> Intercom.Messageclient.events.list({ ...params }) -> Intercom.DataEventSummaryclient.unstable.messages.getWhatsAppMessageStatus({ ...params }) -> Intercom.WhatsappMessageStatusListclient.unstable.news.listNewsItems() -> Intercom.PaginatedResponseclient.events.create({ ...params }) -> voidclient.unstable.news.createNewsItem({ ...params }) -> Intercom.NewsItemNew costumes in store for this spooky season
", + sender_id: 991267834, + state: "live", + deliver_silently: true, + labels: ["Product", "Update", "New"], + reactions: ["\uD83D\uDE06", "\uD83D\uDE05"], + newsfeed_assignments: [{ + newsfeed_id: 53, + published_at: 1664638214 + }] }); -``` +```client.events.summaries({ ...params }) -> voidclient.unstable.news.retrieveNewsItem({ ...params }) -> Intercom.NewsItemclient.dataExport.create({ ...params }) -> Intercom.DataExportclient.unstable.news.updateNewsItem({ ...params }) -> Intercom.NewsItemNew gifts in store for the jolly season
", + sender_id: 991267845, + reactions: ["\uD83D\uDE1D", "\uD83D\uDE02"] + } }); -``` +```client.dataExport.find({ ...params }) -> Intercom.DataExportclient.unstable.news.deleteNewsItem({ ...params }) -> Intercom.DeletedObjectclient.dataExport.cancel({ ...params }) -> Intercom.DataExportclient.unstable.news.listLiveNewsfeedItems({ ...params }) -> Intercom.PaginatedResponseclient.dataExport.download({ ...params }) -> voidclient.unstable.news.listNewsfeeds() -> Intercom.PaginatedResponseclient.messages.create({ ...params }) -> Intercom.Messageclient.unstable.news.retrieveNewsfeed({ ...params }) -> Intercom.Newsfeedclient.segments.list({ ...params }) -> Intercom.SegmentListclient.unstable.segments.listSegments({ ...params }) -> Intercom.SegmentListclient.segments.find({ ...params }) -> Intercom.Segmentclient.unstable.segments.retrieveSegment({ ...params }) -> Intercom.Segmentclient.subscriptionTypes.list() -> Intercom.SubscriptionTypeListclient.unstable.switch.createPhoneSwitch({ ...params }) -> Intercom.PhoneSwitch | undefinedclient.phoneCallRedirects.create({ ...params }) -> Intercom.PhoneSwitchclient.unstable.calls.listCalls({ ...params }) -> Intercom.CallListclient.teams.list() -> Intercom.TeamListclient.unstable.calls.showCall({ ...params }) -> Intercom.Callclient.teams.find({ ...params }) -> Intercom.Teamclient.unstable.calls.showCallRecording({ ...params }) -> voidclient.ticketTypes.list() -> Intercom.TicketTypeListclient.unstable.calls.showCallTranscript({ ...params }) -> stringclient.ticketTypes.create({ ...params }) -> Intercom.TicketTypeclient.unstable.calls.listCallsWithTranscripts({ ...params }) -> Intercom.ListCallsWithTranscriptsResponseclient.ticketTypes.get({ ...params }) -> Intercom.TicketTypeclient.unstable.calls.registerFinVoiceCall({ ...params }) -> Intercom.AiCallResponseclient.ticketTypes.update({ ...params }) -> Intercom.TicketTypeclient.unstable.calls.collectFinVoiceCallById({ ...params }) -> Intercom.AiCallResponseclient.tickets.reply({ ...params }) -> Intercom.TicketReplyclient.unstable.calls.collectFinVoiceCallByExternalId({ ...params }) -> Intercom.AiCallResponseclient.tickets.create({ ...params }) -> Intercom.Ticketclient.unstable.calls.collectFinVoiceCallByPhoneNumber({ ...params }) -> Intercom.Error_client.tickets.get({ ...params }) -> Intercom.Ticketclient.unstable.teams.listTeams() -> Intercom.TeamListclient.tickets.update({ ...params }) -> Intercom.Ticketclient.unstable.teams.retrieveTeam({ ...params }) -> Intercom.Teamclient.tickets.search({ ...params }) -> core.Pageclient.unstable.ticketStates.listTicketStates() -> Intercom.TicketStateListclient.visitors.find({ ...params }) -> Intercom.Visitorclient.unstable.ticketTypeAttributes.createTicketTypeAttribute({ ...params }) -> Intercom.TicketTypeAttribute | undefinedclient.visitors.update({ ...params }) -> Intercom.Visitorclient.unstable.ticketTypeAttributes.updateTicketTypeAttribute({ ...params }) -> Intercom.TicketTypeAttribute | undefinedclient.visitors.mergeToContact({ ...params }) -> Intercom.Contactclient.unstable.ticketTypes.listTicketTypes() -> Intercom.TicketTypeListclient.helpCenters.collections.list({ ...params }) -> core.Pageclient.unstable.ticketTypes.createTicketType({ ...params }) -> Intercom.TicketType | undefinedclient.helpCenters.collections.create({ ...params }) -> Intercom.Collectionclient.unstable.ticketTypes.getTicketType({ ...params }) -> Intercom.TicketType | undefinedclient.helpCenters.collections.find({ ...params }) -> Intercom.Collectionclient.unstable.tickets.replyTicket({ ...params }) -> Intercom.TicketReplyclient.helpCenters.collections.update({ ...params }) -> Intercom.Collectionclient.unstable.tickets.enqueueCreateTicket({ ...params }) -> Intercom.Jobsclient.helpCenters.collections.delete({ ...params }) -> Intercom.DeletedCollectionObjectclient.unstable.tickets.getTicket({ ...params }) -> Intercom.Ticket | undefinedclient.news.items.list() -> Intercom.PaginatedNewsItemResponseclient.unstable.tickets.updateTicket({ ...params }) -> Intercom.Ticket | undefinedclient.news.items.create({ ...params }) -> Intercom.NewsItemclient.unstable.tickets.deleteTicket({ ...params }) -> Intercom.DeleteTicketResponseNew costumes in store for this spooky season
", - sender_id: 991267734, - state: "live", - deliver_silently: true, - labels: ["Product", "Update", "New"], - reactions: ["\uD83D\uDE06", "\uD83D\uDE05"], - newsfeed_assignments: [ - { - newsfeed_id: 53, - published_at: 1664638214, - }, - ], +await client.unstable.tickets.deleteTicket({ + id: "id" }); -``` +```client.news.items.find({ ...params }) -> Intercom.NewsItemclient.unstable.tickets.searchTickets({ ...params }) -> Intercom.TicketListclient.news.items.update({ ...params }) -> Intercom.NewsItemclient.unstable.visitors.retrieveVisitorWithUserId({ ...params }) -> Intercom.Visitor | undefinedNew gifts in store for the jolly season
", - sender_id: 991267745, - reactions: ["\uD83D\uDE1D", "\uD83D\uDE02"], - }, +await client.unstable.visitors.retrieveVisitorWithUserId({ + user_id: "user_id" }); -``` +```client.news.items.delete({ ...params }) -> Intercom.DeletedObjectclient.unstable.visitors.updateVisitor({ ...params }) -> Intercom.Visitor | undefinedclient.news.feeds.listItems({ ...params }) -> Intercom.PaginatedNewsItemResponseclient.unstable.visitors.convertVisitor({ ...params }) -> Intercom.Contactclient.news.feeds.list() -> Intercom.PaginatedNewsfeedResponseclient.unstable.brands.listBrands() -> Intercom.BrandListclient.news.feeds.find({ ...params }) -> Intercom.Newsfeedclient.unstable.brands.retrieveBrand({ ...params }) -> Intercom.Brandclient.ticketTypes.attributes.create({ ...params }) -> Intercom.TicketTypeAttributeclient.unstable.emails.listEmails() -> Intercom.EmailListclient.ticketTypes.attributes.update({ ...params }) -> Intercom.TicketTypeAttributeclient.unstable.emails.retrieveEmail({ ...params }) -> Intercom.EmailSettingNew gifts in store for the jolly season
" * }) */ - public async update( + public update( + request: Intercom.UpdateArticleRequest, + requestOptions?: ArticlesClient.RequestOptions, + ): core.HttpResponsePromiseNew gifts in store for the jolly season
" * } * * @example * { - * article_id: "123", + * article_id: 1, * title: "Christmas is here!", * body: "New gifts in store for the jolly season
" * } */ export interface UpdateArticleRequest { - /** - * The unique identifier for the article which is given by Intercom. - */ - article_id: string; + /** The unique identifier for the article which is given by Intercom. */ + article_id: number; /** The title of the article.For multilingual articles, this will be the title of the default language's content. */ title?: string; /** The description of the article. For multilingual articles, this will be the description of the default language's content. */ @@ -42,12 +38,10 @@ export interface UpdateArticleRequest { } export namespace UpdateArticleRequest { - /** - * Whether the article will be `published` or will be a `draft`. Defaults to draft. For multilingual articles, this will be the state of the default language's content. - */ - export type State = "published" | "draft"; + /** Whether the article will be `published` or will be a `draft`. Defaults to draft. For multilingual articles, this will be the state of the default language's content. */ export const State = { Published: "published", Draft: "draft", } as const; + export type State = (typeof State)[keyof typeof State]; } diff --git a/src/api/resources/articles/client/requests/index.ts b/src/api/resources/articles/client/requests/index.ts index 48ca8171..9376442d 100644 --- a/src/api/resources/articles/client/requests/index.ts +++ b/src/api/resources/articles/client/requests/index.ts @@ -1,6 +1,5 @@ -export { type ListArticlesRequest } from "./ListArticlesRequest"; -export { type CreateArticleRequest } from "./CreateArticleRequest"; -export { type FindArticleRequest } from "./FindArticleRequest"; -export { type UpdateArticleRequest } from "./UpdateArticleRequest"; -export { type DeleteArticleRequest } from "./DeleteArticleRequest"; -export { type SearchArticlesRequest } from "./SearchArticlesRequest"; +export type { DeleteArticleRequest } from "./DeleteArticleRequest.js"; +export type { FindArticleRequest } from "./FindArticleRequest.js"; +export type { ListArticlesRequest } from "./ListArticlesRequest.js"; +export type { SearchArticlesRequest } from "./SearchArticlesRequest.js"; +export type { UpdateArticleRequest } from "./UpdateArticleRequest.js"; diff --git a/src/api/resources/articles/index.ts b/src/api/resources/articles/index.ts index c9240f83..d9adb1af 100644 --- a/src/api/resources/articles/index.ts +++ b/src/api/resources/articles/index.ts @@ -1,2 +1,2 @@ -export * from "./types"; -export * from "./client"; +export * from "./client/index.js"; +export * from "./types/index.js"; diff --git a/src/api/resources/articles/types/Article.ts b/src/api/resources/articles/types/Article.ts index 4328ff6c..02667c69 100644 --- a/src/api/resources/articles/types/Article.ts +++ b/src/api/resources/articles/types/Article.ts @@ -1,8 +1,6 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ +// This file was auto-generated by Fern from our API Definition. -import * as Intercom from "../../../index"; +import type * as Intercom from "../../../index.js"; /** * The Articles API is a central place to gather all information and take actions on your articles. Articles can live within collections and sections, or alternatively they can stand alone. diff --git a/src/api/resources/articles/types/ArticleListItem.ts b/src/api/resources/articles/types/ArticleListItem.ts index 1c180206..426c862a 100644 --- a/src/api/resources/articles/types/ArticleListItem.ts +++ b/src/api/resources/articles/types/ArticleListItem.ts @@ -1,8 +1,6 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ +// This file was auto-generated by Fern from our API Definition. -import * as Intercom from "../../../index"; +import type * as Intercom from "../../../index.js"; /** * The data returned about your articles when you list them. @@ -37,17 +35,15 @@ export interface ArticleListItem { /** The type of parent, which can either be a `collection` or `section`. */ parent_type?: string; /** The default locale of the help center. This field is only returned for multilingual help centers. */ - default_locale: string; - translated_content: Intercom.ArticleTranslatedContent; + default_locale?: string; + translated_content?: Intercom.ArticleTranslatedContent; } export namespace ArticleListItem { - /** - * Whether the article is `published` or is a `draft`. For multilingual articles, this will be the state of the default language's content. - */ - export type State = "published" | "draft"; + /** Whether the article is `published` or is a `draft`. For multilingual articles, this will be the state of the default language's content. */ export const State = { Published: "published", Draft: "draft", } as const; + export type State = (typeof State)[keyof typeof State]; } diff --git a/src/api/resources/articles/types/ArticleSearchHighlights.ts b/src/api/resources/articles/types/ArticleSearchHighlights.ts index 0dd36d50..c80f22fa 100644 --- a/src/api/resources/articles/types/ArticleSearchHighlights.ts +++ b/src/api/resources/articles/types/ArticleSearchHighlights.ts @@ -1,17 +1,15 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ +// This file was auto-generated by Fern from our API Definition. /** * The highlighted results of an Article search. In the examples provided my search query is always "my query". */ export interface ArticleSearchHighlights { /** The ID of the corresponding article. */ - article_id: string; + article_id?: string; /** An Article title highlighted. */ - highlighted_title: ArticleSearchHighlights.HighlightedTitle.Item[]; + highlighted_title?: ArticleSearchHighlights.HighlightedTitle.Item[]; /** An Article description and body text highlighted. */ - highlighted_summary: ArticleSearchHighlights.HighlightedSummary.Item[][]; + highlighted_summary?: ArticleSearchHighlights.HighlightedSummary.Item[][]; } export namespace ArticleSearchHighlights { @@ -29,14 +27,12 @@ export namespace ArticleSearchHighlights { } export namespace Item { - /** - * The type of text - `highlight` or `plain`. - */ - export type Type = "highlight" | "plain"; + /** The type of text - `highlight` or `plain`. */ export const Type = { Highlight: "highlight", Plain: "plain", } as const; + export type Type = (typeof Type)[keyof typeof Type]; } } @@ -54,14 +50,12 @@ export namespace ArticleSearchHighlights { } export namespace Item { - /** - * The type of text - `highlight` or `plain`. - */ - export type Type = "highlight" | "plain"; + /** The type of text - `highlight` or `plain`. */ export const Type = { Highlight: "highlight", Plain: "plain", } as const; + export type Type = (typeof Type)[keyof typeof Type]; } } } diff --git a/src/api/resources/articles/types/SearchArticlesResponse.ts b/src/api/resources/articles/types/ArticleSearchResponse.ts similarity index 66% rename from src/api/resources/articles/types/SearchArticlesResponse.ts rename to src/api/resources/articles/types/ArticleSearchResponse.ts index dbf3330a..349062a8 100644 --- a/src/api/resources/articles/types/SearchArticlesResponse.ts +++ b/src/api/resources/articles/types/ArticleSearchResponse.ts @@ -1,23 +1,21 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ +// This file was auto-generated by Fern from our API Definition. -import * as Intercom from "../../../index"; +import type * as Intercom from "../../../index.js"; /** * The results of an Article search */ -export interface SearchArticlesResponse { +export interface ArticleSearchResponse { /** The type of the object - `list`. */ - type: "list"; + type?: "list"; /** The total number of Articles matching the search query */ - total_count: number; + total_count?: number; /** An object containing the results of the search. */ - data: SearchArticlesResponse.Data; + data?: ArticleSearchResponse.Data; pages?: Intercom.CursorPages; } -export namespace SearchArticlesResponse { +export namespace ArticleSearchResponse { /** * An object containing the results of the search. */ diff --git a/src/api/resources/articles/types/InternalArticle.ts b/src/api/resources/articles/types/InternalArticle.ts new file mode 100644 index 00000000..dec37b5f --- /dev/null +++ b/src/api/resources/articles/types/InternalArticle.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Intercom from "../../../index.js"; + +/** + * The Internal Articles API is a central place to gather all information and take actions on your internal articles. + */ +export type InternalArticle = Intercom.InternalArticleListItem; diff --git a/src/api/resources/articles/types/index.ts b/src/api/resources/articles/types/index.ts index a9b4ea42..ac1a15f9 100644 --- a/src/api/resources/articles/types/index.ts +++ b/src/api/resources/articles/types/index.ts @@ -1,4 +1,5 @@ -export * from "./Article"; -export * from "./ArticleListItem"; -export * from "./ArticleSearchHighlights"; -export * from "./SearchArticlesResponse"; +export * from "./Article.js"; +export * from "./ArticleListItem.js"; +export * from "./ArticleSearchHighlights.js"; +export * from "./ArticleSearchResponse.js"; +export * from "./InternalArticle.js"; diff --git a/src/api/resources/awayStatusReasons/client/Client.ts b/src/api/resources/awayStatusReasons/client/Client.ts new file mode 100644 index 00000000..22df5064 --- /dev/null +++ b/src/api/resources/awayStatusReasons/client/Client.ts @@ -0,0 +1,92 @@ +// This file was auto-generated by Fern from our API Definition. + +import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; +import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient.js"; +import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js"; +import * as core from "../../../../core/index.js"; +import * as environments from "../../../../environments.js"; +import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js"; +import * as errors from "../../../../errors/index.js"; +import * as Intercom from "../../../index.js"; + +export declare namespace AwayStatusReasonsClient { + export interface Options extends BaseClientOptions {} + + export interface RequestOptions extends BaseRequestOptions {} +} + +/** + * Everything about your Away Status Reasons + */ +export class AwayStatusReasonsClient { + protected readonly _options: NormalizedClientOptionsWithAuth