intercom-client 7.0.2 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -22
- package/dist/cjs/BaseClient.d.ts +23 -8
- package/dist/cjs/BaseClient.js +43 -4
- package/dist/cjs/Client.d.ts +13 -2
- package/dist/cjs/Client.js +67 -0
- package/dist/cjs/api/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -0
- package/dist/cjs/api/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +1 -0
- package/dist/cjs/api/errors/TooManyRequestsError.js +5 -1
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +1 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/errors/UnprocessableEntityError.js +5 -1
- package/dist/cjs/api/index.d.ts +1 -0
- package/dist/cjs/api/index.js +1 -0
- package/dist/cjs/api/resources/admins/client/Client.d.ts +12 -2
- package/dist/cjs/api/resources/admins/client/Client.js +28 -13
- package/dist/cjs/api/resources/admins/client/requests/ConfigureAwayAdminRequest.d.ts +0 -7
- package/dist/cjs/api/resources/admins/exports.d.ts +2 -0
- package/dist/cjs/api/resources/admins/exports.js +21 -0
- package/dist/cjs/api/resources/admins/types/Admin.d.ts +5 -5
- package/dist/cjs/api/resources/aiAgent/exports.d.ts +1 -0
- package/dist/cjs/api/resources/aiAgent/exports.js +18 -0
- package/dist/cjs/api/resources/aiAgent/types/AiAgent.d.ts +9 -9
- package/dist/cjs/api/resources/aiContent/client/Client.d.ts +21 -2
- package/dist/cjs/api/resources/aiContent/client/Client.js +41 -20
- package/dist/cjs/api/resources/aiContent/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/aiContent/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/aiContent/exports.d.ts +2 -0
- package/dist/cjs/api/resources/aiContent/exports.js +21 -0
- package/dist/cjs/api/resources/aiContent/types/ContentImportSourcesList.d.ts +4 -4
- package/dist/cjs/api/resources/aiContent/types/ExternalPage.d.ts +2 -2
- package/dist/cjs/api/resources/aiContent/types/ExternalPagesList.d.ts +4 -4
- package/dist/cjs/api/resources/aiContentSource/exports.d.ts +1 -0
- package/dist/cjs/api/resources/aiContentSource/exports.js +18 -0
- package/dist/cjs/api/resources/aiContentSource/types/ContentSource.d.ts +4 -4
- package/dist/cjs/api/resources/articles/client/Client.d.ts +13 -2
- package/dist/cjs/api/resources/articles/client/Client.js +49 -33
- package/dist/cjs/api/resources/articles/client/requests/UpdateArticleRequest.d.ts +0 -7
- package/dist/cjs/api/resources/articles/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/articles/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/articles/exports.d.ts +2 -0
- package/dist/cjs/api/resources/articles/exports.js +21 -0
- package/dist/cjs/api/resources/articles/types/Article.d.ts +1 -1
- package/dist/cjs/api/resources/articles/types/ArticleListItem.d.ts +9 -9
- package/dist/cjs/api/resources/articles/types/ArticleSearchHighlights.d.ts +7 -7
- package/dist/cjs/api/resources/articles/types/ArticleSearchResponse.d.ts +6 -6
- package/dist/cjs/api/resources/awayStatusReasons/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/awayStatusReasons/client/Client.js +3 -1
- package/dist/cjs/api/resources/awayStatusReasons/exports.d.ts +2 -0
- package/dist/cjs/api/resources/awayStatusReasons/exports.js +21 -0
- package/dist/cjs/api/resources/calls/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/calls/client/Client.js +28 -16
- package/dist/cjs/api/resources/calls/exports.d.ts +2 -0
- package/dist/cjs/api/resources/calls/exports.js +21 -0
- package/dist/cjs/api/resources/calls/types/Call.d.ts +19 -19
- package/dist/cjs/api/resources/calls/types/ListCallsWithTranscriptsResponse.d.ts +4 -4
- package/dist/cjs/api/resources/companies/client/Client.d.ts +23 -2
- package/dist/cjs/api/resources/companies/client/Client.js +79 -56
- package/dist/cjs/api/resources/companies/client/requests/ScrollCompaniesRequest.d.ts +0 -1
- package/dist/cjs/api/resources/companies/exports.d.ts +2 -0
- package/dist/cjs/api/resources/companies/exports.js +21 -0
- package/dist/cjs/api/resources/companies/types/Company.d.ts +17 -17
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +38 -2
- package/dist/cjs/api/resources/contacts/client/Client.js +97 -54
- package/dist/cjs/api/resources/contacts/client/requests/AttachSubscriptionToContactRequest.d.ts +0 -7
- package/dist/cjs/api/resources/contacts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/contacts/exports.js +21 -0
- package/dist/cjs/api/resources/contacts/types/Contact.d.ts +45 -45
- package/dist/cjs/api/resources/contacts/types/ContactsCreateResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/types/ContactsFindResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/types/ContactsMergeLeadInUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/types/ContactsUpdateResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/types/ShowContactByExternalIdResponse.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +28 -2
- package/dist/cjs/api/resources/conversations/client/Client.js +82 -49
- package/dist/cjs/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +0 -21
- package/dist/cjs/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.ts +0 -10
- package/dist/cjs/api/resources/conversations/client/requests/ReplyToConversationRequest.d.ts +0 -33
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationRequest.d.ts +0 -12
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/conversations/exports.d.ts +2 -0
- package/dist/cjs/api/resources/conversations/exports.js +21 -0
- package/dist/cjs/api/resources/conversations/types/Conversation.d.ts +27 -27
- package/dist/cjs/api/resources/customChannelEvents/client/Client.d.ts +9 -2
- package/dist/cjs/api/resources/customChannelEvents/client/Client.js +17 -8
- package/dist/cjs/api/resources/customChannelEvents/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customChannelEvents/exports.js +21 -0
- package/dist/cjs/api/resources/customObjectInstances/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/customObjectInstances/client/Client.js +36 -15
- package/dist/cjs/api/resources/customObjectInstances/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customObjectInstances/exports.js +21 -0
- package/dist/cjs/api/resources/customObjectInstances/types/CustomObjectInstance.d.ts +8 -8
- package/dist/cjs/api/resources/dataAttributes/client/Client.d.ts +7 -2
- package/dist/cjs/api/resources/dataAttributes/client/Client.js +21 -13
- package/dist/cjs/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts +0 -12
- package/dist/cjs/api/resources/dataAttributes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/dataAttributes/exports.js +21 -0
- package/dist/cjs/api/resources/dataAttributes/types/DataAttribute.d.ts +12 -12
- package/dist/cjs/api/resources/dataEvents/exports.d.ts +1 -0
- package/dist/cjs/api/resources/dataEvents/exports.js +18 -0
- package/dist/cjs/api/resources/dataEvents/types/DataEvent.d.ts +6 -6
- package/dist/cjs/api/resources/dataExport/client/Client.d.ts +17 -2
- package/dist/cjs/api/resources/dataExport/client/Client.js +44 -17
- package/dist/cjs/api/resources/dataExport/client/requests/ExportReportingDataRequest.d.ts +0 -7
- package/dist/cjs/api/resources/dataExport/exports.d.ts +2 -0
- package/dist/cjs/api/resources/dataExport/exports.js +21 -0
- package/dist/cjs/api/resources/dataExport/types/DataExport.d.ts +4 -4
- package/dist/cjs/api/resources/dataExport/types/DataExportExportReportingDataResponse.d.ts +4 -4
- package/dist/cjs/api/resources/events/client/Client.d.ts +7 -2
- package/dist/cjs/api/resources/events/client/Client.js +24 -22
- package/dist/cjs/api/resources/events/client/requests/ListEventSummariesRequest.d.ts +4 -4
- package/dist/cjs/api/resources/events/exports.d.ts +2 -0
- package/dist/cjs/api/resources/events/exports.js +21 -0
- package/dist/cjs/api/resources/export/client/Client.d.ts +6 -2
- package/dist/cjs/api/resources/export/client/Client.js +9 -3
- package/dist/cjs/api/resources/export/exports.d.ts +2 -0
- package/dist/cjs/api/resources/export/exports.js +21 -0
- package/dist/cjs/api/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.ts +9 -9
- package/dist/cjs/api/resources/export/types/PostExportReportingDataEnqueueResponse.d.ts +4 -4
- package/dist/cjs/api/resources/helpCenter/exports.d.ts +1 -0
- package/dist/cjs/api/resources/helpCenter/exports.js +18 -0
- package/dist/cjs/api/resources/helpCenter/types/Collection.d.ts +8 -8
- package/dist/cjs/api/resources/helpCenter/types/HelpCenter.d.ts +9 -9
- package/dist/cjs/api/resources/helpCenter/types/HelpCenterList.d.ts +2 -2
- package/dist/cjs/api/resources/helpCenters/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/helpCenters/client/Client.js +22 -12
- package/dist/cjs/api/resources/helpCenters/exports.d.ts +3 -0
- package/dist/cjs/api/resources/helpCenters/exports.js +22 -0
- package/dist/cjs/api/resources/helpCenters/resources/collections/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/helpCenters/resources/collections/client/Client.js +36 -19
- package/dist/cjs/api/resources/helpCenters/resources/collections/client/requests/UpdateCollectionRequest.d.ts +0 -6
- package/dist/cjs/api/resources/helpCenters/resources/collections/exports.d.ts +2 -0
- package/dist/cjs/api/resources/helpCenters/resources/collections/exports.js +21 -0
- package/dist/cjs/api/resources/internalArticles/client/Client.d.ts +13 -2
- package/dist/cjs/api/resources/internalArticles/client/Client.js +31 -15
- package/dist/cjs/api/resources/internalArticles/client/requests/UpdateInternalArticleRequestBody.d.ts +0 -7
- package/dist/cjs/api/resources/internalArticles/exports.d.ts +2 -0
- package/dist/cjs/api/resources/internalArticles/exports.js +21 -0
- package/dist/cjs/api/resources/internalArticles/types/InternalArticleListItem.d.ts +9 -9
- package/dist/cjs/api/resources/internalArticles/types/InternalArticleSearchResponse.d.ts +5 -5
- package/dist/cjs/api/resources/ipAllowlist/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/ipAllowlist/client/Client.js +8 -3
- package/dist/cjs/api/resources/ipAllowlist/exports.d.ts +2 -0
- package/dist/cjs/api/resources/ipAllowlist/exports.js +21 -0
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/jobs/client/Client.js +4 -2
- package/dist/cjs/api/resources/jobs/exports.d.ts +2 -0
- package/dist/cjs/api/resources/jobs/exports.js +21 -0
- package/dist/cjs/api/resources/jobs/types/Jobs.d.ts +6 -6
- package/dist/cjs/api/resources/messages/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/messages/client/Client.js +5 -2
- package/dist/cjs/api/resources/messages/exports.d.ts +2 -0
- package/dist/cjs/api/resources/messages/exports.js +21 -0
- package/dist/cjs/api/resources/messages/types/Message.d.ts +2 -2
- package/dist/cjs/api/resources/news/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/news/exports.d.ts +3 -0
- package/dist/cjs/api/resources/news/exports.js +22 -0
- package/dist/cjs/api/resources/news/resources/feeds/client/Client.d.ts +7 -2
- package/dist/cjs/api/resources/news/resources/feeds/client/Client.js +11 -5
- package/dist/cjs/api/resources/news/resources/feeds/exports.d.ts +2 -0
- package/dist/cjs/api/resources/news/resources/feeds/exports.js +21 -0
- package/dist/cjs/api/resources/news/resources/items/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/news/resources/items/client/Client.js +21 -10
- package/dist/cjs/api/resources/news/resources/items/exports.d.ts +2 -0
- package/dist/cjs/api/resources/news/resources/items/exports.js +21 -0
- package/dist/cjs/api/resources/news/types/NewsItem.d.ts +14 -14
- package/dist/cjs/api/resources/news/types/Newsfeed.d.ts +5 -5
- package/dist/cjs/api/resources/news/types/NewsfeedAssignment.d.ts +2 -2
- package/dist/cjs/api/resources/notes/client/Client.d.ts +7 -2
- package/dist/cjs/api/resources/notes/client/Client.js +29 -16
- package/dist/cjs/api/resources/notes/client/requests/CreateContactNoteRequest.d.ts +0 -14
- package/dist/cjs/api/resources/notes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/notes/exports.js +21 -0
- package/dist/cjs/api/resources/notes/types/Note.d.ts +8 -8
- package/dist/cjs/api/resources/phoneCallRedirects/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/phoneCallRedirects/client/Client.js +5 -2
- package/dist/cjs/api/resources/phoneCallRedirects/exports.d.ts +2 -0
- package/dist/cjs/api/resources/phoneCallRedirects/exports.js +21 -0
- package/dist/cjs/api/resources/segments/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/segments/client/Client.js +14 -7
- package/dist/cjs/api/resources/segments/exports.d.ts +2 -0
- package/dist/cjs/api/resources/segments/exports.js +21 -0
- package/dist/cjs/api/resources/segments/types/Segment.d.ts +7 -7
- package/dist/cjs/api/resources/subscriptionTypes/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/subscriptionTypes/client/Client.js +3 -1
- package/dist/cjs/api/resources/subscriptionTypes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/subscriptionTypes/exports.js +21 -0
- package/dist/cjs/api/resources/subscriptionTypes/types/SubscriptionType.d.ts +7 -7
- package/dist/cjs/api/resources/tags/client/Client.d.ts +21 -2
- package/dist/cjs/api/resources/tags/client/Client.js +45 -24
- package/dist/cjs/api/resources/tags/client/requests/TagContactRequest.d.ts +0 -6
- package/dist/cjs/api/resources/tags/client/requests/TagConversationRequest.d.ts +0 -7
- package/dist/cjs/api/resources/tags/client/requests/TagTicketRequest.d.ts +0 -7
- package/dist/cjs/api/resources/tags/client/requests/UntagConversationRequest.d.ts +0 -14
- package/dist/cjs/api/resources/tags/client/requests/UntagTicketRequest.d.ts +0 -14
- package/dist/cjs/api/resources/tags/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tags/exports.js +21 -0
- package/dist/cjs/api/resources/tags/types/Tag.d.ts +2 -2
- package/dist/cjs/api/resources/tags/types/TagBasic.d.ts +3 -3
- package/dist/cjs/api/resources/teams/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/teams/client/Client.js +7 -3
- package/dist/cjs/api/resources/teams/exports.d.ts +2 -0
- package/dist/cjs/api/resources/teams/exports.js +21 -0
- package/dist/cjs/api/resources/teams/types/Team.d.ts +7 -7
- package/dist/cjs/api/resources/ticketStates/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/ticketStates/client/Client.js +3 -1
- package/dist/cjs/api/resources/ticketStates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/ticketStates/exports.js +21 -0
- package/dist/cjs/api/resources/ticketTypes/client/Client.d.ts +9 -2
- package/dist/cjs/api/resources/ticketTypes/client/Client.js +17 -8
- package/dist/cjs/api/resources/ticketTypes/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/ticketTypes/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/ticketTypes/exports.d.ts +3 -0
- package/dist/cjs/api/resources/ticketTypes/exports.js +22 -0
- package/dist/cjs/api/resources/ticketTypes/resources/attributes/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/ticketTypes/resources/attributes/client/Client.js +11 -6
- package/dist/cjs/api/resources/ticketTypes/resources/attributes/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/ticketTypes/resources/attributes/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/ticketTypes/resources/attributes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/ticketTypes/resources/attributes/exports.js +21 -0
- package/dist/cjs/api/resources/tickets/client/Client.d.ts +16 -2
- package/dist/cjs/api/resources/tickets/client/Client.js +32 -16
- package/dist/cjs/api/resources/tickets/client/requests/ReplyToTicketRequest.d.ts +0 -22
- package/dist/cjs/api/resources/tickets/client/requests/UpdateTicketRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tickets/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tickets/exports.js +21 -0
- package/dist/cjs/api/resources/tickets/types/DeleteTicketResponse.d.ts +3 -3
- package/dist/cjs/api/resources/tickets/types/Ticket.d.ts +17 -17
- package/dist/cjs/api/resources/tickets/types/TicketContacts.d.ts +2 -2
- package/dist/cjs/api/resources/tickets/types/TicketPart.d.ts +15 -15
- package/dist/cjs/api/resources/tickets/types/TicketState.d.ts +5 -5
- package/dist/cjs/api/resources/tickets/types/TicketStateDetailed.d.ts +9 -9
- package/dist/cjs/api/resources/tickets/types/TicketType.d.ts +14 -14
- package/dist/cjs/api/resources/unstable/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/unstable/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/resources/unstable/errors/ConflictError.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/errors/ConflictError.js +5 -1
- package/dist/cjs/api/resources/unstable/errors/ForbiddenError.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/resources/unstable/errors/InternalServerError.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/resources/unstable/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/resources/unstable/errors/TooManyRequestsError.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/errors/TooManyRequestsError.js +5 -1
- package/dist/cjs/api/resources/unstable/errors/UnauthorizedError.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/unstable/errors/UnprocessableEntityError.js +5 -1
- package/dist/cjs/api/resources/unstable/exports.d.ts +3 -0
- package/dist/cjs/api/resources/unstable/exports.js +22 -0
- package/dist/cjs/api/resources/unstable/resources/admins/client/Client.d.ts +12 -2
- package/dist/cjs/api/resources/unstable/resources/admins/client/Client.js +28 -13
- package/dist/cjs/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.d.ts +0 -7
- package/dist/cjs/api/resources/unstable/resources/admins/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/admins/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/admins/types/Admin.d.ts +12 -12
- package/dist/cjs/api/resources/unstable/resources/aiAgent/exports.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/resources/aiAgent/exports.js +18 -0
- package/dist/cjs/api/resources/unstable/resources/aiAgent/types/AiAgent.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/resources/aiContent/client/Client.d.ts +21 -2
- package/dist/cjs/api/resources/unstable/resources/aiContent/client/Client.js +41 -20
- package/dist/cjs/api/resources/unstable/resources/aiContent/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/aiContent/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/unstable/resources/aiContent/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/aiContent/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/resources/aiContent/types/ExternalPage.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/aiContent/types/ExternalPagesList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/resources/aiContentSource/exports.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/resources/aiContentSource/exports.js +18 -0
- package/dist/cjs/api/resources/unstable/resources/aiContentSource/types/ContentSource.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/resources/articles/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/unstable/resources/articles/client/Client.js +29 -21
- package/dist/cjs/api/resources/unstable/resources/articles/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/articles/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/articles/types/Article.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/articles/types/ArticleListItem.d.ts +16 -16
- package/dist/cjs/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.d.ts +7 -7
- package/dist/cjs/api/resources/unstable/resources/articles/types/ArticleSearchResponse.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/resources/awayStatusReasons/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/unstable/resources/awayStatusReasons/client/Client.js +3 -1
- package/dist/cjs/api/resources/unstable/resources/awayStatusReasons/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/awayStatusReasons/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/brands/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/unstable/resources/brands/client/Client.js +7 -3
- package/dist/cjs/api/resources/unstable/resources/brands/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/brands/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/brands/types/Brand.d.ts +8 -8
- package/dist/cjs/api/resources/unstable/resources/brands/types/BrandList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/calls/client/Client.d.ts +19 -2
- package/dist/cjs/api/resources/unstable/resources/calls/client/Client.js +44 -24
- package/dist/cjs/api/resources/unstable/resources/calls/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/calls/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/calls/types/Call.d.ts +19 -19
- package/dist/cjs/api/resources/unstable/resources/calls/types/ListCallsWithTranscriptsResponse.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/resources/companies/client/Client.d.ts +23 -2
- package/dist/cjs/api/resources/unstable/resources/companies/client/Client.js +71 -53
- package/dist/cjs/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.d.ts +0 -1
- package/dist/cjs/api/resources/unstable/resources/companies/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/companies/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/companies/types/Company.d.ts +29 -29
- package/dist/cjs/api/resources/unstable/resources/contacts/client/Client.d.ts +36 -4
- package/dist/cjs/api/resources/unstable/resources/contacts/client/Client.js +65 -31
- package/dist/cjs/api/resources/unstable/resources/contacts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/contacts/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/contacts/types/Contact.d.ts +48 -48
- package/dist/cjs/api/resources/unstable/resources/contacts/types/CreateContactResponse.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/contacts/types/MergeContactResponse.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/contacts/types/ShowContactResponse.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/contacts/types/UpdateContactResponse.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/conversations/client/Client.d.ts +30 -4
- package/dist/cjs/api/resources/unstable/resources/conversations/client/Client.js +83 -50
- package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.d.ts +0 -21
- package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.d.ts +0 -10
- package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/{ReplyConversationRequest.d.ts → ReplyConversationBody.d.ts} +1 -1
- package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.d.ts +0 -12
- package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/unstable/resources/conversations/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/conversations/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/conversations/types/Conversation.d.ts +28 -28
- package/dist/cjs/api/resources/unstable/resources/customChannelEvents/client/Client.d.ts +9 -2
- package/dist/cjs/api/resources/unstable/resources/customChannelEvents/client/Client.js +17 -8
- package/dist/cjs/api/resources/unstable/resources/customChannelEvents/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/customChannelEvents/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/customObjectInstances/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/unstable/resources/customObjectInstances/client/Client.js +36 -15
- package/dist/cjs/api/resources/unstable/resources/customObjectInstances/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/customObjectInstances/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.d.ts +8 -8
- package/dist/cjs/api/resources/unstable/resources/dataAttributes/client/Client.d.ts +9 -4
- package/dist/cjs/api/resources/unstable/resources/dataAttributes/client/Client.js +22 -14
- package/dist/{esm/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.mts → cjs/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeBody.d.ts} +1 -1
- package/dist/cjs/api/resources/unstable/resources/dataAttributes/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/dataAttributes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/dataAttributes/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/dataAttributes/types/DataAttribute.d.ts +17 -17
- package/dist/cjs/api/resources/unstable/resources/dataEvents/client/Client.d.ts +9 -4
- package/dist/cjs/api/resources/unstable/resources/dataEvents/client/Client.js +26 -12
- package/dist/cjs/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/resources/dataEvents/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/dataEvents/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/dataEvents/types/DataEvent.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/resources/dataExport/client/Client.d.ts +13 -2
- package/dist/cjs/api/resources/unstable/resources/dataExport/client/Client.js +21 -8
- package/dist/cjs/api/resources/unstable/resources/dataExport/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/dataExport/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/dataExport/types/DataExport.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/resources/emails/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/unstable/resources/emails/client/Client.js +7 -3
- package/dist/cjs/api/resources/unstable/resources/emails/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/emails/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/emails/types/EmailList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/emails/types/EmailSetting.d.ts +10 -10
- package/dist/cjs/api/resources/unstable/resources/export/client/Client.d.ts +6 -2
- package/dist/cjs/api/resources/unstable/resources/export/client/Client.js +9 -3
- package/dist/cjs/api/resources/unstable/resources/export/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/export/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/resources/helpCenter/client/Client.d.ts +15 -2
- package/dist/cjs/api/resources/unstable/resources/helpCenter/client/Client.js +28 -13
- package/dist/cjs/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.d.ts +0 -6
- package/dist/cjs/api/resources/unstable/resources/helpCenter/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/helpCenter/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/helpCenter/types/Collection.d.ts +13 -13
- package/dist/cjs/api/resources/unstable/resources/helpCenter/types/HelpCenter.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/resources/helpCenter/types/HelpCenterList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/internalArticles/client/Client.d.ts +13 -2
- package/dist/cjs/api/resources/unstable/resources/internalArticles/client/Client.js +31 -15
- package/dist/cjs/api/resources/unstable/resources/internalArticles/client/requests/UpdateInternalArticleRequestBody.d.ts +0 -7
- package/dist/cjs/api/resources/unstable/resources/internalArticles/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/internalArticles/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/internalArticles/types/InternalArticleListItem.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/resources/internalArticles/types/InternalArticleSearchResponse.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/resources/jobs/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/unstable/resources/jobs/client/Client.js +4 -2
- package/dist/cjs/api/resources/unstable/resources/jobs/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/jobs/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/jobs/types/Jobs.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/resources/macros/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/unstable/resources/macros/client/Client.js +16 -13
- package/dist/cjs/api/resources/unstable/resources/macros/client/requests/GetMacroRequest.d.ts +0 -15
- package/dist/cjs/api/resources/unstable/resources/macros/client/requests/ListMacrosRequest.d.ts +0 -35
- package/dist/cjs/api/resources/unstable/resources/macros/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/macros/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/macros/types/Macro.d.ts +10 -10
- package/dist/cjs/api/resources/unstable/resources/macros/types/MacroList.d.ts +7 -7
- package/dist/cjs/api/resources/unstable/resources/messages/client/Client.d.ts +7 -4
- package/dist/cjs/api/resources/unstable/resources/messages/client/Client.js +18 -12
- package/dist/cjs/api/resources/unstable/resources/messages/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/messages/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/messages/types/Message.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/news/client/Client.d.ts +17 -2
- package/dist/cjs/api/resources/unstable/resources/news/client/Client.js +32 -15
- package/dist/cjs/api/resources/unstable/resources/news/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/news/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/news/types/NewsItem.d.ts +14 -14
- package/dist/cjs/api/resources/unstable/resources/news/types/Newsfeed.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/resources/news/types/NewsfeedAssignment.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/notes/client/Client.d.ts +9 -2
- package/dist/cjs/api/resources/unstable/resources/notes/client/Client.js +18 -9
- package/dist/cjs/api/resources/unstable/resources/notes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/notes/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/notes/types/CompanyNote.d.ts +8 -8
- package/dist/cjs/api/resources/unstable/resources/notes/types/Note.d.ts +8 -8
- package/dist/cjs/api/resources/unstable/resources/segments/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/unstable/resources/segments/client/Client.js +14 -7
- package/dist/cjs/api/resources/unstable/resources/segments/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/segments/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/segments/types/Segment.d.ts +7 -7
- package/dist/cjs/api/resources/unstable/resources/subscriptionTypes/client/Client.d.ts +7 -2
- package/dist/cjs/api/resources/unstable/resources/subscriptionTypes/client/Client.js +13 -6
- package/dist/cjs/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.d.ts +0 -7
- package/dist/cjs/api/resources/unstable/resources/subscriptionTypes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/subscriptionTypes/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.d.ts +7 -7
- package/dist/cjs/api/resources/unstable/resources/switch/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/unstable/resources/switch/client/Client.js +5 -2
- package/dist/cjs/api/resources/unstable/resources/switch/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/switch/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/tags/client/Client.d.ts +21 -2
- package/dist/cjs/api/resources/unstable/resources/tags/client/Client.js +45 -24
- package/dist/cjs/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.d.ts +0 -6
- package/dist/cjs/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.d.ts +0 -7
- package/dist/cjs/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.d.ts +0 -7
- package/dist/cjs/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.d.ts +0 -14
- package/dist/cjs/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.d.ts +0 -14
- package/dist/cjs/api/resources/unstable/resources/tags/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/tags/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/tags/types/Tag.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/resources/tags/types/TagBasic.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/resources/teams/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/unstable/resources/teams/client/Client.js +7 -3
- package/dist/cjs/api/resources/unstable/resources/teams/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/teams/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/teams/types/Team.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/resources/ticketStates/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/unstable/resources/ticketStates/client/Client.js +3 -1
- package/dist/cjs/api/resources/unstable/resources/ticketStates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/ticketStates/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/ticketTypeAttributes/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/unstable/resources/ticketTypeAttributes/client/Client.js +11 -6
- package/dist/cjs/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/unstable/resources/ticketTypeAttributes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/ticketTypeAttributes/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/ticketTypes/client/Client.d.ts +7 -2
- package/dist/cjs/api/resources/unstable/resources/ticketTypes/client/Client.js +12 -5
- package/dist/cjs/api/resources/unstable/resources/ticketTypes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/ticketTypes/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/tickets/client/Client.d.ts +14 -2
- package/dist/cjs/api/resources/unstable/resources/tickets/client/Client.js +28 -14
- package/dist/cjs/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.d.ts +0 -12
- package/dist/cjs/api/resources/unstable/resources/tickets/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/tickets/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/resources/tickets/types/Ticket.d.ts +17 -17
- package/dist/cjs/api/resources/unstable/resources/tickets/types/TicketContacts.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/resources/tickets/types/TicketPart.d.ts +15 -15
- package/dist/cjs/api/resources/unstable/resources/tickets/types/TicketState.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/resources/tickets/types/TicketStateDetailed.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/resources/tickets/types/TicketType.d.ts +14 -14
- package/dist/cjs/api/resources/unstable/resources/visitors/client/Client.d.ts +9 -4
- package/dist/cjs/api/resources/unstable/resources/visitors/client/Client.js +20 -8
- package/dist/cjs/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.d.ts +14 -2
- package/dist/cjs/api/resources/unstable/resources/visitors/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/visitors/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/resources/workflows/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/unstable/resources/workflows/client/Client.js +4 -2
- package/dist/cjs/api/resources/unstable/resources/workflows/exports.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/resources/workflows/exports.js +21 -0
- package/dist/cjs/api/resources/unstable/types/ActivityLog.d.ts +10 -10
- package/dist/cjs/api/resources/unstable/types/ActivityLogList.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ActivityLogMetadata.d.ts +11 -11
- package/dist/cjs/api/resources/unstable/types/AddressableList.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/AdminList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/AdminPriorityLevel.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/AdminReplyConversationRequest.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/AdminReplyTicketRequest.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/AdminWithApp.d.ts +14 -14
- package/dist/cjs/api/resources/unstable/types/AiCallResponse.d.ts +10 -10
- package/dist/cjs/api/resources/unstable/types/App.d.ts +7 -8
- package/dist/cjs/api/resources/unstable/types/ArticleContent.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/types/ArticleList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ArticleStatistics.d.ts +7 -7
- package/dist/cjs/api/resources/unstable/types/ArticleTranslatedContent.d.ts +38 -38
- package/dist/cjs/api/resources/unstable/types/AssignConversationRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/AwayStatusReason.d.ts +8 -8
- package/dist/cjs/api/resources/unstable/types/CallList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/CloseConversationRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/CollectionList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/CompanyAttachedContacts.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/CompanyAttachedSegments.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/CompanyData.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/CompanyList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/CompanyScroll.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/ContactArchived.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContactAttachedCompanies.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ContactBlocked.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContactCompanies.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ContactDeleted.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContactList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ContactLocation.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ContactNotes.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ContactReference.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ContactReplyBaseRequest.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ContactReplyEmailRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContactReplyUserIdRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContactSegments.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/ContactSocialProfiles.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContactSubscriptionTypes.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ContactTags.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ContactUnarchived.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ContentSourcesList.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ConversationAttachmentFiles.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByUser.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/ConversationContacts.d.ts +2 -3
- package/dist/cjs/api/resources/unstable/types/ConversationDeleted.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ConversationFirstContactReply.d.ts +3 -6
- package/dist/cjs/api/resources/unstable/types/ConversationList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/ConversationPart.d.ts +18 -18
- package/dist/cjs/api/resources/unstable/types/ConversationPartAuthor.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/ConversationPartMetadata.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ConversationParts.d.ts +3 -5
- package/dist/cjs/api/resources/unstable/types/ConversationRating.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/ConversationResponseTime.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByRule.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/ConversationSlaPaused.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/ConversationSlaRemoved.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ConversationSlaTargetMissed.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/ConversationSlaUnpaused.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/ConversationSource.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/types/ConversationStatistics.d.ts +23 -24
- package/dist/cjs/api/resources/unstable/types/ConversationTagsUpdated.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/ConversationTeammates.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/CreateArticleRequest.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/CreateContactRequest.d.ts +4 -0
- package/dist/cjs/api/resources/unstable/types/CreateDataAttributeRequest.d.ts +0 -3
- package/dist/cjs/api/resources/unstable/types/CreateDataEventRequest.d.ts +1 -0
- package/dist/cjs/api/resources/unstable/types/CreateInternalArticleRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/CreateMessageRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/CreateOrUpdateCompanyRequest.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/types/CreateOrUpdateTagRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/CreatePhoneSwitchRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/CreateTicketRequestBody.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/CreateTicketTypeRequest.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/CursorPages.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/CustomActionFinished.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/CustomActionStarted.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/CustomChannelContact.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/CustomObjectInstanceDeleted.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/CustomObjectInstanceList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/DataAttributeList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/DataEventList.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/DataEventSummary.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/DataEventSummaryItem.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/DataExportCsv.d.ts +26 -26
- package/dist/cjs/api/resources/unstable/types/DeletedArticleObject.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/DeletedCollectionObject.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/DeletedCompanyObject.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/DeletedInternalArticleObject.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/DeletedObject.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/EmailAddressHeader.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/EmailMessageMetadata.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/Error_.d.ts +3 -4
- package/dist/cjs/api/resources/unstable/types/FileAttribute.d.ts +7 -7
- package/dist/cjs/api/resources/unstable/types/GroupContent.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/GroupTranslatedContent.d.ts +38 -38
- package/dist/cjs/api/resources/unstable/types/HandlingEvent.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/HandlingEventList.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/InternalArticleList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/LinkedObject.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/LinkedObjectList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/Metadata.d.ts +2 -0
- package/dist/cjs/api/resources/unstable/types/MultipleFilterSearchRequest.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/NewsItemRequest.d.ts +6 -6
- package/dist/cjs/api/resources/unstable/types/NotFoundErrorBody.d.ts +2 -3
- package/dist/cjs/api/resources/unstable/types/NoteList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/OperatorWorkflowEvent.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/PagesLink.d.ts +5 -5
- package/dist/cjs/api/resources/unstable/types/PaginatedResponse.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/PartAttachment.d.ts +7 -7
- package/dist/cjs/api/resources/unstable/types/PhoneSwitch.d.ts +2 -3
- package/dist/cjs/api/resources/unstable/types/PriorityChanged.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/Reference.d.ts +2 -4
- package/dist/cjs/api/resources/unstable/types/RegisterFinVoiceCallRequest.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/SearchRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/SegmentList.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/SingleFilterSearchRequest.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/SlaApplied.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/Snoozed.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/SocialProfile.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/StartingAfterPaging.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/SubscriptionTypeList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TagCompanyRequest.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TagList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TagMultipleUsersRequest.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/Tags.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TeamList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TeamPriorityLevel.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TeammateReference.d.ts +1 -1
- package/dist/cjs/api/resources/unstable/types/TicketList.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/TicketPartAuthor.d.ts +4 -4
- package/dist/cjs/api/resources/unstable/types/TicketParts.d.ts +3 -5
- package/dist/cjs/api/resources/unstable/types/TicketReply.d.ts +9 -9
- package/dist/cjs/api/resources/unstable/types/TicketStateList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TicketTypeAttribute.d.ts +17 -17
- package/dist/cjs/api/resources/unstable/types/TicketTypeAttributeList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/TicketTypeList.d.ts +2 -2
- package/dist/cjs/api/resources/unstable/types/Translation.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/UntagCompanyRequest.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/UpdateDataAttributeRequestBody.d.ts +0 -3
- package/dist/cjs/api/resources/unstable/types/UpdateVisitorRequest.d.ts +4 -0
- package/dist/cjs/api/resources/unstable/types/UpdateVisitorRequest.js +3 -0
- package/dist/cjs/api/resources/unstable/types/Visitor.d.ts +54 -56
- package/dist/cjs/api/resources/unstable/types/VisitorDeletedObject.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/WhatsappMessageStatusList.d.ts +3 -3
- package/dist/cjs/api/resources/unstable/types/WorkflowExport.d.ts +17 -17
- package/dist/cjs/api/resources/unstable/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/unstable/types/index.js +4 -0
- package/dist/cjs/api/resources/visitors/client/Client.d.ts +7 -2
- package/dist/cjs/api/resources/visitors/client/Client.js +19 -7
- package/dist/cjs/api/resources/visitors/exports.d.ts +2 -0
- package/dist/cjs/api/resources/visitors/exports.js +21 -0
- package/dist/cjs/api/types/ActivityLog.d.ts +10 -10
- package/dist/cjs/api/types/ActivityLogList.d.ts +3 -3
- package/dist/cjs/api/types/ActivityLogMetadata.d.ts +20 -20
- package/dist/cjs/api/types/AddressableList.d.ts +3 -3
- package/dist/cjs/api/types/AdminList.d.ts +2 -2
- package/dist/cjs/api/types/AdminPriorityLevel.d.ts +2 -2
- package/dist/cjs/api/types/AdminReplyConversationRequest.d.ts +5 -5
- package/dist/cjs/api/types/AdminReplyTicketRequest.d.ts +4 -4
- package/dist/cjs/api/types/AdminWithApp.d.ts +14 -14
- package/dist/cjs/api/types/App.d.ts +7 -8
- package/dist/cjs/api/types/ArticleContent.d.ts +9 -9
- package/dist/cjs/api/types/ArticleList.d.ts +4 -4
- package/dist/cjs/api/types/ArticleStatistics.d.ts +1 -1
- package/dist/cjs/api/types/ArticleTranslatedContent.d.ts +38 -38
- package/dist/cjs/api/types/AssignConversationRequest.d.ts +1 -1
- package/dist/cjs/api/types/AwayStatusReason.d.ts +8 -8
- package/dist/cjs/api/types/CallList.d.ts +4 -4
- package/dist/cjs/api/types/CloseConversationRequest.d.ts +1 -1
- package/dist/cjs/api/types/CollectionList.d.ts +4 -4
- package/dist/cjs/api/types/CompanyAttachedContacts.d.ts +4 -4
- package/dist/cjs/api/types/CompanyAttachedSegments.d.ts +2 -2
- package/dist/cjs/api/types/CompanyData.d.ts +3 -3
- package/dist/cjs/api/types/CompanyList.d.ts +4 -4
- package/dist/cjs/api/types/CompanyScroll.d.ts +5 -5
- package/dist/cjs/api/types/ContactArchived.d.ts +1 -1
- package/dist/cjs/api/types/ContactAttachedCompanies.d.ts +4 -4
- package/dist/cjs/api/types/ContactBlocked.d.ts +1 -1
- package/dist/cjs/api/types/ContactCompanies.d.ts +4 -4
- package/dist/cjs/api/types/ContactDeleted.d.ts +1 -1
- package/dist/cjs/api/types/ContactList.d.ts +4 -4
- package/dist/cjs/api/types/ContactLocation.d.ts +4 -4
- package/dist/cjs/api/types/ContactNotes.d.ts +4 -4
- package/dist/cjs/api/types/ContactReference.d.ts +3 -3
- package/dist/cjs/api/types/ContactReplyBaseRequest.d.ts +3 -3
- package/dist/cjs/api/types/ContactReplyEmailRequest.d.ts +1 -1
- package/dist/cjs/api/types/ContactReplyIntercomUserIdRequest.d.ts +1 -1
- package/dist/cjs/api/types/ContactReplyUserIdRequest.d.ts +1 -1
- package/dist/cjs/api/types/ContactSegments.d.ts +2 -2
- package/dist/cjs/api/types/ContactSocialProfiles.d.ts +1 -1
- package/dist/cjs/api/types/ContactSubscriptionTypes.d.ts +4 -4
- package/dist/cjs/api/types/ContactTags.d.ts +4 -4
- package/dist/cjs/api/types/ContactUnarchived.d.ts +1 -1
- package/dist/cjs/api/types/ContentSourcesList.d.ts +3 -3
- package/dist/cjs/api/types/ConversationAttachmentFiles.d.ts +3 -3
- package/dist/cjs/api/types/ConversationAttributeUpdatedByAdmin.d.ts +4 -4
- package/dist/cjs/api/types/ConversationAttributeUpdatedByWorkflow.d.ts +6 -6
- package/dist/cjs/api/types/ConversationContacts.d.ts +2 -3
- package/dist/cjs/api/types/ConversationDeleted.d.ts +3 -3
- package/dist/cjs/api/types/ConversationFirstContactReply.d.ts +3 -6
- package/dist/cjs/api/types/ConversationList.d.ts +4 -4
- package/dist/cjs/api/types/ConversationPart.d.ts +18 -18
- package/dist/cjs/api/types/ConversationPartAuthor.d.ts +6 -6
- package/dist/cjs/api/types/ConversationPartMetadata.d.ts +3 -3
- package/dist/cjs/api/types/ConversationParts.d.ts +3 -5
- package/dist/cjs/api/types/ConversationRating.d.ts +6 -6
- package/dist/cjs/api/types/ConversationResponseTime.d.ts +3 -3
- package/dist/cjs/api/types/ConversationSource.d.ts +9 -9
- package/dist/cjs/api/types/ConversationStatistics.d.ts +23 -24
- package/dist/cjs/api/types/CreateArticleRequest.d.ts +6 -6
- package/dist/cjs/api/types/CreateDataAttributeRequest.d.ts +0 -3
- package/dist/cjs/api/types/CreateDataEventRequest.d.ts +0 -3
- package/dist/cjs/api/types/CreateInternalArticleRequest.d.ts +1 -1
- package/dist/cjs/api/types/CreateMessageRequest.d.ts +6 -6
- package/dist/cjs/api/types/CreateOrUpdateCompanyRequest.d.ts +9 -9
- package/dist/cjs/api/types/CreateOrUpdateTagRequest.d.ts +1 -1
- package/dist/cjs/api/types/CreatePhoneSwitchRequest.d.ts +1 -1
- package/dist/cjs/api/types/CreateTicketRequestBody.d.ts +6 -6
- package/dist/cjs/api/types/CreateTicketTypeRequest.d.ts +4 -4
- package/dist/cjs/api/types/CursorPages.d.ts +5 -5
- package/dist/cjs/api/types/CustomActionFinished.d.ts +3 -3
- package/dist/cjs/api/types/CustomActionStarted.d.ts +2 -2
- package/dist/cjs/api/types/CustomChannelContact.d.ts +2 -2
- package/dist/cjs/api/types/CustomObjectInstanceDeleted.d.ts +3 -3
- package/dist/cjs/api/types/CustomObjectInstanceList.d.ts +2 -2
- package/dist/cjs/api/types/DataAttributeList.d.ts +2 -2
- package/dist/cjs/api/types/DataEventList.d.ts +5 -5
- package/dist/cjs/api/types/DataEventSummary.d.ts +4 -4
- package/dist/cjs/api/types/DataEventSummaryItem.d.ts +5 -5
- package/dist/cjs/api/types/DataExportCsv.d.ts +26 -26
- package/dist/cjs/api/types/DeletedArticleObject.d.ts +3 -3
- package/dist/cjs/api/types/DeletedCollectionObject.d.ts +3 -3
- package/dist/cjs/api/types/DeletedCompanyObject.d.ts +3 -3
- package/dist/cjs/api/types/DeletedInternalArticleObject.d.ts +3 -3
- package/dist/cjs/api/types/DeletedObject.d.ts +3 -3
- package/dist/cjs/api/types/EmailAddressHeader.d.ts +3 -3
- package/dist/cjs/api/types/EmailMessageMetadata.d.ts +2 -2
- package/dist/cjs/api/types/Error_.d.ts +3 -4
- package/dist/cjs/api/types/FileAttribute.d.ts +7 -7
- package/dist/cjs/api/types/GroupContent.d.ts +3 -3
- package/dist/cjs/api/types/GroupTranslatedContent.d.ts +38 -38
- package/dist/cjs/api/types/InternalArticleList.d.ts +4 -4
- package/dist/cjs/api/types/IpAllowlist.d.ts +3 -3
- package/dist/cjs/api/types/LinkedObject.d.ts +3 -3
- package/dist/cjs/api/types/LinkedObjectList.d.ts +4 -4
- package/dist/cjs/api/types/Metadata.d.ts +1 -1
- package/dist/cjs/api/types/MultipleFilterSearchRequest.d.ts +2 -2
- package/dist/cjs/api/types/NewsItemRequest.d.ts +6 -6
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +2 -3
- package/dist/cjs/api/types/NoteList.d.ts +3 -3
- package/dist/cjs/api/types/OffsetPages.d.ts +4 -4
- package/dist/cjs/api/types/OperatorWorkflowEvent.d.ts +5 -5
- package/dist/cjs/api/types/PagesLink.d.ts +5 -5
- package/dist/cjs/api/types/PaginatedResponse.d.ts +4 -4
- package/dist/cjs/api/types/PartAttachment.d.ts +7 -7
- package/dist/cjs/api/types/PhoneSwitch.d.ts +2 -3
- package/dist/cjs/api/types/Reference.d.ts +2 -4
- package/dist/cjs/api/types/SearchRequest.d.ts +1 -1
- package/dist/cjs/api/types/SegmentList.d.ts +3 -3
- package/dist/cjs/api/types/SingleFilterSearchRequest.d.ts +3 -3
- package/dist/cjs/api/types/SlaApplied.d.ts +3 -3
- package/dist/cjs/api/types/SocialProfile.d.ts +3 -3
- package/dist/cjs/api/types/StartingAfterPaging.d.ts +2 -2
- package/dist/cjs/api/types/SubscriptionTypeList.d.ts +2 -2
- package/dist/cjs/api/types/TagCompanyRequest.d.ts +2 -2
- package/dist/cjs/api/types/TagList.d.ts +2 -2
- package/dist/cjs/api/types/TagMultipleUsersRequest.d.ts +1 -1
- package/dist/cjs/api/types/Tags.d.ts +2 -2
- package/dist/cjs/api/types/TeamList.d.ts +2 -2
- package/dist/cjs/api/types/TeamPriorityLevel.d.ts +2 -2
- package/dist/cjs/api/types/TicketList.d.ts +4 -4
- package/dist/cjs/api/types/TicketPartAuthor.d.ts +4 -4
- package/dist/cjs/api/types/TicketParts.d.ts +3 -5
- package/dist/cjs/api/types/TicketReply.d.ts +9 -9
- package/dist/cjs/api/types/TicketStateList.d.ts +2 -2
- package/dist/cjs/api/types/TicketTypeAttribute.d.ts +17 -17
- package/dist/cjs/api/types/TicketTypeAttributeList.d.ts +2 -2
- package/dist/cjs/api/types/TicketTypeList.d.ts +2 -2
- package/dist/cjs/api/types/Translation.d.ts +3 -3
- package/dist/cjs/api/types/UntagCompanyRequest.d.ts +3 -3
- package/dist/cjs/api/types/UpdateArticleRequestBody.d.ts +1 -1
- package/dist/cjs/api/types/UpdateCompanyRequestBody.d.ts +7 -7
- package/dist/cjs/api/types/UpdateDataAttributeRequestBody.d.ts +0 -3
- package/dist/cjs/api/types/Visitor.d.ts +54 -56
- package/dist/cjs/api/types/VisitorDeletedObject.d.ts +3 -3
- package/dist/cjs/api/types/WhatsappMessageStatusList.d.ts +3 -3
- package/dist/cjs/api/types/compat.d.ts +6 -0
- package/dist/cjs/api/types/compat.js +2 -0
- package/dist/cjs/api/types/index.d.ts +0 -3
- package/dist/cjs/api/types/index.js +0 -3
- package/dist/cjs/auth/BearerAuthProvider.d.ts +14 -8
- package/dist/cjs/auth/BearerAuthProvider.js +16 -6
- package/dist/cjs/core/auth/AuthProvider.d.ts +1 -0
- package/dist/cjs/core/auth/AuthProvider.js +7 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +2 -2
- package/dist/cjs/core/auth/BasicAuth.js +7 -1
- package/dist/cjs/core/auth/index.d.ts +1 -1
- package/dist/cjs/core/auth/index.js +3 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +9 -2
- package/dist/cjs/core/fetcher/Fetcher.js +61 -103
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +20 -7
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +16 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +38 -22
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +176 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +11 -1
- package/dist/cjs/core/fetcher/makeRequest.js +65 -11
- package/dist/cjs/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/cjs/core/fetcher/redactUrl.js +88 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +27 -3
- package/dist/cjs/core/fetcher/signals.d.ts +1 -0
- package/dist/cjs/core/fetcher/signals.js +12 -3
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/pagination/Page.d.ts +1 -1
- package/dist/cjs/core/requestBody.d.ts +12 -0
- package/dist/cjs/core/requestBody.js +26 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -1
- package/dist/cjs/core/runtime/index.js +2 -1
- package/dist/cjs/core/runtime/runtime.d.ts +19 -0
- package/dist/cjs/core/runtime/runtime.js +81 -8
- package/dist/cjs/core/url/QueryStringBuilder.d.ts +48 -0
- package/dist/cjs/core/url/QueryStringBuilder.js +88 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +3 -1
- package/dist/cjs/core/url/encodePathParam.js +8 -2
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/qs.d.ts +2 -1
- package/dist/cjs/core/url/qs.js +25 -13
- package/dist/cjs/core/utils/setObjectProperty.d.ts +6 -5
- package/dist/cjs/core/utils/setObjectProperty.js +16 -10
- package/dist/cjs/errors/IntercomError.d.ts +4 -1
- package/dist/cjs/errors/IntercomError.js +27 -2
- package/dist/cjs/errors/IntercomTimeoutError.d.ts +5 -2
- package/dist/cjs/errors/IntercomTimeoutError.js +45 -4
- package/dist/cjs/errors/handleNonStatusCodeError.js +4 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +23 -8
- package/dist/esm/BaseClient.mjs +43 -4
- package/dist/esm/Client.d.mts +13 -2
- package/dist/esm/Client.mjs +34 -0
- package/dist/esm/api/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/errors/ForbiddenError.d.mts +1 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +1 -0
- package/dist/esm/api/errors/TooManyRequestsError.mjs +5 -1
- package/dist/esm/api/errors/UnauthorizedError.d.mts +1 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +5 -1
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +1 -0
- package/dist/esm/api/resources/admins/client/Client.d.mts +12 -2
- package/dist/esm/api/resources/admins/client/Client.mjs +28 -13
- package/dist/esm/api/resources/admins/client/requests/ConfigureAwayAdminRequest.d.mts +0 -7
- package/dist/esm/api/resources/admins/exports.d.mts +2 -0
- package/dist/esm/api/resources/admins/exports.mjs +3 -0
- package/dist/esm/api/resources/admins/types/Admin.d.mts +5 -5
- package/dist/esm/api/resources/aiAgent/exports.d.mts +1 -0
- package/dist/esm/api/resources/aiAgent/exports.mjs +2 -0
- package/dist/esm/api/resources/aiAgent/types/AiAgent.d.mts +9 -9
- package/dist/esm/api/resources/aiContent/client/Client.d.mts +21 -2
- package/dist/esm/api/resources/aiContent/client/Client.mjs +41 -20
- package/dist/esm/api/resources/aiContent/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/aiContent/client/requests/index.mjs +2 -1
- package/dist/esm/api/resources/aiContent/exports.d.mts +2 -0
- package/dist/esm/api/resources/aiContent/exports.mjs +3 -0
- package/dist/esm/api/resources/aiContent/types/ContentImportSourcesList.d.mts +4 -4
- package/dist/esm/api/resources/aiContent/types/ExternalPage.d.mts +2 -2
- package/dist/esm/api/resources/aiContent/types/ExternalPagesList.d.mts +4 -4
- package/dist/esm/api/resources/aiContentSource/exports.d.mts +1 -0
- package/dist/esm/api/resources/aiContentSource/exports.mjs +2 -0
- package/dist/esm/api/resources/aiContentSource/types/ContentSource.d.mts +4 -4
- package/dist/esm/api/resources/articles/client/Client.d.mts +13 -2
- package/dist/esm/api/resources/articles/client/Client.mjs +49 -33
- package/dist/esm/api/resources/articles/client/requests/UpdateArticleRequest.d.mts +0 -7
- package/dist/esm/api/resources/articles/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/articles/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/articles/exports.d.mts +2 -0
- package/dist/esm/api/resources/articles/exports.mjs +3 -0
- package/dist/esm/api/resources/articles/types/Article.d.mts +1 -1
- package/dist/esm/api/resources/articles/types/ArticleListItem.d.mts +9 -9
- package/dist/esm/api/resources/articles/types/ArticleSearchHighlights.d.mts +7 -7
- package/dist/esm/api/resources/articles/types/ArticleSearchResponse.d.mts +6 -6
- package/dist/esm/api/resources/awayStatusReasons/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/awayStatusReasons/client/Client.mjs +3 -1
- package/dist/esm/api/resources/awayStatusReasons/exports.d.mts +2 -0
- package/dist/esm/api/resources/awayStatusReasons/exports.mjs +3 -0
- package/dist/esm/api/resources/calls/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/calls/client/Client.mjs +28 -16
- package/dist/esm/api/resources/calls/exports.d.mts +2 -0
- package/dist/esm/api/resources/calls/exports.mjs +3 -0
- package/dist/esm/api/resources/calls/types/Call.d.mts +19 -19
- package/dist/esm/api/resources/calls/types/ListCallsWithTranscriptsResponse.d.mts +4 -4
- package/dist/esm/api/resources/companies/client/Client.d.mts +23 -2
- package/dist/esm/api/resources/companies/client/Client.mjs +79 -56
- package/dist/esm/api/resources/companies/client/requests/ScrollCompaniesRequest.d.mts +0 -1
- package/dist/esm/api/resources/companies/exports.d.mts +2 -0
- package/dist/esm/api/resources/companies/exports.mjs +3 -0
- package/dist/esm/api/resources/companies/types/Company.d.mts +17 -17
- package/dist/esm/api/resources/contacts/client/Client.d.mts +38 -2
- package/dist/esm/api/resources/contacts/client/Client.mjs +97 -54
- package/dist/esm/api/resources/contacts/client/requests/AttachSubscriptionToContactRequest.d.mts +0 -7
- package/dist/esm/api/resources/contacts/exports.d.mts +2 -0
- package/dist/esm/api/resources/contacts/exports.mjs +3 -0
- package/dist/esm/api/resources/contacts/types/Contact.d.mts +45 -45
- package/dist/esm/api/resources/contacts/types/ContactsCreateResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/types/ContactsFindResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/types/ContactsMergeLeadInUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/types/ContactsUpdateResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/types/ShowContactByExternalIdResponse.d.mts +1 -1
- package/dist/esm/api/resources/conversations/client/Client.d.mts +28 -2
- package/dist/esm/api/resources/conversations/client/Client.mjs +82 -49
- package/dist/esm/api/resources/conversations/client/requests/DetachContactFromConversationRequest.d.mts +0 -21
- package/dist/esm/api/resources/conversations/client/requests/ManageConversationPartsRequest.d.mts +0 -10
- package/dist/esm/api/resources/conversations/client/requests/ReplyToConversationRequest.d.mts +0 -33
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationRequest.d.mts +0 -12
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/conversations/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/conversations/exports.d.mts +2 -0
- package/dist/esm/api/resources/conversations/exports.mjs +3 -0
- package/dist/esm/api/resources/conversations/types/Conversation.d.mts +27 -27
- package/dist/esm/api/resources/customChannelEvents/client/Client.d.mts +9 -2
- package/dist/esm/api/resources/customChannelEvents/client/Client.mjs +17 -8
- package/dist/esm/api/resources/customChannelEvents/exports.d.mts +2 -0
- package/dist/esm/api/resources/customChannelEvents/exports.mjs +3 -0
- package/dist/esm/api/resources/customObjectInstances/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/customObjectInstances/client/Client.mjs +36 -15
- package/dist/esm/api/resources/customObjectInstances/exports.d.mts +2 -0
- package/dist/esm/api/resources/customObjectInstances/exports.mjs +3 -0
- package/dist/esm/api/resources/customObjectInstances/types/CustomObjectInstance.d.mts +8 -8
- package/dist/esm/api/resources/dataAttributes/client/Client.d.mts +7 -2
- package/dist/esm/api/resources/dataAttributes/client/Client.mjs +21 -13
- package/dist/esm/api/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.mts +0 -12
- package/dist/esm/api/resources/dataAttributes/exports.d.mts +2 -0
- package/dist/esm/api/resources/dataAttributes/exports.mjs +3 -0
- package/dist/esm/api/resources/dataAttributes/types/DataAttribute.d.mts +12 -12
- package/dist/esm/api/resources/dataEvents/exports.d.mts +1 -0
- package/dist/esm/api/resources/dataEvents/exports.mjs +2 -0
- package/dist/esm/api/resources/dataEvents/types/DataEvent.d.mts +6 -6
- package/dist/esm/api/resources/dataExport/client/Client.d.mts +17 -2
- package/dist/esm/api/resources/dataExport/client/Client.mjs +44 -17
- package/dist/esm/api/resources/dataExport/client/requests/ExportReportingDataRequest.d.mts +0 -7
- package/dist/esm/api/resources/dataExport/exports.d.mts +2 -0
- package/dist/esm/api/resources/dataExport/exports.mjs +3 -0
- package/dist/esm/api/resources/dataExport/types/DataExport.d.mts +4 -4
- package/dist/esm/api/resources/dataExport/types/DataExportExportReportingDataResponse.d.mts +4 -4
- package/dist/esm/api/resources/events/client/Client.d.mts +7 -2
- package/dist/esm/api/resources/events/client/Client.mjs +24 -22
- package/dist/esm/api/resources/events/client/requests/ListEventSummariesRequest.d.mts +4 -4
- package/dist/esm/api/resources/events/exports.d.mts +2 -0
- package/dist/esm/api/resources/events/exports.mjs +3 -0
- package/dist/esm/api/resources/export/client/Client.d.mts +6 -2
- package/dist/esm/api/resources/export/client/Client.mjs +9 -3
- package/dist/esm/api/resources/export/exports.d.mts +2 -0
- package/dist/esm/api/resources/export/exports.mjs +3 -0
- package/dist/esm/api/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.mts +9 -9
- package/dist/esm/api/resources/export/types/PostExportReportingDataEnqueueResponse.d.mts +4 -4
- package/dist/esm/api/resources/helpCenter/exports.d.mts +1 -0
- package/dist/esm/api/resources/helpCenter/exports.mjs +2 -0
- package/dist/esm/api/resources/helpCenter/types/Collection.d.mts +8 -8
- package/dist/esm/api/resources/helpCenter/types/HelpCenter.d.mts +9 -9
- package/dist/esm/api/resources/helpCenter/types/HelpCenterList.d.mts +2 -2
- package/dist/esm/api/resources/helpCenters/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/helpCenters/client/Client.mjs +22 -12
- package/dist/esm/api/resources/helpCenters/exports.d.mts +3 -0
- package/dist/esm/api/resources/helpCenters/exports.mjs +4 -0
- package/dist/esm/api/resources/helpCenters/resources/collections/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/helpCenters/resources/collections/client/Client.mjs +36 -19
- package/dist/esm/api/resources/helpCenters/resources/collections/client/requests/UpdateCollectionRequest.d.mts +0 -6
- package/dist/esm/api/resources/helpCenters/resources/collections/exports.d.mts +2 -0
- package/dist/esm/api/resources/helpCenters/resources/collections/exports.mjs +3 -0
- package/dist/esm/api/resources/internalArticles/client/Client.d.mts +13 -2
- package/dist/esm/api/resources/internalArticles/client/Client.mjs +31 -15
- package/dist/esm/api/resources/internalArticles/client/requests/UpdateInternalArticleRequestBody.d.mts +0 -7
- package/dist/esm/api/resources/internalArticles/exports.d.mts +2 -0
- package/dist/esm/api/resources/internalArticles/exports.mjs +3 -0
- package/dist/esm/api/resources/internalArticles/types/InternalArticleListItem.d.mts +9 -9
- package/dist/esm/api/resources/internalArticles/types/InternalArticleSearchResponse.d.mts +5 -5
- package/dist/esm/api/resources/ipAllowlist/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/ipAllowlist/client/Client.mjs +8 -3
- package/dist/esm/api/resources/ipAllowlist/exports.d.mts +2 -0
- package/dist/esm/api/resources/ipAllowlist/exports.mjs +3 -0
- package/dist/esm/api/resources/jobs/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/jobs/client/Client.mjs +4 -2
- package/dist/esm/api/resources/jobs/exports.d.mts +2 -0
- package/dist/esm/api/resources/jobs/exports.mjs +3 -0
- package/dist/esm/api/resources/jobs/types/Jobs.d.mts +6 -6
- package/dist/esm/api/resources/messages/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/messages/client/Client.mjs +5 -2
- package/dist/esm/api/resources/messages/exports.d.mts +2 -0
- package/dist/esm/api/resources/messages/exports.mjs +3 -0
- package/dist/esm/api/resources/messages/types/Message.d.mts +2 -2
- package/dist/esm/api/resources/news/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/news/exports.d.mts +3 -0
- package/dist/esm/api/resources/news/exports.mjs +4 -0
- package/dist/esm/api/resources/news/resources/feeds/client/Client.d.mts +7 -2
- package/dist/esm/api/resources/news/resources/feeds/client/Client.mjs +11 -5
- package/dist/esm/api/resources/news/resources/feeds/exports.d.mts +2 -0
- package/dist/esm/api/resources/news/resources/feeds/exports.mjs +3 -0
- package/dist/esm/api/resources/news/resources/items/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/news/resources/items/client/Client.mjs +21 -10
- package/dist/esm/api/resources/news/resources/items/exports.d.mts +2 -0
- package/dist/esm/api/resources/news/resources/items/exports.mjs +3 -0
- package/dist/esm/api/resources/news/types/NewsItem.d.mts +14 -14
- package/dist/esm/api/resources/news/types/Newsfeed.d.mts +5 -5
- package/dist/esm/api/resources/news/types/NewsfeedAssignment.d.mts +2 -2
- package/dist/esm/api/resources/notes/client/Client.d.mts +7 -2
- package/dist/esm/api/resources/notes/client/Client.mjs +29 -16
- package/dist/esm/api/resources/notes/client/requests/CreateContactNoteRequest.d.mts +0 -14
- package/dist/esm/api/resources/notes/exports.d.mts +2 -0
- package/dist/esm/api/resources/notes/exports.mjs +3 -0
- package/dist/esm/api/resources/notes/types/Note.d.mts +8 -8
- package/dist/esm/api/resources/phoneCallRedirects/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/phoneCallRedirects/client/Client.mjs +5 -2
- package/dist/esm/api/resources/phoneCallRedirects/exports.d.mts +2 -0
- package/dist/esm/api/resources/phoneCallRedirects/exports.mjs +3 -0
- package/dist/esm/api/resources/segments/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/segments/client/Client.mjs +14 -7
- package/dist/esm/api/resources/segments/exports.d.mts +2 -0
- package/dist/esm/api/resources/segments/exports.mjs +3 -0
- package/dist/esm/api/resources/segments/types/Segment.d.mts +7 -7
- package/dist/esm/api/resources/subscriptionTypes/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/subscriptionTypes/client/Client.mjs +3 -1
- package/dist/esm/api/resources/subscriptionTypes/exports.d.mts +2 -0
- package/dist/esm/api/resources/subscriptionTypes/exports.mjs +3 -0
- package/dist/esm/api/resources/subscriptionTypes/types/SubscriptionType.d.mts +7 -7
- package/dist/esm/api/resources/tags/client/Client.d.mts +21 -2
- package/dist/esm/api/resources/tags/client/Client.mjs +45 -24
- package/dist/esm/api/resources/tags/client/requests/TagContactRequest.d.mts +0 -6
- package/dist/esm/api/resources/tags/client/requests/TagConversationRequest.d.mts +0 -7
- package/dist/esm/api/resources/tags/client/requests/TagTicketRequest.d.mts +0 -7
- package/dist/esm/api/resources/tags/client/requests/UntagConversationRequest.d.mts +0 -14
- package/dist/esm/api/resources/tags/client/requests/UntagTicketRequest.d.mts +0 -14
- package/dist/esm/api/resources/tags/exports.d.mts +2 -0
- package/dist/esm/api/resources/tags/exports.mjs +3 -0
- package/dist/esm/api/resources/tags/types/Tag.d.mts +2 -2
- package/dist/esm/api/resources/tags/types/TagBasic.d.mts +3 -3
- package/dist/esm/api/resources/teams/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/teams/client/Client.mjs +7 -3
- package/dist/esm/api/resources/teams/exports.d.mts +2 -0
- package/dist/esm/api/resources/teams/exports.mjs +3 -0
- package/dist/esm/api/resources/teams/types/Team.d.mts +7 -7
- package/dist/esm/api/resources/ticketStates/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/ticketStates/client/Client.mjs +3 -1
- package/dist/esm/api/resources/ticketStates/exports.d.mts +2 -0
- package/dist/esm/api/resources/ticketStates/exports.mjs +3 -0
- package/dist/esm/api/resources/ticketTypes/client/Client.d.mts +9 -2
- package/dist/esm/api/resources/ticketTypes/client/Client.mjs +17 -8
- package/dist/esm/api/resources/ticketTypes/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/ticketTypes/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/ticketTypes/exports.d.mts +3 -0
- package/dist/esm/api/resources/ticketTypes/exports.mjs +4 -0
- package/dist/esm/api/resources/ticketTypes/resources/attributes/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/ticketTypes/resources/attributes/client/Client.mjs +11 -6
- package/dist/esm/api/resources/ticketTypes/resources/attributes/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/ticketTypes/resources/attributes/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/ticketTypes/resources/attributes/exports.d.mts +2 -0
- package/dist/esm/api/resources/ticketTypes/resources/attributes/exports.mjs +3 -0
- package/dist/esm/api/resources/tickets/client/Client.d.mts +16 -2
- package/dist/esm/api/resources/tickets/client/Client.mjs +32 -16
- package/dist/esm/api/resources/tickets/client/requests/ReplyToTicketRequest.d.mts +0 -22
- package/dist/esm/api/resources/tickets/client/requests/UpdateTicketRequest.d.mts +0 -12
- package/dist/esm/api/resources/tickets/exports.d.mts +2 -0
- package/dist/esm/api/resources/tickets/exports.mjs +3 -0
- package/dist/esm/api/resources/tickets/types/DeleteTicketResponse.d.mts +3 -3
- package/dist/esm/api/resources/tickets/types/Ticket.d.mts +17 -17
- package/dist/esm/api/resources/tickets/types/TicketContacts.d.mts +2 -2
- package/dist/esm/api/resources/tickets/types/TicketPart.d.mts +15 -15
- package/dist/esm/api/resources/tickets/types/TicketState.d.mts +5 -5
- package/dist/esm/api/resources/tickets/types/TicketStateDetailed.d.mts +9 -9
- package/dist/esm/api/resources/tickets/types/TicketType.d.mts +14 -14
- package/dist/esm/api/resources/unstable/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/unstable/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/resources/unstable/errors/ConflictError.d.mts +1 -0
- package/dist/esm/api/resources/unstable/errors/ConflictError.mjs +5 -1
- package/dist/esm/api/resources/unstable/errors/ForbiddenError.d.mts +1 -0
- package/dist/esm/api/resources/unstable/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/resources/unstable/errors/InternalServerError.d.mts +1 -0
- package/dist/esm/api/resources/unstable/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/resources/unstable/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/resources/unstable/errors/TooManyRequestsError.d.mts +1 -0
- package/dist/esm/api/resources/unstable/errors/TooManyRequestsError.mjs +5 -1
- package/dist/esm/api/resources/unstable/errors/UnauthorizedError.d.mts +1 -0
- package/dist/esm/api/resources/unstable/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/unstable/errors/UnprocessableEntityError.mjs +5 -1
- package/dist/esm/api/resources/unstable/exports.d.mts +3 -0
- package/dist/esm/api/resources/unstable/exports.mjs +4 -0
- package/dist/esm/api/resources/unstable/resources/admins/client/Client.d.mts +12 -2
- package/dist/esm/api/resources/unstable/resources/admins/client/Client.mjs +28 -13
- package/dist/esm/api/resources/unstable/resources/admins/client/requests/SetAwayAdminRequest.d.mts +0 -7
- package/dist/esm/api/resources/unstable/resources/admins/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/admins/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/admins/types/Admin.d.mts +12 -12
- package/dist/esm/api/resources/unstable/resources/aiAgent/exports.d.mts +1 -0
- package/dist/esm/api/resources/unstable/resources/aiAgent/exports.mjs +2 -0
- package/dist/esm/api/resources/unstable/resources/aiAgent/types/AiAgent.d.mts +9 -9
- package/dist/esm/api/resources/unstable/resources/aiContent/client/Client.d.mts +21 -2
- package/dist/esm/api/resources/unstable/resources/aiContent/client/Client.mjs +41 -20
- package/dist/esm/api/resources/unstable/resources/aiContent/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/aiContent/client/requests/index.mjs +2 -1
- package/dist/esm/api/resources/unstable/resources/aiContent/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/aiContent/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/aiContent/types/ContentImportSourcesList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/resources/aiContent/types/ExternalPage.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/aiContent/types/ExternalPagesList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/resources/aiContentSource/exports.d.mts +1 -0
- package/dist/esm/api/resources/unstable/resources/aiContentSource/exports.mjs +2 -0
- package/dist/esm/api/resources/unstable/resources/aiContentSource/types/ContentSource.d.mts +4 -4
- package/dist/esm/api/resources/unstable/resources/articles/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/unstable/resources/articles/client/Client.mjs +29 -21
- package/dist/esm/api/resources/unstable/resources/articles/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/articles/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/articles/types/Article.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/articles/types/ArticleListItem.d.mts +16 -16
- package/dist/esm/api/resources/unstable/resources/articles/types/ArticleSearchHighlights.d.mts +7 -7
- package/dist/esm/api/resources/unstable/resources/articles/types/ArticleSearchResponse.d.mts +6 -6
- package/dist/esm/api/resources/unstable/resources/awayStatusReasons/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/unstable/resources/awayStatusReasons/client/Client.mjs +3 -1
- package/dist/esm/api/resources/unstable/resources/awayStatusReasons/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/awayStatusReasons/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/brands/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/unstable/resources/brands/client/Client.mjs +7 -3
- package/dist/esm/api/resources/unstable/resources/brands/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/brands/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/brands/types/Brand.d.mts +8 -8
- package/dist/esm/api/resources/unstable/resources/brands/types/BrandList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/calls/client/Client.d.mts +19 -2
- package/dist/esm/api/resources/unstable/resources/calls/client/Client.mjs +44 -24
- package/dist/esm/api/resources/unstable/resources/calls/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/calls/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/calls/types/Call.d.mts +19 -19
- package/dist/esm/api/resources/unstable/resources/calls/types/ListCallsWithTranscriptsResponse.d.mts +4 -4
- package/dist/esm/api/resources/unstable/resources/companies/client/Client.d.mts +23 -2
- package/dist/esm/api/resources/unstable/resources/companies/client/Client.mjs +71 -53
- package/dist/esm/api/resources/unstable/resources/companies/client/requests/ScrollOverAllCompaniesRequest.d.mts +0 -1
- package/dist/esm/api/resources/unstable/resources/companies/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/companies/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/companies/types/Company.d.mts +29 -29
- package/dist/esm/api/resources/unstable/resources/contacts/client/Client.d.mts +36 -4
- package/dist/esm/api/resources/unstable/resources/contacts/client/Client.mjs +65 -31
- package/dist/esm/api/resources/unstable/resources/contacts/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/contacts/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/contacts/types/Contact.d.mts +48 -48
- package/dist/esm/api/resources/unstable/resources/contacts/types/CreateContactResponse.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/contacts/types/MergeContactResponse.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/contacts/types/ShowContactByExternalIdResponse.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/contacts/types/ShowContactResponse.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/contacts/types/UpdateContactResponse.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/conversations/client/Client.d.mts +30 -4
- package/dist/esm/api/resources/unstable/resources/conversations/client/Client.mjs +83 -50
- package/dist/esm/api/resources/unstable/resources/conversations/client/requests/DetachContactFromConversationRequest.d.mts +0 -21
- package/dist/esm/api/resources/unstable/resources/conversations/client/requests/ManageConversationRequest.d.mts +0 -10
- package/dist/esm/api/resources/unstable/resources/conversations/client/requests/{ReplyConversationRequest.d.mts → ReplyConversationBody.d.mts} +1 -1
- package/dist/esm/api/resources/unstable/resources/conversations/client/requests/UpdateConversationRequest.d.mts +0 -12
- package/dist/esm/api/resources/unstable/resources/conversations/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/conversations/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/unstable/resources/conversations/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/conversations/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/conversations/types/Conversation.d.mts +28 -28
- package/dist/esm/api/resources/unstable/resources/customChannelEvents/client/Client.d.mts +9 -2
- package/dist/esm/api/resources/unstable/resources/customChannelEvents/client/Client.mjs +17 -8
- package/dist/esm/api/resources/unstable/resources/customChannelEvents/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/customChannelEvents/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/customObjectInstances/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/unstable/resources/customObjectInstances/client/Client.mjs +36 -15
- package/dist/esm/api/resources/unstable/resources/customObjectInstances/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/customObjectInstances/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/customObjectInstances/types/CustomObjectInstance.d.mts +8 -8
- package/dist/esm/api/resources/unstable/resources/dataAttributes/client/Client.d.mts +9 -4
- package/dist/esm/api/resources/unstable/resources/dataAttributes/client/Client.mjs +22 -14
- package/dist/{cjs/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeRequest.d.ts → esm/api/resources/unstable/resources/dataAttributes/client/requests/UpdateDataAttributeBody.d.mts} +1 -1
- package/dist/esm/api/resources/unstable/resources/dataAttributes/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/dataAttributes/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/dataAttributes/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/dataAttributes/types/DataAttribute.d.mts +17 -17
- package/dist/esm/api/resources/unstable/resources/dataEvents/client/Client.d.mts +9 -4
- package/dist/esm/api/resources/unstable/resources/dataEvents/client/Client.mjs +26 -12
- package/dist/esm/api/resources/unstable/resources/dataEvents/client/requests/CreateDataEventSummariesRequest.d.mts +4 -4
- package/dist/esm/api/resources/unstable/resources/dataEvents/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/dataEvents/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/dataEvents/types/DataEvent.d.mts +6 -6
- package/dist/esm/api/resources/unstable/resources/dataExport/client/Client.d.mts +13 -2
- package/dist/esm/api/resources/unstable/resources/dataExport/client/Client.mjs +21 -8
- package/dist/esm/api/resources/unstable/resources/dataExport/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/dataExport/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/dataExport/types/DataExport.d.mts +4 -4
- package/dist/esm/api/resources/unstable/resources/emails/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/unstable/resources/emails/client/Client.mjs +7 -3
- package/dist/esm/api/resources/unstable/resources/emails/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/emails/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/emails/types/EmailList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/emails/types/EmailSetting.d.mts +10 -10
- package/dist/esm/api/resources/unstable/resources/export/client/Client.d.mts +6 -2
- package/dist/esm/api/resources/unstable/resources/export/client/Client.mjs +9 -3
- package/dist/esm/api/resources/unstable/resources/export/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/export/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/export/types/GetExportReportingDataGetDatasetsResponse.d.mts +9 -9
- package/dist/esm/api/resources/unstable/resources/export/types/PostExportReportingDataEnqueueResponse.d.mts +4 -4
- package/dist/esm/api/resources/unstable/resources/helpCenter/client/Client.d.mts +15 -2
- package/dist/esm/api/resources/unstable/resources/helpCenter/client/Client.mjs +28 -13
- package/dist/esm/api/resources/unstable/resources/helpCenter/client/requests/UpdateCollectionRequest.d.mts +0 -6
- package/dist/esm/api/resources/unstable/resources/helpCenter/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/helpCenter/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/helpCenter/types/Collection.d.mts +13 -13
- package/dist/esm/api/resources/unstable/resources/helpCenter/types/HelpCenter.d.mts +9 -9
- package/dist/esm/api/resources/unstable/resources/helpCenter/types/HelpCenterList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/internalArticles/client/Client.d.mts +13 -2
- package/dist/esm/api/resources/unstable/resources/internalArticles/client/Client.mjs +31 -15
- package/dist/esm/api/resources/unstable/resources/internalArticles/client/requests/UpdateInternalArticleRequestBody.d.mts +0 -7
- package/dist/esm/api/resources/unstable/resources/internalArticles/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/internalArticles/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/internalArticles/types/InternalArticleListItem.d.mts +9 -9
- package/dist/esm/api/resources/unstable/resources/internalArticles/types/InternalArticleSearchResponse.d.mts +5 -5
- package/dist/esm/api/resources/unstable/resources/jobs/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/unstable/resources/jobs/client/Client.mjs +4 -2
- package/dist/esm/api/resources/unstable/resources/jobs/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/jobs/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/jobs/types/Jobs.d.mts +6 -6
- package/dist/esm/api/resources/unstable/resources/macros/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/unstable/resources/macros/client/Client.mjs +16 -13
- package/dist/esm/api/resources/unstable/resources/macros/client/requests/GetMacroRequest.d.mts +0 -15
- package/dist/esm/api/resources/unstable/resources/macros/client/requests/ListMacrosRequest.d.mts +0 -35
- package/dist/esm/api/resources/unstable/resources/macros/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/macros/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/macros/types/Macro.d.mts +10 -10
- package/dist/esm/api/resources/unstable/resources/macros/types/MacroList.d.mts +7 -7
- package/dist/esm/api/resources/unstable/resources/messages/client/Client.d.mts +7 -4
- package/dist/esm/api/resources/unstable/resources/messages/client/Client.mjs +18 -12
- package/dist/esm/api/resources/unstable/resources/messages/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/messages/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/messages/types/Message.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/news/client/Client.d.mts +17 -2
- package/dist/esm/api/resources/unstable/resources/news/client/Client.mjs +32 -15
- package/dist/esm/api/resources/unstable/resources/news/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/news/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/news/types/NewsItem.d.mts +14 -14
- package/dist/esm/api/resources/unstable/resources/news/types/Newsfeed.d.mts +5 -5
- package/dist/esm/api/resources/unstable/resources/news/types/NewsfeedAssignment.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/notes/client/Client.d.mts +9 -2
- package/dist/esm/api/resources/unstable/resources/notes/client/Client.mjs +18 -9
- package/dist/esm/api/resources/unstable/resources/notes/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/notes/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/notes/types/CompanyNote.d.mts +8 -8
- package/dist/esm/api/resources/unstable/resources/notes/types/Note.d.mts +8 -8
- package/dist/esm/api/resources/unstable/resources/segments/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/unstable/resources/segments/client/Client.mjs +14 -7
- package/dist/esm/api/resources/unstable/resources/segments/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/segments/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/segments/types/Segment.d.mts +7 -7
- package/dist/esm/api/resources/unstable/resources/subscriptionTypes/client/Client.d.mts +7 -2
- package/dist/esm/api/resources/unstable/resources/subscriptionTypes/client/Client.mjs +13 -6
- package/dist/esm/api/resources/unstable/resources/subscriptionTypes/client/requests/AttachSubscriptionTypeToContactRequest.d.mts +0 -7
- package/dist/esm/api/resources/unstable/resources/subscriptionTypes/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/subscriptionTypes/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/subscriptionTypes/types/SubscriptionType.d.mts +7 -7
- package/dist/esm/api/resources/unstable/resources/switch/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/unstable/resources/switch/client/Client.mjs +5 -2
- package/dist/esm/api/resources/unstable/resources/switch/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/switch/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/tags/client/Client.d.mts +21 -2
- package/dist/esm/api/resources/unstable/resources/tags/client/Client.mjs +45 -24
- package/dist/esm/api/resources/unstable/resources/tags/client/requests/AttachTagToContactRequest.d.mts +0 -6
- package/dist/esm/api/resources/unstable/resources/tags/client/requests/AttachTagToConversationRequest.d.mts +0 -7
- package/dist/esm/api/resources/unstable/resources/tags/client/requests/AttachTagToTicketRequest.d.mts +0 -7
- package/dist/esm/api/resources/unstable/resources/tags/client/requests/DetachTagFromConversationRequest.d.mts +0 -14
- package/dist/esm/api/resources/unstable/resources/tags/client/requests/DetachTagFromTicketRequest.d.mts +0 -14
- package/dist/esm/api/resources/unstable/resources/tags/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/tags/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/tags/types/Tag.d.mts +5 -5
- package/dist/esm/api/resources/unstable/resources/tags/types/TagBasic.d.mts +3 -3
- package/dist/esm/api/resources/unstable/resources/teams/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/unstable/resources/teams/client/Client.mjs +7 -3
- package/dist/esm/api/resources/unstable/resources/teams/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/teams/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/teams/types/Team.d.mts +5 -5
- package/dist/esm/api/resources/unstable/resources/ticketStates/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/unstable/resources/ticketStates/client/Client.mjs +3 -1
- package/dist/esm/api/resources/unstable/resources/ticketStates/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/ticketStates/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/ticketTypeAttributes/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/unstable/resources/ticketTypeAttributes/client/Client.mjs +11 -6
- package/dist/esm/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/unstable/resources/ticketTypeAttributes/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/unstable/resources/ticketTypeAttributes/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/ticketTypeAttributes/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/ticketTypes/client/Client.d.mts +7 -2
- package/dist/esm/api/resources/unstable/resources/ticketTypes/client/Client.mjs +12 -5
- package/dist/esm/api/resources/unstable/resources/ticketTypes/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/ticketTypes/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/tickets/client/Client.d.mts +14 -2
- package/dist/esm/api/resources/unstable/resources/tickets/client/Client.mjs +28 -14
- package/dist/esm/api/resources/unstable/resources/tickets/client/requests/UpdateTicketRequest.d.mts +0 -12
- package/dist/esm/api/resources/unstable/resources/tickets/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/tickets/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/tickets/types/DeleteTicketResponse.d.mts +3 -3
- package/dist/esm/api/resources/unstable/resources/tickets/types/Ticket.d.mts +17 -17
- package/dist/esm/api/resources/unstable/resources/tickets/types/TicketContacts.d.mts +2 -2
- package/dist/esm/api/resources/unstable/resources/tickets/types/TicketPart.d.mts +15 -15
- package/dist/esm/api/resources/unstable/resources/tickets/types/TicketState.d.mts +5 -5
- package/dist/esm/api/resources/unstable/resources/tickets/types/TicketStateDetailed.d.mts +9 -9
- package/dist/esm/api/resources/unstable/resources/tickets/types/TicketType.d.mts +14 -14
- package/dist/esm/api/resources/unstable/resources/visitors/client/Client.d.mts +9 -4
- package/dist/esm/api/resources/unstable/resources/visitors/client/Client.mjs +20 -8
- package/dist/esm/api/resources/unstable/resources/visitors/client/requests/ConvertVisitorRequest.d.mts +14 -2
- package/dist/esm/api/resources/unstable/resources/visitors/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/visitors/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/resources/workflows/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/unstable/resources/workflows/client/Client.mjs +4 -2
- package/dist/esm/api/resources/unstable/resources/workflows/exports.d.mts +2 -0
- package/dist/esm/api/resources/unstable/resources/workflows/exports.mjs +3 -0
- package/dist/esm/api/resources/unstable/types/ActivityLog.d.mts +10 -10
- package/dist/esm/api/resources/unstable/types/ActivityLogList.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ActivityLogMetadata.d.mts +11 -11
- package/dist/esm/api/resources/unstable/types/AddressableList.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/AdminList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/AdminPriorityLevel.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/AdminReplyConversationRequest.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/AdminReplyTicketRequest.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/AdminWithApp.d.mts +14 -14
- package/dist/esm/api/resources/unstable/types/AiCallResponse.d.mts +10 -10
- package/dist/esm/api/resources/unstable/types/App.d.mts +7 -8
- package/dist/esm/api/resources/unstable/types/ArticleContent.d.mts +9 -9
- package/dist/esm/api/resources/unstable/types/ArticleList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ArticleStatistics.d.mts +7 -7
- package/dist/esm/api/resources/unstable/types/ArticleTranslatedContent.d.mts +38 -38
- package/dist/esm/api/resources/unstable/types/AssignConversationRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/AwayStatusReason.d.mts +8 -8
- package/dist/esm/api/resources/unstable/types/CallList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/CloseConversationRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/CollectionList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/CompanyAttachedContacts.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/CompanyAttachedSegments.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/CompanyData.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/CompanyList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/CompanyScroll.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/ContactArchived.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContactAttachedCompanies.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ContactBlocked.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContactCompanies.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ContactDeleted.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContactList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ContactLocation.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ContactNotes.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ContactReference.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ContactReplyBaseRequest.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ContactReplyEmailRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContactReplyIntercomUserIdRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContactReplyUserIdRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContactSegments.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/ContactSocialProfiles.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContactSubscriptionTypes.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ContactTags.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ContactUnarchived.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ContentSourcesList.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ConversationAttachmentFiles.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByAdmin.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByUser.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/ConversationAttributeUpdatedByWorkflow.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/ConversationContacts.d.mts +2 -3
- package/dist/esm/api/resources/unstable/types/ConversationDeleted.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ConversationFirstContactReply.d.mts +3 -6
- package/dist/esm/api/resources/unstable/types/ConversationList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/ConversationPart.d.mts +18 -18
- package/dist/esm/api/resources/unstable/types/ConversationPartAuthor.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/ConversationPartMetadata.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ConversationParts.d.mts +3 -5
- package/dist/esm/api/resources/unstable/types/ConversationRating.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/ConversationResponseTime.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByRule.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/ConversationSlaAppliedByWorkflow.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/ConversationSlaPaused.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/ConversationSlaRemoved.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ConversationSlaTargetMissed.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/ConversationSlaUnpaused.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/ConversationSource.d.mts +9 -9
- package/dist/esm/api/resources/unstable/types/ConversationStatistics.d.mts +23 -24
- package/dist/esm/api/resources/unstable/types/ConversationTagsUpdated.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/ConversationTeammates.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/CreateArticleRequest.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/CreateContactRequest.d.mts +4 -0
- package/dist/esm/api/resources/unstable/types/CreateDataAttributeRequest.d.mts +0 -3
- package/dist/esm/api/resources/unstable/types/CreateDataEventRequest.d.mts +1 -0
- package/dist/esm/api/resources/unstable/types/CreateInternalArticleRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/CreateMessageRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/CreateOrUpdateCompanyRequest.d.mts +9 -9
- package/dist/esm/api/resources/unstable/types/CreateOrUpdateTagRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/CreatePhoneSwitchRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/CreateTicketRequestBody.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/CreateTicketTypeRequest.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/CursorPages.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/CustomActionFinished.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/CustomActionStarted.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/CustomChannelContact.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/CustomObjectInstanceDeleted.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/CustomObjectInstanceList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/DataAttributeList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/DataEventList.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/DataEventSummary.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/DataEventSummaryItem.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/DataExportCsv.d.mts +26 -26
- package/dist/esm/api/resources/unstable/types/DeletedArticleObject.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/DeletedCollectionObject.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/DeletedCompanyObject.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/DeletedInternalArticleObject.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/DeletedObject.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/EmailAddressHeader.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/EmailMessageMetadata.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/Error_.d.mts +3 -4
- package/dist/esm/api/resources/unstable/types/FileAttribute.d.mts +7 -7
- package/dist/esm/api/resources/unstable/types/GroupContent.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/GroupTranslatedContent.d.mts +38 -38
- package/dist/esm/api/resources/unstable/types/HandlingEvent.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/HandlingEventList.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/InternalArticleList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/LinkedObject.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/LinkedObjectList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/Metadata.d.mts +2 -0
- package/dist/esm/api/resources/unstable/types/MultipleFilterSearchRequest.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/NewsItemRequest.d.mts +6 -6
- package/dist/esm/api/resources/unstable/types/NotFoundErrorBody.d.mts +2 -3
- package/dist/esm/api/resources/unstable/types/NoteList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/OperatorWorkflowEvent.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/PagesLink.d.mts +5 -5
- package/dist/esm/api/resources/unstable/types/PaginatedResponse.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/PartAttachment.d.mts +7 -7
- package/dist/esm/api/resources/unstable/types/PhoneSwitch.d.mts +2 -3
- package/dist/esm/api/resources/unstable/types/PriorityChanged.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/Reference.d.mts +2 -4
- package/dist/esm/api/resources/unstable/types/RegisterFinVoiceCallRequest.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/SearchRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/SegmentList.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/SingleFilterSearchRequest.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/SlaApplied.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/Snoozed.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/SocialProfile.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/StartingAfterPaging.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/SubscriptionTypeList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TagCompanyRequest.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TagList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TagMultipleUsersRequest.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/Tags.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TeamList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TeamPriorityLevel.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TeammateReference.d.mts +1 -1
- package/dist/esm/api/resources/unstable/types/TicketList.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/TicketPartAuthor.d.mts +4 -4
- package/dist/esm/api/resources/unstable/types/TicketParts.d.mts +3 -5
- package/dist/esm/api/resources/unstable/types/TicketReply.d.mts +9 -9
- package/dist/esm/api/resources/unstable/types/TicketStateList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TicketTypeAttribute.d.mts +17 -17
- package/dist/esm/api/resources/unstable/types/TicketTypeAttributeList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/TicketTypeList.d.mts +2 -2
- package/dist/esm/api/resources/unstable/types/Translation.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/UntagCompanyRequest.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/UpdateDataAttributeRequestBody.d.mts +0 -3
- package/dist/esm/api/resources/unstable/types/UpdateVisitorRequest.d.mts +4 -0
- package/dist/esm/api/resources/unstable/types/UpdateVisitorRequest.mjs +2 -0
- package/dist/esm/api/resources/unstable/types/Visitor.d.mts +54 -56
- package/dist/esm/api/resources/unstable/types/VisitorDeletedObject.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/WhatsappMessageStatusList.d.mts +3 -3
- package/dist/esm/api/resources/unstable/types/WorkflowExport.d.mts +17 -17
- package/dist/esm/api/resources/unstable/types/index.d.mts +4 -0
- package/dist/esm/api/resources/unstable/types/index.mjs +4 -0
- package/dist/esm/api/resources/visitors/client/Client.d.mts +7 -2
- package/dist/esm/api/resources/visitors/client/Client.mjs +19 -7
- package/dist/esm/api/resources/visitors/exports.d.mts +2 -0
- package/dist/esm/api/resources/visitors/exports.mjs +3 -0
- package/dist/esm/api/types/ActivityLog.d.mts +10 -10
- package/dist/esm/api/types/ActivityLogList.d.mts +3 -3
- package/dist/esm/api/types/ActivityLogMetadata.d.mts +20 -20
- package/dist/esm/api/types/AddressableList.d.mts +3 -3
- package/dist/esm/api/types/AdminList.d.mts +2 -2
- package/dist/esm/api/types/AdminPriorityLevel.d.mts +2 -2
- package/dist/esm/api/types/AdminReplyConversationRequest.d.mts +5 -5
- package/dist/esm/api/types/AdminReplyTicketRequest.d.mts +4 -4
- package/dist/esm/api/types/AdminWithApp.d.mts +14 -14
- package/dist/esm/api/types/App.d.mts +7 -8
- package/dist/esm/api/types/ArticleContent.d.mts +9 -9
- package/dist/esm/api/types/ArticleList.d.mts +4 -4
- package/dist/esm/api/types/ArticleStatistics.d.mts +1 -1
- package/dist/esm/api/types/ArticleTranslatedContent.d.mts +38 -38
- package/dist/esm/api/types/AssignConversationRequest.d.mts +1 -1
- package/dist/esm/api/types/AwayStatusReason.d.mts +8 -8
- package/dist/esm/api/types/CallList.d.mts +4 -4
- package/dist/esm/api/types/CloseConversationRequest.d.mts +1 -1
- package/dist/esm/api/types/CollectionList.d.mts +4 -4
- package/dist/esm/api/types/CompanyAttachedContacts.d.mts +4 -4
- package/dist/esm/api/types/CompanyAttachedSegments.d.mts +2 -2
- package/dist/esm/api/types/CompanyData.d.mts +3 -3
- package/dist/esm/api/types/CompanyList.d.mts +4 -4
- package/dist/esm/api/types/CompanyScroll.d.mts +5 -5
- package/dist/esm/api/types/ContactArchived.d.mts +1 -1
- package/dist/esm/api/types/ContactAttachedCompanies.d.mts +4 -4
- package/dist/esm/api/types/ContactBlocked.d.mts +1 -1
- package/dist/esm/api/types/ContactCompanies.d.mts +4 -4
- package/dist/esm/api/types/ContactDeleted.d.mts +1 -1
- package/dist/esm/api/types/ContactList.d.mts +4 -4
- package/dist/esm/api/types/ContactLocation.d.mts +4 -4
- package/dist/esm/api/types/ContactNotes.d.mts +4 -4
- package/dist/esm/api/types/ContactReference.d.mts +3 -3
- package/dist/esm/api/types/ContactReplyBaseRequest.d.mts +3 -3
- package/dist/esm/api/types/ContactReplyEmailRequest.d.mts +1 -1
- package/dist/esm/api/types/ContactReplyIntercomUserIdRequest.d.mts +1 -1
- package/dist/esm/api/types/ContactReplyUserIdRequest.d.mts +1 -1
- package/dist/esm/api/types/ContactSegments.d.mts +2 -2
- package/dist/esm/api/types/ContactSocialProfiles.d.mts +1 -1
- package/dist/esm/api/types/ContactSubscriptionTypes.d.mts +4 -4
- package/dist/esm/api/types/ContactTags.d.mts +4 -4
- package/dist/esm/api/types/ContactUnarchived.d.mts +1 -1
- package/dist/esm/api/types/ContentSourcesList.d.mts +3 -3
- package/dist/esm/api/types/ConversationAttachmentFiles.d.mts +3 -3
- package/dist/esm/api/types/ConversationAttributeUpdatedByAdmin.d.mts +4 -4
- package/dist/esm/api/types/ConversationAttributeUpdatedByWorkflow.d.mts +6 -6
- package/dist/esm/api/types/ConversationContacts.d.mts +2 -3
- package/dist/esm/api/types/ConversationDeleted.d.mts +3 -3
- package/dist/esm/api/types/ConversationFirstContactReply.d.mts +3 -6
- package/dist/esm/api/types/ConversationList.d.mts +4 -4
- package/dist/esm/api/types/ConversationPart.d.mts +18 -18
- package/dist/esm/api/types/ConversationPartAuthor.d.mts +6 -6
- package/dist/esm/api/types/ConversationPartMetadata.d.mts +3 -3
- package/dist/esm/api/types/ConversationParts.d.mts +3 -5
- package/dist/esm/api/types/ConversationRating.d.mts +6 -6
- package/dist/esm/api/types/ConversationResponseTime.d.mts +3 -3
- package/dist/esm/api/types/ConversationSource.d.mts +9 -9
- package/dist/esm/api/types/ConversationStatistics.d.mts +23 -24
- package/dist/esm/api/types/CreateArticleRequest.d.mts +6 -6
- package/dist/esm/api/types/CreateDataAttributeRequest.d.mts +0 -3
- package/dist/esm/api/types/CreateDataEventRequest.d.mts +0 -3
- package/dist/esm/api/types/CreateInternalArticleRequest.d.mts +1 -1
- package/dist/esm/api/types/CreateMessageRequest.d.mts +6 -6
- package/dist/esm/api/types/CreateOrUpdateCompanyRequest.d.mts +9 -9
- package/dist/esm/api/types/CreateOrUpdateTagRequest.d.mts +1 -1
- package/dist/esm/api/types/CreatePhoneSwitchRequest.d.mts +1 -1
- package/dist/esm/api/types/CreateTicketRequestBody.d.mts +6 -6
- package/dist/esm/api/types/CreateTicketTypeRequest.d.mts +4 -4
- package/dist/esm/api/types/CursorPages.d.mts +5 -5
- package/dist/esm/api/types/CustomActionFinished.d.mts +3 -3
- package/dist/esm/api/types/CustomActionStarted.d.mts +2 -2
- package/dist/esm/api/types/CustomChannelContact.d.mts +2 -2
- package/dist/esm/api/types/CustomObjectInstanceDeleted.d.mts +3 -3
- package/dist/esm/api/types/CustomObjectInstanceList.d.mts +2 -2
- package/dist/esm/api/types/DataAttributeList.d.mts +2 -2
- package/dist/esm/api/types/DataEventList.d.mts +5 -5
- package/dist/esm/api/types/DataEventSummary.d.mts +4 -4
- package/dist/esm/api/types/DataEventSummaryItem.d.mts +5 -5
- package/dist/esm/api/types/DataExportCsv.d.mts +26 -26
- package/dist/esm/api/types/DeletedArticleObject.d.mts +3 -3
- package/dist/esm/api/types/DeletedCollectionObject.d.mts +3 -3
- package/dist/esm/api/types/DeletedCompanyObject.d.mts +3 -3
- package/dist/esm/api/types/DeletedInternalArticleObject.d.mts +3 -3
- package/dist/esm/api/types/DeletedObject.d.mts +3 -3
- package/dist/esm/api/types/EmailAddressHeader.d.mts +3 -3
- package/dist/esm/api/types/EmailMessageMetadata.d.mts +2 -2
- package/dist/esm/api/types/Error_.d.mts +3 -4
- package/dist/esm/api/types/FileAttribute.d.mts +7 -7
- package/dist/esm/api/types/GroupContent.d.mts +3 -3
- package/dist/esm/api/types/GroupTranslatedContent.d.mts +38 -38
- package/dist/esm/api/types/InternalArticleList.d.mts +4 -4
- package/dist/esm/api/types/IpAllowlist.d.mts +3 -3
- package/dist/esm/api/types/LinkedObject.d.mts +3 -3
- package/dist/esm/api/types/LinkedObjectList.d.mts +4 -4
- package/dist/esm/api/types/Metadata.d.mts +1 -1
- package/dist/esm/api/types/MultipleFilterSearchRequest.d.mts +2 -2
- package/dist/esm/api/types/NewsItemRequest.d.mts +6 -6
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +2 -3
- package/dist/esm/api/types/NoteList.d.mts +3 -3
- package/dist/esm/api/types/OffsetPages.d.mts +4 -4
- package/dist/esm/api/types/OperatorWorkflowEvent.d.mts +5 -5
- package/dist/esm/api/types/PagesLink.d.mts +5 -5
- package/dist/esm/api/types/PaginatedResponse.d.mts +4 -4
- package/dist/esm/api/types/PartAttachment.d.mts +7 -7
- package/dist/esm/api/types/PhoneSwitch.d.mts +2 -3
- package/dist/esm/api/types/Reference.d.mts +2 -4
- package/dist/esm/api/types/SearchRequest.d.mts +1 -1
- package/dist/esm/api/types/SegmentList.d.mts +3 -3
- package/dist/esm/api/types/SingleFilterSearchRequest.d.mts +3 -3
- package/dist/esm/api/types/SlaApplied.d.mts +3 -3
- package/dist/esm/api/types/SocialProfile.d.mts +3 -3
- package/dist/esm/api/types/StartingAfterPaging.d.mts +2 -2
- package/dist/esm/api/types/SubscriptionTypeList.d.mts +2 -2
- package/dist/esm/api/types/TagCompanyRequest.d.mts +2 -2
- package/dist/esm/api/types/TagList.d.mts +2 -2
- package/dist/esm/api/types/TagMultipleUsersRequest.d.mts +1 -1
- package/dist/esm/api/types/Tags.d.mts +2 -2
- package/dist/esm/api/types/TeamList.d.mts +2 -2
- package/dist/esm/api/types/TeamPriorityLevel.d.mts +2 -2
- package/dist/esm/api/types/TicketList.d.mts +4 -4
- package/dist/esm/api/types/TicketPartAuthor.d.mts +4 -4
- package/dist/esm/api/types/TicketParts.d.mts +3 -5
- package/dist/esm/api/types/TicketReply.d.mts +9 -9
- package/dist/esm/api/types/TicketStateList.d.mts +2 -2
- package/dist/esm/api/types/TicketTypeAttribute.d.mts +17 -17
- package/dist/esm/api/types/TicketTypeAttributeList.d.mts +2 -2
- package/dist/esm/api/types/TicketTypeList.d.mts +2 -2
- package/dist/esm/api/types/Translation.d.mts +3 -3
- package/dist/esm/api/types/UntagCompanyRequest.d.mts +3 -3
- package/dist/esm/api/types/UpdateArticleRequestBody.d.mts +1 -1
- package/dist/esm/api/types/UpdateCompanyRequestBody.d.mts +7 -7
- package/dist/esm/api/types/UpdateDataAttributeRequestBody.d.mts +0 -3
- package/dist/esm/api/types/Visitor.d.mts +54 -56
- package/dist/esm/api/types/VisitorDeletedObject.d.mts +3 -3
- package/dist/esm/api/types/WhatsappMessageStatusList.d.mts +3 -3
- package/dist/esm/api/types/compat.d.mts +6 -0
- package/dist/esm/api/types/compat.mjs +1 -0
- package/dist/esm/api/types/index.d.mts +0 -3
- package/dist/esm/api/types/index.mjs +0 -3
- package/dist/esm/auth/BearerAuthProvider.d.mts +14 -8
- package/dist/esm/auth/BearerAuthProvider.mjs +16 -6
- package/dist/esm/core/auth/AuthProvider.d.mts +1 -0
- package/dist/esm/core/auth/AuthProvider.mjs +6 -1
- package/dist/esm/core/auth/BasicAuth.d.mts +2 -2
- package/dist/esm/core/auth/BasicAuth.mjs +7 -1
- package/dist/esm/core/auth/index.d.mts +1 -1
- package/dist/esm/core/auth/index.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +9 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +56 -98
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +21 -8
- package/dist/esm/core/fetcher/getResponseBody.d.mts +16 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +37 -22
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +173 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +11 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +63 -12
- package/dist/esm/core/fetcher/redactUrl.d.mts +2 -0
- package/dist/esm/core/fetcher/redactUrl.mjs +84 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +27 -3
- package/dist/esm/core/fetcher/signals.d.mts +1 -0
- package/dist/esm/core/fetcher/signals.mjs +10 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/pagination/Page.d.mts +1 -1
- package/dist/esm/core/requestBody.d.mts +12 -0
- package/dist/esm/core/requestBody.mjs +23 -0
- package/dist/esm/core/runtime/index.d.mts +1 -1
- package/dist/esm/core/runtime/index.mjs +1 -1
- package/dist/esm/core/runtime/runtime.d.mts +19 -0
- package/dist/esm/core/runtime/runtime.mjs +80 -8
- package/dist/esm/core/url/QueryStringBuilder.d.mts +48 -0
- package/dist/esm/core/url/QueryStringBuilder.mjs +85 -0
- package/dist/esm/core/url/encodePathParam.d.mts +3 -1
- package/dist/esm/core/url/encodePathParam.mjs +8 -2
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/qs.d.mts +2 -1
- package/dist/esm/core/url/qs.mjs +25 -13
- package/dist/esm/core/utils/setObjectProperty.d.mts +6 -5
- package/dist/esm/core/utils/setObjectProperty.mjs +16 -10
- package/dist/esm/errors/IntercomError.d.mts +4 -1
- package/dist/esm/errors/IntercomError.mjs +27 -2
- package/dist/esm/errors/IntercomTimeoutError.d.mts +5 -2
- package/dist/esm/errors/IntercomTimeoutError.mjs +12 -4
- package/dist/esm/errors/handleNonStatusCodeError.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +31 -30
- package/dist/cjs/api/types/CreateContactRequestTwo.d.ts +0 -1
- package/dist/cjs/api/types/CreateDataEventRequestTwo.d.ts +0 -1
- package/dist/cjs/api/types/UpdateVisitorRequestOne.d.ts +0 -1
- package/dist/esm/api/types/CreateContactRequestTwo.d.mts +0 -1
- package/dist/esm/api/types/CreateDataEventRequestTwo.d.mts +0 -1
- package/dist/esm/api/types/UpdateVisitorRequestOne.d.mts +0 -1
- /package/dist/cjs/api/resources/unstable/resources/conversations/client/requests/{ReplyConversationRequest.js → ReplyConversationBody.js} +0 -0
- /package/dist/cjs/api/resources/unstable/resources/dataAttributes/client/requests/{UpdateDataAttributeRequest.js → UpdateDataAttributeBody.js} +0 -0
- /package/dist/cjs/api/{types/CreateContactRequestTwo.js → resources/unstable/types/CreateContactRequest.js} +0 -0
- /package/dist/cjs/api/{types/CreateDataEventRequestTwo.js → resources/unstable/types/CreateDataEventRequest.js} +0 -0
- /package/dist/cjs/api/{types/UpdateVisitorRequestOne.js → resources/unstable/types/Metadata.js} +0 -0
- /package/dist/esm/api/resources/unstable/resources/conversations/client/requests/{ReplyConversationRequest.mjs → ReplyConversationBody.mjs} +0 -0
- /package/dist/esm/api/resources/unstable/resources/dataAttributes/client/requests/{UpdateDataAttributeRequest.mjs → UpdateDataAttributeBody.mjs} +0 -0
- /package/dist/esm/api/{types/CreateContactRequestTwo.mjs → resources/unstable/types/CreateContactRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CreateDataEventRequestTwo.mjs → resources/unstable/types/CreateDataEventRequest.mjs} +0 -0
- /package/dist/esm/api/{types/UpdateVisitorRequestOne.mjs → resources/unstable/types/Metadata.mjs} +0 -0
|
@@ -4,7 +4,7 @@ import type * as Intercom from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface TicketStateList {
|
|
6
6
|
/** String representing the object's type. Always has the value `list`. */
|
|
7
|
-
type?: string;
|
|
7
|
+
type?: string | undefined;
|
|
8
8
|
/** A list of ticket states associated with a given ticket type. */
|
|
9
|
-
data?: (Intercom.TicketStateDetailed | undefined)[];
|
|
9
|
+
data?: (Intercom.TicketStateDetailed | undefined)[] | undefined;
|
|
10
10
|
}
|
|
@@ -3,39 +3,39 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface TicketTypeAttribute {
|
|
5
5
|
/** String representing the object's type. Always has the value `ticket_type_attribute`. */
|
|
6
|
-
type?: string;
|
|
6
|
+
type?: string | undefined;
|
|
7
7
|
/** The id representing the ticket type attribute. */
|
|
8
|
-
id?: string;
|
|
8
|
+
id?: string | undefined;
|
|
9
9
|
/** The id of the workspace that the ticket type attribute belongs to. */
|
|
10
|
-
workspace_id?: string;
|
|
10
|
+
workspace_id?: string | undefined;
|
|
11
11
|
/** The name of the ticket type attribute */
|
|
12
|
-
name?: string;
|
|
12
|
+
name?: string | undefined;
|
|
13
13
|
/** The description of the ticket type attribute */
|
|
14
|
-
description?: string;
|
|
14
|
+
description?: string | undefined;
|
|
15
15
|
/** The type of the data attribute (allowed values: "string list integer decimal boolean datetime files") */
|
|
16
|
-
data_type?: TicketTypeAttribute.DataType;
|
|
16
|
+
data_type?: TicketTypeAttribute.DataType | undefined;
|
|
17
17
|
/** Input options for the attribute */
|
|
18
|
-
input_options?: Record<string, unknown
|
|
18
|
+
input_options?: Record<string, unknown> | undefined;
|
|
19
19
|
/** The order of the attribute against other attributes */
|
|
20
|
-
order?: number;
|
|
20
|
+
order?: number | undefined;
|
|
21
21
|
/** Whether the attribute is required or not for teammates. */
|
|
22
|
-
required_to_create?: boolean;
|
|
22
|
+
required_to_create?: boolean | undefined;
|
|
23
23
|
/** Whether the attribute is required or not for contacts. */
|
|
24
|
-
required_to_create_for_contacts?: boolean;
|
|
24
|
+
required_to_create_for_contacts?: boolean | undefined;
|
|
25
25
|
/** Whether the attribute is visible or not to teammates. */
|
|
26
|
-
visible_on_create?: boolean;
|
|
26
|
+
visible_on_create?: boolean | undefined;
|
|
27
27
|
/** Whether the attribute is visible or not to contacts. */
|
|
28
|
-
visible_to_contacts?: boolean;
|
|
28
|
+
visible_to_contacts?: boolean | undefined;
|
|
29
29
|
/** Whether the attribute is built in or not. */
|
|
30
|
-
default?: boolean;
|
|
30
|
+
default?: boolean | undefined;
|
|
31
31
|
/** The id of the ticket type that the attribute belongs to. */
|
|
32
|
-
ticket_type_id?: number;
|
|
32
|
+
ticket_type_id?: number | undefined;
|
|
33
33
|
/** Whether the ticket type attribute is archived or not. */
|
|
34
|
-
archived?: boolean;
|
|
34
|
+
archived?: boolean | undefined;
|
|
35
35
|
/** The date and time the ticket type attribute was created. */
|
|
36
|
-
created_at?: number;
|
|
36
|
+
created_at?: number | undefined;
|
|
37
37
|
/** The date and time the ticket type attribute was last updated. */
|
|
38
|
-
updated_at?: number;
|
|
38
|
+
updated_at?: number | undefined;
|
|
39
39
|
}
|
|
40
40
|
export declare namespace TicketTypeAttribute {
|
|
41
41
|
/** The type of the data attribute (allowed values: "string list integer decimal boolean datetime files") */
|
|
@@ -4,7 +4,7 @@ import type * as Intercom from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface TicketTypeAttributeList {
|
|
6
6
|
/** String representing the object's type. Always has the value `ticket_type_attributes.list`. */
|
|
7
|
-
type?: string;
|
|
7
|
+
type?: string | undefined;
|
|
8
8
|
/** A list of ticket type attributes associated with a given ticket type. */
|
|
9
|
-
ticket_type_attributes?: (Intercom.TicketTypeAttribute | undefined)[];
|
|
9
|
+
ticket_type_attributes?: (Intercom.TicketTypeAttribute | undefined)[] | undefined;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ import type * as Intercom from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface TicketTypeList {
|
|
6
6
|
/** String representing the object's type. Always has the value `list`. */
|
|
7
|
-
type?: string;
|
|
7
|
+
type?: string | undefined;
|
|
8
8
|
/** A list of ticket_types associated with a given workspace. */
|
|
9
|
-
data?: (Intercom.TicketType | undefined)[];
|
|
9
|
+
data?: (Intercom.TicketType | undefined)[] | undefined;
|
|
10
10
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Translation {
|
|
5
5
|
/** The localised name of the subscription type. */
|
|
6
|
-
name?: string;
|
|
6
|
+
name?: string | undefined;
|
|
7
7
|
/** The localised description of the subscription type. */
|
|
8
|
-
description?: string;
|
|
8
|
+
description?: string | undefined;
|
|
9
9
|
/** The two character identifier for the language of the translation object. */
|
|
10
|
-
locale?: string;
|
|
10
|
+
locale?: string | undefined;
|
|
11
11
|
}
|
|
@@ -12,11 +12,11 @@ export declare namespace UntagCompanyRequest {
|
|
|
12
12
|
namespace Companies {
|
|
13
13
|
interface Item {
|
|
14
14
|
/** The Intercom defined id representing the company. */
|
|
15
|
-
id?: string;
|
|
15
|
+
id?: string | undefined;
|
|
16
16
|
/** The company id you have defined for the company. */
|
|
17
|
-
company_id?: string;
|
|
17
|
+
company_id?: string | undefined;
|
|
18
18
|
/** Always set to true */
|
|
19
|
-
untag?: boolean;
|
|
19
|
+
untag?: boolean | undefined;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface UpdateCompanyRequestBody {
|
|
5
5
|
/** The name of the Company */
|
|
6
|
-
name?: string;
|
|
6
|
+
name?: string | undefined;
|
|
7
7
|
/** The name of the plan you have associated with the company. */
|
|
8
|
-
plan?: string;
|
|
8
|
+
plan?: string | undefined;
|
|
9
9
|
/** The number of employees in this company. */
|
|
10
|
-
size?: number;
|
|
10
|
+
size?: number | undefined;
|
|
11
11
|
/** The URL for this company's website. Please note that the value specified here is not validated. Accepts any string. */
|
|
12
|
-
website?: string;
|
|
12
|
+
website?: string | undefined;
|
|
13
13
|
/** The industry that this company operates in. */
|
|
14
|
-
industry?: string;
|
|
14
|
+
industry?: string | undefined;
|
|
15
15
|
/** A hash of key/value pairs containing any other data about the company you want Intercom to store. */
|
|
16
|
-
custom_attributes?: Record<string, string
|
|
16
|
+
custom_attributes?: Record<string, string> | undefined;
|
|
17
17
|
/** How much revenue the company generates for your business. Note that this will truncate floats. i.e. it only allow for whole integers, 155.98 will be truncated to 155. Note that this has an upper limit of 2**31-1 or 2147483647.. */
|
|
18
|
-
monthly_spend?: number;
|
|
18
|
+
monthly_spend?: number | undefined;
|
|
19
19
|
}
|
|
@@ -4,122 +4,120 @@ import type * as Intercom from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface Visitor {
|
|
6
6
|
/** Value is 'visitor' */
|
|
7
|
-
type
|
|
7
|
+
type: "visitor";
|
|
8
8
|
/** The Intercom defined id representing the Visitor. */
|
|
9
|
-
id
|
|
9
|
+
id: string;
|
|
10
10
|
/** Automatically generated identifier for the Visitor. */
|
|
11
|
-
user_id
|
|
11
|
+
user_id: string;
|
|
12
12
|
/** Identifies if this visitor is anonymous. */
|
|
13
|
-
anonymous?: boolean;
|
|
13
|
+
anonymous?: boolean | undefined;
|
|
14
14
|
/** The email of the visitor. */
|
|
15
|
-
email?: string;
|
|
15
|
+
email?: string | undefined;
|
|
16
16
|
/** The phone number of the visitor. */
|
|
17
|
-
phone?: string;
|
|
17
|
+
phone?: string | undefined;
|
|
18
18
|
/** The name of the visitor. */
|
|
19
|
-
name?: string;
|
|
19
|
+
name?: string | undefined;
|
|
20
20
|
/** The pseudonym of the visitor. */
|
|
21
|
-
pseudonym?: string;
|
|
22
|
-
avatar?: Visitor.Avatar;
|
|
21
|
+
pseudonym?: string | undefined;
|
|
22
|
+
avatar?: Visitor.Avatar | undefined;
|
|
23
23
|
/** The id of the app the visitor is associated with. */
|
|
24
|
-
app_id?: string;
|
|
25
|
-
companies?: Visitor.Companies;
|
|
26
|
-
location_data?: Visitor.LocationData;
|
|
24
|
+
app_id?: string | undefined;
|
|
25
|
+
companies?: Visitor.Companies | undefined;
|
|
26
|
+
location_data?: Visitor.LocationData | undefined;
|
|
27
27
|
/** The time the Lead last recorded making a request. */
|
|
28
|
-
las_request_at?: number;
|
|
28
|
+
las_request_at?: number | undefined;
|
|
29
29
|
/** The time the Visitor was added to Intercom. */
|
|
30
|
-
created_at?: number;
|
|
30
|
+
created_at?: number | undefined;
|
|
31
31
|
/** The time the Visitor was added to Intercom. */
|
|
32
|
-
remote_created_at?: number;
|
|
32
|
+
remote_created_at?: number | undefined;
|
|
33
33
|
/** The time the Visitor signed up for your product. */
|
|
34
|
-
signed_up_at?: number;
|
|
34
|
+
signed_up_at?: number | undefined;
|
|
35
35
|
/** The last time the Visitor was updated. */
|
|
36
|
-
updated_at?: number;
|
|
36
|
+
updated_at?: number | undefined;
|
|
37
37
|
/** The number of sessions the Visitor has had. */
|
|
38
|
-
session_count?: number;
|
|
39
|
-
social_profiles?: Visitor.SocialProfiles;
|
|
38
|
+
session_count?: number | undefined;
|
|
39
|
+
social_profiles?: Visitor.SocialProfiles | undefined;
|
|
40
40
|
/** The id of the admin that owns the Visitor. */
|
|
41
|
-
owner_id?: string;
|
|
41
|
+
owner_id?: string | undefined;
|
|
42
42
|
/** Whether the Visitor is unsubscribed from emails. */
|
|
43
|
-
unsubscribed_from_emails?: boolean;
|
|
43
|
+
unsubscribed_from_emails?: boolean | undefined;
|
|
44
44
|
/** Identifies if this visitor has marked an email as spam. */
|
|
45
|
-
marked_email_as_spam?: boolean;
|
|
45
|
+
marked_email_as_spam?: boolean | undefined;
|
|
46
46
|
/** Identifies if this visitor has had a hard bounce. */
|
|
47
|
-
has_hard_bounced?: boolean;
|
|
48
|
-
tags?: Visitor.Tags;
|
|
49
|
-
segments?: Visitor.Segments;
|
|
47
|
+
has_hard_bounced?: boolean | undefined;
|
|
48
|
+
tags?: Visitor.Tags | undefined;
|
|
49
|
+
segments?: Visitor.Segments | undefined;
|
|
50
50
|
/** The custom attributes you have set on the Visitor. */
|
|
51
|
-
custom_attributes?: Record<string, unknown
|
|
51
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
52
52
|
/** The referer of the visitor. */
|
|
53
|
-
referrer?: string;
|
|
53
|
+
referrer?: string | undefined;
|
|
54
54
|
/** The utm_campaign of the visitor. */
|
|
55
|
-
utm_campaign?: string;
|
|
55
|
+
utm_campaign?: string | undefined;
|
|
56
56
|
/** The utm_content of the visitor. */
|
|
57
|
-
utm_content?: string;
|
|
57
|
+
utm_content?: string | undefined;
|
|
58
58
|
/** The utm_medium of the visitor. */
|
|
59
|
-
utm_medium?: string;
|
|
59
|
+
utm_medium?: string | undefined;
|
|
60
60
|
/** The utm_source of the visitor. */
|
|
61
|
-
utm_source?: string;
|
|
61
|
+
utm_source?: string | undefined;
|
|
62
62
|
/** The utm_term of the visitor. */
|
|
63
|
-
utm_term?: string;
|
|
63
|
+
utm_term?: string | undefined;
|
|
64
64
|
/** Identifies if this visitor has do not track enabled. */
|
|
65
|
-
do_not_track?: boolean;
|
|
65
|
+
do_not_track?: boolean | undefined;
|
|
66
66
|
}
|
|
67
67
|
export declare namespace Visitor {
|
|
68
68
|
interface Avatar {
|
|
69
|
-
|
|
70
|
-
type?: string;
|
|
69
|
+
type?: string | undefined;
|
|
71
70
|
/** This object represents the avatar associated with the visitor. */
|
|
72
|
-
image_url?: string;
|
|
71
|
+
image_url?: string | undefined;
|
|
73
72
|
}
|
|
74
73
|
interface Companies {
|
|
75
74
|
/** The type of the object */
|
|
76
|
-
type?: "company.list";
|
|
77
|
-
companies?: Intercom.Company[];
|
|
75
|
+
type?: "company.list" | undefined;
|
|
76
|
+
companies?: Intercom.Company[] | undefined;
|
|
78
77
|
}
|
|
79
78
|
interface LocationData {
|
|
80
|
-
|
|
81
|
-
type?: string;
|
|
79
|
+
type?: string | undefined;
|
|
82
80
|
/** The city name of the visitor. */
|
|
83
|
-
city_name?: string;
|
|
81
|
+
city_name?: string | undefined;
|
|
84
82
|
/** The continent code of the visitor. */
|
|
85
|
-
continent_code?: string;
|
|
83
|
+
continent_code?: string | undefined;
|
|
86
84
|
/** The country code of the visitor. */
|
|
87
|
-
country_code?: string;
|
|
85
|
+
country_code?: string | undefined;
|
|
88
86
|
/** The country name of the visitor. */
|
|
89
|
-
country_name?: string;
|
|
87
|
+
country_name?: string | undefined;
|
|
90
88
|
/** The postal code of the visitor. */
|
|
91
|
-
postal_code?: string;
|
|
89
|
+
postal_code?: string | undefined;
|
|
92
90
|
/** The region name of the visitor. */
|
|
93
|
-
region_name?: string;
|
|
91
|
+
region_name?: string | undefined;
|
|
94
92
|
/** The timezone of the visitor. */
|
|
95
|
-
timezone?: string;
|
|
93
|
+
timezone?: string | undefined;
|
|
96
94
|
}
|
|
97
95
|
interface SocialProfiles {
|
|
98
96
|
/** The type of the object */
|
|
99
|
-
type?: "social_profile.list";
|
|
100
|
-
social_profiles?: string[];
|
|
97
|
+
type?: "social_profile.list" | undefined;
|
|
98
|
+
social_profiles?: string[] | undefined;
|
|
101
99
|
}
|
|
102
100
|
interface Tags {
|
|
103
101
|
/** The type of the object */
|
|
104
|
-
type?: "tag.list";
|
|
105
|
-
tags?: Tags.Tags.Item[];
|
|
102
|
+
type?: "tag.list" | undefined;
|
|
103
|
+
tags?: Tags.Tags.Item[] | undefined;
|
|
106
104
|
}
|
|
107
105
|
namespace Tags {
|
|
108
106
|
type Tags = Tags.Item[];
|
|
109
107
|
namespace Tags {
|
|
110
108
|
interface Item {
|
|
111
109
|
/** The type of the object */
|
|
112
|
-
type?: "tag";
|
|
110
|
+
type?: "tag" | undefined;
|
|
113
111
|
/** The id of the tag. */
|
|
114
|
-
id?: string;
|
|
112
|
+
id?: string | undefined;
|
|
115
113
|
/** The name of the tag. */
|
|
116
|
-
name?: string;
|
|
114
|
+
name?: string | undefined;
|
|
117
115
|
}
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
interface Segments {
|
|
121
119
|
/** The type of the object */
|
|
122
|
-
type?: "segment.list";
|
|
123
|
-
segments?: string[];
|
|
120
|
+
type?: "segment.list" | undefined;
|
|
121
|
+
segments?: string[] | undefined;
|
|
124
122
|
}
|
|
125
123
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface VisitorDeletedObject {
|
|
5
5
|
/** The unique identifier for the visitor which is given by Intercom. */
|
|
6
|
-
id?: string;
|
|
6
|
+
id?: string | undefined;
|
|
7
7
|
/** The type of object which was deleted */
|
|
8
|
-
type?: "visitor";
|
|
8
|
+
type?: "visitor" | undefined;
|
|
9
9
|
/** Automatically generated identifier for the Visitor. */
|
|
10
|
-
user_id?: string;
|
|
10
|
+
user_id?: string | undefined;
|
|
11
11
|
}
|
|
@@ -15,7 +15,7 @@ export declare namespace WhatsappMessageStatusList {
|
|
|
15
15
|
/** Total number of pages */
|
|
16
16
|
total_pages: number;
|
|
17
17
|
/** Information for fetching next page (null if no more pages) */
|
|
18
|
-
next?: Pages.Next;
|
|
18
|
+
next?: Pages.Next | undefined;
|
|
19
19
|
}
|
|
20
20
|
namespace Pages {
|
|
21
21
|
/**
|
|
@@ -23,7 +23,7 @@ export declare namespace WhatsappMessageStatusList {
|
|
|
23
23
|
*/
|
|
24
24
|
interface Next {
|
|
25
25
|
/** Cursor for the next page */
|
|
26
|
-
starting_after?: string;
|
|
26
|
+
starting_after?: string | undefined;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
type Events = Events.Item[];
|
|
@@ -44,7 +44,7 @@ export declare namespace WhatsappMessageStatusList {
|
|
|
44
44
|
/** WhatsApp's message identifier */
|
|
45
45
|
whatsapp_message_id: string;
|
|
46
46
|
/** Name of the WhatsApp template used */
|
|
47
|
-
template_name?: string;
|
|
47
|
+
template_name?: string | undefined;
|
|
48
48
|
}
|
|
49
49
|
namespace Item {
|
|
50
50
|
/** Current status of the message */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** @deprecated Placeholder kept for backwards compatibility with 7.0.x. */
|
|
2
|
+
export type CreateContactRequestTwo = unknown;
|
|
3
|
+
/** @deprecated Placeholder kept for backwards compatibility with 7.0.x. */
|
|
4
|
+
export type CreateDataEventRequestTwo = unknown;
|
|
5
|
+
/** @deprecated Placeholder kept for backwards compatibility with 7.0.x. */
|
|
6
|
+
export type UpdateVisitorRequestOne = unknown;
|
|
@@ -64,10 +64,8 @@ export * from "./ConversationStatistics.js";
|
|
|
64
64
|
export * from "./ConversationTeammates.js";
|
|
65
65
|
export * from "./CreateArticleRequest.js";
|
|
66
66
|
export * from "./CreateContactRequest.js";
|
|
67
|
-
export * from "./CreateContactRequestTwo.js";
|
|
68
67
|
export * from "./CreateDataAttributeRequest.js";
|
|
69
68
|
export * from "./CreateDataEventRequest.js";
|
|
70
|
-
export * from "./CreateDataEventRequestTwo.js";
|
|
71
69
|
export * from "./CreateInternalArticleRequest.js";
|
|
72
70
|
export * from "./CreateMessageRequest.js";
|
|
73
71
|
export * from "./CreateOrUpdateCompanyRequest.js";
|
|
@@ -157,7 +155,6 @@ export * from "./UpdateArticleRequestBody.js";
|
|
|
157
155
|
export * from "./UpdateCompanyRequestBody.js";
|
|
158
156
|
export * from "./UpdateDataAttributeRequestBody.js";
|
|
159
157
|
export * from "./UpdateVisitorRequest.js";
|
|
160
|
-
export * from "./UpdateVisitorRequestOne.js";
|
|
161
158
|
export * from "./Visitor.js";
|
|
162
159
|
export * from "./VisitorDeletedObject.js";
|
|
163
160
|
export * from "./WhatsappMessageStatusList.js";
|
|
@@ -80,10 +80,8 @@ __exportStar(require("./ConversationStatistics.js"), exports);
|
|
|
80
80
|
__exportStar(require("./ConversationTeammates.js"), exports);
|
|
81
81
|
__exportStar(require("./CreateArticleRequest.js"), exports);
|
|
82
82
|
__exportStar(require("./CreateContactRequest.js"), exports);
|
|
83
|
-
__exportStar(require("./CreateContactRequestTwo.js"), exports);
|
|
84
83
|
__exportStar(require("./CreateDataAttributeRequest.js"), exports);
|
|
85
84
|
__exportStar(require("./CreateDataEventRequest.js"), exports);
|
|
86
|
-
__exportStar(require("./CreateDataEventRequestTwo.js"), exports);
|
|
87
85
|
__exportStar(require("./CreateInternalArticleRequest.js"), exports);
|
|
88
86
|
__exportStar(require("./CreateMessageRequest.js"), exports);
|
|
89
87
|
__exportStar(require("./CreateOrUpdateCompanyRequest.js"), exports);
|
|
@@ -173,7 +171,6 @@ __exportStar(require("./UpdateArticleRequestBody.js"), exports);
|
|
|
173
171
|
__exportStar(require("./UpdateCompanyRequestBody.js"), exports);
|
|
174
172
|
__exportStar(require("./UpdateDataAttributeRequestBody.js"), exports);
|
|
175
173
|
__exportStar(require("./UpdateVisitorRequest.js"), exports);
|
|
176
|
-
__exportStar(require("./UpdateVisitorRequestOne.js"), exports);
|
|
177
174
|
__exportStar(require("./Visitor.js"), exports);
|
|
178
175
|
__exportStar(require("./VisitorDeletedObject.js"), exports);
|
|
179
176
|
__exportStar(require("./WhatsappMessageStatusList.js"), exports);
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import * as core from "../core/index.js";
|
|
2
|
-
|
|
3
|
-
interface Options {
|
|
4
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
2
|
+
declare const TOKEN_PARAM: "token";
|
|
7
3
|
export declare class BearerAuthProvider implements core.AuthProvider {
|
|
8
|
-
private readonly
|
|
4
|
+
private readonly options;
|
|
9
5
|
constructor(options: BearerAuthProvider.Options);
|
|
10
|
-
static canCreate(options: BearerAuthProvider.Options): boolean;
|
|
11
|
-
getAuthRequest(
|
|
6
|
+
static canCreate(options: Partial<BearerAuthProvider.Options>): boolean;
|
|
7
|
+
getAuthRequest({ endpointMetadata, }?: {
|
|
12
8
|
endpointMetadata?: core.EndpointMetadata;
|
|
13
9
|
}): Promise<core.AuthRequest>;
|
|
14
10
|
}
|
|
11
|
+
export declare namespace BearerAuthProvider {
|
|
12
|
+
const AUTH_SCHEME: "bearerAuth";
|
|
13
|
+
const AUTH_CONFIG_ERROR_MESSAGE: string;
|
|
14
|
+
type Options = AuthOptions;
|
|
15
|
+
type AuthOptions = {
|
|
16
|
+
[TOKEN_PARAM]?: core.Supplier<core.BearerToken | undefined> | undefined;
|
|
17
|
+
};
|
|
18
|
+
function createInstance(options: Options): core.AuthProvider;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -46,21 +46,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
46
46
|
exports.BearerAuthProvider = void 0;
|
|
47
47
|
const core = __importStar(require("../core/index.js"));
|
|
48
48
|
const errors = __importStar(require("../errors/index.js"));
|
|
49
|
+
const TOKEN_PARAM = "token";
|
|
50
|
+
const ENV_TOKEN = "INTERCOM_API_KEY";
|
|
49
51
|
class BearerAuthProvider {
|
|
50
52
|
constructor(options) {
|
|
51
|
-
this.
|
|
53
|
+
this.options = options;
|
|
52
54
|
}
|
|
53
55
|
static canCreate(options) {
|
|
54
56
|
var _a;
|
|
55
|
-
return options
|
|
57
|
+
return (options === null || options === void 0 ? void 0 : options[TOKEN_PARAM]) != null || ((_a = process.env) === null || _a === void 0 ? void 0 : _a[ENV_TOKEN]) != null;
|
|
56
58
|
}
|
|
57
|
-
getAuthRequest(
|
|
58
|
-
return __awaiter(this,
|
|
59
|
+
getAuthRequest() {
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
|
|
59
61
|
var _a, _b;
|
|
60
|
-
const token = (_a = (yield core.Supplier.get(this.
|
|
62
|
+
const token = (_a = (yield core.Supplier.get(this.options[TOKEN_PARAM]))) !== null && _a !== void 0 ? _a : (_b = process.env) === null || _b === void 0 ? void 0 : _b[ENV_TOKEN];
|
|
61
63
|
if (token == null) {
|
|
62
64
|
throw new errors.IntercomError({
|
|
63
|
-
message:
|
|
65
|
+
message: BearerAuthProvider.AUTH_CONFIG_ERROR_MESSAGE,
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
return {
|
|
@@ -70,3 +72,11 @@ class BearerAuthProvider {
|
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
exports.BearerAuthProvider = BearerAuthProvider;
|
|
75
|
+
(function (BearerAuthProvider) {
|
|
76
|
+
BearerAuthProvider.AUTH_SCHEME = "bearerAuth";
|
|
77
|
+
BearerAuthProvider.AUTH_CONFIG_ERROR_MESSAGE = `Please provide '${TOKEN_PARAM}' when initializing the client, or set the '${ENV_TOKEN}' environment variable`;
|
|
78
|
+
function createInstance(options) {
|
|
79
|
+
return new BearerAuthProvider(options);
|
|
80
|
+
}
|
|
81
|
+
BearerAuthProvider.createInstance = createInstance;
|
|
82
|
+
})(BearerAuthProvider || (exports.BearerAuthProvider = BearerAuthProvider = {}));
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isAuthProvider = isAuthProvider;
|
|
4
|
+
function isAuthProvider(value) {
|
|
5
|
+
return (typeof value === "object" &&
|
|
6
|
+
value !== null &&
|
|
7
|
+
"getAuthRequest" in value &&
|
|
8
|
+
typeof value.getAuthRequest === "function");
|
|
9
|
+
}
|
|
@@ -5,10 +5,16 @@ const base64_js_1 = require("../base64.js");
|
|
|
5
5
|
const BASIC_AUTH_HEADER_PREFIX = /^Basic /i;
|
|
6
6
|
exports.BasicAuth = {
|
|
7
7
|
toAuthorizationHeader: (basicAuth) => {
|
|
8
|
+
var _a, _b;
|
|
8
9
|
if (basicAuth == null) {
|
|
9
10
|
return undefined;
|
|
10
11
|
}
|
|
11
|
-
const
|
|
12
|
+
const username = (_a = basicAuth.username) !== null && _a !== void 0 ? _a : "";
|
|
13
|
+
const password = (_b = basicAuth.password) !== null && _b !== void 0 ? _b : "";
|
|
14
|
+
if (username === "" && password === "") {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
const token = (0, base64_js_1.base64Encode)(`${username}:${password}`);
|
|
12
18
|
return `Basic ${token}`;
|
|
13
19
|
},
|
|
14
20
|
fromAuthorizationHeader: (header) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export { type AuthProvider, isAuthProvider } from "./AuthProvider.js";
|
|
2
2
|
export type { AuthRequest } from "./AuthRequest.js";
|
|
3
3
|
export { BasicAuth } from "./BasicAuth.js";
|
|
4
4
|
export { BearerToken } from "./BearerToken.js";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoOpAuthProvider = exports.BearerToken = exports.BasicAuth = void 0;
|
|
3
|
+
exports.NoOpAuthProvider = exports.BearerToken = exports.BasicAuth = exports.isAuthProvider = void 0;
|
|
4
|
+
var AuthProvider_js_1 = require("./AuthProvider.js");
|
|
5
|
+
Object.defineProperty(exports, "isAuthProvider", { enumerable: true, get: function () { return AuthProvider_js_1.isAuthProvider; } });
|
|
4
6
|
var BasicAuth_js_1 = require("./BasicAuth.js");
|
|
5
7
|
Object.defineProperty(exports, "BasicAuth", { enumerable: true, get: function () { return BasicAuth_js_1.BasicAuth; } });
|
|
6
8
|
var BearerToken_js_1 = require("./BearerToken.js");
|
|
@@ -14,6 +14,6 @@ export type BinaryResponse = {
|
|
|
14
14
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
15
15
|
* Some versions of the Fetch API may not support this method.
|
|
16
16
|
*/
|
|
17
|
-
bytes?():
|
|
17
|
+
bytes?(): Promise<Uint8Array>;
|
|
18
18
|
};
|
|
19
19
|
export declare function getBinaryResponse(response: Response): BinaryResponse;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { EndpointMetadata } from "./EndpointMetadata.js";
|
|
2
2
|
import type { Supplier } from "./Supplier.js";
|
|
3
3
|
type EndpointSupplierFn<T> = (arg: {
|
|
4
|
-
endpointMetadata
|
|
4
|
+
endpointMetadata?: EndpointMetadata;
|
|
5
5
|
}) => T | Promise<T>;
|
|
6
6
|
export type EndpointSupplier<T> = Supplier<T> | EndpointSupplierFn<T>;
|
|
7
7
|
export declare const EndpointSupplier: {
|
|
8
8
|
get: <T>(supplier: EndpointSupplier<T>, arg: {
|
|
9
|
-
endpointMetadata
|
|
9
|
+
endpointMetadata?: EndpointMetadata;
|
|
10
10
|
}) => Promise<T>;
|
|
11
11
|
};
|
|
12
12
|
export {};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { type LogConfig, type Logger } from "../logging/logger.js";
|
|
2
2
|
import type { APIResponse } from "./APIResponse.js";
|
|
3
3
|
import type { EndpointMetadata } from "./EndpointMetadata.js";
|
|
4
|
-
import { EndpointSupplier } from "./EndpointSupplier.js";
|
|
5
4
|
export type FetchFunction = <R = unknown>(args: Fetcher.Args) => Promise<APIResponse<R, Fetcher.Error>>;
|
|
6
5
|
export declare namespace Fetcher {
|
|
7
6
|
interface Args {
|
|
8
7
|
url: string;
|
|
9
8
|
method: string;
|
|
10
9
|
contentType?: string;
|
|
11
|
-
headers?: Record<string,
|
|
10
|
+
headers?: Record<string, unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Prefer `queryString` (produced by `core.url.queryBuilder()`).
|
|
13
|
+
* Retained for backwards compatibility with custom fetchers and callers that
|
|
14
|
+
* still construct request args with a query-parameter object.
|
|
15
|
+
*/
|
|
12
16
|
queryParameters?: Record<string, unknown>;
|
|
17
|
+
queryString?: string;
|
|
13
18
|
body?: unknown;
|
|
14
19
|
timeoutMs?: number;
|
|
15
20
|
maxRetries?: number;
|
|
@@ -39,10 +44,12 @@ export declare namespace Fetcher {
|
|
|
39
44
|
}
|
|
40
45
|
interface TimeoutError {
|
|
41
46
|
reason: "timeout";
|
|
47
|
+
cause?: unknown;
|
|
42
48
|
}
|
|
43
49
|
interface UnknownError {
|
|
44
50
|
reason: "unknown";
|
|
45
51
|
errorMessage: string;
|
|
52
|
+
cause?: unknown;
|
|
46
53
|
}
|
|
47
54
|
}
|
|
48
55
|
export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
|