intercom-client 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/README.md +15 -2
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +2 -1
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +2 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +2 -1
- package/api/errors/UnprocessableEntityError.d.ts +2 -1
- package/api/errors/UnprocessableEntityError.js +2 -1
- package/api/resources/admins/client/Client.d.ts +10 -5
- package/api/resources/admins/client/Client.js +46 -16
- package/api/resources/articles/client/Client.d.ts +10 -5
- package/api/resources/articles/client/Client.js +61 -26
- package/api/resources/companies/client/Client.d.ts +18 -9
- package/api/resources/companies/client/Client.js +115 -51
- package/api/resources/contacts/client/Client.d.ts +24 -12
- package/api/resources/contacts/client/Client.js +148 -58
- package/api/resources/conversations/client/Client.d.ts +20 -10
- package/api/resources/conversations/client/Client.js +136 -60
- package/api/resources/dataAttributes/client/Client.d.ts +6 -3
- package/api/resources/dataAttributes/client/Client.js +32 -14
- package/api/resources/dataExport/client/Client.d.ts +8 -4
- package/api/resources/dataExport/client/Client.js +32 -8
- package/api/resources/events/client/Client.d.ts +6 -3
- package/api/resources/events/client/Client.js +28 -10
- package/api/resources/helpCenters/client/Client.d.ts +2 -1
- package/api/resources/helpCenters/client/Client.js +21 -10
- package/api/resources/helpCenters/resources/collections/client/Client.d.ts +8 -4
- package/api/resources/helpCenters/resources/collections/client/Client.js +51 -22
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/api/resources/messages/client/Client.d.ts +2 -1
- package/api/resources/messages/client/Client.js +12 -6
- package/api/resources/news/resources/feeds/client/Client.d.ts +6 -3
- package/api/resources/news/resources/feeds/client/Client.js +27 -9
- package/api/resources/news/resources/items/client/Client.d.ts +10 -5
- package/api/resources/news/resources/items/client/Client.js +48 -18
- package/api/resources/notes/client/Client.d.ts +4 -2
- package/api/resources/notes/client/Client.js +30 -13
- package/api/resources/phoneCallRedirects/client/Client.d.ts +2 -1
- package/api/resources/phoneCallRedirects/client/Client.js +11 -5
- package/api/resources/segments/client/Client.d.ts +4 -2
- package/api/resources/segments/client/Client.js +20 -8
- package/api/resources/subscriptionTypes/client/Client.d.ts +2 -1
- package/api/resources/subscriptionTypes/client/Client.js +9 -3
- package/api/resources/tags/client/Client.d.ts +20 -10
- package/api/resources/tags/client/Client.js +101 -41
- package/api/resources/teams/client/Client.d.ts +4 -2
- package/api/resources/teams/client/Client.js +19 -7
- package/api/resources/ticketTypes/client/Client.d.ts +8 -4
- package/api/resources/ticketTypes/client/Client.js +36 -12
- package/api/resources/ticketTypes/resources/attributes/client/Client.d.ts +4 -2
- package/api/resources/ticketTypes/resources/attributes/client/Client.js +18 -6
- package/api/resources/tickets/client/Client.d.ts +8 -4
- package/api/resources/tickets/client/Client.js +49 -20
- package/api/resources/tickets/client/requests/index.d.ts +0 -1
- package/api/resources/unstable/client/Client.d.ts +104 -0
- package/api/resources/unstable/client/Client.js +152 -0
- package/api/resources/unstable/errors/BadRequestError.d.ts +8 -0
- package/api/resources/unstable/errors/BadRequestError.js +52 -0
- package/api/resources/unstable/errors/ForbiddenError.d.ts +9 -0
- package/api/resources/unstable/errors/ForbiddenError.js +52 -0
- package/api/resources/unstable/errors/InternalServerError.d.ts +9 -0
- package/api/resources/unstable/errors/InternalServerError.js +52 -0
- package/api/resources/unstable/errors/NotFoundError.d.ts +8 -0
- package/api/resources/unstable/errors/NotFoundError.js +52 -0
- package/api/resources/unstable/errors/TooManyRequestsError.d.ts +9 -0
- package/api/resources/unstable/errors/TooManyRequestsError.js +52 -0
- package/api/resources/unstable/errors/UnauthorizedError.d.ts +9 -0
- package/api/resources/unstable/errors/UnauthorizedError.js +52 -0
- package/api/resources/unstable/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/resources/unstable/errors/UnprocessableEntityError.js +52 -0
- package/api/resources/unstable/errors/index.d.ts +7 -0
- package/api/resources/unstable/errors/index.js +23 -0
- package/api/resources/unstable/index.d.ts +4 -0
- package/api/resources/unstable/index.js +20 -0
- package/api/resources/unstable/resources/admins/client/Client.d.ts +123 -0
- package/api/resources/unstable/resources/admins/client/Client.js +418 -0
- package/api/resources/unstable/resources/admins/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/admins/client/index.js +17 -0
- package/api/resources/unstable/resources/admins/client/requests/ListActivityLogsRequest.d.ts +20 -0
- package/api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.d.ts +15 -0
- package/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.d.ts +38 -0
- package/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.js +5 -0
- package/api/resources/unstable/resources/admins/client/requests/index.d.ts +3 -0
- package/api/resources/unstable/resources/admins/index.d.ts +2 -0
- package/api/resources/unstable/resources/admins/index.js +18 -0
- package/api/resources/unstable/resources/admins/types/Admin.d.ts +32 -0
- package/api/resources/unstable/resources/admins/types/Admin.js +5 -0
- package/api/resources/unstable/resources/admins/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/admins/types/index.js +17 -0
- package/api/resources/unstable/resources/aiAgent/index.d.ts +1 -0
- package/api/resources/unstable/resources/aiAgent/index.js +17 -0
- package/api/resources/unstable/resources/aiAgent/types/AiAgent.d.ts +35 -0
- package/api/resources/unstable/resources/aiAgent/types/AiAgent.js +16 -0
- package/api/resources/unstable/resources/aiAgent/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/aiAgent/types/index.js +17 -0
- package/api/resources/unstable/resources/aiContent/client/Client.d.ts +202 -0
- package/api/resources/unstable/resources/aiContent/client/Client.js +735 -0
- package/api/resources/unstable/resources/aiContent/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/aiContent/client/index.js +17 -0
- package/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.d.ts +25 -0
- package/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.js +13 -0
- package/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.d.ts +29 -0
- package/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.js +5 -0
- package/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.d.ts +15 -0
- package/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.js +5 -0
- package/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.d.ts +15 -0
- package/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.js +5 -0
- package/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.d.ts +15 -0
- package/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.js +5 -0
- package/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.d.ts +15 -0
- package/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.js +5 -0
- package/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.d.ts +42 -0
- package/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.js +18 -0
- package/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.d.ts +32 -0
- package/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.js +5 -0
- package/api/resources/unstable/resources/aiContent/client/requests/index.d.ts +8 -0
- package/api/resources/unstable/resources/aiContent/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/aiContent/index.d.ts +2 -0
- package/api/resources/unstable/resources/aiContent/index.js +18 -0
- package/api/resources/unstable/resources/aiContent/types/ContentImportSource.d.ts +43 -0
- package/api/resources/unstable/resources/aiContent/types/ContentImportSource.js +18 -0
- package/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.d.ts +16 -0
- package/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.js +5 -0
- package/api/resources/unstable/resources/aiContent/types/ExternalPage.d.ts +36 -0
- package/api/resources/unstable/resources/aiContent/types/ExternalPage.js +5 -0
- package/api/resources/unstable/resources/aiContent/types/ExternalPagesList.d.ts +16 -0
- package/api/resources/unstable/resources/aiContent/types/ExternalPagesList.js +5 -0
- package/api/resources/unstable/resources/aiContent/types/index.d.ts +4 -0
- package/api/resources/unstable/resources/aiContent/types/index.js +20 -0
- package/api/resources/unstable/resources/aiContentSource/index.d.ts +1 -0
- package/api/resources/unstable/resources/aiContentSource/index.js +17 -0
- package/api/resources/unstable/resources/aiContentSource/types/ContentSource.d.ts +29 -0
- package/api/resources/unstable/resources/aiContentSource/types/ContentSource.js +16 -0
- package/api/resources/unstable/resources/aiContentSource/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/aiContentSource/types/index.js +17 -0
- package/api/resources/unstable/resources/articles/client/Client.d.ts +117 -0
- package/api/resources/unstable/resources/articles/client/Client.js +417 -0
- package/api/resources/unstable/resources/articles/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/articles/client/index.js +17 -0
- package/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.d.ts +15 -0
- package/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.js +5 -0
- package/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.d.ts +15 -0
- package/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.js +5 -0
- package/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.d.ts +28 -0
- package/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.js +5 -0
- package/api/resources/unstable/resources/articles/client/requests/index.d.ts +3 -0
- package/api/resources/unstable/resources/articles/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/articles/index.d.ts +2 -0
- package/api/resources/unstable/resources/articles/index.js +18 -0
- package/api/resources/unstable/resources/articles/types/Article.d.ts +10 -0
- package/api/resources/unstable/resources/articles/types/Article.js +5 -0
- package/api/resources/unstable/resources/articles/types/ArticleListItem.d.ts +50 -0
- package/api/resources/unstable/resources/articles/types/ArticleListItem.js +13 -0
- package/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.d.ts +60 -0
- package/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.js +29 -0
- package/api/resources/unstable/resources/articles/types/ArticleSearchResponse.d.ts +27 -0
- package/api/resources/unstable/resources/articles/types/ArticleSearchResponse.js +5 -0
- package/api/resources/unstable/resources/articles/types/index.d.ts +4 -0
- package/api/resources/unstable/resources/articles/types/index.js +20 -0
- package/api/resources/unstable/resources/awayStatusReasons/client/Client.d.ts +49 -0
- package/api/resources/unstable/resources/awayStatusReasons/client/Client.js +135 -0
- package/api/resources/unstable/resources/awayStatusReasons/client/index.js +2 -0
- package/api/resources/unstable/resources/companies/client/Client.d.ts +271 -0
- package/api/resources/unstable/resources/companies/client/Client.js +908 -0
- package/api/resources/unstable/resources/companies/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/companies/client/index.js +17 -0
- package/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.d.ts +30 -0
- package/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.d.ts +15 -0
- package/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.d.ts +20 -0
- package/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.d.ts +23 -0
- package/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.d.ts +15 -0
- package/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.d.ts +15 -0
- package/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.d.ts +15 -0
- package/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.d.ts +38 -0
- package/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.d.ts +13 -0
- package/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.d.ts +15 -0
- package/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.js +5 -0
- package/api/resources/unstable/resources/companies/client/requests/index.d.ts +10 -0
- package/api/resources/unstable/resources/companies/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/companies/index.d.ts +2 -0
- package/api/resources/unstable/resources/companies/index.js +18 -0
- package/api/resources/unstable/resources/companies/types/Company.d.ts +72 -0
- package/api/resources/unstable/resources/companies/types/Company.js +5 -0
- package/api/resources/unstable/resources/companies/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/companies/types/index.js +17 -0
- package/api/resources/unstable/resources/contacts/client/Client.d.ts +395 -0
- package/api/resources/unstable/resources/contacts/client/Client.js +1165 -0
- package/api/resources/unstable/resources/contacts/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/contacts/client/index.js +17 -0
- package/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
- package/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.d.ts +15 -0
- package/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.ts +49 -0
- package/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
- package/api/resources/unstable/resources/contacts/client/requests/index.d.ts +12 -0
- package/api/resources/unstable/resources/contacts/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/contacts/index.d.ts +2 -0
- package/api/resources/unstable/resources/contacts/index.js +18 -0
- package/api/resources/unstable/resources/contacts/types/Contact.d.ts +103 -0
- package/api/resources/unstable/resources/contacts/types/Contact.js +5 -0
- package/api/resources/unstable/resources/contacts/types/CreateContactResponse.d.ts +8 -0
- package/api/resources/unstable/resources/contacts/types/CreateContactResponse.js +5 -0
- package/api/resources/unstable/resources/contacts/types/MergeContactResponse.d.ts +8 -0
- package/api/resources/unstable/resources/contacts/types/MergeContactResponse.js +5 -0
- package/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.d.ts +8 -0
- package/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.js +5 -0
- package/api/resources/unstable/resources/contacts/types/ShowContactResponse.d.ts +8 -0
- package/api/resources/unstable/resources/contacts/types/ShowContactResponse.js +5 -0
- package/api/resources/unstable/resources/contacts/types/UpdateContactResponse.d.ts +8 -0
- package/api/resources/unstable/resources/contacts/types/UpdateContactResponse.js +5 -0
- package/api/resources/unstable/resources/contacts/types/index.d.ts +6 -0
- package/api/resources/unstable/resources/contacts/types/index.js +22 -0
- package/api/resources/unstable/resources/conversations/client/Client.d.ts +545 -0
- package/api/resources/unstable/resources/conversations/client/Client.js +1218 -0
- package/api/resources/unstable/resources/conversations/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/conversations/client/index.js +17 -0
- package/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +44 -0
- package/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +26 -0
- package/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.d.ts +48 -0
- package/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.js +17 -0
- package/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.d.ts +15 -0
- package/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +44 -0
- package/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.d.ts +17 -0
- package/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.d.ts +62 -0
- package/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.d.ts +77 -0
- package/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.d.ts +20 -0
- package/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.d.ts +53 -0
- package/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
- package/api/resources/unstable/resources/conversations/client/requests/index.d.ts +10 -0
- package/api/resources/unstable/resources/conversations/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/conversations/index.d.ts +2 -0
- package/api/resources/unstable/resources/conversations/index.js +18 -0
- package/api/resources/unstable/resources/conversations/types/Conversation.d.ts +68 -0
- package/api/resources/unstable/resources/conversations/types/Conversation.js +18 -0
- package/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.d.ts +19 -0
- package/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.js +5 -0
- package/api/resources/unstable/resources/conversations/types/index.d.ts +2 -0
- package/api/resources/unstable/resources/conversations/types/index.js +18 -0
- package/api/resources/unstable/resources/customChannelEvents/client/Client.d.ts +144 -0
- package/api/resources/unstable/resources/customChannelEvents/client/Client.js +408 -0
- package/api/resources/unstable/resources/customChannelEvents/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/customChannelEvents/client/index.js +17 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.d.ts +24 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.js +5 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.d.ts +22 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.js +5 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.d.ts +22 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.js +5 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/index.d.ts +3 -0
- package/api/resources/unstable/resources/customChannelEvents/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/customObjectInstances/client/Client.d.ts +131 -0
- package/api/resources/unstable/resources/customObjectInstances/client/Client.js +449 -0
- package/api/resources/unstable/resources/customObjectInstances/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/customObjectInstances/client/index.js +17 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.d.ts +30 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.js +5 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.d.ts +20 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.js +5 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.d.ts +17 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.js +5 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.d.ts +17 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.js +5 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.d.ts +20 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.js +5 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/index.d.ts +5 -0
- package/api/resources/unstable/resources/customObjectInstances/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/customObjectInstances/index.d.ts +2 -0
- package/api/resources/unstable/resources/customObjectInstances/index.js +18 -0
- package/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.d.ts +24 -0
- package/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
- package/api/resources/unstable/resources/customObjectInstances/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/customObjectInstances/types/index.js +17 -0
- package/api/resources/unstable/resources/dataAttributes/client/Client.d.ts +146 -0
- package/api/resources/unstable/resources/dataAttributes/client/Client.js +355 -0
- package/api/resources/unstable/resources/dataAttributes/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/dataAttributes/client/index.js +17 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +84 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +21 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.d.ts +18 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.js +5 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +49 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/index.d.ts +3 -0
- package/api/resources/unstable/resources/dataAttributes/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/dataAttributes/index.d.ts +2 -0
- package/api/resources/unstable/resources/dataAttributes/index.js +18 -0
- package/api/resources/unstable/resources/dataAttributes/types/DataAttribute.d.ts +63 -0
- package/api/resources/unstable/resources/dataAttributes/types/DataAttribute.js +20 -0
- package/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.d.ts +9 -0
- package/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.js +11 -0
- package/api/resources/unstable/resources/dataAttributes/types/index.d.ts +2 -0
- package/api/resources/unstable/resources/dataAttributes/types/index.js +18 -0
- package/api/resources/unstable/resources/dataEvents/client/Client.d.ts +136 -0
- package/api/resources/unstable/resources/dataEvents/client/Client.js +325 -0
- package/api/resources/unstable/resources/dataEvents/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/dataEvents/client/index.js +17 -0
- package/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.d.ts +28 -0
- package/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.js +5 -0
- package/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.d.ts +24 -0
- package/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.js +5 -0
- package/api/resources/unstable/resources/dataEvents/client/requests/index.d.ts +2 -0
- package/api/resources/unstable/resources/dataEvents/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/dataEvents/index.d.ts +2 -0
- package/api/resources/unstable/resources/dataEvents/index.js +18 -0
- package/api/resources/unstable/resources/dataEvents/types/DataEvent.d.ts +24 -0
- package/api/resources/unstable/resources/dataEvents/types/DataEvent.js +5 -0
- package/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.d.ts +10 -0
- package/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.js +5 -0
- package/api/resources/unstable/resources/dataEvents/types/index.d.ts +2 -0
- package/api/resources/unstable/resources/dataEvents/types/index.js +18 -0
- package/api/resources/unstable/resources/dataExport/client/Client.d.ts +114 -0
- package/{dist/api/resources/customChannelEvents → api/resources/unstable/resources/dataExport}/client/Client.js +112 -36
- package/api/resources/unstable/resources/dataExport/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/dataExport/client/index.js +17 -0
- package/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.d.ts +15 -0
- package/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.js +5 -0
- package/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
- package/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
- package/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.d.ts +15 -0
- package/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.js +5 -0
- package/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.d.ts +15 -0
- package/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.js +5 -0
- package/api/resources/unstable/resources/dataExport/client/requests/index.d.ts +4 -0
- package/api/resources/unstable/resources/dataExport/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/dataExport/index.d.ts +2 -0
- package/api/resources/unstable/resources/dataExport/index.js +18 -0
- package/api/resources/unstable/resources/dataExport/types/DataExport.d.ts +30 -0
- package/api/resources/unstable/resources/dataExport/types/DataExport.js +17 -0
- package/api/resources/unstable/resources/dataExport/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/dataExport/types/index.js +17 -0
- package/api/resources/unstable/resources/export/client/Client.d.ts +60 -0
- package/api/resources/unstable/resources/export/client/Client.js +198 -0
- package/api/resources/unstable/resources/export/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/export/client/index.js +17 -0
- package/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.d.ts +18 -0
- package/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.js +5 -0
- package/api/resources/unstable/resources/export/client/requests/index.d.ts +1 -0
- package/api/resources/unstable/resources/export/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/export/index.d.ts +2 -0
- package/api/resources/unstable/resources/export/index.js +18 -0
- package/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.ts +28 -0
- package/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.js +5 -0
- package/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.d.ts +9 -0
- package/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.js +5 -0
- package/api/resources/unstable/resources/export/types/index.d.ts +2 -0
- package/api/resources/unstable/resources/export/types/index.js +18 -0
- package/api/resources/unstable/resources/helpCenter/client/Client.d.ts +150 -0
- package/api/resources/unstable/resources/helpCenter/client/Client.js +542 -0
- package/api/resources/unstable/resources/helpCenter/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/helpCenter/client/index.js +17 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.d.ts +27 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.js +5 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.d.ts +15 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.js +5 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.d.ts +15 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.js +5 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.d.ts +15 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.js +5 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.d.ts +30 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.js +5 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/index.d.ts +5 -0
- package/api/resources/unstable/resources/helpCenter/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/helpCenter/index.d.ts +2 -0
- package/api/resources/unstable/resources/helpCenter/index.js +18 -0
- package/api/resources/unstable/resources/helpCenter/types/Collection.d.ts +34 -0
- package/api/resources/unstable/resources/helpCenter/types/Collection.js +5 -0
- package/api/resources/unstable/resources/helpCenter/types/HelpCenter.d.ts +22 -0
- package/api/resources/unstable/resources/helpCenter/types/HelpCenter.js +5 -0
- package/api/resources/unstable/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
- package/api/resources/unstable/resources/helpCenter/types/HelpCenterList.js +5 -0
- package/api/resources/unstable/resources/helpCenter/types/index.d.ts +3 -0
- package/api/resources/unstable/resources/helpCenter/types/index.js +19 -0
- package/api/resources/unstable/resources/index.d.ts +78 -0
- package/api/resources/unstable/resources/index.js +117 -0
- package/api/resources/unstable/resources/jobs/client/Client.d.ts +53 -0
- package/api/resources/unstable/resources/jobs/client/Client.js +142 -0
- package/api/resources/unstable/resources/jobs/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/jobs/client/index.js +17 -0
- package/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.d.ts +15 -0
- package/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.js +5 -0
- package/api/resources/unstable/resources/jobs/client/requests/index.d.ts +1 -0
- package/api/resources/unstable/resources/jobs/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/jobs/index.d.ts +2 -0
- package/api/resources/unstable/resources/jobs/index.js +18 -0
- package/api/resources/unstable/resources/jobs/types/Jobs.d.ts +33 -0
- package/api/resources/unstable/resources/jobs/types/Jobs.js +14 -0
- package/api/resources/unstable/resources/jobs/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/jobs/types/index.js +17 -0
- package/api/resources/unstable/resources/messages/client/Client.d.ts +212 -0
- package/api/resources/unstable/resources/messages/client/Client.js +370 -0
- package/api/resources/unstable/resources/messages/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/messages/client/index.js +17 -0
- package/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.d.ts +23 -0
- package/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.js +5 -0
- package/api/resources/unstable/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/unstable/resources/messages/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/messages/index.d.ts +2 -0
- package/api/resources/unstable/resources/messages/index.js +18 -0
- package/api/resources/unstable/resources/messages/types/Message.d.ts +35 -0
- package/api/resources/unstable/resources/messages/types/Message.js +16 -0
- package/api/resources/unstable/resources/messages/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/messages/types/index.js +17 -0
- package/api/resources/unstable/resources/news/client/Client.d.ts +179 -0
- package/api/resources/unstable/resources/news/client/Client.js +600 -0
- package/api/resources/unstable/resources/news/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/news/client/index.js +17 -0
- package/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.d.ts +15 -0
- package/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.js +5 -0
- package/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.d.ts +15 -0
- package/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.js +5 -0
- package/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.d.ts +15 -0
- package/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.js +5 -0
- package/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.d.ts +15 -0
- package/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.js +5 -0
- package/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.d.ts +34 -0
- package/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.js +5 -0
- package/api/resources/unstable/resources/news/client/requests/index.d.ts +5 -0
- package/api/resources/unstable/resources/news/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/news/index.d.ts +2 -0
- package/api/resources/unstable/resources/news/index.js +18 -0
- package/api/resources/unstable/resources/news/types/NewsItem.d.ts +45 -0
- package/api/resources/unstable/resources/news/types/NewsItem.js +13 -0
- package/api/resources/unstable/resources/news/types/Newsfeed.d.ts +18 -0
- package/api/resources/unstable/resources/news/types/Newsfeed.js +5 -0
- package/api/resources/unstable/resources/news/types/NewsfeedAssignment.d.ts +12 -0
- package/api/resources/unstable/resources/news/types/NewsfeedAssignment.js +5 -0
- package/api/resources/unstable/resources/news/types/index.d.ts +3 -0
- package/api/resources/unstable/resources/news/types/index.js +19 -0
- package/api/resources/unstable/resources/notes/client/Client.d.ts +102 -0
- package/api/resources/unstable/resources/notes/client/Client.js +297 -0
- package/api/resources/unstable/resources/notes/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/notes/client/index.js +17 -0
- package/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.d.ts +40 -0
- package/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.js +5 -0
- package/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.d.ts +15 -0
- package/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.js +5 -0
- package/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.d.ts +15 -0
- package/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.js +5 -0
- package/api/resources/unstable/resources/notes/client/requests/index.d.ts +3 -0
- package/api/resources/unstable/resources/notes/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/notes/index.d.ts +2 -0
- package/api/resources/unstable/resources/notes/index.js +18 -0
- package/api/resources/unstable/resources/notes/types/Note.d.ts +32 -0
- package/api/resources/unstable/resources/notes/types/Note.js +5 -0
- package/api/resources/unstable/resources/notes/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/notes/types/index.js +17 -0
- package/api/resources/unstable/resources/segments/client/Client.d.ts +66 -0
- package/api/resources/unstable/resources/segments/client/Client.js +207 -0
- package/api/resources/unstable/resources/segments/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/segments/client/index.js +17 -0
- package/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.d.ts +13 -0
- package/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.js +5 -0
- package/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.d.ts +15 -0
- package/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.js +5 -0
- package/api/resources/unstable/resources/segments/client/requests/index.d.ts +2 -0
- package/api/resources/unstable/resources/segments/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/segments/index.d.ts +2 -0
- package/api/resources/unstable/resources/segments/index.js +18 -0
- package/api/resources/unstable/resources/segments/types/Segment.d.ts +32 -0
- package/api/resources/unstable/resources/segments/types/Segment.js +13 -0
- package/api/resources/unstable/resources/segments/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/segments/types/index.js +17 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/Client.d.ts +97 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/Client.js +296 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/index.js +17 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.d.ts +35 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.js +5 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.d.ts +20 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.js +5 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/requests/index.d.ts +2 -0
- package/api/resources/unstable/resources/subscriptionTypes/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/subscriptionTypes/index.d.ts +2 -0
- package/api/resources/unstable/resources/subscriptionTypes/index.js +18 -0
- package/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.d.ts +49 -0
- package/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.js +25 -0
- package/api/resources/unstable/resources/subscriptionTypes/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/subscriptionTypes/types/index.js +17 -0
- package/api/resources/unstable/resources/switch/client/Client.d.ts +57 -0
- package/api/resources/unstable/resources/switch/client/Client.js +151 -0
- package/api/resources/unstable/resources/switch/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/switch/client/index.js +2 -0
- package/api/resources/unstable/resources/switch/index.d.ts +1 -0
- package/api/resources/unstable/resources/switch/index.js +17 -0
- package/api/resources/unstable/resources/tags/client/Client.d.ts +245 -0
- package/api/resources/unstable/resources/tags/client/Client.js +792 -0
- package/api/resources/unstable/resources/tags/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/tags/client/index.js +17 -0
- package/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.d.ts +30 -0
- package/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.d.ts +28 -0
- package/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.d.ts +28 -0
- package/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.d.ts +15 -0
- package/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.d.ts +20 -0
- package/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.d.ts +37 -0
- package/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.d.ts +37 -0
- package/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/FindTagRequest.d.ts +15 -0
- package/api/resources/unstable/resources/tags/client/requests/FindTagRequest.js +5 -0
- package/api/resources/unstable/resources/tags/client/requests/index.d.ts +8 -0
- package/api/resources/unstable/resources/tags/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/tags/index.d.ts +2 -0
- package/api/resources/unstable/resources/tags/index.js +18 -0
- package/api/resources/unstable/resources/tags/types/CreateTagRequestBody.d.ts +5 -0
- package/api/resources/unstable/resources/tags/types/CreateTagRequestBody.js +5 -0
- package/api/resources/unstable/resources/tags/types/Tag.d.ts +18 -0
- package/api/resources/unstable/resources/tags/types/Tag.js +5 -0
- package/api/resources/unstable/resources/tags/types/TagBasic.d.ts +14 -0
- package/api/resources/unstable/resources/tags/types/TagBasic.js +5 -0
- package/api/resources/unstable/resources/tags/types/index.d.ts +3 -0
- package/api/resources/unstable/resources/tags/types/index.js +19 -0
- package/api/resources/unstable/resources/teams/client/Client.d.ts +65 -0
- package/api/resources/unstable/resources/teams/client/Client.js +200 -0
- package/api/resources/unstable/resources/teams/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/teams/client/index.js +17 -0
- package/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.d.ts +15 -0
- package/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.js +5 -0
- package/api/resources/unstable/resources/teams/client/requests/index.d.ts +1 -0
- package/api/resources/unstable/resources/teams/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/teams/index.d.ts +2 -0
- package/api/resources/unstable/resources/teams/index.js +18 -0
- package/api/resources/unstable/resources/teams/types/Team.d.ts +18 -0
- package/api/resources/unstable/resources/teams/types/Team.js +5 -0
- package/api/resources/unstable/resources/teams/types/index.d.ts +1 -0
- package/api/resources/unstable/resources/teams/types/index.js +17 -0
- package/api/resources/unstable/resources/ticketStates/client/Client.d.ts +49 -0
- package/api/resources/unstable/resources/ticketStates/client/Client.js +135 -0
- package/api/resources/unstable/resources/ticketStates/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/ticketStates/client/index.js +2 -0
- package/api/resources/unstable/resources/ticketStates/index.d.ts +1 -0
- package/api/resources/unstable/resources/ticketStates/index.js +17 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/Client.d.ts +73 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/Client.js +226 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/index.js +17 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +54 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +18 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +41 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/index.d.ts +1 -0
- package/api/resources/unstable/resources/ticketTypeAttributes/index.js +17 -0
- package/api/resources/unstable/resources/ticketTypes/client/Client.d.ts +83 -0
- package/api/resources/unstable/resources/ticketTypes/client/Client.js +269 -0
- package/api/resources/unstable/resources/ticketTypes/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/ticketTypes/client/index.js +17 -0
- package/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.d.ts +15 -0
- package/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.js +5 -0
- package/api/resources/unstable/resources/ticketTypes/client/requests/index.d.ts +1 -0
- package/api/resources/unstable/resources/ticketTypes/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/ticketTypes/index.d.ts +1 -0
- package/api/resources/unstable/resources/ticketTypes/index.js +17 -0
- package/api/resources/unstable/resources/tickets/client/Client.d.ts +277 -0
- package/api/resources/unstable/resources/tickets/client/Client.js +622 -0
- package/api/resources/unstable/resources/tickets/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/tickets/client/index.js +17 -0
- package/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.d.ts +15 -0
- package/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.js +5 -0
- package/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.d.ts +17 -0
- package/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.js +5 -0
- package/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.d.ts +15 -0
- package/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.js +5 -0
- package/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.d.ts +59 -0
- package/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.js +5 -0
- package/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.d.ts +70 -0
- package/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
- package/api/resources/unstable/resources/tickets/client/requests/index.d.ts +5 -0
- package/api/resources/unstable/resources/tickets/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/tickets/index.d.ts +2 -0
- package/api/resources/unstable/resources/tickets/index.js +18 -0
- package/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.d.ts +14 -0
- package/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.js +5 -0
- package/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.d.ts +5 -0
- package/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.js +5 -0
- package/api/resources/unstable/resources/tickets/types/Ticket.d.ts +48 -0
- package/api/resources/unstable/resources/tickets/types/Ticket.js +14 -0
- package/api/resources/unstable/resources/tickets/types/TicketContacts.d.ts +13 -0
- package/api/resources/unstable/resources/tickets/types/TicketContacts.js +5 -0
- package/api/resources/unstable/resources/tickets/types/TicketPart.d.ts +107 -0
- package/api/resources/unstable/resources/tickets/types/TicketPart.js +21 -0
- package/api/resources/unstable/resources/tickets/types/TicketState.d.ts +30 -0
- package/api/resources/unstable/resources/tickets/types/TicketState.js +15 -0
- package/api/resources/unstable/resources/tickets/types/TicketStateDetailed.d.ts +44 -0
- package/api/resources/unstable/resources/tickets/types/TicketStateDetailed.js +15 -0
- package/api/resources/unstable/resources/tickets/types/TicketType.d.ts +52 -0
- package/api/resources/unstable/resources/tickets/types/TicketType.js +14 -0
- package/api/resources/unstable/resources/tickets/types/index.d.ts +8 -0
- package/api/resources/unstable/resources/tickets/types/index.js +24 -0
- package/api/resources/unstable/resources/visitors/client/Client.d.ts +105 -0
- package/api/resources/unstable/resources/visitors/client/Client.js +299 -0
- package/api/resources/unstable/resources/visitors/client/index.d.ts +1 -0
- package/api/resources/unstable/resources/visitors/client/index.js +17 -0
- package/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +21 -0
- package/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
- package/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.d.ts +15 -0
- package/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.js +5 -0
- package/api/resources/unstable/resources/visitors/client/requests/index.d.ts +2 -0
- package/api/resources/unstable/resources/visitors/client/requests/index.js +2 -0
- package/api/resources/unstable/resources/visitors/index.d.ts +1 -0
- package/api/resources/unstable/resources/visitors/index.js +17 -0
- package/api/resources/unstable/types/ActivityLog.d.ts +104 -0
- package/api/resources/unstable/types/ActivityLog.js +78 -0
- package/api/resources/unstable/types/ActivityLogList.d.ts +14 -0
- package/api/resources/unstable/types/ActivityLogList.js +5 -0
- package/api/resources/unstable/types/ActivityLogMetadata.d.ts +26 -0
- package/api/resources/unstable/types/ActivityLogMetadata.js +5 -0
- package/api/resources/unstable/types/AddressableList.d.ts +14 -0
- package/api/resources/unstable/types/AddressableList.js +5 -0
- package/api/resources/unstable/types/AdminList.d.ts +13 -0
- package/api/resources/unstable/types/AdminList.js +5 -0
- package/api/resources/unstable/types/AdminPriorityLevel.d.ts +12 -0
- package/api/resources/unstable/types/AdminPriorityLevel.js +5 -0
- package/api/resources/unstable/types/AdminReplyConversationRequest.d.ts +31 -0
- package/api/resources/unstable/types/AdminReplyConversationRequest.js +14 -0
- package/api/resources/unstable/types/AdminReplyTicketRequest.d.ts +37 -0
- package/api/resources/unstable/types/AdminReplyTicketRequest.js +14 -0
- package/api/resources/unstable/types/AdminWithApp.d.ts +44 -0
- package/api/resources/unstable/types/AdminWithApp.js +5 -0
- package/api/resources/unstable/types/App.d.ts +22 -0
- package/api/resources/unstable/types/App.js +5 -0
- package/api/resources/unstable/types/ArticleContent.d.ts +36 -0
- package/api/resources/unstable/types/ArticleContent.js +13 -0
- package/api/resources/unstable/types/ArticleList.d.ts +16 -0
- package/api/resources/unstable/types/ArticleList.js +5 -0
- package/api/resources/unstable/types/ArticleStatistics.d.ts +22 -0
- package/api/resources/unstable/types/ArticleStatistics.js +5 -0
- package/api/resources/unstable/types/ArticleTranslatedContent.d.ts +85 -0
- package/api/resources/unstable/types/ArticleTranslatedContent.js +5 -0
- package/api/resources/unstable/types/AssignConversationRequest.d.ts +22 -0
- package/api/resources/unstable/types/AssignConversationRequest.js +13 -0
- package/api/resources/unstable/types/AwayStatusReason.d.ts +20 -0
- package/api/resources/unstable/types/AwayStatusReason.js +5 -0
- package/api/resources/unstable/types/CloseConversationRequest.d.ts +13 -0
- package/api/resources/unstable/types/CloseConversationRequest.js +5 -0
- package/api/resources/unstable/types/CollectionList.d.ts +16 -0
- package/api/resources/unstable/types/CollectionList.js +5 -0
- package/api/resources/unstable/types/CompanyAttachedContacts.d.ts +16 -0
- package/api/resources/unstable/types/CompanyAttachedContacts.js +5 -0
- package/api/resources/unstable/types/CompanyAttachedSegments.d.ts +13 -0
- package/api/resources/unstable/types/CompanyAttachedSegments.js +5 -0
- package/api/resources/unstable/types/CompanyData.d.ts +14 -0
- package/api/resources/unstable/types/CompanyData.js +5 -0
- package/api/resources/unstable/types/CompanyList.d.ts +16 -0
- package/api/resources/unstable/types/CompanyList.js +5 -0
- package/api/resources/unstable/types/CompanyScroll.d.ts +17 -0
- package/api/resources/unstable/types/CompanyScroll.js +5 -0
- package/api/resources/unstable/types/ContactArchived.d.ts +11 -0
- package/api/resources/unstable/types/ContactArchived.js +5 -0
- package/api/resources/unstable/types/ContactAttachedCompanies.d.ts +16 -0
- package/api/resources/unstable/types/ContactAttachedCompanies.js +5 -0
- package/api/resources/unstable/types/ContactBlocked.d.ts +11 -0
- package/api/resources/unstable/types/ContactBlocked.js +5 -0
- package/api/resources/unstable/types/ContactCompanies.d.ts +17 -0
- package/api/resources/unstable/types/ContactCompanies.js +5 -0
- package/api/resources/unstable/types/ContactDeleted.d.ts +11 -0
- package/api/resources/unstable/types/ContactDeleted.js +5 -0
- package/api/resources/unstable/types/ContactList.d.ts +16 -0
- package/api/resources/unstable/types/ContactList.js +5 -0
- package/api/resources/unstable/types/ContactLocation.d.ts +16 -0
- package/api/resources/unstable/types/ContactLocation.js +5 -0
- package/api/resources/unstable/types/ContactNotes.d.ts +17 -0
- package/api/resources/unstable/types/ContactNotes.js +5 -0
- package/api/resources/unstable/types/ContactReference.d.ts +14 -0
- package/api/resources/unstable/types/ContactReference.js +5 -0
- package/api/resources/unstable/types/ContactReplyBaseRequest.d.ts +26 -0
- package/api/resources/unstable/types/ContactReplyBaseRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyConversationRequest.d.ts +5 -0
- package/api/resources/unstable/types/ContactReplyConversationRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyEmailRequest.d.ts +13 -0
- package/api/resources/unstable/types/ContactReplyEmailRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
- package/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyTicketEmailRequest.d.ts +11 -0
- package/api/resources/unstable/types/ContactReplyTicketEmailRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
- package/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyTicketRequest.d.ts +5 -0
- package/api/resources/unstable/types/ContactReplyTicketRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
- package/api/resources/unstable/types/ContactReplyTicketUserIdRequest.js +5 -0
- package/api/resources/unstable/types/ContactReplyUserIdRequest.d.ts +13 -0
- package/api/resources/unstable/types/ContactReplyUserIdRequest.js +5 -0
- package/api/resources/unstable/types/ContactSegments.d.ts +13 -0
- package/api/resources/unstable/types/ContactSegments.js +5 -0
- package/api/resources/unstable/types/ContactSocialProfiles.d.ts +11 -0
- package/api/resources/unstable/types/ContactSocialProfiles.js +5 -0
- package/api/resources/unstable/types/ContactSubscriptionTypes.d.ts +17 -0
- package/api/resources/unstable/types/ContactSubscriptionTypes.js +5 -0
- package/api/resources/unstable/types/ContactTags.d.ts +17 -0
- package/api/resources/unstable/types/ContactTags.js +5 -0
- package/api/resources/unstable/types/ContactUnarchived.d.ts +11 -0
- package/api/resources/unstable/types/ContactUnarchived.js +5 -0
- package/api/resources/unstable/types/ContentSourcesList.d.ts +11 -0
- package/api/resources/unstable/types/ContentSourcesList.js +5 -0
- package/api/resources/unstable/types/ConversationAttachmentFiles.d.ts +14 -0
- package/api/resources/unstable/types/ConversationAttachmentFiles.js +5 -0
- package/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.ts +20 -0
- package/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.js +5 -0
- package/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.d.ts +25 -0
- package/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.js +5 -0
- package/api/resources/unstable/types/ConversationContacts.d.ts +13 -0
- package/api/resources/unstable/types/ConversationContacts.js +5 -0
- package/api/resources/unstable/types/ConversationDeleted.d.ts +14 -0
- package/api/resources/unstable/types/ConversationDeleted.js +5 -0
- package/api/resources/unstable/types/ConversationFirstContactReply.d.ts +14 -0
- package/api/resources/unstable/types/ConversationFirstContactReply.js +5 -0
- package/api/resources/unstable/types/ConversationList.d.ts +16 -0
- package/api/resources/unstable/types/ConversationList.js +5 -0
- package/api/resources/unstable/types/ConversationPart.d.ts +52 -0
- package/api/resources/unstable/types/ConversationPart.js +14 -0
- package/api/resources/unstable/types/ConversationPartAuthor.d.ts +20 -0
- package/api/resources/unstable/types/ConversationPartAuthor.js +5 -0
- package/api/resources/unstable/types/ConversationPartMetadata.d.ts +22 -0
- package/api/resources/unstable/types/ConversationPartMetadata.js +5 -0
- package/api/resources/unstable/types/ConversationParts.d.ts +15 -0
- package/api/resources/unstable/types/ConversationParts.js +5 -0
- package/api/resources/unstable/types/ConversationRating.d.ts +17 -0
- package/api/resources/unstable/types/ConversationRating.js +5 -0
- package/api/resources/unstable/types/ConversationResponseTime.d.ts +14 -0
- package/api/resources/unstable/types/ConversationResponseTime.js +5 -0
- package/api/resources/unstable/types/ConversationSource.d.ts +44 -0
- package/api/resources/unstable/types/ConversationSource.js +21 -0
- package/api/resources/unstable/types/ConversationStatistics.d.ts +53 -0
- package/api/resources/unstable/types/ConversationStatistics.js +5 -0
- package/api/resources/unstable/types/ConversationTeammates.d.ts +13 -0
- package/api/resources/unstable/types/ConversationTeammates.js +5 -0
- package/api/resources/unstable/types/CreateOrUpdateTagRequest.d.ts +12 -0
- package/api/resources/unstable/types/CreateOrUpdateTagRequest.js +5 -0
- package/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
- package/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.js +5 -0
- package/api/resources/unstable/types/CreateTicketRequestBody.d.ts +43 -0
- package/api/resources/unstable/types/CreateTicketRequestBody.js +5 -0
- package/api/resources/unstable/types/CursorPages.d.ts +19 -0
- package/api/resources/unstable/types/CursorPages.js +5 -0
- package/api/resources/unstable/types/CustomActionFinished.d.ts +27 -0
- package/api/resources/unstable/types/CustomActionFinished.js +16 -0
- package/api/resources/unstable/types/CustomActionStarted.d.ts +15 -0
- package/api/resources/unstable/types/CustomActionStarted.js +5 -0
- package/api/resources/unstable/types/CustomAttributes.d.ts +11 -0
- package/api/resources/unstable/types/CustomAttributes.js +5 -0
- package/api/resources/unstable/types/CustomChannelAttribute.d.ts +9 -0
- package/api/resources/unstable/types/CustomChannelAttribute.js +5 -0
- package/api/resources/unstable/types/CustomChannelBaseEvent.d.ts +11 -0
- package/api/resources/unstable/types/CustomChannelBaseEvent.js +5 -0
- package/api/resources/unstable/types/CustomChannelContact.d.ts +23 -0
- package/api/resources/unstable/types/CustomChannelContact.js +13 -0
- package/api/resources/unstable/types/CustomChannelNotificationResponse.d.ts +13 -0
- package/api/resources/unstable/types/CustomChannelNotificationResponse.js +5 -0
- package/api/resources/unstable/types/CustomObjectInstanceDeleted.d.ts +14 -0
- package/api/resources/unstable/types/CustomObjectInstanceDeleted.js +5 -0
- package/api/resources/unstable/types/CustomObjectInstanceList.d.ts +12 -0
- package/api/resources/unstable/types/CustomObjectInstanceList.js +5 -0
- package/api/resources/unstable/types/CustomerRequest.d.ts +10 -0
- package/api/resources/unstable/types/CustomerRequest.js +5 -0
- package/api/resources/unstable/types/DataAttributeList.d.ts +13 -0
- package/api/resources/unstable/types/DataAttributeList.js +5 -0
- package/api/resources/unstable/types/DataEventList.d.ts +24 -0
- package/api/resources/unstable/types/DataEventList.js +5 -0
- package/api/resources/unstable/types/DataEventSummary.d.ts +19 -0
- package/api/resources/unstable/types/DataEventSummary.js +5 -0
- package/api/resources/unstable/types/DataEventSummaryItem.d.ts +18 -0
- package/api/resources/unstable/types/DataEventSummaryItem.js +5 -0
- package/api/resources/unstable/types/DataExportCsv.d.ts +60 -0
- package/api/resources/unstable/types/DataExportCsv.js +5 -0
- package/api/resources/unstable/types/Datetime.d.ts +10 -0
- package/api/resources/unstable/types/Datetime.js +5 -0
- package/api/resources/unstable/types/DeletedArticleObject.d.ts +14 -0
- package/api/resources/unstable/types/DeletedArticleObject.js +5 -0
- package/api/resources/unstable/types/DeletedCollectionObject.d.ts +14 -0
- package/api/resources/unstable/types/DeletedCollectionObject.js +5 -0
- package/api/resources/unstable/types/DeletedCompanyObject.d.ts +14 -0
- package/api/resources/unstable/types/DeletedCompanyObject.js +5 -0
- package/api/resources/unstable/types/DeletedObject.d.ts +14 -0
- package/api/resources/unstable/types/DeletedObject.js +5 -0
- package/api/resources/unstable/types/EmailAddressHeader.d.ts +14 -0
- package/api/resources/unstable/types/EmailAddressHeader.js +5 -0
- package/api/resources/unstable/types/EmailMessageMetadata.d.ts +13 -0
- package/api/resources/unstable/types/EmailMessageMetadata.js +5 -0
- package/api/resources/unstable/types/Error_.d.ts +27 -0
- package/api/resources/unstable/types/Error_.js +5 -0
- package/api/resources/unstable/types/EventDetails.d.ts +5 -0
- package/api/resources/unstable/types/EventDetails.js +5 -0
- package/api/resources/unstable/types/FileAttribute.d.ts +21 -0
- package/api/resources/unstable/types/FileAttribute.js +5 -0
- package/api/resources/unstable/types/GroupContent.d.ts +14 -0
- package/api/resources/unstable/types/GroupContent.js +5 -0
- package/api/resources/unstable/types/GroupTranslatedContent.d.ts +85 -0
- package/api/resources/unstable/types/GroupTranslatedContent.js +5 -0
- package/api/resources/unstable/types/IntercomVersion.d.ts +27 -0
- package/api/resources/unstable/types/IntercomVersion.js +26 -0
- package/api/resources/unstable/types/IntercomVersionUnstable.d.ts +7 -0
- package/api/resources/unstable/types/IntercomVersionUnstable.js +5 -0
- package/api/resources/unstable/types/LinkedObject.d.ts +24 -0
- package/api/resources/unstable/types/LinkedObject.js +13 -0
- package/api/resources/unstable/types/LinkedObjectList.d.ts +17 -0
- package/api/resources/unstable/types/LinkedObjectList.js +5 -0
- package/api/resources/unstable/types/MultipleFilterSearchRequest.d.ts +29 -0
- package/api/resources/unstable/types/MultipleFilterSearchRequest.js +13 -0
- package/api/resources/unstable/types/NewsItemRequest.d.ts +35 -0
- package/api/resources/unstable/types/NewsItemRequest.js +13 -0
- package/api/resources/unstable/types/NotFoundErrorBody.d.ts +22 -0
- package/api/resources/unstable/types/NotFoundErrorBody.js +5 -0
- package/api/resources/unstable/types/NoteList.d.ts +16 -0
- package/api/resources/unstable/types/NoteList.js +5 -0
- package/api/resources/unstable/types/OpenConversationRequest.d.ts +10 -0
- package/api/resources/unstable/types/OpenConversationRequest.js +5 -0
- package/api/resources/unstable/types/OperatorWorkflowEvent.d.ts +22 -0
- package/api/resources/unstable/types/OperatorWorkflowEvent.js +5 -0
- package/api/resources/unstable/types/PagesLink.d.ts +16 -0
- package/api/resources/unstable/types/PagesLink.js +5 -0
- package/api/resources/unstable/types/PaginatedResponse.d.ts +26 -0
- package/api/resources/unstable/types/PaginatedResponse.js +13 -0
- package/api/resources/unstable/types/PaginatedResponseDataItem.d.ts +13 -0
- package/api/resources/unstable/types/PaginatedResponseDataItem.js +5 -0
- package/api/resources/unstable/types/PartAttachment.d.ts +22 -0
- package/api/resources/unstable/types/PartAttachment.js +5 -0
- package/api/resources/unstable/types/PhoneSwitch.d.ts +12 -0
- package/api/resources/unstable/types/PhoneSwitch.js +5 -0
- package/api/resources/unstable/types/QuickReplyOption.d.ts +9 -0
- package/api/resources/unstable/types/QuickReplyOption.js +5 -0
- package/api/resources/unstable/types/Recipient.d.ts +22 -0
- package/api/resources/unstable/types/Recipient.js +13 -0
- package/api/resources/unstable/types/RedactConversationRequest.d.ts +27 -0
- package/api/resources/unstable/types/RedactConversationRequest.js +5 -0
- package/api/resources/unstable/types/Reference.d.ts +12 -0
- package/api/resources/unstable/types/Reference.js +5 -0
- package/api/resources/unstable/types/ReplyConversationRequestBody.d.ts +5 -0
- package/api/resources/unstable/types/ReplyConversationRequestBody.js +5 -0
- package/api/resources/unstable/types/SearchRequest.d.ts +14 -0
- package/api/resources/unstable/types/SearchRequest.js +5 -0
- package/api/resources/unstable/types/SegmentList.d.ts +15 -0
- package/api/resources/unstable/types/SegmentList.js +5 -0
- package/api/resources/unstable/types/SingleFilterSearchRequest.d.ts +32 -0
- package/api/resources/unstable/types/SingleFilterSearchRequest.js +17 -0
- package/api/resources/unstable/types/SlaApplied.d.ts +35 -0
- package/api/resources/unstable/types/SlaApplied.js +15 -0
- package/api/resources/unstable/types/SnoozeConversationRequest.d.ts +12 -0
- package/api/resources/unstable/types/SnoozeConversationRequest.js +5 -0
- package/api/resources/unstable/types/SocialProfile.d.ts +14 -0
- package/api/resources/unstable/types/SocialProfile.js +5 -0
- package/api/resources/unstable/types/StartingAfterPaging.d.ts +9 -0
- package/api/resources/unstable/types/StartingAfterPaging.js +5 -0
- package/api/resources/unstable/types/SubscriptionTypeList.d.ts +13 -0
- package/api/resources/unstable/types/SubscriptionTypeList.js +5 -0
- package/api/resources/unstable/types/TagCompanyRequest.d.ts +23 -0
- package/api/resources/unstable/types/TagCompanyRequest.js +5 -0
- package/api/resources/unstable/types/TagList.d.ts +13 -0
- package/api/resources/unstable/types/TagList.js +5 -0
- package/api/resources/unstable/types/TagMultipleUsersRequest.d.ts +20 -0
- package/api/resources/unstable/types/TagMultipleUsersRequest.js +5 -0
- package/api/resources/unstable/types/Tags.d.ts +13 -0
- package/api/resources/unstable/types/Tags.js +5 -0
- package/api/resources/unstable/types/TeamList.d.ts +13 -0
- package/api/resources/unstable/types/TeamList.js +5 -0
- package/api/resources/unstable/types/TeamPriorityLevel.d.ts +12 -0
- package/api/resources/unstable/types/TeamPriorityLevel.js +5 -0
- package/api/resources/unstable/types/TicketCustomAttributes.d.ts +11 -0
- package/api/resources/unstable/types/TicketCustomAttributes.js +5 -0
- package/api/resources/unstable/types/TicketList.d.ts +16 -0
- package/api/resources/unstable/types/TicketList.js +5 -0
- package/api/resources/unstable/types/TicketPartAuthor.d.ts +28 -0
- package/api/resources/unstable/types/TicketPartAuthor.js +15 -0
- package/api/resources/unstable/types/TicketParts.d.ts +15 -0
- package/api/resources/unstable/types/TicketParts.js +5 -0
- package/api/resources/unstable/types/TicketReply.d.ts +37 -0
- package/api/resources/unstable/types/TicketReply.js +14 -0
- package/api/resources/unstable/types/TicketRequestCustomAttributes.d.ts +10 -0
- package/api/resources/unstable/types/TicketRequestCustomAttributes.js +5 -0
- package/api/resources/unstable/types/TicketStateList.d.ts +13 -0
- package/api/resources/unstable/types/TicketStateList.js +5 -0
- package/api/resources/unstable/types/TicketTypeAttribute.d.ts +42 -0
- package/api/resources/unstable/types/TicketTypeAttribute.js +5 -0
- package/api/resources/unstable/types/TicketTypeAttributeList.d.ts +13 -0
- package/api/resources/unstable/types/TicketTypeAttributeList.js +5 -0
- package/api/resources/unstable/types/TicketTypeList.d.ts +13 -0
- package/api/resources/unstable/types/TicketTypeList.js +5 -0
- package/api/resources/unstable/types/Translation.d.ts +14 -0
- package/api/resources/unstable/types/Translation.js +5 -0
- package/api/resources/unstable/types/UntagCompanyRequest.d.ts +25 -0
- package/api/resources/unstable/types/UntagCompanyRequest.js +5 -0
- package/api/resources/unstable/types/UpdateArticleRequestBody.d.ts +34 -0
- package/api/resources/unstable/types/UpdateArticleRequestBody.js +13 -0
- package/api/resources/unstable/types/UpdateTicketTypeRequestBody.d.ts +32 -0
- package/api/resources/unstable/types/UpdateTicketTypeRequestBody.js +14 -0
- package/api/resources/unstable/types/Visitor.d.ts +128 -0
- package/api/resources/unstable/types/Visitor.js +5 -0
- package/api/resources/unstable/types/VisitorDeletedObject.d.ts +14 -0
- package/api/resources/unstable/types/VisitorDeletedObject.js +5 -0
- package/api/resources/unstable/types/WhatsappMessageStatusList.d.ts +65 -0
- package/api/resources/unstable/types/WhatsappMessageStatusList.js +21 -0
- package/api/resources/unstable/types/index.d.ts +145 -0
- package/api/resources/unstable/types/index.js +161 -0
- package/api/resources/visitors/client/Client.d.ts +6 -3
- package/api/resources/visitors/client/Client.js +29 -11
- package/api/types/CreateContactRequestTwo.d.ts +4 -0
- package/api/types/CreateContactRequestTwo.js +5 -0
- package/api/types/CreateDataEventRequestTwo.d.ts +4 -0
- package/api/types/CreateDataEventRequestTwo.js +5 -0
- package/api/types/CreateMessageRequestTwo.d.ts +4 -0
- package/api/types/CreateMessageRequestTwo.js +5 -0
- package/api/{resources/tickets/client/requests → types}/CreateTicketRequest.d.ts +2 -12
- package/api/types/CreateTicketRequest.js +5 -0
- package/api/types/Metadata.d.ts +5 -0
- package/api/types/Metadata.js +5 -0
- package/api/types/UpdateVisitorRequestOne.d.ts +4 -0
- package/api/types/UpdateVisitorRequestOne.js +5 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/Fetcher.js +7 -0
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/core/pagination/Page.d.ts +5 -2
- package/core/pagination/Page.js +5 -2
- package/core/pagination/Pageable.d.ts +2 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +2 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +2 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +2 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -1
- package/dist/api/errors/UnprocessableEntityError.js +2 -1
- package/dist/api/resources/admins/client/Client.d.ts +10 -5
- package/dist/api/resources/admins/client/Client.js +46 -16
- package/dist/api/resources/articles/client/Client.d.ts +10 -5
- package/dist/api/resources/articles/client/Client.js +61 -26
- package/dist/api/resources/companies/client/Client.d.ts +18 -9
- package/dist/api/resources/companies/client/Client.js +115 -51
- package/dist/api/resources/contacts/client/Client.d.ts +24 -12
- package/dist/api/resources/contacts/client/Client.js +148 -58
- package/dist/api/resources/conversations/client/Client.d.ts +20 -10
- package/dist/api/resources/conversations/client/Client.js +136 -60
- package/dist/api/resources/dataAttributes/client/Client.d.ts +6 -3
- package/dist/api/resources/dataAttributes/client/Client.js +32 -14
- package/dist/api/resources/dataExport/client/Client.d.ts +8 -4
- package/dist/api/resources/dataExport/client/Client.js +32 -8
- package/dist/api/resources/events/client/Client.d.ts +6 -3
- package/dist/api/resources/events/client/Client.js +28 -10
- package/dist/api/resources/helpCenters/client/Client.d.ts +2 -1
- package/dist/api/resources/helpCenters/client/Client.js +21 -10
- package/dist/api/resources/helpCenters/resources/collections/client/Client.d.ts +8 -4
- package/dist/api/resources/helpCenters/resources/collections/client/Client.js +51 -22
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/api/resources/messages/client/Client.d.ts +2 -1
- package/dist/api/resources/messages/client/Client.js +12 -6
- package/dist/api/resources/news/resources/feeds/client/Client.d.ts +6 -3
- package/dist/api/resources/news/resources/feeds/client/Client.js +27 -9
- package/dist/api/resources/news/resources/items/client/Client.d.ts +10 -5
- package/dist/api/resources/news/resources/items/client/Client.js +48 -18
- package/dist/api/resources/notes/client/Client.d.ts +4 -2
- package/dist/api/resources/notes/client/Client.js +30 -13
- package/dist/api/resources/phoneCallRedirects/client/Client.d.ts +2 -1
- package/dist/api/resources/phoneCallRedirects/client/Client.js +11 -5
- package/dist/api/resources/segments/client/Client.d.ts +4 -2
- package/dist/api/resources/segments/client/Client.js +20 -8
- package/dist/api/resources/subscriptionTypes/client/Client.d.ts +2 -1
- package/dist/api/resources/subscriptionTypes/client/Client.js +9 -3
- package/dist/api/resources/tags/client/Client.d.ts +20 -10
- package/dist/api/resources/tags/client/Client.js +101 -41
- package/dist/api/resources/teams/client/Client.d.ts +4 -2
- package/dist/api/resources/teams/client/Client.js +19 -7
- package/dist/api/resources/ticketTypes/client/Client.d.ts +8 -4
- package/dist/api/resources/ticketTypes/client/Client.js +36 -12
- package/dist/api/resources/ticketTypes/resources/attributes/client/Client.d.ts +4 -2
- package/dist/api/resources/ticketTypes/resources/attributes/client/Client.js +18 -6
- package/dist/api/resources/tickets/client/Client.d.ts +8 -4
- package/dist/api/resources/tickets/client/Client.js +49 -20
- package/dist/api/resources/tickets/client/requests/index.d.ts +0 -1
- package/dist/api/resources/unstable/client/Client.d.ts +104 -0
- package/dist/api/resources/unstable/client/Client.js +152 -0
- package/dist/api/resources/unstable/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/client/index.js +2 -0
- package/dist/api/resources/unstable/errors/BadRequestError.d.ts +8 -0
- package/dist/api/resources/unstable/errors/BadRequestError.js +52 -0
- package/dist/api/resources/unstable/errors/ForbiddenError.d.ts +9 -0
- package/dist/api/resources/unstable/errors/ForbiddenError.js +52 -0
- package/dist/api/resources/unstable/errors/InternalServerError.d.ts +9 -0
- package/dist/api/resources/unstable/errors/InternalServerError.js +52 -0
- package/dist/api/resources/unstable/errors/NotFoundError.d.ts +8 -0
- package/dist/api/resources/unstable/errors/NotFoundError.js +52 -0
- package/dist/api/resources/unstable/errors/TooManyRequestsError.d.ts +9 -0
- package/dist/api/resources/unstable/errors/TooManyRequestsError.js +52 -0
- package/dist/api/resources/unstable/errors/UnauthorizedError.d.ts +9 -0
- package/dist/api/resources/unstable/errors/UnauthorizedError.js +52 -0
- package/dist/api/resources/unstable/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/resources/unstable/errors/UnprocessableEntityError.js +52 -0
- package/dist/api/resources/unstable/errors/index.d.ts +7 -0
- package/dist/api/resources/unstable/errors/index.js +23 -0
- package/dist/api/resources/unstable/index.d.ts +4 -0
- package/dist/api/resources/unstable/index.js +20 -0
- package/dist/api/resources/unstable/resources/admins/client/Client.d.ts +123 -0
- package/dist/api/resources/unstable/resources/admins/client/Client.js +418 -0
- package/dist/api/resources/unstable/resources/admins/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/admins/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/ListActivityLogsRequest.d.ts +20 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/ListActivityLogsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.js +5 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.d.ts +38 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.js +5 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/admins/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/admins/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/admins/index.js +18 -0
- package/dist/api/resources/unstable/resources/admins/types/Admin.d.ts +32 -0
- package/dist/api/resources/unstable/resources/admins/types/Admin.js +5 -0
- package/dist/api/resources/unstable/resources/admins/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/admins/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/aiAgent/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/aiAgent/index.js +17 -0
- package/dist/api/resources/unstable/resources/aiAgent/types/AiAgent.d.ts +35 -0
- package/dist/api/resources/unstable/resources/aiAgent/types/AiAgent.js +16 -0
- package/dist/api/resources/unstable/resources/aiAgent/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/aiAgent/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/aiContent/client/Client.d.ts +202 -0
- package/dist/api/resources/unstable/resources/aiContent/client/Client.js +735 -0
- package/dist/api/resources/unstable/resources/aiContent/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/aiContent/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.d.ts +25 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateContentImportSourceRequest.js +13 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.d.ts +29 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/CreateExternalPageRequest.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteContentImportSourceRequest.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/DeleteExternalPageRequest.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/GetContentImportSourceRequest.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/GetExternalPageRequest.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.d.ts +42 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateContentImportSourceRequest.js +18 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.d.ts +32 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/UpdateExternalPageRequest.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/index.d.ts +8 -0
- package/dist/api/resources/unstable/resources/aiContent/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/aiContent/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/aiContent/index.js +18 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSource.d.ts +43 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSource.js +18 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.d.ts +16 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ExternalPage.d.ts +36 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ExternalPage.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ExternalPagesList.d.ts +16 -0
- package/dist/api/resources/unstable/resources/aiContent/types/ExternalPagesList.js +5 -0
- package/dist/api/resources/unstable/resources/aiContent/types/index.d.ts +4 -0
- package/dist/api/resources/unstable/resources/aiContent/types/index.js +20 -0
- package/dist/api/resources/unstable/resources/aiContentSource/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/aiContentSource/index.js +17 -0
- package/dist/api/resources/unstable/resources/aiContentSource/types/ContentSource.d.ts +29 -0
- package/dist/api/resources/unstable/resources/aiContentSource/types/ContentSource.js +16 -0
- package/dist/api/resources/unstable/resources/aiContentSource/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/aiContentSource/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/articles/client/Client.d.ts +117 -0
- package/dist/api/resources/unstable/resources/articles/client/Client.js +417 -0
- package/dist/api/resources/unstable/resources/articles/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/articles/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/DeleteArticleRequest.js +5 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/RetrieveArticleRequest.js +5 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.d.ts +28 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/SearchArticlesRequest.js +5 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/articles/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/articles/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/articles/index.js +18 -0
- package/dist/api/resources/unstable/resources/articles/types/Article.d.ts +10 -0
- package/dist/api/resources/unstable/resources/articles/types/Article.js +5 -0
- package/dist/api/resources/unstable/resources/articles/types/ArticleListItem.d.ts +50 -0
- package/dist/api/resources/unstable/resources/articles/types/ArticleListItem.js +13 -0
- package/dist/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.d.ts +60 -0
- package/dist/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.js +29 -0
- package/dist/api/resources/unstable/resources/articles/types/ArticleSearchResponse.d.ts +27 -0
- package/dist/api/resources/unstable/resources/articles/types/ArticleSearchResponse.js +5 -0
- package/dist/api/resources/unstable/resources/articles/types/index.d.ts +4 -0
- package/dist/api/resources/unstable/resources/articles/types/index.js +20 -0
- package/dist/api/resources/unstable/resources/awayStatusReasons/client/Client.d.ts +49 -0
- package/dist/api/resources/unstable/resources/awayStatusReasons/client/Client.js +135 -0
- package/dist/api/resources/unstable/resources/awayStatusReasons/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/awayStatusReasons/client/index.js +2 -0
- package/dist/api/resources/unstable/resources/awayStatusReasons/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/awayStatusReasons/index.js +17 -0
- package/dist/api/resources/unstable/resources/companies/client/Client.d.ts +271 -0
- package/dist/api/resources/unstable/resources/companies/client/Client.js +908 -0
- package/dist/api/resources/unstable/resources/companies/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/companies/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.d.ts +30 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/AttachContactToACompanyRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/DeleteCompanyRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.d.ts +20 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/DetachContactFromACompanyRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.d.ts +23 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ListAllCompaniesRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedContactsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ListAttachedSegmentsForCompaniesRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveACompanyByIdRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.d.ts +38 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/RetrieveCompanyRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.d.ts +13 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/UpdateCompanyRequest.js +5 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/index.d.ts +10 -0
- package/dist/api/resources/unstable/resources/companies/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/companies/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/companies/index.js +18 -0
- package/dist/api/resources/unstable/resources/companies/types/Company.d.ts +72 -0
- package/dist/api/resources/unstable/resources/companies/types/Company.js +5 -0
- package/dist/api/resources/unstable/resources/companies/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/companies/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/contacts/client/Client.d.ts +395 -0
- package/dist/api/resources/unstable/resources/contacts/client/Client.js +1165 -0
- package/dist/api/resources/unstable/resources/contacts/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/contacts/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ArchiveContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/BlockContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/DeleteContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListCompaniesForAContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListSegmentsForAContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListSubscriptionsForAContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ListTagsForAContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactByExternalIdRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/ShowContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/UnarchiveContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.d.ts +49 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/index.d.ts +12 -0
- package/dist/api/resources/unstable/resources/contacts/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/contacts/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/contacts/index.js +18 -0
- package/dist/api/resources/unstable/resources/contacts/types/Contact.d.ts +103 -0
- package/dist/api/resources/unstable/resources/contacts/types/Contact.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/types/CreateContactResponse.d.ts +8 -0
- package/dist/api/resources/unstable/resources/contacts/types/CreateContactResponse.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/types/MergeContactResponse.d.ts +8 -0
- package/dist/api/resources/unstable/resources/contacts/types/MergeContactResponse.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.d.ts +8 -0
- package/dist/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/types/ShowContactResponse.d.ts +8 -0
- package/dist/api/resources/unstable/resources/contacts/types/ShowContactResponse.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/types/UpdateContactResponse.d.ts +8 -0
- package/dist/api/resources/unstable/resources/contacts/types/UpdateContactResponse.js +5 -0
- package/dist/api/resources/unstable/resources/contacts/types/index.d.ts +6 -0
- package/dist/api/resources/unstable/resources/contacts/types/index.js +22 -0
- package/dist/api/resources/unstable/resources/conversations/client/Client.d.ts +545 -0
- package/dist/api/resources/unstable/resources/conversations/client/Client.js +1218 -0
- package/dist/api/resources/unstable/resources/conversations/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/conversations/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +44 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +26 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.d.ts +48 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/CreateConversationRequest.js +17 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/DeleteConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +44 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.d.ts +17 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ListConversationsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.d.ts +62 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.d.ts +77 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/ReplyConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.d.ts +20 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/RetrieveConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.d.ts +53 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/index.d.ts +10 -0
- package/dist/api/resources/unstable/resources/conversations/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/conversations/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/conversations/index.js +18 -0
- package/dist/api/resources/unstable/resources/conversations/types/Conversation.d.ts +68 -0
- package/dist/api/resources/unstable/resources/conversations/types/Conversation.js +18 -0
- package/dist/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.d.ts +19 -0
- package/dist/api/resources/unstable/resources/conversations/types/ManageConversationRequestBody.js +5 -0
- package/dist/api/resources/unstable/resources/conversations/types/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/conversations/types/index.js +18 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/Client.d.ts +144 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/Client.js +408 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.d.ts +24 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyAttributeCollectedRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.d.ts +22 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyNewMessageRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.d.ts +22 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/NotifyQuickReplySelectedRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/customChannelEvents/index.js +17 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/Client.d.ts +131 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/Client.js +449 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.d.ts +30 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/CreateOrUpdateCustomObjectInstanceRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.d.ts +20 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByExternalIdRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.d.ts +17 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/DeleteCustomObjectInstancesByIdRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.d.ts +17 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByExternalIdRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.d.ts +20 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/GetCustomObjectInstancesByIdRequest.js +5 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/index.d.ts +5 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/index.js +18 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.d.ts +24 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/customObjectInstances/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/Client.d.ts +146 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/Client.js +355 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +84 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +21 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.d.ts +18 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/LisDataAttributesRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +49 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/dataAttributes/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/dataAttributes/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/dataAttributes/index.js +18 -0
- package/dist/api/resources/unstable/resources/dataAttributes/types/DataAttribute.d.ts +63 -0
- package/dist/api/resources/unstable/resources/dataAttributes/types/DataAttribute.js +20 -0
- package/dist/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.d.ts +9 -0
- package/dist/api/resources/unstable/resources/dataAttributes/types/LisDataAttributesRequestModel.js +11 -0
- package/dist/api/resources/unstable/resources/dataAttributes/types/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/dataAttributes/types/index.js +18 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/Client.d.ts +136 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/Client.js +325 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.d.ts +28 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.d.ts +24 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/requests/LisDataEventsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/requests/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/dataEvents/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/dataEvents/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/dataEvents/index.js +18 -0
- package/dist/api/resources/unstable/resources/dataEvents/types/DataEvent.d.ts +24 -0
- package/dist/api/resources/unstable/resources/dataEvents/types/DataEvent.js +5 -0
- package/dist/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.d.ts +10 -0
- package/dist/api/resources/unstable/resources/dataEvents/types/LisDataEventsRequestFilter.js +5 -0
- package/dist/api/resources/unstable/resources/dataEvents/types/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/dataEvents/types/index.js +18 -0
- package/dist/api/resources/unstable/resources/dataExport/client/Client.d.ts +114 -0
- package/{api/resources/customChannelEvents → dist/api/resources/unstable/resources/dataExport}/client/Client.js +112 -36
- package/dist/api/resources/unstable/resources/dataExport/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/dataExport/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/CancelDataExportRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/DownloadDataExportRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/GetDataExportRequest.js +5 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/index.d.ts +4 -0
- package/dist/api/resources/unstable/resources/dataExport/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/dataExport/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/dataExport/index.js +18 -0
- package/dist/api/resources/unstable/resources/dataExport/types/DataExport.d.ts +30 -0
- package/dist/api/resources/unstable/resources/dataExport/types/DataExport.js +17 -0
- package/dist/api/resources/unstable/resources/dataExport/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/dataExport/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/export/client/Client.d.ts +60 -0
- package/dist/api/resources/unstable/resources/export/client/Client.js +198 -0
- package/dist/api/resources/unstable/resources/export/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/export/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.d.ts +18 -0
- package/dist/api/resources/unstable/resources/export/client/requests/PostExportReportingDataEnqueueRequest.js +5 -0
- package/dist/api/resources/unstable/resources/export/client/requests/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/export/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/export/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/export/index.js +18 -0
- package/dist/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.ts +28 -0
- package/dist/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.js +5 -0
- package/dist/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.d.ts +9 -0
- package/dist/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.js +5 -0
- package/dist/api/resources/unstable/resources/export/types/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/export/types/index.js +18 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/Client.d.ts +150 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/Client.js +542 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.d.ts +27 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/CreateCollectionRequest.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/DeleteCollectionRequest.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveCollectionRequest.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/RetrieveHelpCenterRequest.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.d.ts +30 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/index.d.ts +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/helpCenter/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/helpCenter/index.js +18 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/Collection.d.ts +34 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/Collection.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenter.d.ts +22 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenter.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/HelpCenterList.js +5 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/helpCenter/types/index.js +19 -0
- package/dist/api/resources/unstable/resources/index.d.ts +78 -0
- package/dist/api/resources/unstable/resources/index.js +117 -0
- package/dist/api/resources/unstable/resources/jobs/client/Client.d.ts +53 -0
- package/dist/api/resources/unstable/resources/jobs/client/Client.js +142 -0
- package/dist/api/resources/unstable/resources/jobs/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/jobs/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/jobs/client/requests/JobsStatusRequest.js +5 -0
- package/dist/api/resources/unstable/resources/jobs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/jobs/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/jobs/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/jobs/index.js +18 -0
- package/dist/api/resources/unstable/resources/jobs/types/Jobs.d.ts +33 -0
- package/dist/api/resources/unstable/resources/jobs/types/Jobs.js +14 -0
- package/dist/api/resources/unstable/resources/jobs/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/jobs/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/messages/client/Client.d.ts +212 -0
- package/dist/api/resources/unstable/resources/messages/client/Client.js +370 -0
- package/dist/api/resources/unstable/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/messages/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.d.ts +23 -0
- package/dist/api/resources/unstable/resources/messages/client/requests/GetWhatsAppMessageStatusRequest.js +5 -0
- package/dist/api/resources/unstable/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/messages/index.js +18 -0
- package/dist/api/resources/unstable/resources/messages/types/Message.d.ts +35 -0
- package/dist/api/resources/unstable/resources/messages/types/Message.js +16 -0
- package/dist/api/resources/unstable/resources/messages/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/messages/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/news/client/Client.d.ts +179 -0
- package/dist/api/resources/unstable/resources/news/client/Client.js +600 -0
- package/dist/api/resources/unstable/resources/news/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/news/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/news/client/requests/DeleteNewsItemRequest.js +5 -0
- package/dist/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/news/client/requests/ListLiveNewsfeedItemsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsItemRequest.js +5 -0
- package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/news/client/requests/RetrieveNewsfeedRequest.js +5 -0
- package/dist/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.d.ts +34 -0
- package/dist/api/resources/unstable/resources/news/client/requests/UpdateNewsItemRequest.js +5 -0
- package/dist/api/resources/unstable/resources/news/client/requests/index.d.ts +5 -0
- package/dist/api/resources/unstable/resources/news/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/news/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/news/index.js +18 -0
- package/dist/api/resources/unstable/resources/news/types/NewsItem.d.ts +45 -0
- package/dist/api/resources/unstable/resources/news/types/NewsItem.js +13 -0
- package/dist/api/resources/unstable/resources/news/types/Newsfeed.d.ts +18 -0
- package/dist/api/resources/unstable/resources/news/types/Newsfeed.js +5 -0
- package/dist/api/resources/unstable/resources/news/types/NewsfeedAssignment.d.ts +12 -0
- package/dist/api/resources/unstable/resources/news/types/NewsfeedAssignment.js +5 -0
- package/dist/api/resources/unstable/resources/news/types/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/news/types/index.js +19 -0
- package/dist/api/resources/unstable/resources/notes/client/Client.d.ts +102 -0
- package/dist/api/resources/unstable/resources/notes/client/Client.js +297 -0
- package/dist/api/resources/unstable/resources/notes/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/notes/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.d.ts +40 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/CreateNoteRequest.js +5 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/ListNotesRequest.js +5 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/RetrieveNoteRequest.js +5 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/notes/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/notes/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/notes/index.js +18 -0
- package/dist/api/resources/unstable/resources/notes/types/Note.d.ts +32 -0
- package/dist/api/resources/unstable/resources/notes/types/Note.js +5 -0
- package/dist/api/resources/unstable/resources/notes/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/notes/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/segments/client/Client.d.ts +66 -0
- package/dist/api/resources/unstable/resources/segments/client/Client.js +207 -0
- package/dist/api/resources/unstable/resources/segments/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/segments/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.d.ts +13 -0
- package/dist/api/resources/unstable/resources/segments/client/requests/ListSegmentsRequest.js +5 -0
- package/dist/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/segments/client/requests/RetrieveSegmentRequest.js +5 -0
- package/dist/api/resources/unstable/resources/segments/client/requests/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/segments/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/segments/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/segments/index.js +18 -0
- package/dist/api/resources/unstable/resources/segments/types/Segment.d.ts +32 -0
- package/dist/api/resources/unstable/resources/segments/types/Segment.js +13 -0
- package/dist/api/resources/unstable/resources/segments/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/segments/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/Client.d.ts +97 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/Client.js +296 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.d.ts +35 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.d.ts +20 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/DetachSubscriptionTypeToContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/index.js +18 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.d.ts +49 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.js +25 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/subscriptionTypes/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/switch/client/Client.d.ts +57 -0
- package/dist/api/resources/unstable/resources/switch/client/Client.js +151 -0
- package/dist/api/resources/unstable/resources/switch/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/switch/client/index.js +2 -0
- package/dist/api/resources/unstable/resources/switch/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/switch/index.js +17 -0
- package/dist/api/resources/unstable/resources/tags/client/Client.d.ts +245 -0
- package/dist/api/resources/unstable/resources/tags/client/Client.js +792 -0
- package/dist/api/resources/unstable/resources/tags/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/tags/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.d.ts +30 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.d.ts +28 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.d.ts +28 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DeleteTagRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.d.ts +20 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromContactRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.d.ts +37 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.d.ts +37 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/FindTagRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/FindTagRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/index.d.ts +8 -0
- package/dist/api/resources/unstable/resources/tags/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/tags/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/tags/index.js +18 -0
- package/dist/api/resources/unstable/resources/tags/types/CreateTagRequestBody.d.ts +5 -0
- package/dist/api/resources/unstable/resources/tags/types/CreateTagRequestBody.js +5 -0
- package/dist/api/resources/unstable/resources/tags/types/Tag.d.ts +18 -0
- package/dist/api/resources/unstable/resources/tags/types/Tag.js +5 -0
- package/dist/api/resources/unstable/resources/tags/types/TagBasic.d.ts +14 -0
- package/dist/api/resources/unstable/resources/tags/types/TagBasic.js +5 -0
- package/dist/api/resources/unstable/resources/tags/types/index.d.ts +3 -0
- package/dist/api/resources/unstable/resources/tags/types/index.js +19 -0
- package/dist/api/resources/unstable/resources/teams/client/Client.d.ts +65 -0
- package/dist/api/resources/unstable/resources/teams/client/Client.js +200 -0
- package/dist/api/resources/unstable/resources/teams/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/teams/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/teams/client/requests/RetrieveTeamRequest.js +5 -0
- package/dist/api/resources/unstable/resources/teams/client/requests/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/teams/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/teams/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/teams/index.js +18 -0
- package/dist/api/resources/unstable/resources/teams/types/Team.d.ts +18 -0
- package/dist/api/resources/unstable/resources/teams/types/Team.js +5 -0
- package/dist/api/resources/unstable/resources/teams/types/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/teams/types/index.js +17 -0
- package/dist/api/resources/unstable/resources/ticketStates/client/Client.d.ts +49 -0
- package/dist/api/resources/unstable/resources/ticketStates/client/Client.js +135 -0
- package/dist/api/resources/unstable/resources/ticketStates/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/ticketStates/client/index.js +2 -0
- package/dist/api/resources/unstable/resources/ticketStates/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/ticketStates/index.js +17 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/Client.d.ts +73 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/Client.js +226 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +54 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +18 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +41 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/ticketTypeAttributes/index.js +17 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/Client.d.ts +83 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/Client.js +269 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/requests/GetTicketTypeRequest.js +5 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/ticketTypes/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/ticketTypes/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/ticketTypes/index.js +17 -0
- package/dist/api/resources/unstable/resources/tickets/client/Client.d.ts +277 -0
- package/dist/api/resources/unstable/resources/tickets/client/Client.js +622 -0
- package/dist/api/resources/unstable/resources/tickets/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/tickets/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/DeleteTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.d.ts +17 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/EnqueueCreateTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/GetTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.d.ts +59 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/ReplyTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.d.ts +70 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/index.d.ts +5 -0
- package/dist/api/resources/unstable/resources/tickets/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/tickets/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/tickets/index.js +18 -0
- package/dist/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.d.ts +14 -0
- package/dist/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.d.ts +5 -0
- package/dist/api/resources/unstable/resources/tickets/types/ReplyTicketRequestBody.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/types/Ticket.d.ts +48 -0
- package/dist/api/resources/unstable/resources/tickets/types/Ticket.js +14 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketContacts.d.ts +13 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketContacts.js +5 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketPart.d.ts +107 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketPart.js +21 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketState.d.ts +30 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketState.js +15 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketStateDetailed.d.ts +44 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketStateDetailed.js +15 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketType.d.ts +52 -0
- package/dist/api/resources/unstable/resources/tickets/types/TicketType.js +14 -0
- package/dist/api/resources/unstable/resources/tickets/types/index.d.ts +8 -0
- package/dist/api/resources/unstable/resources/tickets/types/index.js +24 -0
- package/dist/api/resources/unstable/resources/visitors/client/Client.d.ts +105 -0
- package/dist/api/resources/unstable/resources/visitors/client/Client.js +299 -0
- package/dist/api/resources/unstable/resources/visitors/client/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/visitors/client/index.js +17 -0
- package/dist/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +21 -0
- package/dist/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
- package/dist/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.d.ts +15 -0
- package/dist/api/resources/unstable/resources/visitors/client/requests/RetrieveVisitorWithUserIdRequest.js +5 -0
- package/dist/api/resources/unstable/resources/visitors/client/requests/index.d.ts +2 -0
- package/dist/api/resources/unstable/resources/visitors/client/requests/index.js +2 -0
- package/dist/api/resources/unstable/resources/visitors/index.d.ts +1 -0
- package/dist/api/resources/unstable/resources/visitors/index.js +17 -0
- package/dist/api/resources/unstable/types/ActivityLog.d.ts +104 -0
- package/dist/api/resources/unstable/types/ActivityLog.js +78 -0
- package/dist/api/resources/unstable/types/ActivityLogList.d.ts +14 -0
- package/dist/api/resources/unstable/types/ActivityLogList.js +5 -0
- package/dist/api/resources/unstable/types/ActivityLogMetadata.d.ts +26 -0
- package/dist/api/resources/unstable/types/ActivityLogMetadata.js +5 -0
- package/dist/api/resources/unstable/types/AddressableList.d.ts +14 -0
- package/dist/api/resources/unstable/types/AddressableList.js +5 -0
- package/dist/api/resources/unstable/types/AdminList.d.ts +13 -0
- package/dist/api/resources/unstable/types/AdminList.js +5 -0
- package/dist/api/resources/unstable/types/AdminPriorityLevel.d.ts +12 -0
- package/dist/api/resources/unstable/types/AdminPriorityLevel.js +5 -0
- package/dist/api/resources/unstable/types/AdminReplyConversationRequest.d.ts +31 -0
- package/dist/api/resources/unstable/types/AdminReplyConversationRequest.js +14 -0
- package/dist/api/resources/unstable/types/AdminReplyTicketRequest.d.ts +37 -0
- package/dist/api/resources/unstable/types/AdminReplyTicketRequest.js +14 -0
- package/dist/api/resources/unstable/types/AdminWithApp.d.ts +44 -0
- package/dist/api/resources/unstable/types/AdminWithApp.js +5 -0
- package/dist/api/resources/unstable/types/App.d.ts +22 -0
- package/dist/api/resources/unstable/types/App.js +5 -0
- package/dist/api/resources/unstable/types/ArticleContent.d.ts +36 -0
- package/dist/api/resources/unstable/types/ArticleContent.js +13 -0
- package/dist/api/resources/unstable/types/ArticleList.d.ts +16 -0
- package/dist/api/resources/unstable/types/ArticleList.js +5 -0
- package/dist/api/resources/unstable/types/ArticleStatistics.d.ts +22 -0
- package/dist/api/resources/unstable/types/ArticleStatistics.js +5 -0
- package/dist/api/resources/unstable/types/ArticleTranslatedContent.d.ts +85 -0
- package/dist/api/resources/unstable/types/ArticleTranslatedContent.js +5 -0
- package/dist/api/resources/unstable/types/AssignConversationRequest.d.ts +22 -0
- package/dist/api/resources/unstable/types/AssignConversationRequest.js +13 -0
- package/dist/api/resources/unstable/types/AwayStatusReason.d.ts +20 -0
- package/dist/api/resources/unstable/types/AwayStatusReason.js +5 -0
- package/dist/api/resources/unstable/types/CloseConversationRequest.d.ts +13 -0
- package/dist/api/resources/unstable/types/CloseConversationRequest.js +5 -0
- package/dist/api/resources/unstable/types/CollectionList.d.ts +16 -0
- package/dist/api/resources/unstable/types/CollectionList.js +5 -0
- package/dist/api/resources/unstable/types/CompanyAttachedContacts.d.ts +16 -0
- package/dist/api/resources/unstable/types/CompanyAttachedContacts.js +5 -0
- package/dist/api/resources/unstable/types/CompanyAttachedSegments.d.ts +13 -0
- package/dist/api/resources/unstable/types/CompanyAttachedSegments.js +5 -0
- package/dist/api/resources/unstable/types/CompanyData.d.ts +14 -0
- package/dist/api/resources/unstable/types/CompanyData.js +5 -0
- package/dist/api/resources/unstable/types/CompanyList.d.ts +16 -0
- package/dist/api/resources/unstable/types/CompanyList.js +5 -0
- package/dist/api/resources/unstable/types/CompanyScroll.d.ts +17 -0
- package/dist/api/resources/unstable/types/CompanyScroll.js +5 -0
- package/dist/api/resources/unstable/types/ContactArchived.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactArchived.js +5 -0
- package/dist/api/resources/unstable/types/ContactAttachedCompanies.d.ts +16 -0
- package/dist/api/resources/unstable/types/ContactAttachedCompanies.js +5 -0
- package/dist/api/resources/unstable/types/ContactBlocked.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactBlocked.js +5 -0
- package/dist/api/resources/unstable/types/ContactCompanies.d.ts +17 -0
- package/dist/api/resources/unstable/types/ContactCompanies.js +5 -0
- package/dist/api/resources/unstable/types/ContactDeleted.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactDeleted.js +5 -0
- package/dist/api/resources/unstable/types/ContactList.d.ts +16 -0
- package/dist/api/resources/unstable/types/ContactList.js +5 -0
- package/dist/api/resources/unstable/types/ContactLocation.d.ts +16 -0
- package/dist/api/resources/unstable/types/ContactLocation.js +5 -0
- package/dist/api/resources/unstable/types/ContactNotes.d.ts +17 -0
- package/dist/api/resources/unstable/types/ContactNotes.js +5 -0
- package/dist/api/resources/unstable/types/ContactReference.d.ts +14 -0
- package/dist/api/resources/unstable/types/ContactReference.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyBaseRequest.d.ts +26 -0
- package/dist/api/resources/unstable/types/ContactReplyBaseRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyConversationRequest.d.ts +5 -0
- package/dist/api/resources/unstable/types/ContactReplyConversationRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyEmailRequest.d.ts +13 -0
- package/dist/api/resources/unstable/types/ContactReplyEmailRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
- package/dist/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketEmailRequest.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketEmailRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketRequest.d.ts +5 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactReplyTicketUserIdRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactReplyUserIdRequest.d.ts +13 -0
- package/dist/api/resources/unstable/types/ContactReplyUserIdRequest.js +5 -0
- package/dist/api/resources/unstable/types/ContactSegments.d.ts +13 -0
- package/dist/api/resources/unstable/types/ContactSegments.js +5 -0
- package/dist/api/resources/unstable/types/ContactSocialProfiles.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactSocialProfiles.js +5 -0
- package/dist/api/resources/unstable/types/ContactSubscriptionTypes.d.ts +17 -0
- package/dist/api/resources/unstable/types/ContactSubscriptionTypes.js +5 -0
- package/dist/api/resources/unstable/types/ContactTags.d.ts +17 -0
- package/dist/api/resources/unstable/types/ContactTags.js +5 -0
- package/dist/api/resources/unstable/types/ContactUnarchived.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContactUnarchived.js +5 -0
- package/dist/api/resources/unstable/types/ContentSourcesList.d.ts +11 -0
- package/dist/api/resources/unstable/types/ContentSourcesList.js +5 -0
- package/dist/api/resources/unstable/types/ConversationAttachmentFiles.d.ts +14 -0
- package/dist/api/resources/unstable/types/ConversationAttachmentFiles.js +5 -0
- package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.ts +20 -0
- package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.js +5 -0
- package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.d.ts +25 -0
- package/dist/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.js +5 -0
- package/dist/api/resources/unstable/types/ConversationContacts.d.ts +13 -0
- package/dist/api/resources/unstable/types/ConversationContacts.js +5 -0
- package/dist/api/resources/unstable/types/ConversationDeleted.d.ts +14 -0
- package/dist/api/resources/unstable/types/ConversationDeleted.js +5 -0
- package/dist/api/resources/unstable/types/ConversationFirstContactReply.d.ts +14 -0
- package/dist/api/resources/unstable/types/ConversationFirstContactReply.js +5 -0
- package/dist/api/resources/unstable/types/ConversationList.d.ts +16 -0
- package/dist/api/resources/unstable/types/ConversationList.js +5 -0
- package/dist/api/resources/unstable/types/ConversationPart.d.ts +52 -0
- package/dist/api/resources/unstable/types/ConversationPart.js +14 -0
- package/dist/api/resources/unstable/types/ConversationPartAuthor.d.ts +20 -0
- package/dist/api/resources/unstable/types/ConversationPartAuthor.js +5 -0
- package/dist/api/resources/unstable/types/ConversationPartMetadata.d.ts +22 -0
- package/dist/api/resources/unstable/types/ConversationPartMetadata.js +5 -0
- package/dist/api/resources/unstable/types/ConversationParts.d.ts +15 -0
- package/dist/api/resources/unstable/types/ConversationParts.js +5 -0
- package/dist/api/resources/unstable/types/ConversationRating.d.ts +17 -0
- package/dist/api/resources/unstable/types/ConversationRating.js +5 -0
- package/dist/api/resources/unstable/types/ConversationResponseTime.d.ts +14 -0
- package/dist/api/resources/unstable/types/ConversationResponseTime.js +5 -0
- package/dist/api/resources/unstable/types/ConversationSource.d.ts +44 -0
- package/dist/api/resources/unstable/types/ConversationSource.js +21 -0
- package/dist/api/resources/unstable/types/ConversationStatistics.d.ts +53 -0
- package/dist/api/resources/unstable/types/ConversationStatistics.js +5 -0
- package/dist/api/resources/unstable/types/ConversationTeammates.d.ts +13 -0
- package/dist/api/resources/unstable/types/ConversationTeammates.js +5 -0
- package/dist/api/resources/unstable/types/CreateOrUpdateTagRequest.d.ts +12 -0
- package/dist/api/resources/unstable/types/CreateOrUpdateTagRequest.js +5 -0
- package/dist/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
- package/dist/api/resources/unstable/types/CreateTicketReplyWithCommentRequest.js +5 -0
- package/dist/api/resources/unstable/types/CreateTicketRequestBody.d.ts +43 -0
- package/dist/api/resources/unstable/types/CreateTicketRequestBody.js +5 -0
- package/dist/api/resources/unstable/types/CursorPages.d.ts +19 -0
- package/dist/api/resources/unstable/types/CursorPages.js +5 -0
- package/dist/api/resources/unstable/types/CustomActionFinished.d.ts +27 -0
- package/dist/api/resources/unstable/types/CustomActionFinished.js +16 -0
- package/dist/api/resources/unstable/types/CustomActionStarted.d.ts +15 -0
- package/dist/api/resources/unstable/types/CustomActionStarted.js +5 -0
- package/dist/api/resources/unstable/types/CustomAttributes.d.ts +11 -0
- package/dist/api/resources/unstable/types/CustomAttributes.js +5 -0
- package/dist/api/resources/unstable/types/CustomChannelAttribute.d.ts +9 -0
- package/dist/api/resources/unstable/types/CustomChannelAttribute.js +5 -0
- package/dist/api/resources/unstable/types/CustomChannelBaseEvent.d.ts +11 -0
- package/dist/api/resources/unstable/types/CustomChannelBaseEvent.js +5 -0
- package/dist/api/resources/unstable/types/CustomChannelContact.d.ts +23 -0
- package/dist/api/resources/unstable/types/CustomChannelContact.js +13 -0
- package/dist/api/resources/unstable/types/CustomChannelNotificationResponse.d.ts +13 -0
- package/dist/api/resources/unstable/types/CustomChannelNotificationResponse.js +5 -0
- package/dist/api/resources/unstable/types/CustomObjectInstanceDeleted.d.ts +14 -0
- package/dist/api/resources/unstable/types/CustomObjectInstanceDeleted.js +5 -0
- package/dist/api/resources/unstable/types/CustomObjectInstanceList.d.ts +12 -0
- package/dist/api/resources/unstable/types/CustomObjectInstanceList.js +5 -0
- package/dist/api/resources/unstable/types/CustomerRequest.d.ts +10 -0
- package/dist/api/resources/unstable/types/CustomerRequest.js +5 -0
- package/dist/api/resources/unstable/types/DataAttributeList.d.ts +13 -0
- package/dist/api/resources/unstable/types/DataAttributeList.js +5 -0
- package/dist/api/resources/unstable/types/DataEventList.d.ts +24 -0
- package/dist/api/resources/unstable/types/DataEventList.js +5 -0
- package/dist/api/resources/unstable/types/DataEventSummary.d.ts +19 -0
- package/dist/api/resources/unstable/types/DataEventSummary.js +5 -0
- package/dist/api/resources/unstable/types/DataEventSummaryItem.d.ts +18 -0
- package/dist/api/resources/unstable/types/DataEventSummaryItem.js +5 -0
- package/dist/api/resources/unstable/types/DataExportCsv.d.ts +60 -0
- package/dist/api/resources/unstable/types/DataExportCsv.js +5 -0
- package/dist/api/resources/unstable/types/Datetime.d.ts +10 -0
- package/dist/api/resources/unstable/types/Datetime.js +5 -0
- package/dist/api/resources/unstable/types/DeletedArticleObject.d.ts +14 -0
- package/dist/api/resources/unstable/types/DeletedArticleObject.js +5 -0
- package/dist/api/resources/unstable/types/DeletedCollectionObject.d.ts +14 -0
- package/dist/api/resources/unstable/types/DeletedCollectionObject.js +5 -0
- package/dist/api/resources/unstable/types/DeletedCompanyObject.d.ts +14 -0
- package/dist/api/resources/unstable/types/DeletedCompanyObject.js +5 -0
- package/dist/api/resources/unstable/types/DeletedObject.d.ts +14 -0
- package/dist/api/resources/unstable/types/DeletedObject.js +5 -0
- package/dist/api/resources/unstable/types/EmailAddressHeader.d.ts +14 -0
- package/dist/api/resources/unstable/types/EmailAddressHeader.js +5 -0
- package/dist/api/resources/unstable/types/EmailMessageMetadata.d.ts +13 -0
- package/dist/api/resources/unstable/types/EmailMessageMetadata.js +5 -0
- package/dist/api/resources/unstable/types/Error_.d.ts +27 -0
- package/dist/api/resources/unstable/types/Error_.js +5 -0
- package/dist/api/resources/unstable/types/EventDetails.d.ts +5 -0
- package/dist/api/resources/unstable/types/EventDetails.js +5 -0
- package/dist/api/resources/unstable/types/FileAttribute.d.ts +21 -0
- package/dist/api/resources/unstable/types/FileAttribute.js +5 -0
- package/dist/api/resources/unstable/types/GroupContent.d.ts +14 -0
- package/dist/api/resources/unstable/types/GroupContent.js +5 -0
- package/dist/api/resources/unstable/types/GroupTranslatedContent.d.ts +85 -0
- package/dist/api/resources/unstable/types/GroupTranslatedContent.js +5 -0
- package/dist/api/resources/unstable/types/IntercomVersion.d.ts +27 -0
- package/dist/api/resources/unstable/types/IntercomVersion.js +26 -0
- package/dist/api/resources/unstable/types/IntercomVersionUnstable.d.ts +7 -0
- package/dist/api/resources/unstable/types/IntercomVersionUnstable.js +5 -0
- package/dist/api/resources/unstable/types/LinkedObject.d.ts +24 -0
- package/dist/api/resources/unstable/types/LinkedObject.js +13 -0
- package/dist/api/resources/unstable/types/LinkedObjectList.d.ts +17 -0
- package/dist/api/resources/unstable/types/LinkedObjectList.js +5 -0
- package/dist/api/resources/unstable/types/MultipleFilterSearchRequest.d.ts +29 -0
- package/dist/api/resources/unstable/types/MultipleFilterSearchRequest.js +13 -0
- package/dist/api/resources/unstable/types/NewsItemRequest.d.ts +35 -0
- package/dist/api/resources/unstable/types/NewsItemRequest.js +13 -0
- package/dist/api/resources/unstable/types/NotFoundErrorBody.d.ts +22 -0
- package/dist/api/resources/unstable/types/NotFoundErrorBody.js +5 -0
- package/dist/api/resources/unstable/types/NoteList.d.ts +16 -0
- package/dist/api/resources/unstable/types/NoteList.js +5 -0
- package/dist/api/resources/unstable/types/OpenConversationRequest.d.ts +10 -0
- package/dist/api/resources/unstable/types/OpenConversationRequest.js +5 -0
- package/dist/api/resources/unstable/types/OperatorWorkflowEvent.d.ts +22 -0
- package/dist/api/resources/unstable/types/OperatorWorkflowEvent.js +5 -0
- package/dist/api/resources/unstable/types/PagesLink.d.ts +16 -0
- package/dist/api/resources/unstable/types/PagesLink.js +5 -0
- package/dist/api/resources/unstable/types/PaginatedResponse.d.ts +26 -0
- package/dist/api/resources/unstable/types/PaginatedResponse.js +13 -0
- package/dist/api/resources/unstable/types/PaginatedResponseDataItem.d.ts +13 -0
- package/dist/api/resources/unstable/types/PaginatedResponseDataItem.js +5 -0
- package/dist/api/resources/unstable/types/PartAttachment.d.ts +22 -0
- package/dist/api/resources/unstable/types/PartAttachment.js +5 -0
- package/dist/api/resources/unstable/types/PhoneSwitch.d.ts +12 -0
- package/dist/api/resources/unstable/types/PhoneSwitch.js +5 -0
- package/dist/api/resources/unstable/types/QuickReplyOption.d.ts +9 -0
- package/dist/api/resources/unstable/types/QuickReplyOption.js +5 -0
- package/dist/api/resources/unstable/types/Recipient.d.ts +22 -0
- package/dist/api/resources/unstable/types/Recipient.js +13 -0
- package/dist/api/resources/unstable/types/RedactConversationRequest.d.ts +27 -0
- package/dist/api/resources/unstable/types/RedactConversationRequest.js +5 -0
- package/dist/api/resources/unstable/types/Reference.d.ts +12 -0
- package/dist/api/resources/unstable/types/Reference.js +5 -0
- package/dist/api/resources/unstable/types/ReplyConversationRequestBody.d.ts +5 -0
- package/dist/api/resources/unstable/types/ReplyConversationRequestBody.js +5 -0
- package/dist/api/resources/unstable/types/SearchRequest.d.ts +14 -0
- package/dist/api/resources/unstable/types/SearchRequest.js +5 -0
- package/dist/api/resources/unstable/types/SegmentList.d.ts +15 -0
- package/dist/api/resources/unstable/types/SegmentList.js +5 -0
- package/dist/api/resources/unstable/types/SingleFilterSearchRequest.d.ts +32 -0
- package/dist/api/resources/unstable/types/SingleFilterSearchRequest.js +17 -0
- package/dist/api/resources/unstable/types/SlaApplied.d.ts +35 -0
- package/dist/api/resources/unstable/types/SlaApplied.js +15 -0
- package/dist/api/resources/unstable/types/SnoozeConversationRequest.d.ts +12 -0
- package/dist/api/resources/unstable/types/SnoozeConversationRequest.js +5 -0
- package/dist/api/resources/unstable/types/SocialProfile.d.ts +14 -0
- package/dist/api/resources/unstable/types/SocialProfile.js +5 -0
- package/dist/api/resources/unstable/types/StartingAfterPaging.d.ts +9 -0
- package/dist/api/resources/unstable/types/StartingAfterPaging.js +5 -0
- package/dist/api/resources/unstable/types/SubscriptionTypeList.d.ts +13 -0
- package/dist/api/resources/unstable/types/SubscriptionTypeList.js +5 -0
- package/dist/api/resources/unstable/types/TagCompanyRequest.d.ts +23 -0
- package/dist/api/resources/unstable/types/TagCompanyRequest.js +5 -0
- package/dist/api/resources/unstable/types/TagList.d.ts +13 -0
- package/dist/api/resources/unstable/types/TagList.js +5 -0
- package/dist/api/resources/unstable/types/TagMultipleUsersRequest.d.ts +20 -0
- package/dist/api/resources/unstable/types/TagMultipleUsersRequest.js +5 -0
- package/dist/api/resources/unstable/types/Tags.d.ts +13 -0
- package/dist/api/resources/unstable/types/Tags.js +5 -0
- package/dist/api/resources/unstable/types/TeamList.d.ts +13 -0
- package/dist/api/resources/unstable/types/TeamList.js +5 -0
- package/dist/api/resources/unstable/types/TeamPriorityLevel.d.ts +12 -0
- package/dist/api/resources/unstable/types/TeamPriorityLevel.js +5 -0
- package/dist/api/resources/unstable/types/TicketCustomAttributes.d.ts +11 -0
- package/dist/api/resources/unstable/types/TicketCustomAttributes.js +5 -0
- package/dist/api/resources/unstable/types/TicketList.d.ts +16 -0
- package/dist/api/resources/unstable/types/TicketList.js +5 -0
- package/dist/api/resources/unstable/types/TicketPartAuthor.d.ts +28 -0
- package/dist/api/resources/unstable/types/TicketPartAuthor.js +15 -0
- package/dist/api/resources/unstable/types/TicketParts.d.ts +15 -0
- package/dist/api/resources/unstable/types/TicketParts.js +5 -0
- package/dist/api/resources/unstable/types/TicketReply.d.ts +37 -0
- package/dist/api/resources/unstable/types/TicketReply.js +14 -0
- package/dist/api/resources/unstable/types/TicketRequestCustomAttributes.d.ts +10 -0
- package/dist/api/resources/unstable/types/TicketRequestCustomAttributes.js +5 -0
- package/dist/api/resources/unstable/types/TicketStateList.d.ts +13 -0
- package/dist/api/resources/unstable/types/TicketStateList.js +5 -0
- package/dist/api/resources/unstable/types/TicketTypeAttribute.d.ts +42 -0
- package/dist/api/resources/unstable/types/TicketTypeAttribute.js +5 -0
- package/dist/api/resources/unstable/types/TicketTypeAttributeList.d.ts +13 -0
- package/dist/api/resources/unstable/types/TicketTypeAttributeList.js +5 -0
- package/dist/api/resources/unstable/types/TicketTypeList.d.ts +13 -0
- package/dist/api/resources/unstable/types/TicketTypeList.js +5 -0
- package/dist/api/resources/unstable/types/Translation.d.ts +14 -0
- package/dist/api/resources/unstable/types/Translation.js +5 -0
- package/dist/api/resources/unstable/types/UntagCompanyRequest.d.ts +25 -0
- package/dist/api/resources/unstable/types/UntagCompanyRequest.js +5 -0
- package/dist/api/resources/unstable/types/UpdateArticleRequestBody.d.ts +34 -0
- package/dist/api/resources/unstable/types/UpdateArticleRequestBody.js +13 -0
- package/dist/api/resources/unstable/types/UpdateTicketTypeRequestBody.d.ts +32 -0
- package/dist/api/resources/unstable/types/UpdateTicketTypeRequestBody.js +14 -0
- package/dist/api/resources/unstable/types/Visitor.d.ts +128 -0
- package/dist/api/resources/unstable/types/Visitor.js +5 -0
- package/dist/api/resources/unstable/types/VisitorDeletedObject.d.ts +14 -0
- package/dist/api/resources/unstable/types/VisitorDeletedObject.js +5 -0
- package/dist/api/resources/unstable/types/WhatsappMessageStatusList.d.ts +65 -0
- package/dist/api/resources/unstable/types/WhatsappMessageStatusList.js +21 -0
- package/dist/api/resources/unstable/types/index.d.ts +145 -0
- package/dist/api/resources/unstable/types/index.js +161 -0
- package/dist/api/resources/visitors/client/Client.d.ts +6 -3
- package/dist/api/resources/visitors/client/Client.js +29 -11
- package/dist/api/types/CreateContactRequestTwo.d.ts +4 -0
- package/dist/api/types/CreateContactRequestTwo.js +5 -0
- package/dist/api/types/CreateDataEventRequestTwo.d.ts +4 -0
- package/dist/api/types/CreateDataEventRequestTwo.js +5 -0
- package/dist/api/types/CreateMessageRequestTwo.d.ts +4 -0
- package/dist/api/types/CreateMessageRequestTwo.js +5 -0
- package/dist/api/{resources/tickets/client/requests → types}/CreateTicketRequest.d.ts +2 -12
- package/dist/api/types/CreateTicketRequest.js +5 -0
- package/dist/api/types/Metadata.d.ts +5 -0
- package/dist/api/types/Metadata.js +5 -0
- package/dist/api/types/UpdateVisitorRequestOne.d.ts +4 -0
- package/dist/api/types/UpdateVisitorRequestOne.js +5 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/Fetcher.js +7 -0
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/pagination/Page.d.ts +5 -2
- package/dist/core/pagination/Page.js +5 -2
- package/dist/core/pagination/Pageable.d.ts +2 -0
- package/dist/errors/IntercomError.d.ts +4 -1
- package/dist/errors/IntercomError.js +4 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/errors/IntercomError.d.ts +4 -1
- package/errors/IntercomError.js +4 -7
- package/package.json +2 -1
- package/reference.md +9262 -162
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/customChannelEvents/client/Client.d.ts +0 -61
- package/dist/api/resources/customChannelEvents/client/Client.d.ts +0 -61
- /package/api/resources/{customChannelEvents → unstable}/client/index.d.ts +0 -0
- /package/api/resources/{customChannelEvents → unstable}/client/index.js +0 -0
- /package/api/resources/{tickets/client/requests/CreateTicketRequest.js → unstable/resources/admins/client/requests/ListActivityLogsRequest.js} +0 -0
- /package/{dist/api/resources/tickets/client/requests/CreateTicketRequest.js → api/resources/unstable/resources/admins/client/requests/RetrieveAdminRequest.js} +0 -0
- /package/{dist/api/resources/customChannelEvents/client → api/resources/unstable/resources/admins/client/requests}/index.js +0 -0
- /package/{dist/api/resources/customChannelEvents → api/resources/unstable/resources/awayStatusReasons}/client/index.d.ts +0 -0
- /package/api/resources/{customChannelEvents → unstable/resources/awayStatusReasons}/index.d.ts +0 -0
- /package/api/resources/{customChannelEvents → unstable/resources/awayStatusReasons}/index.js +0 -0
- /package/{dist/api → api/resources/unstable}/resources/customChannelEvents/index.d.ts +0 -0
- /package/{dist/api → api/resources/unstable}/resources/customChannelEvents/index.js +0 -0
|
@@ -0,0 +1,1165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.Contacts = void 0;
|
|
63
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
64
|
+
const core = __importStar(require("../../../../../../core"));
|
|
65
|
+
const Intercom = __importStar(require("../../../../../index"));
|
|
66
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
67
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
68
|
+
/**
|
|
69
|
+
* Everything about your contacts
|
|
70
|
+
*/
|
|
71
|
+
class Contacts {
|
|
72
|
+
constructor(_options = {}) {
|
|
73
|
+
this._options = _options;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* You can fetch a list of companies that are associated to a contact.
|
|
77
|
+
*
|
|
78
|
+
* @param {Intercom.unstable.ListCompaniesForAContactRequest} request
|
|
79
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
82
|
+
* @throws {@link Intercom.unstable.NotFoundError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.unstable.contacts.listCompaniesForAContact({
|
|
86
|
+
* id: "63a07ddf05a32042dffac965"
|
|
87
|
+
* })
|
|
88
|
+
*/
|
|
89
|
+
listCompaniesForAContact(request, requestOptions) {
|
|
90
|
+
return core.HttpResponsePromise.fromPromise(this.__listCompaniesForAContact(request, requestOptions));
|
|
91
|
+
}
|
|
92
|
+
__listCompaniesForAContact(request, requestOptions) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
var _a, _b, _c, _d, _e, _f;
|
|
95
|
+
const { id } = request;
|
|
96
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(id)}/companies`),
|
|
98
|
+
method: "GET",
|
|
99
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
|
+
contentType: "application/json",
|
|
101
|
+
requestType: "json",
|
|
102
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
103
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
104
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
105
|
+
});
|
|
106
|
+
if (_response.ok) {
|
|
107
|
+
return {
|
|
108
|
+
data: _response.body,
|
|
109
|
+
rawResponse: _response.rawResponse,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
if (_response.error.reason === "status-code") {
|
|
113
|
+
switch (_response.error.statusCode) {
|
|
114
|
+
case 401:
|
|
115
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 404:
|
|
117
|
+
throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
|
|
118
|
+
default:
|
|
119
|
+
throw new errors.IntercomError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.body,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
switch (_response.error.reason) {
|
|
127
|
+
case "non-json":
|
|
128
|
+
throw new errors.IntercomError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
body: _response.error.rawBody,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
case "timeout":
|
|
134
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /contacts/{id}/companies.");
|
|
135
|
+
case "unknown":
|
|
136
|
+
throw new errors.IntercomError({
|
|
137
|
+
message: _response.error.errorMessage,
|
|
138
|
+
rawResponse: _response.rawResponse,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* You can fetch a list of segments that are associated to a contact.
|
|
145
|
+
*
|
|
146
|
+
* @param {Intercom.unstable.ListSegmentsForAContactRequest} request
|
|
147
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
150
|
+
* @throws {@link Intercom.unstable.NotFoundError}
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await client.unstable.contacts.listSegmentsForAContact({
|
|
154
|
+
* contact_id: "63a07ddf05a32042dffac965"
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
listSegmentsForAContact(request, requestOptions) {
|
|
158
|
+
return core.HttpResponsePromise.fromPromise(this.__listSegmentsForAContact(request, requestOptions));
|
|
159
|
+
}
|
|
160
|
+
__listSegmentsForAContact(request, requestOptions) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
var _a, _b, _c, _d, _e, _f;
|
|
163
|
+
const { contact_id: contactId } = request;
|
|
164
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
165
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/segments`),
|
|
166
|
+
method: "GET",
|
|
167
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
|
+
contentType: "application/json",
|
|
169
|
+
requestType: "json",
|
|
170
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
171
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
172
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
173
|
+
});
|
|
174
|
+
if (_response.ok) {
|
|
175
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
176
|
+
}
|
|
177
|
+
if (_response.error.reason === "status-code") {
|
|
178
|
+
switch (_response.error.statusCode) {
|
|
179
|
+
case 401:
|
|
180
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
181
|
+
case 404:
|
|
182
|
+
throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
|
|
183
|
+
default:
|
|
184
|
+
throw new errors.IntercomError({
|
|
185
|
+
statusCode: _response.error.statusCode,
|
|
186
|
+
body: _response.error.body,
|
|
187
|
+
rawResponse: _response.rawResponse,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
switch (_response.error.reason) {
|
|
192
|
+
case "non-json":
|
|
193
|
+
throw new errors.IntercomError({
|
|
194
|
+
statusCode: _response.error.statusCode,
|
|
195
|
+
body: _response.error.rawBody,
|
|
196
|
+
rawResponse: _response.rawResponse,
|
|
197
|
+
});
|
|
198
|
+
case "timeout":
|
|
199
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /contacts/{contact_id}/segments.");
|
|
200
|
+
case "unknown":
|
|
201
|
+
throw new errors.IntercomError({
|
|
202
|
+
message: _response.error.errorMessage,
|
|
203
|
+
rawResponse: _response.rawResponse,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* You can fetch a list of subscription types that are attached to a contact. These can be subscriptions that a user has 'opted-in' to or has 'opted-out' from, depending on the subscription type.
|
|
210
|
+
* This will return a list of Subscription Type objects that the contact is associated with.
|
|
211
|
+
*
|
|
212
|
+
* The data property will show a combined list of:
|
|
213
|
+
*
|
|
214
|
+
* 1.Opt-out subscription types that the user has opted-out from.
|
|
215
|
+
* 2.Opt-in subscription types that the user has opted-in to receiving.
|
|
216
|
+
*
|
|
217
|
+
* @param {Intercom.unstable.ListSubscriptionsForAContactRequest} request
|
|
218
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
219
|
+
*
|
|
220
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
221
|
+
* @throws {@link Intercom.unstable.NotFoundError}
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* await client.unstable.contacts.listSubscriptionsForAContact({
|
|
225
|
+
* contact_id: "63a07ddf05a32042dffac965"
|
|
226
|
+
* })
|
|
227
|
+
*/
|
|
228
|
+
listSubscriptionsForAContact(request, requestOptions) {
|
|
229
|
+
return core.HttpResponsePromise.fromPromise(this.__listSubscriptionsForAContact(request, requestOptions));
|
|
230
|
+
}
|
|
231
|
+
__listSubscriptionsForAContact(request, requestOptions) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
var _a, _b, _c, _d, _e, _f;
|
|
234
|
+
const { contact_id: contactId } = request;
|
|
235
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
236
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/subscriptions`),
|
|
237
|
+
method: "GET",
|
|
238
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
239
|
+
contentType: "application/json",
|
|
240
|
+
requestType: "json",
|
|
241
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
242
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
243
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
244
|
+
});
|
|
245
|
+
if (_response.ok) {
|
|
246
|
+
return {
|
|
247
|
+
data: _response.body,
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
if (_response.error.reason === "status-code") {
|
|
252
|
+
switch (_response.error.statusCode) {
|
|
253
|
+
case 401:
|
|
254
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
255
|
+
case 404:
|
|
256
|
+
throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
|
|
257
|
+
default:
|
|
258
|
+
throw new errors.IntercomError({
|
|
259
|
+
statusCode: _response.error.statusCode,
|
|
260
|
+
body: _response.error.body,
|
|
261
|
+
rawResponse: _response.rawResponse,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
switch (_response.error.reason) {
|
|
266
|
+
case "non-json":
|
|
267
|
+
throw new errors.IntercomError({
|
|
268
|
+
statusCode: _response.error.statusCode,
|
|
269
|
+
body: _response.error.rawBody,
|
|
270
|
+
rawResponse: _response.rawResponse,
|
|
271
|
+
});
|
|
272
|
+
case "timeout":
|
|
273
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /contacts/{contact_id}/subscriptions.");
|
|
274
|
+
case "unknown":
|
|
275
|
+
throw new errors.IntercomError({
|
|
276
|
+
message: _response.error.errorMessage,
|
|
277
|
+
rawResponse: _response.rawResponse,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* You can fetch a list of all tags that are attached to a specific contact.
|
|
284
|
+
*
|
|
285
|
+
* @param {Intercom.unstable.ListTagsForAContactRequest} request
|
|
286
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
287
|
+
*
|
|
288
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
289
|
+
* @throws {@link Intercom.unstable.NotFoundError}
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* await client.unstable.contacts.listTagsForAContact({
|
|
293
|
+
* contact_id: "63a07ddf05a32042dffac965"
|
|
294
|
+
* })
|
|
295
|
+
*/
|
|
296
|
+
listTagsForAContact(request, requestOptions) {
|
|
297
|
+
return core.HttpResponsePromise.fromPromise(this.__listTagsForAContact(request, requestOptions));
|
|
298
|
+
}
|
|
299
|
+
__listTagsForAContact(request, requestOptions) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
var _a, _b, _c, _d, _e, _f;
|
|
302
|
+
const { contact_id: contactId } = request;
|
|
303
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
304
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(contactId)}/tags`),
|
|
305
|
+
method: "GET",
|
|
306
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
307
|
+
contentType: "application/json",
|
|
308
|
+
requestType: "json",
|
|
309
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
310
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
311
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
312
|
+
});
|
|
313
|
+
if (_response.ok) {
|
|
314
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
315
|
+
}
|
|
316
|
+
if (_response.error.reason === "status-code") {
|
|
317
|
+
switch (_response.error.statusCode) {
|
|
318
|
+
case 401:
|
|
319
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
320
|
+
case 404:
|
|
321
|
+
throw new Intercom.unstable.NotFoundError(_response.error.body, _response.rawResponse);
|
|
322
|
+
default:
|
|
323
|
+
throw new errors.IntercomError({
|
|
324
|
+
statusCode: _response.error.statusCode,
|
|
325
|
+
body: _response.error.body,
|
|
326
|
+
rawResponse: _response.rawResponse,
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
switch (_response.error.reason) {
|
|
331
|
+
case "non-json":
|
|
332
|
+
throw new errors.IntercomError({
|
|
333
|
+
statusCode: _response.error.statusCode,
|
|
334
|
+
body: _response.error.rawBody,
|
|
335
|
+
rawResponse: _response.rawResponse,
|
|
336
|
+
});
|
|
337
|
+
case "timeout":
|
|
338
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /contacts/{contact_id}/tags.");
|
|
339
|
+
case "unknown":
|
|
340
|
+
throw new errors.IntercomError({
|
|
341
|
+
message: _response.error.errorMessage,
|
|
342
|
+
rawResponse: _response.rawResponse,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* You can fetch the details of a single contact.
|
|
349
|
+
*
|
|
350
|
+
* @param {Intercom.unstable.ShowContactRequest} request
|
|
351
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
352
|
+
*
|
|
353
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
* await client.unstable.contacts.showContact({
|
|
357
|
+
* id: "63a07ddf05a32042dffac965"
|
|
358
|
+
* })
|
|
359
|
+
*/
|
|
360
|
+
showContact(request, requestOptions) {
|
|
361
|
+
return core.HttpResponsePromise.fromPromise(this.__showContact(request, requestOptions));
|
|
362
|
+
}
|
|
363
|
+
__showContact(request, requestOptions) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
var _a, _b, _c, _d, _e, _f;
|
|
366
|
+
const { id } = request;
|
|
367
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
368
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(id)}`),
|
|
369
|
+
method: "GET",
|
|
370
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
371
|
+
contentType: "application/json",
|
|
372
|
+
requestType: "json",
|
|
373
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
374
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
375
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
376
|
+
});
|
|
377
|
+
if (_response.ok) {
|
|
378
|
+
return {
|
|
379
|
+
data: _response.body,
|
|
380
|
+
rawResponse: _response.rawResponse,
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
if (_response.error.reason === "status-code") {
|
|
384
|
+
switch (_response.error.statusCode) {
|
|
385
|
+
case 401:
|
|
386
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
387
|
+
default:
|
|
388
|
+
throw new errors.IntercomError({
|
|
389
|
+
statusCode: _response.error.statusCode,
|
|
390
|
+
body: _response.error.body,
|
|
391
|
+
rawResponse: _response.rawResponse,
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
switch (_response.error.reason) {
|
|
396
|
+
case "non-json":
|
|
397
|
+
throw new errors.IntercomError({
|
|
398
|
+
statusCode: _response.error.statusCode,
|
|
399
|
+
body: _response.error.rawBody,
|
|
400
|
+
rawResponse: _response.rawResponse,
|
|
401
|
+
});
|
|
402
|
+
case "timeout":
|
|
403
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /contacts/{id}.");
|
|
404
|
+
case "unknown":
|
|
405
|
+
throw new errors.IntercomError({
|
|
406
|
+
message: _response.error.errorMessage,
|
|
407
|
+
rawResponse: _response.rawResponse,
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* You can update an existing contact (ie. user or lead).
|
|
414
|
+
*
|
|
415
|
+
* {% admonition type="info" %}
|
|
416
|
+
* This endpoint handles both **contact updates** and **custom object associations**.
|
|
417
|
+
*
|
|
418
|
+
* See _`update a contact with an association to a custom object instance`_ in the request/response examples to see the custom object association format.
|
|
419
|
+
* {% /admonition %}
|
|
420
|
+
*
|
|
421
|
+
* @param {Intercom.unstable.UpdateContactRequest} request
|
|
422
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
423
|
+
*
|
|
424
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
425
|
+
*
|
|
426
|
+
* @example
|
|
427
|
+
* await client.unstable.contacts.updateContact({
|
|
428
|
+
* id: "63a07ddf05a32042dffac965",
|
|
429
|
+
* email: "joebloggs@intercom.io",
|
|
430
|
+
* name: "joe bloggs"
|
|
431
|
+
* })
|
|
432
|
+
*
|
|
433
|
+
* @example
|
|
434
|
+
* await client.unstable.contacts.updateContact({
|
|
435
|
+
* id: "63a07ddf05a32042dffac965",
|
|
436
|
+
* custom_attributes: {
|
|
437
|
+
* "order": [
|
|
438
|
+
* "21"
|
|
439
|
+
* ]
|
|
440
|
+
* }
|
|
441
|
+
* })
|
|
442
|
+
*/
|
|
443
|
+
updateContact(request, requestOptions) {
|
|
444
|
+
return core.HttpResponsePromise.fromPromise(this.__updateContact(request, requestOptions));
|
|
445
|
+
}
|
|
446
|
+
__updateContact(request, requestOptions) {
|
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
var _a, _b, _c, _d, _e, _f;
|
|
449
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
450
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
451
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(id)}`),
|
|
452
|
+
method: "PUT",
|
|
453
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
454
|
+
contentType: "application/json",
|
|
455
|
+
requestType: "json",
|
|
456
|
+
body: _body,
|
|
457
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
458
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
459
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
460
|
+
});
|
|
461
|
+
if (_response.ok) {
|
|
462
|
+
return {
|
|
463
|
+
data: _response.body,
|
|
464
|
+
rawResponse: _response.rawResponse,
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
if (_response.error.reason === "status-code") {
|
|
468
|
+
switch (_response.error.statusCode) {
|
|
469
|
+
case 401:
|
|
470
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
471
|
+
default:
|
|
472
|
+
throw new errors.IntercomError({
|
|
473
|
+
statusCode: _response.error.statusCode,
|
|
474
|
+
body: _response.error.body,
|
|
475
|
+
rawResponse: _response.rawResponse,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
switch (_response.error.reason) {
|
|
480
|
+
case "non-json":
|
|
481
|
+
throw new errors.IntercomError({
|
|
482
|
+
statusCode: _response.error.statusCode,
|
|
483
|
+
body: _response.error.rawBody,
|
|
484
|
+
rawResponse: _response.rawResponse,
|
|
485
|
+
});
|
|
486
|
+
case "timeout":
|
|
487
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling PUT /contacts/{id}.");
|
|
488
|
+
case "unknown":
|
|
489
|
+
throw new errors.IntercomError({
|
|
490
|
+
message: _response.error.errorMessage,
|
|
491
|
+
rawResponse: _response.rawResponse,
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* You can delete a single contact.
|
|
498
|
+
*
|
|
499
|
+
* @param {Intercom.unstable.DeleteContactRequest} request
|
|
500
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
501
|
+
*
|
|
502
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
503
|
+
*
|
|
504
|
+
* @example
|
|
505
|
+
* await client.unstable.contacts.deleteContact({
|
|
506
|
+
* id: "id"
|
|
507
|
+
* })
|
|
508
|
+
*/
|
|
509
|
+
deleteContact(request, requestOptions) {
|
|
510
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteContact(request, requestOptions));
|
|
511
|
+
}
|
|
512
|
+
__deleteContact(request, requestOptions) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
var _a, _b, _c, _d, _e, _f;
|
|
515
|
+
const { id } = request;
|
|
516
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
517
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(id)}`),
|
|
518
|
+
method: "DELETE",
|
|
519
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
520
|
+
contentType: "application/json",
|
|
521
|
+
requestType: "json",
|
|
522
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
523
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
524
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
525
|
+
});
|
|
526
|
+
if (_response.ok) {
|
|
527
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
528
|
+
}
|
|
529
|
+
if (_response.error.reason === "status-code") {
|
|
530
|
+
switch (_response.error.statusCode) {
|
|
531
|
+
case 401:
|
|
532
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
533
|
+
default:
|
|
534
|
+
throw new errors.IntercomError({
|
|
535
|
+
statusCode: _response.error.statusCode,
|
|
536
|
+
body: _response.error.body,
|
|
537
|
+
rawResponse: _response.rawResponse,
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
switch (_response.error.reason) {
|
|
542
|
+
case "non-json":
|
|
543
|
+
throw new errors.IntercomError({
|
|
544
|
+
statusCode: _response.error.statusCode,
|
|
545
|
+
body: _response.error.rawBody,
|
|
546
|
+
rawResponse: _response.rawResponse,
|
|
547
|
+
});
|
|
548
|
+
case "timeout":
|
|
549
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling DELETE /contacts/{id}.");
|
|
550
|
+
case "unknown":
|
|
551
|
+
throw new errors.IntercomError({
|
|
552
|
+
message: _response.error.errorMessage,
|
|
553
|
+
rawResponse: _response.rawResponse,
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* You can merge a contact with a `role` of `lead` into a contact with a `role` of `user`.
|
|
560
|
+
*
|
|
561
|
+
* @param {Intercom.unstable.MergeContactsRequest} request
|
|
562
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
563
|
+
*
|
|
564
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
565
|
+
*
|
|
566
|
+
* @example
|
|
567
|
+
* await client.unstable.contacts.mergeContact({
|
|
568
|
+
* from: "6762f0d51bb69f9f2193bb7f",
|
|
569
|
+
* into: "6762f0d51bb69f9f2193bb80"
|
|
570
|
+
* })
|
|
571
|
+
*/
|
|
572
|
+
mergeContact(request = {}, requestOptions) {
|
|
573
|
+
return core.HttpResponsePromise.fromPromise(this.__mergeContact(request, requestOptions));
|
|
574
|
+
}
|
|
575
|
+
__mergeContact() {
|
|
576
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
577
|
+
var _a, _b, _c, _d, _e, _f;
|
|
578
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
579
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "contacts/merge"),
|
|
580
|
+
method: "POST",
|
|
581
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
582
|
+
contentType: "application/json",
|
|
583
|
+
requestType: "json",
|
|
584
|
+
body: request,
|
|
585
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
586
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
587
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
588
|
+
});
|
|
589
|
+
if (_response.ok) {
|
|
590
|
+
return {
|
|
591
|
+
data: _response.body,
|
|
592
|
+
rawResponse: _response.rawResponse,
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
if (_response.error.reason === "status-code") {
|
|
596
|
+
switch (_response.error.statusCode) {
|
|
597
|
+
case 401:
|
|
598
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
599
|
+
default:
|
|
600
|
+
throw new errors.IntercomError({
|
|
601
|
+
statusCode: _response.error.statusCode,
|
|
602
|
+
body: _response.error.body,
|
|
603
|
+
rawResponse: _response.rawResponse,
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
switch (_response.error.reason) {
|
|
608
|
+
case "non-json":
|
|
609
|
+
throw new errors.IntercomError({
|
|
610
|
+
statusCode: _response.error.statusCode,
|
|
611
|
+
body: _response.error.rawBody,
|
|
612
|
+
rawResponse: _response.rawResponse,
|
|
613
|
+
});
|
|
614
|
+
case "timeout":
|
|
615
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /contacts/merge.");
|
|
616
|
+
case "unknown":
|
|
617
|
+
throw new errors.IntercomError({
|
|
618
|
+
message: _response.error.errorMessage,
|
|
619
|
+
rawResponse: _response.rawResponse,
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* You can search for multiple contacts by the value of their attributes in order to fetch exactly who you want.
|
|
626
|
+
*
|
|
627
|
+
* To search for contacts, you need to send a `POST` request to `https://api.intercom.io/contacts/search`.
|
|
628
|
+
*
|
|
629
|
+
* This will accept a query object in the body which will define your filters in order to search for contacts.
|
|
630
|
+
*
|
|
631
|
+
* {% admonition type="warning" name="Optimizing search queries" %}
|
|
632
|
+
* Search queries can be complex, so optimizing them can help the performance of your search.
|
|
633
|
+
* Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize
|
|
634
|
+
* pagination to limit the number of results returned. The default is `50` results per page.
|
|
635
|
+
* See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param.
|
|
636
|
+
* {% /admonition %}
|
|
637
|
+
* ### Contact Creation Delay
|
|
638
|
+
*
|
|
639
|
+
* If a contact has recently been created, there is a possibility that it will not yet be available when searching. This means that it may not appear in the response. This delay can take a few minutes. If you need to be instantly notified it is recommended to use webhooks and iterate to see if they match your search filters.
|
|
640
|
+
*
|
|
641
|
+
* ### Nesting & Limitations
|
|
642
|
+
*
|
|
643
|
+
* You can nest these filters in order to get even more granular insights that pinpoint exactly what you need. Example: (1 OR 2) AND (3 OR 4).
|
|
644
|
+
* There are some limitations to the amount of multiple's there can be:
|
|
645
|
+
* * There's a limit of max 2 nested filters
|
|
646
|
+
* * There's a limit of max 15 filters for each AND or OR group
|
|
647
|
+
*
|
|
648
|
+
* ### Searching for Timestamp Fields
|
|
649
|
+
*
|
|
650
|
+
* All timestamp fields (created_at, updated_at etc.) are indexed as Dates for Contact Search queries; Datetime queries are not currently supported. This means you can only query for timestamp fields by day - not hour, minute or second.
|
|
651
|
+
* For example, if you search for all Contacts with a created_at value greater (>) than 1577869200 (the UNIX timestamp for January 1st, 2020 9:00 AM), that will be interpreted as 1577836800 (January 1st, 2020 12:00 AM). The search results will then include Contacts created from January 2nd, 2020 12:00 AM onwards.
|
|
652
|
+
* If you'd like to get contacts created on January 1st, 2020 you should search with a created_at value equal (=) to 1577836800 (January 1st, 2020 12:00 AM).
|
|
653
|
+
* This behaviour applies only to timestamps used in search queries. The search results will still contain the full UNIX timestamp and be sorted accordingly.
|
|
654
|
+
*
|
|
655
|
+
* ### Accepted Fields
|
|
656
|
+
*
|
|
657
|
+
* Most key listed as part of the Contacts Model are searchable, whether writeable or not. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foorbar"`).
|
|
658
|
+
*
|
|
659
|
+
* | Field | Type |
|
|
660
|
+
* | ---------------------------------- | ------------------------------ |
|
|
661
|
+
* | id | String |
|
|
662
|
+
* | role | String<br>Accepts user or lead |
|
|
663
|
+
* | name | String |
|
|
664
|
+
* | avatar | String |
|
|
665
|
+
* | owner_id | Integer |
|
|
666
|
+
* | email | String |
|
|
667
|
+
* | email_domain | String |
|
|
668
|
+
* | phone | String |
|
|
669
|
+
* | formatted_phone | String |
|
|
670
|
+
* | external_id | String |
|
|
671
|
+
* | created_at | Date (UNIX Timestamp) |
|
|
672
|
+
* | signed_up_at | Date (UNIX Timestamp) |
|
|
673
|
+
* | updated_at | Date (UNIX Timestamp) |
|
|
674
|
+
* | last_seen_at | Date (UNIX Timestamp) |
|
|
675
|
+
* | last_contacted_at | Date (UNIX Timestamp) |
|
|
676
|
+
* | last_replied_at | Date (UNIX Timestamp) |
|
|
677
|
+
* | last_email_opened_at | Date (UNIX Timestamp) |
|
|
678
|
+
* | last_email_clicked_at | Date (UNIX Timestamp) |
|
|
679
|
+
* | language_override | String |
|
|
680
|
+
* | browser | String |
|
|
681
|
+
* | browser_language | String |
|
|
682
|
+
* | os | String |
|
|
683
|
+
* | location.country | String |
|
|
684
|
+
* | location.region | String |
|
|
685
|
+
* | location.city | String |
|
|
686
|
+
* | unsubscribed_from_emails | Boolean |
|
|
687
|
+
* | marked_email_as_spam | Boolean |
|
|
688
|
+
* | has_hard_bounced | Boolean |
|
|
689
|
+
* | ios_last_seen_at | Date (UNIX Timestamp) |
|
|
690
|
+
* | ios_app_version | String |
|
|
691
|
+
* | ios_device | String |
|
|
692
|
+
* | ios_app_device | String |
|
|
693
|
+
* | ios_os_version | String |
|
|
694
|
+
* | ios_app_name | String |
|
|
695
|
+
* | ios_sdk_version | String |
|
|
696
|
+
* | android_last_seen_at | Date (UNIX Timestamp) |
|
|
697
|
+
* | android_app_version | String |
|
|
698
|
+
* | android_device | String |
|
|
699
|
+
* | android_app_name | String |
|
|
700
|
+
* | andoid_sdk_version | String |
|
|
701
|
+
* | segment_id | String |
|
|
702
|
+
* | tag_id | String |
|
|
703
|
+
* | custom_attributes.{attribute_name} | String |
|
|
704
|
+
*
|
|
705
|
+
* ### Accepted Operators
|
|
706
|
+
*
|
|
707
|
+
* {% admonition type="warning" name="Searching based on `created_at`" %}
|
|
708
|
+
* You cannot use the `<=` or `>=` operators to search by `created_at`.
|
|
709
|
+
* {% /admonition %}
|
|
710
|
+
*
|
|
711
|
+
* The table below shows the operators you can use to define how you want to search for the value. The operator should be put in as a string (`"="`). The operator has to be compatible with the field's type (eg. you cannot search with `>` for a given string value as it's only compatible for integer's and dates).
|
|
712
|
+
*
|
|
713
|
+
* | Operator | Valid Types | Description |
|
|
714
|
+
* | :------- | :------------------------------- | :--------------------------------------------------------------- |
|
|
715
|
+
* | = | All | Equals |
|
|
716
|
+
* | != | All | Doesn't Equal |
|
|
717
|
+
* | IN | All | In<br>Shortcut for `OR` queries<br>Values must be in Array |
|
|
718
|
+
* | NIN | All | Not In<br>Shortcut for `OR !` queries<br>Values must be in Array |
|
|
719
|
+
* | > | Integer<br>Date (UNIX Timestamp) | Greater than |
|
|
720
|
+
* | < | Integer<br>Date (UNIX Timestamp) | Lower than |
|
|
721
|
+
* | ~ | String | Contains |
|
|
722
|
+
* | !~ | String | Doesn't Contain |
|
|
723
|
+
* | ^ | String | Starts With |
|
|
724
|
+
* | $ | String | Ends With |
|
|
725
|
+
*
|
|
726
|
+
* @param {Intercom.unstable.SearchRequest} request
|
|
727
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
728
|
+
*
|
|
729
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
730
|
+
*
|
|
731
|
+
* @example
|
|
732
|
+
* await client.unstable.contacts.searchContacts({
|
|
733
|
+
* query: {
|
|
734
|
+
* operator: "AND",
|
|
735
|
+
* value: [{
|
|
736
|
+
* field: "created_at",
|
|
737
|
+
* operator: ">",
|
|
738
|
+
* value: "1306054154"
|
|
739
|
+
* }]
|
|
740
|
+
* },
|
|
741
|
+
* pagination: {
|
|
742
|
+
* per_page: 5
|
|
743
|
+
* }
|
|
744
|
+
* })
|
|
745
|
+
*/
|
|
746
|
+
searchContacts(request, requestOptions) {
|
|
747
|
+
return core.HttpResponsePromise.fromPromise(this.__searchContacts(request, requestOptions));
|
|
748
|
+
}
|
|
749
|
+
__searchContacts(request, requestOptions) {
|
|
750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
751
|
+
var _a, _b, _c, _d, _e, _f;
|
|
752
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
753
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "contacts/search"),
|
|
754
|
+
method: "POST",
|
|
755
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
756
|
+
contentType: "application/json",
|
|
757
|
+
requestType: "json",
|
|
758
|
+
body: request,
|
|
759
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
760
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
761
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
762
|
+
});
|
|
763
|
+
if (_response.ok) {
|
|
764
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
765
|
+
}
|
|
766
|
+
if (_response.error.reason === "status-code") {
|
|
767
|
+
switch (_response.error.statusCode) {
|
|
768
|
+
case 401:
|
|
769
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
770
|
+
default:
|
|
771
|
+
throw new errors.IntercomError({
|
|
772
|
+
statusCode: _response.error.statusCode,
|
|
773
|
+
body: _response.error.body,
|
|
774
|
+
rawResponse: _response.rawResponse,
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
switch (_response.error.reason) {
|
|
779
|
+
case "non-json":
|
|
780
|
+
throw new errors.IntercomError({
|
|
781
|
+
statusCode: _response.error.statusCode,
|
|
782
|
+
body: _response.error.rawBody,
|
|
783
|
+
rawResponse: _response.rawResponse,
|
|
784
|
+
});
|
|
785
|
+
case "timeout":
|
|
786
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /contacts/search.");
|
|
787
|
+
case "unknown":
|
|
788
|
+
throw new errors.IntercomError({
|
|
789
|
+
message: _response.error.errorMessage,
|
|
790
|
+
rawResponse: _response.rawResponse,
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* You can fetch a list of all contacts (ie. users or leads) in your workspace.
|
|
797
|
+
* {% admonition type="warning" name="Pagination" %}
|
|
798
|
+
* You can use pagination to limit the number of results returned. The default is `50` results per page.
|
|
799
|
+
* See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#pagination-for-list-apis) for more details on how to use the `starting_after` param.
|
|
800
|
+
* {% /admonition %}
|
|
801
|
+
*
|
|
802
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
803
|
+
*
|
|
804
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
805
|
+
*
|
|
806
|
+
* @example
|
|
807
|
+
* await client.unstable.contacts.listContacts()
|
|
808
|
+
*/
|
|
809
|
+
listContacts(requestOptions) {
|
|
810
|
+
return core.HttpResponsePromise.fromPromise(this.__listContacts(requestOptions));
|
|
811
|
+
}
|
|
812
|
+
__listContacts(requestOptions) {
|
|
813
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
814
|
+
var _a, _b, _c, _d, _e, _f;
|
|
815
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
816
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "contacts"),
|
|
817
|
+
method: "GET",
|
|
818
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
819
|
+
contentType: "application/json",
|
|
820
|
+
requestType: "json",
|
|
821
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
822
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
823
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
824
|
+
});
|
|
825
|
+
if (_response.ok) {
|
|
826
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
827
|
+
}
|
|
828
|
+
if (_response.error.reason === "status-code") {
|
|
829
|
+
switch (_response.error.statusCode) {
|
|
830
|
+
case 401:
|
|
831
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
832
|
+
default:
|
|
833
|
+
throw new errors.IntercomError({
|
|
834
|
+
statusCode: _response.error.statusCode,
|
|
835
|
+
body: _response.error.body,
|
|
836
|
+
rawResponse: _response.rawResponse,
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
switch (_response.error.reason) {
|
|
841
|
+
case "non-json":
|
|
842
|
+
throw new errors.IntercomError({
|
|
843
|
+
statusCode: _response.error.statusCode,
|
|
844
|
+
body: _response.error.rawBody,
|
|
845
|
+
rawResponse: _response.rawResponse,
|
|
846
|
+
});
|
|
847
|
+
case "timeout":
|
|
848
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /contacts.");
|
|
849
|
+
case "unknown":
|
|
850
|
+
throw new errors.IntercomError({
|
|
851
|
+
message: _response.error.errorMessage,
|
|
852
|
+
rawResponse: _response.rawResponse,
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* You can create a new contact (ie. user or lead).
|
|
859
|
+
*
|
|
860
|
+
* @param {Intercom.CreateContactRequestTwo} request
|
|
861
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
862
|
+
*
|
|
863
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
864
|
+
*
|
|
865
|
+
* @example
|
|
866
|
+
* await client.unstable.contacts.createContact({
|
|
867
|
+
* "email": "joebloggs@intercom.io"
|
|
868
|
+
* })
|
|
869
|
+
*/
|
|
870
|
+
createContact(request, requestOptions) {
|
|
871
|
+
return core.HttpResponsePromise.fromPromise(this.__createContact(request, requestOptions));
|
|
872
|
+
}
|
|
873
|
+
__createContact(request, requestOptions) {
|
|
874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
875
|
+
var _a, _b, _c, _d, _e, _f;
|
|
876
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
877
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, "contacts"),
|
|
878
|
+
method: "POST",
|
|
879
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
880
|
+
contentType: "application/json",
|
|
881
|
+
requestType: "json",
|
|
882
|
+
body: request,
|
|
883
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
884
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
885
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
886
|
+
});
|
|
887
|
+
if (_response.ok) {
|
|
888
|
+
return {
|
|
889
|
+
data: _response.body,
|
|
890
|
+
rawResponse: _response.rawResponse,
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
if (_response.error.reason === "status-code") {
|
|
894
|
+
switch (_response.error.statusCode) {
|
|
895
|
+
case 401:
|
|
896
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
897
|
+
default:
|
|
898
|
+
throw new errors.IntercomError({
|
|
899
|
+
statusCode: _response.error.statusCode,
|
|
900
|
+
body: _response.error.body,
|
|
901
|
+
rawResponse: _response.rawResponse,
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
switch (_response.error.reason) {
|
|
906
|
+
case "non-json":
|
|
907
|
+
throw new errors.IntercomError({
|
|
908
|
+
statusCode: _response.error.statusCode,
|
|
909
|
+
body: _response.error.rawBody,
|
|
910
|
+
rawResponse: _response.rawResponse,
|
|
911
|
+
});
|
|
912
|
+
case "timeout":
|
|
913
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /contacts.");
|
|
914
|
+
case "unknown":
|
|
915
|
+
throw new errors.IntercomError({
|
|
916
|
+
message: _response.error.errorMessage,
|
|
917
|
+
rawResponse: _response.rawResponse,
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* You can fetch the details of a single contact by external ID. Note that this endpoint only supports users and not leads.
|
|
924
|
+
*
|
|
925
|
+
* @param {Intercom.unstable.ShowContactByExternalIdRequest} request
|
|
926
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
927
|
+
*
|
|
928
|
+
* @throws {@link Intercom.unstable.UnauthorizedError}
|
|
929
|
+
*
|
|
930
|
+
* @example
|
|
931
|
+
* await client.unstable.contacts.showContactByExternalId({
|
|
932
|
+
* external_id: "cdd29344-5e0c-4ef0-ac56-f9ba2979bc27"
|
|
933
|
+
* })
|
|
934
|
+
*/
|
|
935
|
+
showContactByExternalId(request, requestOptions) {
|
|
936
|
+
return core.HttpResponsePromise.fromPromise(this.__showContactByExternalId(request, requestOptions));
|
|
937
|
+
}
|
|
938
|
+
__showContactByExternalId(request, requestOptions) {
|
|
939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
940
|
+
var _a, _b, _c, _d, _e, _f;
|
|
941
|
+
const { external_id: externalId } = request;
|
|
942
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
943
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/find_by_external_id/${encodeURIComponent(externalId)}`),
|
|
944
|
+
method: "GET",
|
|
945
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
946
|
+
contentType: "application/json",
|
|
947
|
+
requestType: "json",
|
|
948
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
949
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
950
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
951
|
+
});
|
|
952
|
+
if (_response.ok) {
|
|
953
|
+
return {
|
|
954
|
+
data: _response.body,
|
|
955
|
+
rawResponse: _response.rawResponse,
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
if (_response.error.reason === "status-code") {
|
|
959
|
+
switch (_response.error.statusCode) {
|
|
960
|
+
case 401:
|
|
961
|
+
throw new Intercom.unstable.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
962
|
+
default:
|
|
963
|
+
throw new errors.IntercomError({
|
|
964
|
+
statusCode: _response.error.statusCode,
|
|
965
|
+
body: _response.error.body,
|
|
966
|
+
rawResponse: _response.rawResponse,
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
switch (_response.error.reason) {
|
|
971
|
+
case "non-json":
|
|
972
|
+
throw new errors.IntercomError({
|
|
973
|
+
statusCode: _response.error.statusCode,
|
|
974
|
+
body: _response.error.rawBody,
|
|
975
|
+
rawResponse: _response.rawResponse,
|
|
976
|
+
});
|
|
977
|
+
case "timeout":
|
|
978
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling GET /contacts/find_by_external_id/{external_id}.");
|
|
979
|
+
case "unknown":
|
|
980
|
+
throw new errors.IntercomError({
|
|
981
|
+
message: _response.error.errorMessage,
|
|
982
|
+
rawResponse: _response.rawResponse,
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* You can archive a single contact.
|
|
989
|
+
*
|
|
990
|
+
* @param {Intercom.unstable.ArchiveContactRequest} request
|
|
991
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
992
|
+
*
|
|
993
|
+
* @example
|
|
994
|
+
* await client.unstable.contacts.archiveContact({
|
|
995
|
+
* id: "63a07ddf05a32042dffac965"
|
|
996
|
+
* })
|
|
997
|
+
*/
|
|
998
|
+
archiveContact(request, requestOptions) {
|
|
999
|
+
return core.HttpResponsePromise.fromPromise(this.__archiveContact(request, requestOptions));
|
|
1000
|
+
}
|
|
1001
|
+
__archiveContact(request, requestOptions) {
|
|
1002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1003
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1004
|
+
const { id } = request;
|
|
1005
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1006
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(id)}/archive`),
|
|
1007
|
+
method: "POST",
|
|
1008
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1009
|
+
contentType: "application/json",
|
|
1010
|
+
requestType: "json",
|
|
1011
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
1012
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1013
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1014
|
+
});
|
|
1015
|
+
if (_response.ok) {
|
|
1016
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1017
|
+
}
|
|
1018
|
+
if (_response.error.reason === "status-code") {
|
|
1019
|
+
throw new errors.IntercomError({
|
|
1020
|
+
statusCode: _response.error.statusCode,
|
|
1021
|
+
body: _response.error.body,
|
|
1022
|
+
rawResponse: _response.rawResponse,
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
switch (_response.error.reason) {
|
|
1026
|
+
case "non-json":
|
|
1027
|
+
throw new errors.IntercomError({
|
|
1028
|
+
statusCode: _response.error.statusCode,
|
|
1029
|
+
body: _response.error.rawBody,
|
|
1030
|
+
rawResponse: _response.rawResponse,
|
|
1031
|
+
});
|
|
1032
|
+
case "timeout":
|
|
1033
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /contacts/{id}/archive.");
|
|
1034
|
+
case "unknown":
|
|
1035
|
+
throw new errors.IntercomError({
|
|
1036
|
+
message: _response.error.errorMessage,
|
|
1037
|
+
rawResponse: _response.rawResponse,
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* You can unarchive a single contact.
|
|
1044
|
+
*
|
|
1045
|
+
* @param {Intercom.unstable.UnarchiveContactRequest} request
|
|
1046
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
1047
|
+
*
|
|
1048
|
+
* @example
|
|
1049
|
+
* await client.unstable.contacts.unarchiveContact({
|
|
1050
|
+
* id: "63a07ddf05a32042dffac965"
|
|
1051
|
+
* })
|
|
1052
|
+
*/
|
|
1053
|
+
unarchiveContact(request, requestOptions) {
|
|
1054
|
+
return core.HttpResponsePromise.fromPromise(this.__unarchiveContact(request, requestOptions));
|
|
1055
|
+
}
|
|
1056
|
+
__unarchiveContact(request, requestOptions) {
|
|
1057
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1058
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1059
|
+
const { id } = request;
|
|
1060
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1061
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(id)}/unarchive`),
|
|
1062
|
+
method: "POST",
|
|
1063
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1064
|
+
contentType: "application/json",
|
|
1065
|
+
requestType: "json",
|
|
1066
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
1067
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1068
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1069
|
+
});
|
|
1070
|
+
if (_response.ok) {
|
|
1071
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1072
|
+
}
|
|
1073
|
+
if (_response.error.reason === "status-code") {
|
|
1074
|
+
throw new errors.IntercomError({
|
|
1075
|
+
statusCode: _response.error.statusCode,
|
|
1076
|
+
body: _response.error.body,
|
|
1077
|
+
rawResponse: _response.rawResponse,
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
switch (_response.error.reason) {
|
|
1081
|
+
case "non-json":
|
|
1082
|
+
throw new errors.IntercomError({
|
|
1083
|
+
statusCode: _response.error.statusCode,
|
|
1084
|
+
body: _response.error.rawBody,
|
|
1085
|
+
rawResponse: _response.rawResponse,
|
|
1086
|
+
});
|
|
1087
|
+
case "timeout":
|
|
1088
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /contacts/{id}/unarchive.");
|
|
1089
|
+
case "unknown":
|
|
1090
|
+
throw new errors.IntercomError({
|
|
1091
|
+
message: _response.error.errorMessage,
|
|
1092
|
+
rawResponse: _response.rawResponse,
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Block a single contact.<br>**Note:** conversations of the contact will also be archived during the process.<br>More details in [FAQ How do I block Inbox spam?](https://www.intercom.com/help/en/articles/8838656-inbox-faqs)
|
|
1099
|
+
*
|
|
1100
|
+
* @param {Intercom.unstable.BlockContactRequest} request
|
|
1101
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
1102
|
+
*
|
|
1103
|
+
* @example
|
|
1104
|
+
* await client.unstable.contacts.blockContact({
|
|
1105
|
+
* id: "63a07ddf05a32042dffac965"
|
|
1106
|
+
* })
|
|
1107
|
+
*/
|
|
1108
|
+
blockContact(request, requestOptions) {
|
|
1109
|
+
return core.HttpResponsePromise.fromPromise(this.__blockContact(request, requestOptions));
|
|
1110
|
+
}
|
|
1111
|
+
__blockContact(request, requestOptions) {
|
|
1112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1113
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1114
|
+
const { id } = request;
|
|
1115
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1116
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IntercomEnvironment.UsProduction, `contacts/${encodeURIComponent(id)}/block`),
|
|
1117
|
+
method: "POST",
|
|
1118
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "intercom-client", "X-Fern-SDK-Version": "6.4.0", "User-Agent": "intercom-client/6.4.0", "Intercom-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : "2.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1119
|
+
contentType: "application/json",
|
|
1120
|
+
requestType: "json",
|
|
1121
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 20000,
|
|
1122
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1123
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1124
|
+
});
|
|
1125
|
+
if (_response.ok) {
|
|
1126
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1127
|
+
}
|
|
1128
|
+
if (_response.error.reason === "status-code") {
|
|
1129
|
+
throw new errors.IntercomError({
|
|
1130
|
+
statusCode: _response.error.statusCode,
|
|
1131
|
+
body: _response.error.body,
|
|
1132
|
+
rawResponse: _response.rawResponse,
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
switch (_response.error.reason) {
|
|
1136
|
+
case "non-json":
|
|
1137
|
+
throw new errors.IntercomError({
|
|
1138
|
+
statusCode: _response.error.statusCode,
|
|
1139
|
+
body: _response.error.rawBody,
|
|
1140
|
+
rawResponse: _response.rawResponse,
|
|
1141
|
+
});
|
|
1142
|
+
case "timeout":
|
|
1143
|
+
throw new errors.IntercomTimeoutError("Timeout exceeded when calling POST /contacts/{id}/block.");
|
|
1144
|
+
case "unknown":
|
|
1145
|
+
throw new errors.IntercomError({
|
|
1146
|
+
message: _response.error.errorMessage,
|
|
1147
|
+
rawResponse: _response.rawResponse,
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
_getAuthorizationHeader() {
|
|
1153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1154
|
+
var _a;
|
|
1155
|
+
const bearer = (_a = (yield core.Supplier.get(this._options.token))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["INTERCOM_API_KEY"];
|
|
1156
|
+
if (bearer == null) {
|
|
1157
|
+
throw new errors.IntercomError({
|
|
1158
|
+
message: "Please specify a bearer by either passing it in to the constructor or initializing a INTERCOM_API_KEY environment variable",
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
return `Bearer ${bearer}`;
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
exports.Contacts = Contacts;
|