intercom-client 4.0.0 → 6.0.0-alpha
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 +91 -0
- package/Client.js +117 -0
- package/README.md +106 -1225
- package/api/errors/BadRequestError.d.ts +7 -0
- package/api/errors/BadRequestError.js +41 -0
- package/api/errors/ForbiddenError.d.ts +8 -0
- package/api/errors/ForbiddenError.js +41 -0
- package/api/errors/NotFoundError.d.ts +7 -0
- package/api/errors/NotFoundError.js +41 -0
- package/api/errors/UnauthorizedError.d.ts +8 -0
- package/api/errors/UnauthorizedError.js +41 -0
- package/api/errors/UnprocessableEntityError.d.ts +7 -0
- package/api/errors/UnprocessableEntityError.js +41 -0
- package/api/errors/index.d.ts +5 -0
- package/api/errors/index.js +21 -0
- package/api/index.d.ts +4 -0
- package/api/index.js +19 -0
- package/api/resources/admins/client/Client.d.ts +101 -0
- package/api/resources/admins/client/Client.js +387 -0
- package/api/resources/admins/client/index.d.ts +1 -0
- package/api/resources/admins/client/index.js +17 -0
- package/api/resources/admins/client/requests/AdminsAwayRequest.d.ts +28 -0
- package/api/resources/admins/client/requests/AdminsAwayRequest.js +5 -0
- package/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.d.ts +19 -0
- package/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.js +5 -0
- package/api/resources/admins/client/requests/index.d.ts +2 -0
- package/api/resources/admins/client/requests/index.js +2 -0
- package/api/resources/admins/index.d.ts +2 -0
- package/api/resources/admins/index.js +18 -0
- package/api/resources/admins/types/Admin.d.ts +30 -0
- package/api/resources/admins/types/Admin.js +5 -0
- package/api/resources/admins/types/index.d.ts +1 -0
- package/api/resources/admins/types/index.js +17 -0
- package/api/resources/aiAgent/index.d.ts +1 -0
- package/api/resources/aiAgent/index.js +17 -0
- package/api/resources/aiAgent/types/AiAgent.d.ts +22 -0
- package/api/resources/aiAgent/types/AiAgent.js +5 -0
- package/api/resources/aiAgent/types/AiAgentSourceType.d.ts +14 -0
- package/api/resources/aiAgent/types/AiAgentSourceType.js +13 -0
- package/api/resources/aiAgent/types/index.d.ts +2 -0
- package/api/resources/aiAgent/types/index.js +18 -0
- package/api/resources/aiContentSource/index.d.ts +1 -0
- package/api/resources/aiContentSource/index.js +17 -0
- package/api/resources/aiContentSource/types/ContentSource.d.ts +17 -0
- package/api/resources/aiContentSource/types/ContentSource.js +5 -0
- package/api/resources/aiContentSource/types/ContentSourceContentType.d.ts +14 -0
- package/api/resources/aiContentSource/types/ContentSourceContentType.js +13 -0
- package/api/resources/aiContentSource/types/index.d.ts +2 -0
- package/api/resources/aiContentSource/types/index.js +18 -0
- package/api/resources/articles/client/Client.d.ts +142 -0
- package/api/resources/articles/client/Client.js +495 -0
- package/api/resources/articles/client/index.d.ts +1 -0
- package/api/resources/articles/client/index.js +17 -0
- package/api/resources/articles/client/requests/ArticlesSearchRequest.d.ts +25 -0
- package/api/resources/articles/client/requests/ArticlesSearchRequest.js +5 -0
- package/api/resources/articles/client/requests/index.d.ts +1 -0
- package/api/resources/articles/client/requests/index.js +2 -0
- package/api/resources/articles/index.d.ts +2 -0
- package/api/resources/articles/index.js +18 -0
- package/api/resources/articles/types/Article.d.ts +10 -0
- package/api/resources/articles/types/Article.js +5 -0
- package/api/resources/articles/types/ArticleListItem.d.ts +40 -0
- package/api/resources/articles/types/ArticleListItem.js +5 -0
- package/api/resources/articles/types/ArticleListItemState.d.ts +11 -0
- package/api/resources/articles/types/ArticleListItemState.js +10 -0
- package/api/resources/articles/types/ArticleSearchHighlights.d.ts +15 -0
- package/api/resources/articles/types/ArticleSearchHighlights.js +5 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.d.ts +13 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.js +5 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.d.ts +11 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.js +10 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.d.ts +13 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.js +5 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.d.ts +11 -0
- package/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.js +10 -0
- package/api/resources/articles/types/ArticleSearchResponse.d.ts +16 -0
- package/api/resources/articles/types/ArticleSearchResponse.js +5 -0
- package/api/resources/articles/types/ArticleSearchResponseData.d.ts +13 -0
- package/api/resources/articles/types/ArticleSearchResponseData.js +5 -0
- package/api/resources/articles/types/index.d.ts +10 -0
- package/api/resources/articles/types/index.js +26 -0
- package/api/resources/companies/client/Client.d.ts +237 -0
- package/api/resources/companies/client/Client.js +893 -0
- package/api/resources/companies/client/index.d.ts +1 -0
- package/api/resources/companies/client/index.js +17 -0
- package/api/resources/companies/client/requests/CompaniesAttachContactRequest.d.ts +23 -0
- package/api/resources/companies/client/requests/CompaniesAttachContactRequest.js +5 -0
- package/api/resources/companies/client/requests/CompaniesListRequest.d.ts +21 -0
- package/api/resources/companies/client/requests/CompaniesListRequest.js +5 -0
- package/api/resources/companies/client/requests/CompaniesRetrieveRequest.d.ts +33 -0
- package/api/resources/companies/client/requests/CompaniesRetrieveRequest.js +5 -0
- package/api/resources/companies/client/requests/CompaniesScrollRequest.d.ts +13 -0
- package/api/resources/companies/client/requests/CompaniesScrollRequest.js +5 -0
- package/api/resources/companies/client/requests/index.d.ts +4 -0
- package/api/resources/companies/client/requests/index.js +2 -0
- package/api/resources/companies/index.d.ts +2 -0
- package/api/resources/companies/index.js +18 -0
- package/api/resources/companies/types/Company.d.ts +46 -0
- package/api/resources/companies/types/Company.js +5 -0
- package/api/resources/companies/types/CompanyPlan.d.ts +11 -0
- package/api/resources/companies/types/CompanyPlan.js +5 -0
- package/api/resources/companies/types/CompanySegments.d.ts +12 -0
- package/api/resources/companies/types/CompanySegments.js +5 -0
- package/api/resources/companies/types/CompanyTags.d.ts +11 -0
- package/api/resources/companies/types/CompanyTags.js +5 -0
- package/api/resources/companies/types/index.d.ts +4 -0
- package/api/resources/companies/types/index.js +20 -0
- package/api/resources/contacts/client/Client.d.ts +363 -0
- package/api/resources/contacts/client/Client.js +1150 -0
- package/api/resources/contacts/client/index.d.ts +1 -0
- package/api/resources/contacts/client/index.js +17 -0
- package/api/resources/contacts/client/requests/ContactsAttachToContactRequest.d.ts +28 -0
- package/api/resources/contacts/client/requests/ContactsAttachToContactRequest.js +5 -0
- package/api/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
- package/api/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
- package/api/resources/contacts/client/requests/UpdateContactRequest.d.ts +34 -0
- package/api/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
- package/api/resources/contacts/client/requests/index.d.ts +3 -0
- package/api/resources/contacts/client/requests/index.js +2 -0
- package/api/resources/contacts/index.d.ts +2 -0
- package/api/resources/contacts/index.js +18 -0
- package/api/resources/contacts/types/Contact.d.ts +95 -0
- package/api/resources/contacts/types/Contact.js +5 -0
- package/api/resources/contacts/types/ContactAvatar.d.ts +9 -0
- package/api/resources/contacts/types/ContactAvatar.js +5 -0
- package/api/resources/contacts/types/index.d.ts +2 -0
- package/api/resources/contacts/types/index.js +18 -0
- package/api/resources/conversations/client/Client.d.ts +446 -0
- package/api/resources/conversations/client/Client.js +1153 -0
- package/api/resources/conversations/client/index.d.ts +1 -0
- package/api/resources/conversations/client/index.js +17 -0
- package/api/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +26 -0
- package/api/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
- package/api/resources/conversations/client/requests/ConversationsFindRequest.d.ts +13 -0
- package/api/resources/conversations/client/requests/ConversationsFindRequest.js +5 -0
- package/api/resources/conversations/client/requests/ConversationsListRequest.d.ts +17 -0
- package/api/resources/conversations/client/requests/ConversationsListRequest.js +5 -0
- package/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +20 -0
- package/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
- package/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +28 -0
- package/api/resources/conversations/client/requests/CreateConversationRequest.js +5 -0
- package/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +28 -0
- package/api/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
- package/api/resources/conversations/client/requests/UpdateConversationRequest.d.ts +32 -0
- package/api/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
- package/api/resources/conversations/client/requests/index.d.ts +7 -0
- package/api/resources/conversations/client/requests/index.js +2 -0
- package/api/resources/conversations/index.d.ts +2 -0
- package/api/resources/conversations/index.js +18 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomer.d.ts +5 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomer.js +5 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.d.ts +9 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.js +5 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.d.ts +9 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.js +5 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.d.ts +9 -0
- package/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.js +5 -0
- package/api/resources/conversations/types/Conversation.d.ts +49 -0
- package/api/resources/conversations/types/Conversation.js +5 -0
- package/api/resources/conversations/types/ConversationPriority.d.ts +11 -0
- package/api/resources/conversations/types/ConversationPriority.js +10 -0
- package/api/resources/conversations/types/ConversationState.d.ts +12 -0
- package/api/resources/conversations/types/ConversationState.js +11 -0
- package/api/resources/conversations/types/ConversationsManageRequestBody.d.ts +19 -0
- package/api/resources/conversations/types/ConversationsManageRequestBody.js +5 -0
- package/api/resources/conversations/types/CreateConversationRequestFrom.d.ts +10 -0
- package/api/resources/conversations/types/CreateConversationRequestFrom.js +5 -0
- package/api/resources/conversations/types/CreateConversationRequestFromType.d.ts +12 -0
- package/api/resources/conversations/types/CreateConversationRequestFromType.js +11 -0
- package/api/resources/conversations/types/index.d.ts +10 -0
- package/api/resources/conversations/types/index.js +26 -0
- package/api/resources/customObjectInstances/index.d.ts +1 -0
- package/api/resources/customObjectInstances/index.js +17 -0
- package/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +16 -0
- package/api/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
- package/api/resources/customObjectInstances/types/index.d.ts +1 -0
- package/api/resources/customObjectInstances/types/index.js +17 -0
- package/api/resources/dataAttributes/client/Client.d.ts +136 -0
- package/api/resources/dataAttributes/client/Client.js +336 -0
- package/api/resources/dataAttributes/client/index.d.ts +1 -0
- package/api/resources/dataAttributes/client/index.js +17 -0
- package/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +63 -0
- package/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +5 -0
- package/api/resources/dataAttributes/client/requests/DataAttributesListRequest.d.ts +18 -0
- package/api/resources/dataAttributes/client/requests/DataAttributesListRequest.js +5 -0
- package/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +41 -0
- package/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
- package/api/resources/dataAttributes/client/requests/index.d.ts +3 -0
- package/api/resources/dataAttributes/client/requests/index.js +2 -0
- package/api/resources/dataAttributes/index.d.ts +2 -0
- package/api/resources/dataAttributes/index.js +18 -0
- package/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.d.ts +15 -0
- package/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.js +14 -0
- package/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.d.ts +11 -0
- package/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.js +10 -0
- package/api/resources/dataAttributes/types/DataAttribute.d.ts +43 -0
- package/api/resources/dataAttributes/types/DataAttribute.js +5 -0
- package/api/resources/dataAttributes/types/DataAttributeDataType.d.ts +14 -0
- package/api/resources/dataAttributes/types/DataAttributeDataType.js +13 -0
- package/api/resources/dataAttributes/types/DataAttributeModel.d.ts +11 -0
- package/api/resources/dataAttributes/types/DataAttributeModel.js +10 -0
- package/api/resources/dataAttributes/types/DataAttributesListRequestModel.d.ts +9 -0
- package/api/resources/dataAttributes/types/DataAttributesListRequestModel.js +11 -0
- package/api/resources/dataAttributes/types/index.d.ts +6 -0
- package/api/resources/dataAttributes/types/index.js +22 -0
- package/api/resources/dataEvents/index.d.ts +1 -0
- package/api/resources/dataEvents/index.js +17 -0
- package/api/resources/dataEvents/types/DataEvent.d.ts +24 -0
- package/api/resources/dataEvents/types/DataEvent.js +5 -0
- package/api/resources/dataEvents/types/index.d.ts +1 -0
- package/api/resources/dataEvents/types/index.js +17 -0
- package/api/resources/dataExport/client/Client.d.ts +100 -0
- package/api/resources/dataExport/client/Client.js +310 -0
- package/api/resources/dataExport/client/index.d.ts +1 -0
- package/api/resources/dataExport/client/index.js +17 -0
- package/api/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
- package/api/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
- package/api/resources/dataExport/client/requests/index.d.ts +1 -0
- package/api/resources/dataExport/client/requests/index.js +2 -0
- package/api/resources/dataExport/index.d.ts +2 -0
- package/api/resources/dataExport/index.js +18 -0
- package/api/resources/dataExport/types/DataExport.d.ts +17 -0
- package/api/resources/dataExport/types/DataExport.js +5 -0
- package/api/resources/dataExport/types/DataExportStatus.d.ts +15 -0
- package/api/resources/dataExport/types/DataExportStatus.js +14 -0
- package/api/resources/dataExport/types/index.d.ts +2 -0
- package/api/resources/dataExport/types/index.js +18 -0
- package/api/resources/events/client/Client.d.ts +127 -0
- package/api/resources/events/client/Client.js +318 -0
- package/api/resources/events/client/index.d.ts +1 -0
- package/api/resources/events/client/index.js +17 -0
- package/api/resources/events/client/requests/CreateDataEventSummariesRequest.d.ts +14 -0
- package/api/resources/events/client/requests/CreateDataEventSummariesRequest.js +5 -0
- package/api/resources/events/client/requests/EventsListRequest.d.ts +25 -0
- package/api/resources/events/client/requests/EventsListRequest.js +5 -0
- package/api/resources/events/client/requests/index.d.ts +2 -0
- package/api/resources/events/client/requests/index.js +2 -0
- package/api/resources/events/index.d.ts +2 -0
- package/api/resources/events/index.js +18 -0
- package/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.d.ts +16 -0
- package/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.js +5 -0
- package/api/resources/events/types/EventsListRequestFilter.d.ts +5 -0
- package/api/resources/events/types/EventsListRequestFilter.js +5 -0
- package/api/resources/events/types/EventsListRequestFilterEmail.d.ts +6 -0
- package/api/resources/events/types/EventsListRequestFilterEmail.js +5 -0
- package/api/resources/events/types/EventsListRequestFilterIntercomUserId.d.ts +6 -0
- package/api/resources/events/types/EventsListRequestFilterIntercomUserId.js +5 -0
- package/api/resources/events/types/EventsListRequestFilterUserId.d.ts +6 -0
- package/api/resources/events/types/EventsListRequestFilterUserId.js +5 -0
- package/api/resources/events/types/index.d.ts +5 -0
- package/api/resources/events/types/index.js +21 -0
- package/api/resources/helpCenter/client/Client.d.ts +60 -0
- package/api/resources/helpCenter/client/Client.js +196 -0
- package/api/resources/helpCenter/client/index.d.ts +1 -0
- package/api/resources/helpCenter/client/index.js +2 -0
- package/api/resources/helpCenter/index.d.ts +3 -0
- package/api/resources/helpCenter/index.js +19 -0
- package/api/resources/helpCenter/resources/collections/client/Client.d.ts +106 -0
- package/api/resources/helpCenter/resources/collections/client/Client.js +395 -0
- package/api/resources/helpCenter/resources/collections/client/index.d.ts +1 -0
- package/api/resources/helpCenter/resources/collections/client/index.js +17 -0
- package/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.d.ts +27 -0
- package/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.js +5 -0
- package/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.d.ts +24 -0
- package/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.js +5 -0
- package/api/resources/helpCenter/resources/collections/client/requests/index.d.ts +2 -0
- package/api/resources/helpCenter/resources/collections/client/requests/index.js +2 -0
- package/api/resources/helpCenter/resources/collections/index.d.ts +1 -0
- package/api/resources/helpCenter/resources/collections/index.js +17 -0
- package/api/resources/helpCenter/resources/index.d.ts +2 -0
- package/api/resources/helpCenter/resources/index.js +31 -0
- package/api/resources/helpCenter/types/Collection.d.ts +34 -0
- package/api/resources/helpCenter/types/Collection.js +5 -0
- package/api/resources/helpCenter/types/HelpCenter.d.ts +22 -0
- package/api/resources/helpCenter/types/HelpCenter.js +5 -0
- package/api/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
- package/api/resources/helpCenter/types/HelpCenterList.js +5 -0
- package/api/resources/helpCenter/types/index.d.ts +3 -0
- package/api/resources/helpCenter/types/index.js +19 -0
- package/api/resources/index.d.ts +63 -0
- package/api/resources/index.js +92 -0
- package/api/resources/messages/client/Client.d.ts +145 -0
- package/api/resources/messages/client/Client.js +235 -0
- package/api/resources/messages/client/index.d.ts +1 -0
- package/api/resources/messages/client/index.js +2 -0
- package/api/resources/messages/index.d.ts +2 -0
- package/api/resources/messages/index.js +18 -0
- package/api/resources/messages/types/Message.d.ts +23 -0
- package/api/resources/messages/types/Message.js +5 -0
- package/api/resources/messages/types/MessageMessageType.d.ts +13 -0
- package/api/resources/messages/types/MessageMessageType.js +12 -0
- package/api/resources/messages/types/index.d.ts +2 -0
- package/api/resources/messages/types/index.js +18 -0
- package/api/resources/news/client/Client.d.ts +154 -0
- package/api/resources/news/client/Client.js +588 -0
- package/api/resources/news/client/index.d.ts +1 -0
- package/api/resources/news/client/index.js +2 -0
- package/api/resources/news/index.d.ts +2 -0
- package/api/resources/news/index.js +18 -0
- package/api/resources/news/types/NewsItem.d.ts +35 -0
- package/api/resources/news/types/NewsItem.js +5 -0
- package/api/resources/news/types/NewsItemState.d.ts +11 -0
- package/api/resources/news/types/NewsItemState.js +10 -0
- package/api/resources/news/types/Newsfeed.d.ts +18 -0
- package/api/resources/news/types/Newsfeed.js +5 -0
- package/api/resources/news/types/NewsfeedAssignment.d.ts +12 -0
- package/api/resources/news/types/NewsfeedAssignment.js +5 -0
- package/api/resources/news/types/index.d.ts +4 -0
- package/api/resources/news/types/index.js +20 -0
- package/api/resources/notes/client/Client.d.ts +89 -0
- package/api/resources/notes/client/Client.js +273 -0
- package/api/resources/notes/client/index.d.ts +1 -0
- package/api/resources/notes/client/index.js +17 -0
- package/api/resources/notes/client/requests/NotesCreateRequest.d.ts +33 -0
- package/api/resources/notes/client/requests/NotesCreateRequest.js +5 -0
- package/api/resources/notes/client/requests/index.d.ts +1 -0
- package/api/resources/notes/client/requests/index.js +2 -0
- package/api/resources/notes/index.d.ts +2 -0
- package/api/resources/notes/index.js +18 -0
- package/api/resources/notes/types/Note.d.ts +21 -0
- package/api/resources/notes/types/Note.js +5 -0
- package/api/resources/notes/types/NoteContact.d.ts +12 -0
- package/api/resources/notes/types/NoteContact.js +5 -0
- package/api/resources/notes/types/index.d.ts +2 -0
- package/api/resources/notes/types/index.js +18 -0
- package/api/resources/phoneCallRedirect/client/Client.d.ts +62 -0
- package/api/resources/phoneCallRedirect/client/Client.js +150 -0
- package/api/resources/phoneCallRedirect/client/index.d.ts +1 -0
- package/api/resources/phoneCallRedirect/client/index.js +2 -0
- package/api/resources/phoneCallRedirect/index.d.ts +1 -0
- package/api/resources/phoneCallRedirect/index.js +17 -0
- package/api/resources/segments/client/Client.d.ts +58 -0
- package/api/resources/segments/client/Client.js +198 -0
- package/api/resources/segments/client/index.d.ts +1 -0
- package/api/resources/segments/client/index.js +17 -0
- package/api/resources/segments/client/requests/SegmentsListRequest.d.ts +13 -0
- package/api/resources/segments/client/requests/SegmentsListRequest.js +5 -0
- package/api/resources/segments/client/requests/index.d.ts +1 -0
- package/api/resources/segments/client/requests/index.js +2 -0
- package/api/resources/segments/index.d.ts +2 -0
- package/api/resources/segments/index.js +18 -0
- package/api/resources/segments/types/Segment.d.ts +23 -0
- package/api/resources/segments/types/Segment.js +5 -0
- package/api/resources/segments/types/SegmentPersonType.d.ts +11 -0
- package/api/resources/segments/types/SegmentPersonType.js +10 -0
- package/api/resources/segments/types/index.d.ts +2 -0
- package/api/resources/segments/types/index.js +18 -0
- package/api/resources/subscriptionTypes/index.d.ts +1 -0
- package/api/resources/subscriptionTypes/index.js +17 -0
- package/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +22 -0
- package/api/resources/subscriptionTypes/types/SubscriptionType.js +5 -0
- package/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.d.ts +11 -0
- package/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.js +10 -0
- package/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.d.ts +8 -0
- package/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.js +10 -0
- package/api/resources/subscriptionTypes/types/SubscriptionTypeState.d.ts +12 -0
- package/api/resources/subscriptionTypes/types/SubscriptionTypeState.js +11 -0
- package/api/resources/subscriptionTypes/types/index.d.ts +4 -0
- package/api/resources/subscriptionTypes/types/index.js +20 -0
- package/api/resources/subscriptions/client/Client.d.ts +41 -0
- package/api/resources/subscriptions/client/Client.js +124 -0
- package/api/resources/subscriptions/client/index.d.ts +1 -0
- package/api/resources/subscriptions/client/index.js +2 -0
- package/api/resources/subscriptions/index.d.ts +1 -0
- package/api/resources/subscriptions/index.js +17 -0
- package/api/resources/tags/client/Client.d.ts +224 -0
- package/api/resources/tags/client/Client.js +776 -0
- package/api/resources/tags/client/index.d.ts +1 -0
- package/api/resources/tags/client/index.js +17 -0
- package/api/resources/tags/client/requests/TagsAttachRequest.d.ts +22 -0
- package/api/resources/tags/client/requests/TagsAttachRequest.js +5 -0
- package/api/resources/tags/client/requests/TagsDetachRequest.d.ts +23 -0
- package/api/resources/tags/client/requests/TagsDetachRequest.js +5 -0
- package/api/resources/tags/client/requests/TagsTagContactRequest.d.ts +23 -0
- package/api/resources/tags/client/requests/TagsTagContactRequest.js +5 -0
- package/api/resources/tags/client/requests/TagsTagConversationRequest.d.ts +22 -0
- package/api/resources/tags/client/requests/TagsTagConversationRequest.js +5 -0
- package/api/resources/tags/client/requests/TagsUntagConversationRequest.d.ts +23 -0
- package/api/resources/tags/client/requests/TagsUntagConversationRequest.js +5 -0
- package/api/resources/tags/client/requests/index.d.ts +5 -0
- package/api/resources/tags/client/requests/index.js +2 -0
- package/api/resources/tags/index.d.ts +2 -0
- package/api/resources/tags/index.js +18 -0
- package/api/resources/tags/types/Tag.d.ts +18 -0
- package/api/resources/tags/types/Tag.js +5 -0
- package/api/resources/tags/types/TagsCreateRequestBody.d.ts +5 -0
- package/api/resources/tags/types/TagsCreateRequestBody.js +5 -0
- package/api/resources/tags/types/index.d.ts +2 -0
- package/api/resources/tags/types/index.js +18 -0
- package/api/resources/teams/client/Client.d.ts +57 -0
- package/api/resources/teams/client/Client.js +191 -0
- package/api/resources/teams/client/index.d.ts +1 -0
- package/api/resources/teams/client/index.js +2 -0
- package/api/resources/teams/index.d.ts +2 -0
- package/api/resources/teams/index.js +18 -0
- package/api/resources/teams/types/Team.d.ts +18 -0
- package/api/resources/teams/types/Team.js +5 -0
- package/api/resources/teams/types/index.d.ts +1 -0
- package/api/resources/teams/types/index.js +17 -0
- package/api/resources/ticketTypeAttributes/client/Client.d.ts +67 -0
- package/api/resources/ticketTypeAttributes/client/Client.js +201 -0
- package/api/resources/ticketTypeAttributes/client/index.d.ts +1 -0
- package/api/resources/ticketTypeAttributes/client/index.js +17 -0
- package/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +35 -0
- package/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +5 -0
- package/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +31 -0
- package/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
- package/api/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
- package/api/resources/ticketTypeAttributes/client/requests/index.js +2 -0
- package/api/resources/ticketTypeAttributes/index.d.ts +2 -0
- package/api/resources/ticketTypeAttributes/index.js +18 -0
- package/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.d.ts +16 -0
- package/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.js +15 -0
- package/api/resources/ticketTypeAttributes/types/index.d.ts +1 -0
- package/api/resources/ticketTypeAttributes/types/index.js +17 -0
- package/api/resources/ticketTypes/client/Client.d.ts +97 -0
- package/api/resources/ticketTypes/client/Client.js +329 -0
- package/api/resources/ticketTypes/client/index.d.ts +1 -0
- package/api/resources/ticketTypes/client/index.js +2 -0
- package/api/resources/ticketTypes/index.d.ts +1 -0
- package/api/resources/ticketTypes/index.js +17 -0
- package/api/resources/tickets/client/Client.d.ts +251 -0
- package/api/resources/tickets/client/Client.js +546 -0
- package/api/resources/tickets/client/index.d.ts +1 -0
- package/api/resources/tickets/client/index.js +17 -0
- package/api/resources/tickets/client/requests/CreateTicketRequest.d.ts +28 -0
- package/api/resources/tickets/client/requests/CreateTicketRequest.js +5 -0
- package/api/resources/tickets/client/requests/UpdateTicketRequest.d.ts +59 -0
- package/api/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
- package/api/resources/tickets/client/requests/index.d.ts +2 -0
- package/api/resources/tickets/client/requests/index.js +2 -0
- package/api/resources/tickets/index.d.ts +2 -0
- package/api/resources/tickets/index.js +18 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItem.d.ts +5 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItem.js +5 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.d.ts +7 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.js +5 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.d.ts +7 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.js +5 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItemId.d.ts +7 -0
- package/api/resources/tickets/types/CreateTicketRequestContactsItemId.js +5 -0
- package/api/resources/tickets/types/Ticket.d.ts +42 -0
- package/api/resources/tickets/types/Ticket.js +5 -0
- package/api/resources/tickets/types/TicketCategory.d.ts +12 -0
- package/api/resources/tickets/types/TicketCategory.js +11 -0
- package/api/resources/tickets/types/TicketContacts.d.ts +13 -0
- package/api/resources/tickets/types/TicketContacts.js +5 -0
- package/api/resources/tickets/types/TicketPart.d.ts +34 -0
- package/api/resources/tickets/types/TicketPart.js +5 -0
- package/api/resources/tickets/types/TicketPartPreviousTicketState.d.ts +13 -0
- package/api/resources/tickets/types/TicketPartPreviousTicketState.js +12 -0
- package/api/resources/tickets/types/TicketPartTicketState.d.ts +13 -0
- package/api/resources/tickets/types/TicketPartTicketState.js +12 -0
- package/api/resources/tickets/types/TicketTicketState.d.ts +13 -0
- package/api/resources/tickets/types/TicketTicketState.js +12 -0
- package/api/resources/tickets/types/TicketType.d.ts +30 -0
- package/api/resources/tickets/types/TicketType.js +5 -0
- package/api/resources/tickets/types/TicketTypeCategory.d.ts +12 -0
- package/api/resources/tickets/types/TicketTypeCategory.js +11 -0
- package/api/resources/tickets/types/TicketsReplyRequestBody.d.ts +5 -0
- package/api/resources/tickets/types/TicketsReplyRequestBody.js +5 -0
- package/api/resources/tickets/types/UpdateTicketRequestAssignment.d.ts +9 -0
- package/api/resources/tickets/types/UpdateTicketRequestAssignment.js +5 -0
- package/api/resources/tickets/types/UpdateTicketRequestState.d.ts +12 -0
- package/api/resources/tickets/types/UpdateTicketRequestState.js +11 -0
- package/api/resources/tickets/types/index.d.ts +16 -0
- package/api/resources/tickets/types/index.js +32 -0
- package/api/resources/visitors/client/Client.d.ts +97 -0
- package/api/resources/visitors/client/Client.js +288 -0
- package/api/resources/visitors/client/index.d.ts +1 -0
- package/api/resources/visitors/client/index.js +17 -0
- package/api/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +25 -0
- package/api/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
- package/api/resources/visitors/client/requests/VisitorsFindRequest.d.ts +15 -0
- package/api/resources/visitors/client/requests/VisitorsFindRequest.js +5 -0
- package/api/resources/visitors/client/requests/index.d.ts +2 -0
- package/api/resources/visitors/client/requests/index.js +2 -0
- package/api/resources/visitors/index.d.ts +2 -0
- package/api/resources/visitors/index.js +18 -0
- package/api/resources/visitors/types/ConvertVisitorRequestUser.d.ts +8 -0
- package/api/resources/visitors/types/ConvertVisitorRequestUser.js +5 -0
- package/api/resources/visitors/types/ConvertVisitorRequestVisitor.d.ts +8 -0
- package/api/resources/visitors/types/ConvertVisitorRequestVisitor.js +5 -0
- package/api/resources/visitors/types/UserWithId.d.ts +9 -0
- package/api/resources/visitors/types/UserWithId.js +5 -0
- package/api/resources/visitors/types/UserWithUserId.d.ts +9 -0
- package/api/resources/visitors/types/UserWithUserId.js +5 -0
- package/api/resources/visitors/types/VisitorWithEmail.d.ts +7 -0
- package/api/resources/visitors/types/VisitorWithEmail.js +5 -0
- package/api/resources/visitors/types/VisitorWithId.d.ts +7 -0
- package/api/resources/visitors/types/VisitorWithId.js +5 -0
- package/api/resources/visitors/types/VisitorWithUserId.d.ts +7 -0
- package/api/resources/visitors/types/VisitorWithUserId.js +5 -0
- package/api/resources/visitors/types/index.d.ts +7 -0
- package/api/resources/visitors/types/index.js +23 -0
- package/api/types/ActivityLog.d.ts +19 -0
- package/api/types/ActivityLog.js +5 -0
- package/api/types/ActivityLogActivityType.d.ts +73 -0
- package/api/types/ActivityLogActivityType.js +75 -0
- package/api/types/ActivityLogList.d.ts +14 -0
- package/api/types/ActivityLogList.js +5 -0
- package/api/types/ActivityLogMetadata.d.ts +26 -0
- package/api/types/ActivityLogMetadata.js +5 -0
- package/api/types/ActivityLogPerformedBy.d.ts +16 -0
- package/api/types/ActivityLogPerformedBy.js +5 -0
- package/api/types/AddressableList.d.ts +14 -0
- package/api/types/AddressableList.js +5 -0
- package/api/types/AdminList.d.ts +13 -0
- package/api/types/AdminList.js +5 -0
- package/api/types/AdminPriorityLevel.d.ts +12 -0
- package/api/types/AdminPriorityLevel.js +5 -0
- package/api/types/AdminReplyConversationRequest.d.ts +21 -0
- package/api/types/AdminReplyConversationRequest.js +5 -0
- package/api/types/AdminReplyConversationRequestMessageType.d.ts +8 -0
- package/api/types/AdminReplyConversationRequestMessageType.js +10 -0
- package/api/types/AdminReplyTicketRequest.d.ts +21 -0
- package/api/types/AdminReplyTicketRequest.js +5 -0
- package/api/types/AdminReplyTicketRequestMessageType.d.ts +9 -0
- package/api/types/AdminReplyTicketRequestMessageType.js +11 -0
- package/api/types/AdminReplyTicketRequestReplyOptionsItem.d.ts +9 -0
- package/api/types/AdminReplyTicketRequestReplyOptionsItem.js +5 -0
- package/api/types/AdminWithApp.d.ts +33 -0
- package/api/types/AdminWithApp.js +5 -0
- package/api/types/AdminWithAppAvatar.d.ts +12 -0
- package/api/types/AdminWithAppAvatar.js +5 -0
- package/api/types/App.d.ts +22 -0
- package/api/types/App.js +5 -0
- package/api/types/ArticleContent.d.ts +27 -0
- package/api/types/ArticleContent.js +5 -0
- package/api/types/ArticleContentState.d.ts +11 -0
- package/api/types/ArticleContentState.js +10 -0
- package/api/types/ArticleList.d.ts +16 -0
- package/api/types/ArticleList.js +5 -0
- package/api/types/ArticleStatistics.d.ts +22 -0
- package/api/types/ArticleStatistics.js +5 -0
- package/api/types/ArticleTranslatedContent.d.ts +85 -0
- package/api/types/ArticleTranslatedContent.js +5 -0
- package/api/types/AssignConversationRequest.d.ts +16 -0
- package/api/types/AssignConversationRequest.js +5 -0
- package/api/types/AssignConversationRequestType.d.ts +8 -0
- package/api/types/AssignConversationRequestType.js +10 -0
- package/api/types/CloseConversationRequest.d.ts +13 -0
- package/api/types/CloseConversationRequest.js +5 -0
- package/api/types/CollectionList.d.ts +16 -0
- package/api/types/CollectionList.js +5 -0
- package/api/types/CompanyAttachedContacts.d.ts +16 -0
- package/api/types/CompanyAttachedContacts.js +5 -0
- package/api/types/CompanyAttachedSegments.d.ts +13 -0
- package/api/types/CompanyAttachedSegments.js +5 -0
- package/api/types/CompanyList.d.ts +16 -0
- package/api/types/CompanyList.js +5 -0
- package/api/types/CompanyScroll.d.ts +17 -0
- package/api/types/CompanyScroll.js +5 -0
- package/api/types/ContactArchived.d.ts +16 -0
- package/api/types/ContactArchived.js +5 -0
- package/api/types/ContactAttachedCompanies.d.ts +16 -0
- package/api/types/ContactAttachedCompanies.js +5 -0
- package/api/types/ContactCompanies.d.ts +14 -0
- package/api/types/ContactCompanies.js +5 -0
- package/api/types/ContactDeleted.d.ts +16 -0
- package/api/types/ContactDeleted.js +5 -0
- package/api/types/ContactList.d.ts +16 -0
- package/api/types/ContactList.js +5 -0
- package/api/types/ContactLocation.d.ts +16 -0
- package/api/types/ContactLocation.js +5 -0
- package/api/types/ContactNotes.d.ts +17 -0
- package/api/types/ContactNotes.js +5 -0
- package/api/types/ContactReference.d.ts +14 -0
- package/api/types/ContactReference.js +5 -0
- package/api/types/ContactReplyBaseRequest.d.ts +13 -0
- package/api/types/ContactReplyBaseRequest.js +5 -0
- package/api/types/ContactReplyConversationRequest.d.ts +5 -0
- package/api/types/ContactReplyConversationRequest.js +5 -0
- package/api/types/ContactReplyEmailRequest.d.ts +13 -0
- package/api/types/ContactReplyEmailRequest.js +5 -0
- package/api/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
- package/api/types/ContactReplyIntercomUserIdRequest.js +5 -0
- package/api/types/ContactReplyTicketEmailRequest.d.ts +11 -0
- package/api/types/ContactReplyTicketEmailRequest.js +5 -0
- package/api/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
- package/api/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
- package/api/types/ContactReplyTicketRequest.d.ts +5 -0
- package/api/types/ContactReplyTicketRequest.js +5 -0
- package/api/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
- package/api/types/ContactReplyTicketUserIdRequest.js +5 -0
- package/api/types/ContactReplyUserIdRequest.d.ts +13 -0
- package/api/types/ContactReplyUserIdRequest.js +5 -0
- package/api/types/ContactSegments.d.ts +13 -0
- package/api/types/ContactSegments.js +5 -0
- package/api/types/ContactSocialProfiles.d.ts +11 -0
- package/api/types/ContactSocialProfiles.js +5 -0
- package/api/types/ContactSubscriptionTypes.d.ts +17 -0
- package/api/types/ContactSubscriptionTypes.js +5 -0
- package/api/types/ContactTags.d.ts +17 -0
- package/api/types/ContactTags.js +5 -0
- package/api/types/ContactUnarchived.d.ts +16 -0
- package/api/types/ContactUnarchived.js +5 -0
- package/api/types/ContentSourcesList.d.ts +11 -0
- package/api/types/ContentSourcesList.js +5 -0
- package/api/types/ConversationAttachmentFiles.d.ts +14 -0
- package/api/types/ConversationAttachmentFiles.js +5 -0
- package/api/types/ConversationContacts.d.ts +13 -0
- package/api/types/ConversationContacts.js +5 -0
- package/api/types/ConversationFirstContactReply.d.ts +14 -0
- package/api/types/ConversationFirstContactReply.js +5 -0
- package/api/types/ConversationList.d.ts +16 -0
- package/api/types/ConversationList.js +5 -0
- package/api/types/ConversationPart.d.ts +32 -0
- package/api/types/ConversationPart.js +5 -0
- package/api/types/ConversationPartAuthor.d.ts +16 -0
- package/api/types/ConversationPartAuthor.js +5 -0
- package/api/types/ConversationParts.d.ts +15 -0
- package/api/types/ConversationParts.js +5 -0
- package/api/types/ConversationRating.d.ts +17 -0
- package/api/types/ConversationRating.js +5 -0
- package/api/types/ConversationSource.d.ts +26 -0
- package/api/types/ConversationSource.js +5 -0
- package/api/types/ConversationStatistics.d.ts +46 -0
- package/api/types/ConversationStatistics.js +5 -0
- package/api/types/ConversationTeammates.d.ts +13 -0
- package/api/types/ConversationTeammates.js +5 -0
- package/api/types/CreateArticleRequest.d.ts +24 -0
- package/api/types/CreateArticleRequest.js +5 -0
- package/api/types/CreateArticleRequestState.d.ts +11 -0
- package/api/types/CreateArticleRequestState.js +10 -0
- package/api/types/CreateContactRequest.d.ts +8 -0
- package/api/types/CreateContactRequest.js +5 -0
- package/api/types/CreateContactRequestWithEmail.d.ts +23 -0
- package/api/types/CreateContactRequestWithEmail.js +5 -0
- package/api/types/CreateContactRequestWithExternalId.d.ts +23 -0
- package/api/types/CreateContactRequestWithExternalId.js +5 -0
- package/api/types/CreateContactRequestWithRole.d.ts +23 -0
- package/api/types/CreateContactRequestWithRole.js +5 -0
- package/api/types/CreateDataEventRequest.d.ts +8 -0
- package/api/types/CreateDataEventRequest.js +5 -0
- package/api/types/CreateDataEventRequestWithEmail.d.ts +13 -0
- package/api/types/CreateDataEventRequestWithEmail.js +5 -0
- package/api/types/CreateDataEventRequestWithId.d.ts +13 -0
- package/api/types/CreateDataEventRequestWithId.js +5 -0
- package/api/types/CreateDataEventRequestWithUserId.d.ts +13 -0
- package/api/types/CreateDataEventRequestWithUserId.js +5 -0
- package/api/types/CreateMessageRequest.d.ts +16 -0
- package/api/types/CreateMessageRequest.js +5 -0
- package/api/types/CreateMessageRequestFrom.d.ts +12 -0
- package/api/types/CreateMessageRequestFrom.js +5 -0
- package/api/types/CreateMessageRequestTo.d.ts +13 -0
- package/api/types/CreateMessageRequestTo.js +5 -0
- package/api/types/CreateMessageRequestType.d.ts +11 -0
- package/api/types/CreateMessageRequestType.js +10 -0
- package/api/types/CreateMessageRequestWithEmail.d.ts +20 -0
- package/api/types/CreateMessageRequestWithEmail.js +5 -0
- package/api/types/CreateMessageRequestWithInapp.d.ts +20 -0
- package/api/types/CreateMessageRequestWithInapp.js +5 -0
- package/api/types/CreateOrUpdateCompanyRequest.d.ts +26 -0
- package/api/types/CreateOrUpdateCompanyRequest.js +5 -0
- package/api/types/CreateOrUpdateTagRequest.d.ts +12 -0
- package/api/types/CreateOrUpdateTagRequest.js +5 -0
- package/api/types/CreatePhoneSwitchRequest.d.ts +12 -0
- package/api/types/CreatePhoneSwitchRequest.js +5 -0
- package/api/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
- package/api/types/CreateTicketReplyWithCommentRequest.js +5 -0
- package/api/types/CreateTicketTypeRequest.d.ts +20 -0
- package/api/types/CreateTicketTypeRequest.js +5 -0
- package/api/types/CreateTicketTypeRequestCategory.d.ts +12 -0
- package/api/types/CreateTicketTypeRequestCategory.js +11 -0
- package/api/types/CursorPages.d.ts +19 -0
- package/api/types/CursorPages.js +5 -0
- package/api/types/CustomAttributes.d.ts +8 -0
- package/api/types/CustomAttributes.js +5 -0
- package/api/types/CustomAttributesValue.d.ts +5 -0
- package/api/types/CustomAttributesValue.js +5 -0
- package/api/types/CustomerRequest.d.ts +5 -0
- package/api/types/CustomerRequest.js +5 -0
- package/api/types/CustomerRequestEmail.d.ts +7 -0
- package/api/types/CustomerRequestEmail.js +5 -0
- package/api/types/CustomerRequestIntercomUserId.d.ts +7 -0
- package/api/types/CustomerRequestIntercomUserId.js +5 -0
- package/api/types/CustomerRequestUserId.d.ts +7 -0
- package/api/types/CustomerRequestUserId.js +5 -0
- package/api/types/DataAttributeList.d.ts +13 -0
- package/api/types/DataAttributeList.js +5 -0
- package/api/types/DataEventList.d.ts +15 -0
- package/api/types/DataEventList.js +5 -0
- package/api/types/DataEventListPages.d.ts +10 -0
- package/api/types/DataEventListPages.js +5 -0
- package/api/types/DataEventSummary.d.ts +19 -0
- package/api/types/DataEventSummary.js +5 -0
- package/api/types/DataEventSummaryItem.d.ts +18 -0
- package/api/types/DataEventSummaryItem.js +5 -0
- package/api/types/DataExportCsv.d.ts +60 -0
- package/api/types/DataExportCsv.js +5 -0
- package/api/types/DeletedArticleObject.d.ts +14 -0
- package/api/types/DeletedArticleObject.js +5 -0
- package/api/types/DeletedCollectionObject.d.ts +14 -0
- package/api/types/DeletedCollectionObject.js +5 -0
- package/api/types/DeletedCompanyObject.d.ts +14 -0
- package/api/types/DeletedCompanyObject.js +5 -0
- package/api/types/DeletedObject.d.ts +14 -0
- package/api/types/DeletedObject.js +5 -0
- package/api/types/ErrorErrorsItem.d.ts +11 -0
- package/api/types/ErrorErrorsItem.js +5 -0
- package/api/types/Error_.d.ts +15 -0
- package/api/types/Error_.js +5 -0
- package/api/types/FileAttribute.d.ts +21 -0
- package/api/types/FileAttribute.js +5 -0
- package/api/types/GroupContent.d.ts +14 -0
- package/api/types/GroupContent.js +5 -0
- package/api/types/GroupTranslatedContent.d.ts +85 -0
- package/api/types/GroupTranslatedContent.js +5 -0
- package/api/types/LinkedObject.d.ts +15 -0
- package/api/types/LinkedObject.js +5 -0
- package/api/types/LinkedObjectList.d.ts +17 -0
- package/api/types/LinkedObjectList.js +5 -0
- package/api/types/LinkedObjectType.d.ts +11 -0
- package/api/types/LinkedObjectType.js +10 -0
- package/api/types/MultipleFilterSearchRequest.d.ts +12 -0
- package/api/types/MultipleFilterSearchRequest.js +5 -0
- package/api/types/MultipleFilterSearchRequestOperator.d.ts +11 -0
- package/api/types/MultipleFilterSearchRequestOperator.js +10 -0
- package/api/types/MultipleFilterSearchRequestValue.d.ts +11 -0
- package/api/types/MultipleFilterSearchRequestValue.js +5 -0
- package/api/types/NewsItemRequest.d.ts +25 -0
- package/api/types/NewsItemRequest.js +5 -0
- package/api/types/NewsItemRequestState.d.ts +11 -0
- package/api/types/NewsItemRequestState.js +10 -0
- package/api/types/NoteList.d.ts +16 -0
- package/api/types/NoteList.js +5 -0
- package/api/types/OpenConversationRequest.d.ts +10 -0
- package/api/types/OpenConversationRequest.js +5 -0
- package/api/types/PagesLink.d.ts +16 -0
- package/api/types/PagesLink.js +5 -0
- package/api/types/PaginatedResponse.d.ts +16 -0
- package/api/types/PaginatedResponse.js +5 -0
- package/api/types/PaginatedResponseDataItem.d.ts +13 -0
- package/api/types/PaginatedResponseDataItem.js +5 -0
- package/api/types/PaginatedResponseType.d.ts +11 -0
- package/api/types/PaginatedResponseType.js +10 -0
- package/api/types/PartAttachment.d.ts +22 -0
- package/api/types/PartAttachment.js +5 -0
- package/api/types/PhoneSwitch.d.ts +12 -0
- package/api/types/PhoneSwitch.js +5 -0
- package/api/types/RedactConversationRequest.d.ts +19 -0
- package/api/types/RedactConversationRequest.js +5 -0
- package/api/types/RedactConversationRequestConversationPart.d.ts +12 -0
- package/api/types/RedactConversationRequestConversationPart.js +5 -0
- package/api/types/RedactConversationRequestSource.d.ts +12 -0
- package/api/types/RedactConversationRequestSource.js +5 -0
- package/api/types/Reference.d.ts +12 -0
- package/api/types/Reference.js +5 -0
- package/api/types/ReplyConversationRequest.d.ts +5 -0
- package/api/types/ReplyConversationRequest.js +5 -0
- package/api/types/SearchRequest.d.ts +11 -0
- package/api/types/SearchRequest.js +5 -0
- package/api/types/SearchRequestQuery.d.ts +5 -0
- package/api/types/SearchRequestQuery.js +5 -0
- package/api/types/SegmentList.d.ts +15 -0
- package/api/types/SegmentList.js +5 -0
- package/api/types/SingleFilterSearchRequest.d.ts +15 -0
- package/api/types/SingleFilterSearchRequest.js +5 -0
- package/api/types/SingleFilterSearchRequestOperator.d.ts +19 -0
- package/api/types/SingleFilterSearchRequestOperator.js +18 -0
- package/api/types/SlaApplied.d.ts +16 -0
- package/api/types/SlaApplied.js +5 -0
- package/api/types/SlaAppliedSlaStatus.d.ts +13 -0
- package/api/types/SlaAppliedSlaStatus.js +12 -0
- package/api/types/SnoozeConversationRequest.d.ts +12 -0
- package/api/types/SnoozeConversationRequest.js +5 -0
- package/api/types/SocialProfile.d.ts +14 -0
- package/api/types/SocialProfile.js +5 -0
- package/api/types/StartingAfterPaging.d.ts +9 -0
- package/api/types/StartingAfterPaging.js +5 -0
- package/api/types/SubscriptionTypeList.d.ts +13 -0
- package/api/types/SubscriptionTypeList.js +5 -0
- package/api/types/TagCompanyRequest.d.ts +13 -0
- package/api/types/TagCompanyRequest.js +5 -0
- package/api/types/TagCompanyRequestCompaniesItem.d.ts +9 -0
- package/api/types/TagCompanyRequestCompaniesItem.js +5 -0
- package/api/types/TagList.d.ts +13 -0
- package/api/types/TagList.js +5 -0
- package/api/types/TagMultipleUsersRequest.d.ts +12 -0
- package/api/types/TagMultipleUsersRequest.js +5 -0
- package/api/types/TagMultipleUsersRequestUsersItem.d.ts +7 -0
- package/api/types/TagMultipleUsersRequestUsersItem.js +5 -0
- package/api/types/Tags.d.ts +13 -0
- package/api/types/Tags.js +5 -0
- package/api/types/TeamList.d.ts +13 -0
- package/api/types/TeamList.js +5 -0
- package/api/types/TeamPriorityLevel.d.ts +12 -0
- package/api/types/TeamPriorityLevel.js +5 -0
- package/api/types/TicketCustomAttributes.d.ts +8 -0
- package/api/types/TicketCustomAttributes.js +5 -0
- package/api/types/TicketCustomAttributesValue.d.ts +5 -0
- package/api/types/TicketCustomAttributesValue.js +5 -0
- package/api/types/TicketList.d.ts +16 -0
- package/api/types/TicketList.js +5 -0
- package/api/types/TicketPartAuthor.d.ts +17 -0
- package/api/types/TicketPartAuthor.js +5 -0
- package/api/types/TicketPartAuthorType.d.ts +13 -0
- package/api/types/TicketPartAuthorType.js +12 -0
- package/api/types/TicketParts.d.ts +15 -0
- package/api/types/TicketParts.js +5 -0
- package/api/types/TicketReply.d.ts +26 -0
- package/api/types/TicketReply.js +5 -0
- package/api/types/TicketReplyPartType.d.ts +12 -0
- package/api/types/TicketReplyPartType.js +11 -0
- package/api/types/TicketRequestCustomAttributes.d.ts +8 -0
- package/api/types/TicketRequestCustomAttributes.js +5 -0
- package/api/types/TicketRequestCustomAttributesValue.d.ts +4 -0
- package/api/types/TicketRequestCustomAttributesValue.js +5 -0
- package/api/types/TicketTypeAttribute.d.ts +42 -0
- package/api/types/TicketTypeAttribute.js +5 -0
- package/api/types/TicketTypeAttributeList.d.ts +13 -0
- package/api/types/TicketTypeAttributeList.js +5 -0
- package/api/types/TicketTypeList.d.ts +13 -0
- package/api/types/TicketTypeList.js +5 -0
- package/api/types/Translation.d.ts +14 -0
- package/api/types/Translation.js +5 -0
- package/api/types/UntagCompanyRequest.d.ts +13 -0
- package/api/types/UntagCompanyRequest.js +5 -0
- package/api/types/UntagCompanyRequestCompaniesItem.d.ts +11 -0
- package/api/types/UntagCompanyRequestCompaniesItem.js +5 -0
- package/api/types/UpdateArticleRequest.d.ts +24 -0
- package/api/types/UpdateArticleRequest.js +5 -0
- package/api/types/UpdateArticleRequestState.d.ts +11 -0
- package/api/types/UpdateArticleRequestState.js +10 -0
- package/api/types/UpdateTicketTypeRequest.d.ts +22 -0
- package/api/types/UpdateTicketTypeRequest.js +5 -0
- package/api/types/UpdateTicketTypeRequestCategory.d.ts +12 -0
- package/api/types/UpdateTicketTypeRequestCategory.js +11 -0
- package/api/types/UpdateVisitorRequest.d.ts +8 -0
- package/api/types/UpdateVisitorRequest.js +5 -0
- package/api/types/UpdateVisitorRequestWithId.d.ts +9 -0
- package/api/types/UpdateVisitorRequestWithId.js +5 -0
- package/api/types/UpdateVisitorRequestWithUserId.d.ts +9 -0
- package/api/types/UpdateVisitorRequestWithUserId.js +5 -0
- package/api/types/Visitor.d.ts +69 -0
- package/api/types/Visitor.js +5 -0
- package/api/types/VisitorAvatar.d.ts +9 -0
- package/api/types/VisitorAvatar.js +5 -0
- package/api/types/VisitorCompanies.d.ts +9 -0
- package/api/types/VisitorCompanies.js +5 -0
- package/api/types/VisitorDeletedObject.d.ts +14 -0
- package/api/types/VisitorDeletedObject.js +5 -0
- package/api/types/VisitorLocationData.d.ts +21 -0
- package/api/types/VisitorLocationData.js +5 -0
- package/api/types/VisitorSegments.d.ts +8 -0
- package/api/types/VisitorSegments.js +5 -0
- package/api/types/VisitorSocialProfiles.d.ts +8 -0
- package/api/types/VisitorSocialProfiles.js +5 -0
- package/api/types/VisitorTags.d.ts +9 -0
- package/api/types/VisitorTags.js +5 -0
- package/api/types/VisitorTagsTagsItem.d.ts +11 -0
- package/api/types/VisitorTagsTagsItem.js +5 -0
- package/api/types/index.d.ts +179 -0
- package/api/types/index.js +195 -0
- package/api/version.d.ts +5 -0
- package/api/version.js +5 -0
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +26 -0
- package/core/auth/BearerToken.d.ts +5 -0
- package/core/auth/BearerToken.js +15 -0
- package/core/auth/index.d.ts +2 -0
- package/core/auth/index.js +7 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +38 -0
- package/core/fetcher/Fetcher.js +99 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +55 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +48 -0
- package/core/fetcher/index.d.ts +5 -0
- package/core/fetcher/index.js +9 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +40 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/index.d.ts +5 -0
- package/core/index.js +21 -0
- package/core/pagination/Page.d.ts +29 -0
- package/core/pagination/Page.js +94 -0
- package/core/pagination/Pageable.d.ts +12 -0
- package/core/pagination/Pageable.js +10 -0
- package/core/pagination/index.d.ts +2 -0
- package/core/pagination/index.js +7 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +9 -0
- package/core/runtime/runtime.js +93 -0
- package/core/utils/index.d.ts +1 -0
- package/core/utils/index.js +5 -0
- package/core/utils/setObjectProperty.d.ts +11 -0
- package/core/utils/setObjectProperty.js +43 -0
- package/dist/Client.d.ts +91 -0
- package/dist/Client.js +117 -0
- package/dist/api/errors/BadRequestError.d.ts +7 -0
- package/dist/api/errors/BadRequestError.js +41 -0
- package/dist/api/errors/ForbiddenError.d.ts +8 -0
- package/dist/api/errors/ForbiddenError.js +41 -0
- package/dist/api/errors/NotFoundError.d.ts +7 -0
- package/dist/api/errors/NotFoundError.js +41 -0
- package/dist/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/api/errors/UnauthorizedError.js +41 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +7 -0
- package/dist/api/errors/UnprocessableEntityError.js +41 -0
- package/dist/api/errors/index.d.ts +5 -0
- package/dist/api/errors/index.js +21 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/admins/client/Client.d.ts +101 -0
- package/dist/api/resources/admins/client/Client.js +387 -0
- package/dist/api/resources/admins/client/index.d.ts +1 -0
- package/dist/api/resources/admins/client/index.js +17 -0
- package/dist/api/resources/admins/client/requests/AdminsAwayRequest.d.ts +28 -0
- package/dist/api/resources/admins/client/requests/AdminsAwayRequest.js +5 -0
- package/dist/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.d.ts +19 -0
- package/dist/api/resources/admins/client/requests/AdminsListAllActivityLogsRequest.js +5 -0
- package/dist/api/resources/admins/client/requests/index.d.ts +2 -0
- package/dist/api/resources/admins/client/requests/index.js +2 -0
- package/dist/api/resources/admins/index.d.ts +2 -0
- package/dist/api/resources/admins/index.js +18 -0
- package/dist/api/resources/admins/types/Admin.d.ts +30 -0
- package/dist/api/resources/admins/types/Admin.js +5 -0
- package/dist/api/resources/admins/types/index.d.ts +1 -0
- package/dist/api/resources/admins/types/index.js +17 -0
- package/dist/api/resources/aiAgent/index.d.ts +1 -0
- package/dist/api/resources/aiAgent/index.js +17 -0
- package/dist/api/resources/aiAgent/types/AiAgent.d.ts +22 -0
- package/dist/api/resources/aiAgent/types/AiAgent.js +5 -0
- package/dist/api/resources/aiAgent/types/AiAgentSourceType.d.ts +14 -0
- package/dist/api/resources/aiAgent/types/AiAgentSourceType.js +13 -0
- package/dist/api/resources/aiAgent/types/index.d.ts +2 -0
- package/dist/api/resources/aiAgent/types/index.js +18 -0
- package/dist/api/resources/aiContentSource/index.d.ts +1 -0
- package/dist/api/resources/aiContentSource/index.js +17 -0
- package/dist/api/resources/aiContentSource/types/ContentSource.d.ts +17 -0
- package/dist/api/resources/aiContentSource/types/ContentSource.js +5 -0
- package/dist/api/resources/aiContentSource/types/ContentSourceContentType.d.ts +14 -0
- package/dist/api/resources/aiContentSource/types/ContentSourceContentType.js +13 -0
- package/dist/api/resources/aiContentSource/types/index.d.ts +2 -0
- package/dist/api/resources/aiContentSource/types/index.js +18 -0
- package/dist/api/resources/articles/client/Client.d.ts +142 -0
- package/dist/api/resources/articles/client/Client.js +495 -0
- package/dist/api/resources/articles/client/index.d.ts +1 -0
- package/dist/api/resources/articles/client/index.js +17 -0
- package/dist/api/resources/articles/client/requests/ArticlesSearchRequest.d.ts +25 -0
- package/dist/api/resources/articles/client/requests/ArticlesSearchRequest.js +5 -0
- package/dist/api/resources/articles/client/requests/index.d.ts +1 -0
- package/dist/api/resources/articles/client/requests/index.js +2 -0
- package/dist/api/resources/articles/index.d.ts +2 -0
- package/dist/api/resources/articles/index.js +18 -0
- package/dist/api/resources/articles/types/Article.d.ts +10 -0
- package/dist/api/resources/articles/types/Article.js +5 -0
- package/dist/api/resources/articles/types/ArticleListItem.d.ts +40 -0
- package/dist/api/resources/articles/types/ArticleListItem.js +5 -0
- package/dist/api/resources/articles/types/ArticleListItemState.d.ts +11 -0
- package/dist/api/resources/articles/types/ArticleListItemState.js +10 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlights.d.ts +15 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlights.js +5 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.d.ts +13 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItem.js +5 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.d.ts +11 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedSummaryItemItemType.js +10 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.d.ts +13 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItem.js +5 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.d.ts +11 -0
- package/dist/api/resources/articles/types/ArticleSearchHighlightsHighlightedTitleItemType.js +10 -0
- package/dist/api/resources/articles/types/ArticleSearchResponse.d.ts +16 -0
- package/dist/api/resources/articles/types/ArticleSearchResponse.js +5 -0
- package/dist/api/resources/articles/types/ArticleSearchResponseData.d.ts +13 -0
- package/dist/api/resources/articles/types/ArticleSearchResponseData.js +5 -0
- package/dist/api/resources/articles/types/index.d.ts +10 -0
- package/dist/api/resources/articles/types/index.js +26 -0
- package/dist/api/resources/companies/client/Client.d.ts +237 -0
- package/dist/api/resources/companies/client/Client.js +893 -0
- package/dist/api/resources/companies/client/index.d.ts +1 -0
- package/dist/api/resources/companies/client/index.js +17 -0
- package/dist/api/resources/companies/client/requests/CompaniesAttachContactRequest.d.ts +23 -0
- package/dist/api/resources/companies/client/requests/CompaniesAttachContactRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CompaniesListRequest.d.ts +21 -0
- package/dist/api/resources/companies/client/requests/CompaniesListRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CompaniesRetrieveRequest.d.ts +33 -0
- package/dist/api/resources/companies/client/requests/CompaniesRetrieveRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CompaniesScrollRequest.d.ts +13 -0
- package/dist/api/resources/companies/client/requests/CompaniesScrollRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/index.js +2 -0
- package/dist/api/resources/companies/index.d.ts +2 -0
- package/dist/api/resources/companies/index.js +18 -0
- package/dist/api/resources/companies/types/Company.d.ts +46 -0
- package/dist/api/resources/companies/types/Company.js +5 -0
- package/dist/api/resources/companies/types/CompanyPlan.d.ts +11 -0
- package/dist/api/resources/companies/types/CompanyPlan.js +5 -0
- package/dist/api/resources/companies/types/CompanySegments.d.ts +12 -0
- package/dist/api/resources/companies/types/CompanySegments.js +5 -0
- package/dist/api/resources/companies/types/CompanyTags.d.ts +11 -0
- package/dist/api/resources/companies/types/CompanyTags.js +5 -0
- package/dist/api/resources/companies/types/index.d.ts +4 -0
- package/dist/api/resources/companies/types/index.js +20 -0
- package/dist/api/resources/contacts/client/Client.d.ts +363 -0
- package/dist/api/resources/contacts/client/Client.js +1150 -0
- package/dist/api/resources/contacts/client/index.d.ts +1 -0
- package/dist/api/resources/contacts/client/index.js +17 -0
- package/dist/api/resources/contacts/client/requests/ContactsAttachToContactRequest.d.ts +28 -0
- package/dist/api/resources/contacts/client/requests/ContactsAttachToContactRequest.js +5 -0
- package/dist/api/resources/contacts/client/requests/MergeContactsRequest.d.ts +16 -0
- package/dist/api/resources/contacts/client/requests/MergeContactsRequest.js +5 -0
- package/dist/api/resources/contacts/client/requests/UpdateContactRequest.d.ts +34 -0
- package/dist/api/resources/contacts/client/requests/UpdateContactRequest.js +5 -0
- package/dist/api/resources/contacts/client/requests/index.d.ts +3 -0
- package/dist/api/resources/contacts/client/requests/index.js +2 -0
- package/dist/api/resources/contacts/index.d.ts +2 -0
- package/dist/api/resources/contacts/index.js +18 -0
- package/dist/api/resources/contacts/types/Contact.d.ts +95 -0
- package/dist/api/resources/contacts/types/Contact.js +5 -0
- package/dist/api/resources/contacts/types/ContactAvatar.d.ts +9 -0
- package/dist/api/resources/contacts/types/ContactAvatar.js +5 -0
- package/dist/api/resources/contacts/types/index.d.ts +2 -0
- package/dist/api/resources/contacts/types/index.js +18 -0
- package/dist/api/resources/conversations/client/Client.d.ts +446 -0
- package/dist/api/resources/conversations/client/Client.js +1153 -0
- package/dist/api/resources/conversations/client/index.d.ts +1 -0
- package/dist/api/resources/conversations/client/index.js +17 -0
- package/dist/api/resources/conversations/client/requests/AttachContactToConversationRequest.d.ts +26 -0
- package/dist/api/resources/conversations/client/requests/AttachContactToConversationRequest.js +5 -0
- package/dist/api/resources/conversations/client/requests/ConversationsFindRequest.d.ts +13 -0
- package/dist/api/resources/conversations/client/requests/ConversationsFindRequest.js +5 -0
- package/dist/api/resources/conversations/client/requests/ConversationsListRequest.d.ts +17 -0
- package/dist/api/resources/conversations/client/requests/ConversationsListRequest.js +5 -0
- package/dist/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.d.ts +20 -0
- package/dist/api/resources/conversations/client/requests/ConvertConversationToTicketRequest.js +5 -0
- package/dist/api/resources/conversations/client/requests/CreateConversationRequest.d.ts +28 -0
- package/dist/api/resources/conversations/client/requests/CreateConversationRequest.js +5 -0
- package/dist/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +28 -0
- package/dist/api/resources/conversations/client/requests/DetachContactFromConversationRequest.js +5 -0
- package/dist/api/resources/conversations/client/requests/UpdateConversationRequest.d.ts +32 -0
- package/dist/api/resources/conversations/client/requests/UpdateConversationRequest.js +5 -0
- package/dist/api/resources/conversations/client/requests/index.d.ts +7 -0
- package/dist/api/resources/conversations/client/requests/index.js +2 -0
- package/dist/api/resources/conversations/index.d.ts +2 -0
- package/dist/api/resources/conversations/index.js +18 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomer.d.ts +5 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomer.js +5 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.d.ts +9 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerCustomer.js +5 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.d.ts +9 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerIntercomUserId.js +5 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.d.ts +9 -0
- package/dist/api/resources/conversations/types/AttachContactToConversationRequestCustomerUserId.js +5 -0
- package/dist/api/resources/conversations/types/Conversation.d.ts +49 -0
- package/dist/api/resources/conversations/types/Conversation.js +5 -0
- package/dist/api/resources/conversations/types/ConversationPriority.d.ts +11 -0
- package/dist/api/resources/conversations/types/ConversationPriority.js +10 -0
- package/dist/api/resources/conversations/types/ConversationState.d.ts +12 -0
- package/dist/api/resources/conversations/types/ConversationState.js +11 -0
- package/dist/api/resources/conversations/types/ConversationsManageRequestBody.d.ts +19 -0
- package/dist/api/resources/conversations/types/ConversationsManageRequestBody.js +5 -0
- package/dist/api/resources/conversations/types/CreateConversationRequestFrom.d.ts +10 -0
- package/dist/api/resources/conversations/types/CreateConversationRequestFrom.js +5 -0
- package/dist/api/resources/conversations/types/CreateConversationRequestFromType.d.ts +12 -0
- package/dist/api/resources/conversations/types/CreateConversationRequestFromType.js +11 -0
- package/dist/api/resources/conversations/types/index.d.ts +10 -0
- package/dist/api/resources/conversations/types/index.js +26 -0
- package/dist/api/resources/customObjectInstances/index.d.ts +1 -0
- package/dist/api/resources/customObjectInstances/index.js +17 -0
- package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +16 -0
- package/dist/api/resources/customObjectInstances/types/CustomObjectInstance.js +5 -0
- package/dist/api/resources/customObjectInstances/types/index.d.ts +1 -0
- package/dist/api/resources/customObjectInstances/types/index.js +17 -0
- package/dist/api/resources/dataAttributes/client/Client.d.ts +136 -0
- package/dist/api/resources/dataAttributes/client/Client.js +336 -0
- package/dist/api/resources/dataAttributes/client/index.d.ts +1 -0
- package/dist/api/resources/dataAttributes/client/index.js +17 -0
- package/dist/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.d.ts +63 -0
- package/dist/api/resources/dataAttributes/client/requests/CreateDataAttributeRequest.js +5 -0
- package/dist/api/resources/dataAttributes/client/requests/DataAttributesListRequest.d.ts +18 -0
- package/dist/api/resources/dataAttributes/client/requests/DataAttributesListRequest.js +5 -0
- package/dist/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +41 -0
- package/dist/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.js +5 -0
- package/dist/api/resources/dataAttributes/client/requests/index.d.ts +3 -0
- package/dist/api/resources/dataAttributes/client/requests/index.js +2 -0
- package/dist/api/resources/dataAttributes/index.d.ts +2 -0
- package/dist/api/resources/dataAttributes/index.js +18 -0
- package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.d.ts +15 -0
- package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestDataType.js +14 -0
- package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.d.ts +11 -0
- package/dist/api/resources/dataAttributes/types/CreateDataAttributeRequestModel.js +10 -0
- package/dist/api/resources/dataAttributes/types/DataAttribute.d.ts +43 -0
- package/dist/api/resources/dataAttributes/types/DataAttribute.js +5 -0
- package/dist/api/resources/dataAttributes/types/DataAttributeDataType.d.ts +14 -0
- package/dist/api/resources/dataAttributes/types/DataAttributeDataType.js +13 -0
- package/dist/api/resources/dataAttributes/types/DataAttributeModel.d.ts +11 -0
- package/dist/api/resources/dataAttributes/types/DataAttributeModel.js +10 -0
- package/dist/api/resources/dataAttributes/types/DataAttributesListRequestModel.d.ts +9 -0
- package/dist/api/resources/dataAttributes/types/DataAttributesListRequestModel.js +11 -0
- package/dist/api/resources/dataAttributes/types/index.d.ts +6 -0
- package/dist/api/resources/dataAttributes/types/index.js +22 -0
- package/dist/api/resources/dataEvents/index.d.ts +1 -0
- package/dist/api/resources/dataEvents/index.js +17 -0
- package/dist/api/resources/dataEvents/types/DataEvent.d.ts +24 -0
- package/dist/api/resources/dataEvents/types/DataEvent.js +5 -0
- package/dist/api/resources/dataEvents/types/index.d.ts +1 -0
- package/dist/api/resources/dataEvents/types/index.js +17 -0
- package/dist/api/resources/dataExport/client/Client.d.ts +100 -0
- package/dist/api/resources/dataExport/client/Client.js +310 -0
- package/dist/api/resources/dataExport/client/index.d.ts +1 -0
- package/dist/api/resources/dataExport/client/index.js +17 -0
- package/dist/api/resources/dataExport/client/requests/CreateDataExportsRequest.d.ts +16 -0
- package/dist/api/resources/dataExport/client/requests/CreateDataExportsRequest.js +5 -0
- package/dist/api/resources/dataExport/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dataExport/client/requests/index.js +2 -0
- package/dist/api/resources/dataExport/index.d.ts +2 -0
- package/dist/api/resources/dataExport/index.js +18 -0
- package/dist/api/resources/dataExport/types/DataExport.d.ts +17 -0
- package/dist/api/resources/dataExport/types/DataExport.js +5 -0
- package/dist/api/resources/dataExport/types/DataExportStatus.d.ts +15 -0
- package/dist/api/resources/dataExport/types/DataExportStatus.js +14 -0
- package/dist/api/resources/dataExport/types/index.d.ts +2 -0
- package/dist/api/resources/dataExport/types/index.js +18 -0
- package/dist/api/resources/events/client/Client.d.ts +127 -0
- package/dist/api/resources/events/client/Client.js +318 -0
- package/dist/api/resources/events/client/index.d.ts +1 -0
- package/dist/api/resources/events/client/index.js +17 -0
- package/dist/api/resources/events/client/requests/CreateDataEventSummariesRequest.d.ts +14 -0
- package/dist/api/resources/events/client/requests/CreateDataEventSummariesRequest.js +5 -0
- package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +25 -0
- package/dist/api/resources/events/client/requests/EventsListRequest.js +5 -0
- package/dist/api/resources/events/client/requests/index.d.ts +2 -0
- package/dist/api/resources/events/client/requests/index.js +2 -0
- package/dist/api/resources/events/index.d.ts +2 -0
- package/dist/api/resources/events/index.js +18 -0
- package/dist/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.d.ts +16 -0
- package/dist/api/resources/events/types/CreateDataEventSummariesRequestEventSummaries.js +5 -0
- package/dist/api/resources/events/types/EventsListRequestFilter.d.ts +5 -0
- package/dist/api/resources/events/types/EventsListRequestFilter.js +5 -0
- package/dist/api/resources/events/types/EventsListRequestFilterEmail.d.ts +6 -0
- package/dist/api/resources/events/types/EventsListRequestFilterEmail.js +5 -0
- package/dist/api/resources/events/types/EventsListRequestFilterIntercomUserId.d.ts +6 -0
- package/dist/api/resources/events/types/EventsListRequestFilterIntercomUserId.js +5 -0
- package/dist/api/resources/events/types/EventsListRequestFilterUserId.d.ts +6 -0
- package/dist/api/resources/events/types/EventsListRequestFilterUserId.js +5 -0
- package/dist/api/resources/events/types/index.d.ts +5 -0
- package/dist/api/resources/events/types/index.js +21 -0
- package/dist/api/resources/helpCenter/client/Client.d.ts +60 -0
- package/dist/api/resources/helpCenter/client/Client.js +196 -0
- package/dist/api/resources/helpCenter/client/index.d.ts +1 -0
- package/dist/api/resources/helpCenter/client/index.js +2 -0
- package/dist/api/resources/helpCenter/index.d.ts +3 -0
- package/dist/api/resources/helpCenter/index.js +19 -0
- package/dist/api/resources/helpCenter/resources/collections/client/Client.d.ts +106 -0
- package/dist/api/resources/helpCenter/resources/collections/client/Client.js +395 -0
- package/dist/api/resources/helpCenter/resources/collections/client/index.d.ts +1 -0
- package/dist/api/resources/helpCenter/resources/collections/client/index.js +17 -0
- package/dist/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.d.ts +27 -0
- package/dist/api/resources/helpCenter/resources/collections/client/requests/CreateCollectionRequest.js +5 -0
- package/dist/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.d.ts +24 -0
- package/dist/api/resources/helpCenter/resources/collections/client/requests/UpdateCollectionRequest.js +5 -0
- package/dist/api/resources/helpCenter/resources/collections/client/requests/index.d.ts +2 -0
- package/dist/api/resources/helpCenter/resources/collections/client/requests/index.js +2 -0
- package/dist/api/resources/helpCenter/resources/collections/index.d.ts +1 -0
- package/dist/api/resources/helpCenter/resources/collections/index.js +17 -0
- package/dist/api/resources/helpCenter/resources/index.d.ts +2 -0
- package/dist/api/resources/helpCenter/resources/index.js +31 -0
- package/dist/api/resources/helpCenter/types/Collection.d.ts +34 -0
- package/dist/api/resources/helpCenter/types/Collection.js +5 -0
- package/dist/api/resources/helpCenter/types/HelpCenter.d.ts +22 -0
- package/dist/api/resources/helpCenter/types/HelpCenter.js +5 -0
- package/dist/api/resources/helpCenter/types/HelpCenterList.d.ts +13 -0
- package/dist/api/resources/helpCenter/types/HelpCenterList.js +5 -0
- package/dist/api/resources/helpCenter/types/index.d.ts +3 -0
- package/dist/api/resources/helpCenter/types/index.js +19 -0
- package/dist/api/resources/index.d.ts +63 -0
- package/dist/api/resources/index.js +92 -0
- package/dist/api/resources/messages/client/Client.d.ts +145 -0
- package/dist/api/resources/messages/client/Client.js +235 -0
- package/dist/api/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/messages/client/index.js +2 -0
- package/dist/api/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/messages/index.js +18 -0
- package/dist/api/resources/messages/types/Message.d.ts +23 -0
- package/dist/api/resources/messages/types/Message.js +5 -0
- package/dist/api/resources/messages/types/MessageMessageType.d.ts +13 -0
- package/dist/api/resources/messages/types/MessageMessageType.js +12 -0
- package/dist/api/resources/messages/types/index.d.ts +2 -0
- package/dist/api/resources/messages/types/index.js +18 -0
- package/dist/api/resources/news/client/Client.d.ts +154 -0
- package/dist/api/resources/news/client/Client.js +588 -0
- package/dist/api/resources/news/client/index.d.ts +1 -0
- package/dist/api/resources/news/client/index.js +2 -0
- package/dist/api/resources/news/index.d.ts +2 -0
- package/dist/api/resources/news/index.js +18 -0
- package/dist/api/resources/news/types/NewsItem.d.ts +35 -0
- package/dist/api/resources/news/types/NewsItem.js +5 -0
- package/dist/api/resources/news/types/NewsItemState.d.ts +11 -0
- package/dist/api/resources/news/types/NewsItemState.js +10 -0
- package/dist/api/resources/news/types/Newsfeed.d.ts +18 -0
- package/dist/api/resources/news/types/Newsfeed.js +5 -0
- package/dist/api/resources/news/types/NewsfeedAssignment.d.ts +12 -0
- package/dist/api/resources/news/types/NewsfeedAssignment.js +5 -0
- package/dist/api/resources/news/types/index.d.ts +4 -0
- package/dist/api/resources/news/types/index.js +20 -0
- package/dist/api/resources/notes/client/Client.d.ts +89 -0
- package/dist/api/resources/notes/client/Client.js +273 -0
- package/dist/api/resources/notes/client/index.d.ts +1 -0
- package/dist/api/resources/notes/client/index.js +17 -0
- package/dist/api/resources/notes/client/requests/NotesCreateRequest.d.ts +33 -0
- package/dist/api/resources/notes/client/requests/NotesCreateRequest.js +5 -0
- package/dist/api/resources/notes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/notes/client/requests/index.js +2 -0
- package/dist/api/resources/notes/index.d.ts +2 -0
- package/dist/api/resources/notes/index.js +18 -0
- package/dist/api/resources/notes/types/Note.d.ts +21 -0
- package/dist/api/resources/notes/types/Note.js +5 -0
- package/dist/api/resources/notes/types/NoteContact.d.ts +12 -0
- package/dist/api/resources/notes/types/NoteContact.js +5 -0
- package/dist/api/resources/notes/types/index.d.ts +2 -0
- package/dist/api/resources/notes/types/index.js +18 -0
- package/dist/api/resources/phoneCallRedirect/client/Client.d.ts +62 -0
- package/dist/api/resources/phoneCallRedirect/client/Client.js +150 -0
- package/dist/api/resources/phoneCallRedirect/client/index.d.ts +1 -0
- package/dist/api/resources/phoneCallRedirect/client/index.js +2 -0
- package/dist/api/resources/phoneCallRedirect/index.d.ts +1 -0
- package/dist/api/resources/phoneCallRedirect/index.js +17 -0
- package/dist/api/resources/segments/client/Client.d.ts +58 -0
- package/dist/api/resources/segments/client/Client.js +198 -0
- package/dist/api/resources/segments/client/index.d.ts +1 -0
- package/dist/api/resources/segments/client/index.js +17 -0
- package/dist/api/resources/segments/client/requests/SegmentsListRequest.d.ts +13 -0
- package/dist/api/resources/segments/client/requests/SegmentsListRequest.js +5 -0
- package/dist/api/resources/segments/client/requests/index.d.ts +1 -0
- package/dist/api/resources/segments/client/requests/index.js +2 -0
- package/dist/api/resources/segments/index.d.ts +2 -0
- package/dist/api/resources/segments/index.js +18 -0
- package/dist/api/resources/segments/types/Segment.d.ts +23 -0
- package/dist/api/resources/segments/types/Segment.js +5 -0
- package/dist/api/resources/segments/types/SegmentPersonType.d.ts +11 -0
- package/dist/api/resources/segments/types/SegmentPersonType.js +10 -0
- package/dist/api/resources/segments/types/index.d.ts +2 -0
- package/dist/api/resources/segments/types/index.js +18 -0
- package/dist/api/resources/subscriptionTypes/index.d.ts +1 -0
- package/dist/api/resources/subscriptionTypes/index.js +17 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +22 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionType.js +5 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.d.ts +11 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeConsentType.js +10 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.d.ts +8 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeContentTypesItem.js +10 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeState.d.ts +12 -0
- package/dist/api/resources/subscriptionTypes/types/SubscriptionTypeState.js +11 -0
- package/dist/api/resources/subscriptionTypes/types/index.d.ts +4 -0
- package/dist/api/resources/subscriptionTypes/types/index.js +20 -0
- package/dist/api/resources/subscriptions/client/Client.d.ts +41 -0
- package/dist/api/resources/subscriptions/client/Client.js +124 -0
- package/dist/api/resources/subscriptions/client/index.d.ts +1 -0
- package/dist/api/resources/subscriptions/client/index.js +2 -0
- package/dist/api/resources/subscriptions/index.d.ts +1 -0
- package/dist/api/resources/subscriptions/index.js +17 -0
- package/dist/api/resources/tags/client/Client.d.ts +224 -0
- package/dist/api/resources/tags/client/Client.js +776 -0
- package/dist/api/resources/tags/client/index.d.ts +1 -0
- package/dist/api/resources/tags/client/index.js +17 -0
- package/dist/api/resources/tags/client/requests/TagsAttachRequest.d.ts +22 -0
- package/dist/api/resources/tags/client/requests/TagsAttachRequest.js +5 -0
- package/dist/api/resources/tags/client/requests/TagsDetachRequest.d.ts +23 -0
- package/dist/api/resources/tags/client/requests/TagsDetachRequest.js +5 -0
- package/dist/api/resources/tags/client/requests/TagsTagContactRequest.d.ts +23 -0
- package/dist/api/resources/tags/client/requests/TagsTagContactRequest.js +5 -0
- package/dist/api/resources/tags/client/requests/TagsTagConversationRequest.d.ts +22 -0
- package/dist/api/resources/tags/client/requests/TagsTagConversationRequest.js +5 -0
- package/dist/api/resources/tags/client/requests/TagsUntagConversationRequest.d.ts +23 -0
- package/dist/api/resources/tags/client/requests/TagsUntagConversationRequest.js +5 -0
- package/dist/api/resources/tags/client/requests/index.d.ts +5 -0
- package/dist/api/resources/tags/client/requests/index.js +2 -0
- package/dist/api/resources/tags/index.d.ts +2 -0
- package/dist/api/resources/tags/index.js +18 -0
- package/dist/api/resources/tags/types/Tag.d.ts +18 -0
- package/dist/api/resources/tags/types/Tag.js +5 -0
- package/dist/api/resources/tags/types/TagsCreateRequestBody.d.ts +5 -0
- package/dist/api/resources/tags/types/TagsCreateRequestBody.js +5 -0
- package/dist/api/resources/tags/types/index.d.ts +2 -0
- package/dist/api/resources/tags/types/index.js +18 -0
- package/dist/api/resources/teams/client/Client.d.ts +57 -0
- package/dist/api/resources/teams/client/Client.js +191 -0
- package/dist/api/resources/teams/client/index.d.ts +1 -0
- package/dist/api/resources/teams/client/index.js +2 -0
- package/dist/api/resources/teams/index.d.ts +2 -0
- package/dist/api/resources/teams/index.js +18 -0
- package/dist/api/resources/teams/types/Team.d.ts +18 -0
- package/dist/api/resources/teams/types/Team.js +5 -0
- package/dist/api/resources/teams/types/index.d.ts +1 -0
- package/dist/api/resources/teams/types/index.js +17 -0
- package/dist/api/resources/ticketTypeAttributes/client/Client.d.ts +67 -0
- package/dist/api/resources/ticketTypeAttributes/client/Client.js +201 -0
- package/dist/api/resources/ticketTypeAttributes/client/index.d.ts +1 -0
- package/dist/api/resources/ticketTypeAttributes/client/index.js +17 -0
- package/dist/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.d.ts +35 -0
- package/dist/api/resources/ticketTypeAttributes/client/requests/CreateTicketTypeAttributeRequest.js +5 -0
- package/dist/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.d.ts +31 -0
- package/dist/api/resources/ticketTypeAttributes/client/requests/UpdateTicketTypeAttributeRequest.js +5 -0
- package/dist/api/resources/ticketTypeAttributes/client/requests/index.d.ts +2 -0
- package/dist/api/resources/ticketTypeAttributes/client/requests/index.js +2 -0
- package/dist/api/resources/ticketTypeAttributes/index.d.ts +2 -0
- package/dist/api/resources/ticketTypeAttributes/index.js +18 -0
- package/dist/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.d.ts +16 -0
- package/dist/api/resources/ticketTypeAttributes/types/CreateTicketTypeAttributeRequestDataType.js +15 -0
- package/dist/api/resources/ticketTypeAttributes/types/index.d.ts +1 -0
- package/dist/api/resources/ticketTypeAttributes/types/index.js +17 -0
- package/dist/api/resources/ticketTypes/client/Client.d.ts +97 -0
- package/dist/api/resources/ticketTypes/client/Client.js +329 -0
- package/dist/api/resources/ticketTypes/client/index.d.ts +1 -0
- package/dist/api/resources/ticketTypes/client/index.js +2 -0
- package/dist/api/resources/ticketTypes/index.d.ts +1 -0
- package/dist/api/resources/ticketTypes/index.js +17 -0
- package/dist/api/resources/tickets/client/Client.d.ts +251 -0
- package/dist/api/resources/tickets/client/Client.js +546 -0
- package/dist/api/resources/tickets/client/index.d.ts +1 -0
- package/dist/api/resources/tickets/client/index.js +17 -0
- package/dist/api/resources/tickets/client/requests/CreateTicketRequest.d.ts +28 -0
- package/dist/api/resources/tickets/client/requests/CreateTicketRequest.js +5 -0
- package/dist/api/resources/tickets/client/requests/UpdateTicketRequest.d.ts +59 -0
- package/dist/api/resources/tickets/client/requests/UpdateTicketRequest.js +5 -0
- package/dist/api/resources/tickets/client/requests/index.d.ts +2 -0
- package/dist/api/resources/tickets/client/requests/index.js +2 -0
- package/dist/api/resources/tickets/index.d.ts +2 -0
- package/dist/api/resources/tickets/index.js +18 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItem.d.ts +5 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItem.js +5 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.d.ts +7 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemEmail.js +5 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.d.ts +7 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemExternalId.js +5 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemId.d.ts +7 -0
- package/dist/api/resources/tickets/types/CreateTicketRequestContactsItemId.js +5 -0
- package/dist/api/resources/tickets/types/Ticket.d.ts +42 -0
- package/dist/api/resources/tickets/types/Ticket.js +5 -0
- package/dist/api/resources/tickets/types/TicketCategory.d.ts +12 -0
- package/dist/api/resources/tickets/types/TicketCategory.js +11 -0
- package/dist/api/resources/tickets/types/TicketContacts.d.ts +13 -0
- package/dist/api/resources/tickets/types/TicketContacts.js +5 -0
- package/dist/api/resources/tickets/types/TicketPart.d.ts +34 -0
- package/dist/api/resources/tickets/types/TicketPart.js +5 -0
- package/dist/api/resources/tickets/types/TicketPartPreviousTicketState.d.ts +13 -0
- package/dist/api/resources/tickets/types/TicketPartPreviousTicketState.js +12 -0
- package/dist/api/resources/tickets/types/TicketPartTicketState.d.ts +13 -0
- package/dist/api/resources/tickets/types/TicketPartTicketState.js +12 -0
- package/dist/api/resources/tickets/types/TicketTicketState.d.ts +13 -0
- package/dist/api/resources/tickets/types/TicketTicketState.js +12 -0
- package/dist/api/resources/tickets/types/TicketType.d.ts +30 -0
- package/dist/api/resources/tickets/types/TicketType.js +5 -0
- package/dist/api/resources/tickets/types/TicketTypeCategory.d.ts +12 -0
- package/dist/api/resources/tickets/types/TicketTypeCategory.js +11 -0
- package/dist/api/resources/tickets/types/TicketsReplyRequestBody.d.ts +5 -0
- package/dist/api/resources/tickets/types/TicketsReplyRequestBody.js +5 -0
- package/dist/api/resources/tickets/types/UpdateTicketRequestAssignment.d.ts +9 -0
- package/dist/api/resources/tickets/types/UpdateTicketRequestAssignment.js +5 -0
- package/dist/api/resources/tickets/types/UpdateTicketRequestState.d.ts +12 -0
- package/dist/api/resources/tickets/types/UpdateTicketRequestState.js +11 -0
- package/dist/api/resources/tickets/types/index.d.ts +16 -0
- package/dist/api/resources/tickets/types/index.js +32 -0
- package/dist/api/resources/visitors/client/Client.d.ts +97 -0
- package/dist/api/resources/visitors/client/Client.js +288 -0
- package/dist/api/resources/visitors/client/index.d.ts +1 -0
- package/dist/api/resources/visitors/client/index.js +17 -0
- package/dist/api/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +25 -0
- package/dist/api/resources/visitors/client/requests/ConvertVisitorRequest.js +5 -0
- package/dist/api/resources/visitors/client/requests/VisitorsFindRequest.d.ts +15 -0
- package/dist/api/resources/visitors/client/requests/VisitorsFindRequest.js +5 -0
- package/dist/api/resources/visitors/client/requests/index.d.ts +2 -0
- package/dist/api/resources/visitors/client/requests/index.js +2 -0
- package/dist/api/resources/visitors/index.d.ts +2 -0
- package/dist/api/resources/visitors/index.js +18 -0
- package/dist/api/resources/visitors/types/ConvertVisitorRequestUser.d.ts +8 -0
- package/dist/api/resources/visitors/types/ConvertVisitorRequestUser.js +5 -0
- package/dist/api/resources/visitors/types/ConvertVisitorRequestVisitor.d.ts +8 -0
- package/dist/api/resources/visitors/types/ConvertVisitorRequestVisitor.js +5 -0
- package/dist/api/resources/visitors/types/UserWithId.d.ts +9 -0
- package/dist/api/resources/visitors/types/UserWithId.js +5 -0
- package/dist/api/resources/visitors/types/UserWithUserId.d.ts +9 -0
- package/dist/api/resources/visitors/types/UserWithUserId.js +5 -0
- package/dist/api/resources/visitors/types/VisitorWithEmail.d.ts +7 -0
- package/dist/api/resources/visitors/types/VisitorWithEmail.js +5 -0
- package/dist/api/resources/visitors/types/VisitorWithId.d.ts +7 -0
- package/dist/api/resources/visitors/types/VisitorWithId.js +5 -0
- package/dist/api/resources/visitors/types/VisitorWithUserId.d.ts +7 -0
- package/dist/api/resources/visitors/types/VisitorWithUserId.js +5 -0
- package/dist/api/resources/visitors/types/index.d.ts +7 -0
- package/dist/api/resources/visitors/types/index.js +23 -0
- package/dist/api/types/ActivityLog.d.ts +19 -0
- package/dist/api/types/ActivityLog.js +5 -0
- package/dist/api/types/ActivityLogActivityType.d.ts +73 -0
- package/dist/api/types/ActivityLogActivityType.js +75 -0
- package/dist/api/types/ActivityLogList.d.ts +14 -0
- package/dist/api/types/ActivityLogList.js +5 -0
- package/dist/api/types/ActivityLogMetadata.d.ts +26 -0
- package/dist/api/types/ActivityLogMetadata.js +5 -0
- package/dist/api/types/ActivityLogPerformedBy.d.ts +16 -0
- package/dist/api/types/ActivityLogPerformedBy.js +5 -0
- package/dist/api/types/AddressableList.d.ts +14 -0
- package/dist/api/types/AddressableList.js +5 -0
- package/dist/api/types/AdminList.d.ts +13 -0
- package/dist/api/types/AdminList.js +5 -0
- package/dist/api/types/AdminPriorityLevel.d.ts +12 -0
- package/dist/api/types/AdminPriorityLevel.js +5 -0
- package/dist/api/types/AdminReplyConversationRequest.d.ts +21 -0
- package/dist/api/types/AdminReplyConversationRequest.js +5 -0
- package/dist/api/types/AdminReplyConversationRequestMessageType.d.ts +8 -0
- package/dist/api/types/AdminReplyConversationRequestMessageType.js +10 -0
- package/dist/api/types/AdminReplyTicketRequest.d.ts +21 -0
- package/dist/api/types/AdminReplyTicketRequest.js +5 -0
- package/dist/api/types/AdminReplyTicketRequestMessageType.d.ts +9 -0
- package/dist/api/types/AdminReplyTicketRequestMessageType.js +11 -0
- package/dist/api/types/AdminReplyTicketRequestReplyOptionsItem.d.ts +9 -0
- package/dist/api/types/AdminReplyTicketRequestReplyOptionsItem.js +5 -0
- package/dist/api/types/AdminWithApp.d.ts +33 -0
- package/dist/api/types/AdminWithApp.js +5 -0
- package/dist/api/types/AdminWithAppAvatar.d.ts +12 -0
- package/dist/api/types/AdminWithAppAvatar.js +5 -0
- package/dist/api/types/App.d.ts +22 -0
- package/dist/api/types/App.js +5 -0
- package/dist/api/types/ArticleContent.d.ts +27 -0
- package/dist/api/types/ArticleContent.js +5 -0
- package/dist/api/types/ArticleContentState.d.ts +11 -0
- package/dist/api/types/ArticleContentState.js +10 -0
- package/dist/api/types/ArticleList.d.ts +16 -0
- package/dist/api/types/ArticleList.js +5 -0
- package/dist/api/types/ArticleStatistics.d.ts +22 -0
- package/dist/api/types/ArticleStatistics.js +5 -0
- package/dist/api/types/ArticleTranslatedContent.d.ts +85 -0
- package/dist/api/types/ArticleTranslatedContent.js +5 -0
- package/dist/api/types/AssignConversationRequest.d.ts +16 -0
- package/dist/api/types/AssignConversationRequest.js +5 -0
- package/dist/api/types/AssignConversationRequestType.d.ts +8 -0
- package/dist/api/types/AssignConversationRequestType.js +10 -0
- package/dist/api/types/CloseConversationRequest.d.ts +13 -0
- package/dist/api/types/CloseConversationRequest.js +5 -0
- package/dist/api/types/CollectionList.d.ts +16 -0
- package/dist/api/types/CollectionList.js +5 -0
- package/dist/api/types/CompanyAttachedContacts.d.ts +16 -0
- package/dist/api/types/CompanyAttachedContacts.js +5 -0
- package/dist/api/types/CompanyAttachedSegments.d.ts +13 -0
- package/dist/api/types/CompanyAttachedSegments.js +5 -0
- package/dist/api/types/CompanyList.d.ts +16 -0
- package/dist/api/types/CompanyList.js +5 -0
- package/dist/api/types/CompanyScroll.d.ts +17 -0
- package/dist/api/types/CompanyScroll.js +5 -0
- package/dist/api/types/ContactArchived.d.ts +16 -0
- package/dist/api/types/ContactArchived.js +5 -0
- package/dist/api/types/ContactAttachedCompanies.d.ts +16 -0
- package/dist/api/types/ContactAttachedCompanies.js +5 -0
- package/dist/api/types/ContactCompanies.d.ts +14 -0
- package/dist/api/types/ContactCompanies.js +5 -0
- package/dist/api/types/ContactDeleted.d.ts +16 -0
- package/dist/api/types/ContactDeleted.js +5 -0
- package/dist/api/types/ContactList.d.ts +16 -0
- package/dist/api/types/ContactList.js +5 -0
- package/dist/api/types/ContactLocation.d.ts +16 -0
- package/dist/api/types/ContactLocation.js +5 -0
- package/dist/api/types/ContactNotes.d.ts +17 -0
- package/dist/api/types/ContactNotes.js +5 -0
- package/dist/api/types/ContactReference.d.ts +14 -0
- package/dist/api/types/ContactReference.js +5 -0
- package/dist/api/types/ContactReplyBaseRequest.d.ts +13 -0
- package/dist/api/types/ContactReplyBaseRequest.js +5 -0
- package/dist/api/types/ContactReplyConversationRequest.d.ts +5 -0
- package/dist/api/types/ContactReplyConversationRequest.js +5 -0
- package/dist/api/types/ContactReplyEmailRequest.d.ts +13 -0
- package/dist/api/types/ContactReplyEmailRequest.js +5 -0
- package/dist/api/types/ContactReplyIntercomUserIdRequest.d.ts +13 -0
- package/dist/api/types/ContactReplyIntercomUserIdRequest.js +5 -0
- package/dist/api/types/ContactReplyTicketEmailRequest.d.ts +11 -0
- package/dist/api/types/ContactReplyTicketEmailRequest.js +5 -0
- package/dist/api/types/ContactReplyTicketIntercomUserIdRequest.d.ts +11 -0
- package/dist/api/types/ContactReplyTicketIntercomUserIdRequest.js +5 -0
- package/dist/api/types/ContactReplyTicketRequest.d.ts +5 -0
- package/dist/api/types/ContactReplyTicketRequest.js +5 -0
- package/dist/api/types/ContactReplyTicketUserIdRequest.d.ts +11 -0
- package/dist/api/types/ContactReplyTicketUserIdRequest.js +5 -0
- package/dist/api/types/ContactReplyUserIdRequest.d.ts +13 -0
- package/dist/api/types/ContactReplyUserIdRequest.js +5 -0
- package/dist/api/types/ContactSegments.d.ts +13 -0
- package/dist/api/types/ContactSegments.js +5 -0
- package/dist/api/types/ContactSocialProfiles.d.ts +11 -0
- package/dist/api/types/ContactSocialProfiles.js +5 -0
- package/dist/api/types/ContactSubscriptionTypes.d.ts +17 -0
- package/dist/api/types/ContactSubscriptionTypes.js +5 -0
- package/dist/api/types/ContactTags.d.ts +17 -0
- package/dist/api/types/ContactTags.js +5 -0
- package/dist/api/types/ContactUnarchived.d.ts +16 -0
- package/dist/api/types/ContactUnarchived.js +5 -0
- package/dist/api/types/ContentSourcesList.d.ts +11 -0
- package/dist/api/types/ContentSourcesList.js +5 -0
- package/dist/api/types/ConversationAttachmentFiles.d.ts +14 -0
- package/dist/api/types/ConversationAttachmentFiles.js +5 -0
- package/dist/api/types/ConversationContacts.d.ts +13 -0
- package/dist/api/types/ConversationContacts.js +5 -0
- package/dist/api/types/ConversationFirstContactReply.d.ts +14 -0
- package/dist/api/types/ConversationFirstContactReply.js +5 -0
- package/dist/api/types/ConversationList.d.ts +16 -0
- package/dist/api/types/ConversationList.js +5 -0
- package/dist/api/types/ConversationPart.d.ts +32 -0
- package/dist/api/types/ConversationPart.js +5 -0
- package/dist/api/types/ConversationPartAuthor.d.ts +16 -0
- package/dist/api/types/ConversationPartAuthor.js +5 -0
- package/dist/api/types/ConversationParts.d.ts +15 -0
- package/dist/api/types/ConversationParts.js +5 -0
- package/dist/api/types/ConversationRating.d.ts +17 -0
- package/dist/api/types/ConversationRating.js +5 -0
- package/dist/api/types/ConversationSource.d.ts +26 -0
- package/dist/api/types/ConversationSource.js +5 -0
- package/dist/api/types/ConversationStatistics.d.ts +46 -0
- package/dist/api/types/ConversationStatistics.js +5 -0
- package/dist/api/types/ConversationTeammates.d.ts +13 -0
- package/dist/api/types/ConversationTeammates.js +5 -0
- package/dist/api/types/CreateArticleRequest.d.ts +24 -0
- package/dist/api/types/CreateArticleRequest.js +5 -0
- package/dist/api/types/CreateArticleRequestState.d.ts +11 -0
- package/dist/api/types/CreateArticleRequestState.js +10 -0
- package/dist/api/types/CreateContactRequest.d.ts +8 -0
- package/dist/api/types/CreateContactRequest.js +5 -0
- package/dist/api/types/CreateContactRequestWithEmail.d.ts +23 -0
- package/dist/api/types/CreateContactRequestWithEmail.js +5 -0
- package/dist/api/types/CreateContactRequestWithExternalId.d.ts +23 -0
- package/dist/api/types/CreateContactRequestWithExternalId.js +5 -0
- package/dist/api/types/CreateContactRequestWithRole.d.ts +23 -0
- package/dist/api/types/CreateContactRequestWithRole.js +5 -0
- package/dist/api/types/CreateDataEventRequest.d.ts +8 -0
- package/dist/api/types/CreateDataEventRequest.js +5 -0
- package/dist/api/types/CreateDataEventRequestWithEmail.d.ts +13 -0
- package/dist/api/types/CreateDataEventRequestWithEmail.js +5 -0
- package/dist/api/types/CreateDataEventRequestWithId.d.ts +13 -0
- package/dist/api/types/CreateDataEventRequestWithId.js +5 -0
- package/dist/api/types/CreateDataEventRequestWithUserId.d.ts +13 -0
- package/dist/api/types/CreateDataEventRequestWithUserId.js +5 -0
- package/dist/api/types/CreateMessageRequest.d.ts +16 -0
- package/dist/api/types/CreateMessageRequest.js +5 -0
- package/dist/api/types/CreateMessageRequestFrom.d.ts +12 -0
- package/dist/api/types/CreateMessageRequestFrom.js +5 -0
- package/dist/api/types/CreateMessageRequestTo.d.ts +13 -0
- package/dist/api/types/CreateMessageRequestTo.js +5 -0
- package/dist/api/types/CreateMessageRequestType.d.ts +11 -0
- package/dist/api/types/CreateMessageRequestType.js +10 -0
- package/dist/api/types/CreateMessageRequestWithEmail.d.ts +20 -0
- package/dist/api/types/CreateMessageRequestWithEmail.js +5 -0
- package/dist/api/types/CreateMessageRequestWithInapp.d.ts +20 -0
- package/dist/api/types/CreateMessageRequestWithInapp.js +5 -0
- package/dist/api/types/CreateOrUpdateCompanyRequest.d.ts +26 -0
- package/dist/api/types/CreateOrUpdateCompanyRequest.js +5 -0
- package/dist/api/types/CreateOrUpdateTagRequest.d.ts +12 -0
- package/dist/api/types/CreateOrUpdateTagRequest.js +5 -0
- package/dist/api/types/CreatePhoneSwitchRequest.d.ts +12 -0
- package/dist/api/types/CreatePhoneSwitchRequest.js +5 -0
- package/dist/api/types/CreateTicketReplyWithCommentRequest.d.ts +5 -0
- package/dist/api/types/CreateTicketReplyWithCommentRequest.js +5 -0
- package/dist/api/types/CreateTicketTypeRequest.d.ts +20 -0
- package/dist/api/types/CreateTicketTypeRequest.js +5 -0
- package/dist/api/types/CreateTicketTypeRequestCategory.d.ts +12 -0
- package/dist/api/types/CreateTicketTypeRequestCategory.js +11 -0
- package/dist/api/types/CursorPages.d.ts +19 -0
- package/dist/api/types/CursorPages.js +5 -0
- package/dist/api/types/CustomAttributes.d.ts +8 -0
- package/dist/api/types/CustomAttributes.js +5 -0
- package/dist/api/types/CustomAttributesValue.d.ts +5 -0
- package/dist/api/types/CustomAttributesValue.js +5 -0
- package/dist/api/types/CustomerRequest.d.ts +5 -0
- package/dist/api/types/CustomerRequest.js +5 -0
- package/dist/api/types/CustomerRequestEmail.d.ts +7 -0
- package/dist/api/types/CustomerRequestEmail.js +5 -0
- package/dist/api/types/CustomerRequestIntercomUserId.d.ts +7 -0
- package/dist/api/types/CustomerRequestIntercomUserId.js +5 -0
- package/dist/api/types/CustomerRequestUserId.d.ts +7 -0
- package/dist/api/types/CustomerRequestUserId.js +5 -0
- package/dist/api/types/DataAttributeList.d.ts +13 -0
- package/dist/api/types/DataAttributeList.js +5 -0
- package/dist/api/types/DataEventList.d.ts +15 -0
- package/dist/api/types/DataEventList.js +5 -0
- package/dist/api/types/DataEventListPages.d.ts +10 -0
- package/dist/api/types/DataEventListPages.js +5 -0
- package/dist/api/types/DataEventSummary.d.ts +19 -0
- package/dist/api/types/DataEventSummary.js +5 -0
- package/dist/api/types/DataEventSummaryItem.d.ts +18 -0
- package/dist/api/types/DataEventSummaryItem.js +5 -0
- package/dist/api/types/DataExportCsv.d.ts +60 -0
- package/dist/api/types/DataExportCsv.js +5 -0
- package/dist/api/types/DeletedArticleObject.d.ts +14 -0
- package/dist/api/types/DeletedArticleObject.js +5 -0
- package/dist/api/types/DeletedCollectionObject.d.ts +14 -0
- package/dist/api/types/DeletedCollectionObject.js +5 -0
- package/dist/api/types/DeletedCompanyObject.d.ts +14 -0
- package/dist/api/types/DeletedCompanyObject.js +5 -0
- package/dist/api/types/DeletedObject.d.ts +14 -0
- package/dist/api/types/DeletedObject.js +5 -0
- package/dist/api/types/ErrorErrorsItem.d.ts +11 -0
- package/dist/api/types/ErrorErrorsItem.js +5 -0
- package/dist/api/types/Error_.d.ts +15 -0
- package/dist/api/types/Error_.js +5 -0
- package/dist/api/types/FileAttribute.d.ts +21 -0
- package/dist/api/types/FileAttribute.js +5 -0
- package/dist/api/types/GroupContent.d.ts +14 -0
- package/dist/api/types/GroupContent.js +5 -0
- package/dist/api/types/GroupTranslatedContent.d.ts +85 -0
- package/dist/api/types/GroupTranslatedContent.js +5 -0
- package/dist/api/types/LinkedObject.d.ts +15 -0
- package/dist/api/types/LinkedObject.js +5 -0
- package/dist/api/types/LinkedObjectList.d.ts +17 -0
- package/dist/api/types/LinkedObjectList.js +5 -0
- package/dist/api/types/LinkedObjectType.d.ts +11 -0
- package/dist/api/types/LinkedObjectType.js +10 -0
- package/dist/api/types/MultipleFilterSearchRequest.d.ts +12 -0
- package/dist/api/types/MultipleFilterSearchRequest.js +5 -0
- package/dist/api/types/MultipleFilterSearchRequestOperator.d.ts +11 -0
- package/dist/api/types/MultipleFilterSearchRequestOperator.js +10 -0
- package/dist/api/types/MultipleFilterSearchRequestValue.d.ts +11 -0
- package/dist/api/types/MultipleFilterSearchRequestValue.js +5 -0
- package/dist/api/types/NewsItemRequest.d.ts +25 -0
- package/dist/api/types/NewsItemRequest.js +5 -0
- package/dist/api/types/NewsItemRequestState.d.ts +11 -0
- package/dist/api/types/NewsItemRequestState.js +10 -0
- package/dist/api/types/NoteList.d.ts +16 -0
- package/dist/api/types/NoteList.js +5 -0
- package/dist/api/types/OpenConversationRequest.d.ts +10 -0
- package/dist/api/types/OpenConversationRequest.js +5 -0
- package/dist/api/types/PagesLink.d.ts +16 -0
- package/dist/api/types/PagesLink.js +5 -0
- package/dist/api/types/PaginatedResponse.d.ts +16 -0
- package/dist/api/types/PaginatedResponse.js +5 -0
- package/dist/api/types/PaginatedResponseDataItem.d.ts +13 -0
- package/dist/api/types/PaginatedResponseDataItem.js +5 -0
- package/dist/api/types/PaginatedResponseType.d.ts +11 -0
- package/dist/api/types/PaginatedResponseType.js +10 -0
- package/dist/api/types/PartAttachment.d.ts +22 -0
- package/dist/api/types/PartAttachment.js +5 -0
- package/dist/api/types/PhoneSwitch.d.ts +12 -0
- package/dist/api/types/PhoneSwitch.js +5 -0
- package/dist/api/types/RedactConversationRequest.d.ts +19 -0
- package/dist/api/types/RedactConversationRequest.js +5 -0
- package/dist/api/types/RedactConversationRequestConversationPart.d.ts +12 -0
- package/dist/api/types/RedactConversationRequestConversationPart.js +5 -0
- package/dist/api/types/RedactConversationRequestSource.d.ts +12 -0
- package/dist/api/types/RedactConversationRequestSource.js +5 -0
- package/dist/api/types/Reference.d.ts +12 -0
- package/dist/api/types/Reference.js +5 -0
- package/dist/api/types/ReplyConversationRequest.d.ts +5 -0
- package/dist/api/types/ReplyConversationRequest.js +5 -0
- package/dist/api/types/SearchRequest.d.ts +11 -0
- package/dist/api/types/SearchRequest.js +5 -0
- package/dist/api/types/SearchRequestQuery.d.ts +5 -0
- package/dist/api/types/SearchRequestQuery.js +5 -0
- package/dist/api/types/SegmentList.d.ts +15 -0
- package/dist/api/types/SegmentList.js +5 -0
- package/dist/api/types/SingleFilterSearchRequest.d.ts +15 -0
- package/dist/api/types/SingleFilterSearchRequest.js +5 -0
- package/dist/api/types/SingleFilterSearchRequestOperator.d.ts +19 -0
- package/dist/api/types/SingleFilterSearchRequestOperator.js +18 -0
- package/dist/api/types/SlaApplied.d.ts +16 -0
- package/dist/api/types/SlaApplied.js +5 -0
- package/dist/api/types/SlaAppliedSlaStatus.d.ts +13 -0
- package/dist/api/types/SlaAppliedSlaStatus.js +12 -0
- package/dist/api/types/SnoozeConversationRequest.d.ts +12 -0
- package/dist/api/types/SnoozeConversationRequest.js +5 -0
- package/dist/api/types/SocialProfile.d.ts +14 -0
- package/dist/api/types/SocialProfile.js +5 -0
- package/dist/api/types/StartingAfterPaging.d.ts +9 -0
- package/dist/api/types/StartingAfterPaging.js +5 -0
- package/dist/api/types/SubscriptionTypeList.d.ts +13 -0
- package/dist/api/types/SubscriptionTypeList.js +5 -0
- package/dist/api/types/TagCompanyRequest.d.ts +13 -0
- package/dist/api/types/TagCompanyRequest.js +5 -0
- package/dist/api/types/TagCompanyRequestCompaniesItem.d.ts +9 -0
- package/dist/api/types/TagCompanyRequestCompaniesItem.js +5 -0
- package/dist/api/types/TagList.d.ts +13 -0
- package/dist/api/types/TagList.js +5 -0
- package/dist/api/types/TagMultipleUsersRequest.d.ts +12 -0
- package/dist/api/types/TagMultipleUsersRequest.js +5 -0
- package/dist/api/types/TagMultipleUsersRequestUsersItem.d.ts +7 -0
- package/dist/api/types/TagMultipleUsersRequestUsersItem.js +5 -0
- package/dist/api/types/Tags.d.ts +13 -0
- package/dist/api/types/Tags.js +5 -0
- package/dist/api/types/TeamList.d.ts +13 -0
- package/dist/api/types/TeamList.js +5 -0
- package/dist/api/types/TeamPriorityLevel.d.ts +12 -0
- package/dist/api/types/TeamPriorityLevel.js +5 -0
- package/dist/api/types/TicketCustomAttributes.d.ts +8 -0
- package/dist/api/types/TicketCustomAttributes.js +5 -0
- package/dist/api/types/TicketCustomAttributesValue.d.ts +5 -0
- package/dist/api/types/TicketCustomAttributesValue.js +5 -0
- package/dist/api/types/TicketList.d.ts +16 -0
- package/dist/api/types/TicketList.js +5 -0
- package/dist/api/types/TicketPartAuthor.d.ts +17 -0
- package/dist/api/types/TicketPartAuthor.js +5 -0
- package/dist/api/types/TicketPartAuthorType.d.ts +13 -0
- package/dist/api/types/TicketPartAuthorType.js +12 -0
- package/dist/api/types/TicketParts.d.ts +15 -0
- package/dist/api/types/TicketParts.js +5 -0
- package/dist/api/types/TicketReply.d.ts +26 -0
- package/dist/api/types/TicketReply.js +5 -0
- package/dist/api/types/TicketReplyPartType.d.ts +12 -0
- package/dist/api/types/TicketReplyPartType.js +11 -0
- package/dist/api/types/TicketRequestCustomAttributes.d.ts +8 -0
- package/dist/api/types/TicketRequestCustomAttributes.js +5 -0
- package/dist/api/types/TicketRequestCustomAttributesValue.d.ts +4 -0
- package/dist/api/types/TicketRequestCustomAttributesValue.js +5 -0
- package/dist/api/types/TicketTypeAttribute.d.ts +42 -0
- package/dist/api/types/TicketTypeAttribute.js +5 -0
- package/dist/api/types/TicketTypeAttributeList.d.ts +13 -0
- package/dist/api/types/TicketTypeAttributeList.js +5 -0
- package/dist/api/types/TicketTypeList.d.ts +13 -0
- package/dist/api/types/TicketTypeList.js +5 -0
- package/dist/api/types/Translation.d.ts +14 -0
- package/dist/api/types/Translation.js +5 -0
- package/dist/api/types/UntagCompanyRequest.d.ts +13 -0
- package/dist/api/types/UntagCompanyRequest.js +5 -0
- package/dist/api/types/UntagCompanyRequestCompaniesItem.d.ts +11 -0
- package/dist/api/types/UntagCompanyRequestCompaniesItem.js +5 -0
- package/dist/api/types/UpdateArticleRequest.d.ts +24 -0
- package/dist/api/types/UpdateArticleRequest.js +5 -0
- package/dist/api/types/UpdateArticleRequestState.d.ts +11 -0
- package/dist/api/types/UpdateArticleRequestState.js +10 -0
- package/dist/api/types/UpdateTicketTypeRequest.d.ts +22 -0
- package/dist/api/types/UpdateTicketTypeRequest.js +5 -0
- package/dist/api/types/UpdateTicketTypeRequestCategory.d.ts +12 -0
- package/dist/api/types/UpdateTicketTypeRequestCategory.js +11 -0
- package/dist/api/types/UpdateVisitorRequest.d.ts +8 -0
- package/dist/api/types/UpdateVisitorRequest.js +5 -0
- package/dist/api/types/UpdateVisitorRequestWithId.d.ts +9 -0
- package/dist/api/types/UpdateVisitorRequestWithId.js +5 -0
- package/dist/api/types/UpdateVisitorRequestWithUserId.d.ts +9 -0
- package/dist/api/types/UpdateVisitorRequestWithUserId.js +5 -0
- package/dist/api/types/Visitor.d.ts +69 -0
- package/dist/api/types/Visitor.js +5 -0
- package/dist/api/types/VisitorAvatar.d.ts +9 -0
- package/dist/api/types/VisitorAvatar.js +5 -0
- package/dist/api/types/VisitorCompanies.d.ts +9 -0
- package/dist/api/types/VisitorCompanies.js +5 -0
- package/dist/api/types/VisitorDeletedObject.d.ts +14 -0
- package/dist/api/types/VisitorDeletedObject.js +5 -0
- package/dist/api/types/VisitorLocationData.d.ts +21 -0
- package/dist/api/types/VisitorLocationData.js +5 -0
- package/dist/api/types/VisitorSegments.d.ts +8 -0
- package/dist/api/types/VisitorSegments.js +5 -0
- package/dist/api/types/VisitorSocialProfiles.d.ts +8 -0
- package/dist/api/types/VisitorSocialProfiles.js +5 -0
- package/dist/api/types/VisitorTags.d.ts +9 -0
- package/dist/api/types/VisitorTags.js +5 -0
- package/dist/api/types/VisitorTagsTagsItem.d.ts +11 -0
- package/dist/api/types/VisitorTagsTagsItem.js +5 -0
- package/dist/api/types/index.d.ts +179 -0
- package/dist/api/types/index.js +195 -0
- package/dist/api/version.d.ts +5 -0
- package/dist/api/version.js +5 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +38 -0
- package/dist/core/fetcher/Fetcher.js +99 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +55 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +48 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +40 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +21 -0
- package/dist/core/pagination/Page.d.ts +29 -0
- package/dist/core/pagination/Page.js +94 -0
- package/dist/core/pagination/Pageable.d.ts +12 -0
- package/dist/core/pagination/Pageable.js +10 -0
- package/dist/core/pagination/index.d.ts +2 -0
- package/dist/core/pagination/index.js +7 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +93 -0
- package/dist/core/utils/index.d.ts +1 -0
- package/dist/core/utils/index.js +5 -0
- package/dist/core/utils/setObjectProperty.d.ts +11 -0
- package/dist/core/utils/setObjectProperty.js +43 -0
- package/dist/environments.d.ts +9 -0
- package/dist/environments.js +11 -0
- package/dist/errors/IntercomError.d.ts +12 -0
- package/dist/errors/IntercomError.js +32 -0
- package/dist/errors/IntercomTimeoutError.d.ts +6 -0
- package/dist/errors/IntercomTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -29
- package/dist/index.js +25 -65
- package/environments.d.ts +9 -0
- package/environments.js +11 -0
- package/errors/IntercomError.d.ts +12 -0
- package/errors/IntercomError.js +32 -0
- package/errors/IntercomTimeoutError.d.ts +6 -0
- package/errors/IntercomTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/jest.config.js +5 -0
- package/package.json +31 -53
- package/reference.md +7755 -0
- package/LICENSE +0 -13
- package/dist/admin/admin.types.d.ts +0 -15
- package/dist/admin/admin.types.d.ts.map +0 -1
- package/dist/admin/admin.types.js +0 -3
- package/dist/admin/admin.types.js.map +0 -1
- package/dist/admin.d.ts +0 -48
- package/dist/admin.d.ts.map +0 -1
- package/dist/admin.js +0 -42
- package/dist/admin.js.map +0 -1
- package/dist/article/article.types.d.ts +0 -87
- package/dist/article/article.types.d.ts.map +0 -1
- package/dist/article/article.types.js +0 -45
- package/dist/article/article.types.js.map +0 -1
- package/dist/article.d.ts +0 -34
- package/dist/article.d.ts.map +0 -1
- package/dist/article.js +0 -69
- package/dist/article.js.map +0 -1
- package/dist/client.d.ts +0 -82
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -325
- package/dist/client.js.map +0 -1
- package/dist/common/common.types.d.ts +0 -69
- package/dist/common/common.types.d.ts.map +0 -1
- package/dist/common/common.types.js +0 -29
- package/dist/common/common.types.js.map +0 -1
- package/dist/company/company.types.d.ts +0 -37
- package/dist/company/company.types.d.ts.map +0 -1
- package/dist/company/company.types.js +0 -3
- package/dist/company/company.types.js.map +0 -1
- package/dist/company.d.ts +0 -63
- package/dist/company.d.ts.map +0 -1
- package/dist/company.js +0 -114
- package/dist/company.js.map +0 -1
- package/dist/contact/contact.types.d.ts +0 -82
- package/dist/contact/contact.types.d.ts.map +0 -1
- package/dist/contact/contact.types.js +0 -3
- package/dist/contact/contact.types.js.map +0 -1
- package/dist/contact.d.ts +0 -121
- package/dist/contact.d.ts.map +0 -1
- package/dist/contact.js +0 -160
- package/dist/contact.js.map +0 -1
- package/dist/conversation/conversation.types.d.ts +0 -144
- package/dist/conversation/conversation.types.d.ts.map +0 -1
- package/dist/conversation/conversation.types.js +0 -50
- package/dist/conversation/conversation.types.js.map +0 -1
- package/dist/conversation.d.ts +0 -176
- package/dist/conversation.d.ts.map +0 -1
- package/dist/conversation.js +0 -289
- package/dist/conversation.js.map +0 -1
- package/dist/count/count.types.d.ts +0 -89
- package/dist/count/count.types.d.ts.map +0 -1
- package/dist/count/count.types.js +0 -17
- package/dist/count/count.types.js.map +0 -1
- package/dist/count.d.ts +0 -18
- package/dist/count.d.ts.map +0 -1
- package/dist/count.js +0 -72
- package/dist/count.js.map +0 -1
- package/dist/dataAttribute/dataAttribute.types.d.ts +0 -32
- package/dist/dataAttribute/dataAttribute.types.d.ts.map +0 -1
- package/dist/dataAttribute/dataAttribute.types.js +0 -18
- package/dist/dataAttribute/dataAttribute.types.js.map +0 -1
- package/dist/dataAttribute.d.ts +0 -33
- package/dist/dataAttribute.d.ts.map +0 -1
- package/dist/dataAttribute.js +0 -49
- package/dist/dataAttribute.js.map +0 -1
- package/dist/dataExport/dataExport.types.d.ts +0 -7
- package/dist/dataExport/dataExport.types.d.ts.map +0 -1
- package/dist/dataExport/dataExport.types.js +0 -3
- package/dist/dataExport/dataExport.types.js.map +0 -1
- package/dist/dataExport.d.ts +0 -18
- package/dist/dataExport.d.ts.map +0 -1
- package/dist/dataExport.js +0 -36
- package/dist/dataExport.js.map +0 -1
- package/dist/errors/badResponse.error.d.ts +0 -9
- package/dist/errors/badResponse.error.d.ts.map +0 -1
- package/dist/errors/badResponse.error.js +0 -35
- package/dist/errors/badResponse.error.js.map +0 -1
- package/dist/event/event.types.d.ts +0 -29
- package/dist/event/event.types.d.ts.map +0 -1
- package/dist/event/event.types.js +0 -3
- package/dist/event/event.types.js.map +0 -1
- package/dist/event.d.ts +0 -41
- package/dist/event.d.ts.map +0 -1
- package/dist/event.js +0 -44
- package/dist/event.js.map +0 -1
- package/dist/helpCenter/helpCenter.types.d.ts +0 -23
- package/dist/helpCenter/helpCenter.types.d.ts.map +0 -1
- package/dist/helpCenter/helpCenter.types.js +0 -3
- package/dist/helpCenter/helpCenter.types.js.map +0 -1
- package/dist/helpCenter.d.ts +0 -58
- package/dist/helpCenter.d.ts.map +0 -1
- package/dist/helpCenter.js +0 -121
- package/dist/helpCenter.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/message/message.types.d.ts +0 -17
- package/dist/message/message.types.d.ts.map +0 -1
- package/dist/message/message.types.js +0 -11
- package/dist/message/message.types.js.map +0 -1
- package/dist/message.d.ts +0 -32
- package/dist/message.d.ts.map +0 -1
- package/dist/message.js +0 -35
- package/dist/message.js.map +0 -1
- package/dist/note/note.types.d.ts +0 -13
- package/dist/note/note.types.d.ts.map +0 -1
- package/dist/note/note.types.js +0 -3
- package/dist/note/note.types.js.map +0 -1
- package/dist/note.d.ts +0 -24
- package/dist/note.d.ts.map +0 -1
- package/dist/note.js +0 -40
- package/dist/note.js.map +0 -1
- package/dist/package.json +0 -61
- package/dist/phoneCallRedirect/phoneCallRedirect.types.d.ts +0 -5
- package/dist/phoneCallRedirect/phoneCallRedirect.types.d.ts.map +0 -1
- package/dist/phoneCallRedirect/phoneCallRedirect.types.js +0 -3
- package/dist/phoneCallRedirect/phoneCallRedirect.types.js.map +0 -1
- package/dist/phoneCallRedirect.d.ts +0 -15
- package/dist/phoneCallRedirect.d.ts.map +0 -1
- package/dist/phoneCallRedirect.js +0 -23
- package/dist/phoneCallRedirect.js.map +0 -1
- package/dist/scroll.d.ts +0 -24
- package/dist/scroll.d.ts.map +0 -1
- package/dist/scroll.js +0 -131
- package/dist/scroll.js.map +0 -1
- package/dist/segment/segment.types.d.ts +0 -11
- package/dist/segment/segment.types.d.ts.map +0 -1
- package/dist/segment/segment.types.js +0 -3
- package/dist/segment/segment.types.js.map +0 -1
- package/dist/segment.d.ts +0 -22
- package/dist/segment.d.ts.map +0 -1
- package/dist/segment.js +0 -28
- package/dist/segment.js.map +0 -1
- package/dist/subscription/subscription.types.d.ts +0 -19
- package/dist/subscription/subscription.types.d.ts.map +0 -1
- package/dist/subscription/subscription.types.js +0 -10
- package/dist/subscription/subscription.types.js.map +0 -1
- package/dist/subscription.d.ts +0 -14
- package/dist/subscription.d.ts.map +0 -1
- package/dist/subscription.js +0 -17
- package/dist/subscription.js.map +0 -1
- package/dist/tag/tag.types.d.ts +0 -6
- package/dist/tag/tag.types.d.ts.map +0 -1
- package/dist/tag/tag.types.js +0 -3
- package/dist/tag/tag.types.js.map +0 -1
- package/dist/tag.d.ts +0 -52
- package/dist/tag.d.ts.map +0 -1
- package/dist/tag.js +0 -95
- package/dist/tag.js.map +0 -1
- package/dist/team/team.types.d.ts +0 -7
- package/dist/team/team.types.d.ts.map +0 -1
- package/dist/team/team.types.js +0 -3
- package/dist/team/team.types.js.map +0 -1
- package/dist/team.d.ts +0 -18
- package/dist/team.d.ts.map +0 -1
- package/dist/team.js +0 -23
- package/dist/team.js.map +0 -1
- package/dist/util/time.d.ts +0 -3
- package/dist/util/time.d.ts.map +0 -1
- package/dist/util/time.js +0 -6
- package/dist/util/time.js.map +0 -1
- package/dist/util/url.d.ts +0 -3
- package/dist/util/url.d.ts.map +0 -1
- package/dist/util/url.js +0 -9
- package/dist/util/url.js.map +0 -1
- package/dist/visitor/visitor.types.d.ts +0 -20
- package/dist/visitor/visitor.types.d.ts.map +0 -1
- package/dist/visitor/visitor.types.js +0 -3
- package/dist/visitor/visitor.types.js.map +0 -1
- package/dist/visitor.d.ts +0 -50
- package/dist/visitor.d.ts.map +0 -1
- package/dist/visitor.js +0 -60
- package/dist/visitor.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,1299 +1,180 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Intercom TypeScript Library
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/intercom-client)
|
|
5
|
-

|
|
6
|
-

|
|
3
|
+
[](https://github.com/fern-api/fern)
|
|
4
|
+
[](https://www.npmjs.com/package/intercom-client)
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
The Intercom TypeScript library provides convenient access to the Intercom API from TypeScript.
|
|
9
7
|
|
|
10
|
-
##
|
|
8
|
+
## V6 Release
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
The Intercom team is excited to announce a new and improved TypeScript SDK, currently available as an `alpha` version. Check out the
|
|
11
|
+
API reference [here](./reference.md).
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
During this time, we hope to gather feedback from the Intercom community to help drive the direction of the latest API changes.
|
|
14
|
+
|
|
15
|
+
Please feel free to leave in any suggestions in our open GitHub discussion to improve the experience for everyone!
|
|
15
16
|
|
|
16
17
|
## Installation
|
|
17
18
|
|
|
18
|
-
```
|
|
19
|
-
|
|
19
|
+
```sh
|
|
20
|
+
npm i -s intercom-client@alpha
|
|
20
21
|
```
|
|
21
22
|
|
|
22
|
-
**This client is intended for server side use only. Please use the [Intercom Javascript SDK](https://developers.intercom.com/installing-intercom/docs/intercom-for-web) for client-side operations.**
|
|
23
|
-
|
|
24
23
|
## Usage
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```typescript
|
|
29
|
-
import { Client } from './dist/index';
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Create a client using access tokens:
|
|
33
|
-
|
|
34
|
-
```typescript
|
|
35
|
-
const client = new Client({ tokenAuth: { token: 'my_token' } });
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Request Options
|
|
39
|
-
|
|
40
|
-
This client library also supports passing in [`request` options](https://github.com/axios/axios#request-config):
|
|
41
|
-
|
|
42
|
-
```typescript
|
|
43
|
-
const client = new Client({ tokenAuth: { token: 'my_token' } });
|
|
44
|
-
client.useRequestOpts({
|
|
45
|
-
baseURL: 'http://local.test-server.com',
|
|
46
|
-
});
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Note that certain request options (such as `json`, and certain `headers` names cannot be overriden).
|
|
50
|
-
|
|
51
|
-
### Setting the API version
|
|
52
|
-
|
|
53
|
-
We version our API (see the "Choose Version" section of the [API & Webhooks Reference](https://developers.intercom.com/intercom-api-reference/reference) for details). You can specify which version of the API to use when performing API requests using request options:
|
|
54
|
-
|
|
55
|
-
```typescript
|
|
56
|
-
const client = new Client({ tokenAuth: { token: 'my_token' } });
|
|
57
|
-
client.useRequestOpts({
|
|
58
|
-
headers: {
|
|
59
|
-
'Intercom-Version': 2.6,
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Setting the API base url
|
|
65
|
-
|
|
66
|
-
If you are using the european instance of intercom and would like to call it directly and not be redirected through our US instance, you can set the `baseUrl` as follows:
|
|
67
|
-
|
|
68
|
-
```typescript
|
|
69
|
-
const client = new Client({ tokenAuth: { token: 'my_token' } });
|
|
70
|
-
client.useRequestOpts({
|
|
71
|
-
baseUrl: 'https://api.eu.intercom.io',
|
|
72
|
-
});
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Examples
|
|
76
|
-
|
|
77
|
-
### Admins
|
|
78
|
-
|
|
79
|
-
#### [Retrieve admin](https://developers.intercom.com/intercom-api-reference/reference/view-an-admin)
|
|
80
|
-
|
|
81
|
-
```typescript
|
|
82
|
-
const admin = await client.admins.find({ id: '123' });
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
#### [Set Admin away](https://developers.intercom.com/intercom-api-reference/reference/set-admin-away-mode)
|
|
86
|
-
|
|
87
|
-
```typescript
|
|
88
|
-
await client.admins.away({
|
|
89
|
-
adminId: '123',
|
|
90
|
-
enableAwayMode: true,
|
|
91
|
-
enableReassignMode: false,
|
|
92
|
-
});
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
#### [List all activity logs](https://developers.intercom.com/intercom-api-reference/reference/view-admin-activity-logs)
|
|
96
|
-
|
|
97
|
-
```typescript
|
|
98
|
-
await client.admins.listAllActivityLogs({
|
|
99
|
-
before: new Date('Fri, 17 Dec 2021 18:02:18 GMT');,
|
|
100
|
-
after: new Date('Fri, 17 Dec 2021 18:02:18 GMT');,
|
|
101
|
-
});
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
#### [List all admins](https://developers.intercom.com/intercom-api-reference/reference/list-admins)
|
|
105
|
-
|
|
106
|
-
```typescript
|
|
107
|
-
const admins = await client.admins.list();
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### Articles
|
|
111
|
-
|
|
112
|
-
#### [Create an article](https://developers.intercom.com/intercom-api-reference/reference/create-an-article)
|
|
113
|
-
|
|
114
|
-
```typescript
|
|
115
|
-
const article = await client.articles.create({
|
|
116
|
-
title: 'Thanks for everything',
|
|
117
|
-
description: 'English description',
|
|
118
|
-
body: '<p>This is the body in html</p>',
|
|
119
|
-
authorId: 1,
|
|
120
|
-
state: 'published',
|
|
121
|
-
parentId: 1,
|
|
122
|
-
parentType: 'collection',
|
|
123
|
-
translatedContent: {
|
|
124
|
-
fr: {
|
|
125
|
-
title: 'Allez les verts',
|
|
126
|
-
description: 'French description',
|
|
127
|
-
body: '<p>French body in html</p>',
|
|
128
|
-
author_id: 1,
|
|
129
|
-
state: 'published',
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
#### [Retrieve an article](https://developers.intercom.com/intercom-api-reference/reference/retrieve-an-article)
|
|
136
|
-
|
|
137
|
-
```typescript
|
|
138
|
-
const response = await client.articles.find({ id: '123' });
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
#### [Update an article](https://developers.intercom.com/intercom-api-reference/reference/update-an-article)
|
|
142
|
-
|
|
143
|
-
```typescript
|
|
144
|
-
const article = await client.articles.update({
|
|
145
|
-
id: '123',
|
|
146
|
-
title: 'Thanks for everything',
|
|
147
|
-
description: 'English description',
|
|
148
|
-
body: '<p>This is the body in html</p>',
|
|
149
|
-
authorId: 1,
|
|
150
|
-
state: 'published',
|
|
151
|
-
parentId: 1,
|
|
152
|
-
parentType: 'collection',
|
|
153
|
-
translatedContent: {
|
|
154
|
-
fr: {
|
|
155
|
-
title: 'Allez les verts',
|
|
156
|
-
description: 'French description',
|
|
157
|
-
body: '<p>French body in html</p>',
|
|
158
|
-
author_id: 1,
|
|
159
|
-
state: 'published',
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
});
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
#### [Delete an article](https://developers.intercom.com/intercom-api-reference/reference/delete-an-article)
|
|
166
|
-
|
|
167
|
-
```typescript
|
|
168
|
-
await client.articles.delete({ id: '123' });
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
#### [List all articles](https://developers.intercom.com/intercom-api-reference/reference/list-all-articles)
|
|
172
|
-
|
|
173
|
-
```typescript
|
|
174
|
-
const response = await client.articles.list({
|
|
175
|
-
page: 3,
|
|
176
|
-
perPage: 12,
|
|
177
|
-
});
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
### Companies
|
|
181
|
-
|
|
182
|
-
#### [Create a company](https://developers.intercom.com/intercom-api-reference/reference/create-or-update-company)
|
|
183
|
-
|
|
184
|
-
```typescript
|
|
185
|
-
const company = await client.companies.create({
|
|
186
|
-
createdAt: dateToUnixTimestamp(new Date()),
|
|
187
|
-
companyId: '46029',
|
|
188
|
-
name: 'BestCompanyInc.',
|
|
189
|
-
monthlySpend: 9001,
|
|
190
|
-
plan: '1. Get pizzaid',
|
|
191
|
-
size: 62049,
|
|
192
|
-
website: 'http://the-best.one',
|
|
193
|
-
industry: 'The Best One',
|
|
194
|
-
customAttributes: {},
|
|
195
|
-
});
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
#### [Update a company](https://developers.intercom.com/intercom-api-reference/reference/update-a-company)
|
|
199
|
-
|
|
200
|
-
```typescript
|
|
201
|
-
const company = await client.companies.create({
|
|
202
|
-
createdAt: dateToUnixTimestamp(new Date()),
|
|
203
|
-
companyId: '46029',
|
|
204
|
-
name: 'BestCompanyInc.',
|
|
205
|
-
monthlySpend: 9001,
|
|
206
|
-
plan: '1. Get pizzaid',
|
|
207
|
-
size: 62049,
|
|
208
|
-
website: 'http://the-best.one',
|
|
209
|
-
industry: 'The Best One',
|
|
210
|
-
customAttributes: {},
|
|
211
|
-
});
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
#### [Retrieve a company](https://developers.intercom.com/intercom-api-reference/reference/view-a-company)
|
|
215
|
-
|
|
216
|
-
##### By id
|
|
217
|
-
|
|
218
|
-
```typescript
|
|
219
|
-
const company = await client.companies.find({
|
|
220
|
-
companyId: 123,
|
|
221
|
-
});
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
##### By name
|
|
225
|
-
|
|
226
|
-
```typescript
|
|
227
|
-
const company = await client.companies.find({
|
|
228
|
-
name: 'bruh moment inc.',
|
|
229
|
-
});
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
#### [Delete a company](https://developers.intercom.com/intercom-api-reference/reference/delete-a-company)
|
|
233
|
-
|
|
234
|
-
```typescript
|
|
235
|
-
const company = await client.companies.delete({
|
|
236
|
-
id: 62049,
|
|
237
|
-
});
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
#### [List all companies](https://developers.intercom.com/intercom-api-reference/reference/list-companies)
|
|
241
|
-
|
|
242
|
-
##### With pagination
|
|
243
|
-
|
|
244
|
-
```typescript
|
|
245
|
-
const companies = await client.companies.list({
|
|
246
|
-
page: 1,
|
|
247
|
-
perPage: 35,
|
|
248
|
-
order: Order.DESC,
|
|
249
|
-
});
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
##### With TagId and SegmentId
|
|
253
|
-
|
|
254
|
-
```typescript
|
|
255
|
-
const companies = await client.companies.list({
|
|
256
|
-
tagId: '1234',
|
|
257
|
-
segmentId: '4567',
|
|
258
|
-
});
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
#### [Scroll over companies](https://developers.intercom.com/intercom-api-reference/reference/iterating-over-all-companies)
|
|
262
|
-
|
|
263
|
-
##### Using infinite scroll
|
|
264
|
-
|
|
265
|
-
```typescript
|
|
266
|
-
const companies = await client.companies.scroll.each({});
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
##### Using manual scroll
|
|
270
|
-
|
|
271
|
-
```typescript
|
|
272
|
-
const companies = await client.companies.scroll.next({
|
|
273
|
-
scrollParam: '123_soleil',
|
|
274
|
-
});
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
#### [Attach a contact](https://developers.intercom.com/intercom-api-reference/reference/attach-contact-to-company)
|
|
278
|
-
|
|
279
|
-
```typescript
|
|
280
|
-
const response = await client.companies.attachContact({
|
|
281
|
-
contactId: '123',
|
|
282
|
-
companyId: '234',
|
|
283
|
-
});
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
#### [Detach a contact](https://developers.intercom.com/intercom-api-reference/reference/detach-contact-from-company)
|
|
287
|
-
|
|
288
|
-
```typescript
|
|
289
|
-
const response = await client.companies.detachContact({
|
|
290
|
-
contactId: '123',
|
|
291
|
-
companyId: '234',
|
|
292
|
-
});
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
#### [List attached contacts](https://developers.intercom.com/intercom-api-reference/reference/list-company-contacts)
|
|
296
|
-
|
|
297
|
-
```typescript
|
|
298
|
-
const response = await client.companies.listAttachedContacts({
|
|
299
|
-
companyId: '123',
|
|
300
|
-
page: 1,
|
|
301
|
-
perPage: 15,
|
|
302
|
-
});
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
#### [List attached segments](https://developers.intercom.com/intercom-api-reference/reference/list-attached-segments-1)
|
|
306
|
-
|
|
307
|
-
```typescript
|
|
308
|
-
const response = await client.companies.listAttachedSegments({
|
|
309
|
-
companyId: '123',
|
|
310
|
-
});
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
### Contacts
|
|
314
|
-
|
|
315
|
-
#### [Create Contact](https://developers.intercom.com/intercom-api-reference/reference/create-contact)
|
|
316
|
-
|
|
317
|
-
##### With User Role
|
|
318
|
-
|
|
319
|
-
```typescript
|
|
320
|
-
const user = await client.contacts.createUser({
|
|
321
|
-
externalId: '536e564f316c83104c000020',
|
|
322
|
-
phone: '+48370044567',
|
|
323
|
-
name: 'Niko Bellic',
|
|
324
|
-
avatar: 'https://nico-from-gta-iv.com/lets_go_bowling.jpg',
|
|
325
|
-
signedUpAt: 1638203719,
|
|
326
|
-
lastSeenAt: 1638203720,
|
|
327
|
-
ownerId: '536e564f316c83104c000021',
|
|
328
|
-
isUnsubscribedFromEmails: true,
|
|
329
|
-
});
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
##### With Lead Role
|
|
333
|
-
|
|
334
|
-
```typescript
|
|
335
|
-
const lead = await client.contacts.createLead({
|
|
336
|
-
phone: '+48370044567',
|
|
337
|
-
name: 'Roman Bellic',
|
|
338
|
-
avatar: 'https://nico-from-gta-iv.com/lets_go_bowling_yey.jpg',
|
|
339
|
-
signedUpAt: 1638203719,
|
|
340
|
-
lastSeenAt: 1638203720,
|
|
341
|
-
ownerId: '536e564f316c83104c000021',
|
|
342
|
-
isUnsubscribedFromEmails: true,
|
|
343
|
-
});
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
#### [Retrieve a Contact](https://developers.intercom.com/intercom-api-reference/reference/get-contact)
|
|
347
|
-
|
|
348
|
-
```typescript
|
|
349
|
-
const response = await client.contacts.find({ id: '123' });
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
#### [Update a Contact](https://developers.intercom.com/intercom-api-reference/reference/update-contact)
|
|
353
|
-
|
|
354
|
-
```typescript
|
|
355
|
-
const response = await client.contacts.update({
|
|
356
|
-
id: '123',
|
|
357
|
-
role: Role.USER,
|
|
358
|
-
name: 'Roman The Bowling Fan',
|
|
359
|
-
customAttributes: {
|
|
360
|
-
callBrother: "Hey Niko, it's me – Roman. Let's go bowling!",
|
|
361
|
-
},
|
|
362
|
-
});
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
#### [Delete a Contact](https://developers.intercom.com/intercom-api-reference/reference/delete-contact)
|
|
366
|
-
|
|
367
|
-
```typescript
|
|
368
|
-
const response = await client.contacts.delete({ id: '123' });
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
#### [Archive a Contact](https://developers.intercom.com/intercom-api-reference/reference/archive-a-contact)
|
|
372
|
-
|
|
373
|
-
```typescript
|
|
374
|
-
const response = await client.contacts.archive({ id: '123' });
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
#### [Unarchive a Contact](https://developers.intercom.com/intercom-api-reference/reference/unarchive-a-contact)
|
|
378
|
-
|
|
379
|
-
```typescript
|
|
380
|
-
const response = await client.contacts.unarchive({ id: '123' });
|
|
381
|
-
```
|
|
382
|
-
|
|
383
|
-
#### [Merge two Contacts](https://developers.intercom.com/intercom-api-reference/reference/merge-contact)
|
|
384
|
-
|
|
385
|
-
```typescript
|
|
386
|
-
const response = await client.contacts.mergeLeadInUser({
|
|
387
|
-
leadId: '123',
|
|
388
|
-
userId: '234',
|
|
389
|
-
});
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
#### [Search for contacts](https://developers.intercom.com/intercom-api-reference/reference/search-for-contacts)
|
|
393
|
-
|
|
394
|
-
```typescript
|
|
395
|
-
const response = await client.contacts.search({
|
|
396
|
-
data: {
|
|
397
|
-
query: {
|
|
398
|
-
operator: Operators.AND,
|
|
399
|
-
value: [
|
|
400
|
-
{
|
|
401
|
-
operator: Operators.AND,
|
|
402
|
-
value: [
|
|
403
|
-
{
|
|
404
|
-
field: 'updated_at',
|
|
405
|
-
operator: Operators.GREATER_THAN,
|
|
406
|
-
value: 1560436650,
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
field: 'conversation_rating.rating',
|
|
410
|
-
operator: Operators.EQUALS,
|
|
411
|
-
value: 1,
|
|
412
|
-
},
|
|
413
|
-
],
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
operator: Operators.OR,
|
|
417
|
-
value: [
|
|
418
|
-
{
|
|
419
|
-
field: 'updated_at',
|
|
420
|
-
operator: Operators.GREATER_THAN,
|
|
421
|
-
value: 1560436650,
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
field: 'conversation_rating.rating',
|
|
425
|
-
operator: Operators.EQUALS,
|
|
426
|
-
value: 2,
|
|
427
|
-
},
|
|
428
|
-
],
|
|
429
|
-
},
|
|
430
|
-
],
|
|
431
|
-
},
|
|
432
|
-
pagination: {
|
|
433
|
-
per_page: 5,
|
|
434
|
-
starting_after:
|
|
435
|
-
'WzE2MzU4NjA2NDgwMDAsIjYxODJiNjJlNDM4YjdhM2EwMWE4YWYxNSIsMl0=',
|
|
436
|
-
},
|
|
437
|
-
sort: { field: 'name', order: SearchContactOrderBy.ASC },
|
|
438
|
-
},
|
|
439
|
-
});
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
#### [List all Contacts](https://developers.intercom.com/intercom-api-reference/reference/list-contacts)
|
|
443
|
-
|
|
444
|
-
##### With cursor
|
|
445
|
-
|
|
446
|
-
```typescript
|
|
447
|
-
const response = await client.contacts.list({
|
|
448
|
-
perPage: 5,
|
|
449
|
-
startingAfter:
|
|
450
|
-
'WzE2MzU3NzU4NjkwMDAsIjYxODJiNjJhMDMwZTk4OTBkZWU4NGM5YiIsMl0=',
|
|
451
|
-
});
|
|
452
|
-
```
|
|
453
|
-
|
|
454
|
-
##### Without a cursor
|
|
455
|
-
|
|
456
|
-
```typescript
|
|
457
|
-
const response = await client.contacts.list();
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
#### [List attached companies](https://developers.intercom.com/intercom-api-reference/reference/list-companies-of-contact)
|
|
461
|
-
|
|
462
|
-
```typescript
|
|
463
|
-
const response = await client.contacts.listAttachedCompanies({
|
|
464
|
-
id: '123',
|
|
465
|
-
perPage: 5,
|
|
466
|
-
page: 1,
|
|
467
|
-
});
|
|
468
|
-
```
|
|
469
|
-
|
|
470
|
-
#### [List attached tags](https://developers.intercom.com/intercom-api-reference/reference/list-tags-of-contact)
|
|
471
|
-
|
|
472
|
-
```typescript
|
|
473
|
-
const response = await client.contacts.listAttachedTags({ id: '123' });
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
#### [List attached segments](https://developers.intercom.com/intercom-api-reference/reference/list-attached-segments)
|
|
25
|
+
Instantiate and use the client with the following:
|
|
477
26
|
|
|
478
27
|
```typescript
|
|
479
|
-
|
|
480
|
-
```
|
|
28
|
+
import { IntercomClient, Intercom } from "intercom-client";
|
|
481
29
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
30
|
+
const client = new IntercomClient({ token: "YOUR_TOKEN" });
|
|
31
|
+
await client.articles.create({
|
|
32
|
+
title: "Thanks for everything",
|
|
33
|
+
description: "Description of the Article",
|
|
34
|
+
body: "Body of the Article",
|
|
35
|
+
author_id: 1295,
|
|
36
|
+
state: Intercom.CreateArticleRequestState.Published,
|
|
487
37
|
});
|
|
488
38
|
```
|
|
489
39
|
|
|
490
|
-
|
|
40
|
+
## Request and Response Types
|
|
491
41
|
|
|
492
|
-
|
|
42
|
+
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
|
|
43
|
+
following namespace:
|
|
493
44
|
|
|
494
45
|
```typescript
|
|
495
|
-
|
|
496
|
-
userId: '123',
|
|
497
|
-
body: 'Hello darkness my old friend',
|
|
498
|
-
});
|
|
499
|
-
```
|
|
46
|
+
import { Intercom } from "intercom-client";
|
|
500
47
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
```typescript
|
|
506
|
-
const response = await client.conversations.find({
|
|
507
|
-
id: '123',
|
|
508
|
-
});
|
|
48
|
+
const request: Intercom.AdminsAwayRequest = {
|
|
49
|
+
...
|
|
50
|
+
};
|
|
509
51
|
```
|
|
510
52
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
```typescript
|
|
514
|
-
const response = await client.conversations.find({
|
|
515
|
-
id: '123',
|
|
516
|
-
inPlainText: true,
|
|
517
|
-
});
|
|
518
|
-
```
|
|
53
|
+
## Automatic Pagination
|
|
519
54
|
|
|
520
|
-
|
|
55
|
+
List endpoints are paginated. The SDK provides an iterator so that you
|
|
56
|
+
can simply loop over the items:
|
|
521
57
|
|
|
522
|
-
```
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
anything: 'you want',
|
|
528
|
-
},
|
|
529
|
-
});
|
|
58
|
+
```ts
|
|
59
|
+
const result = await client.companies.list();
|
|
60
|
+
for await (const company of result) {
|
|
61
|
+
console.log(company.id);
|
|
62
|
+
}
|
|
530
63
|
```
|
|
531
64
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
##### By id
|
|
535
|
-
|
|
536
|
-
###### As user
|
|
65
|
+
You can also iterate page-by-page:
|
|
537
66
|
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
attachmentUrls: '345',
|
|
544
|
-
});
|
|
67
|
+
```ts
|
|
68
|
+
let page = await client.companies.list();
|
|
69
|
+
for (const company of page.data) {
|
|
70
|
+
console.log(company.id);
|
|
71
|
+
}
|
|
545
72
|
```
|
|
546
73
|
|
|
547
|
-
|
|
74
|
+
or manually:
|
|
548
75
|
|
|
549
|
-
```
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
body: '<b>Bee C</b>',
|
|
555
|
-
attachmentUrls: ['https://site.org/bebra.jpg'],
|
|
556
|
-
});
|
|
76
|
+
```ts
|
|
77
|
+
while (page.hasNextPage()) {
|
|
78
|
+
page = page.getNextPage();
|
|
79
|
+
// ...
|
|
80
|
+
}
|
|
557
81
|
```
|
|
558
82
|
|
|
559
|
-
|
|
83
|
+
## Exception Handling
|
|
560
84
|
|
|
561
|
-
|
|
85
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
86
|
+
will be thrown.
|
|
562
87
|
|
|
563
88
|
```typescript
|
|
564
|
-
|
|
565
|
-
body: 'blablbalba',
|
|
566
|
-
intercomUserId: '123',
|
|
567
|
-
attachmentUrls: '345',
|
|
568
|
-
});
|
|
569
|
-
```
|
|
89
|
+
import { IntercomError } from "intercom-client";
|
|
570
90
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
91
|
+
try {
|
|
92
|
+
await client.articles.create(...);
|
|
93
|
+
} catch (err) {
|
|
94
|
+
if (err instanceof IntercomError) {
|
|
95
|
+
console.log(err.statusCode);
|
|
96
|
+
console.log(err.message);
|
|
97
|
+
console.log(err.body);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
580
100
|
```
|
|
581
101
|
|
|
582
|
-
|
|
102
|
+
## Advanced
|
|
583
103
|
|
|
584
|
-
|
|
104
|
+
### Retries
|
|
585
105
|
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
type: AssignToConversationUserType.TEAM,
|
|
590
|
-
adminId: '456',
|
|
591
|
-
assigneeId: '789',
|
|
592
|
-
body: '<b>blablbalba</b>',
|
|
593
|
-
});
|
|
594
|
-
```
|
|
106
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
107
|
+
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
|
|
108
|
+
retry limit (default: 2).
|
|
595
109
|
|
|
596
|
-
|
|
110
|
+
A request is deemed retriable when any of the following HTTP status codes is returned:
|
|
597
111
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
withRunningAssignmentRules: true,
|
|
602
|
-
});
|
|
603
|
-
```
|
|
112
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
113
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
114
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
604
115
|
|
|
605
|
-
|
|
116
|
+
Use the `maxRetries` request option to configure this behavior.
|
|
606
117
|
|
|
607
118
|
```typescript
|
|
608
|
-
const response = await client.
|
|
609
|
-
|
|
610
|
-
adminId: '234',
|
|
611
|
-
snoozedUntil: '1501512795',
|
|
119
|
+
const response = await client.articles.create(..., {
|
|
120
|
+
maxRetries: 0 // override maxRetries at the request level
|
|
612
121
|
});
|
|
613
122
|
```
|
|
614
123
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
```typescript
|
|
618
|
-
const response = await client.conversations.close({
|
|
619
|
-
id: '123',
|
|
620
|
-
adminId: '456',
|
|
621
|
-
body: "That's it...",
|
|
622
|
-
});
|
|
623
|
-
```
|
|
124
|
+
### Timeouts
|
|
624
125
|
|
|
625
|
-
|
|
126
|
+
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
626
127
|
|
|
627
128
|
```typescript
|
|
628
|
-
const response = await client.
|
|
629
|
-
|
|
630
|
-
adminId: '234',
|
|
129
|
+
const response = await client.articles.create(..., {
|
|
130
|
+
timeoutInSeconds: 30 // override timeout to 30s
|
|
631
131
|
});
|
|
632
132
|
```
|
|
633
133
|
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
##### As admin, using intercomUserid
|
|
134
|
+
### Aborting Requests
|
|
637
135
|
|
|
638
|
-
|
|
639
|
-
const response = await client.conversations.attachContactAsAdmin({
|
|
640
|
-
id: '123',
|
|
641
|
-
adminId: '234',
|
|
642
|
-
customer: {
|
|
643
|
-
intercomUserId: '456',
|
|
644
|
-
},
|
|
645
|
-
});
|
|
646
|
-
```
|
|
647
|
-
|
|
648
|
-
##### As contact, using intercomUserid
|
|
136
|
+
The SDK allows users to abort requests at any point by passing in an abort signal.
|
|
649
137
|
|
|
650
138
|
```typescript
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
customer: {
|
|
655
|
-
intercomUserId: '456',
|
|
656
|
-
},
|
|
139
|
+
const controller = new AbortController();
|
|
140
|
+
const response = await client.articles.create(..., {
|
|
141
|
+
abortSignal: controller.signal
|
|
657
142
|
});
|
|
143
|
+
controller.abort(); // aborts the request
|
|
658
144
|
```
|
|
659
145
|
|
|
660
|
-
|
|
146
|
+
### Runtime Compatibility
|
|
661
147
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
conversationId: '123',
|
|
665
|
-
contactId: '456',
|
|
666
|
-
adminId: '789',
|
|
667
|
-
});
|
|
668
|
-
```
|
|
148
|
+
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
|
|
149
|
+
runtimes:
|
|
669
150
|
|
|
670
|
-
|
|
151
|
+
- Node.js 18+
|
|
152
|
+
- Vercel
|
|
153
|
+
- Cloudflare Workers
|
|
154
|
+
- Deno v1.25+
|
|
155
|
+
- Bun 1.0+
|
|
156
|
+
- React Native
|
|
671
157
|
|
|
672
|
-
|
|
673
|
-
const response = await client.conversations.search({
|
|
674
|
-
data: {
|
|
675
|
-
query: {
|
|
676
|
-
operator: Operators.AND,
|
|
677
|
-
value: [
|
|
678
|
-
{
|
|
679
|
-
operator: Operators.AND,
|
|
680
|
-
value: [
|
|
681
|
-
{
|
|
682
|
-
field: 'updated_at',
|
|
683
|
-
operator: Operators.GREATER_THAN,
|
|
684
|
-
value: 1560436650,
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
field: 'conversation_rating.rating',
|
|
688
|
-
operator: Operators.EQUALS,
|
|
689
|
-
value: 1,
|
|
690
|
-
},
|
|
691
|
-
],
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
operator: Operators.OR,
|
|
695
|
-
value: [
|
|
696
|
-
{
|
|
697
|
-
field: 'updated_at',
|
|
698
|
-
operator: Operators.GREATER_THAN,
|
|
699
|
-
value: 1560436650,
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
field: 'conversation_rating.rating',
|
|
703
|
-
operator: Operators.EQUALS,
|
|
704
|
-
value: 2,
|
|
705
|
-
},
|
|
706
|
-
],
|
|
707
|
-
},
|
|
708
|
-
],
|
|
709
|
-
},
|
|
710
|
-
pagination: {
|
|
711
|
-
per_page: 5,
|
|
712
|
-
starting_after:
|
|
713
|
-
'WzE2MzU4NjA2NDgwMDAsIjYxODJiNjJlNDM4YjdhM2EwMWE4YWYxNSIsMl0=',
|
|
714
|
-
},
|
|
715
|
-
sort: {
|
|
716
|
-
field: 'name',
|
|
717
|
-
order: SearchConversationOrderBy.DESC,
|
|
718
|
-
},
|
|
719
|
-
},
|
|
720
|
-
});
|
|
721
|
-
```
|
|
158
|
+
### Customizing Fetch Client
|
|
722
159
|
|
|
723
|
-
|
|
160
|
+
The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an
|
|
161
|
+
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
|
|
724
162
|
|
|
725
163
|
```typescript
|
|
726
|
-
|
|
727
|
-
startingAfter: 'WzE2NzA0MjI1MjkwMDAsMjQzMTY3NzA2ODcsMl0=',
|
|
728
|
-
perPage: 10,
|
|
729
|
-
});
|
|
730
|
-
```
|
|
164
|
+
import { IntercomClient } from "intercom-client";
|
|
731
165
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
const response = await client.conversations.redactConversationPart({
|
|
736
|
-
type: RedactConversationPartType.CONVERSATION_PART,
|
|
737
|
-
conversationId: '123',
|
|
738
|
-
conversationPartId: '456',
|
|
166
|
+
const client = new IntercomClient({
|
|
167
|
+
...
|
|
168
|
+
fetcher: // provide your implementation here
|
|
739
169
|
});
|
|
740
170
|
```
|
|
741
171
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
#### [App Total Count](https://developers.intercom.com/intercom-api-reference/reference/company-user-counts)
|
|
745
|
-
|
|
746
|
-
```typescript
|
|
747
|
-
const response = await client.counts.forApp();
|
|
748
|
-
```
|
|
749
|
-
|
|
750
|
-
#### [Conversation Count Model](https://developers.intercom.com/intercom-api-reference/reference/conversation-counts)
|
|
751
|
-
|
|
752
|
-
```typescript
|
|
753
|
-
const response = await client.counts.countConversation();
|
|
754
|
-
```
|
|
755
|
-
|
|
756
|
-
#### [Admin Conversation Count Model](https://developers.intercom.com/intercom-api-reference/reference/admin-conversations)
|
|
757
|
-
|
|
758
|
-
```typescript
|
|
759
|
-
const response = await client.counts.countAdminConversation();
|
|
760
|
-
```
|
|
761
|
-
|
|
762
|
-
#### [User Segment/Tag Count Model](https://developers.intercom.com/intercom-api-reference/reference/user-tag-counts)
|
|
763
|
-
|
|
764
|
-
##### Count User Segment
|
|
765
|
-
|
|
766
|
-
```typescript
|
|
767
|
-
const response = await client.counts.countUserSegment();
|
|
768
|
-
```
|
|
769
|
-
|
|
770
|
-
##### Count User Tag
|
|
771
|
-
|
|
772
|
-
```typescript
|
|
773
|
-
const response = await client.counts.countUserTag();
|
|
774
|
-
```
|
|
775
|
-
|
|
776
|
-
#### [Company User/Segment/Tag Count Model](https://developers.intercom.com/intercom-api-reference/reference/company-tag-counts)
|
|
777
|
-
|
|
778
|
-
##### Count Company Segment
|
|
779
|
-
|
|
780
|
-
```typescript
|
|
781
|
-
const response = await client.counts.countCompanySegment();
|
|
782
|
-
const response = await client.counts.countCompanyTag();
|
|
783
|
-
const response = await client.counts.countCompanyUser();
|
|
784
|
-
```
|
|
785
|
-
|
|
786
|
-
##### Count Company Tag
|
|
787
|
-
|
|
788
|
-
```typescript
|
|
789
|
-
const response = await client.counts.countCompanyTag();
|
|
790
|
-
```
|
|
791
|
-
|
|
792
|
-
##### Count Company User
|
|
793
|
-
|
|
794
|
-
```typescript
|
|
795
|
-
const response = await client.counts.countCompanyUser();
|
|
796
|
-
```
|
|
797
|
-
|
|
798
|
-
### Data Attributes
|
|
799
|
-
|
|
800
|
-
#### [Create Data Attribute](https://developers.intercom.com/intercom-api-reference/reference/create-data-attributes)
|
|
801
|
-
|
|
802
|
-
```typescript
|
|
803
|
-
const response = await client.dataAttributes.create({
|
|
804
|
-
name: 'list_cda',
|
|
805
|
-
model: ModelType.CONTACT,
|
|
806
|
-
dataType: DataType.STRING,
|
|
807
|
-
description: 'You are either alive or dead',
|
|
808
|
-
options: [{ value: 'alive' }, { value: 'dead' }],
|
|
809
|
-
});
|
|
810
|
-
```
|
|
811
|
-
|
|
812
|
-
#### [Update Data Attribute](https://developers.intercom.com/intercom-api-reference/reference/update-data-attributes)
|
|
813
|
-
|
|
814
|
-
```typescript
|
|
815
|
-
const response = await client.dataAttributes.update({
|
|
816
|
-
id: '123',
|
|
817
|
-
description: 'You are either alive or dead',
|
|
818
|
-
options: [{ value: 'alive' }, { value: 'dead' }],
|
|
819
|
-
archived: true,
|
|
820
|
-
});
|
|
821
|
-
```
|
|
822
|
-
|
|
823
|
-
#### [List all Data Attributes](https://developers.intercom.com/intercom-api-reference/reference/list-data-attributes)
|
|
824
|
-
|
|
825
|
-
```typescript
|
|
826
|
-
const response = await client.dataAttributes.list({
|
|
827
|
-
model: ModelType.CONTACT,
|
|
828
|
-
includeArchived: true,
|
|
829
|
-
});
|
|
830
|
-
```
|
|
831
|
-
|
|
832
|
-
### Data Exports
|
|
833
|
-
|
|
834
|
-
#### [Create a export job](https://developers.intercom.com/intercom-api-reference/reference/creating-an-export-job)
|
|
835
|
-
|
|
836
|
-
```typescript
|
|
837
|
-
const response = await client.dataExport.create({
|
|
838
|
-
createdAtAfter: 1527811200,
|
|
839
|
-
createdAtBefore: 1530316800,
|
|
840
|
-
});
|
|
841
|
-
```
|
|
842
|
-
|
|
843
|
-
#### [Retrieve a job status](https://developers.intercom.com/intercom-api-reference/reference/retrieve-a-job-status)
|
|
844
|
-
|
|
845
|
-
```typescript
|
|
846
|
-
const response = await client.dataExport.find({id: export.id})
|
|
847
|
-
```
|
|
848
|
-
|
|
849
|
-
#### [Cancel a job](https://developers.intercom.com/intercom-api-reference/reference/the-export-job-model)
|
|
850
|
-
|
|
851
|
-
```typescript
|
|
852
|
-
const response = await client.dataExport.cancel({id: export.id})
|
|
853
|
-
```
|
|
854
|
-
|
|
855
|
-
### Events
|
|
856
|
-
|
|
857
|
-
#### [Submit a data event](https://developers.intercom.com/intercom-api-reference/reference/list-data-attributes)
|
|
858
|
-
|
|
859
|
-
```typescript
|
|
860
|
-
const response = await client.events.create({
|
|
861
|
-
eventName: 'placed-order',
|
|
862
|
-
createdAt: 1389913941,
|
|
863
|
-
userId: 'f4ca124298',
|
|
864
|
-
metadata: {
|
|
865
|
-
order_date: 1392036272,
|
|
866
|
-
stripe_invoice: 'inv_3434343434',
|
|
867
|
-
order_number: {
|
|
868
|
-
value: '3434-3434',
|
|
869
|
-
url: 'https://example.org/orders/3434-3434',
|
|
870
|
-
},
|
|
871
|
-
price: {
|
|
872
|
-
currency: 'usd',
|
|
873
|
-
amount: 2999,
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
});
|
|
877
|
-
```
|
|
878
|
-
|
|
879
|
-
#### [List all data events](https://developers.intercom.com/intercom-api-reference/reference/list-user-events)
|
|
880
|
-
|
|
881
|
-
```typescript
|
|
882
|
-
const response = await client.events.listBy({
|
|
883
|
-
userId: '1234',
|
|
884
|
-
perPage: 2,
|
|
885
|
-
summary: true,
|
|
886
|
-
email: 'i_love_memes@gmail.com',
|
|
887
|
-
});
|
|
888
|
-
```
|
|
889
|
-
|
|
890
|
-
### Help Center - Collections
|
|
891
|
-
|
|
892
|
-
#### [Create a collection](https://developers.intercom.com/intercom-api-reference/reference/create-a-collection)
|
|
893
|
-
|
|
894
|
-
```typescript
|
|
895
|
-
const collection = await client.helpCenter.collections.create({
|
|
896
|
-
name: 'Thanks for everything',
|
|
897
|
-
description: 'English description',
|
|
898
|
-
translatedContent: {
|
|
899
|
-
fr: {
|
|
900
|
-
name: 'Allez les verts',
|
|
901
|
-
description: 'French description',
|
|
902
|
-
},
|
|
903
|
-
},
|
|
904
|
-
});
|
|
905
|
-
```
|
|
906
|
-
|
|
907
|
-
#### [Retrieve a collection](https://developers.intercom.com/intercom-api-reference/reference/retrieve-a-collection)
|
|
908
|
-
|
|
909
|
-
```typescript
|
|
910
|
-
const response = await client.helpCenter.collections.find({ id: '123' });
|
|
911
|
-
```
|
|
912
|
-
|
|
913
|
-
#### [Update a collection](https://developers.intercom.com/intercom-api-reference/reference/update-a-collection)
|
|
914
|
-
|
|
915
|
-
```typescript
|
|
916
|
-
const article = await client.helpCenter.collections.update({
|
|
917
|
-
id: '123',
|
|
918
|
-
name: 'Thanks for everything',
|
|
919
|
-
description: 'English description',
|
|
920
|
-
translatedContent: {
|
|
921
|
-
fr: {
|
|
922
|
-
name: 'Allez les verts',
|
|
923
|
-
description: 'French description',
|
|
924
|
-
},
|
|
925
|
-
},
|
|
926
|
-
});
|
|
927
|
-
```
|
|
928
|
-
|
|
929
|
-
#### [Delete a collection](https://developers.intercom.com/intercom-api-reference/reference/delete-a-collection)
|
|
930
|
-
|
|
931
|
-
```typescript
|
|
932
|
-
await client.helpCenter.collections.delete({
|
|
933
|
-
id: '123',
|
|
934
|
-
});
|
|
935
|
-
```
|
|
936
|
-
|
|
937
|
-
#### [List all collections](https://developers.intercom.com/intercom-api-reference/reference/list-all-collections)
|
|
938
|
-
|
|
939
|
-
```typescript
|
|
940
|
-
const response = client.helpCenter.collections.list({
|
|
941
|
-
page: 3,
|
|
942
|
-
perPage: 12,
|
|
943
|
-
});
|
|
944
|
-
```
|
|
945
|
-
|
|
946
|
-
## Help Center - Sections
|
|
947
|
-
|
|
948
|
-
#### [Create a section](https://developers.intercom.com/intercom-api-reference/reference/create-a-section)
|
|
949
|
-
|
|
950
|
-
```typescript
|
|
951
|
-
const collection = await client.helpCenter.sections.create({
|
|
952
|
-
name: 'Thanks for everything',
|
|
953
|
-
parentId: '1234',
|
|
954
|
-
translatedContent: {
|
|
955
|
-
fr: {
|
|
956
|
-
name: 'Allez les verts',
|
|
957
|
-
description: 'French description',
|
|
958
|
-
},
|
|
959
|
-
},
|
|
960
|
-
});
|
|
961
|
-
```
|
|
962
|
-
|
|
963
|
-
#### [Retrieve a section](https://developers.intercom.com/intercom-api-reference/reference/retrieve-a-section)
|
|
964
|
-
|
|
965
|
-
```typescript
|
|
966
|
-
const response = await client.helpCenter.sections.find({ id: '123' });
|
|
967
|
-
```
|
|
968
|
-
|
|
969
|
-
#### [Update a section](https://developers.intercom.com/intercom-api-reference/reference/update-a-section)
|
|
970
|
-
|
|
971
|
-
```typescript
|
|
972
|
-
const article = await client.helpCenter.sections.update({
|
|
973
|
-
id: '123',
|
|
974
|
-
name: 'Thanks for everything',
|
|
975
|
-
parentId: '456',
|
|
976
|
-
translatedContent: {
|
|
977
|
-
fr: {
|
|
978
|
-
name: 'Allez les verts',
|
|
979
|
-
description: 'French description',
|
|
980
|
-
},
|
|
981
|
-
},
|
|
982
|
-
});
|
|
983
|
-
```
|
|
984
|
-
|
|
985
|
-
#### [Delete a section](https://developers.intercom.com/intercom-api-reference/reference/delete-a-section)
|
|
986
|
-
|
|
987
|
-
```typescript
|
|
988
|
-
await client.helpCenter.sections.delete({
|
|
989
|
-
id: '123',
|
|
990
|
-
});
|
|
991
|
-
```
|
|
992
|
-
|
|
993
|
-
#### [List all sections](https://developers.intercom.com/intercom-api-reference/reference/list-all-sections)
|
|
994
|
-
|
|
995
|
-
```typescript
|
|
996
|
-
const response = client.helpCenter.sections.list({
|
|
997
|
-
page: 3,
|
|
998
|
-
perPage: 12,
|
|
999
|
-
});
|
|
1000
|
-
```
|
|
1001
|
-
|
|
1002
|
-
### Messages
|
|
1003
|
-
|
|
1004
|
-
#### [Create a message](https://developers.intercom.com/intercom-api-reference/reference/admin-initiated-conversation)
|
|
1005
|
-
|
|
1006
|
-
```typescript
|
|
1007
|
-
const response = await client.messages.create({
|
|
1008
|
-
messageType: 'email',
|
|
1009
|
-
subject: 'This is our demand now',
|
|
1010
|
-
body: 'Destroy ponies',
|
|
1011
|
-
template: 'plain',
|
|
1012
|
-
from: {
|
|
1013
|
-
type: 'admin',
|
|
1014
|
-
id: '394051',
|
|
1015
|
-
},
|
|
1016
|
-
to: {
|
|
1017
|
-
type: 'user',
|
|
1018
|
-
id: '536e564f316c83104c000020',
|
|
1019
|
-
},
|
|
1020
|
-
});
|
|
1021
|
-
```
|
|
1022
|
-
|
|
1023
|
-
#### [Create conversation without contact reply](https://developers.intercom.com/intercom-api-reference/reference/admin-initiated-conversation)
|
|
1024
|
-
|
|
1025
|
-
```typescript
|
|
1026
|
-
const response = await client.messages.create({
|
|
1027
|
-
messageType: 'inapp',
|
|
1028
|
-
body: 'Look at me, I am a conversation now',
|
|
1029
|
-
from: {
|
|
1030
|
-
type: 'admin',
|
|
1031
|
-
id: '394051',
|
|
1032
|
-
},
|
|
1033
|
-
to: {
|
|
1034
|
-
type: 'user',
|
|
1035
|
-
id: '536e564f316c83104c000020',
|
|
1036
|
-
},
|
|
1037
|
-
createConversationWithoutContactReply: true,
|
|
1038
|
-
});
|
|
1039
|
-
```
|
|
1040
|
-
|
|
1041
|
-
### Notes
|
|
1042
|
-
|
|
1043
|
-
#### [Create a note](https://developers.intercom.com/intercom-api-reference/reference/create-note-for-contact)
|
|
1044
|
-
|
|
1045
|
-
```typescript
|
|
1046
|
-
const response = await client.notes.create({
|
|
1047
|
-
adminId: '12345',
|
|
1048
|
-
body: 'Shiny',
|
|
1049
|
-
contactId: '5678',
|
|
1050
|
-
});
|
|
1051
|
-
```
|
|
1052
|
-
|
|
1053
|
-
#### [Retrieve a note](https://developers.intercom.com/intercom-api-reference/reference/view-a-note)
|
|
1054
|
-
|
|
1055
|
-
```typescript
|
|
1056
|
-
const response = await client.notes.find({ id: '123' });
|
|
1057
|
-
```
|
|
1058
|
-
|
|
1059
|
-
#### [List all notes](https://developers.intercom.com/intercom-api-reference/reference/list-notes-of-contact)
|
|
1060
|
-
|
|
1061
|
-
```typescript
|
|
1062
|
-
const response = await client.notes.list({
|
|
1063
|
-
contactId: '123',
|
|
1064
|
-
page: 2,
|
|
1065
|
-
perPage: 3,
|
|
1066
|
-
});
|
|
1067
|
-
```
|
|
1068
|
-
|
|
1069
|
-
### Segments
|
|
1070
|
-
|
|
1071
|
-
#### [Retrieve a segment](https://developers.intercom.com/intercom-api-reference/reference/view-a-segment)
|
|
1072
|
-
|
|
1073
|
-
```typescript
|
|
1074
|
-
const response = await client.segments.find({
|
|
1075
|
-
id: '123',
|
|
1076
|
-
includeCount: true,
|
|
1077
|
-
});
|
|
1078
|
-
```
|
|
1079
|
-
|
|
1080
|
-
#### [List all segments](https://developers.intercom.com/intercom-api-reference/reference/list-segments)
|
|
1081
|
-
|
|
1082
|
-
```typescript
|
|
1083
|
-
const response = await client.segments.list({
|
|
1084
|
-
includeCount: true,
|
|
1085
|
-
});
|
|
1086
|
-
```
|
|
1087
|
-
|
|
1088
|
-
### Subscriptions
|
|
1089
|
-
|
|
1090
|
-
#### [List all subscription types](https://developers.intercom.com/intercom-api-reference/reference/list-all-subscription-types)
|
|
1091
|
-
|
|
1092
|
-
```typescript
|
|
1093
|
-
const response = await client.subscriptions.listTypes();
|
|
1094
|
-
```
|
|
1095
|
-
|
|
1096
|
-
### PhoneCallRedirects
|
|
1097
|
-
|
|
1098
|
-
#### [Create a phone call redirect](https://developers.intercom.com/intercom-api-reference/reference/create-a-phone-switch)
|
|
1099
|
-
|
|
1100
|
-
```typescript
|
|
1101
|
-
const response = await client.phoneCallRedirect.create({
|
|
1102
|
-
phone: '+353871234567',
|
|
1103
|
-
});
|
|
1104
|
-
```
|
|
1105
|
-
|
|
1106
|
-
### Tags
|
|
1107
|
-
|
|
1108
|
-
#### [Create or update a tag](https://developers.intercom.com/intercom-api-reference/reference/create-and-update-tags)
|
|
1109
|
-
|
|
1110
|
-
##### Create
|
|
1111
|
-
|
|
1112
|
-
```typescript
|
|
1113
|
-
const response = await client.tags.create({ name: 'haven' });
|
|
1114
|
-
```
|
|
1115
|
-
|
|
1116
|
-
##### Update
|
|
1117
|
-
|
|
1118
|
-
```typescript
|
|
1119
|
-
const response = await client.tags.update({ id: '123', name: 'haven' });
|
|
1120
|
-
```
|
|
1121
|
-
|
|
1122
|
-
#### [Delete a tag](https://developers.intercom.com/intercom-api-reference/reference/delete-a-tag)
|
|
1123
|
-
|
|
1124
|
-
```typescript
|
|
1125
|
-
const response = await client.tags.delete({ id: 'baz' });
|
|
1126
|
-
```
|
|
1127
|
-
|
|
1128
|
-
#### [Attach a contact](https://developers.intercom.com/intercom-api-reference/reference/tag-contact)
|
|
1129
|
-
|
|
1130
|
-
```typescript
|
|
1131
|
-
const response = await client.tags.tagContact({
|
|
1132
|
-
contactId: '123',
|
|
1133
|
-
tagId: '234',
|
|
1134
|
-
});
|
|
1135
|
-
```
|
|
1136
|
-
|
|
1137
|
-
#### [Attach a conversation](https://developers.intercom.com/intercom-api-reference/reference/attach-a-tag-to-a-conversation)
|
|
1138
|
-
|
|
1139
|
-
```typescript
|
|
1140
|
-
const response = await client.tags.tagConversation({
|
|
1141
|
-
conversationId: '123',
|
|
1142
|
-
tagId: '456',
|
|
1143
|
-
adminId: '789',
|
|
1144
|
-
});
|
|
1145
|
-
```
|
|
1146
|
-
|
|
1147
|
-
#### [Tag companies](https://developers.intercom.com/intercom-api-reference/reference/tag-companies)
|
|
1148
|
-
|
|
1149
|
-
```typescript
|
|
1150
|
-
const response = await client.tags.tagCompanies({
|
|
1151
|
-
tagName: 'gutenTag',
|
|
1152
|
-
companiesIds: ['123', '234', '456'],
|
|
1153
|
-
});
|
|
1154
|
-
```
|
|
1155
|
-
|
|
1156
|
-
#### [Untag companies](https://developers.intercom.com/intercom-api-reference/reference/untag-companies)
|
|
1157
|
-
|
|
1158
|
-
```typescript
|
|
1159
|
-
const response = await client.tags.tagCompanies({
|
|
1160
|
-
tagName: 'gutenTag',
|
|
1161
|
-
companiesIds: ['123', '234', '456'],
|
|
1162
|
-
});
|
|
1163
|
-
```
|
|
1164
|
-
|
|
1165
|
-
#### [Untag conversation](https://developers.intercom.com/intercom-api-reference/reference/detach-a-tag-from-a-conversation)
|
|
1166
|
-
|
|
1167
|
-
```typescript
|
|
1168
|
-
const response = await client.tags.untagConversation({
|
|
1169
|
-
conversationId: '123',
|
|
1170
|
-
tagId: '345',
|
|
1171
|
-
adminId: '678',
|
|
1172
|
-
});
|
|
1173
|
-
```
|
|
1174
|
-
|
|
1175
|
-
#### [Untag contact](https://developers.intercom.com/intercom-api-reference/reference/untag-contact)
|
|
1176
|
-
|
|
1177
|
-
```typescript
|
|
1178
|
-
const response = await client.tags.untagContact({
|
|
1179
|
-
contactId: '123',
|
|
1180
|
-
tagId: '345',
|
|
1181
|
-
});
|
|
1182
|
-
```
|
|
1183
|
-
|
|
1184
|
-
#### [List all tags](https://developers.intercom.com/intercom-api-reference/reference/list-tags-for-an-app)
|
|
1185
|
-
|
|
1186
|
-
```typescript
|
|
1187
|
-
const response = await client.tags.list();
|
|
1188
|
-
```
|
|
1189
|
-
|
|
1190
|
-
### Teams
|
|
1191
|
-
|
|
1192
|
-
#### [Retrieve a team](https://developers.intercom.com/intercom-api-reference/reference/view-a-team)
|
|
1193
|
-
|
|
1194
|
-
```typescript
|
|
1195
|
-
const response = await client.teams.find({
|
|
1196
|
-
id: '123',
|
|
1197
|
-
});
|
|
1198
|
-
```
|
|
1199
|
-
|
|
1200
|
-
#### [List all teams](https://developers.intercom.com/intercom-api-reference/reference/list-teams)
|
|
1201
|
-
|
|
1202
|
-
```typescript
|
|
1203
|
-
const response = await client.teams.list();
|
|
1204
|
-
```
|
|
1205
|
-
|
|
1206
|
-
### Visitors
|
|
1207
|
-
|
|
1208
|
-
#### [Retrieve a Visitor](https://developers.intercom.com/intercom-api-reference/reference/view-a-visitor)
|
|
1209
|
-
|
|
1210
|
-
```typescript
|
|
1211
|
-
const response = await client.visitors.find({ id: '123' });
|
|
1212
|
-
```
|
|
1213
|
-
|
|
1214
|
-
OR
|
|
1215
|
-
|
|
1216
|
-
```typescript
|
|
1217
|
-
const response = await client.visitors.find({ userId: '123' });
|
|
1218
|
-
```
|
|
1219
|
-
|
|
1220
|
-
#### [Update a Visitor](https://developers.intercom.com/intercom-api-reference/reference/update-a-visitor)
|
|
1221
|
-
|
|
1222
|
-
```typescript
|
|
1223
|
-
const response = await client.visitors.update({
|
|
1224
|
-
userId: '123',
|
|
1225
|
-
name: 'anonymous bruh',
|
|
1226
|
-
customAttributes: {
|
|
1227
|
-
paid_subscriber: true,
|
|
1228
|
-
},
|
|
1229
|
-
});
|
|
1230
|
-
```
|
|
1231
|
-
|
|
1232
|
-
#### [Delete a Visitor](https://developers.intercom.com/intercom-api-reference/reference/delete-a-visitor)
|
|
1233
|
-
|
|
1234
|
-
```typescript
|
|
1235
|
-
const response = await client.visitors.delete({
|
|
1236
|
-
id,
|
|
1237
|
-
});
|
|
1238
|
-
```
|
|
1239
|
-
|
|
1240
|
-
#### [Convert a Visitor](https://developers.intercom.com/intercom-api-reference/reference/convert-a-visitor-to-a-user)
|
|
1241
|
-
|
|
1242
|
-
```typescript
|
|
1243
|
-
const response = await client.visitors.mergeToContact({
|
|
1244
|
-
visitor: {
|
|
1245
|
-
id: '123',
|
|
1246
|
-
},
|
|
1247
|
-
user: {
|
|
1248
|
-
userId: '123',
|
|
1249
|
-
},
|
|
1250
|
-
type: Role.USER,
|
|
1251
|
-
});
|
|
1252
|
-
```
|
|
1253
|
-
|
|
1254
|
-
### Identity verification
|
|
1255
|
-
|
|
1256
|
-
`intercom-node` provides a helper for using [identity verification](https://docs.intercom.com/configure-intercom-for-your-product-or-site/staying-secure/enable-identity-verification-on-your-web-product):
|
|
1257
|
-
|
|
1258
|
-
```node
|
|
1259
|
-
import { IdentityVerification } from 'intercom-client';
|
|
1260
|
-
|
|
1261
|
-
IdentityVerification.userHash({
|
|
1262
|
-
secretKey: 's3cre7',
|
|
1263
|
-
identifier: 'jayne@serenity.io',
|
|
1264
|
-
});
|
|
1265
|
-
```
|
|
1266
|
-
|
|
1267
|
-
## License
|
|
1268
|
-
|
|
1269
|
-
Apache-2.0
|
|
1270
|
-
|
|
1271
|
-
## Testing
|
|
1272
|
-
|
|
1273
|
-
```bash
|
|
1274
|
-
yarn test
|
|
1275
|
-
```
|
|
1276
|
-
|
|
1277
|
-
## Running the code locally
|
|
1278
|
-
|
|
1279
|
-
Compile using babel:
|
|
1280
|
-
|
|
1281
|
-
```bash
|
|
1282
|
-
yarn prepublish
|
|
1283
|
-
```
|
|
1284
|
-
|
|
1285
|
-
## Pull Requests
|
|
1286
|
-
|
|
1287
|
-
- **Add tests!** Your patch won't be accepted if it doesn't have tests.
|
|
1288
|
-
|
|
1289
|
-
- **Document any change in behaviour**. Make sure the README and any other
|
|
1290
|
-
relevant documentation are kept up-to-date.
|
|
1291
|
-
|
|
1292
|
-
- **Create topic branches**. Don't ask us to pull from your master branch.
|
|
172
|
+
## Contributing
|
|
1293
173
|
|
|
1294
|
-
|
|
1295
|
-
|
|
174
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
175
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
176
|
+
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
177
|
+
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
178
|
+
an issue first to discuss with us!
|
|
1296
179
|
|
|
1297
|
-
|
|
1298
|
-
request is meaningful. If you had to make multiple intermediate commits while
|
|
1299
|
-
developing, please squash them before sending them to us.
|
|
180
|
+
On the other hand, contributions to the README are always very welcome!
|