rcs-js 2.0.6 → 2.0.7
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 +248 -0
- package/dist/cjs/BaseClient.d.ts +30 -0
- package/dist/cjs/{api/types/RcsCards.js → BaseClient.js} +1 -3
- package/dist/cjs/Client.d.ts +6 -26
- package/dist/cjs/Client.js +27 -29
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -4
- package/dist/cjs/api/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/errors/InternalServerError.d.ts +2 -5
- package/dist/cjs/api/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -4
- package/dist/cjs/api/errors/NotFoundError.js +1 -3
- package/dist/cjs/api/errors/NotImplementedError.d.ts +2 -5
- package/dist/cjs/api/errors/NotImplementedError.js +1 -3
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +2 -5
- package/dist/cjs/api/errors/PaymentRequiredError.js +1 -3
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +2 -5
- package/dist/cjs/api/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/errors/index.d.ts +2 -2
- package/dist/cjs/api/errors/index.js +2 -2
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/audiences/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/audiences/client/Client.js +32 -26
- package/dist/cjs/api/resources/audiences/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesDeleteRequest.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesDeleteRequest.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesGetRequest.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/CreateAudienceParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/CreateAudienceParams.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/UpdateAudienceParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/UpdateAudienceParams.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/audiences/index.d.ts +1 -1
- package/dist/cjs/api/resources/audiences/index.js +1 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.js +16 -14
- package/dist/cjs/api/resources/audiences/resources/contacts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.js +1 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.js +1 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/audiences/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/audiences/resources/index.js +4 -4
- package/dist/cjs/api/resources/audiences/types/AudiencesGetResponse.d.ts +1 -4
- package/dist/cjs/api/resources/audiences/types/AudiencesGetResponse.js +1 -3
- package/dist/cjs/api/resources/brands/client/Client.d.ts +6 -25
- package/dist/cjs/api/resources/brands/client/Client.js +46 -34
- package/dist/cjs/api/resources/brands/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/brands/client/requests/AutofillBrandParams.d.ts +0 -3
- package/dist/cjs/api/resources/brands/client/requests/AutofillBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +4 -4
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.d.ts +4 -4
- package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/VetBrandParams.d.ts +1 -5
- package/dist/cjs/api/resources/brands/client/requests/VetBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/index.d.ts +5 -5
- package/dist/cjs/api/resources/campaigns/client/Client.d.ts +3 -13
- package/dist/cjs/api/resources/campaigns/client/Client.js +5 -7
- package/dist/cjs/api/resources/campaigns/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +36 -28
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/index.d.ts +5 -5
- package/dist/cjs/api/resources/campaigns/resources/index.js +9 -9
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +36 -40
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +68 -43
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +112 -49
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +20 -25
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +52 -28
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +66 -4
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.js +1 -3
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/contacts/client/Client.js +24 -20
- package/dist/cjs/api/resources/contacts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/CreateContactParams.d.ts +1 -4
- package/dist/cjs/api/resources/contacts/client/requests/CreateContactParams.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +1 -4
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/conversations/client/Client.js +37 -31
- package/dist/cjs/api/resources/conversations/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +0 -3
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/index.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/index.js +1 -1
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +1 -3
- package/dist/cjs/api/resources/conversations/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/types/index.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +12 -12
- package/dist/cjs/api/resources/index.js +16 -16
- package/dist/cjs/api/resources/messages/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/messages/client/Client.js +101 -21
- package/dist/cjs/api/resources/messages/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +0 -3
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.js +1 -3
- package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/messages/resources/index.js +8 -8
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +16 -14
- package/dist/cjs/api/resources/messages/resources/mms/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/Mms.d.ts +1 -4
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/Mms.js +1 -3
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/types/MmsSendResponse.d.ts +2 -5
- package/dist/cjs/api/resources/messages/resources/mms/types/MmsSendResponse.js +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +5 -26
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +26 -19
- package/dist/cjs/api/resources/messages/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.ts +0 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.js +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/types/SendRichMessageResponse.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/rcs/types/{RcsSendResponse.js → SendRichMessageResponse.js} +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/types/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.js +16 -14
- package/dist/cjs/api/resources/messages/resources/sms/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/Sms.d.ts +1 -4
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/Sms.js +1 -3
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/types/SmsSendResponse.d.ts +2 -5
- package/dist/cjs/api/resources/messages/resources/sms/types/SmsSendResponse.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +5 -26
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +26 -22
- package/dist/cjs/api/resources/phoneNumbers/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.ts +0 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.js +6 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/phoneNumbers/index.d.ts +1 -1
- package/dist/cjs/api/resources/phoneNumbers/index.js +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +16 -14
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.ts +0 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/index.js +6 -6
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +18 -16
- package/dist/cjs/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.js +1 -3
- package/dist/cjs/api/resources/rcs/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/rcs/client/Client.js +22 -18
- package/dist/cjs/api/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsLinkRequest.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsLinkRequest.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/status/client/Client.d.ts +2 -12
- package/dist/cjs/api/resources/status/client/Client.js +1 -3
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +39 -31
- package/dist/cjs/api/resources/tools/client/Client.d.ts +4 -14
- package/dist/cjs/api/resources/tools/client/Client.js +5 -7
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +16 -14
- package/dist/cjs/api/resources/tools/resources/contactCard/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +16 -14
- package/dist/cjs/api/resources/tools/resources/file/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/tools/resources/index.js +8 -8
- package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/url/client/Client.js +24 -20
- package/dist/cjs/api/resources/tools/resources/url/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/url/client/requests/CreateUrlParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/url/client/requests/UpdateUrlParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/url/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/webhooks/client/Client.js +10 -10
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.d.ts +0 -3
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.js +1 -3
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/AdvancedPhoneInformation.d.ts +2 -5
- package/dist/cjs/api/types/AdvancedPhoneInformation.js +7 -3
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -4
- package/dist/cjs/api/types/AttachWebhookParams.js +1 -3
- package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +1 -4
- package/dist/cjs/api/types/AttachedPhoneNumberResult.js +1 -3
- package/dist/cjs/api/types/AudienceCountOnly.d.ts +0 -3
- package/dist/cjs/api/types/AudienceCountOnly.js +1 -3
- package/dist/cjs/api/types/AudienceWithPagination.d.ts +1 -4
- package/dist/cjs/api/types/AudienceWithPagination.js +1 -3
- package/dist/cjs/api/types/AutofillCampaignParams.d.ts +0 -3
- package/dist/cjs/api/types/AutofillCampaignParams.js +1 -3
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +1 -4
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.js +1 -3
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +1 -4
- package/dist/cjs/api/types/BadRequestErrorBody.js +1 -3
- package/dist/cjs/api/types/BaseRichMessage.d.ts +9 -0
- package/dist/cjs/api/types/{RcsBase.js → BaseRichMessage.js} +1 -3
- package/dist/cjs/api/types/BasicPhoneInformation.d.ts +1 -4
- package/dist/cjs/api/types/BasicPhoneInformation.js +1 -3
- package/dist/cjs/api/types/BrandStatus.d.ts +1 -4
- package/dist/cjs/api/types/BrandStatus.js +1 -3
- package/dist/cjs/api/types/BrandStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/BrandStatusEnum.js +10 -3
- package/dist/cjs/api/types/ButtonClicked.d.ts +1 -4
- package/dist/cjs/api/types/ButtonClicked.js +1 -3
- package/dist/cjs/api/types/ButtonClickedData.d.ts +2 -5
- package/dist/cjs/api/types/ButtonClickedData.js +7 -3
- package/dist/cjs/api/types/CampaignEnum.d.ts +1 -4
- package/dist/cjs/api/types/CampaignEnum.js +7 -3
- package/dist/cjs/api/types/CampaignQuery.d.ts +1 -4
- package/dist/cjs/api/types/CampaignQuery.js +1 -3
- package/dist/cjs/api/types/CampaignSubmissionResult.d.ts +0 -3
- package/dist/cjs/api/types/CampaignSubmissionResult.js +1 -3
- package/dist/cjs/api/types/CampaignValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/CampaignValidationResult.js +1 -3
- package/dist/cjs/api/types/CancelScheduledMessageResponse.d.ts +4 -0
- package/dist/cjs/api/types/{Options.js → CancelScheduledMessageResponse.js} +1 -3
- package/dist/cjs/api/types/CompanyEntityTypeEnum.d.ts +9 -0
- package/dist/cjs/api/types/CompanyEntityTypeEnum.js +12 -0
- package/dist/cjs/api/types/CompanySectorEnum.d.ts +2 -7
- package/dist/cjs/api/types/CompanySectorEnum.js +2 -3
- package/dist/cjs/api/types/CompanyTypeEnum.d.ts +2 -7
- package/dist/cjs/api/types/CompanyTypeEnum.js +2 -3
- package/dist/cjs/api/types/ConfiguredWebhook.d.ts +1 -4
- package/dist/cjs/api/types/ConfiguredWebhook.js +1 -3
- package/dist/cjs/api/types/Contact.d.ts +0 -3
- package/dist/cjs/api/types/Contact.js +1 -3
- package/dist/cjs/api/types/ContactId.d.ts +0 -3
- package/dist/cjs/api/types/ContactId.js +1 -3
- package/dist/cjs/api/types/Conversation.d.ts +1 -4
- package/dist/cjs/api/types/Conversation.js +1 -3
- package/dist/cjs/api/types/ConversationList.d.ts +1 -4
- package/dist/cjs/api/types/ConversationList.js +1 -3
- package/dist/cjs/api/types/CreateUrlOptions.d.ts +0 -3
- package/dist/cjs/api/types/CreateUrlOptions.js +1 -3
- package/dist/cjs/api/types/DeleteAudienceResponse.d.ts +0 -3
- package/dist/cjs/api/types/DeleteAudienceResponse.js +1 -3
- package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +1 -4
- package/dist/cjs/api/types/DetachedPhoneNumberResult.js +1 -3
- package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +0 -3
- package/dist/cjs/api/types/DetachedWebhookInfo.js +1 -3
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.d.ts +1 -4
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.js +7 -3
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.js +10 -3
- package/dist/cjs/api/types/DlcCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/DlcCampaignStatus.js +1 -3
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +1 -4
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.js +1 -3
- package/dist/cjs/api/types/EnhancedContact.d.ts +1 -4
- package/dist/cjs/api/types/EnhancedContact.js +1 -3
- package/dist/cjs/api/types/EnhancedContactItem.d.ts +0 -3
- package/dist/cjs/api/types/EnhancedContactItem.js +1 -3
- package/dist/cjs/api/types/Error_.d.ts +0 -3
- package/dist/cjs/api/types/Error_.js +1 -3
- package/dist/cjs/api/types/ExtendedBrand.d.ts +1 -4
- package/dist/cjs/api/types/ExtendedBrand.js +1 -3
- package/dist/cjs/api/types/ExtendedBrandWithVetting.d.ts +1 -4
- package/dist/cjs/api/types/ExtendedBrandWithVetting.js +1 -3
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +55 -30
- package/dist/cjs/api/types/ExtendedRcsCampaign.js +1 -3
- package/dist/cjs/api/types/GetConversationParams.d.ts +0 -3
- package/dist/cjs/api/types/GetConversationParams.js +1 -3
- package/dist/cjs/api/types/LinkClickEvent.d.ts +0 -3
- package/dist/cjs/api/types/LinkClickEvent.js +1 -3
- package/dist/cjs/api/types/LocationShareAction.d.ts +0 -3
- package/dist/cjs/api/types/LocationShareAction.js +1 -3
- package/dist/cjs/api/types/Message.d.ts +1 -4
- package/dist/cjs/api/types/Message.js +1 -3
- package/dist/cjs/api/types/MessageContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageContent.js +1 -3
- package/dist/cjs/api/types/MessageEvent.d.ts +3 -8
- package/dist/cjs/api/types/MessageEvent.js +2 -3
- package/dist/cjs/api/types/MessageEventContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventContent.js +1 -3
- package/dist/cjs/api/types/MessageEventMmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MessageEventMmsContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsButtonData.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsButtonData.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsCardsContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsCardsContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsLocationData.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsLocationData.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsMediaContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsMediaContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsTextContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsTextContent.js +1 -3
- package/dist/cjs/api/types/MessageEventSmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MessageEventSmsContent.js +1 -3
- package/dist/cjs/api/types/MessageList.d.ts +1 -4
- package/dist/cjs/api/types/MessageList.js +1 -3
- package/dist/cjs/api/types/MessageMethodEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageMethodEnum.js +2 -3
- package/dist/cjs/api/types/MessageProtocolEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageProtocolEnum.js +2 -3
- package/dist/cjs/api/types/MessageSchedule.d.ts +7 -4
- package/dist/cjs/api/types/MessageSchedule.js +1 -3
- package/dist/cjs/api/types/MessageStatusEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageStatusEnum.js +2 -3
- package/dist/cjs/api/types/MessageVolumeEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageVolumeEnum.js +2 -3
- package/dist/cjs/api/types/MessageWithReaction.d.ts +3 -8
- package/dist/cjs/api/types/MessageWithReaction.js +2 -3
- package/dist/cjs/api/types/MessagingProfileEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessagingProfileEnum.js +2 -3
- package/dist/cjs/api/types/MmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MmsContent.js +1 -3
- package/dist/cjs/api/types/MmsValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/MmsValidationResult.js +1 -3
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/NotFoundErrorBody.js +1 -3
- package/dist/cjs/api/types/NumberFormat.d.ts +0 -3
- package/dist/cjs/api/types/NumberFormat.js +1 -3
- package/dist/cjs/api/types/OptInMethodEnum.d.ts +2 -7
- package/dist/cjs/api/types/OptInMethodEnum.js +2 -3
- package/dist/cjs/api/types/OptionalBrandInfo.d.ts +3 -4
- package/dist/cjs/api/types/OptionalBrandInfo.js +1 -3
- package/dist/cjs/api/types/OptionalContact.d.ts +0 -3
- package/dist/cjs/api/types/OptionalContact.js +1 -3
- package/dist/cjs/api/types/OptionalContacts.d.ts +0 -3
- package/dist/cjs/api/types/OptionalContacts.js +1 -3
- package/dist/cjs/api/types/Pagination.d.ts +0 -3
- package/dist/cjs/api/types/Pagination.js +1 -3
- package/dist/cjs/api/types/PhoneCapabilities.d.ts +0 -3
- package/dist/cjs/api/types/PhoneCapabilities.js +1 -3
- package/dist/cjs/api/types/PhoneEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneEnum.js +6 -3
- package/dist/cjs/api/types/PhoneFeatureEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneFeatureEnum.js +6 -3
- package/dist/cjs/api/types/PhoneNumberDetails.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberDetails.js +1 -3
- package/dist/cjs/api/types/PhoneNumberEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberEnum.js +6 -3
- package/dist/cjs/api/types/PhoneNumberStatus.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberStatus.js +1 -3
- package/dist/cjs/api/types/PhoneNumberStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberStatusEnum.js +8 -3
- package/dist/cjs/api/types/ProfileStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/ProfileStatusEnum.js +12 -3
- package/dist/cjs/api/types/PurchasedNumber.d.ts +0 -3
- package/dist/cjs/api/types/PurchasedNumber.js +1 -3
- package/dist/cjs/api/types/RcsButtonCall.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonCall.js +1 -3
- package/dist/cjs/api/types/RcsButtonOpenUrl.d.ts +1 -4
- package/dist/cjs/api/types/RcsButtonOpenUrl.js +11 -3
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.js +1 -3
- package/dist/cjs/api/types/RcsButtonScheduleEvent.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonScheduleEvent.js +1 -3
- package/dist/cjs/api/types/RcsButtonSendLocation.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonSendLocation.js +1 -3
- package/dist/cjs/api/types/RcsButtonTrigger.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonTrigger.js +1 -3
- package/dist/cjs/api/types/RcsCampaign.d.ts +55 -28
- package/dist/cjs/api/types/RcsCampaign.js +1 -3
- package/dist/cjs/api/types/RcsCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/RcsCampaignStatus.js +1 -3
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/RcsCapabilitiesResult.d.ts +1 -4
- package/dist/cjs/api/types/RcsCapabilitiesResult.js +1 -3
- package/dist/cjs/api/types/RcsCapability.d.ts +0 -3
- package/dist/cjs/api/types/RcsCapability.js +1 -3
- package/dist/cjs/api/types/RcsCardsContent.d.ts +2 -5
- package/dist/cjs/api/types/RcsCardsContent.js +1 -3
- package/dist/cjs/api/types/RcsContent.d.ts +2 -5
- package/dist/cjs/api/types/RcsContent.js +1 -3
- package/dist/cjs/api/types/RcsLinkResult.d.ts +0 -3
- package/dist/cjs/api/types/RcsLinkResult.js +1 -3
- package/dist/cjs/api/types/RcsMediaContent.d.ts +1 -4
- package/dist/cjs/api/types/RcsMediaContent.js +1 -3
- package/dist/cjs/api/types/RcsMediaDetailsContent.d.ts +0 -3
- package/dist/cjs/api/types/RcsMediaDetailsContent.js +1 -3
- package/dist/cjs/api/types/RcsMessagingTypeEnum.d.ts +15 -0
- package/dist/cjs/api/types/RcsMessagingTypeEnum.js +18 -0
- package/dist/cjs/api/types/RcsValidateContent.d.ts +3 -6
- package/dist/cjs/api/types/RcsValidateContent.js +1 -3
- package/dist/cjs/api/types/RcsValidationResult.d.ts +2 -3
- package/dist/cjs/api/types/RcsValidationResult.js +1 -3
- package/dist/cjs/api/types/RcsWhitelistResponse.d.ts +0 -3
- package/dist/cjs/api/types/RcsWhitelistResponse.js +1 -3
- package/dist/cjs/api/types/ReactionResult.d.ts +0 -3
- package/dist/cjs/api/types/ReactionResult.js +1 -3
- package/dist/cjs/api/types/RefreshedFile.d.ts +0 -3
- package/dist/cjs/api/types/RefreshedFile.js +1 -3
- package/dist/cjs/api/types/RichButton.d.ts +1 -4
- package/dist/cjs/api/types/RichButton.js +1 -3
- package/dist/cjs/api/types/{RcsCards.d.ts → RichCards.d.ts} +5 -8
- package/dist/cjs/api/types/RichCards.js +3 -0
- package/dist/cjs/api/types/RichCardsMessage.d.ts +11 -16
- package/dist/cjs/api/types/RichCardsMessage.js +3 -3
- package/dist/cjs/api/types/RichMediaMessage.d.ts +2 -5
- package/dist/cjs/api/types/RichMediaMessage.js +1 -3
- package/dist/cjs/api/types/RichMessage.d.ts +5 -5
- package/dist/cjs/api/types/RichMessage.js +1 -3
- package/dist/cjs/api/types/{RcsTextContent.d.ts → RichText.d.ts} +2 -5
- package/dist/cjs/api/types/RichText.js +3 -0
- package/dist/cjs/api/types/RichTextMessage.d.ts +2 -5
- package/dist/cjs/api/types/RichTextMessage.js +1 -3
- package/dist/{esm/api/types/ScheduledMessaage.d.mts → cjs/api/types/ScheduledMessage.d.ts} +3 -6
- package/dist/cjs/api/types/ScheduledMessage.js +3 -0
- package/dist/cjs/api/types/{Options.d.ts → SendRichMessageOptions.d.ts} +2 -5
- package/dist/cjs/api/types/SendRichMessageOptions.js +3 -0
- package/dist/cjs/api/types/SendTypingIndicatorResponse.d.ts +0 -3
- package/dist/cjs/api/types/SendTypingIndicatorResponse.js +1 -3
- package/dist/cjs/api/types/Sender.d.ts +0 -3
- package/dist/cjs/api/types/Sender.js +1 -3
- package/dist/cjs/api/types/SentMmsDetails.d.ts +0 -3
- package/dist/cjs/api/types/SentMmsDetails.js +1 -3
- package/dist/{esm/api/types/SentRcsDetails.d.mts → cjs/api/types/SentRichMessage.d.ts} +1 -4
- package/dist/cjs/api/types/SentRichMessage.js +3 -0
- package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -7
- package/dist/cjs/api/types/SentSmsDetails.js +2 -3
- package/dist/cjs/api/types/ShortenedUrl.d.ts +0 -3
- package/dist/cjs/api/types/ShortenedUrl.js +1 -3
- package/dist/cjs/api/types/ShortenedUrlWithClickData.d.ts +1 -4
- package/dist/cjs/api/types/ShortenedUrlWithClickData.js +1 -3
- package/dist/cjs/api/types/SmsContent.d.ts +0 -3
- package/dist/cjs/api/types/SmsContent.js +1 -3
- package/dist/cjs/api/types/SmsValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/SmsValidationResult.js +1 -3
- package/dist/cjs/api/types/SubUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/SubUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/SubmissionResults.d.ts +0 -3
- package/dist/cjs/api/types/SubmissionResults.js +1 -3
- package/dist/cjs/api/types/SuccessfulConversationUpdate.d.ts +0 -3
- package/dist/cjs/api/types/SuccessfulConversationUpdate.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaign.d.ts +50 -4
- package/dist/cjs/api/types/TollFreeCampaign.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeCampaignStatus.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.js +1 -3
- package/dist/cjs/api/types/TollFreeStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeStatusEnum.js +10 -3
- package/dist/cjs/api/types/Tracking.d.ts +1 -4
- package/dist/cjs/api/types/Tracking.js +8 -3
- package/dist/cjs/api/types/UpdatedContactId.d.ts +0 -3
- package/dist/cjs/api/types/UpdatedContactId.js +1 -3
- package/dist/cjs/api/types/UploadResults.d.ts +0 -3
- package/dist/cjs/api/types/UploadResults.js +1 -3
- package/dist/cjs/api/types/UpsertContact.d.ts +0 -3
- package/dist/cjs/api/types/UpsertContact.js +1 -3
- package/dist/cjs/api/types/UserEvent.d.ts +0 -3
- package/dist/cjs/api/types/UserEvent.js +1 -3
- package/dist/cjs/api/types/VCardData.d.ts +1 -4
- package/dist/cjs/api/types/VCardData.js +1 -3
- package/dist/cjs/api/types/ValidateCampaignParams.d.ts +0 -3
- package/dist/cjs/api/types/ValidateCampaignParams.js +1 -3
- package/dist/cjs/api/types/ValidationErrorDetails.d.ts +0 -3
- package/dist/cjs/api/types/ValidationErrorDetails.js +1 -3
- package/dist/cjs/api/types/ValidationResults.d.ts +1 -4
- package/dist/cjs/api/types/ValidationResults.js +1 -3
- package/dist/cjs/api/types/Vcard.d.ts +1 -4
- package/dist/cjs/api/types/Vcard.js +1 -3
- package/dist/cjs/api/types/VcardAddress.d.ts +1 -4
- package/dist/cjs/api/types/VcardAddress.js +1 -3
- package/dist/cjs/api/types/VcardContent.d.ts +1 -4
- package/dist/cjs/api/types/VcardContent.js +1 -3
- package/dist/cjs/api/types/VcardEmail.d.ts +1 -4
- package/dist/cjs/api/types/VcardEmail.js +1 -3
- package/dist/cjs/api/types/VcardPhone.d.ts +1 -4
- package/dist/cjs/api/types/VcardPhone.js +1 -3
- package/dist/cjs/api/types/VcardResource.d.ts +0 -3
- package/dist/cjs/api/types/VcardResource.js +1 -3
- package/dist/cjs/api/types/VettingFeedback.d.ts +0 -3
- package/dist/cjs/api/types/VettingFeedback.js +1 -3
- package/dist/cjs/api/types/VettingHistory.d.ts +2 -7
- package/dist/cjs/api/types/VettingHistory.js +2 -3
- package/dist/cjs/api/types/VettingResults.d.ts +0 -3
- package/dist/cjs/api/types/VettingResults.js +1 -3
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +1 -4
- package/dist/cjs/api/types/WebhookEventEnum.js +6 -3
- package/dist/cjs/api/types/WebhookResult.d.ts +1 -4
- package/dist/cjs/api/types/WebhookResult.js +1 -3
- package/dist/cjs/api/types/Webhooks.d.ts +0 -3
- package/dist/cjs/api/types/Webhooks.js +1 -3
- package/dist/cjs/api/types/ZodError.d.ts +0 -3
- package/dist/cjs/api/types/ZodError.js +1 -3
- package/dist/cjs/api/types/index.d.ts +125 -123
- package/dist/cjs/api/types/index.js +125 -123
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +9 -4
- package/dist/cjs/core/fetcher/Fetcher.js +205 -10
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +2 -4
- package/dist/cjs/core/fetcher/requestWithRetries.js +16 -21
- package/dist/cjs/core/fetcher/signals.d.ts +0 -6
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/headers.d.ts +2 -3
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -4
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/PinnacleError.d.ts +1 -4
- package/dist/cjs/errors/PinnacleError.js +2 -4
- package/dist/cjs/errors/PinnacleTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/PinnacleTimeoutError.js +1 -3
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/tools/FileUploader.d.ts +1 -1
- package/dist/esm/BaseClient.d.mts +30 -0
- package/dist/esm/BaseClient.mjs +2 -0
- package/dist/esm/Client.d.mts +6 -26
- package/dist/esm/Client.mjs +9 -11
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -4
- package/dist/esm/api/errors/BadRequestError.mjs +1 -3
- package/dist/esm/api/errors/InternalServerError.d.mts +2 -5
- package/dist/esm/api/errors/InternalServerError.mjs +1 -3
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -4
- package/dist/esm/api/errors/NotFoundError.mjs +1 -3
- package/dist/esm/api/errors/NotImplementedError.d.mts +2 -5
- package/dist/esm/api/errors/NotImplementedError.mjs +1 -3
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +2 -5
- package/dist/esm/api/errors/PaymentRequiredError.mjs +1 -3
- package/dist/esm/api/errors/UnauthorizedError.d.mts +2 -5
- package/dist/esm/api/errors/UnauthorizedError.mjs +1 -3
- package/dist/esm/api/errors/index.d.mts +2 -2
- package/dist/esm/api/errors/index.mjs +2 -2
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/audiences/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/audiences/client/Client.mjs +32 -26
- package/dist/esm/api/resources/audiences/client/index.d.mts +0 -1
- package/dist/esm/api/resources/audiences/client/requests/AudiencesDeleteRequest.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/AudiencesDeleteRequest.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/AudiencesGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/AudiencesGetRequest.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/CreateAudienceParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/CreateAudienceParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/UpdateAudienceParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/UpdateAudienceParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/audiences/index.d.mts +1 -1
- package/dist/esm/api/resources/audiences/index.mjs +1 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.mjs +16 -14
- package/dist/esm/api/resources/audiences/resources/contacts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/audiences/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/audiences/resources/index.mjs +1 -1
- package/dist/esm/api/resources/audiences/types/AudiencesGetResponse.d.mts +1 -4
- package/dist/esm/api/resources/audiences/types/AudiencesGetResponse.mjs +1 -3
- package/dist/esm/api/resources/brands/client/Client.d.mts +6 -25
- package/dist/esm/api/resources/brands/client/Client.mjs +46 -34
- package/dist/esm/api/resources/brands/client/index.d.mts +0 -1
- package/dist/esm/api/resources/brands/client/requests/AutofillBrandParams.d.mts +0 -3
- package/dist/esm/api/resources/brands/client/requests/AutofillBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +4 -4
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.d.mts +4 -4
- package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/VetBrandParams.d.mts +1 -5
- package/dist/esm/api/resources/brands/client/requests/VetBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/index.d.mts +5 -5
- package/dist/esm/api/resources/campaigns/client/Client.d.mts +3 -13
- package/dist/esm/api/resources/campaigns/client/Client.mjs +2 -4
- package/dist/esm/api/resources/campaigns/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +36 -28
- package/dist/esm/api/resources/campaigns/resources/dlc/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/index.d.mts +5 -5
- package/dist/esm/api/resources/campaigns/resources/index.mjs +5 -5
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +36 -40
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +68 -43
- package/dist/esm/api/resources/campaigns/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +112 -49
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +20 -25
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +52 -28
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +66 -4
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/contacts/client/Client.mjs +24 -20
- package/dist/esm/api/resources/contacts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/CreateContactParams.d.mts +1 -4
- package/dist/esm/api/resources/contacts/client/requests/CreateContactParams.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +1 -4
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/conversations/client/Client.mjs +37 -31
- package/dist/esm/api/resources/conversations/client/index.d.mts +0 -1
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +1 -4
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +1 -4
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +0 -3
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/conversations/index.d.mts +1 -1
- package/dist/esm/api/resources/conversations/index.mjs +1 -1
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/index.d.mts +1 -1
- package/dist/esm/api/resources/conversations/types/index.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +12 -12
- package/dist/esm/api/resources/index.mjs +12 -12
- package/dist/esm/api/resources/messages/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/messages/client/Client.mjs +96 -16
- package/dist/esm/api/resources/messages/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +0 -3
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.mjs +1 -3
- package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/messages/resources/index.mjs +4 -4
- package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +16 -14
- package/dist/esm/api/resources/messages/resources/mms/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/mms/client/requests/Mms.d.mts +1 -4
- package/dist/esm/api/resources/messages/resources/mms/client/requests/Mms.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/mms/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/mms/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/mms/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/mms/types/MmsSendResponse.d.mts +2 -5
- package/dist/esm/api/resources/messages/resources/mms/types/MmsSendResponse.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +5 -26
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +26 -19
- package/dist/esm/api/resources/messages/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.mts +0 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/types/SendRichMessageResponse.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/rcs/types/SendRichMessageResponse.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/rcs/types/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/types/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/sms/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/messages/resources/sms/client/Client.mjs +16 -14
- package/dist/esm/api/resources/messages/resources/sms/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/sms/client/requests/Sms.d.mts +1 -4
- package/dist/esm/api/resources/messages/resources/sms/client/requests/Sms.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/sms/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/sms/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/sms/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/sms/types/SmsSendResponse.d.mts +2 -5
- package/dist/esm/api/resources/messages/resources/sms/types/SmsSendResponse.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +5 -26
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +23 -19
- package/dist/esm/api/resources/phoneNumbers/client/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.mts +0 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.mjs +6 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/phoneNumbers/index.d.mts +1 -1
- package/dist/esm/api/resources/phoneNumbers/index.mjs +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +16 -14
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.mts +0 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/index.mjs +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +18 -16
- package/dist/esm/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/rcs/client/Client.mjs +22 -18
- package/dist/esm/api/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsLinkRequest.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsLinkRequest.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/status/client/Client.d.mts +2 -12
- package/dist/esm/api/resources/status/client/Client.mjs +1 -3
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +39 -31
- package/dist/esm/api/resources/tools/client/Client.d.mts +4 -14
- package/dist/esm/api/resources/tools/client/Client.mjs +3 -5
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +16 -14
- package/dist/esm/api/resources/tools/resources/contactCard/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +16 -14
- package/dist/esm/api/resources/tools/resources/file/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/tools/resources/index.mjs +4 -4
- package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +24 -20
- package/dist/esm/api/resources/tools/resources/url/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/url/client/requests/CreateUrlParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/url/client/requests/UpdateUrlParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/url/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/webhooks/client/Client.mjs +10 -10
- package/dist/esm/api/resources/webhooks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.d.mts +0 -3
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.mjs +1 -3
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/AdvancedPhoneInformation.d.mts +2 -5
- package/dist/esm/api/types/AdvancedPhoneInformation.mjs +7 -3
- package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -4
- package/dist/esm/api/types/AttachWebhookParams.mjs +1 -3
- package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +1 -4
- package/dist/esm/api/types/AttachedPhoneNumberResult.mjs +1 -3
- package/dist/esm/api/types/AudienceCountOnly.d.mts +0 -3
- package/dist/esm/api/types/AudienceCountOnly.mjs +1 -3
- package/dist/esm/api/types/AudienceWithPagination.d.mts +1 -4
- package/dist/esm/api/types/AudienceWithPagination.mjs +1 -3
- package/dist/esm/api/types/AutofillCampaignParams.d.mts +0 -3
- package/dist/esm/api/types/AutofillCampaignParams.mjs +1 -3
- package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +1 -4
- package/dist/esm/api/types/AutofillDlcCampaignResponse.mjs +1 -3
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +1 -4
- package/dist/esm/api/types/BadRequestErrorBody.mjs +1 -3
- package/dist/esm/api/types/BaseRichMessage.d.mts +9 -0
- package/dist/esm/api/types/BaseRichMessage.mjs +2 -0
- package/dist/esm/api/types/BasicPhoneInformation.d.mts +1 -4
- package/dist/esm/api/types/BasicPhoneInformation.mjs +1 -3
- package/dist/esm/api/types/BrandStatus.d.mts +1 -4
- package/dist/esm/api/types/BrandStatus.mjs +1 -3
- package/dist/esm/api/types/BrandStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/BrandStatusEnum.mjs +8 -1
- package/dist/esm/api/types/ButtonClicked.d.mts +1 -4
- package/dist/esm/api/types/ButtonClicked.mjs +1 -3
- package/dist/esm/api/types/ButtonClickedData.d.mts +2 -5
- package/dist/esm/api/types/ButtonClickedData.mjs +7 -3
- package/dist/esm/api/types/CampaignEnum.d.mts +1 -4
- package/dist/esm/api/types/CampaignEnum.mjs +5 -1
- package/dist/esm/api/types/CampaignQuery.d.mts +1 -4
- package/dist/esm/api/types/CampaignQuery.mjs +1 -3
- package/dist/esm/api/types/CampaignSubmissionResult.d.mts +0 -3
- package/dist/esm/api/types/CampaignSubmissionResult.mjs +1 -3
- package/dist/esm/api/types/CampaignValidationResult.d.mts +0 -3
- package/dist/esm/api/types/CampaignValidationResult.mjs +1 -3
- package/dist/esm/api/types/CancelScheduledMessageResponse.d.mts +4 -0
- package/dist/esm/api/types/CancelScheduledMessageResponse.mjs +2 -0
- package/dist/esm/api/types/CompanyEntityTypeEnum.d.mts +9 -0
- package/dist/esm/api/types/CompanyEntityTypeEnum.mjs +9 -0
- package/dist/esm/api/types/CompanySectorEnum.d.mts +2 -7
- package/dist/esm/api/types/CompanySectorEnum.mjs +2 -3
- package/dist/esm/api/types/CompanyTypeEnum.d.mts +2 -7
- package/dist/esm/api/types/CompanyTypeEnum.mjs +2 -3
- package/dist/esm/api/types/ConfiguredWebhook.d.mts +1 -4
- package/dist/esm/api/types/ConfiguredWebhook.mjs +1 -3
- package/dist/esm/api/types/Contact.d.mts +0 -3
- package/dist/esm/api/types/Contact.mjs +1 -3
- package/dist/esm/api/types/ContactId.d.mts +0 -3
- package/dist/esm/api/types/ContactId.mjs +1 -3
- package/dist/esm/api/types/Conversation.d.mts +1 -4
- package/dist/esm/api/types/Conversation.mjs +1 -3
- package/dist/esm/api/types/ConversationList.d.mts +1 -4
- package/dist/esm/api/types/ConversationList.mjs +1 -3
- package/dist/esm/api/types/CreateUrlOptions.d.mts +0 -3
- package/dist/esm/api/types/CreateUrlOptions.mjs +1 -3
- package/dist/esm/api/types/DeleteAudienceResponse.d.mts +0 -3
- package/dist/esm/api/types/DeleteAudienceResponse.mjs +1 -3
- package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +1 -4
- package/dist/esm/api/types/DetachedPhoneNumberResult.mjs +1 -3
- package/dist/esm/api/types/DetachedWebhookInfo.d.mts +0 -3
- package/dist/esm/api/types/DetachedWebhookInfo.mjs +1 -3
- package/dist/esm/api/types/DetailedPhoneNumberEnum.d.mts +1 -4
- package/dist/esm/api/types/DetailedPhoneNumberEnum.mjs +5 -1
- package/dist/esm/api/types/DlcAssignmentStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/DlcAssignmentStatusEnum.mjs +8 -1
- package/dist/esm/api/types/DlcCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/DlcCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +1 -4
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.mjs +1 -3
- package/dist/esm/api/types/EnhancedContact.d.mts +1 -4
- package/dist/esm/api/types/EnhancedContact.mjs +1 -3
- package/dist/esm/api/types/EnhancedContactItem.d.mts +0 -3
- package/dist/esm/api/types/EnhancedContactItem.mjs +1 -3
- package/dist/esm/api/types/Error_.d.mts +0 -3
- package/dist/esm/api/types/Error_.mjs +1 -3
- package/dist/esm/api/types/ExtendedBrand.d.mts +1 -4
- package/dist/esm/api/types/ExtendedBrand.mjs +1 -3
- package/dist/esm/api/types/ExtendedBrandWithVetting.d.mts +1 -4
- package/dist/esm/api/types/ExtendedBrandWithVetting.mjs +1 -3
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +55 -30
- package/dist/esm/api/types/ExtendedRcsCampaign.mjs +1 -3
- package/dist/esm/api/types/GetConversationParams.d.mts +0 -3
- package/dist/esm/api/types/GetConversationParams.mjs +1 -3
- package/dist/esm/api/types/LinkClickEvent.d.mts +0 -3
- package/dist/esm/api/types/LinkClickEvent.mjs +1 -3
- package/dist/esm/api/types/LocationShareAction.d.mts +0 -3
- package/dist/esm/api/types/LocationShareAction.mjs +1 -3
- package/dist/esm/api/types/Message.d.mts +1 -4
- package/dist/esm/api/types/Message.mjs +1 -3
- package/dist/esm/api/types/MessageContent.d.mts +1 -4
- package/dist/esm/api/types/MessageContent.mjs +1 -3
- package/dist/esm/api/types/MessageEvent.d.mts +3 -8
- package/dist/esm/api/types/MessageEvent.mjs +2 -3
- package/dist/esm/api/types/MessageEventContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventMmsContent.d.mts +0 -3
- package/dist/esm/api/types/MessageEventMmsContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsButtonData.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsButtonData.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsCardsContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsCardsContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsLocationData.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsLocationData.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsMediaContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsMediaContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsTextContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsTextContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventSmsContent.d.mts +0 -3
- package/dist/esm/api/types/MessageEventSmsContent.mjs +1 -3
- package/dist/esm/api/types/MessageList.d.mts +1 -4
- package/dist/esm/api/types/MessageList.mjs +1 -3
- package/dist/esm/api/types/MessageMethodEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageMethodEnum.mjs +2 -3
- package/dist/esm/api/types/MessageProtocolEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageProtocolEnum.mjs +2 -3
- package/dist/esm/api/types/MessageSchedule.d.mts +7 -4
- package/dist/esm/api/types/MessageSchedule.mjs +1 -3
- package/dist/esm/api/types/MessageStatusEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageStatusEnum.mjs +2 -3
- package/dist/esm/api/types/MessageVolumeEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageVolumeEnum.mjs +2 -3
- package/dist/esm/api/types/MessageWithReaction.d.mts +3 -8
- package/dist/esm/api/types/MessageWithReaction.mjs +2 -3
- package/dist/esm/api/types/MessagingProfileEnum.d.mts +2 -7
- package/dist/esm/api/types/MessagingProfileEnum.mjs +2 -3
- package/dist/esm/api/types/MmsContent.d.mts +0 -3
- package/dist/esm/api/types/MmsContent.mjs +1 -3
- package/dist/esm/api/types/MmsValidationResult.d.mts +0 -3
- package/dist/esm/api/types/MmsValidationResult.mjs +1 -3
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -3
- package/dist/esm/api/types/NotFoundErrorBody.mjs +1 -3
- package/dist/esm/api/types/NumberFormat.d.mts +0 -3
- package/dist/esm/api/types/NumberFormat.mjs +1 -3
- package/dist/esm/api/types/OptInMethodEnum.d.mts +2 -7
- package/dist/esm/api/types/OptInMethodEnum.mjs +2 -3
- package/dist/esm/api/types/OptionalBrandInfo.d.mts +3 -4
- package/dist/esm/api/types/OptionalBrandInfo.mjs +1 -3
- package/dist/esm/api/types/OptionalContact.d.mts +0 -3
- package/dist/esm/api/types/OptionalContact.mjs +1 -3
- package/dist/esm/api/types/OptionalContacts.d.mts +0 -3
- package/dist/esm/api/types/OptionalContacts.mjs +1 -3
- package/dist/esm/api/types/Pagination.d.mts +0 -3
- package/dist/esm/api/types/Pagination.mjs +1 -3
- package/dist/esm/api/types/PhoneCapabilities.d.mts +0 -3
- package/dist/esm/api/types/PhoneCapabilities.mjs +1 -3
- package/dist/esm/api/types/PhoneEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneFeatureEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneFeatureEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneNumberDetails.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberDetails.mjs +1 -3
- package/dist/esm/api/types/PhoneNumberEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneNumberStatus.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberStatus.mjs +1 -3
- package/dist/esm/api/types/PhoneNumberStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberStatusEnum.mjs +6 -1
- package/dist/esm/api/types/ProfileStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/ProfileStatusEnum.mjs +10 -1
- package/dist/esm/api/types/PurchasedNumber.d.mts +0 -3
- package/dist/esm/api/types/PurchasedNumber.mjs +1 -3
- package/dist/esm/api/types/RcsButtonCall.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonCall.mjs +1 -3
- package/dist/esm/api/types/RcsButtonOpenUrl.d.mts +1 -4
- package/dist/esm/api/types/RcsButtonOpenUrl.mjs +11 -3
- package/dist/esm/api/types/RcsButtonRequestUserLocation.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonRequestUserLocation.mjs +1 -3
- package/dist/esm/api/types/RcsButtonScheduleEvent.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonScheduleEvent.mjs +1 -3
- package/dist/esm/api/types/RcsButtonSendLocation.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonSendLocation.mjs +1 -3
- package/dist/esm/api/types/RcsButtonTrigger.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonTrigger.mjs +1 -3
- package/dist/esm/api/types/RcsCampaign.d.mts +55 -28
- package/dist/esm/api/types/RcsCampaign.mjs +1 -3
- package/dist/esm/api/types/RcsCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/RcsCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/RcsCapabilitiesResult.d.mts +1 -4
- package/dist/esm/api/types/RcsCapabilitiesResult.mjs +1 -3
- package/dist/esm/api/types/RcsCapability.d.mts +0 -3
- package/dist/esm/api/types/RcsCapability.mjs +1 -3
- package/dist/esm/api/types/RcsCardsContent.d.mts +2 -5
- package/dist/esm/api/types/RcsCardsContent.mjs +1 -3
- package/dist/esm/api/types/RcsContent.d.mts +2 -5
- package/dist/esm/api/types/RcsContent.mjs +1 -3
- package/dist/esm/api/types/RcsLinkResult.d.mts +0 -3
- package/dist/esm/api/types/RcsLinkResult.mjs +1 -3
- package/dist/esm/api/types/RcsMediaContent.d.mts +1 -4
- package/dist/esm/api/types/RcsMediaContent.mjs +1 -3
- package/dist/esm/api/types/RcsMediaDetailsContent.d.mts +0 -3
- package/dist/esm/api/types/RcsMediaDetailsContent.mjs +1 -3
- package/dist/esm/api/types/RcsMessagingTypeEnum.d.mts +15 -0
- package/dist/esm/api/types/RcsMessagingTypeEnum.mjs +15 -0
- package/dist/esm/api/types/RcsValidateContent.d.mts +3 -6
- package/dist/esm/api/types/RcsValidateContent.mjs +1 -3
- package/dist/esm/api/types/RcsValidationResult.d.mts +2 -3
- package/dist/esm/api/types/RcsValidationResult.mjs +1 -3
- package/dist/esm/api/types/RcsWhitelistResponse.d.mts +0 -3
- package/dist/esm/api/types/RcsWhitelistResponse.mjs +1 -3
- package/dist/esm/api/types/ReactionResult.d.mts +0 -3
- package/dist/esm/api/types/ReactionResult.mjs +1 -3
- package/dist/esm/api/types/RefreshedFile.d.mts +0 -3
- package/dist/esm/api/types/RefreshedFile.mjs +1 -3
- package/dist/esm/api/types/RichButton.d.mts +1 -4
- package/dist/esm/api/types/RichButton.mjs +1 -3
- package/dist/esm/api/types/{RcsCards.d.mts → RichCards.d.mts} +5 -8
- package/dist/esm/api/types/RichCards.mjs +2 -0
- package/dist/esm/api/types/RichCardsMessage.d.mts +11 -16
- package/dist/esm/api/types/RichCardsMessage.mjs +3 -3
- package/dist/esm/api/types/RichMediaMessage.d.mts +2 -5
- package/dist/esm/api/types/RichMediaMessage.mjs +1 -3
- package/dist/esm/api/types/RichMessage.d.mts +5 -5
- package/dist/esm/api/types/RichMessage.mjs +1 -3
- package/dist/esm/api/types/{RcsTextContent.d.mts → RichText.d.mts} +2 -5
- package/dist/esm/api/types/RichText.mjs +2 -0
- package/dist/esm/api/types/RichTextMessage.d.mts +2 -5
- package/dist/esm/api/types/RichTextMessage.mjs +1 -3
- package/dist/{cjs/api/types/ScheduledMessaage.d.ts → esm/api/types/ScheduledMessage.d.mts} +3 -6
- package/dist/esm/api/types/ScheduledMessage.mjs +2 -0
- package/dist/esm/api/types/{Options.d.mts → SendRichMessageOptions.d.mts} +2 -5
- package/dist/esm/api/types/SendRichMessageOptions.mjs +2 -0
- package/dist/esm/api/types/SendTypingIndicatorResponse.d.mts +0 -3
- package/dist/esm/api/types/SendTypingIndicatorResponse.mjs +1 -3
- package/dist/esm/api/types/Sender.d.mts +0 -3
- package/dist/esm/api/types/Sender.mjs +1 -3
- package/dist/esm/api/types/SentMmsDetails.d.mts +0 -3
- package/dist/esm/api/types/SentMmsDetails.mjs +1 -3
- package/dist/{cjs/api/types/SentRcsDetails.d.ts → esm/api/types/SentRichMessage.d.mts} +1 -4
- package/dist/esm/api/types/SentRichMessage.mjs +2 -0
- package/dist/esm/api/types/SentSmsDetails.d.mts +2 -7
- package/dist/esm/api/types/SentSmsDetails.mjs +2 -3
- package/dist/esm/api/types/ShortenedUrl.d.mts +0 -3
- package/dist/esm/api/types/ShortenedUrl.mjs +1 -3
- package/dist/esm/api/types/ShortenedUrlWithClickData.d.mts +1 -4
- package/dist/esm/api/types/ShortenedUrlWithClickData.mjs +1 -3
- package/dist/esm/api/types/SmsContent.d.mts +0 -3
- package/dist/esm/api/types/SmsContent.mjs +1 -3
- package/dist/esm/api/types/SmsValidationResult.d.mts +0 -3
- package/dist/esm/api/types/SmsValidationResult.mjs +1 -3
- package/dist/esm/api/types/SubUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/SubUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/SubmissionResults.d.mts +0 -3
- package/dist/esm/api/types/SubmissionResults.mjs +1 -3
- package/dist/esm/api/types/SuccessfulConversationUpdate.d.mts +0 -3
- package/dist/esm/api/types/SuccessfulConversationUpdate.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaign.d.mts +50 -4
- package/dist/esm/api/types/TollFreeCampaign.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/TollFreeCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.mts +1 -4
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.mjs +1 -3
- package/dist/esm/api/types/TollFreeStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/TollFreeStatusEnum.mjs +8 -1
- package/dist/esm/api/types/Tracking.d.mts +1 -4
- package/dist/esm/api/types/Tracking.mjs +6 -1
- package/dist/esm/api/types/UpdatedContactId.d.mts +0 -3
- package/dist/esm/api/types/UpdatedContactId.mjs +1 -3
- package/dist/esm/api/types/UploadResults.d.mts +0 -3
- package/dist/esm/api/types/UploadResults.mjs +1 -3
- package/dist/esm/api/types/UpsertContact.d.mts +0 -3
- package/dist/esm/api/types/UpsertContact.mjs +1 -3
- package/dist/esm/api/types/UserEvent.d.mts +0 -3
- package/dist/esm/api/types/UserEvent.mjs +1 -3
- package/dist/esm/api/types/VCardData.d.mts +1 -4
- package/dist/esm/api/types/VCardData.mjs +1 -3
- package/dist/esm/api/types/ValidateCampaignParams.d.mts +0 -3
- package/dist/esm/api/types/ValidateCampaignParams.mjs +1 -3
- package/dist/esm/api/types/ValidationErrorDetails.d.mts +0 -3
- package/dist/esm/api/types/ValidationErrorDetails.mjs +1 -3
- package/dist/esm/api/types/ValidationResults.d.mts +1 -4
- package/dist/esm/api/types/ValidationResults.mjs +1 -3
- package/dist/esm/api/types/Vcard.d.mts +1 -4
- package/dist/esm/api/types/Vcard.mjs +1 -3
- package/dist/esm/api/types/VcardAddress.d.mts +1 -4
- package/dist/esm/api/types/VcardAddress.mjs +1 -3
- package/dist/esm/api/types/VcardContent.d.mts +1 -4
- package/dist/esm/api/types/VcardContent.mjs +1 -3
- package/dist/esm/api/types/VcardEmail.d.mts +1 -4
- package/dist/esm/api/types/VcardEmail.mjs +1 -3
- package/dist/esm/api/types/VcardPhone.d.mts +1 -4
- package/dist/esm/api/types/VcardPhone.mjs +1 -3
- package/dist/esm/api/types/VcardResource.d.mts +0 -3
- package/dist/esm/api/types/VcardResource.mjs +1 -3
- package/dist/esm/api/types/VettingFeedback.d.mts +0 -3
- package/dist/esm/api/types/VettingFeedback.mjs +1 -3
- package/dist/esm/api/types/VettingHistory.d.mts +2 -7
- package/dist/esm/api/types/VettingHistory.mjs +2 -3
- package/dist/esm/api/types/VettingResults.d.mts +0 -3
- package/dist/esm/api/types/VettingResults.mjs +1 -3
- package/dist/esm/api/types/WebhookEventEnum.d.mts +1 -4
- package/dist/esm/api/types/WebhookEventEnum.mjs +4 -1
- package/dist/esm/api/types/WebhookResult.d.mts +1 -4
- package/dist/esm/api/types/WebhookResult.mjs +1 -3
- package/dist/esm/api/types/Webhooks.d.mts +0 -3
- package/dist/esm/api/types/Webhooks.mjs +1 -3
- package/dist/esm/api/types/ZodError.d.mts +0 -3
- package/dist/esm/api/types/ZodError.mjs +1 -3
- package/dist/esm/api/types/index.d.mts +125 -123
- package/dist/esm/api/types/index.mjs +125 -123
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +9 -4
- package/dist/esm/core/fetcher/Fetcher.mjs +205 -10
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -4
- package/dist/esm/core/fetcher/requestWithRetries.mjs +16 -21
- package/dist/esm/core/fetcher/signals.d.mts +0 -6
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/headers.d.mts +2 -3
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -4
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/PinnacleError.d.mts +1 -4
- package/dist/esm/errors/PinnacleError.mjs +2 -4
- package/dist/esm/errors/PinnacleTimeoutError.d.mts +0 -3
- package/dist/esm/errors/PinnacleTimeoutError.mjs +1 -3
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/messages/Client.mjs +1 -0
- package/dist/esm/wrapper/tools/FileUploader.d.mts +1 -1
- package/dist/esm/wrapper/tools/FileUploader.mjs +1 -0
- package/package.json +16 -16
- package/reference.md +625 -579
- package/dist/cjs/api/resources/messages/resources/rcs/types/RcsSendResponse.d.ts +0 -5
- package/dist/cjs/api/types/RcsBase.d.ts +0 -31
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.d.ts +0 -15
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.js +0 -14
- package/dist/cjs/api/types/RcsTextContent.js +0 -5
- package/dist/cjs/api/types/ScheduledMessaage.js +0 -5
- package/dist/cjs/api/types/SentRcsDetails.js +0 -5
- package/dist/esm/api/resources/messages/resources/rcs/types/RcsSendResponse.d.mts +0 -5
- package/dist/esm/api/resources/messages/resources/rcs/types/RcsSendResponse.mjs +0 -4
- package/dist/esm/api/types/Options.mjs +0 -4
- package/dist/esm/api/types/RcsBase.d.mts +0 -31
- package/dist/esm/api/types/RcsBase.mjs +0 -4
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.d.mts +0 -15
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.mjs +0 -11
- package/dist/esm/api/types/RcsCards.mjs +0 -4
- package/dist/esm/api/types/RcsTextContent.mjs +0 -4
- package/dist/esm/api/types/ScheduledMessaage.mjs +0 -4
- package/dist/esm/api/types/SentRcsDetails.mjs +0 -4
package/reference.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Reference
|
|
2
|
-
|
|
3
2
|
## Brands
|
|
4
|
-
|
|
5
3
|
<details><summary><code>client.brands.<a href="/src/api/resources/brands/client/Client.ts">autofill</a>({ ...params }) -> Pinnacle.OptionalBrandInfo</code></summary>
|
|
6
4
|
<dl>
|
|
7
5
|
<dd>
|
|
@@ -15,7 +13,6 @@
|
|
|
15
13
|
<dd>
|
|
16
14
|
|
|
17
15
|
Automatically populate brand information based on partial input data you provide.
|
|
18
|
-
|
|
19
16
|
</dd>
|
|
20
17
|
</dl>
|
|
21
18
|
</dd>
|
|
@@ -34,12 +31,12 @@ await client.brands.autofill({
|
|
|
34
31
|
additional_info: "A developer-friendly, compliant API for SMS, MMS, and RCS, built to scale real conversations.",
|
|
35
32
|
name: "Pinnacle",
|
|
36
33
|
options: {
|
|
37
|
-
forceReload: true
|
|
34
|
+
forceReload: true
|
|
38
35
|
},
|
|
39
|
-
website: "https://www.pinnacle.sh"
|
|
36
|
+
website: "https://www.pinnacle.sh"
|
|
40
37
|
});
|
|
41
|
-
```
|
|
42
38
|
|
|
39
|
+
```
|
|
43
40
|
</dd>
|
|
44
41
|
</dl>
|
|
45
42
|
</dd>
|
|
@@ -53,21 +50,22 @@ await client.brands.autofill({
|
|
|
53
50
|
<dl>
|
|
54
51
|
<dd>
|
|
55
52
|
|
|
56
|
-
**request:** `Pinnacle.AutofillBrandParams`
|
|
57
|
-
|
|
53
|
+
**request:** `Pinnacle.AutofillBrandParams`
|
|
54
|
+
|
|
58
55
|
</dd>
|
|
59
56
|
</dl>
|
|
60
57
|
|
|
61
58
|
<dl>
|
|
62
59
|
<dd>
|
|
63
60
|
|
|
64
|
-
**requestOptions:** `Brands.RequestOptions`
|
|
65
|
-
|
|
61
|
+
**requestOptions:** `Brands.RequestOptions`
|
|
62
|
+
|
|
66
63
|
</dd>
|
|
67
64
|
</dl>
|
|
68
65
|
</dd>
|
|
69
66
|
</dl>
|
|
70
67
|
|
|
68
|
+
|
|
71
69
|
</dd>
|
|
72
70
|
</dl>
|
|
73
71
|
</details>
|
|
@@ -85,7 +83,6 @@ await client.brands.autofill({
|
|
|
85
83
|
<dd>
|
|
86
84
|
|
|
87
85
|
Create a new brand or update an existing brand by with the provided information.
|
|
88
|
-
|
|
89
86
|
</dd>
|
|
90
87
|
</dl>
|
|
91
88
|
</dd>
|
|
@@ -106,7 +103,7 @@ await client.brands.upsert({
|
|
|
106
103
|
email: "michael.chen@trypinnacle.app",
|
|
107
104
|
name: "Michael Chen",
|
|
108
105
|
phone: "+14155551234",
|
|
109
|
-
title: "Customer Support Representative"
|
|
106
|
+
title: "Customer Support Representative"
|
|
110
107
|
},
|
|
111
108
|
dba: "Pinnacle RCS",
|
|
112
109
|
description: "A developer-friendly, compliant API for SMS, MMS, and RCS, built to scale real conversations.",
|
|
@@ -116,10 +113,11 @@ await client.brands.upsert({
|
|
|
116
113
|
name: "Pinnacle",
|
|
117
114
|
sector: "TECHNOLOGY",
|
|
118
115
|
type: "PRIVATE_PROFIT",
|
|
119
|
-
|
|
116
|
+
entityType: "LLC",
|
|
117
|
+
website: "https://www.pinnacle.sh"
|
|
120
118
|
});
|
|
121
|
-
```
|
|
122
119
|
|
|
120
|
+
```
|
|
123
121
|
</dd>
|
|
124
122
|
</dl>
|
|
125
123
|
</dd>
|
|
@@ -133,21 +131,22 @@ await client.brands.upsert({
|
|
|
133
131
|
<dl>
|
|
134
132
|
<dd>
|
|
135
133
|
|
|
136
|
-
**request:** `Pinnacle.UpsertBrandParams`
|
|
137
|
-
|
|
134
|
+
**request:** `Pinnacle.UpsertBrandParams`
|
|
135
|
+
|
|
138
136
|
</dd>
|
|
139
137
|
</dl>
|
|
140
138
|
|
|
141
139
|
<dl>
|
|
142
140
|
<dd>
|
|
143
141
|
|
|
144
|
-
**requestOptions:** `Brands.RequestOptions`
|
|
145
|
-
|
|
142
|
+
**requestOptions:** `Brands.RequestOptions`
|
|
143
|
+
|
|
146
144
|
</dd>
|
|
147
145
|
</dl>
|
|
148
146
|
</dd>
|
|
149
147
|
</dl>
|
|
150
148
|
|
|
149
|
+
|
|
151
150
|
</dd>
|
|
152
151
|
</dl>
|
|
153
152
|
</details>
|
|
@@ -165,7 +164,6 @@ await client.brands.upsert({
|
|
|
165
164
|
<dd>
|
|
166
165
|
|
|
167
166
|
Retrieve detailed information for a specific brand in your account by ID.
|
|
168
|
-
|
|
169
167
|
</dd>
|
|
170
168
|
</dl>
|
|
171
169
|
</dd>
|
|
@@ -181,8 +179,8 @@ Retrieve detailed information for a specific brand in your account by ID.
|
|
|
181
179
|
|
|
182
180
|
```typescript
|
|
183
181
|
await client.brands.get("b_1234567890");
|
|
184
|
-
```
|
|
185
182
|
|
|
183
|
+
```
|
|
186
184
|
</dd>
|
|
187
185
|
</dl>
|
|
188
186
|
</dd>
|
|
@@ -196,32 +194,33 @@ await client.brands.get("b_1234567890");
|
|
|
196
194
|
<dl>
|
|
197
195
|
<dd>
|
|
198
196
|
|
|
199
|
-
**id:** `string`
|
|
197
|
+
**id:** `string`
|
|
200
198
|
|
|
201
199
|
The unique identifier of the brand you want to retrieve from your account.
|
|
202
200
|
<br><br> This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`.
|
|
203
|
-
|
|
201
|
+
|
|
204
202
|
</dd>
|
|
205
203
|
</dl>
|
|
206
204
|
|
|
207
205
|
<dl>
|
|
208
206
|
<dd>
|
|
209
207
|
|
|
210
|
-
**request:** `Pinnacle.BrandsGetRequest`
|
|
211
|
-
|
|
208
|
+
**request:** `Pinnacle.BrandsGetRequest`
|
|
209
|
+
|
|
212
210
|
</dd>
|
|
213
211
|
</dl>
|
|
214
212
|
|
|
215
213
|
<dl>
|
|
216
214
|
<dd>
|
|
217
215
|
|
|
218
|
-
**requestOptions:** `Brands.RequestOptions`
|
|
219
|
-
|
|
216
|
+
**requestOptions:** `Brands.RequestOptions`
|
|
217
|
+
|
|
220
218
|
</dd>
|
|
221
219
|
</dl>
|
|
222
220
|
</dd>
|
|
223
221
|
</dl>
|
|
224
222
|
|
|
223
|
+
|
|
225
224
|
</dd>
|
|
226
225
|
</dl>
|
|
227
226
|
</details>
|
|
@@ -239,7 +238,6 @@ The unique identifier of the brand you want to retrieve from your account.
|
|
|
239
238
|
<dd>
|
|
240
239
|
|
|
241
240
|
Submit your brand for review and approval by the compliance team.
|
|
242
|
-
|
|
243
241
|
</dd>
|
|
244
242
|
</dl>
|
|
245
243
|
</dd>
|
|
@@ -255,8 +253,8 @@ Submit your brand for review and approval by the compliance team.
|
|
|
255
253
|
|
|
256
254
|
```typescript
|
|
257
255
|
await client.brands.submit("b_1234567890");
|
|
258
|
-
```
|
|
259
256
|
|
|
257
|
+
```
|
|
260
258
|
</dd>
|
|
261
259
|
</dl>
|
|
262
260
|
</dd>
|
|
@@ -270,24 +268,25 @@ await client.brands.submit("b_1234567890");
|
|
|
270
268
|
<dl>
|
|
271
269
|
<dd>
|
|
272
270
|
|
|
273
|
-
**brandId:** `string`
|
|
271
|
+
**brandId:** `string`
|
|
274
272
|
|
|
275
273
|
The unique identifier of the brand you want to submit for review. <br><br>
|
|
276
274
|
This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890` and must correspond to an existing brand in your account that is ready for submission.
|
|
277
|
-
|
|
275
|
+
|
|
278
276
|
</dd>
|
|
279
277
|
</dl>
|
|
280
278
|
|
|
281
279
|
<dl>
|
|
282
280
|
<dd>
|
|
283
281
|
|
|
284
|
-
**requestOptions:** `Brands.RequestOptions`
|
|
285
|
-
|
|
282
|
+
**requestOptions:** `Brands.RequestOptions`
|
|
283
|
+
|
|
286
284
|
</dd>
|
|
287
285
|
</dl>
|
|
288
286
|
</dd>
|
|
289
287
|
</dl>
|
|
290
288
|
|
|
289
|
+
|
|
291
290
|
</dd>
|
|
292
291
|
</dl>
|
|
293
292
|
</details>
|
|
@@ -305,7 +304,6 @@ This identifier is a string that always begins with the prefix `b_`, for example
|
|
|
305
304
|
<dd>
|
|
306
305
|
|
|
307
306
|
Validate your brand information for compliance and correctness before submission or storage.
|
|
308
|
-
|
|
309
307
|
</dd>
|
|
310
308
|
</dl>
|
|
311
309
|
</dd>
|
|
@@ -326,7 +324,7 @@ await client.brands.validate({
|
|
|
326
324
|
email: "michael.chen@trypinnacle.app",
|
|
327
325
|
name: "Michael Chen",
|
|
328
326
|
phone: "+14155551234",
|
|
329
|
-
title: "Customer Support Representative"
|
|
327
|
+
title: "Customer Support Representative"
|
|
330
328
|
},
|
|
331
329
|
dba: "Pinnacle Messaging",
|
|
332
330
|
description: "Pinnacle is an SMS, MMS, and RCS API for scaling conversations with customers you value.",
|
|
@@ -335,10 +333,11 @@ await client.brands.validate({
|
|
|
335
333
|
name: "Pinnacle",
|
|
336
334
|
sector: "TECHNOLOGY",
|
|
337
335
|
type: "PRIVATE_PROFIT",
|
|
338
|
-
|
|
336
|
+
entityType: "LLC",
|
|
337
|
+
website: "https://www.pinnacle.sh"
|
|
339
338
|
});
|
|
340
|
-
```
|
|
341
339
|
|
|
340
|
+
```
|
|
342
341
|
</dd>
|
|
343
342
|
</dl>
|
|
344
343
|
</dd>
|
|
@@ -352,21 +351,22 @@ await client.brands.validate({
|
|
|
352
351
|
<dl>
|
|
353
352
|
<dd>
|
|
354
353
|
|
|
355
|
-
**request:** `Pinnacle.ValidateBrandParams`
|
|
356
|
-
|
|
354
|
+
**request:** `Pinnacle.ValidateBrandParams`
|
|
355
|
+
|
|
357
356
|
</dd>
|
|
358
357
|
</dl>
|
|
359
358
|
|
|
360
359
|
<dl>
|
|
361
360
|
<dd>
|
|
362
361
|
|
|
363
|
-
**requestOptions:** `Brands.RequestOptions`
|
|
364
|
-
|
|
362
|
+
**requestOptions:** `Brands.RequestOptions`
|
|
363
|
+
|
|
365
364
|
</dd>
|
|
366
365
|
</dl>
|
|
367
366
|
</dd>
|
|
368
367
|
</dl>
|
|
369
368
|
|
|
369
|
+
|
|
370
370
|
</dd>
|
|
371
371
|
</dl>
|
|
372
372
|
</details>
|
|
@@ -384,7 +384,6 @@ await client.brands.validate({
|
|
|
384
384
|
<dd>
|
|
385
385
|
|
|
386
386
|
Submit a brand for external vetting verification to enhance your brand's trust score and improved message delivery rates.
|
|
387
|
-
|
|
388
387
|
</dd>
|
|
389
388
|
</dl>
|
|
390
389
|
</dd>
|
|
@@ -400,8 +399,8 @@ Submit a brand for external vetting verification to enhance your brand's trust s
|
|
|
400
399
|
|
|
401
400
|
```typescript
|
|
402
401
|
await client.brands.vet("b_1234567890", {});
|
|
403
|
-
```
|
|
404
402
|
|
|
403
|
+
```
|
|
405
404
|
</dd>
|
|
406
405
|
</dl>
|
|
407
406
|
</dd>
|
|
@@ -415,39 +414,39 @@ await client.brands.vet("b_1234567890", {});
|
|
|
415
414
|
<dl>
|
|
416
415
|
<dd>
|
|
417
416
|
|
|
418
|
-
**brandId:** `string`
|
|
417
|
+
**brandId:** `string`
|
|
419
418
|
|
|
420
419
|
The unique identifier of the brand to vet. <br>
|
|
421
420
|
|
|
422
421
|
This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890` and must correspond to an existing brand in your account that is ready for vetting.
|
|
423
|
-
|
|
422
|
+
|
|
424
423
|
</dd>
|
|
425
424
|
</dl>
|
|
426
425
|
|
|
427
426
|
<dl>
|
|
428
427
|
<dd>
|
|
429
428
|
|
|
430
|
-
**request:** `Pinnacle.VetBrandParams`
|
|
431
|
-
|
|
429
|
+
**request:** `Pinnacle.VetBrandParams`
|
|
430
|
+
|
|
432
431
|
</dd>
|
|
433
432
|
</dl>
|
|
434
433
|
|
|
435
434
|
<dl>
|
|
436
435
|
<dd>
|
|
437
436
|
|
|
438
|
-
**requestOptions:** `Brands.RequestOptions`
|
|
439
|
-
|
|
437
|
+
**requestOptions:** `Brands.RequestOptions`
|
|
438
|
+
|
|
440
439
|
</dd>
|
|
441
440
|
</dl>
|
|
442
441
|
</dd>
|
|
443
442
|
</dl>
|
|
444
443
|
|
|
444
|
+
|
|
445
445
|
</dd>
|
|
446
446
|
</dl>
|
|
447
447
|
</details>
|
|
448
448
|
|
|
449
449
|
## Audiences
|
|
450
|
-
|
|
451
450
|
<details><summary><code>client.audiences.<a href="/src/api/resources/audiences/client/Client.ts">get</a>({ ...params }) -> Pinnacle.AudiencesGetResponse</code></summary>
|
|
452
451
|
<dl>
|
|
453
452
|
<dd>
|
|
@@ -461,7 +460,6 @@ This identifier is a string that always begins with the prefix `b_`, for example
|
|
|
461
460
|
<dd>
|
|
462
461
|
|
|
463
462
|
Retrieve an audience by ID with optional pagination.
|
|
464
|
-
|
|
465
463
|
</dd>
|
|
466
464
|
</dl>
|
|
467
465
|
</dd>
|
|
@@ -477,10 +475,10 @@ Retrieve an audience by ID with optional pagination.
|
|
|
477
475
|
|
|
478
476
|
```typescript
|
|
479
477
|
await client.audiences.get({
|
|
480
|
-
id: "aud_abc123"
|
|
478
|
+
id: "aud_abc123"
|
|
481
479
|
});
|
|
482
|
-
```
|
|
483
480
|
|
|
481
|
+
```
|
|
484
482
|
</dd>
|
|
485
483
|
</dl>
|
|
486
484
|
</dd>
|
|
@@ -494,21 +492,22 @@ await client.audiences.get({
|
|
|
494
492
|
<dl>
|
|
495
493
|
<dd>
|
|
496
494
|
|
|
497
|
-
**request:** `Pinnacle.AudiencesGetRequest`
|
|
498
|
-
|
|
495
|
+
**request:** `Pinnacle.AudiencesGetRequest`
|
|
496
|
+
|
|
499
497
|
</dd>
|
|
500
498
|
</dl>
|
|
501
499
|
|
|
502
500
|
<dl>
|
|
503
501
|
<dd>
|
|
504
502
|
|
|
505
|
-
**requestOptions:** `Audiences.RequestOptions`
|
|
506
|
-
|
|
503
|
+
**requestOptions:** `Audiences.RequestOptions`
|
|
504
|
+
|
|
507
505
|
</dd>
|
|
508
506
|
</dl>
|
|
509
507
|
</dd>
|
|
510
508
|
</dl>
|
|
511
509
|
|
|
510
|
+
|
|
512
511
|
</dd>
|
|
513
512
|
</dl>
|
|
514
513
|
</details>
|
|
@@ -526,7 +525,6 @@ await client.audiences.get({
|
|
|
526
525
|
<dd>
|
|
527
526
|
|
|
528
527
|
Create a new audience with optional initial contacts. Phone numbers that don't exist will be auto-created as contacts.
|
|
529
|
-
|
|
530
528
|
</dd>
|
|
531
529
|
</dl>
|
|
532
530
|
</dd>
|
|
@@ -543,10 +541,10 @@ Create a new audience with optional initial contacts. Phone numbers that don't e
|
|
|
543
541
|
```typescript
|
|
544
542
|
await client.audiences.create({
|
|
545
543
|
name: "Marketing Campaign Q1",
|
|
546
|
-
description: "Contacts for Q1 marketing push"
|
|
544
|
+
description: "Contacts for Q1 marketing push"
|
|
547
545
|
});
|
|
548
|
-
```
|
|
549
546
|
|
|
547
|
+
```
|
|
550
548
|
</dd>
|
|
551
549
|
</dl>
|
|
552
550
|
</dd>
|
|
@@ -560,21 +558,22 @@ await client.audiences.create({
|
|
|
560
558
|
<dl>
|
|
561
559
|
<dd>
|
|
562
560
|
|
|
563
|
-
**request:** `Pinnacle.CreateAudienceParams`
|
|
564
|
-
|
|
561
|
+
**request:** `Pinnacle.CreateAudienceParams`
|
|
562
|
+
|
|
565
563
|
</dd>
|
|
566
564
|
</dl>
|
|
567
565
|
|
|
568
566
|
<dl>
|
|
569
567
|
<dd>
|
|
570
568
|
|
|
571
|
-
**requestOptions:** `Audiences.RequestOptions`
|
|
572
|
-
|
|
569
|
+
**requestOptions:** `Audiences.RequestOptions`
|
|
570
|
+
|
|
573
571
|
</dd>
|
|
574
572
|
</dl>
|
|
575
573
|
</dd>
|
|
576
574
|
</dl>
|
|
577
575
|
|
|
576
|
+
|
|
578
577
|
</dd>
|
|
579
578
|
</dl>
|
|
580
579
|
</details>
|
|
@@ -594,7 +593,6 @@ await client.audiences.create({
|
|
|
594
593
|
Permanently delete an audience and all its contact associations.
|
|
595
594
|
|
|
596
595
|
Note: This will NOT delete the contacts themselves, only the audience and its memberships.
|
|
597
|
-
|
|
598
596
|
</dd>
|
|
599
597
|
</dl>
|
|
600
598
|
</dd>
|
|
@@ -610,10 +608,10 @@ Note: This will NOT delete the contacts themselves, only the audience and its me
|
|
|
610
608
|
|
|
611
609
|
```typescript
|
|
612
610
|
await client.audiences.delete({
|
|
613
|
-
id: "aud_abc123"
|
|
611
|
+
id: "aud_abc123"
|
|
614
612
|
});
|
|
615
|
-
```
|
|
616
613
|
|
|
614
|
+
```
|
|
617
615
|
</dd>
|
|
618
616
|
</dl>
|
|
619
617
|
</dd>
|
|
@@ -627,21 +625,22 @@ await client.audiences.delete({
|
|
|
627
625
|
<dl>
|
|
628
626
|
<dd>
|
|
629
627
|
|
|
630
|
-
**request:** `Pinnacle.AudiencesDeleteRequest`
|
|
631
|
-
|
|
628
|
+
**request:** `Pinnacle.AudiencesDeleteRequest`
|
|
629
|
+
|
|
632
630
|
</dd>
|
|
633
631
|
</dl>
|
|
634
632
|
|
|
635
633
|
<dl>
|
|
636
634
|
<dd>
|
|
637
635
|
|
|
638
|
-
**requestOptions:** `Audiences.RequestOptions`
|
|
639
|
-
|
|
636
|
+
**requestOptions:** `Audiences.RequestOptions`
|
|
637
|
+
|
|
640
638
|
</dd>
|
|
641
639
|
</dl>
|
|
642
640
|
</dd>
|
|
643
641
|
</dl>
|
|
644
642
|
|
|
643
|
+
|
|
645
644
|
</dd>
|
|
646
645
|
</dl>
|
|
647
646
|
</details>
|
|
@@ -661,7 +660,6 @@ await client.audiences.delete({
|
|
|
661
660
|
Update audience metadata. This endpoint does NOT modify contacts.
|
|
662
661
|
|
|
663
662
|
To add or remove contacts, use the [Add Contacts](/api-reference/audiences/add-contacts) or [Remove Contacts](/api-reference/audiences/remove-contacts) endpoints.
|
|
664
|
-
|
|
665
663
|
</dd>
|
|
666
664
|
</dl>
|
|
667
665
|
</dd>
|
|
@@ -679,10 +677,10 @@ To add or remove contacts, use the [Add Contacts](/api-reference/audiences/add-c
|
|
|
679
677
|
await client.audiences.update({
|
|
680
678
|
id: "aud_abc123",
|
|
681
679
|
name: "Updated Audience Name",
|
|
682
|
-
description: "New description"
|
|
680
|
+
description: "New description"
|
|
683
681
|
});
|
|
684
|
-
```
|
|
685
682
|
|
|
683
|
+
```
|
|
686
684
|
</dd>
|
|
687
685
|
</dl>
|
|
688
686
|
</dd>
|
|
@@ -696,27 +694,27 @@ await client.audiences.update({
|
|
|
696
694
|
<dl>
|
|
697
695
|
<dd>
|
|
698
696
|
|
|
699
|
-
**request:** `Pinnacle.UpdateAudienceParams`
|
|
700
|
-
|
|
697
|
+
**request:** `Pinnacle.UpdateAudienceParams`
|
|
698
|
+
|
|
701
699
|
</dd>
|
|
702
700
|
</dl>
|
|
703
701
|
|
|
704
702
|
<dl>
|
|
705
703
|
<dd>
|
|
706
704
|
|
|
707
|
-
**requestOptions:** `Audiences.RequestOptions`
|
|
708
|
-
|
|
705
|
+
**requestOptions:** `Audiences.RequestOptions`
|
|
706
|
+
|
|
709
707
|
</dd>
|
|
710
708
|
</dl>
|
|
711
709
|
</dd>
|
|
712
710
|
</dl>
|
|
713
711
|
|
|
712
|
+
|
|
714
713
|
</dd>
|
|
715
714
|
</dl>
|
|
716
715
|
</details>
|
|
717
716
|
|
|
718
717
|
## Contacts
|
|
719
|
-
|
|
720
718
|
<details><summary><code>client.contacts.<a href="/src/api/resources/contacts/client/Client.ts">get</a>({ ...params }) -> Pinnacle.Contact</code></summary>
|
|
721
719
|
<dl>
|
|
722
720
|
<dd>
|
|
@@ -730,7 +728,6 @@ await client.audiences.update({
|
|
|
730
728
|
<dd>
|
|
731
729
|
|
|
732
730
|
Retrieve contact information for a given number.
|
|
733
|
-
|
|
734
731
|
</dd>
|
|
735
732
|
</dl>
|
|
736
733
|
</dd>
|
|
@@ -746,10 +743,10 @@ Retrieve contact information for a given number.
|
|
|
746
743
|
|
|
747
744
|
```typescript
|
|
748
745
|
await client.contacts.get({
|
|
749
|
-
id: "co_1234567890"
|
|
746
|
+
id: "co_1234567890"
|
|
750
747
|
});
|
|
751
|
-
```
|
|
752
748
|
|
|
749
|
+
```
|
|
753
750
|
</dd>
|
|
754
751
|
</dl>
|
|
755
752
|
</dd>
|
|
@@ -763,21 +760,22 @@ await client.contacts.get({
|
|
|
763
760
|
<dl>
|
|
764
761
|
<dd>
|
|
765
762
|
|
|
766
|
-
**request:** `Pinnacle.ContactsGetRequest`
|
|
767
|
-
|
|
763
|
+
**request:** `Pinnacle.ContactsGetRequest`
|
|
764
|
+
|
|
768
765
|
</dd>
|
|
769
766
|
</dl>
|
|
770
767
|
|
|
771
768
|
<dl>
|
|
772
769
|
<dd>
|
|
773
770
|
|
|
774
|
-
**requestOptions:** `Contacts.RequestOptions`
|
|
775
|
-
|
|
771
|
+
**requestOptions:** `Contacts.RequestOptions`
|
|
772
|
+
|
|
776
773
|
</dd>
|
|
777
774
|
</dl>
|
|
778
775
|
</dd>
|
|
779
776
|
</dl>
|
|
780
777
|
|
|
778
|
+
|
|
781
779
|
</dd>
|
|
782
780
|
</dl>
|
|
783
781
|
</details>
|
|
@@ -795,7 +793,6 @@ await client.contacts.get({
|
|
|
795
793
|
<dd>
|
|
796
794
|
|
|
797
795
|
Create a new contact for a given phone number.
|
|
798
|
-
|
|
799
796
|
</dd>
|
|
800
797
|
</dl>
|
|
801
798
|
</dd>
|
|
@@ -811,10 +808,10 @@ Create a new contact for a given phone number.
|
|
|
811
808
|
|
|
812
809
|
```typescript
|
|
813
810
|
await client.contacts.create({
|
|
814
|
-
phoneNumber: "phoneNumber"
|
|
811
|
+
phoneNumber: "phoneNumber"
|
|
815
812
|
});
|
|
816
|
-
```
|
|
817
813
|
|
|
814
|
+
```
|
|
818
815
|
</dd>
|
|
819
816
|
</dl>
|
|
820
817
|
</dd>
|
|
@@ -828,21 +825,22 @@ await client.contacts.create({
|
|
|
828
825
|
<dl>
|
|
829
826
|
<dd>
|
|
830
827
|
|
|
831
|
-
**request:** `Pinnacle.CreateContactParams`
|
|
832
|
-
|
|
828
|
+
**request:** `Pinnacle.CreateContactParams`
|
|
829
|
+
|
|
833
830
|
</dd>
|
|
834
831
|
</dl>
|
|
835
832
|
|
|
836
833
|
<dl>
|
|
837
834
|
<dd>
|
|
838
835
|
|
|
839
|
-
**requestOptions:** `Contacts.RequestOptions`
|
|
840
|
-
|
|
836
|
+
**requestOptions:** `Contacts.RequestOptions`
|
|
837
|
+
|
|
841
838
|
</dd>
|
|
842
839
|
</dl>
|
|
843
840
|
</dd>
|
|
844
841
|
</dl>
|
|
845
842
|
|
|
843
|
+
|
|
846
844
|
</dd>
|
|
847
845
|
</dl>
|
|
848
846
|
</details>
|
|
@@ -860,7 +858,6 @@ await client.contacts.create({
|
|
|
860
858
|
<dd>
|
|
861
859
|
|
|
862
860
|
Update an existing contact.
|
|
863
|
-
|
|
864
861
|
</dd>
|
|
865
862
|
</dl>
|
|
866
863
|
</dd>
|
|
@@ -880,10 +877,10 @@ await client.contacts.update({
|
|
|
880
877
|
email: "alvaroopedtech@pinnacle.sh",
|
|
881
878
|
name: "Retired Bestie",
|
|
882
879
|
tags: ["friend"],
|
|
883
|
-
id: "co_1234567890"
|
|
880
|
+
id: "co_1234567890"
|
|
884
881
|
});
|
|
885
|
-
```
|
|
886
882
|
|
|
883
|
+
```
|
|
887
884
|
</dd>
|
|
888
885
|
</dl>
|
|
889
886
|
</dd>
|
|
@@ -897,27 +894,27 @@ await client.contacts.update({
|
|
|
897
894
|
<dl>
|
|
898
895
|
<dd>
|
|
899
896
|
|
|
900
|
-
**request:** `Pinnacle.UpdateContactParams`
|
|
901
|
-
|
|
897
|
+
**request:** `Pinnacle.UpdateContactParams`
|
|
898
|
+
|
|
902
899
|
</dd>
|
|
903
900
|
</dl>
|
|
904
901
|
|
|
905
902
|
<dl>
|
|
906
903
|
<dd>
|
|
907
904
|
|
|
908
|
-
**requestOptions:** `Contacts.RequestOptions`
|
|
909
|
-
|
|
905
|
+
**requestOptions:** `Contacts.RequestOptions`
|
|
906
|
+
|
|
910
907
|
</dd>
|
|
911
908
|
</dl>
|
|
912
909
|
</dd>
|
|
913
910
|
</dl>
|
|
914
911
|
|
|
912
|
+
|
|
915
913
|
</dd>
|
|
916
914
|
</dl>
|
|
917
915
|
</details>
|
|
918
916
|
|
|
919
917
|
## Conversations
|
|
920
|
-
|
|
921
918
|
<details><summary><code>client.conversations.<a href="/src/api/resources/conversations/client/Client.ts">get</a>({ ...params }) -> Pinnacle.Conversation | null</code></summary>
|
|
922
919
|
<dl>
|
|
923
920
|
<dd>
|
|
@@ -931,7 +928,6 @@ await client.contacts.update({
|
|
|
931
928
|
<dd>
|
|
932
929
|
|
|
933
930
|
Fetch a specific conversation using either its unique identifier or by matching sender and recipient details.
|
|
934
|
-
|
|
935
931
|
</dd>
|
|
936
932
|
</dl>
|
|
937
933
|
</dd>
|
|
@@ -947,10 +943,10 @@ Fetch a specific conversation using either its unique identifier or by matching
|
|
|
947
943
|
|
|
948
944
|
```typescript
|
|
949
945
|
await client.conversations.get({
|
|
950
|
-
id: "conv_1234567890"
|
|
946
|
+
id: "conv_1234567890"
|
|
951
947
|
});
|
|
952
|
-
```
|
|
953
948
|
|
|
949
|
+
```
|
|
954
950
|
</dd>
|
|
955
951
|
</dl>
|
|
956
952
|
</dd>
|
|
@@ -964,21 +960,22 @@ await client.conversations.get({
|
|
|
964
960
|
<dl>
|
|
965
961
|
<dd>
|
|
966
962
|
|
|
967
|
-
**request:** `Pinnacle.GetConversationParams`
|
|
968
|
-
|
|
963
|
+
**request:** `Pinnacle.GetConversationParams`
|
|
964
|
+
|
|
969
965
|
</dd>
|
|
970
966
|
</dl>
|
|
971
967
|
|
|
972
968
|
<dl>
|
|
973
969
|
<dd>
|
|
974
970
|
|
|
975
|
-
**requestOptions:** `Conversations.RequestOptions`
|
|
976
|
-
|
|
971
|
+
**requestOptions:** `Conversations.RequestOptions`
|
|
972
|
+
|
|
977
973
|
</dd>
|
|
978
974
|
</dl>
|
|
979
975
|
</dd>
|
|
980
976
|
</dl>
|
|
981
977
|
|
|
978
|
+
|
|
982
979
|
</dd>
|
|
983
980
|
</dl>
|
|
984
981
|
</details>
|
|
@@ -996,7 +993,6 @@ await client.conversations.get({
|
|
|
996
993
|
<dd>
|
|
997
994
|
|
|
998
995
|
Retrieves conversations by page with optional filtering based off provided parameters.
|
|
999
|
-
|
|
1000
996
|
</dd>
|
|
1001
997
|
</dl>
|
|
1002
998
|
</dd>
|
|
@@ -1018,10 +1014,10 @@ await client.conversations.list({
|
|
|
1018
1014
|
pageIndex: 0,
|
|
1019
1015
|
pageSize: 20,
|
|
1020
1016
|
receiver: "+16509231662",
|
|
1021
|
-
sender: "+18445551234"
|
|
1017
|
+
sender: "+18445551234"
|
|
1022
1018
|
});
|
|
1023
|
-
```
|
|
1024
1019
|
|
|
1020
|
+
```
|
|
1025
1021
|
</dd>
|
|
1026
1022
|
</dl>
|
|
1027
1023
|
</dd>
|
|
@@ -1035,21 +1031,22 @@ await client.conversations.list({
|
|
|
1035
1031
|
<dl>
|
|
1036
1032
|
<dd>
|
|
1037
1033
|
|
|
1038
|
-
**request:** `Pinnacle.ListConversationsParams`
|
|
1039
|
-
|
|
1034
|
+
**request:** `Pinnacle.ListConversationsParams`
|
|
1035
|
+
|
|
1040
1036
|
</dd>
|
|
1041
1037
|
</dl>
|
|
1042
1038
|
|
|
1043
1039
|
<dl>
|
|
1044
1040
|
<dd>
|
|
1045
1041
|
|
|
1046
|
-
**requestOptions:** `Conversations.RequestOptions`
|
|
1047
|
-
|
|
1042
|
+
**requestOptions:** `Conversations.RequestOptions`
|
|
1043
|
+
|
|
1048
1044
|
</dd>
|
|
1049
1045
|
</dl>
|
|
1050
1046
|
</dd>
|
|
1051
1047
|
</dl>
|
|
1052
1048
|
|
|
1049
|
+
|
|
1053
1050
|
</dd>
|
|
1054
1051
|
</dl>
|
|
1055
1052
|
</details>
|
|
@@ -1067,7 +1064,6 @@ await client.conversations.list({
|
|
|
1067
1064
|
<dd>
|
|
1068
1065
|
|
|
1069
1066
|
Update the notes associated with a specific conversation.
|
|
1070
|
-
|
|
1071
1067
|
</dd>
|
|
1072
1068
|
</dl>
|
|
1073
1069
|
</dd>
|
|
@@ -1084,10 +1080,10 @@ Update the notes associated with a specific conversation.
|
|
|
1084
1080
|
```typescript
|
|
1085
1081
|
await client.conversations.update({
|
|
1086
1082
|
id: "conv_1234567890",
|
|
1087
|
-
notes: "Follow-up completed. Customer satisfied with resolution."
|
|
1083
|
+
notes: "Follow-up completed. Customer satisfied with resolution."
|
|
1088
1084
|
});
|
|
1089
|
-
```
|
|
1090
1085
|
|
|
1086
|
+
```
|
|
1091
1087
|
</dd>
|
|
1092
1088
|
</dl>
|
|
1093
1089
|
</dd>
|
|
@@ -1101,21 +1097,22 @@ await client.conversations.update({
|
|
|
1101
1097
|
<dl>
|
|
1102
1098
|
<dd>
|
|
1103
1099
|
|
|
1104
|
-
**request:** `Pinnacle.UpdateConversationParams`
|
|
1105
|
-
|
|
1100
|
+
**request:** `Pinnacle.UpdateConversationParams`
|
|
1101
|
+
|
|
1106
1102
|
</dd>
|
|
1107
1103
|
</dl>
|
|
1108
1104
|
|
|
1109
1105
|
<dl>
|
|
1110
1106
|
<dd>
|
|
1111
1107
|
|
|
1112
|
-
**requestOptions:** `Conversations.RequestOptions`
|
|
1113
|
-
|
|
1108
|
+
**requestOptions:** `Conversations.RequestOptions`
|
|
1109
|
+
|
|
1114
1110
|
</dd>
|
|
1115
1111
|
</dl>
|
|
1116
1112
|
</dd>
|
|
1117
1113
|
</dl>
|
|
1118
1114
|
|
|
1115
|
+
|
|
1119
1116
|
</dd>
|
|
1120
1117
|
</dl>
|
|
1121
1118
|
</details>
|
|
@@ -1133,7 +1130,6 @@ await client.conversations.update({
|
|
|
1133
1130
|
<dd>
|
|
1134
1131
|
|
|
1135
1132
|
Retrieve a paginated and filtered list of messages for a specific conversation.
|
|
1136
|
-
|
|
1137
1133
|
</dd>
|
|
1138
1134
|
</dl>
|
|
1139
1135
|
</dd>
|
|
@@ -1149,8 +1145,8 @@ Retrieve a paginated and filtered list of messages for a specific conversation.
|
|
|
1149
1145
|
|
|
1150
1146
|
```typescript
|
|
1151
1147
|
await client.conversations.listMessages("id");
|
|
1152
|
-
```
|
|
1153
1148
|
|
|
1149
|
+
```
|
|
1154
1150
|
</dd>
|
|
1155
1151
|
</dl>
|
|
1156
1152
|
</dd>
|
|
@@ -1165,34 +1161,34 @@ await client.conversations.listMessages("id");
|
|
|
1165
1161
|
<dd>
|
|
1166
1162
|
|
|
1167
1163
|
**id:** `string` — Unique identifier of the conversation. This identifier is a string that always begins with the prefix `conv_`, for example: `conv_1234567890`.
|
|
1168
|
-
|
|
1164
|
+
|
|
1169
1165
|
</dd>
|
|
1170
1166
|
</dl>
|
|
1171
1167
|
|
|
1172
1168
|
<dl>
|
|
1173
1169
|
<dd>
|
|
1174
1170
|
|
|
1175
|
-
**request:** `Pinnacle.ConversationsListMessagesRequest`
|
|
1176
|
-
|
|
1171
|
+
**request:** `Pinnacle.ConversationsListMessagesRequest`
|
|
1172
|
+
|
|
1177
1173
|
</dd>
|
|
1178
1174
|
</dl>
|
|
1179
1175
|
|
|
1180
1176
|
<dl>
|
|
1181
1177
|
<dd>
|
|
1182
1178
|
|
|
1183
|
-
**requestOptions:** `Conversations.RequestOptions`
|
|
1184
|
-
|
|
1179
|
+
**requestOptions:** `Conversations.RequestOptions`
|
|
1180
|
+
|
|
1185
1181
|
</dd>
|
|
1186
1182
|
</dl>
|
|
1187
1183
|
</dd>
|
|
1188
1184
|
</dl>
|
|
1189
1185
|
|
|
1186
|
+
|
|
1190
1187
|
</dd>
|
|
1191
1188
|
</dl>
|
|
1192
1189
|
</details>
|
|
1193
1190
|
|
|
1194
1191
|
## Messages
|
|
1195
|
-
|
|
1196
1192
|
<details><summary><code>client.messages.<a href="/src/api/resources/messages/client/Client.ts">get</a>(id) -> Pinnacle.Message</code></summary>
|
|
1197
1193
|
<dl>
|
|
1198
1194
|
<dd>
|
|
@@ -1206,7 +1202,6 @@ await client.conversations.listMessages("id");
|
|
|
1206
1202
|
<dd>
|
|
1207
1203
|
|
|
1208
1204
|
Retrieve a previously sent message.
|
|
1209
|
-
|
|
1210
1205
|
</dd>
|
|
1211
1206
|
</dl>
|
|
1212
1207
|
</dd>
|
|
@@ -1222,8 +1217,8 @@ Retrieve a previously sent message.
|
|
|
1222
1217
|
|
|
1223
1218
|
```typescript
|
|
1224
1219
|
await client.messages.get("msg_1234567890");
|
|
1225
|
-
```
|
|
1226
1220
|
|
|
1221
|
+
```
|
|
1227
1222
|
</dd>
|
|
1228
1223
|
</dl>
|
|
1229
1224
|
</dd>
|
|
@@ -1238,20 +1233,21 @@ await client.messages.get("msg_1234567890");
|
|
|
1238
1233
|
<dd>
|
|
1239
1234
|
|
|
1240
1235
|
**id:** `string` — Unique identifier of the message. This identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`.
|
|
1241
|
-
|
|
1236
|
+
|
|
1242
1237
|
</dd>
|
|
1243
1238
|
</dl>
|
|
1244
1239
|
|
|
1245
1240
|
<dl>
|
|
1246
1241
|
<dd>
|
|
1247
1242
|
|
|
1248
|
-
**requestOptions:** `Messages.RequestOptions`
|
|
1249
|
-
|
|
1243
|
+
**requestOptions:** `Messages.RequestOptions`
|
|
1244
|
+
|
|
1250
1245
|
</dd>
|
|
1251
1246
|
</dl>
|
|
1252
1247
|
</dd>
|
|
1253
1248
|
</dl>
|
|
1254
1249
|
|
|
1250
|
+
|
|
1255
1251
|
</dd>
|
|
1256
1252
|
</dl>
|
|
1257
1253
|
</details>
|
|
@@ -1269,7 +1265,6 @@ await client.messages.get("msg_1234567890");
|
|
|
1269
1265
|
<dd>
|
|
1270
1266
|
|
|
1271
1267
|
Add or remove an emoji reaction to a previously sent message.
|
|
1272
|
-
|
|
1273
1268
|
</dd>
|
|
1274
1269
|
</dl>
|
|
1275
1270
|
</dd>
|
|
@@ -1287,12 +1282,12 @@ Add or remove an emoji reaction to a previously sent message.
|
|
|
1287
1282
|
await client.messages.react({
|
|
1288
1283
|
messageId: "msg_1234567890",
|
|
1289
1284
|
options: {
|
|
1290
|
-
force: true
|
|
1285
|
+
force: true
|
|
1291
1286
|
},
|
|
1292
|
-
reaction: "\uD83D\uDC4D"
|
|
1287
|
+
reaction: "\uD83D\uDC4D"
|
|
1293
1288
|
});
|
|
1294
|
-
```
|
|
1295
1289
|
|
|
1290
|
+
```
|
|
1296
1291
|
</dd>
|
|
1297
1292
|
</dl>
|
|
1298
1293
|
</dd>
|
|
@@ -1306,27 +1301,95 @@ await client.messages.react({
|
|
|
1306
1301
|
<dl>
|
|
1307
1302
|
<dd>
|
|
1308
1303
|
|
|
1309
|
-
**request:** `Pinnacle.ReactMessageParams`
|
|
1304
|
+
**request:** `Pinnacle.ReactMessageParams`
|
|
1305
|
+
|
|
1306
|
+
</dd>
|
|
1307
|
+
</dl>
|
|
1308
|
+
|
|
1309
|
+
<dl>
|
|
1310
|
+
<dd>
|
|
1311
|
+
|
|
1312
|
+
**requestOptions:** `Messages.RequestOptions`
|
|
1313
|
+
|
|
1314
|
+
</dd>
|
|
1315
|
+
</dl>
|
|
1316
|
+
</dd>
|
|
1317
|
+
</dl>
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
</dd>
|
|
1321
|
+
</dl>
|
|
1322
|
+
</details>
|
|
1323
|
+
|
|
1324
|
+
<details><summary><code>client.messages.<a href="/src/api/resources/messages/client/Client.ts">cancel</a>(id) -> Pinnacle.CancelScheduledMessageResponse</code></summary>
|
|
1325
|
+
<dl>
|
|
1326
|
+
<dd>
|
|
1327
|
+
|
|
1328
|
+
#### 📝 Description
|
|
1329
|
+
|
|
1330
|
+
<dl>
|
|
1331
|
+
<dd>
|
|
1332
|
+
|
|
1333
|
+
<dl>
|
|
1334
|
+
<dd>
|
|
1335
|
+
|
|
1336
|
+
Cancel a previously scheduled message before it is sent.
|
|
1337
|
+
|
|
1338
|
+
Use the `scheduleId` returned from a scheduled send request (SMS, MMS, or RCS) to cancel the message.
|
|
1339
|
+
Once cancelled, the scheduled message will stop being sent.
|
|
1310
1340
|
|
|
1341
|
+
> **Note:** You cannot cancel a message that has already been sent.
|
|
1342
|
+
</dd>
|
|
1343
|
+
</dl>
|
|
1311
1344
|
</dd>
|
|
1312
1345
|
</dl>
|
|
1313
1346
|
|
|
1347
|
+
#### 🔌 Usage
|
|
1348
|
+
|
|
1349
|
+
<dl>
|
|
1350
|
+
<dd>
|
|
1351
|
+
|
|
1352
|
+
<dl>
|
|
1353
|
+
<dd>
|
|
1354
|
+
|
|
1355
|
+
```typescript
|
|
1356
|
+
await client.messages.cancel("msg_sched_1234567890");
|
|
1357
|
+
|
|
1358
|
+
```
|
|
1359
|
+
</dd>
|
|
1360
|
+
</dl>
|
|
1361
|
+
</dd>
|
|
1362
|
+
</dl>
|
|
1363
|
+
|
|
1364
|
+
#### ⚙️ Parameters
|
|
1365
|
+
|
|
1366
|
+
<dl>
|
|
1367
|
+
<dd>
|
|
1368
|
+
|
|
1314
1369
|
<dl>
|
|
1315
1370
|
<dd>
|
|
1316
1371
|
|
|
1317
|
-
**
|
|
1372
|
+
**id:** `string` — Unique identifier of the scheduled message. This identifier is a string that always begins with the prefix `msg_sched_`, for example: `msg_sched_1234567890`.
|
|
1373
|
+
|
|
1374
|
+
</dd>
|
|
1375
|
+
</dl>
|
|
1376
|
+
|
|
1377
|
+
<dl>
|
|
1378
|
+
<dd>
|
|
1318
1379
|
|
|
1380
|
+
**requestOptions:** `Messages.RequestOptions`
|
|
1381
|
+
|
|
1319
1382
|
</dd>
|
|
1320
1383
|
</dl>
|
|
1321
1384
|
</dd>
|
|
1322
1385
|
</dl>
|
|
1323
1386
|
|
|
1387
|
+
|
|
1324
1388
|
</dd>
|
|
1325
1389
|
</dl>
|
|
1326
1390
|
</details>
|
|
1327
1391
|
|
|
1328
1392
|
## PhoneNumbers
|
|
1329
|
-
|
|
1330
1393
|
<details><summary><code>client.phoneNumbers.<a href="/src/api/resources/phoneNumbers/client/Client.ts">search</a>({ ...params }) -> Pinnacle.PhoneNumberDetails[]</code></summary>
|
|
1331
1394
|
<dl>
|
|
1332
1395
|
<dd>
|
|
@@ -1340,7 +1403,6 @@ await client.messages.react({
|
|
|
1340
1403
|
<dd>
|
|
1341
1404
|
|
|
1342
1405
|
Search for available phone numbers that match your exact criteria.
|
|
1343
|
-
|
|
1344
1406
|
</dd>
|
|
1345
1407
|
</dl>
|
|
1346
1408
|
</dd>
|
|
@@ -1359,19 +1421,19 @@ await client.phoneNumbers.search({
|
|
|
1359
1421
|
features: ["SMS", "MMS"],
|
|
1360
1422
|
location: {
|
|
1361
1423
|
city: "New York",
|
|
1362
|
-
nationalDestinationCode: "212"
|
|
1424
|
+
nationalDestinationCode: "212"
|
|
1363
1425
|
},
|
|
1364
1426
|
number: {
|
|
1365
1427
|
contains: "514",
|
|
1366
|
-
startsWith: "45"
|
|
1428
|
+
startsWith: "45"
|
|
1367
1429
|
},
|
|
1368
1430
|
options: {
|
|
1369
|
-
limit: 4
|
|
1431
|
+
limit: 4
|
|
1370
1432
|
},
|
|
1371
|
-
type: ["LOCAL"]
|
|
1433
|
+
type: ["LOCAL"]
|
|
1372
1434
|
});
|
|
1373
|
-
```
|
|
1374
1435
|
|
|
1436
|
+
```
|
|
1375
1437
|
</dd>
|
|
1376
1438
|
</dl>
|
|
1377
1439
|
</dd>
|
|
@@ -1385,21 +1447,22 @@ await client.phoneNumbers.search({
|
|
|
1385
1447
|
<dl>
|
|
1386
1448
|
<dd>
|
|
1387
1449
|
|
|
1388
|
-
**request:** `Pinnacle.SearchPhoneNumberParams`
|
|
1389
|
-
|
|
1450
|
+
**request:** `Pinnacle.SearchPhoneNumberParams`
|
|
1451
|
+
|
|
1390
1452
|
</dd>
|
|
1391
1453
|
</dl>
|
|
1392
1454
|
|
|
1393
1455
|
<dl>
|
|
1394
1456
|
<dd>
|
|
1395
1457
|
|
|
1396
|
-
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
1397
|
-
|
|
1458
|
+
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
1459
|
+
|
|
1398
1460
|
</dd>
|
|
1399
1461
|
</dl>
|
|
1400
1462
|
</dd>
|
|
1401
1463
|
</dl>
|
|
1402
1464
|
|
|
1465
|
+
|
|
1403
1466
|
</dd>
|
|
1404
1467
|
</dl>
|
|
1405
1468
|
</details>
|
|
@@ -1419,7 +1482,6 @@ await client.phoneNumbers.search({
|
|
|
1419
1482
|
Purchase one or more phone numbers found through the [search endpoint](./search). <br>
|
|
1420
1483
|
|
|
1421
1484
|
Billing uses your account credits and the numbers are ready for immediate use.
|
|
1422
|
-
|
|
1423
1485
|
</dd>
|
|
1424
1486
|
</dl>
|
|
1425
1487
|
</dd>
|
|
@@ -1435,10 +1497,10 @@ Billing uses your account credits and the numbers are ready for immediate use.
|
|
|
1435
1497
|
|
|
1436
1498
|
```typescript
|
|
1437
1499
|
await client.phoneNumbers.buy({
|
|
1438
|
-
numbers: ["+18559491727"]
|
|
1500
|
+
numbers: ["+18559491727"]
|
|
1439
1501
|
});
|
|
1440
|
-
```
|
|
1441
1502
|
|
|
1503
|
+
```
|
|
1442
1504
|
</dd>
|
|
1443
1505
|
</dl>
|
|
1444
1506
|
</dd>
|
|
@@ -1452,21 +1514,22 @@ await client.phoneNumbers.buy({
|
|
|
1452
1514
|
<dl>
|
|
1453
1515
|
<dd>
|
|
1454
1516
|
|
|
1455
|
-
**request:** `Pinnacle.BuyPhoneNumberParams`
|
|
1456
|
-
|
|
1517
|
+
**request:** `Pinnacle.BuyPhoneNumberParams`
|
|
1518
|
+
|
|
1457
1519
|
</dd>
|
|
1458
1520
|
</dl>
|
|
1459
1521
|
|
|
1460
1522
|
<dl>
|
|
1461
1523
|
<dd>
|
|
1462
1524
|
|
|
1463
|
-
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
1464
|
-
|
|
1525
|
+
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
1526
|
+
|
|
1465
1527
|
</dd>
|
|
1466
1528
|
</dl>
|
|
1467
1529
|
</dd>
|
|
1468
1530
|
</dl>
|
|
1469
1531
|
|
|
1532
|
+
|
|
1470
1533
|
</dd>
|
|
1471
1534
|
</dl>
|
|
1472
1535
|
</details>
|
|
@@ -1484,7 +1547,6 @@ await client.phoneNumbers.buy({
|
|
|
1484
1547
|
<dd>
|
|
1485
1548
|
|
|
1486
1549
|
Retrieve information about any phone number.
|
|
1487
|
-
|
|
1488
1550
|
</dd>
|
|
1489
1551
|
</dl>
|
|
1490
1552
|
</dd>
|
|
@@ -1505,12 +1567,12 @@ await client.phoneNumbers.get({
|
|
|
1505
1567
|
options: {
|
|
1506
1568
|
risk: true,
|
|
1507
1569
|
enhanced_contact_info: {
|
|
1508
|
-
context: "This is my friend from JZ. He has done a lot in the crypto space."
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1570
|
+
context: "This is my friend from JZ. He has done a lot in the crypto space."
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1511
1573
|
});
|
|
1512
|
-
```
|
|
1513
1574
|
|
|
1575
|
+
```
|
|
1514
1576
|
</dd>
|
|
1515
1577
|
</dl>
|
|
1516
1578
|
</dd>
|
|
@@ -1524,27 +1586,27 @@ await client.phoneNumbers.get({
|
|
|
1524
1586
|
<dl>
|
|
1525
1587
|
<dd>
|
|
1526
1588
|
|
|
1527
|
-
**request:** `Pinnacle.RetrievePhoneNumberDetailsParams`
|
|
1528
|
-
|
|
1589
|
+
**request:** `Pinnacle.RetrievePhoneNumberDetailsParams`
|
|
1590
|
+
|
|
1529
1591
|
</dd>
|
|
1530
1592
|
</dl>
|
|
1531
1593
|
|
|
1532
1594
|
<dl>
|
|
1533
1595
|
<dd>
|
|
1534
1596
|
|
|
1535
|
-
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
1536
|
-
|
|
1597
|
+
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
1598
|
+
|
|
1537
1599
|
</dd>
|
|
1538
1600
|
</dl>
|
|
1539
1601
|
</dd>
|
|
1540
1602
|
</dl>
|
|
1541
1603
|
|
|
1604
|
+
|
|
1542
1605
|
</dd>
|
|
1543
1606
|
</dl>
|
|
1544
1607
|
</details>
|
|
1545
1608
|
|
|
1546
1609
|
## RCS
|
|
1547
|
-
|
|
1548
1610
|
<details><summary><code>client.rcs.<a href="/src/api/resources/rcs/client/Client.ts">getCapabilities</a>({ ...params }) -> Pinnacle.RcsCapabilitiesResult</code></summary>
|
|
1549
1611
|
<dl>
|
|
1550
1612
|
<dd>
|
|
@@ -1561,7 +1623,6 @@ Check RCS capabilities for one or more phone numbers.
|
|
|
1561
1623
|
|
|
1562
1624
|
This endpoint allows you to verify which RCS features (cards, buttons, etc.) are supported
|
|
1563
1625
|
on specific phone numbers before sending RCS messages to them.
|
|
1564
|
-
|
|
1565
1626
|
</dd>
|
|
1566
1627
|
</dl>
|
|
1567
1628
|
</dd>
|
|
@@ -1577,10 +1638,10 @@ on specific phone numbers before sending RCS messages to them.
|
|
|
1577
1638
|
|
|
1578
1639
|
```typescript
|
|
1579
1640
|
await client.rcs.getCapabilities({
|
|
1580
|
-
phoneNumbers: ["+12345678901", "+19876543210"]
|
|
1641
|
+
phoneNumbers: ["+12345678901", "+19876543210"]
|
|
1581
1642
|
});
|
|
1582
|
-
```
|
|
1583
1643
|
|
|
1644
|
+
```
|
|
1584
1645
|
</dd>
|
|
1585
1646
|
</dl>
|
|
1586
1647
|
</dd>
|
|
@@ -1594,21 +1655,22 @@ await client.rcs.getCapabilities({
|
|
|
1594
1655
|
<dl>
|
|
1595
1656
|
<dd>
|
|
1596
1657
|
|
|
1597
|
-
**request:** `Pinnacle.RcsCapabilitiesQuery`
|
|
1598
|
-
|
|
1658
|
+
**request:** `Pinnacle.RcsCapabilitiesQuery`
|
|
1659
|
+
|
|
1599
1660
|
</dd>
|
|
1600
1661
|
</dl>
|
|
1601
1662
|
|
|
1602
1663
|
<dl>
|
|
1603
1664
|
<dd>
|
|
1604
1665
|
|
|
1605
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
1606
|
-
|
|
1666
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
1667
|
+
|
|
1607
1668
|
</dd>
|
|
1608
1669
|
</dl>
|
|
1609
1670
|
</dd>
|
|
1610
1671
|
</dl>
|
|
1611
1672
|
|
|
1673
|
+
|
|
1612
1674
|
</dd>
|
|
1613
1675
|
</dl>
|
|
1614
1676
|
</details>
|
|
@@ -1628,22 +1690,20 @@ await client.rcs.getCapabilities({
|
|
|
1628
1690
|
Whitelist a phone number for testing with your test RCS agent.
|
|
1629
1691
|
|
|
1630
1692
|
## Overview
|
|
1631
|
-
|
|
1632
1693
|
During development and testing, RCS agents can only send messages to whitelisted phone numbers.
|
|
1633
1694
|
Use this endpoint to whitelist specific phone numbers to send and receive messages from the test agent.
|
|
1634
1695
|
|
|
1635
1696
|
## Verification Process
|
|
1636
|
-
|
|
1637
1697
|
After whitelisting a number, you'll need to complete verification:
|
|
1638
1698
|
|
|
1639
1699
|
1. Check the test device for message from "RBM Tester Management"
|
|
1640
1700
|
2. Click the "Make me a tester" button
|
|
1641
1701
|
3. Enter the separate 4-digit verification SMS code in the Pinnacle dashboard at:
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1702
|
+
```
|
|
1703
|
+
https://app.pinnacle.sh/dashboard/brands/{brandId}?campaignId={campaignId}&campaignType=RCS
|
|
1704
|
+
```
|
|
1645
1705
|
|
|
1646
|
-
> **⚠️ Important: Re-whitelisting Numbers**
|
|
1706
|
+
> **⚠️ Important: Re-whitelisting Numbers**
|
|
1647
1707
|
>
|
|
1648
1708
|
> If you whitelist a number that's already whitelisted, you'll receive a new message from "RBM Tester Management". **You must click the "Make me a tester" button again to continue sending and receiving messages.**
|
|
1649
1709
|
|
|
@@ -1652,7 +1712,6 @@ After whitelisting a number, you'll need to complete verification:
|
|
|
1652
1712
|
> - **Verification required:** Messages cannot be sent nor received until you have clicked the "Make me a tester" button on the test device.
|
|
1653
1713
|
> - **Testing only:** This is only required for test agents. Production agents can message any RCS-enabled number.
|
|
1654
1714
|
> - **Network limitations:** Whitelisting may be temporarily unavailable for some carriers but are usually restored shortly.
|
|
1655
|
-
|
|
1656
1715
|
</dd>
|
|
1657
1716
|
</dl>
|
|
1658
1717
|
</dd>
|
|
@@ -1669,10 +1728,10 @@ After whitelisting a number, you'll need to complete verification:
|
|
|
1669
1728
|
```typescript
|
|
1670
1729
|
await client.rcs.whitelist({
|
|
1671
1730
|
agentId: "agent_XXXXXXXXXXXX",
|
|
1672
|
-
phoneNumber: "+12345678901"
|
|
1731
|
+
phoneNumber: "+12345678901"
|
|
1673
1732
|
});
|
|
1674
|
-
```
|
|
1675
1733
|
|
|
1734
|
+
```
|
|
1676
1735
|
</dd>
|
|
1677
1736
|
</dl>
|
|
1678
1737
|
</dd>
|
|
@@ -1686,21 +1745,22 @@ await client.rcs.whitelist({
|
|
|
1686
1745
|
<dl>
|
|
1687
1746
|
<dd>
|
|
1688
1747
|
|
|
1689
|
-
**request:** `Pinnacle.RcsWhitelistRequest`
|
|
1690
|
-
|
|
1748
|
+
**request:** `Pinnacle.RcsWhitelistRequest`
|
|
1749
|
+
|
|
1691
1750
|
</dd>
|
|
1692
1751
|
</dl>
|
|
1693
1752
|
|
|
1694
1753
|
<dl>
|
|
1695
1754
|
<dd>
|
|
1696
1755
|
|
|
1697
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
1698
|
-
|
|
1756
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
1757
|
+
|
|
1699
1758
|
</dd>
|
|
1700
1759
|
</dl>
|
|
1701
1760
|
</dd>
|
|
1702
1761
|
</dl>
|
|
1703
1762
|
|
|
1763
|
+
|
|
1704
1764
|
</dd>
|
|
1705
1765
|
</dl>
|
|
1706
1766
|
</details>
|
|
@@ -1717,11 +1777,10 @@ await client.rcs.whitelist({
|
|
|
1717
1777
|
<dl>
|
|
1718
1778
|
<dd>
|
|
1719
1779
|
|
|
1720
|
-
Generate a link for initiating an RCS conversation with your agent.
|
|
1780
|
+
Generate a link for initiating an RCS conversation with your agent.
|
|
1721
1781
|
|
|
1722
1782
|
Users can click these links to start conversations with your RCS agent directly
|
|
1723
1783
|
from websites, emails, or other applications.
|
|
1724
|
-
|
|
1725
1784
|
</dd>
|
|
1726
1785
|
</dl>
|
|
1727
1786
|
</dd>
|
|
@@ -1740,10 +1799,10 @@ await client.rcs.getLink({
|
|
|
1740
1799
|
agentId: "agent_XXXXXXXXXXXX",
|
|
1741
1800
|
testMode: false,
|
|
1742
1801
|
phoneNumber: "+12345678901",
|
|
1743
|
-
body: "Hello, I need help with my order"
|
|
1802
|
+
body: "Hello, I need help with my order"
|
|
1744
1803
|
});
|
|
1745
|
-
```
|
|
1746
1804
|
|
|
1805
|
+
```
|
|
1747
1806
|
</dd>
|
|
1748
1807
|
</dl>
|
|
1749
1808
|
</dd>
|
|
@@ -1757,27 +1816,27 @@ await client.rcs.getLink({
|
|
|
1757
1816
|
<dl>
|
|
1758
1817
|
<dd>
|
|
1759
1818
|
|
|
1760
|
-
**request:** `Pinnacle.RcsLinkRequest`
|
|
1761
|
-
|
|
1819
|
+
**request:** `Pinnacle.RcsLinkRequest`
|
|
1820
|
+
|
|
1762
1821
|
</dd>
|
|
1763
1822
|
</dl>
|
|
1764
1823
|
|
|
1765
1824
|
<dl>
|
|
1766
1825
|
<dd>
|
|
1767
1826
|
|
|
1768
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
1769
|
-
|
|
1827
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
1828
|
+
|
|
1770
1829
|
</dd>
|
|
1771
1830
|
</dl>
|
|
1772
1831
|
</dd>
|
|
1773
1832
|
</dl>
|
|
1774
1833
|
|
|
1834
|
+
|
|
1775
1835
|
</dd>
|
|
1776
1836
|
</dl>
|
|
1777
1837
|
</details>
|
|
1778
1838
|
|
|
1779
1839
|
## Webhooks
|
|
1780
|
-
|
|
1781
1840
|
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">get</a>({ ...params }) -> Pinnacle.WebhookResult</code></summary>
|
|
1782
1841
|
<dl>
|
|
1783
1842
|
<dd>
|
|
@@ -1791,7 +1850,6 @@ await client.rcs.getLink({
|
|
|
1791
1850
|
<dd>
|
|
1792
1851
|
|
|
1793
1852
|
Retrieve all webhook that are set up to receive events for specific URLs or phone numbers.
|
|
1794
|
-
|
|
1795
1853
|
</dd>
|
|
1796
1854
|
</dl>
|
|
1797
1855
|
</dd>
|
|
@@ -1807,15 +1865,10 @@ Retrieve all webhook that are set up to receive events for specific URLs or phon
|
|
|
1807
1865
|
|
|
1808
1866
|
```typescript
|
|
1809
1867
|
await client.webhooks.get({
|
|
1810
|
-
identifiers: [
|
|
1811
|
-
"https://www.pinnacle.sh/payment",
|
|
1812
|
-
"+14155678901",
|
|
1813
|
-
"https://www.pinnacle.sh/sms-callback",
|
|
1814
|
-
"+14153456659",
|
|
1815
|
-
],
|
|
1868
|
+
identifiers: ["https://www.pinnacle.sh/payment", "+14155678901", "https://www.pinnacle.sh/sms-callback", "+14153456659"]
|
|
1816
1869
|
});
|
|
1817
|
-
```
|
|
1818
1870
|
|
|
1871
|
+
```
|
|
1819
1872
|
</dd>
|
|
1820
1873
|
</dl>
|
|
1821
1874
|
</dd>
|
|
@@ -1829,27 +1882,27 @@ await client.webhooks.get({
|
|
|
1829
1882
|
<dl>
|
|
1830
1883
|
<dd>
|
|
1831
1884
|
|
|
1832
|
-
**request:** `Pinnacle.GetWebhookParams`
|
|
1833
|
-
|
|
1885
|
+
**request:** `Pinnacle.GetWebhookParams`
|
|
1886
|
+
|
|
1834
1887
|
</dd>
|
|
1835
1888
|
</dl>
|
|
1836
1889
|
|
|
1837
1890
|
<dl>
|
|
1838
1891
|
<dd>
|
|
1839
1892
|
|
|
1840
|
-
**requestOptions:** `Webhooks.RequestOptions`
|
|
1841
|
-
|
|
1893
|
+
**requestOptions:** `Webhooks.RequestOptions`
|
|
1894
|
+
|
|
1842
1895
|
</dd>
|
|
1843
1896
|
</dl>
|
|
1844
1897
|
</dd>
|
|
1845
1898
|
</dl>
|
|
1846
1899
|
|
|
1900
|
+
|
|
1847
1901
|
</dd>
|
|
1848
1902
|
</dl>
|
|
1849
1903
|
</details>
|
|
1850
1904
|
|
|
1851
1905
|
## Audiences Contacts
|
|
1852
|
-
|
|
1853
1906
|
<details><summary><code>client.audiences.contacts.<a href="/src/api/resources/audiences/resources/contacts/client/Client.ts">remove</a>({ ...params }) -> Pinnacle.AudienceCountOnly</code></summary>
|
|
1854
1907
|
<dl>
|
|
1855
1908
|
<dd>
|
|
@@ -1866,10 +1919,10 @@ Remove contacts from an existing audience. This operation is idempotent.
|
|
|
1866
1919
|
|
|
1867
1920
|
- Only removes contacts that exist in the audience
|
|
1868
1921
|
- Contacts not in the audience are ignored
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1922
|
+
</dd>
|
|
1923
|
+
</dl>
|
|
1924
|
+
</dd>
|
|
1925
|
+
</dl>
|
|
1873
1926
|
|
|
1874
1927
|
#### 🔌 Usage
|
|
1875
1928
|
|
|
@@ -1882,10 +1935,10 @@ Remove contacts from an existing audience. This operation is idempotent.
|
|
|
1882
1935
|
```typescript
|
|
1883
1936
|
await client.audiences.contacts.remove({
|
|
1884
1937
|
id: "aud_abc123",
|
|
1885
|
-
contacts: ["+12125551234", "co_def456"]
|
|
1938
|
+
contacts: ["+12125551234", "co_def456"]
|
|
1886
1939
|
});
|
|
1887
|
-
```
|
|
1888
1940
|
|
|
1941
|
+
```
|
|
1889
1942
|
</dd>
|
|
1890
1943
|
</dl>
|
|
1891
1944
|
</dd>
|
|
@@ -1899,21 +1952,22 @@ await client.audiences.contacts.remove({
|
|
|
1899
1952
|
<dl>
|
|
1900
1953
|
<dd>
|
|
1901
1954
|
|
|
1902
|
-
**request:** `Pinnacle.audiences.RemoveContactsParams`
|
|
1903
|
-
|
|
1955
|
+
**request:** `Pinnacle.audiences.RemoveContactsParams`
|
|
1956
|
+
|
|
1904
1957
|
</dd>
|
|
1905
1958
|
</dl>
|
|
1906
1959
|
|
|
1907
1960
|
<dl>
|
|
1908
1961
|
<dd>
|
|
1909
1962
|
|
|
1910
|
-
**requestOptions:** `Contacts.RequestOptions`
|
|
1911
|
-
|
|
1963
|
+
**requestOptions:** `Contacts.RequestOptions`
|
|
1964
|
+
|
|
1912
1965
|
</dd>
|
|
1913
1966
|
</dl>
|
|
1914
1967
|
</dd>
|
|
1915
1968
|
</dl>
|
|
1916
1969
|
|
|
1970
|
+
|
|
1917
1971
|
</dd>
|
|
1918
1972
|
</dl>
|
|
1919
1973
|
</details>
|
|
@@ -1935,10 +1989,10 @@ Add contacts to an existing audience. This operation is additive and idempotent.
|
|
|
1935
1989
|
- Phone numbers that don't exist will be auto-created as contacts
|
|
1936
1990
|
- Duplicate adds are ignored
|
|
1937
1991
|
- Contacts already in the audience are ignored
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1992
|
+
</dd>
|
|
1993
|
+
</dl>
|
|
1994
|
+
</dd>
|
|
1995
|
+
</dl>
|
|
1942
1996
|
|
|
1943
1997
|
#### 🔌 Usage
|
|
1944
1998
|
|
|
@@ -1951,10 +2005,10 @@ Add contacts to an existing audience. This operation is additive and idempotent.
|
|
|
1951
2005
|
```typescript
|
|
1952
2006
|
await client.audiences.contacts.add({
|
|
1953
2007
|
id: "aud_abc123",
|
|
1954
|
-
contacts: ["+12125551234", "co_def456", "+13105551234"]
|
|
2008
|
+
contacts: ["+12125551234", "co_def456", "+13105551234"]
|
|
1955
2009
|
});
|
|
1956
|
-
```
|
|
1957
2010
|
|
|
2011
|
+
```
|
|
1958
2012
|
</dd>
|
|
1959
2013
|
</dl>
|
|
1960
2014
|
</dd>
|
|
@@ -1968,27 +2022,27 @@ await client.audiences.contacts.add({
|
|
|
1968
2022
|
<dl>
|
|
1969
2023
|
<dd>
|
|
1970
2024
|
|
|
1971
|
-
**request:** `Pinnacle.audiences.AddContactsParams`
|
|
1972
|
-
|
|
2025
|
+
**request:** `Pinnacle.audiences.AddContactsParams`
|
|
2026
|
+
|
|
1973
2027
|
</dd>
|
|
1974
2028
|
</dl>
|
|
1975
2029
|
|
|
1976
2030
|
<dl>
|
|
1977
2031
|
<dd>
|
|
1978
2032
|
|
|
1979
|
-
**requestOptions:** `Contacts.RequestOptions`
|
|
1980
|
-
|
|
2033
|
+
**requestOptions:** `Contacts.RequestOptions`
|
|
2034
|
+
|
|
1981
2035
|
</dd>
|
|
1982
2036
|
</dl>
|
|
1983
2037
|
</dd>
|
|
1984
2038
|
</dl>
|
|
1985
2039
|
|
|
2040
|
+
|
|
1986
2041
|
</dd>
|
|
1987
2042
|
</dl>
|
|
1988
2043
|
</details>
|
|
1989
2044
|
|
|
1990
2045
|
## Campaigns Dlc
|
|
1991
|
-
|
|
1992
2046
|
<details><summary><code>client.campaigns.dlc.<a href="/src/api/resources/campaigns/resources/dlc/client/Client.ts">autofill</a>({ ...params }) -> Pinnacle.AutofillDlcCampaignResponse</code></summary>
|
|
1993
2047
|
<dl>
|
|
1994
2048
|
<dd>
|
|
@@ -2002,7 +2056,6 @@ await client.audiences.contacts.add({
|
|
|
2002
2056
|
<dd>
|
|
2003
2057
|
|
|
2004
2058
|
Generate campaign details based off existing campaign and the brand it's connected to.
|
|
2005
|
-
|
|
2006
2059
|
</dd>
|
|
2007
2060
|
</dl>
|
|
2008
2061
|
</dd>
|
|
@@ -2019,10 +2072,10 @@ Generate campaign details based off existing campaign and the brand it's connect
|
|
|
2019
2072
|
```typescript
|
|
2020
2073
|
await client.campaigns.dlc.autofill({
|
|
2021
2074
|
additionalInfo: "Please autofill missing campaign fields using my brand profile",
|
|
2022
|
-
campaignId: "dlc_1234567890"
|
|
2075
|
+
campaignId: "dlc_1234567890"
|
|
2023
2076
|
});
|
|
2024
|
-
```
|
|
2025
2077
|
|
|
2078
|
+
```
|
|
2026
2079
|
</dd>
|
|
2027
2080
|
</dl>
|
|
2028
2081
|
</dd>
|
|
@@ -2036,21 +2089,22 @@ await client.campaigns.dlc.autofill({
|
|
|
2036
2089
|
<dl>
|
|
2037
2090
|
<dd>
|
|
2038
2091
|
|
|
2039
|
-
**request:** `Pinnacle.AutofillCampaignParams`
|
|
2040
|
-
|
|
2092
|
+
**request:** `Pinnacle.AutofillCampaignParams`
|
|
2093
|
+
|
|
2041
2094
|
</dd>
|
|
2042
2095
|
</dl>
|
|
2043
2096
|
|
|
2044
2097
|
<dl>
|
|
2045
2098
|
<dd>
|
|
2046
2099
|
|
|
2047
|
-
**requestOptions:** `Dlc.RequestOptions`
|
|
2048
|
-
|
|
2100
|
+
**requestOptions:** `Dlc.RequestOptions`
|
|
2101
|
+
|
|
2049
2102
|
</dd>
|
|
2050
2103
|
</dl>
|
|
2051
2104
|
</dd>
|
|
2052
2105
|
</dl>
|
|
2053
2106
|
|
|
2107
|
+
|
|
2054
2108
|
</dd>
|
|
2055
2109
|
</dl>
|
|
2056
2110
|
</details>
|
|
@@ -2068,7 +2122,6 @@ await client.campaigns.dlc.autofill({
|
|
|
2068
2122
|
<dd>
|
|
2069
2123
|
|
|
2070
2124
|
Retrieve 10DLC campaign.
|
|
2071
|
-
|
|
2072
2125
|
</dd>
|
|
2073
2126
|
</dl>
|
|
2074
2127
|
</dd>
|
|
@@ -2084,8 +2137,8 @@ Retrieve 10DLC campaign.
|
|
|
2084
2137
|
|
|
2085
2138
|
```typescript
|
|
2086
2139
|
await client.campaigns.dlc.get("dlc_1234567890");
|
|
2087
|
-
```
|
|
2088
2140
|
|
|
2141
|
+
```
|
|
2089
2142
|
</dd>
|
|
2090
2143
|
</dl>
|
|
2091
2144
|
</dd>
|
|
@@ -2100,20 +2153,21 @@ await client.campaigns.dlc.get("dlc_1234567890");
|
|
|
2100
2153
|
<dd>
|
|
2101
2154
|
|
|
2102
2155
|
**campaignId:** `string` — Unique identifier of the 10DLC campaign. This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
2103
|
-
|
|
2156
|
+
|
|
2104
2157
|
</dd>
|
|
2105
2158
|
</dl>
|
|
2106
2159
|
|
|
2107
2160
|
<dl>
|
|
2108
2161
|
<dd>
|
|
2109
2162
|
|
|
2110
|
-
**requestOptions:** `Dlc.RequestOptions`
|
|
2111
|
-
|
|
2163
|
+
**requestOptions:** `Dlc.RequestOptions`
|
|
2164
|
+
|
|
2112
2165
|
</dd>
|
|
2113
2166
|
</dl>
|
|
2114
2167
|
</dd>
|
|
2115
2168
|
</dl>
|
|
2116
2169
|
|
|
2170
|
+
|
|
2117
2171
|
</dd>
|
|
2118
2172
|
</dl>
|
|
2119
2173
|
</details>
|
|
@@ -2131,7 +2185,6 @@ await client.campaigns.dlc.get("dlc_1234567890");
|
|
|
2131
2185
|
<dd>
|
|
2132
2186
|
|
|
2133
2187
|
Submit your 10DLC campaign for approval and activation with carriers.
|
|
2134
|
-
|
|
2135
2188
|
</dd>
|
|
2136
2189
|
</dl>
|
|
2137
2190
|
</dd>
|
|
@@ -2147,8 +2200,8 @@ Submit your 10DLC campaign for approval and activation with carriers.
|
|
|
2147
2200
|
|
|
2148
2201
|
```typescript
|
|
2149
2202
|
await client.campaigns.dlc.submit("dlc_1234567890");
|
|
2150
|
-
```
|
|
2151
2203
|
|
|
2204
|
+
```
|
|
2152
2205
|
</dd>
|
|
2153
2206
|
</dl>
|
|
2154
2207
|
</dd>
|
|
@@ -2162,24 +2215,25 @@ await client.campaigns.dlc.submit("dlc_1234567890");
|
|
|
2162
2215
|
<dl>
|
|
2163
2216
|
<dd>
|
|
2164
2217
|
|
|
2165
|
-
**campaignId:** `string`
|
|
2218
|
+
**campaignId:** `string`
|
|
2166
2219
|
|
|
2167
2220
|
Unique identifier of the 10DLC campaign to submit.
|
|
2168
2221
|
<br><br> This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
2169
|
-
|
|
2222
|
+
|
|
2170
2223
|
</dd>
|
|
2171
2224
|
</dl>
|
|
2172
2225
|
|
|
2173
2226
|
<dl>
|
|
2174
2227
|
<dd>
|
|
2175
2228
|
|
|
2176
|
-
**requestOptions:** `Dlc.RequestOptions`
|
|
2177
|
-
|
|
2229
|
+
**requestOptions:** `Dlc.RequestOptions`
|
|
2230
|
+
|
|
2178
2231
|
</dd>
|
|
2179
2232
|
</dl>
|
|
2180
2233
|
</dd>
|
|
2181
2234
|
</dl>
|
|
2182
2235
|
|
|
2236
|
+
|
|
2183
2237
|
</dd>
|
|
2184
2238
|
</dl>
|
|
2185
2239
|
</details>
|
|
@@ -2199,7 +2253,6 @@ Unique identifier of the 10DLC campaign to submit.
|
|
|
2199
2253
|
Create a new 10DLC campaign or updates an existing one. <br>
|
|
2200
2254
|
|
|
2201
2255
|
Omit campaignId to create a campaign.
|
|
2202
|
-
|
|
2203
2256
|
</dd>
|
|
2204
2257
|
</dl>
|
|
2205
2258
|
</dd>
|
|
@@ -2221,20 +2274,20 @@ await client.campaigns.dlc.upsert({
|
|
|
2221
2274
|
keywords: {
|
|
2222
2275
|
HELP: {
|
|
2223
2276
|
message: "Reply HELP for assistance, STOP to opt-out",
|
|
2224
|
-
values: ["HELP", "INFO", "SUPPORT"]
|
|
2277
|
+
values: ["HELP", "INFO", "SUPPORT"]
|
|
2225
2278
|
},
|
|
2226
2279
|
OPT_IN: {
|
|
2227
2280
|
message: "Welcome. You are now subscribed to Pinnacle.",
|
|
2228
|
-
values: ["JOIN", "START", "SUBSCRIBE"]
|
|
2281
|
+
values: ["JOIN", "START", "SUBSCRIBE"]
|
|
2229
2282
|
},
|
|
2230
2283
|
OPT_OUT: {
|
|
2231
2284
|
message: "You have been unsubscribed. Reply START to rejoin.",
|
|
2232
|
-
values: ["STOP", "QUIT", "UNSUBSCRIBE"]
|
|
2233
|
-
}
|
|
2285
|
+
values: ["STOP", "QUIT", "UNSUBSCRIBE"]
|
|
2286
|
+
}
|
|
2234
2287
|
},
|
|
2235
2288
|
links: {
|
|
2236
2289
|
privacyPolicy: "https://www.pinnacle.sh/privacy",
|
|
2237
|
-
termsOfService: "https://www.pinnacle.sh/terms"
|
|
2290
|
+
termsOfService: "https://www.pinnacle.sh/terms"
|
|
2238
2291
|
},
|
|
2239
2292
|
messageFlow: "Customer initiates -> Automated response -> Agent follow-up if needed",
|
|
2240
2293
|
name: "Account Notifications",
|
|
@@ -2244,16 +2297,16 @@ await client.campaigns.dlc.upsert({
|
|
|
2244
2297
|
directLending: false,
|
|
2245
2298
|
embeddedLink: "https://www.pinnacle.sh/example",
|
|
2246
2299
|
embeddedPhone: false,
|
|
2247
|
-
numberPooling: false
|
|
2300
|
+
numberPooling: false
|
|
2248
2301
|
},
|
|
2249
2302
|
sampleMessages: ["Security alert: Unusual login detected from new device."],
|
|
2250
2303
|
useCase: {
|
|
2251
2304
|
sub: ["FRAUD_ALERT"],
|
|
2252
|
-
value: "ACCOUNT_NOTIFICATION"
|
|
2253
|
-
}
|
|
2305
|
+
value: "ACCOUNT_NOTIFICATION"
|
|
2306
|
+
}
|
|
2254
2307
|
});
|
|
2255
|
-
```
|
|
2256
2308
|
|
|
2309
|
+
```
|
|
2257
2310
|
</dd>
|
|
2258
2311
|
</dl>
|
|
2259
2312
|
</dd>
|
|
@@ -2267,21 +2320,22 @@ await client.campaigns.dlc.upsert({
|
|
|
2267
2320
|
<dl>
|
|
2268
2321
|
<dd>
|
|
2269
2322
|
|
|
2270
|
-
**request:** `Pinnacle.campaigns.UpsertDlcCampaignParams`
|
|
2271
|
-
|
|
2323
|
+
**request:** `Pinnacle.campaigns.UpsertDlcCampaignParams`
|
|
2324
|
+
|
|
2272
2325
|
</dd>
|
|
2273
2326
|
</dl>
|
|
2274
2327
|
|
|
2275
2328
|
<dl>
|
|
2276
2329
|
<dd>
|
|
2277
2330
|
|
|
2278
|
-
**requestOptions:** `Dlc.RequestOptions`
|
|
2279
|
-
|
|
2331
|
+
**requestOptions:** `Dlc.RequestOptions`
|
|
2332
|
+
|
|
2280
2333
|
</dd>
|
|
2281
2334
|
</dl>
|
|
2282
2335
|
</dd>
|
|
2283
2336
|
</dl>
|
|
2284
2337
|
|
|
2338
|
+
|
|
2285
2339
|
</dd>
|
|
2286
2340
|
</dl>
|
|
2287
2341
|
</details>
|
|
@@ -2299,7 +2353,6 @@ await client.campaigns.dlc.upsert({
|
|
|
2299
2353
|
<dd>
|
|
2300
2354
|
|
|
2301
2355
|
Validate your 10DLC campaign configuration against carrier requirements and compliance rules.
|
|
2302
|
-
|
|
2303
2356
|
</dd>
|
|
2304
2357
|
</dl>
|
|
2305
2358
|
</dd>
|
|
@@ -2316,10 +2369,10 @@ Validate your 10DLC campaign configuration against carrier requirements and comp
|
|
|
2316
2369
|
```typescript
|
|
2317
2370
|
await client.campaigns.dlc.validate({
|
|
2318
2371
|
additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
|
|
2319
|
-
campaignId: "dlc_1234567890"
|
|
2372
|
+
campaignId: "dlc_1234567890"
|
|
2320
2373
|
});
|
|
2321
|
-
```
|
|
2322
2374
|
|
|
2375
|
+
```
|
|
2323
2376
|
</dd>
|
|
2324
2377
|
</dl>
|
|
2325
2378
|
</dd>
|
|
@@ -2333,27 +2386,27 @@ await client.campaigns.dlc.validate({
|
|
|
2333
2386
|
<dl>
|
|
2334
2387
|
<dd>
|
|
2335
2388
|
|
|
2336
|
-
**request:** `Pinnacle.ValidateCampaignParams`
|
|
2337
|
-
|
|
2389
|
+
**request:** `Pinnacle.ValidateCampaignParams`
|
|
2390
|
+
|
|
2338
2391
|
</dd>
|
|
2339
2392
|
</dl>
|
|
2340
2393
|
|
|
2341
2394
|
<dl>
|
|
2342
2395
|
<dd>
|
|
2343
2396
|
|
|
2344
|
-
**requestOptions:** `Dlc.RequestOptions`
|
|
2345
|
-
|
|
2397
|
+
**requestOptions:** `Dlc.RequestOptions`
|
|
2398
|
+
|
|
2346
2399
|
</dd>
|
|
2347
2400
|
</dl>
|
|
2348
2401
|
</dd>
|
|
2349
2402
|
</dl>
|
|
2350
2403
|
|
|
2404
|
+
|
|
2351
2405
|
</dd>
|
|
2352
2406
|
</dl>
|
|
2353
2407
|
</details>
|
|
2354
2408
|
|
|
2355
2409
|
## Campaigns TollFree
|
|
2356
|
-
|
|
2357
2410
|
<details><summary><code>client.campaigns.tollFree.<a href="/src/api/resources/campaigns/resources/tollFree/client/Client.ts">autofill</a>({ ...params }) -> Pinnacle.TollFreeAutofillResponse</code></summary>
|
|
2358
2411
|
<dl>
|
|
2359
2412
|
<dd>
|
|
@@ -2367,7 +2420,6 @@ await client.campaigns.dlc.validate({
|
|
|
2367
2420
|
<dd>
|
|
2368
2421
|
|
|
2369
2422
|
Generate campaign details based off existing campaign and the brand it's connected to.
|
|
2370
|
-
|
|
2371
2423
|
</dd>
|
|
2372
2424
|
</dl>
|
|
2373
2425
|
</dd>
|
|
@@ -2384,10 +2436,10 @@ Generate campaign details based off existing campaign and the brand it's connect
|
|
|
2384
2436
|
```typescript
|
|
2385
2437
|
await client.campaigns.tollFree.autofill({
|
|
2386
2438
|
additionalInfo: "Please autofill missing campaign fields using my brand profile",
|
|
2387
|
-
campaignId: "dlc_1234567890"
|
|
2439
|
+
campaignId: "dlc_1234567890"
|
|
2388
2440
|
});
|
|
2389
|
-
```
|
|
2390
2441
|
|
|
2442
|
+
```
|
|
2391
2443
|
</dd>
|
|
2392
2444
|
</dl>
|
|
2393
2445
|
</dd>
|
|
@@ -2401,21 +2453,22 @@ await client.campaigns.tollFree.autofill({
|
|
|
2401
2453
|
<dl>
|
|
2402
2454
|
<dd>
|
|
2403
2455
|
|
|
2404
|
-
**request:** `Pinnacle.AutofillCampaignParams`
|
|
2405
|
-
|
|
2456
|
+
**request:** `Pinnacle.AutofillCampaignParams`
|
|
2457
|
+
|
|
2406
2458
|
</dd>
|
|
2407
2459
|
</dl>
|
|
2408
2460
|
|
|
2409
2461
|
<dl>
|
|
2410
2462
|
<dd>
|
|
2411
2463
|
|
|
2412
|
-
**requestOptions:** `TollFree.RequestOptions`
|
|
2413
|
-
|
|
2464
|
+
**requestOptions:** `TollFree.RequestOptions`
|
|
2465
|
+
|
|
2414
2466
|
</dd>
|
|
2415
2467
|
</dl>
|
|
2416
2468
|
</dd>
|
|
2417
2469
|
</dl>
|
|
2418
2470
|
|
|
2471
|
+
|
|
2419
2472
|
</dd>
|
|
2420
2473
|
</dl>
|
|
2421
2474
|
</details>
|
|
@@ -2433,7 +2486,6 @@ await client.campaigns.tollFree.autofill({
|
|
|
2433
2486
|
<dd>
|
|
2434
2487
|
|
|
2435
2488
|
Retrieve Toll-Free campaign.
|
|
2436
|
-
|
|
2437
2489
|
</dd>
|
|
2438
2490
|
</dl>
|
|
2439
2491
|
</dd>
|
|
@@ -2449,8 +2501,8 @@ Retrieve Toll-Free campaign.
|
|
|
2449
2501
|
|
|
2450
2502
|
```typescript
|
|
2451
2503
|
await client.campaigns.tollFree.get("tf_1234567890");
|
|
2452
|
-
```
|
|
2453
2504
|
|
|
2505
|
+
```
|
|
2454
2506
|
</dd>
|
|
2455
2507
|
</dl>
|
|
2456
2508
|
</dd>
|
|
@@ -2465,20 +2517,21 @@ await client.campaigns.tollFree.get("tf_1234567890");
|
|
|
2465
2517
|
<dd>
|
|
2466
2518
|
|
|
2467
2519
|
**campaignId:** `string` — Unique identifier of toll-free campaign. Must begin with the prefix `tf_`.
|
|
2468
|
-
|
|
2520
|
+
|
|
2469
2521
|
</dd>
|
|
2470
2522
|
</dl>
|
|
2471
2523
|
|
|
2472
2524
|
<dl>
|
|
2473
2525
|
<dd>
|
|
2474
2526
|
|
|
2475
|
-
**requestOptions:** `TollFree.RequestOptions`
|
|
2476
|
-
|
|
2527
|
+
**requestOptions:** `TollFree.RequestOptions`
|
|
2528
|
+
|
|
2477
2529
|
</dd>
|
|
2478
2530
|
</dl>
|
|
2479
2531
|
</dd>
|
|
2480
2532
|
</dl>
|
|
2481
2533
|
|
|
2534
|
+
|
|
2482
2535
|
</dd>
|
|
2483
2536
|
</dl>
|
|
2484
2537
|
</details>
|
|
@@ -2496,7 +2549,6 @@ await client.campaigns.tollFree.get("tf_1234567890");
|
|
|
2496
2549
|
<dd>
|
|
2497
2550
|
|
|
2498
2551
|
Submit your toll-free campaign for approval and activation with carriers.
|
|
2499
|
-
|
|
2500
2552
|
</dd>
|
|
2501
2553
|
</dl>
|
|
2502
2554
|
</dd>
|
|
@@ -2512,8 +2564,8 @@ Submit your toll-free campaign for approval and activation with carriers.
|
|
|
2512
2564
|
|
|
2513
2565
|
```typescript
|
|
2514
2566
|
await client.campaigns.tollFree.submit("tf_1234567890");
|
|
2515
|
-
```
|
|
2516
2567
|
|
|
2568
|
+
```
|
|
2517
2569
|
</dd>
|
|
2518
2570
|
</dl>
|
|
2519
2571
|
</dd>
|
|
@@ -2528,20 +2580,21 @@ await client.campaigns.tollFree.submit("tf_1234567890");
|
|
|
2528
2580
|
<dd>
|
|
2529
2581
|
|
|
2530
2582
|
**campaignId:** `string` — Unique identifier of the toll-free campaign to submit. Must begin with the prefix `tf_`.
|
|
2531
|
-
|
|
2583
|
+
|
|
2532
2584
|
</dd>
|
|
2533
2585
|
</dl>
|
|
2534
2586
|
|
|
2535
2587
|
<dl>
|
|
2536
2588
|
<dd>
|
|
2537
2589
|
|
|
2538
|
-
**requestOptions:** `TollFree.RequestOptions`
|
|
2539
|
-
|
|
2590
|
+
**requestOptions:** `TollFree.RequestOptions`
|
|
2591
|
+
|
|
2540
2592
|
</dd>
|
|
2541
2593
|
</dl>
|
|
2542
2594
|
</dd>
|
|
2543
2595
|
</dl>
|
|
2544
2596
|
|
|
2597
|
+
|
|
2545
2598
|
</dd>
|
|
2546
2599
|
</dl>
|
|
2547
2600
|
</details>
|
|
@@ -2561,7 +2614,6 @@ await client.campaigns.tollFree.submit("tf_1234567890");
|
|
|
2561
2614
|
Create a new toll-free campaign or updates an existing one.<br>
|
|
2562
2615
|
|
|
2563
2616
|
Omit campaignId to create a campaign.
|
|
2564
|
-
|
|
2565
2617
|
</dd>
|
|
2566
2618
|
</dl>
|
|
2567
2619
|
</dd>
|
|
@@ -2579,21 +2631,37 @@ Omit campaignId to create a campaign.
|
|
|
2579
2631
|
await client.campaigns.tollFree.upsert({
|
|
2580
2632
|
brand: "b_1234567890",
|
|
2581
2633
|
campaignId: "tf_1234567890",
|
|
2634
|
+
keywords: {
|
|
2635
|
+
HELP: {
|
|
2636
|
+
message: "Email founders@trypinnacle.app for support."
|
|
2637
|
+
},
|
|
2638
|
+
OPT_IN: {
|
|
2639
|
+
message: "Welcome back to Pinnacle!<br>\n\uD83D\uDD14 You're now subscribed to Pinnacle and will continue receiving important updates and news. Feel free to contact this us at any time for help.<br>\n\nReply STOP to opt out and HELP for support. Message & rates may apply.\n",
|
|
2640
|
+
keywords: ["START", "SUBSCRIBE"]
|
|
2641
|
+
}
|
|
2642
|
+
},
|
|
2643
|
+
links: {
|
|
2644
|
+
privacyPolicy: "https://www.pinnacle.sh/privacy",
|
|
2645
|
+
termsOfService: "https://www.pinnacle.sh/terms"
|
|
2646
|
+
},
|
|
2582
2647
|
monthlyVolume: "1,000",
|
|
2583
2648
|
name: "Pinnacle",
|
|
2584
2649
|
optIn: {
|
|
2585
2650
|
method: "DIGITAL",
|
|
2586
2651
|
url: "https://www.pinnacle.sh/",
|
|
2587
|
-
workflowDescription: "Visit https://www.pinnacle.sh/"
|
|
2652
|
+
workflowDescription: "Visit https://www.pinnacle.sh/"
|
|
2653
|
+
},
|
|
2654
|
+
options: {
|
|
2655
|
+
ageGated: false
|
|
2588
2656
|
},
|
|
2589
2657
|
productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
|
|
2590
2658
|
useCase: {
|
|
2591
2659
|
summary: "Alerts clients about any Pinnacle hosted workshops.",
|
|
2592
|
-
value: "WORKSHOP_ALERTS"
|
|
2593
|
-
}
|
|
2660
|
+
value: "WORKSHOP_ALERTS"
|
|
2661
|
+
}
|
|
2594
2662
|
});
|
|
2595
|
-
```
|
|
2596
2663
|
|
|
2664
|
+
```
|
|
2597
2665
|
</dd>
|
|
2598
2666
|
</dl>
|
|
2599
2667
|
</dd>
|
|
@@ -2607,21 +2675,22 @@ await client.campaigns.tollFree.upsert({
|
|
|
2607
2675
|
<dl>
|
|
2608
2676
|
<dd>
|
|
2609
2677
|
|
|
2610
|
-
**request:** `Pinnacle.campaigns.UpsertTollFreeCampaignParams`
|
|
2611
|
-
|
|
2678
|
+
**request:** `Pinnacle.campaigns.UpsertTollFreeCampaignParams`
|
|
2679
|
+
|
|
2612
2680
|
</dd>
|
|
2613
2681
|
</dl>
|
|
2614
2682
|
|
|
2615
2683
|
<dl>
|
|
2616
2684
|
<dd>
|
|
2617
2685
|
|
|
2618
|
-
**requestOptions:** `TollFree.RequestOptions`
|
|
2619
|
-
|
|
2686
|
+
**requestOptions:** `TollFree.RequestOptions`
|
|
2687
|
+
|
|
2620
2688
|
</dd>
|
|
2621
2689
|
</dl>
|
|
2622
2690
|
</dd>
|
|
2623
2691
|
</dl>
|
|
2624
2692
|
|
|
2693
|
+
|
|
2625
2694
|
</dd>
|
|
2626
2695
|
</dl>
|
|
2627
2696
|
</details>
|
|
@@ -2639,7 +2708,6 @@ await client.campaigns.tollFree.upsert({
|
|
|
2639
2708
|
<dd>
|
|
2640
2709
|
|
|
2641
2710
|
Validate your toll-free campaign configuration against carrier requirements and compliance rules.
|
|
2642
|
-
|
|
2643
2711
|
</dd>
|
|
2644
2712
|
</dl>
|
|
2645
2713
|
</dd>
|
|
@@ -2656,10 +2724,10 @@ Validate your toll-free campaign configuration against carrier requirements and
|
|
|
2656
2724
|
```typescript
|
|
2657
2725
|
await client.campaigns.tollFree.validate({
|
|
2658
2726
|
additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
|
|
2659
|
-
campaignId: "dlc_1234567890"
|
|
2727
|
+
campaignId: "dlc_1234567890"
|
|
2660
2728
|
});
|
|
2661
|
-
```
|
|
2662
2729
|
|
|
2730
|
+
```
|
|
2663
2731
|
</dd>
|
|
2664
2732
|
</dl>
|
|
2665
2733
|
</dd>
|
|
@@ -2673,27 +2741,27 @@ await client.campaigns.tollFree.validate({
|
|
|
2673
2741
|
<dl>
|
|
2674
2742
|
<dd>
|
|
2675
2743
|
|
|
2676
|
-
**request:** `Pinnacle.ValidateCampaignParams`
|
|
2677
|
-
|
|
2744
|
+
**request:** `Pinnacle.ValidateCampaignParams`
|
|
2745
|
+
|
|
2678
2746
|
</dd>
|
|
2679
2747
|
</dl>
|
|
2680
2748
|
|
|
2681
2749
|
<dl>
|
|
2682
2750
|
<dd>
|
|
2683
2751
|
|
|
2684
|
-
**requestOptions:** `TollFree.RequestOptions`
|
|
2685
|
-
|
|
2752
|
+
**requestOptions:** `TollFree.RequestOptions`
|
|
2753
|
+
|
|
2686
2754
|
</dd>
|
|
2687
2755
|
</dl>
|
|
2688
2756
|
</dd>
|
|
2689
2757
|
</dl>
|
|
2690
2758
|
|
|
2759
|
+
|
|
2691
2760
|
</dd>
|
|
2692
2761
|
</dl>
|
|
2693
2762
|
</details>
|
|
2694
2763
|
|
|
2695
2764
|
## Campaigns Rcs
|
|
2696
|
-
|
|
2697
2765
|
<details><summary><code>client.campaigns.rcs.<a href="/src/api/resources/campaigns/resources/rcs/client/Client.ts">autofill</a>({ ...params }) -> Pinnacle.RcsAutofillResponse</code></summary>
|
|
2698
2766
|
<dl>
|
|
2699
2767
|
<dd>
|
|
@@ -2707,7 +2775,6 @@ await client.campaigns.tollFree.validate({
|
|
|
2707
2775
|
<dd>
|
|
2708
2776
|
|
|
2709
2777
|
Generate campaign details based off existing campaign and the brand it's connected to.
|
|
2710
|
-
|
|
2711
2778
|
</dd>
|
|
2712
2779
|
</dl>
|
|
2713
2780
|
</dd>
|
|
@@ -2724,10 +2791,10 @@ Generate campaign details based off existing campaign and the brand it's connect
|
|
|
2724
2791
|
```typescript
|
|
2725
2792
|
await client.campaigns.rcs.autofill({
|
|
2726
2793
|
additionalInfo: "Please autofill missing campaign fields using my brand profile",
|
|
2727
|
-
campaignId: "dlc_1234567890"
|
|
2794
|
+
campaignId: "dlc_1234567890"
|
|
2728
2795
|
});
|
|
2729
|
-
```
|
|
2730
2796
|
|
|
2797
|
+
```
|
|
2731
2798
|
</dd>
|
|
2732
2799
|
</dl>
|
|
2733
2800
|
</dd>
|
|
@@ -2741,21 +2808,22 @@ await client.campaigns.rcs.autofill({
|
|
|
2741
2808
|
<dl>
|
|
2742
2809
|
<dd>
|
|
2743
2810
|
|
|
2744
|
-
**request:** `Pinnacle.AutofillCampaignParams`
|
|
2745
|
-
|
|
2811
|
+
**request:** `Pinnacle.AutofillCampaignParams`
|
|
2812
|
+
|
|
2746
2813
|
</dd>
|
|
2747
2814
|
</dl>
|
|
2748
2815
|
|
|
2749
2816
|
<dl>
|
|
2750
2817
|
<dd>
|
|
2751
2818
|
|
|
2752
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
2753
|
-
|
|
2819
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
2820
|
+
|
|
2754
2821
|
</dd>
|
|
2755
2822
|
</dl>
|
|
2756
2823
|
</dd>
|
|
2757
2824
|
</dl>
|
|
2758
2825
|
|
|
2826
|
+
|
|
2759
2827
|
</dd>
|
|
2760
2828
|
</dl>
|
|
2761
2829
|
</details>
|
|
@@ -2773,7 +2841,6 @@ await client.campaigns.rcs.autofill({
|
|
|
2773
2841
|
<dd>
|
|
2774
2842
|
|
|
2775
2843
|
Retrieve RCS campaign.
|
|
2776
|
-
|
|
2777
2844
|
</dd>
|
|
2778
2845
|
</dl>
|
|
2779
2846
|
</dd>
|
|
@@ -2789,8 +2856,8 @@ Retrieve RCS campaign.
|
|
|
2789
2856
|
|
|
2790
2857
|
```typescript
|
|
2791
2858
|
await client.campaigns.rcs.get("rcs_1234567890");
|
|
2792
|
-
```
|
|
2793
2859
|
|
|
2860
|
+
```
|
|
2794
2861
|
</dd>
|
|
2795
2862
|
</dl>
|
|
2796
2863
|
</dd>
|
|
@@ -2805,20 +2872,21 @@ await client.campaigns.rcs.get("rcs_1234567890");
|
|
|
2805
2872
|
<dd>
|
|
2806
2873
|
|
|
2807
2874
|
**campaignId:** `string` — Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
|
|
2808
|
-
|
|
2875
|
+
|
|
2809
2876
|
</dd>
|
|
2810
2877
|
</dl>
|
|
2811
2878
|
|
|
2812
2879
|
<dl>
|
|
2813
2880
|
<dd>
|
|
2814
2881
|
|
|
2815
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
2816
|
-
|
|
2882
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
2883
|
+
|
|
2817
2884
|
</dd>
|
|
2818
2885
|
</dl>
|
|
2819
2886
|
</dd>
|
|
2820
2887
|
</dl>
|
|
2821
2888
|
|
|
2889
|
+
|
|
2822
2890
|
</dd>
|
|
2823
2891
|
</dl>
|
|
2824
2892
|
</details>
|
|
@@ -2836,7 +2904,6 @@ await client.campaigns.rcs.get("rcs_1234567890");
|
|
|
2836
2904
|
<dd>
|
|
2837
2905
|
|
|
2838
2906
|
Submit your RCS campaign for approval and activation with carriers.
|
|
2839
|
-
|
|
2840
2907
|
</dd>
|
|
2841
2908
|
</dl>
|
|
2842
2909
|
</dd>
|
|
@@ -2852,8 +2919,8 @@ Submit your RCS campaign for approval and activation with carriers.
|
|
|
2852
2919
|
|
|
2853
2920
|
```typescript
|
|
2854
2921
|
await client.campaigns.rcs.submit("rcs_1234567890");
|
|
2855
|
-
```
|
|
2856
2922
|
|
|
2923
|
+
```
|
|
2857
2924
|
</dd>
|
|
2858
2925
|
</dl>
|
|
2859
2926
|
</dd>
|
|
@@ -2868,20 +2935,21 @@ await client.campaigns.rcs.submit("rcs_1234567890");
|
|
|
2868
2935
|
<dd>
|
|
2869
2936
|
|
|
2870
2937
|
**campaignId:** `string` — Unique identifier of the RCS campaign to retrieve. Must begin with the prefix `rcs_`.
|
|
2871
|
-
|
|
2938
|
+
|
|
2872
2939
|
</dd>
|
|
2873
2940
|
</dl>
|
|
2874
2941
|
|
|
2875
2942
|
<dl>
|
|
2876
2943
|
<dd>
|
|
2877
2944
|
|
|
2878
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
2879
|
-
|
|
2945
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
2946
|
+
|
|
2880
2947
|
</dd>
|
|
2881
2948
|
</dl>
|
|
2882
2949
|
</dd>
|
|
2883
2950
|
</dl>
|
|
2884
2951
|
|
|
2952
|
+
|
|
2885
2953
|
</dd>
|
|
2886
2954
|
</dl>
|
|
2887
2955
|
</details>
|
|
@@ -2901,7 +2969,6 @@ await client.campaigns.rcs.submit("rcs_1234567890");
|
|
|
2901
2969
|
Create a new RCS campaign or updates an existing one. <br>
|
|
2902
2970
|
|
|
2903
2971
|
Omit campaignId to create a campaign.
|
|
2904
|
-
|
|
2905
2972
|
</dd>
|
|
2906
2973
|
</dl>
|
|
2907
2974
|
</dd>
|
|
@@ -2919,58 +2986,63 @@ Omit campaignId to create a campaign.
|
|
|
2919
2986
|
await client.campaigns.rcs.upsert({
|
|
2920
2987
|
agent: {
|
|
2921
2988
|
color: "#000000",
|
|
2922
|
-
description:
|
|
2923
|
-
|
|
2924
|
-
emails: [
|
|
2925
|
-
{
|
|
2989
|
+
description: "Experience the power of RCS messaging with interactive demos. Test rich features like carousels, suggested replies, and media sharing. Get started with our developer-friendly APIs.",
|
|
2990
|
+
emails: [{
|
|
2926
2991
|
email: "founders@trypinnacle.app",
|
|
2927
|
-
label: "Email Us"
|
|
2928
|
-
},
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
phones: [
|
|
2934
|
-
{
|
|
2992
|
+
label: "Email Us"
|
|
2993
|
+
}],
|
|
2994
|
+
heroUrl: "https://pncl.to/D6pDSqGxqgfbCfQmw4gXdnlHu4uSB4",
|
|
2995
|
+
iconUrl: "https://pncl.to/mq_tdIDenRb5eYpJiM8-3THCaUBrZP",
|
|
2996
|
+
name: "Pinnacle - RCS Demo",
|
|
2997
|
+
phones: [{
|
|
2935
2998
|
label: "Contact us directly",
|
|
2936
|
-
phone: "+14154467821"
|
|
2937
|
-
},
|
|
2938
|
-
|
|
2939
|
-
websites: [
|
|
2940
|
-
{
|
|
2999
|
+
phone: "+14154467821"
|
|
3000
|
+
}],
|
|
3001
|
+
websites: [{
|
|
2941
3002
|
label: "Get started with Pinnacle",
|
|
2942
|
-
url: "https://www.trypinnacle.app/"
|
|
2943
|
-
}
|
|
2944
|
-
],
|
|
3003
|
+
url: "https://www.trypinnacle.app/"
|
|
3004
|
+
}]
|
|
2945
3005
|
},
|
|
2946
|
-
brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
|
|
2947
3006
|
brand: "b_1234567890",
|
|
2948
3007
|
campaignId: "rcs_1234567890",
|
|
2949
|
-
expectedAgentResponses: [
|
|
2950
|
-
"Here are the things I can help you with.",
|
|
2951
|
-
"I can assist you with booking an appointment, or you may choose to book manually.",
|
|
2952
|
-
"Here are the available times to connect with a representative tomorrow.",
|
|
2953
|
-
"Your appointment has been scheduled.",
|
|
2954
|
-
],
|
|
3008
|
+
expectedAgentResponses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
|
|
2955
3009
|
links: {
|
|
2956
3010
|
privacyPolicy: "https://www.trypinnacle.app/privacy",
|
|
2957
|
-
termsOfService: "https://www.trypinnacle.app/terms"
|
|
3011
|
+
termsOfService: "https://www.trypinnacle.app/terms"
|
|
2958
3012
|
},
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
3013
|
+
useCase: {
|
|
3014
|
+
behavior: "Pinnacle is a developer-focused RCS assistant that helps teams design, test, and optimize rich messaging experiences across SMS, MMS, and RCS. The agent acts as both an \u201Conboarding guide\u201D for new customers and a \u201Cbest-practices coach\u201D for existing teams exploring higher-value RCS workflows like rich cards, carousels, and suggested actions.<br>\nThe agent delivers a mix of operational updates and educational content (2\u20136 messages/month). Content includes important platform notices (e.g., deliverability or throughput changes), implementation tips with sample RCS templates, and personalized recommendations on how to upgrade existing SMS campaigns into richer, higher-converting RCS conversations.\n",
|
|
3015
|
+
value: "OTHER"
|
|
2962
3016
|
},
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3017
|
+
optInTermsAndConditions: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
3018
|
+
messagingType: "MULTI_USE",
|
|
3019
|
+
carrierDescription: "Demonstrate the power of RCS to medium and large companies already sending massive SMS/MMS volumes through our platform. These clients send conversational messages in industries such as commerce, appointments, and customer support.",
|
|
3020
|
+
keywords: {
|
|
3021
|
+
HELP: {
|
|
3022
|
+
message: "Email founders@trypinnacle.app for support.",
|
|
3023
|
+
keywords: ["HELP", "SUPPORT"]
|
|
3024
|
+
},
|
|
3025
|
+
OPT_IN: {
|
|
3026
|
+
message: "Welcome back to Pinnacle!<br>\n\uD83D\uDD14 You're now subscribed to Pinnacle - RCS Demo and will continue receiving important updates and news. Feel free to contact this us at any time for help.<br>\n\nReply STOP to opt out and HELP for support. Message & rates may apply.\n",
|
|
3027
|
+
keywords: ["START", "SUBSCRIBE"]
|
|
3028
|
+
},
|
|
3029
|
+
OPT_OUT: {
|
|
3030
|
+
message: "You've been unsubscribed from Pinnacle - RCS Demo and will no longer receive notifications. If you ever change your mind, reply START or SUBSCRIBE to rejoin anytime.",
|
|
3031
|
+
keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
3032
|
+
}
|
|
2966
3033
|
},
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
3034
|
+
traffic: {
|
|
3035
|
+
monthlyWebsite: 10000,
|
|
3036
|
+
monthlyRcsEstimate: 10000
|
|
2970
3037
|
},
|
|
3038
|
+
agentTriggers: "The agent sends the first message when the user subscribes to Pinnacle. Messages are based on user actions such as pressing suggestion buttons. External triggers such as reminders can be setup by users in advance for a later time.",
|
|
3039
|
+
interactionDescription: "The agent's primary interaction will be customer service \u2014 helping users with questions, troubleshooting issues, and providing quick assistance through chat. Other interactions include appointment management and sending notifications to the user.",
|
|
3040
|
+
isConversational: true,
|
|
3041
|
+
ctaLanguage: "By checking this box and submitting this form, you consent to receive transactional text messages for support, appointment, and reminder messages from Pinnacle Software Development Inc. Reply STOP to opt out. Reply HELP for help. Standard message and data rates may apply. Message frequency may vary. View our Terms and Conditions at https://www.pinnacle.sh/terms. View our Privacy Policy at https://www.pinnacle.sh/privacy.",
|
|
3042
|
+
demoTrigger: "Text \"START\" to trigger the flow."
|
|
2971
3043
|
});
|
|
2972
|
-
```
|
|
2973
3044
|
|
|
3045
|
+
```
|
|
2974
3046
|
</dd>
|
|
2975
3047
|
</dl>
|
|
2976
3048
|
</dd>
|
|
@@ -2984,21 +3056,22 @@ await client.campaigns.rcs.upsert({
|
|
|
2984
3056
|
<dl>
|
|
2985
3057
|
<dd>
|
|
2986
3058
|
|
|
2987
|
-
**request:** `Pinnacle.campaigns.UpsertRcsCampaignParams`
|
|
2988
|
-
|
|
3059
|
+
**request:** `Pinnacle.campaigns.UpsertRcsCampaignParams`
|
|
3060
|
+
|
|
2989
3061
|
</dd>
|
|
2990
3062
|
</dl>
|
|
2991
3063
|
|
|
2992
3064
|
<dl>
|
|
2993
3065
|
<dd>
|
|
2994
3066
|
|
|
2995
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
2996
|
-
|
|
3067
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
3068
|
+
|
|
2997
3069
|
</dd>
|
|
2998
3070
|
</dl>
|
|
2999
3071
|
</dd>
|
|
3000
3072
|
</dl>
|
|
3001
3073
|
|
|
3074
|
+
|
|
3002
3075
|
</dd>
|
|
3003
3076
|
</dl>
|
|
3004
3077
|
</details>
|
|
@@ -3016,7 +3089,6 @@ await client.campaigns.rcs.upsert({
|
|
|
3016
3089
|
<dd>
|
|
3017
3090
|
|
|
3018
3091
|
Validate your RCS campaign configuration against carrier requirements and compliance rules.
|
|
3019
|
-
|
|
3020
3092
|
</dd>
|
|
3021
3093
|
</dl>
|
|
3022
3094
|
</dd>
|
|
@@ -3033,10 +3105,10 @@ Validate your RCS campaign configuration against carrier requirements and compli
|
|
|
3033
3105
|
```typescript
|
|
3034
3106
|
await client.campaigns.rcs.validate({
|
|
3035
3107
|
additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
|
|
3036
|
-
campaignId: "dlc_1234567890"
|
|
3108
|
+
campaignId: "dlc_1234567890"
|
|
3037
3109
|
});
|
|
3038
|
-
```
|
|
3039
3110
|
|
|
3111
|
+
```
|
|
3040
3112
|
</dd>
|
|
3041
3113
|
</dl>
|
|
3042
3114
|
</dd>
|
|
@@ -3050,27 +3122,27 @@ await client.campaigns.rcs.validate({
|
|
|
3050
3122
|
<dl>
|
|
3051
3123
|
<dd>
|
|
3052
3124
|
|
|
3053
|
-
**request:** `Pinnacle.ValidateCampaignParams`
|
|
3054
|
-
|
|
3125
|
+
**request:** `Pinnacle.ValidateCampaignParams`
|
|
3126
|
+
|
|
3055
3127
|
</dd>
|
|
3056
3128
|
</dl>
|
|
3057
3129
|
|
|
3058
3130
|
<dl>
|
|
3059
3131
|
<dd>
|
|
3060
3132
|
|
|
3061
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
3062
|
-
|
|
3133
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
3134
|
+
|
|
3063
3135
|
</dd>
|
|
3064
3136
|
</dl>
|
|
3065
3137
|
</dd>
|
|
3066
3138
|
</dl>
|
|
3067
3139
|
|
|
3140
|
+
|
|
3068
3141
|
</dd>
|
|
3069
3142
|
</dl>
|
|
3070
3143
|
</details>
|
|
3071
3144
|
|
|
3072
3145
|
## Messages Sms
|
|
3073
|
-
|
|
3074
3146
|
<details><summary><code>client.messages.sms.<a href="/src/api/resources/messages/resources/sms/client/Client.ts">send</a>({ ...params }) -> Pinnacle.SmsSendResponse</code></summary>
|
|
3075
3147
|
<dl>
|
|
3076
3148
|
<dd>
|
|
@@ -3084,7 +3156,6 @@ await client.campaigns.rcs.validate({
|
|
|
3084
3156
|
<dd>
|
|
3085
3157
|
|
|
3086
3158
|
Send a SMS message immediately or schedule it for future delivery.
|
|
3087
|
-
|
|
3088
3159
|
</dd>
|
|
3089
3160
|
</dl>
|
|
3090
3161
|
</dd>
|
|
@@ -3102,10 +3173,10 @@ Send a SMS message immediately or schedule it for future delivery.
|
|
|
3102
3173
|
await client.messages.sms.send({
|
|
3103
3174
|
from: "+14155164736",
|
|
3104
3175
|
text: "Hey!",
|
|
3105
|
-
to: "+14154746461"
|
|
3176
|
+
to: "+14154746461"
|
|
3106
3177
|
});
|
|
3107
|
-
```
|
|
3108
3178
|
|
|
3179
|
+
```
|
|
3109
3180
|
</dd>
|
|
3110
3181
|
</dl>
|
|
3111
3182
|
</dd>
|
|
@@ -3119,21 +3190,22 @@ await client.messages.sms.send({
|
|
|
3119
3190
|
<dl>
|
|
3120
3191
|
<dd>
|
|
3121
3192
|
|
|
3122
|
-
**request:** `Pinnacle.messages.Sms`
|
|
3123
|
-
|
|
3193
|
+
**request:** `Pinnacle.messages.Sms`
|
|
3194
|
+
|
|
3124
3195
|
</dd>
|
|
3125
3196
|
</dl>
|
|
3126
3197
|
|
|
3127
3198
|
<dl>
|
|
3128
3199
|
<dd>
|
|
3129
3200
|
|
|
3130
|
-
**requestOptions:** `Sms.RequestOptions`
|
|
3131
|
-
|
|
3201
|
+
**requestOptions:** `Sms.RequestOptions`
|
|
3202
|
+
|
|
3132
3203
|
</dd>
|
|
3133
3204
|
</dl>
|
|
3134
3205
|
</dd>
|
|
3135
3206
|
</dl>
|
|
3136
3207
|
|
|
3208
|
+
|
|
3137
3209
|
</dd>
|
|
3138
3210
|
</dl>
|
|
3139
3211
|
</details>
|
|
@@ -3151,7 +3223,6 @@ await client.messages.sms.send({
|
|
|
3151
3223
|
<dd>
|
|
3152
3224
|
|
|
3153
3225
|
Validate SMS message content without sending it.
|
|
3154
|
-
|
|
3155
3226
|
</dd>
|
|
3156
3227
|
</dl>
|
|
3157
3228
|
</dd>
|
|
@@ -3167,10 +3238,10 @@ Validate SMS message content without sending it.
|
|
|
3167
3238
|
|
|
3168
3239
|
```typescript
|
|
3169
3240
|
await client.messages.sms.validate({
|
|
3170
|
-
text: "Hello from Pinnacle"
|
|
3241
|
+
text: "Hello from Pinnacle"
|
|
3171
3242
|
});
|
|
3172
|
-
```
|
|
3173
3243
|
|
|
3244
|
+
```
|
|
3174
3245
|
</dd>
|
|
3175
3246
|
</dl>
|
|
3176
3247
|
</dd>
|
|
@@ -3184,27 +3255,27 @@ await client.messages.sms.validate({
|
|
|
3184
3255
|
<dl>
|
|
3185
3256
|
<dd>
|
|
3186
3257
|
|
|
3187
|
-
**request:** `Pinnacle.SmsContent`
|
|
3188
|
-
|
|
3258
|
+
**request:** `Pinnacle.SmsContent`
|
|
3259
|
+
|
|
3189
3260
|
</dd>
|
|
3190
3261
|
</dl>
|
|
3191
3262
|
|
|
3192
3263
|
<dl>
|
|
3193
3264
|
<dd>
|
|
3194
3265
|
|
|
3195
|
-
**requestOptions:** `Sms.RequestOptions`
|
|
3196
|
-
|
|
3266
|
+
**requestOptions:** `Sms.RequestOptions`
|
|
3267
|
+
|
|
3197
3268
|
</dd>
|
|
3198
3269
|
</dl>
|
|
3199
3270
|
</dd>
|
|
3200
3271
|
</dl>
|
|
3201
3272
|
|
|
3273
|
+
|
|
3202
3274
|
</dd>
|
|
3203
3275
|
</dl>
|
|
3204
3276
|
</details>
|
|
3205
3277
|
|
|
3206
3278
|
## Messages Mms
|
|
3207
|
-
|
|
3208
3279
|
<details><summary><code>client.messages.mms.<a href="/src/api/resources/messages/resources/mms/client/Client.ts">send</a>({ ...params }) -> Pinnacle.MmsSendResponse</code></summary>
|
|
3209
3280
|
<dl>
|
|
3210
3281
|
<dd>
|
|
@@ -3218,7 +3289,6 @@ await client.messages.sms.validate({
|
|
|
3218
3289
|
<dd>
|
|
3219
3290
|
|
|
3220
3291
|
Send a MMS immediately or schedule it for future delivery.
|
|
3221
|
-
|
|
3222
3292
|
</dd>
|
|
3223
3293
|
</dl>
|
|
3224
3294
|
</dd>
|
|
@@ -3238,13 +3308,13 @@ await client.messages.mms.send({
|
|
|
3238
3308
|
mediaUrls: ["https://fastly.picsum.photos/id/941/300/300.jpg?hmac=mDxM9PWSqRDjecwSCEpzU4bj35gqnG7yA25OL29uNv0"],
|
|
3239
3309
|
options: {
|
|
3240
3310
|
multiple_messages: true,
|
|
3241
|
-
validate: true
|
|
3311
|
+
validate: true
|
|
3242
3312
|
},
|
|
3243
3313
|
text: "Check out this image!",
|
|
3244
|
-
to: "+14154746461"
|
|
3314
|
+
to: "+14154746461"
|
|
3245
3315
|
});
|
|
3246
|
-
```
|
|
3247
3316
|
|
|
3317
|
+
```
|
|
3248
3318
|
</dd>
|
|
3249
3319
|
</dl>
|
|
3250
3320
|
</dd>
|
|
@@ -3258,21 +3328,22 @@ await client.messages.mms.send({
|
|
|
3258
3328
|
<dl>
|
|
3259
3329
|
<dd>
|
|
3260
3330
|
|
|
3261
|
-
**request:** `Pinnacle.messages.Mms`
|
|
3262
|
-
|
|
3331
|
+
**request:** `Pinnacle.messages.Mms`
|
|
3332
|
+
|
|
3263
3333
|
</dd>
|
|
3264
3334
|
</dl>
|
|
3265
3335
|
|
|
3266
3336
|
<dl>
|
|
3267
3337
|
<dd>
|
|
3268
3338
|
|
|
3269
|
-
**requestOptions:** `Mms.RequestOptions`
|
|
3270
|
-
|
|
3339
|
+
**requestOptions:** `Mms.RequestOptions`
|
|
3340
|
+
|
|
3271
3341
|
</dd>
|
|
3272
3342
|
</dl>
|
|
3273
3343
|
</dd>
|
|
3274
3344
|
</dl>
|
|
3275
3345
|
|
|
3346
|
+
|
|
3276
3347
|
</dd>
|
|
3277
3348
|
</dl>
|
|
3278
3349
|
</details>
|
|
@@ -3290,7 +3361,6 @@ await client.messages.mms.send({
|
|
|
3290
3361
|
<dd>
|
|
3291
3362
|
|
|
3292
3363
|
Validate MMS message content without sending it.
|
|
3293
|
-
|
|
3294
3364
|
</dd>
|
|
3295
3365
|
</dl>
|
|
3296
3366
|
</dd>
|
|
@@ -3306,15 +3376,11 @@ Validate MMS message content without sending it.
|
|
|
3306
3376
|
|
|
3307
3377
|
```typescript
|
|
3308
3378
|
await client.messages.mms.validate({
|
|
3309
|
-
mediaUrls: [
|
|
3310
|
-
|
|
3311
|
-
"https://fastly.picsum.photos/id/528/1000/1000.jpg?hmac=aTG0xNif9KbNryFN0ZNZ_nFK6aEpZxqUGCZF1KjOT8w",
|
|
3312
|
-
"https://file-examples.com/storage/fefdd7ab126835e7993bb1a/2017/10/file_example_JPG_500kB.jpg",
|
|
3313
|
-
],
|
|
3314
|
-
text: "Check out these images!",
|
|
3379
|
+
mediaUrls: ["https://upload.wikimedia.org/wikipedia/commons/b/b9/Pizigani_1367_Chart_1MB.jpg", "https://fastly.picsum.photos/id/528/1000/1000.jpg?hmac=aTG0xNif9KbNryFN0ZNZ_nFK6aEpZxqUGCZF1KjOT8w", "https://file-examples.com/storage/fefdd7ab126835e7993bb1a/2017/10/file_example_JPG_500kB.jpg"],
|
|
3380
|
+
text: "Check out these images!"
|
|
3315
3381
|
});
|
|
3316
|
-
```
|
|
3317
3382
|
|
|
3383
|
+
```
|
|
3318
3384
|
</dd>
|
|
3319
3385
|
</dl>
|
|
3320
3386
|
</dd>
|
|
@@ -3328,28 +3394,28 @@ await client.messages.mms.validate({
|
|
|
3328
3394
|
<dl>
|
|
3329
3395
|
<dd>
|
|
3330
3396
|
|
|
3331
|
-
**request:** `Pinnacle.MmsContent`
|
|
3332
|
-
|
|
3397
|
+
**request:** `Pinnacle.MmsContent`
|
|
3398
|
+
|
|
3333
3399
|
</dd>
|
|
3334
3400
|
</dl>
|
|
3335
3401
|
|
|
3336
3402
|
<dl>
|
|
3337
3403
|
<dd>
|
|
3338
3404
|
|
|
3339
|
-
**requestOptions:** `Mms.RequestOptions`
|
|
3340
|
-
|
|
3405
|
+
**requestOptions:** `Mms.RequestOptions`
|
|
3406
|
+
|
|
3341
3407
|
</dd>
|
|
3342
3408
|
</dl>
|
|
3343
3409
|
</dd>
|
|
3344
3410
|
</dl>
|
|
3345
3411
|
|
|
3412
|
+
|
|
3346
3413
|
</dd>
|
|
3347
3414
|
</dl>
|
|
3348
3415
|
</details>
|
|
3349
3416
|
|
|
3350
3417
|
## Messages Rcs
|
|
3351
|
-
|
|
3352
|
-
<details><summary><code>client.messages.rcs.<a href="/src/api/resources/messages/resources/rcs/client/Client.ts">send</a>({ ...params }) -> Pinnacle.RcsSendResponse</code></summary>
|
|
3418
|
+
<details><summary><code>client.messages.rcs.<a href="/src/api/resources/messages/resources/rcs/client/Client.ts">send</a>({ ...params }) -> Pinnacle.SendRichMessageResponse</code></summary>
|
|
3353
3419
|
<dl>
|
|
3354
3420
|
<dd>
|
|
3355
3421
|
|
|
@@ -3364,7 +3430,6 @@ await client.messages.mms.validate({
|
|
|
3364
3430
|
Send a RCS message immediately or schedule it for future delivery. <br>
|
|
3365
3431
|
|
|
3366
3432
|
Requires an active RCS agent and recipient devices that support RCS Business Messaging.
|
|
3367
|
-
|
|
3368
3433
|
</dd>
|
|
3369
3434
|
</dl>
|
|
3370
3435
|
</dd>
|
|
@@ -3380,19 +3445,17 @@ Requires an active RCS agent and recipient devices that support RCS Business Mes
|
|
|
3380
3445
|
|
|
3381
3446
|
```typescript
|
|
3382
3447
|
await client.messages.rcs.send({
|
|
3383
|
-
quickReplies: [
|
|
3384
|
-
{
|
|
3448
|
+
quickReplies: [{
|
|
3385
3449
|
type: "openUrl",
|
|
3386
3450
|
payload: "payload",
|
|
3387
|
-
title: "title"
|
|
3388
|
-
},
|
|
3389
|
-
],
|
|
3451
|
+
title: "title"
|
|
3452
|
+
}],
|
|
3390
3453
|
text: "text",
|
|
3391
3454
|
from: "from",
|
|
3392
|
-
to: "to"
|
|
3455
|
+
to: "to"
|
|
3393
3456
|
});
|
|
3394
|
-
```
|
|
3395
3457
|
|
|
3458
|
+
```
|
|
3396
3459
|
</dd>
|
|
3397
3460
|
</dl>
|
|
3398
3461
|
</dd>
|
|
@@ -3406,21 +3469,22 @@ await client.messages.rcs.send({
|
|
|
3406
3469
|
<dl>
|
|
3407
3470
|
<dd>
|
|
3408
3471
|
|
|
3409
|
-
**request:** `Pinnacle.RichMessage`
|
|
3410
|
-
|
|
3472
|
+
**request:** `Pinnacle.RichMessage`
|
|
3473
|
+
|
|
3411
3474
|
</dd>
|
|
3412
3475
|
</dl>
|
|
3413
3476
|
|
|
3414
3477
|
<dl>
|
|
3415
3478
|
<dd>
|
|
3416
3479
|
|
|
3417
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
3418
|
-
|
|
3480
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
3481
|
+
|
|
3419
3482
|
</dd>
|
|
3420
3483
|
</dl>
|
|
3421
3484
|
</dd>
|
|
3422
3485
|
</dl>
|
|
3423
3486
|
|
|
3487
|
+
|
|
3424
3488
|
</dd>
|
|
3425
3489
|
</dl>
|
|
3426
3490
|
</details>
|
|
@@ -3448,7 +3512,6 @@ This endpoint allows RCS agents to display a typing indicator to recipients. The
|
|
|
3448
3512
|
**Frequency:** You can send typing indicators as many times as needed, though only one will be displayed at a time. Sending multiple typing indicators will extend the duration of the current indicator.
|
|
3449
3513
|
|
|
3450
3514
|
> **Note:** Typing indicators are best-effort hints, not delivery-guaranteed state. The platform is allowed to coalesce or drop them, and the client UI decides when to show/hide.
|
|
3451
|
-
|
|
3452
3515
|
</dd>
|
|
3453
3516
|
</dl>
|
|
3454
3517
|
</dd>
|
|
@@ -3467,11 +3530,11 @@ await client.messages.rcs.sendTyping({
|
|
|
3467
3530
|
agentId: "agent_pinnacle",
|
|
3468
3531
|
to: "+14154746461",
|
|
3469
3532
|
options: {
|
|
3470
|
-
test_mode: false
|
|
3471
|
-
}
|
|
3533
|
+
test_mode: false
|
|
3534
|
+
}
|
|
3472
3535
|
});
|
|
3473
|
-
```
|
|
3474
3536
|
|
|
3537
|
+
```
|
|
3475
3538
|
</dd>
|
|
3476
3539
|
</dl>
|
|
3477
3540
|
</dd>
|
|
@@ -3485,21 +3548,22 @@ await client.messages.rcs.sendTyping({
|
|
|
3485
3548
|
<dl>
|
|
3486
3549
|
<dd>
|
|
3487
3550
|
|
|
3488
|
-
**request:** `Pinnacle.messages.SendTypingIndicatorSchema`
|
|
3489
|
-
|
|
3551
|
+
**request:** `Pinnacle.messages.SendTypingIndicatorSchema`
|
|
3552
|
+
|
|
3490
3553
|
</dd>
|
|
3491
3554
|
</dl>
|
|
3492
3555
|
|
|
3493
3556
|
<dl>
|
|
3494
3557
|
<dd>
|
|
3495
3558
|
|
|
3496
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
3497
|
-
|
|
3559
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
3560
|
+
|
|
3498
3561
|
</dd>
|
|
3499
3562
|
</dl>
|
|
3500
3563
|
</dd>
|
|
3501
3564
|
</dl>
|
|
3502
3565
|
|
|
3566
|
+
|
|
3503
3567
|
</dd>
|
|
3504
3568
|
</dl>
|
|
3505
3569
|
</details>
|
|
@@ -3517,7 +3581,6 @@ await client.messages.rcs.sendTyping({
|
|
|
3517
3581
|
<dd>
|
|
3518
3582
|
|
|
3519
3583
|
Validate RCS message content without sending it.
|
|
3520
|
-
|
|
3521
3584
|
</dd>
|
|
3522
3585
|
</dl>
|
|
3523
3586
|
</dd>
|
|
@@ -3533,17 +3596,15 @@ Validate RCS message content without sending it.
|
|
|
3533
3596
|
|
|
3534
3597
|
```typescript
|
|
3535
3598
|
await client.messages.rcs.validate({
|
|
3536
|
-
quickReplies: [
|
|
3537
|
-
{
|
|
3599
|
+
quickReplies: [{
|
|
3538
3600
|
type: "openUrl",
|
|
3539
3601
|
payload: "payload",
|
|
3540
|
-
title: "title"
|
|
3541
|
-
},
|
|
3542
|
-
|
|
3543
|
-
text: "text",
|
|
3602
|
+
title: "title"
|
|
3603
|
+
}],
|
|
3604
|
+
text: "text"
|
|
3544
3605
|
});
|
|
3545
|
-
```
|
|
3546
3606
|
|
|
3607
|
+
```
|
|
3547
3608
|
</dd>
|
|
3548
3609
|
</dl>
|
|
3549
3610
|
</dd>
|
|
@@ -3557,27 +3618,27 @@ await client.messages.rcs.validate({
|
|
|
3557
3618
|
<dl>
|
|
3558
3619
|
<dd>
|
|
3559
3620
|
|
|
3560
|
-
**request:** `Pinnacle.RcsValidateContent`
|
|
3561
|
-
|
|
3621
|
+
**request:** `Pinnacle.RcsValidateContent`
|
|
3622
|
+
|
|
3562
3623
|
</dd>
|
|
3563
3624
|
</dl>
|
|
3564
3625
|
|
|
3565
3626
|
<dl>
|
|
3566
3627
|
<dd>
|
|
3567
3628
|
|
|
3568
|
-
**requestOptions:** `Rcs.RequestOptions`
|
|
3569
|
-
|
|
3629
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
3630
|
+
|
|
3570
3631
|
</dd>
|
|
3571
3632
|
</dl>
|
|
3572
3633
|
</dd>
|
|
3573
3634
|
</dl>
|
|
3574
3635
|
|
|
3636
|
+
|
|
3575
3637
|
</dd>
|
|
3576
3638
|
</dl>
|
|
3577
3639
|
</details>
|
|
3578
3640
|
|
|
3579
3641
|
## PhoneNumbers Webhook
|
|
3580
|
-
|
|
3581
3642
|
<details><summary><code>client.phoneNumbers.webhook.<a href="/src/api/resources/phoneNumbers/resources/webhook/client/Client.ts">attach</a>(phone, { ...params }) -> Pinnacle.ConfiguredWebhook</code></summary>
|
|
3582
3643
|
<dl>
|
|
3583
3644
|
<dd>
|
|
@@ -3591,7 +3652,6 @@ await client.messages.rcs.validate({
|
|
|
3591
3652
|
<dd>
|
|
3592
3653
|
|
|
3593
3654
|
Connect a webhook to your phone number to receive real-time notifications for incoming messages, delivery status updates, and other communication events.
|
|
3594
|
-
|
|
3595
3655
|
</dd>
|
|
3596
3656
|
</dl>
|
|
3597
3657
|
</dd>
|
|
@@ -3608,10 +3668,10 @@ Connect a webhook to your phone number to receive real-time notifications for in
|
|
|
3608
3668
|
```typescript
|
|
3609
3669
|
await client.phoneNumbers.webhook.attach("%2B14155551234", {
|
|
3610
3670
|
webhookId: "wh_1234567890",
|
|
3611
|
-
event: "MESSAGE.STATUS"
|
|
3671
|
+
event: "MESSAGE.STATUS"
|
|
3612
3672
|
});
|
|
3613
|
-
```
|
|
3614
3673
|
|
|
3674
|
+
```
|
|
3615
3675
|
</dd>
|
|
3616
3676
|
</dl>
|
|
3617
3677
|
</dd>
|
|
@@ -3625,33 +3685,34 @@ await client.phoneNumbers.webhook.attach("%2B14155551234", {
|
|
|
3625
3685
|
<dl>
|
|
3626
3686
|
<dd>
|
|
3627
3687
|
|
|
3628
|
-
**phone:** `string`
|
|
3688
|
+
**phone:** `string`
|
|
3629
3689
|
|
|
3630
3690
|
The phone number you want to attach the webhook to in E.164 format. Make sure it is url encoded (i.e. replace the leading + with %2B). <br>
|
|
3631
3691
|
|
|
3632
3692
|
Must be a phone number that you own and have already [purchased](./buy) through the API. A phone number can have multiple webhooks attached to it.
|
|
3633
|
-
|
|
3693
|
+
|
|
3634
3694
|
</dd>
|
|
3635
3695
|
</dl>
|
|
3636
3696
|
|
|
3637
3697
|
<dl>
|
|
3638
3698
|
<dd>
|
|
3639
3699
|
|
|
3640
|
-
**request:** `Pinnacle.AttachWebhookParams`
|
|
3641
|
-
|
|
3700
|
+
**request:** `Pinnacle.AttachWebhookParams`
|
|
3701
|
+
|
|
3642
3702
|
</dd>
|
|
3643
3703
|
</dl>
|
|
3644
3704
|
|
|
3645
3705
|
<dl>
|
|
3646
3706
|
<dd>
|
|
3647
3707
|
|
|
3648
|
-
**requestOptions:** `Webhook.RequestOptions`
|
|
3649
|
-
|
|
3708
|
+
**requestOptions:** `Webhook.RequestOptions`
|
|
3709
|
+
|
|
3650
3710
|
</dd>
|
|
3651
3711
|
</dl>
|
|
3652
3712
|
</dd>
|
|
3653
3713
|
</dl>
|
|
3654
3714
|
|
|
3715
|
+
|
|
3655
3716
|
</dd>
|
|
3656
3717
|
</dl>
|
|
3657
3718
|
</details>
|
|
@@ -3671,7 +3732,6 @@ Must be a phone number that you own and have already [purchased](./buy) through
|
|
|
3671
3732
|
Disconnect a webhook from your phone number to stop receiving event notifications for that specific number. <br>
|
|
3672
3733
|
|
|
3673
3734
|
The webhook configuration itself remains intact and available for use with other phone numbers.
|
|
3674
|
-
|
|
3675
3735
|
</dd>
|
|
3676
3736
|
</dl>
|
|
3677
3737
|
</dd>
|
|
@@ -3687,8 +3747,8 @@ The webhook configuration itself remains intact and available for use with other
|
|
|
3687
3747
|
|
|
3688
3748
|
```typescript
|
|
3689
3749
|
await client.phoneNumbers.webhook.detach("+14155551234", "wh_1234567890");
|
|
3690
|
-
```
|
|
3691
3750
|
|
|
3751
|
+
```
|
|
3692
3752
|
</dd>
|
|
3693
3753
|
</dl>
|
|
3694
3754
|
</dd>
|
|
@@ -3702,43 +3762,43 @@ await client.phoneNumbers.webhook.detach("+14155551234", "wh_1234567890");
|
|
|
3702
3762
|
<dl>
|
|
3703
3763
|
<dd>
|
|
3704
3764
|
|
|
3705
|
-
**phone:** `string`
|
|
3765
|
+
**phone:** `string`
|
|
3706
3766
|
|
|
3707
3767
|
The phone number you want to attach the webhook to in E.164 format. Make sure it is url encoded (i.e. replace the leading + with %2B). <br>
|
|
3708
3768
|
|
|
3709
3769
|
Must be a phone number that you own and currently has the specified webhook attached.
|
|
3710
|
-
|
|
3770
|
+
|
|
3711
3771
|
</dd>
|
|
3712
3772
|
</dl>
|
|
3713
3773
|
|
|
3714
3774
|
<dl>
|
|
3715
3775
|
<dd>
|
|
3716
3776
|
|
|
3717
|
-
**webhookId:** `string`
|
|
3777
|
+
**webhookId:** `string`
|
|
3718
3778
|
|
|
3719
3779
|
The unique identifier of the webhook you want to detach from the phone number. <br>
|
|
3720
3780
|
|
|
3721
3781
|
This must be a valid webhook ID that is currently attached to the specified phone number. This identifier is a string that always begins with the prefix `wh_`, for example: `wh_1234567890`.
|
|
3722
|
-
|
|
3782
|
+
|
|
3723
3783
|
</dd>
|
|
3724
3784
|
</dl>
|
|
3725
3785
|
|
|
3726
3786
|
<dl>
|
|
3727
3787
|
<dd>
|
|
3728
3788
|
|
|
3729
|
-
**requestOptions:** `Webhook.RequestOptions`
|
|
3730
|
-
|
|
3789
|
+
**requestOptions:** `Webhook.RequestOptions`
|
|
3790
|
+
|
|
3731
3791
|
</dd>
|
|
3732
3792
|
</dl>
|
|
3733
3793
|
</dd>
|
|
3734
3794
|
</dl>
|
|
3735
3795
|
|
|
3796
|
+
|
|
3736
3797
|
</dd>
|
|
3737
3798
|
</dl>
|
|
3738
3799
|
</details>
|
|
3739
3800
|
|
|
3740
3801
|
## PhoneNumbers Campaign
|
|
3741
|
-
|
|
3742
3802
|
<details><summary><code>client.phoneNumbers.campaign.<a href="/src/api/resources/phoneNumbers/resources/campaign/client/Client.ts">attach</a>({ ...params }) -> Pinnacle.AttachedPhoneNumberResult</code></summary>
|
|
3743
3803
|
<dl>
|
|
3744
3804
|
<dd>
|
|
@@ -3752,7 +3812,6 @@ This must be a valid webhook ID that is currently attached to the specified phon
|
|
|
3752
3812
|
<dd>
|
|
3753
3813
|
|
|
3754
3814
|
Link a phone number to a specific campaign. Phone numbers must be linked to a campaign to send messages.
|
|
3755
|
-
|
|
3756
3815
|
</dd>
|
|
3757
3816
|
</dl>
|
|
3758
3817
|
</dd>
|
|
@@ -3770,10 +3829,10 @@ Link a phone number to a specific campaign. Phone numbers must be linked to a ca
|
|
|
3770
3829
|
await client.phoneNumbers.campaign.attach({
|
|
3771
3830
|
phones: ["+14155550123", "+14155559876", "+14155550111"],
|
|
3772
3831
|
campaignType: "TOLL_FREE",
|
|
3773
|
-
campaignId: "tf_1234567890"
|
|
3832
|
+
campaignId: "tf_1234567890"
|
|
3774
3833
|
});
|
|
3775
|
-
```
|
|
3776
3834
|
|
|
3835
|
+
```
|
|
3777
3836
|
</dd>
|
|
3778
3837
|
</dl>
|
|
3779
3838
|
</dd>
|
|
@@ -3787,21 +3846,22 @@ await client.phoneNumbers.campaign.attach({
|
|
|
3787
3846
|
<dl>
|
|
3788
3847
|
<dd>
|
|
3789
3848
|
|
|
3790
|
-
**request:** `Pinnacle.phoneNumbers.AttachCampaignParams`
|
|
3791
|
-
|
|
3849
|
+
**request:** `Pinnacle.phoneNumbers.AttachCampaignParams`
|
|
3850
|
+
|
|
3792
3851
|
</dd>
|
|
3793
3852
|
</dl>
|
|
3794
3853
|
|
|
3795
3854
|
<dl>
|
|
3796
3855
|
<dd>
|
|
3797
3856
|
|
|
3798
|
-
**requestOptions:** `Campaign.RequestOptions`
|
|
3799
|
-
|
|
3857
|
+
**requestOptions:** `Campaign.RequestOptions`
|
|
3858
|
+
|
|
3800
3859
|
</dd>
|
|
3801
3860
|
</dl>
|
|
3802
3861
|
</dd>
|
|
3803
3862
|
</dl>
|
|
3804
3863
|
|
|
3864
|
+
|
|
3805
3865
|
</dd>
|
|
3806
3866
|
</dl>
|
|
3807
3867
|
</details>
|
|
@@ -3819,7 +3879,6 @@ await client.phoneNumbers.campaign.attach({
|
|
|
3819
3879
|
<dd>
|
|
3820
3880
|
|
|
3821
3881
|
Remove the association between a phone number and its attached campaign.
|
|
3822
|
-
|
|
3823
3882
|
</dd>
|
|
3824
3883
|
</dl>
|
|
3825
3884
|
</dd>
|
|
@@ -3835,10 +3894,10 @@ Remove the association between a phone number and its attached campaign.
|
|
|
3835
3894
|
|
|
3836
3895
|
```typescript
|
|
3837
3896
|
await client.phoneNumbers.campaign.detach({
|
|
3838
|
-
phones: ["+14155559876", "14155550111"]
|
|
3897
|
+
phones: ["+14155559876", "14155550111"]
|
|
3839
3898
|
});
|
|
3840
|
-
```
|
|
3841
3899
|
|
|
3900
|
+
```
|
|
3842
3901
|
</dd>
|
|
3843
3902
|
</dl>
|
|
3844
3903
|
</dd>
|
|
@@ -3852,27 +3911,27 @@ await client.phoneNumbers.campaign.detach({
|
|
|
3852
3911
|
<dl>
|
|
3853
3912
|
<dd>
|
|
3854
3913
|
|
|
3855
|
-
**request:** `Pinnacle.phoneNumbers.DetachCampaignParams`
|
|
3856
|
-
|
|
3914
|
+
**request:** `Pinnacle.phoneNumbers.DetachCampaignParams`
|
|
3915
|
+
|
|
3857
3916
|
</dd>
|
|
3858
3917
|
</dl>
|
|
3859
3918
|
|
|
3860
3919
|
<dl>
|
|
3861
3920
|
<dd>
|
|
3862
3921
|
|
|
3863
|
-
**requestOptions:** `Campaign.RequestOptions`
|
|
3864
|
-
|
|
3922
|
+
**requestOptions:** `Campaign.RequestOptions`
|
|
3923
|
+
|
|
3865
3924
|
</dd>
|
|
3866
3925
|
</dl>
|
|
3867
3926
|
</dd>
|
|
3868
3927
|
</dl>
|
|
3869
3928
|
|
|
3929
|
+
|
|
3870
3930
|
</dd>
|
|
3871
3931
|
</dl>
|
|
3872
3932
|
</details>
|
|
3873
3933
|
|
|
3874
3934
|
## Status Get
|
|
3875
|
-
|
|
3876
3935
|
<details><summary><code>client.status.get.<a href="/src/api/resources/status/resources/get/client/Client.ts">brand</a>(brandId) -> Pinnacle.BrandStatus</code></summary>
|
|
3877
3936
|
<dl>
|
|
3878
3937
|
<dd>
|
|
@@ -3886,7 +3945,6 @@ await client.phoneNumbers.campaign.detach({
|
|
|
3886
3945
|
<dd>
|
|
3887
3946
|
|
|
3888
3947
|
Retrieve a brand's status.
|
|
3889
|
-
|
|
3890
3948
|
</dd>
|
|
3891
3949
|
</dl>
|
|
3892
3950
|
</dd>
|
|
@@ -3902,8 +3960,8 @@ Retrieve a brand's status.
|
|
|
3902
3960
|
|
|
3903
3961
|
```typescript
|
|
3904
3962
|
await client.status.get.brand("b_1234567890");
|
|
3905
|
-
```
|
|
3906
3963
|
|
|
3964
|
+
```
|
|
3907
3965
|
</dd>
|
|
3908
3966
|
</dl>
|
|
3909
3967
|
</dd>
|
|
@@ -3918,20 +3976,21 @@ await client.status.get.brand("b_1234567890");
|
|
|
3918
3976
|
<dd>
|
|
3919
3977
|
|
|
3920
3978
|
**brandId:** `string` — The unique identifier of the brand you want to retrieve the status for. This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`.
|
|
3921
|
-
|
|
3979
|
+
|
|
3922
3980
|
</dd>
|
|
3923
3981
|
</dl>
|
|
3924
3982
|
|
|
3925
3983
|
<dl>
|
|
3926
3984
|
<dd>
|
|
3927
3985
|
|
|
3928
|
-
**requestOptions:** `Get.RequestOptions`
|
|
3929
|
-
|
|
3986
|
+
**requestOptions:** `Get.RequestOptions`
|
|
3987
|
+
|
|
3930
3988
|
</dd>
|
|
3931
3989
|
</dl>
|
|
3932
3990
|
</dd>
|
|
3933
3991
|
</dl>
|
|
3934
3992
|
|
|
3993
|
+
|
|
3935
3994
|
</dd>
|
|
3936
3995
|
</dl>
|
|
3937
3996
|
</details>
|
|
@@ -3949,7 +4008,6 @@ await client.status.get.brand("b_1234567890");
|
|
|
3949
4008
|
<dd>
|
|
3950
4009
|
|
|
3951
4010
|
Retrieve a toll-free campaign's status.
|
|
3952
|
-
|
|
3953
4011
|
</dd>
|
|
3954
4012
|
</dl>
|
|
3955
4013
|
</dd>
|
|
@@ -3965,8 +4023,8 @@ Retrieve a toll-free campaign's status.
|
|
|
3965
4023
|
|
|
3966
4024
|
```typescript
|
|
3967
4025
|
await client.status.get.tollFree("tf_1234567890");
|
|
3968
|
-
```
|
|
3969
4026
|
|
|
4027
|
+
```
|
|
3970
4028
|
</dd>
|
|
3971
4029
|
</dl>
|
|
3972
4030
|
</dd>
|
|
@@ -3981,20 +4039,21 @@ await client.status.get.tollFree("tf_1234567890");
|
|
|
3981
4039
|
<dd>
|
|
3982
4040
|
|
|
3983
4041
|
**campaignId:** `string` — The unique identifier of the toll-free campaign you want to retrieve the status for. This identifier is a string that always begins with the prefix `tf_`, for example: `tf_1234567890`.
|
|
3984
|
-
|
|
4042
|
+
|
|
3985
4043
|
</dd>
|
|
3986
4044
|
</dl>
|
|
3987
4045
|
|
|
3988
4046
|
<dl>
|
|
3989
4047
|
<dd>
|
|
3990
4048
|
|
|
3991
|
-
**requestOptions:** `Get.RequestOptions`
|
|
3992
|
-
|
|
4049
|
+
**requestOptions:** `Get.RequestOptions`
|
|
4050
|
+
|
|
3993
4051
|
</dd>
|
|
3994
4052
|
</dl>
|
|
3995
4053
|
</dd>
|
|
3996
4054
|
</dl>
|
|
3997
4055
|
|
|
4056
|
+
|
|
3998
4057
|
</dd>
|
|
3999
4058
|
</dl>
|
|
4000
4059
|
</details>
|
|
@@ -4012,7 +4071,6 @@ await client.status.get.tollFree("tf_1234567890");
|
|
|
4012
4071
|
<dd>
|
|
4013
4072
|
|
|
4014
4073
|
Retrieve a 10DLC campaign's status.
|
|
4015
|
-
|
|
4016
4074
|
</dd>
|
|
4017
4075
|
</dl>
|
|
4018
4076
|
</dd>
|
|
@@ -4028,8 +4086,8 @@ Retrieve a 10DLC campaign's status.
|
|
|
4028
4086
|
|
|
4029
4087
|
```typescript
|
|
4030
4088
|
await client.status.get.dlc("dlc_1234567890");
|
|
4031
|
-
```
|
|
4032
4089
|
|
|
4090
|
+
```
|
|
4033
4091
|
</dd>
|
|
4034
4092
|
</dl>
|
|
4035
4093
|
</dd>
|
|
@@ -4044,20 +4102,21 @@ await client.status.get.dlc("dlc_1234567890");
|
|
|
4044
4102
|
<dd>
|
|
4045
4103
|
|
|
4046
4104
|
**campaignId:** `string` — The unique identifier of the 10DLC campaign you want to retrieve the status for. This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
4047
|
-
|
|
4105
|
+
|
|
4048
4106
|
</dd>
|
|
4049
4107
|
</dl>
|
|
4050
4108
|
|
|
4051
4109
|
<dl>
|
|
4052
4110
|
<dd>
|
|
4053
4111
|
|
|
4054
|
-
**requestOptions:** `Get.RequestOptions`
|
|
4055
|
-
|
|
4112
|
+
**requestOptions:** `Get.RequestOptions`
|
|
4113
|
+
|
|
4056
4114
|
</dd>
|
|
4057
4115
|
</dl>
|
|
4058
4116
|
</dd>
|
|
4059
4117
|
</dl>
|
|
4060
4118
|
|
|
4119
|
+
|
|
4061
4120
|
</dd>
|
|
4062
4121
|
</dl>
|
|
4063
4122
|
</details>
|
|
@@ -4075,7 +4134,6 @@ await client.status.get.dlc("dlc_1234567890");
|
|
|
4075
4134
|
<dd>
|
|
4076
4135
|
|
|
4077
4136
|
Retrieve a RCS campaign's status.
|
|
4078
|
-
|
|
4079
4137
|
</dd>
|
|
4080
4138
|
</dl>
|
|
4081
4139
|
</dd>
|
|
@@ -4091,8 +4149,8 @@ Retrieve a RCS campaign's status.
|
|
|
4091
4149
|
|
|
4092
4150
|
```typescript
|
|
4093
4151
|
await client.status.get.rcs("rcs_1234567890");
|
|
4094
|
-
```
|
|
4095
4152
|
|
|
4153
|
+
```
|
|
4096
4154
|
</dd>
|
|
4097
4155
|
</dl>
|
|
4098
4156
|
</dd>
|
|
@@ -4107,20 +4165,21 @@ await client.status.get.rcs("rcs_1234567890");
|
|
|
4107
4165
|
<dd>
|
|
4108
4166
|
|
|
4109
4167
|
**campaignId:** `string` — The unique identifier of the RCS campaign you want to retrieve the status for. This identifier is a string that always begins with the prefix `rcs_`, for example: `rcs_1234567890`.
|
|
4110
|
-
|
|
4168
|
+
|
|
4111
4169
|
</dd>
|
|
4112
4170
|
</dl>
|
|
4113
4171
|
|
|
4114
4172
|
<dl>
|
|
4115
4173
|
<dd>
|
|
4116
4174
|
|
|
4117
|
-
**requestOptions:** `Get.RequestOptions`
|
|
4118
|
-
|
|
4175
|
+
**requestOptions:** `Get.RequestOptions`
|
|
4176
|
+
|
|
4119
4177
|
</dd>
|
|
4120
4178
|
</dl>
|
|
4121
4179
|
</dd>
|
|
4122
4180
|
</dl>
|
|
4123
4181
|
|
|
4182
|
+
|
|
4124
4183
|
</dd>
|
|
4125
4184
|
</dl>
|
|
4126
4185
|
</details>
|
|
@@ -4140,7 +4199,6 @@ await client.status.get.rcs("rcs_1234567890");
|
|
|
4140
4199
|
Retrieve a phone number's order status and campaign attachment status. <br>
|
|
4141
4200
|
|
|
4142
4201
|
Check if a number is active and ready to send messages.
|
|
4143
|
-
|
|
4144
4202
|
</dd>
|
|
4145
4203
|
</dl>
|
|
4146
4204
|
</dd>
|
|
@@ -4156,8 +4214,8 @@ Check if a number is active and ready to send messages.
|
|
|
4156
4214
|
|
|
4157
4215
|
```typescript
|
|
4158
4216
|
await client.status.get.phoneNumber("+14151234567");
|
|
4159
|
-
```
|
|
4160
4217
|
|
|
4218
|
+
```
|
|
4161
4219
|
</dd>
|
|
4162
4220
|
</dl>
|
|
4163
4221
|
</dd>
|
|
@@ -4172,26 +4230,26 @@ await client.status.get.phoneNumber("+14151234567");
|
|
|
4172
4230
|
<dd>
|
|
4173
4231
|
|
|
4174
4232
|
**phoneNumber:** `string` — Phone number in E164 format that is in review.
|
|
4175
|
-
|
|
4233
|
+
|
|
4176
4234
|
</dd>
|
|
4177
4235
|
</dl>
|
|
4178
4236
|
|
|
4179
4237
|
<dl>
|
|
4180
4238
|
<dd>
|
|
4181
4239
|
|
|
4182
|
-
**requestOptions:** `Get.RequestOptions`
|
|
4183
|
-
|
|
4240
|
+
**requestOptions:** `Get.RequestOptions`
|
|
4241
|
+
|
|
4184
4242
|
</dd>
|
|
4185
4243
|
</dl>
|
|
4186
4244
|
</dd>
|
|
4187
4245
|
</dl>
|
|
4188
4246
|
|
|
4247
|
+
|
|
4189
4248
|
</dd>
|
|
4190
4249
|
</dl>
|
|
4191
4250
|
</details>
|
|
4192
4251
|
|
|
4193
4252
|
## Tools Url
|
|
4194
|
-
|
|
4195
4253
|
<details><summary><code>client.tools.url.<a href="/src/api/resources/tools/resources/url/client/Client.ts">create</a>({ ...params }) -> Pinnacle.ShortenedUrl</code></summary>
|
|
4196
4254
|
<dl>
|
|
4197
4255
|
<dd>
|
|
@@ -4205,7 +4263,6 @@ await client.status.get.phoneNumber("+14151234567");
|
|
|
4205
4263
|
<dd>
|
|
4206
4264
|
|
|
4207
4265
|
Create a shortened URL that redirects visitors to the provided destination URL.
|
|
4208
|
-
|
|
4209
4266
|
</dd>
|
|
4210
4267
|
</dl>
|
|
4211
4268
|
</dd>
|
|
@@ -4223,11 +4280,11 @@ Create a shortened URL that redirects visitors to the provided destination URL.
|
|
|
4223
4280
|
await client.tools.url.create({
|
|
4224
4281
|
url: "https://www.pinnacle.sh/",
|
|
4225
4282
|
options: {
|
|
4226
|
-
expiresAt: "2025-06-23T16:18:25.000Z"
|
|
4227
|
-
}
|
|
4283
|
+
expiresAt: "2025-06-23T16:18:25.000Z"
|
|
4284
|
+
}
|
|
4228
4285
|
});
|
|
4229
|
-
```
|
|
4230
4286
|
|
|
4287
|
+
```
|
|
4231
4288
|
</dd>
|
|
4232
4289
|
</dl>
|
|
4233
4290
|
</dd>
|
|
@@ -4241,21 +4298,22 @@ await client.tools.url.create({
|
|
|
4241
4298
|
<dl>
|
|
4242
4299
|
<dd>
|
|
4243
4300
|
|
|
4244
|
-
**request:** `Pinnacle.tools.CreateUrlParams`
|
|
4245
|
-
|
|
4301
|
+
**request:** `Pinnacle.tools.CreateUrlParams`
|
|
4302
|
+
|
|
4246
4303
|
</dd>
|
|
4247
4304
|
</dl>
|
|
4248
4305
|
|
|
4249
4306
|
<dl>
|
|
4250
4307
|
<dd>
|
|
4251
4308
|
|
|
4252
|
-
**requestOptions:** `Url.RequestOptions`
|
|
4253
|
-
|
|
4309
|
+
**requestOptions:** `Url.RequestOptions`
|
|
4310
|
+
|
|
4254
4311
|
</dd>
|
|
4255
4312
|
</dl>
|
|
4256
4313
|
</dd>
|
|
4257
4314
|
</dl>
|
|
4258
4315
|
|
|
4316
|
+
|
|
4259
4317
|
</dd>
|
|
4260
4318
|
</dl>
|
|
4261
4319
|
</details>
|
|
@@ -4273,7 +4331,6 @@ await client.tools.url.create({
|
|
|
4273
4331
|
<dd>
|
|
4274
4332
|
|
|
4275
4333
|
Retrieve configuration and details for your shortened URL using its unique identifier.
|
|
4276
|
-
|
|
4277
4334
|
</dd>
|
|
4278
4335
|
</dl>
|
|
4279
4336
|
</dd>
|
|
@@ -4289,8 +4346,8 @@ Retrieve configuration and details for your shortened URL using its unique ident
|
|
|
4289
4346
|
|
|
4290
4347
|
```typescript
|
|
4291
4348
|
await client.tools.url.get("ePzVxILF");
|
|
4292
|
-
```
|
|
4293
4349
|
|
|
4350
|
+
```
|
|
4294
4351
|
</dd>
|
|
4295
4352
|
</dl>
|
|
4296
4353
|
</dd>
|
|
@@ -4304,25 +4361,26 @@ await client.tools.url.get("ePzVxILF");
|
|
|
4304
4361
|
<dl>
|
|
4305
4362
|
<dd>
|
|
4306
4363
|
|
|
4307
|
-
**linkId:** `string`
|
|
4364
|
+
**linkId:** `string`
|
|
4308
4365
|
|
|
4309
4366
|
Unique identifier from your shortened URL. For example, for `https://pncl.to/ePzVxILF`, the `linkId` is `ePzVxILF`. <br>
|
|
4310
4367
|
|
|
4311
4368
|
See the response of [Create Shortened URL](./create-url) for more information.
|
|
4312
|
-
|
|
4369
|
+
|
|
4313
4370
|
</dd>
|
|
4314
4371
|
</dl>
|
|
4315
4372
|
|
|
4316
4373
|
<dl>
|
|
4317
4374
|
<dd>
|
|
4318
4375
|
|
|
4319
|
-
**requestOptions:** `Url.RequestOptions`
|
|
4320
|
-
|
|
4376
|
+
**requestOptions:** `Url.RequestOptions`
|
|
4377
|
+
|
|
4321
4378
|
</dd>
|
|
4322
4379
|
</dl>
|
|
4323
4380
|
</dd>
|
|
4324
4381
|
</dl>
|
|
4325
4382
|
|
|
4383
|
+
|
|
4326
4384
|
</dd>
|
|
4327
4385
|
</dl>
|
|
4328
4386
|
</details>
|
|
@@ -4340,7 +4398,6 @@ See the response of [Create Shortened URL](./create-url) for more information.
|
|
|
4340
4398
|
<dd>
|
|
4341
4399
|
|
|
4342
4400
|
Update the destination or expiration date of an existing shortened URL. Expiring links cannot be updated into a permalink.
|
|
4343
|
-
|
|
4344
4401
|
</dd>
|
|
4345
4402
|
</dl>
|
|
4346
4403
|
</dd>
|
|
@@ -4356,10 +4413,10 @@ Update the destination or expiration date of an existing shortened URL. Expiring
|
|
|
4356
4413
|
|
|
4357
4414
|
```typescript
|
|
4358
4415
|
await client.tools.url.update("ePzVxILF", {
|
|
4359
|
-
url: "https://www.pinnacle.sh/"
|
|
4416
|
+
url: "https://www.pinnacle.sh/"
|
|
4360
4417
|
});
|
|
4361
|
-
```
|
|
4362
4418
|
|
|
4419
|
+
```
|
|
4363
4420
|
</dd>
|
|
4364
4421
|
</dl>
|
|
4365
4422
|
</dd>
|
|
@@ -4373,39 +4430,39 @@ await client.tools.url.update("ePzVxILF", {
|
|
|
4373
4430
|
<dl>
|
|
4374
4431
|
<dd>
|
|
4375
4432
|
|
|
4376
|
-
**linkId:** `string`
|
|
4433
|
+
**linkId:** `string`
|
|
4377
4434
|
|
|
4378
4435
|
Unique identifier from your shortened URL. For example, for `https://pncl.to/ePzVxILF`, the `linkId` is `ePzVxILF`. <br>
|
|
4379
4436
|
|
|
4380
4437
|
See the response of [Create Shortened URL](./create-url) for more information.
|
|
4381
|
-
|
|
4438
|
+
|
|
4382
4439
|
</dd>
|
|
4383
4440
|
</dl>
|
|
4384
4441
|
|
|
4385
4442
|
<dl>
|
|
4386
4443
|
<dd>
|
|
4387
4444
|
|
|
4388
|
-
**request:** `Pinnacle.tools.UpdateUrlParams`
|
|
4389
|
-
|
|
4445
|
+
**request:** `Pinnacle.tools.UpdateUrlParams`
|
|
4446
|
+
|
|
4390
4447
|
</dd>
|
|
4391
4448
|
</dl>
|
|
4392
4449
|
|
|
4393
4450
|
<dl>
|
|
4394
4451
|
<dd>
|
|
4395
4452
|
|
|
4396
|
-
**requestOptions:** `Url.RequestOptions`
|
|
4397
|
-
|
|
4453
|
+
**requestOptions:** `Url.RequestOptions`
|
|
4454
|
+
|
|
4398
4455
|
</dd>
|
|
4399
4456
|
</dl>
|
|
4400
4457
|
</dd>
|
|
4401
4458
|
</dl>
|
|
4402
4459
|
|
|
4460
|
+
|
|
4403
4461
|
</dd>
|
|
4404
4462
|
</dl>
|
|
4405
4463
|
</details>
|
|
4406
4464
|
|
|
4407
4465
|
## Tools File
|
|
4408
|
-
|
|
4409
4466
|
<details><summary><code>client.tools.file.<a href="/src/api/resources/tools/resources/file/client/Client.ts">upload</a>({ ...params }) -> Pinnacle.UploadResults</code></summary>
|
|
4410
4467
|
<dl>
|
|
4411
4468
|
<dd>
|
|
@@ -4419,7 +4476,6 @@ See the response of [Create Shortened URL](./create-url) for more information.
|
|
|
4419
4476
|
<dd>
|
|
4420
4477
|
|
|
4421
4478
|
Generate presigned URLs that let you upload files directly to our storage and allow your users to download them securely.
|
|
4422
|
-
|
|
4423
4479
|
</dd>
|
|
4424
4480
|
</dl>
|
|
4425
4481
|
</dd>
|
|
@@ -4441,12 +4497,12 @@ await client.tools.file.upload({
|
|
|
4441
4497
|
options: {
|
|
4442
4498
|
deleteAt: "2025-12-31T23:59:59Z",
|
|
4443
4499
|
download: {
|
|
4444
|
-
expiresAt: "2025-06-30T12:00:00.000Z"
|
|
4445
|
-
}
|
|
4446
|
-
}
|
|
4500
|
+
expiresAt: "2025-06-30T12:00:00.000Z"
|
|
4501
|
+
}
|
|
4502
|
+
}
|
|
4447
4503
|
});
|
|
4448
|
-
```
|
|
4449
4504
|
|
|
4505
|
+
```
|
|
4450
4506
|
</dd>
|
|
4451
4507
|
</dl>
|
|
4452
4508
|
</dd>
|
|
@@ -4460,21 +4516,22 @@ await client.tools.file.upload({
|
|
|
4460
4516
|
<dl>
|
|
4461
4517
|
<dd>
|
|
4462
4518
|
|
|
4463
|
-
**request:** `Pinnacle.tools.UploadFileParams`
|
|
4464
|
-
|
|
4519
|
+
**request:** `Pinnacle.tools.UploadFileParams`
|
|
4520
|
+
|
|
4465
4521
|
</dd>
|
|
4466
4522
|
</dl>
|
|
4467
4523
|
|
|
4468
4524
|
<dl>
|
|
4469
4525
|
<dd>
|
|
4470
4526
|
|
|
4471
|
-
**requestOptions:** `File_.RequestOptions`
|
|
4472
|
-
|
|
4527
|
+
**requestOptions:** `File_.RequestOptions`
|
|
4528
|
+
|
|
4473
4529
|
</dd>
|
|
4474
4530
|
</dl>
|
|
4475
4531
|
</dd>
|
|
4476
4532
|
</dl>
|
|
4477
4533
|
|
|
4534
|
+
|
|
4478
4535
|
</dd>
|
|
4479
4536
|
</dl>
|
|
4480
4537
|
</details>
|
|
@@ -4511,15 +4568,10 @@ Refresh expiring presigned URLs for Pinnacle-hosted files to extend their access
|
|
|
4511
4568
|
|
|
4512
4569
|
```typescript
|
|
4513
4570
|
await client.tools.file.refresh({
|
|
4514
|
-
urls: [
|
|
4515
|
-
"https://server.trypinnacle.app/storage/v1/object/sign/vault/3/test.jpg?token=oldtoken",
|
|
4516
|
-
"https://server.trypinnacle.app/storage/v1/object/sign/vault/3/document.pdf?token=oldtoken2",
|
|
4517
|
-
"invalid/url",
|
|
4518
|
-
"https://google.com",
|
|
4519
|
-
],
|
|
4571
|
+
urls: ["https://server.trypinnacle.app/storage/v1/object/sign/vault/3/test.jpg?token=oldtoken", "https://server.trypinnacle.app/storage/v1/object/sign/vault/3/document.pdf?token=oldtoken2", "invalid/url", "https://google.com"]
|
|
4520
4572
|
});
|
|
4521
|
-
```
|
|
4522
4573
|
|
|
4574
|
+
```
|
|
4523
4575
|
</dd>
|
|
4524
4576
|
</dl>
|
|
4525
4577
|
</dd>
|
|
@@ -4533,27 +4585,27 @@ await client.tools.file.refresh({
|
|
|
4533
4585
|
<dl>
|
|
4534
4586
|
<dd>
|
|
4535
4587
|
|
|
4536
|
-
**request:** `Pinnacle.tools.RefreshFileParams`
|
|
4537
|
-
|
|
4588
|
+
**request:** `Pinnacle.tools.RefreshFileParams`
|
|
4589
|
+
|
|
4538
4590
|
</dd>
|
|
4539
4591
|
</dl>
|
|
4540
4592
|
|
|
4541
4593
|
<dl>
|
|
4542
4594
|
<dd>
|
|
4543
4595
|
|
|
4544
|
-
**requestOptions:** `File_.RequestOptions`
|
|
4545
|
-
|
|
4596
|
+
**requestOptions:** `File_.RequestOptions`
|
|
4597
|
+
|
|
4546
4598
|
</dd>
|
|
4547
4599
|
</dl>
|
|
4548
4600
|
</dd>
|
|
4549
4601
|
</dl>
|
|
4550
4602
|
|
|
4603
|
+
|
|
4551
4604
|
</dd>
|
|
4552
4605
|
</dl>
|
|
4553
4606
|
</details>
|
|
4554
4607
|
|
|
4555
4608
|
## Tools ContactCard
|
|
4556
|
-
|
|
4557
4609
|
<details><summary><code>client.tools.contactCard.<a href="/src/api/resources/tools/resources/contactCard/client/Client.ts">get</a>({ ...params }) -> Pinnacle.VCardData</code></summary>
|
|
4558
4610
|
<dl>
|
|
4559
4611
|
<dd>
|
|
@@ -4567,7 +4619,6 @@ await client.tools.file.refresh({
|
|
|
4567
4619
|
<dd>
|
|
4568
4620
|
|
|
4569
4621
|
Retrieve contact information as a vCard and get a presigned URL to download the file. Contact cards can be sent [via MMS](/api-reference/messages/send-mms) as a media file.
|
|
4570
|
-
|
|
4571
4622
|
</dd>
|
|
4572
4623
|
</dl>
|
|
4573
4624
|
</dd>
|
|
@@ -4583,10 +4634,10 @@ Retrieve contact information as a vCard and get a presigned URL to download the
|
|
|
4583
4634
|
|
|
4584
4635
|
```typescript
|
|
4585
4636
|
await client.tools.contactCard.get({
|
|
4586
|
-
id: "cc_1234567890"
|
|
4637
|
+
id: "cc_1234567890"
|
|
4587
4638
|
});
|
|
4588
|
-
```
|
|
4589
4639
|
|
|
4640
|
+
```
|
|
4590
4641
|
</dd>
|
|
4591
4642
|
</dl>
|
|
4592
4643
|
</dd>
|
|
@@ -4600,21 +4651,22 @@ await client.tools.contactCard.get({
|
|
|
4600
4651
|
<dl>
|
|
4601
4652
|
<dd>
|
|
4602
4653
|
|
|
4603
|
-
**request:** `Pinnacle.tools.GetVcardParams`
|
|
4604
|
-
|
|
4654
|
+
**request:** `Pinnacle.tools.GetVcardParams`
|
|
4655
|
+
|
|
4605
4656
|
</dd>
|
|
4606
4657
|
</dl>
|
|
4607
4658
|
|
|
4608
4659
|
<dl>
|
|
4609
4660
|
<dd>
|
|
4610
4661
|
|
|
4611
|
-
**requestOptions:** `ContactCard.RequestOptions`
|
|
4612
|
-
|
|
4662
|
+
**requestOptions:** `ContactCard.RequestOptions`
|
|
4663
|
+
|
|
4613
4664
|
</dd>
|
|
4614
4665
|
</dl>
|
|
4615
4666
|
</dd>
|
|
4616
4667
|
</dl>
|
|
4617
4668
|
|
|
4669
|
+
|
|
4618
4670
|
</dd>
|
|
4619
4671
|
</dl>
|
|
4620
4672
|
</details>
|
|
@@ -4632,7 +4684,6 @@ await client.tools.contactCard.get({
|
|
|
4632
4684
|
<dd>
|
|
4633
4685
|
|
|
4634
4686
|
Create a new contact card or updates an existing one with full vCard data. Contact cards can be sent [via MMS](/api-reference/messages/send-mms) as a media file.
|
|
4635
|
-
|
|
4636
4687
|
</dd>
|
|
4637
4688
|
</dl>
|
|
4638
4689
|
</dd>
|
|
@@ -4655,12 +4706,11 @@ await client.tools.contactCard.upsert({
|
|
|
4655
4706
|
givenName: "Jane",
|
|
4656
4707
|
additionalNames: ["A."],
|
|
4657
4708
|
honorificPrefixes: ["Dr."],
|
|
4658
|
-
honorificSuffixes: ["PhD"]
|
|
4709
|
+
honorificSuffixes: ["PhD"]
|
|
4659
4710
|
},
|
|
4660
4711
|
nickname: ["Janie"],
|
|
4661
4712
|
birthday: "1990-02-15",
|
|
4662
|
-
addresses: [
|
|
4663
|
-
{
|
|
4713
|
+
addresses: [{
|
|
4664
4714
|
countryName: "USA",
|
|
4665
4715
|
extendedAddress: "Apt. 4B",
|
|
4666
4716
|
locality: "Anytown",
|
|
@@ -4668,39 +4718,34 @@ await client.tools.contactCard.upsert({
|
|
|
4668
4718
|
postOfficeBox: "PO Box 123",
|
|
4669
4719
|
region: "CA",
|
|
4670
4720
|
streetAddress: "123 Main St",
|
|
4671
|
-
type: ["HOME", "PREF"]
|
|
4672
|
-
},
|
|
4673
|
-
],
|
|
4721
|
+
type: ["HOME", "PREF"]
|
|
4722
|
+
}],
|
|
4674
4723
|
url: "https://app.pinnacle.sh",
|
|
4675
|
-
phones: [
|
|
4676
|
-
{
|
|
4724
|
+
phones: [{
|
|
4677
4725
|
type: ["CELL"],
|
|
4678
|
-
value: "+15551234567"
|
|
4679
|
-
},
|
|
4680
|
-
|
|
4681
|
-
emails: [
|
|
4682
|
-
{
|
|
4726
|
+
value: "+15551234567"
|
|
4727
|
+
}],
|
|
4728
|
+
emails: [{
|
|
4683
4729
|
type: ["INTERNET"],
|
|
4684
|
-
value: "jane.smith@example.com"
|
|
4685
|
-
},
|
|
4686
|
-
],
|
|
4730
|
+
value: "jane.smith@example.com"
|
|
4731
|
+
}],
|
|
4687
4732
|
timezone: "America/Los_Angeles",
|
|
4688
4733
|
geo: {
|
|
4689
4734
|
latitude: 34.0522,
|
|
4690
|
-
longitude: -118.2437
|
|
4735
|
+
longitude: -118.2437
|
|
4691
4736
|
},
|
|
4692
4737
|
title: "Engineer",
|
|
4693
4738
|
role: "Developer",
|
|
4694
4739
|
organization: {
|
|
4695
4740
|
name: "Acme Co",
|
|
4696
|
-
units: ["Engineering", "R&D"]
|
|
4741
|
+
units: ["Engineering", "R&D"]
|
|
4697
4742
|
},
|
|
4698
4743
|
categories: ["Friend", "Colleague"],
|
|
4699
4744
|
note: "Test contact entry",
|
|
4700
|
-
photo: "https://fastly.picsum.photos/id/853/200/200.jpg?hmac=f4LF-tVBBnJb9PQAVEO8GCTGWgLUnxQLw44rUofE6mQ"
|
|
4745
|
+
photo: "https://fastly.picsum.photos/id/853/200/200.jpg?hmac=f4LF-tVBBnJb9PQAVEO8GCTGWgLUnxQLw44rUofE6mQ"
|
|
4701
4746
|
});
|
|
4702
|
-
```
|
|
4703
4747
|
|
|
4748
|
+
```
|
|
4704
4749
|
</dd>
|
|
4705
4750
|
</dl>
|
|
4706
4751
|
</dd>
|
|
@@ -4714,21 +4759,22 @@ await client.tools.contactCard.upsert({
|
|
|
4714
4759
|
<dl>
|
|
4715
4760
|
<dd>
|
|
4716
4761
|
|
|
4717
|
-
**request:** `Pinnacle.tools.UpsertVcardParams`
|
|
4718
|
-
|
|
4762
|
+
**request:** `Pinnacle.tools.UpsertVcardParams`
|
|
4763
|
+
|
|
4719
4764
|
</dd>
|
|
4720
4765
|
</dl>
|
|
4721
4766
|
|
|
4722
4767
|
<dl>
|
|
4723
4768
|
<dd>
|
|
4724
4769
|
|
|
4725
|
-
**requestOptions:** `ContactCard.RequestOptions`
|
|
4726
|
-
|
|
4770
|
+
**requestOptions:** `ContactCard.RequestOptions`
|
|
4771
|
+
|
|
4727
4772
|
</dd>
|
|
4728
4773
|
</dl>
|
|
4729
4774
|
</dd>
|
|
4730
4775
|
</dl>
|
|
4731
4776
|
|
|
4777
|
+
|
|
4732
4778
|
</dd>
|
|
4733
4779
|
</dl>
|
|
4734
4780
|
</details>
|