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
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.DataExport = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
46
|
+
/**
|
|
47
|
+
* Everything about your Data Exports
|
|
48
|
+
*/
|
|
49
|
+
class DataExport {
|
|
50
|
+
constructor(_options = {}) {
|
|
51
|
+
this._options = _options;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* To create your export job, you need to send a `POST` request to the export endpoint `https://api.intercom.io/export/content/data`.
|
|
55
|
+
*
|
|
56
|
+
* The only parameters you need to provide are the range of dates that you want exported.
|
|
57
|
+
*
|
|
58
|
+
* > 🚧 Limit of one active job
|
|
59
|
+
* >
|
|
60
|
+
* > You can only have one active job per workspace. You will receive a HTTP status code of 429 with the message Exceeded rate limit of 1 pending message data export jobs if you attempt to create a second concurrent job.
|
|
61
|
+
*
|
|
62
|
+
* > ❗️ Updated_at not included
|
|
63
|
+
* >
|
|
64
|
+
* > It should be noted that the timeframe only includes messages sent during the time period and not messages that were only updated during this period. For example, if a message was updated yesterday but sent two days ago, you would need to set the created_at_after date before the message was sent to include that in your retrieval job.
|
|
65
|
+
*
|
|
66
|
+
* > 📘 Date ranges are inclusive
|
|
67
|
+
* >
|
|
68
|
+
* > Requesting data for 2018-06-01 until 2018-06-30 will get all data for those days including those specified - e.g. 2018-06-01 00:00:00 until 2018-06-30 23:59:99.
|
|
69
|
+
*
|
|
70
|
+
* @param {Intercom.CreateDataExportsRequest} request
|
|
71
|
+
* @param {DataExport.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.dataExport.create({
|
|
75
|
+
* created_at_after: 1719474967,
|
|
76
|
+
* created_at_before: 1719492967
|
|
77
|
+
* })
|
|
78
|
+
*/
|
|
79
|
+
create(request, requestOptions) {
|
|
80
|
+
var _a, _b, _c, _d, _e;
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
83
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, "export/content/data"),
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: {
|
|
86
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
87
|
+
"X-Fern-Language": "JavaScript",
|
|
88
|
+
"X-Fern-SDK-Name": "intercom-client",
|
|
89
|
+
"X-Fern-SDK-Version": "6.0.0-alpha",
|
|
90
|
+
"Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11",
|
|
91
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
92
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
93
|
+
},
|
|
94
|
+
contentType: "application/json",
|
|
95
|
+
requestType: "json",
|
|
96
|
+
body: request,
|
|
97
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
98
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
99
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
100
|
+
});
|
|
101
|
+
if (_response.ok) {
|
|
102
|
+
return _response.body;
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
throw new errors.IntercomError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.body,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
switch (_response.error.reason) {
|
|
111
|
+
case "non-json":
|
|
112
|
+
throw new errors.IntercomError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.rawBody,
|
|
115
|
+
});
|
|
116
|
+
case "timeout":
|
|
117
|
+
throw new errors.IntercomTimeoutError();
|
|
118
|
+
case "unknown":
|
|
119
|
+
throw new errors.IntercomError({
|
|
120
|
+
message: _response.error.errorMessage,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* You can view the status of your job by sending a `GET` request to the URL
|
|
127
|
+
* `https://api.intercom.io/export/content/data/{job_identifier}` - the `{job_identifier}` is the value returned in the response when you first created the export job. More on it can be seen in the Export Job Model.
|
|
128
|
+
*
|
|
129
|
+
* > 🚧 Jobs expire after two days
|
|
130
|
+
* > All jobs that have completed processing (and are thus available to download from the provided URL) will have an expiry limit of two days from when the export ob completed. After this, the data will no longer be available.
|
|
131
|
+
*
|
|
132
|
+
* @param {string} jobIdentifier - job_identifier
|
|
133
|
+
* @param {DataExport.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* await client.dataExport.find("job_identifier")
|
|
137
|
+
*/
|
|
138
|
+
find(jobIdentifier, requestOptions) {
|
|
139
|
+
var _a, _b, _c, _d, _e;
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `export/content/data/${encodeURIComponent(jobIdentifier)}`),
|
|
143
|
+
method: "GET",
|
|
144
|
+
headers: {
|
|
145
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
146
|
+
"X-Fern-Language": "JavaScript",
|
|
147
|
+
"X-Fern-SDK-Name": "intercom-client",
|
|
148
|
+
"X-Fern-SDK-Version": "6.0.0-alpha",
|
|
149
|
+
"Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11",
|
|
150
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
151
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
152
|
+
},
|
|
153
|
+
contentType: "application/json",
|
|
154
|
+
requestType: "json",
|
|
155
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
156
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
157
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
|
+
});
|
|
159
|
+
if (_response.ok) {
|
|
160
|
+
return _response.body;
|
|
161
|
+
}
|
|
162
|
+
if (_response.error.reason === "status-code") {
|
|
163
|
+
throw new errors.IntercomError({
|
|
164
|
+
statusCode: _response.error.statusCode,
|
|
165
|
+
body: _response.error.body,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
switch (_response.error.reason) {
|
|
169
|
+
case "non-json":
|
|
170
|
+
throw new errors.IntercomError({
|
|
171
|
+
statusCode: _response.error.statusCode,
|
|
172
|
+
body: _response.error.rawBody,
|
|
173
|
+
});
|
|
174
|
+
case "timeout":
|
|
175
|
+
throw new errors.IntercomTimeoutError();
|
|
176
|
+
case "unknown":
|
|
177
|
+
throw new errors.IntercomError({
|
|
178
|
+
message: _response.error.errorMessage,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* You can cancel your job
|
|
185
|
+
*
|
|
186
|
+
* @param {string} jobIdentifier - job_identifier
|
|
187
|
+
* @param {DataExport.RequestOptions} requestOptions - Request-specific configuration.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* await client.dataExport.cancel("job_identifier")
|
|
191
|
+
*/
|
|
192
|
+
cancel(jobIdentifier, requestOptions) {
|
|
193
|
+
var _a, _b, _c, _d, _e;
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
196
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `export/cancel/${encodeURIComponent(jobIdentifier)}`),
|
|
197
|
+
method: "POST",
|
|
198
|
+
headers: {
|
|
199
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
200
|
+
"X-Fern-Language": "JavaScript",
|
|
201
|
+
"X-Fern-SDK-Name": "intercom-client",
|
|
202
|
+
"X-Fern-SDK-Version": "6.0.0-alpha",
|
|
203
|
+
"Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11",
|
|
204
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
205
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
206
|
+
},
|
|
207
|
+
contentType: "application/json",
|
|
208
|
+
requestType: "json",
|
|
209
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
210
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
211
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
212
|
+
});
|
|
213
|
+
if (_response.ok) {
|
|
214
|
+
return _response.body;
|
|
215
|
+
}
|
|
216
|
+
if (_response.error.reason === "status-code") {
|
|
217
|
+
throw new errors.IntercomError({
|
|
218
|
+
statusCode: _response.error.statusCode,
|
|
219
|
+
body: _response.error.body,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
switch (_response.error.reason) {
|
|
223
|
+
case "non-json":
|
|
224
|
+
throw new errors.IntercomError({
|
|
225
|
+
statusCode: _response.error.statusCode,
|
|
226
|
+
body: _response.error.rawBody,
|
|
227
|
+
});
|
|
228
|
+
case "timeout":
|
|
229
|
+
throw new errors.IntercomTimeoutError();
|
|
230
|
+
case "unknown":
|
|
231
|
+
throw new errors.IntercomError({
|
|
232
|
+
message: _response.error.errorMessage,
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* When a job has a status of complete, and thus a filled download_url, you can download your data by hitting that provided URL, formatted like so: https://api.intercom.io/download/content/data/xyz1234.
|
|
239
|
+
*
|
|
240
|
+
* Your exported message data will be streamed continuously back down to you in a gzipped CSV format.
|
|
241
|
+
*
|
|
242
|
+
* > 📘 Octet header required
|
|
243
|
+
* >
|
|
244
|
+
* > You will have to specify the header Accept: `application/octet-stream` when hitting this endpoint.
|
|
245
|
+
*
|
|
246
|
+
* @param {string} jobIdentifier - job_identifier
|
|
247
|
+
* @param {DataExport.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* await client.dataExport.download("job_identifier")
|
|
251
|
+
*/
|
|
252
|
+
download(jobIdentifier, requestOptions) {
|
|
253
|
+
var _a, _b, _c, _d, _e;
|
|
254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
256
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.IntercomEnvironment.UsProduction, `download/content/data/${encodeURIComponent(jobIdentifier)}`),
|
|
257
|
+
method: "GET",
|
|
258
|
+
headers: {
|
|
259
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
260
|
+
"X-Fern-Language": "JavaScript",
|
|
261
|
+
"X-Fern-SDK-Name": "intercom-client",
|
|
262
|
+
"X-Fern-SDK-Version": "6.0.0-alpha",
|
|
263
|
+
"Intercom-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : "2.11",
|
|
264
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
265
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
266
|
+
},
|
|
267
|
+
contentType: "application/json",
|
|
268
|
+
requestType: "json",
|
|
269
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
270
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
271
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
272
|
+
});
|
|
273
|
+
if (_response.ok) {
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
if (_response.error.reason === "status-code") {
|
|
277
|
+
throw new errors.IntercomError({
|
|
278
|
+
statusCode: _response.error.statusCode,
|
|
279
|
+
body: _response.error.body,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
switch (_response.error.reason) {
|
|
283
|
+
case "non-json":
|
|
284
|
+
throw new errors.IntercomError({
|
|
285
|
+
statusCode: _response.error.statusCode,
|
|
286
|
+
body: _response.error.rawBody,
|
|
287
|
+
});
|
|
288
|
+
case "timeout":
|
|
289
|
+
throw new errors.IntercomTimeoutError();
|
|
290
|
+
case "unknown":
|
|
291
|
+
throw new errors.IntercomError({
|
|
292
|
+
message: _response.error.errorMessage,
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
_getAuthorizationHeader() {
|
|
298
|
+
var _a;
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
const bearer = (_a = (yield core.Supplier.get(this._options.token))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["INTERCOM_API_KEY"];
|
|
301
|
+
if (bearer == null) {
|
|
302
|
+
throw new errors.IntercomError({
|
|
303
|
+
message: "Please specify INTERCOM_API_KEY when instantiating the client.",
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return `Bearer ${bearer}`;
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
exports.DataExport = DataExport;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* created_at_after: 1719474967,
|
|
8
|
+
* created_at_before: 1719492967
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface CreateDataExportsRequest {
|
|
12
|
+
/** The start date that you request data for. It must be formatted as a unix timestamp. */
|
|
13
|
+
created_at_after: number;
|
|
14
|
+
/** The end date that you request data for. It must be formatted as a unix timestamp. */
|
|
15
|
+
created_at_before: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type CreateDataExportsRequest } from "./CreateDataExportsRequest";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Intercom from "../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* The data export api is used to view all message sent & viewed in a given timeframe.
|
|
7
|
+
*/
|
|
8
|
+
export interface DataExport {
|
|
9
|
+
/** The identifier for your job. */
|
|
10
|
+
job_identfier?: string;
|
|
11
|
+
/** The current state of your job. */
|
|
12
|
+
status?: Intercom.DataExportStatus;
|
|
13
|
+
/** The time after which you will not be able to access the data. */
|
|
14
|
+
download_expires_at?: string;
|
|
15
|
+
/** The location where you can download your data. */
|
|
16
|
+
download_url?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The current state of your job.
|
|
6
|
+
*/
|
|
7
|
+
export declare type DataExportStatus = "pending" | "in_progress" | "failed" | "completed" | "no_data" | "canceled";
|
|
8
|
+
export declare const DataExportStatus: {
|
|
9
|
+
readonly Pending: "pending";
|
|
10
|
+
readonly InProgress: "in_progress";
|
|
11
|
+
readonly Failed: "failed";
|
|
12
|
+
readonly Completed: "completed";
|
|
13
|
+
readonly NoData: "no_data";
|
|
14
|
+
readonly Canceled: "canceled";
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DataExportStatus = void 0;
|
|
7
|
+
exports.DataExportStatus = {
|
|
8
|
+
Pending: "pending",
|
|
9
|
+
InProgress: "in_progress",
|
|
10
|
+
Failed: "failed",
|
|
11
|
+
Completed: "completed",
|
|
12
|
+
NoData: "no_data",
|
|
13
|
+
Canceled: "canceled",
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DataExportStatus"), exports);
|
|
18
|
+
__exportStar(require("./DataExport"), exports);
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Intercom from "../../../index";
|
|
7
|
+
export declare namespace Events {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.IntercomEnvironment | string>;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
/** Override the Intercom-Version header */
|
|
12
|
+
version?: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "2.0" | "2.1" | "2.2" | "2.3" | "2.4" | "2.5" | "2.6" | "2.7" | "2.8" | "2.9" | "2.10" | "2.11" | "Unstable";
|
|
13
|
+
fetcher?: core.FetchFunction;
|
|
14
|
+
}
|
|
15
|
+
interface RequestOptions {
|
|
16
|
+
/** The maximum time to wait for a response in seconds. */
|
|
17
|
+
timeoutInSeconds?: number;
|
|
18
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
19
|
+
maxRetries?: number;
|
|
20
|
+
/** A hook to abort the request. */
|
|
21
|
+
abortSignal?: AbortSignal;
|
|
22
|
+
/** Override the Intercom-Version header */
|
|
23
|
+
version?: "1.0" | "1.1" | "1.2" | "1.3" | "1.4" | "2.0" | "2.1" | "2.2" | "2.3" | "2.4" | "2.5" | "2.6" | "2.7" | "2.8" | "2.9" | "2.10" | "2.11" | "Unstable";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class Events {
|
|
27
|
+
protected readonly _options: Events.Options;
|
|
28
|
+
constructor(_options?: Events.Options);
|
|
29
|
+
/**
|
|
30
|
+
* > 🚧
|
|
31
|
+
* >
|
|
32
|
+
* > Please note that you can only 'list' events that are less than 90 days old. Event counts and summaries will still include your events older than 90 days but you cannot 'list' these events individually if they are older than 90 days
|
|
33
|
+
*
|
|
34
|
+
* The events belonging to a customer can be listed by sending a GET request to `https://api.intercom.io/events` with a user or lead identifier along with a `type` parameter. The identifier parameter can be one of `user_id`, `email` or `intercom_user_id`. The `type` parameter value must be `user`.
|
|
35
|
+
*
|
|
36
|
+
* - `https://api.intercom.io/events?type=user&user_id={user_id}`
|
|
37
|
+
* - `https://api.intercom.io/events?type=user&email={email}`
|
|
38
|
+
* - `https://api.intercom.io/events?type=user&intercom_user_id={id}` (this call can be used to list leads)
|
|
39
|
+
*
|
|
40
|
+
* The `email` parameter value should be [url encoded](http://en.wikipedia.org/wiki/Percent-encoding) when sending.
|
|
41
|
+
*
|
|
42
|
+
* You can optionally define the result page size as well with the `per_page` parameter.
|
|
43
|
+
*
|
|
44
|
+
* @param {Intercom.EventsListRequest} request
|
|
45
|
+
* @param {Events.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Intercom.UnauthorizedError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.events.list({
|
|
51
|
+
* filter: {
|
|
52
|
+
* user_id: "string"
|
|
53
|
+
* },
|
|
54
|
+
* type: "string",
|
|
55
|
+
* summary: true
|
|
56
|
+
* })
|
|
57
|
+
*/
|
|
58
|
+
list(request: Intercom.EventsListRequest, requestOptions?: Events.RequestOptions): Promise<Intercom.DataEventSummary>;
|
|
59
|
+
/**
|
|
60
|
+
* You will need an Access Token that has write permissions to send Events. Once you have a key you can submit events via POST to the Events resource, which is located at https://api.intercom.io/events, or you can send events using one of the client libraries. When working with the HTTP API directly a client should send the event with a `Content-Type` of `application/json`.
|
|
61
|
+
*
|
|
62
|
+
* When using the JavaScript API, [adding the code to your app](http://docs.intercom.io/configuring-Intercom/tracking-user-events-in-your-app) makes the Events API available. Once added, you can submit an event using the `trackEvent` method. This will associate the event with the Lead or currently logged-in user or logged-out visitor/lead and send it to Intercom. The final parameter is a map that can be used to send optional metadata about the event.
|
|
63
|
+
*
|
|
64
|
+
* With the Ruby client you pass a hash describing the event to `Intercom::Event.create`, or call the `track_user` method directly on the current user object (e.g. `user.track_event`).
|
|
65
|
+
*
|
|
66
|
+
* **NB: For the JSON object types, please note that we do not currently support nested JSON structure.**
|
|
67
|
+
*
|
|
68
|
+
* | Type | Description | Example |
|
|
69
|
+
* | :-------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------- |
|
|
70
|
+
* | String | The value is a JSON String | `"source":"desktop"` |
|
|
71
|
+
* | Number | The value is a JSON Number | `"load": 3.67` |
|
|
72
|
+
* | Date | The key ends with the String `_date` and the value is a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time), assumed to be in the [UTC](http://en.wikipedia.org/wiki/Coordinated_Universal_Time) timezone. | `"contact_date": 1392036272` |
|
|
73
|
+
* | Link | The value is a HTTP or HTTPS URI. | `"article": "https://example.org/ab1de.html"` |
|
|
74
|
+
* | Rich Link | The value is a JSON object that contains `url` and `value` keys. | `"article": {"url": "https://example.org/ab1de.html", "value":"the dude abides"}` |
|
|
75
|
+
* | Monetary Amount | The value is a JSON object that contains `amount` and `currency` keys. The `amount` key is a positive integer representing the amount in cents. The price in the example to the right denotes €349.99. | `"price": {"amount": 34999, "currency": "eur"}` |
|
|
76
|
+
*
|
|
77
|
+
* **Lead Events**
|
|
78
|
+
*
|
|
79
|
+
* When submitting events for Leads, you will need to specify the Lead's `id`.
|
|
80
|
+
*
|
|
81
|
+
* **Metadata behaviour**
|
|
82
|
+
*
|
|
83
|
+
* - We currently limit the number of tracked metadata keys to 10 per event. Once the quota is reached, we ignore any further keys we receive. The first 10 metadata keys are determined by the order in which they are sent in with the event.
|
|
84
|
+
* - It is not possible to change the metadata keys once the event has been sent. A new event will need to be created with the new keys and you can archive the old one.
|
|
85
|
+
* - There might be up to 24 hrs delay when you send a new metadata for an existing event.
|
|
86
|
+
*
|
|
87
|
+
* **Event de-duplication**
|
|
88
|
+
*
|
|
89
|
+
* The API may detect and ignore duplicate events. Each event is uniquely identified as a combination of the following data - the Workspace identifier, the Contact external identifier, the Data Event name and the Data Event created time. As a result, it is **strongly recommended** to send a second granularity Unix timestamp in the `created_at` field.
|
|
90
|
+
*
|
|
91
|
+
* Duplicated events are responded to using the normal `202 Accepted` code - an error is not thrown, however repeat requests will be counted against any rate limit that is in place.
|
|
92
|
+
*
|
|
93
|
+
* ### HTTP API Responses
|
|
94
|
+
*
|
|
95
|
+
* - Successful responses to submitted events return `202 Accepted` with an empty body.
|
|
96
|
+
* - Unauthorised access will be rejected with a `401 Unauthorized` or `403 Forbidden` response code.
|
|
97
|
+
* - Events sent about users that cannot be found will return a `404 Not Found`.
|
|
98
|
+
* - Event lists containing duplicate events will have those duplicates ignored.
|
|
99
|
+
* - Server errors will return a `500` response code and may contain an error message in the body.
|
|
100
|
+
*
|
|
101
|
+
* @param {Intercom.CreateDataEventRequest} request
|
|
102
|
+
* @param {Events.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link Intercom.UnauthorizedError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await client.events.create({
|
|
108
|
+
* id: "8a88a590-e1c3-41e2-a502-e0649dbf721c",
|
|
109
|
+
* event_name: "invited-friend",
|
|
110
|
+
* created_at: 1671028894
|
|
111
|
+
* })
|
|
112
|
+
*/
|
|
113
|
+
create(request: Intercom.CreateDataEventRequest, requestOptions?: Events.RequestOptions): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Create event summaries for a user. Event summaries are used to track the number of times an event has occurred, the first time it occurred and the last time it occurred.
|
|
116
|
+
*
|
|
117
|
+
* @param {Intercom.CreateDataEventSummariesRequest} request
|
|
118
|
+
* @param {Events.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link Intercom.UnauthorizedError}
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* await client.events.summaries()
|
|
124
|
+
*/
|
|
125
|
+
summaries(request?: Intercom.CreateDataEventSummariesRequest, requestOptions?: Events.RequestOptions): Promise<void>;
|
|
126
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
127
|
+
}
|