rcs-js 1.0.22 → 2.0.0-rc.2
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 +27 -11
- package/dist/cjs/Client.d.ts +31 -27
- package/dist/cjs/Client.js +43 -95
- package/dist/cjs/api/errors/InternalServerError.d.ts +2 -1
- package/dist/cjs/api/errors/NotFoundError.d.ts +9 -0
- package/dist/cjs/api/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/errors/NotImplementedError.d.ts +9 -0
- package/dist/cjs/api/errors/NotImplementedError.js +52 -0
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +2 -1
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/cjs/api/errors/index.d.ts +2 -1
- package/dist/cjs/api/errors/index.js +2 -1
- package/dist/cjs/api/index.d.ts +0 -1
- package/dist/cjs/api/index.js +0 -1
- package/dist/cjs/api/resources/brands/client/Client.d.ts +176 -0
- package/dist/cjs/api/resources/brands/client/Client.js +533 -0
- package/dist/cjs/api/resources/brands/client/requests/AutofillBrandParams.d.ts +29 -0
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.d.ts +15 -0
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +49 -0
- package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.d.ts +59 -0
- package/dist/cjs/api/resources/brands/client/requests/VetBrandParams.d.ts +9 -0
- package/dist/cjs/api/resources/brands/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/brands/index.d.ts +1 -0
- package/dist/cjs/api/resources/brands/index.js +17 -0
- package/dist/cjs/api/resources/campaigns/client/Client.d.ts +28 -0
- package/dist/cjs/api/resources/campaigns/client/Client.js +27 -0
- package/dist/cjs/api/resources/campaigns/index.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/index.js +18 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +158 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +459 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +145 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/index.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/resources/dlc/index.js +17 -0
- package/dist/cjs/api/resources/campaigns/resources/index.d.ts +8 -0
- package/dist/cjs/api/resources/campaigns/resources/index.js +47 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +159 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +457 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +158 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +7 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/index.js +17 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +136 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +440 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/index.js +17 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +58 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +7 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/index.js +17 -0
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/contacts/client/Client.js +288 -0
- package/dist/cjs/api/resources/contacts/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/contacts/client/index.js +17 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +17 -0
- package/dist/cjs/api/resources/contacts/client/requests/CreateContactParams.d.ts +14 -0
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +18 -0
- package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/contacts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/contacts/index.d.ts +1 -0
- package/dist/cjs/api/resources/contacts/index.js +17 -0
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +93 -0
- package/dist/cjs/api/resources/conversations/client/Client.js +288 -0
- package/dist/cjs/api/resources/conversations/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/conversations/client/index.js +17 -0
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +30 -0
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +16 -0
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/conversations/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/conversations/index.d.ts +1 -0
- package/dist/cjs/api/resources/conversations/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +16 -8
- package/dist/cjs/api/resources/index.js +17 -9
- package/dist/cjs/api/resources/message/client/Client.d.ts +22 -0
- package/dist/cjs/api/resources/message/client/Client.js +17 -0
- package/dist/cjs/api/resources/message/client/index.js +2 -0
- package/dist/cjs/api/resources/message/index.d.ts +2 -0
- package/dist/cjs/api/resources/message/index.js +18 -0
- package/dist/cjs/api/resources/message/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/message/resources/index.js +37 -0
- package/dist/cjs/api/resources/message/resources/sms/client/Client.d.ts +52 -0
- package/dist/cjs/api/resources/message/resources/sms/client/Client.js +135 -0
- package/dist/cjs/api/resources/message/resources/sms/client/index.js +2 -0
- package/dist/cjs/api/resources/message/resources/sms/index.d.ts +1 -0
- package/dist/cjs/api/resources/message/resources/sms/index.js +17 -0
- package/dist/cjs/api/resources/messages/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/messages/client/Client.js +222 -0
- package/dist/cjs/api/resources/messages/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/messages/client/index.js +17 -0
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +36 -0
- package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/messages/index.d.ts +2 -0
- package/dist/cjs/api/resources/messages/index.js +18 -0
- package/dist/cjs/api/resources/messages/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/messages/resources/index.js +44 -0
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +136 -0
- package/dist/cjs/api/resources/messages/resources/mms/client/index.js +2 -0
- package/dist/cjs/api/resources/messages/resources/mms/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/mms/index.js +17 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +57 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +140 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/index.js +2 -0
- package/dist/cjs/api/resources/messages/resources/rcs/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/rcs/index.js +17 -0
- package/dist/cjs/api/resources/messages/resources/send/client/Client.d.ts +110 -0
- package/dist/cjs/api/resources/messages/resources/send/client/Client.js +311 -0
- package/dist/cjs/api/resources/messages/resources/send/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/send/client/index.js +17 -0
- package/dist/cjs/api/resources/messages/resources/send/client/requests/Mms.d.ts +66 -0
- package/dist/cjs/api/resources/messages/resources/send/client/requests/Sms.d.ts +38 -0
- package/dist/cjs/api/resources/messages/resources/send/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/send/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/messages/resources/send/index.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/send/index.js +18 -0
- package/dist/cjs/api/resources/messages/resources/send/types/SendMmsResponse.d.ts +5 -0
- package/dist/cjs/api/resources/messages/resources/send/types/SendRcsResponse.d.ts +5 -0
- package/dist/cjs/api/resources/messages/resources/send/types/SendSmsResponse.d.ts +5 -0
- package/dist/cjs/api/resources/messages/resources/send/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/messages/resources/send/types/index.js +19 -0
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +117 -0
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +318 -0
- package/dist/cjs/api/resources/phoneNumbers/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/phoneNumbers/client/index.js +17 -0
- package/dist/cjs/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.ts +19 -0
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.ts +76 -0
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.js +13 -0
- package/dist/cjs/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.ts +76 -0
- package/dist/cjs/api/resources/phoneNumbers/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/phoneNumbers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/phoneNumbers/index.d.ts +3 -0
- package/dist/cjs/api/resources/phoneNumbers/index.js +19 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +73 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +213 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/index.js +17 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +19 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.ts +13 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/index.d.ts +1 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/index.js +17 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/index.js +42 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +80 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +219 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/index.js +2 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/index.d.ts +1 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/index.js +17 -0
- package/dist/cjs/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +5 -0
- package/dist/cjs/api/resources/phoneNumbers/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/phoneNumbers/types/index.js +17 -0
- package/dist/cjs/api/resources/status/client/Client.d.ts +22 -0
- package/dist/cjs/api/resources/status/client/Client.js +17 -0
- package/dist/cjs/api/resources/status/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/status/client/index.js +2 -0
- package/dist/cjs/api/resources/status/index.d.ts +2 -0
- package/dist/cjs/api/resources/status/index.js +18 -0
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +122 -0
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +422 -0
- package/dist/cjs/api/resources/status/resources/get/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/status/resources/get/client/index.js +2 -0
- package/dist/cjs/api/resources/status/resources/get/index.d.ts +1 -0
- package/dist/cjs/api/resources/status/resources/get/index.js +17 -0
- package/dist/cjs/api/resources/status/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/status/resources/index.js +37 -0
- package/dist/cjs/api/resources/tools/client/Client.d.ts +10 -53
- package/dist/cjs/api/resources/tools/client/Client.js +12 -190
- package/dist/cjs/api/resources/tools/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/client/index.js +0 -15
- package/dist/cjs/api/resources/tools/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/index.js +1 -1
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +112 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +248 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +24 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +57 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/contactCard/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +59 -0
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +142 -0
- package/dist/cjs/api/resources/tools/resources/file/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/file/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.d.ts +56 -0
- package/dist/cjs/api/resources/tools/resources/file/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/file/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/file/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/file/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/tools/resources/index.js +45 -0
- package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +92 -0
- package/dist/cjs/api/resources/tools/resources/url/client/Client.js +278 -0
- package/dist/cjs/api/resources/tools/resources/url/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/url/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.ts +18 -0
- package/dist/cjs/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.ts +15 -0
- package/dist/cjs/api/resources/tools/resources/url/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/url/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/url/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/url/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +52 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +135 -0
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.d.ts +13 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/webhooks/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/index.js +17 -0
- package/dist/cjs/api/types/AdvancedPhoneInformation.d.ts +161 -0
- package/dist/cjs/api/types/AdvancedPhoneInformation.js +17 -0
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +22 -0
- package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +42 -0
- package/dist/cjs/api/types/AutofillCampaignParams.d.ts +9 -0
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +104 -0
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +5 -3
- package/dist/cjs/api/types/BasicPhoneInformation.d.ts +53 -0
- package/dist/cjs/api/types/BrandStatus.d.ts +23 -0
- package/dist/cjs/api/types/BrandStatusEnum.d.ts +21 -0
- package/dist/cjs/api/types/BrandStatusEnum.js +14 -0
- package/dist/cjs/api/types/CampaignEnum.d.ts +15 -0
- package/dist/cjs/api/types/CampaignEnum.js +11 -0
- package/dist/cjs/api/types/CampaignQuery.d.ts +12 -0
- package/dist/cjs/api/types/CampaignQuery.js +5 -0
- package/dist/cjs/api/types/CampaignSubmissionResult.d.ts +7 -0
- package/dist/cjs/api/types/CampaignSubmissionResult.js +5 -0
- package/dist/cjs/api/types/CampaignValidationResult.d.ts +22 -0
- package/dist/cjs/api/types/CampaignValidationResult.js +5 -0
- package/dist/cjs/api/types/ClickAction.d.ts +28 -0
- package/dist/cjs/api/types/ClickAction.js +5 -0
- package/dist/cjs/api/types/CompanySectorEnum.d.ts +26 -0
- package/dist/cjs/api/types/CompanySectorEnum.js +25 -0
- package/dist/cjs/api/types/CompanyTypeEnum.d.ts +14 -0
- package/dist/cjs/api/types/CompanyTypeEnum.js +13 -0
- package/dist/cjs/api/types/ConfiguredWebhook.d.ts +35 -0
- package/dist/cjs/api/types/ConfiguredWebhook.js +5 -0
- package/dist/cjs/api/types/Contact.d.ts +17 -0
- package/dist/cjs/api/types/Contact.js +5 -0
- package/dist/cjs/api/types/ContactId.d.ts +7 -0
- package/dist/cjs/api/types/ContactId.js +5 -0
- package/dist/cjs/api/types/Conversation.d.ts +63 -0
- package/dist/cjs/api/types/Conversation.js +5 -0
- package/dist/cjs/api/types/ConversationList.d.ts +14 -0
- package/dist/cjs/api/types/ConversationList.js +5 -0
- package/dist/cjs/api/types/CreateUrlOptions.d.ts +11 -0
- package/dist/cjs/api/types/CreateUrlOptions.js +5 -0
- package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +42 -0
- package/dist/cjs/api/types/DetachedPhoneNumberResult.js +5 -0
- package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +11 -0
- package/dist/cjs/api/types/DetachedWebhookInfo.js +5 -0
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.d.ts +24 -0
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.js +20 -0
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.d.ts +20 -0
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.js +13 -0
- package/dist/cjs/api/types/DlcCampaignStatus.d.ts +55 -0
- package/dist/cjs/api/types/DlcCampaignStatus.js +5 -0
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.d.ts +35 -0
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.js +34 -0
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +116 -0
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.js +5 -0
- package/dist/cjs/api/types/EnhancedContact.d.ts +9 -0
- package/dist/cjs/api/types/EnhancedContact.js +5 -0
- package/dist/cjs/api/types/EnhancedContactItem.d.ts +24 -0
- package/dist/cjs/api/types/EnhancedContactItem.js +5 -0
- package/dist/cjs/api/types/Error_.d.ts +10 -0
- package/dist/cjs/api/types/Error_.js +5 -0
- package/dist/cjs/api/types/ExtendedBrand.d.ts +23 -0
- package/dist/cjs/api/types/ExtendedBrand.js +5 -0
- package/dist/cjs/api/types/ExtendedBrandWithVetting.d.ts +12 -0
- package/dist/cjs/api/types/ExtendedBrandWithVetting.js +5 -0
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +112 -0
- package/dist/cjs/api/types/ExtendedRcsCampaign.js +5 -0
- package/dist/cjs/api/types/GetConversationParams.d.ts +18 -0
- package/dist/cjs/api/types/GetConversationParams.js +5 -0
- package/dist/cjs/api/types/InboundButton.d.ts +11 -0
- package/dist/cjs/api/types/InboundButton.js +5 -0
- package/dist/cjs/api/types/LinkClickEvent.d.ts +107 -0
- package/dist/cjs/api/types/LinkClickEvent.js +5 -0
- package/dist/cjs/api/types/LocationShareAction.d.ts +22 -0
- package/dist/cjs/api/types/LocationShareAction.js +5 -0
- package/dist/cjs/api/types/Message.d.ts +42 -0
- package/dist/cjs/api/types/Message.js +5 -0
- package/dist/cjs/api/types/MessageContent.d.ts +22 -0
- package/dist/cjs/api/types/MessageContent.js +5 -0
- package/dist/cjs/api/types/MessageMethodEnum.d.ts +12 -0
- package/dist/cjs/api/types/MessageMethodEnum.js +11 -0
- package/dist/cjs/api/types/MessageProtocolEnum.d.ts +12 -0
- package/dist/cjs/api/types/MessageProtocolEnum.js +11 -0
- package/dist/cjs/api/types/MessageSchedule.d.ts +20 -0
- package/dist/cjs/api/types/MessageSchedule.js +5 -0
- package/dist/cjs/api/types/MessageStatusEnum.d.ts +16 -0
- package/dist/cjs/api/types/MessageStatusEnum.js +15 -0
- package/dist/cjs/api/types/MessageVolumeEnum.d.ts +20 -0
- package/dist/cjs/api/types/MessageVolumeEnum.js +19 -0
- package/dist/cjs/api/types/MessagingProfileEnum.d.ts +11 -0
- package/dist/cjs/api/types/MessagingProfileEnum.js +10 -0
- package/dist/cjs/api/types/MmsContent.d.ts +16 -0
- package/dist/cjs/api/types/MmsContent.js +5 -0
- package/dist/cjs/api/types/MmsValidationResult.d.ts +41 -0
- package/dist/cjs/api/types/MmsValidationResult.js +5 -0
- package/dist/cjs/api/types/NullableContact.d.ts +16 -0
- package/dist/cjs/api/types/NullableContact.js +5 -0
- package/dist/cjs/api/types/NumberFormat.d.ts +19 -0
- package/dist/cjs/api/types/NumberFormat.js +5 -0
- package/dist/cjs/api/types/OptInMethodEnum.d.ts +13 -0
- package/dist/cjs/api/types/OptInMethodEnum.js +12 -0
- package/dist/cjs/api/types/OptionalBrandInfo.d.ts +23 -0
- package/dist/cjs/api/types/OptionalBrandInfo.js +5 -0
- package/dist/cjs/api/types/OptionalContact.d.ts +13 -0
- package/dist/cjs/api/types/OptionalContact.js +5 -0
- package/dist/cjs/api/types/OptionalContacts.d.ts +16 -0
- package/dist/cjs/api/types/OptionalContacts.js +5 -0
- package/dist/cjs/api/types/PhoneCapabilities.d.ts +14 -0
- package/dist/cjs/api/types/PhoneCapabilities.js +5 -0
- package/dist/cjs/api/types/PhoneEnum.d.ts +13 -0
- package/dist/cjs/api/types/PhoneEnum.js +10 -0
- package/dist/cjs/api/types/PhoneFeatureEnum.d.ts +19 -0
- package/dist/cjs/api/types/PhoneFeatureEnum.js +16 -0
- package/dist/cjs/api/types/PhoneNumberDetails.d.ts +49 -0
- package/dist/cjs/api/types/PhoneNumberDetails.js +5 -0
- package/dist/cjs/api/types/PhoneNumberEnum.d.ts +19 -0
- package/dist/cjs/api/types/PhoneNumberEnum.js +16 -0
- package/dist/cjs/api/types/PhoneNumberStatus.d.ts +21 -0
- package/dist/cjs/api/types/PhoneNumberStatus.js +5 -0
- package/dist/cjs/api/types/PhoneNumberStatusEnum.d.ts +16 -0
- package/dist/cjs/api/types/PhoneNumberStatusEnum.js +11 -0
- package/dist/cjs/api/types/ProfileStatusEnum.d.ts +18 -0
- package/dist/cjs/api/types/ProfileStatusEnum.js +12 -0
- package/dist/cjs/api/types/PurchasedNumber.d.ts +26 -0
- package/dist/cjs/api/types/PurchasedNumber.js +5 -0
- package/dist/cjs/api/types/Rcs.d.ts +14 -0
- package/dist/cjs/api/types/Rcs.js +5 -0
- package/dist/cjs/api/types/RcsBase.d.ts +29 -0
- package/dist/cjs/api/types/RcsBase.js +5 -0
- package/dist/cjs/api/types/RcsButtonCall.d.ts +12 -0
- package/dist/cjs/api/types/RcsButtonCall.js +5 -0
- package/dist/cjs/api/types/RcsButtonContent.d.ts +25 -0
- package/dist/cjs/api/types/RcsButtonContent.js +5 -0
- package/dist/cjs/api/types/RcsButtonOpenUrl.d.ts +12 -0
- package/dist/cjs/api/types/RcsButtonOpenUrl.js +5 -0
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.d.ts +10 -0
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.js +5 -0
- package/dist/cjs/api/types/RcsButtonScheduleEvent.d.ts +18 -0
- package/dist/cjs/api/types/RcsButtonScheduleEvent.js +5 -0
- package/dist/cjs/api/types/RcsButtonSendLocation.d.ts +23 -0
- package/dist/cjs/api/types/RcsButtonSendLocation.js +5 -0
- package/dist/cjs/api/types/RcsButtonTrigger.d.ts +14 -0
- package/dist/cjs/api/types/RcsButtonTrigger.js +5 -0
- package/dist/cjs/api/types/RcsCampaign.d.ts +106 -0
- package/dist/cjs/api/types/RcsCampaign.js +5 -0
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.d.ts +15 -0
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.js +14 -0
- package/dist/cjs/api/types/RcsCampaignStatus.d.ts +22 -0
- package/dist/cjs/api/types/RcsCampaignStatus.js +5 -0
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.d.ts +23 -0
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.js +22 -0
- package/dist/cjs/api/types/RcsCard.d.ts +6 -0
- package/dist/cjs/api/types/RcsCard.js +5 -0
- package/dist/cjs/api/types/RcsCards.d.ts +33 -0
- package/dist/cjs/api/types/RcsCards.js +5 -0
- package/dist/cjs/api/types/RcsCardsContent.d.ts +32 -0
- package/dist/cjs/api/types/RcsCardsContent.js +5 -0
- package/dist/cjs/api/types/RcsContent.d.ts +21 -0
- package/dist/cjs/api/types/RcsContent.js +5 -0
- package/dist/cjs/api/types/RcsMedia.d.ts +14 -0
- package/dist/cjs/api/types/RcsMedia.js +5 -0
- package/dist/cjs/api/types/RcsMediaContent.d.ts +14 -0
- package/dist/cjs/api/types/RcsMediaContent.js +5 -0
- package/dist/cjs/api/types/RcsMediaDetailsContent.d.ts +14 -0
- package/dist/cjs/api/types/RcsMediaDetailsContent.js +5 -0
- package/dist/cjs/api/types/RcsText.d.ts +6 -0
- package/dist/cjs/api/types/RcsText.js +5 -0
- package/dist/cjs/api/types/RcsTextContent.d.ts +13 -0
- package/dist/cjs/api/types/RcsTextContent.js +5 -0
- package/dist/cjs/api/types/RcsValidateContent.d.ts +20 -0
- package/dist/cjs/api/types/RcsValidateContent.js +5 -0
- package/dist/cjs/api/types/RcsValidationResult.d.ts +11 -0
- package/dist/cjs/api/types/RcsValidationResult.js +5 -0
- package/dist/cjs/api/types/ReactionResult.d.ts +9 -0
- package/dist/cjs/api/types/ReactionResult.js +5 -0
- package/dist/cjs/api/types/ScheduledMessaage.d.ts +24 -0
- package/dist/cjs/api/types/ScheduledMessaage.js +5 -0
- package/dist/cjs/api/types/Sender.d.ts +9 -0
- package/dist/cjs/api/types/Sender.js +5 -0
- package/dist/cjs/api/types/SentMmsDetails.d.ts +17 -0
- package/dist/cjs/api/types/SentMmsDetails.js +5 -0
- package/dist/cjs/api/types/SentRcsDetails.d.ts +17 -0
- package/dist/cjs/api/types/SentRcsDetails.js +5 -0
- package/dist/cjs/api/types/SentSmsDetails.d.ts +38 -0
- package/dist/cjs/api/types/SentSmsDetails.js +16 -0
- package/dist/cjs/api/types/ShortenedUrl.d.ts +16 -0
- package/dist/cjs/api/types/ShortenedUrl.js +5 -0
- package/dist/cjs/api/types/ShortenedUrlWithClickData.d.ts +12 -0
- package/dist/cjs/api/types/ShortenedUrlWithClickData.js +5 -0
- package/dist/cjs/api/types/SmsContent.d.ts +10 -0
- package/dist/cjs/api/types/SmsContent.js +5 -0
- package/dist/cjs/api/types/SmsValidationResult.d.ts +59 -0
- package/dist/cjs/api/types/SmsValidationResult.js +5 -0
- package/dist/cjs/api/types/SubUseCaseEnum.d.ts +19 -0
- package/dist/cjs/api/types/SubUseCaseEnum.js +18 -0
- package/dist/cjs/api/types/SubmissionResults.d.ts +7 -0
- package/dist/cjs/api/types/SubmissionResults.js +5 -0
- package/dist/cjs/api/types/SuccessfulConversationUpdate.d.ts +10 -0
- package/dist/cjs/api/types/SuccessfulConversationUpdate.js +5 -0
- package/dist/cjs/api/types/TollFreeCampaign.d.ts +37 -0
- package/dist/cjs/api/types/TollFreeCampaign.js +5 -0
- package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +46 -0
- package/dist/cjs/api/types/TollFreeCampaignStatus.js +5 -0
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.d.ts +52 -0
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.js +51 -0
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.ts +18 -0
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.js +5 -0
- package/dist/cjs/api/types/TollFreeStatusEnum.d.ts +21 -0
- package/dist/cjs/api/types/TollFreeStatusEnum.js +14 -0
- package/dist/cjs/api/types/Tracking.d.ts +15 -0
- package/dist/cjs/api/types/Tracking.js +10 -0
- package/dist/cjs/api/types/UpdatedContactId.d.ts +7 -0
- package/dist/cjs/api/types/UpdatedContactId.js +5 -0
- package/dist/cjs/api/types/UploadResults.d.ts +24 -0
- package/dist/cjs/api/types/UploadResults.js +5 -0
- package/dist/cjs/api/types/VCardData.d.ts +32 -0
- package/dist/cjs/api/types/VCardData.js +5 -0
- package/dist/cjs/api/types/ValidateCampaignParams.d.ts +9 -0
- package/dist/cjs/api/types/ValidateCampaignParams.js +5 -0
- package/dist/cjs/api/types/ValidationErrorDetails.d.ts +11 -0
- package/dist/cjs/api/types/ValidationErrorDetails.js +5 -0
- package/dist/cjs/api/types/ValidationResults.d.ts +10 -0
- package/dist/cjs/api/types/ValidationResults.js +5 -0
- package/dist/cjs/api/types/Vcard.d.ts +73 -0
- package/dist/cjs/api/types/Vcard.js +5 -0
- package/dist/cjs/api/types/VcardAddress.d.ts +38 -0
- package/dist/cjs/api/types/VcardAddress.js +21 -0
- package/dist/cjs/api/types/VcardContent.d.ts +8 -0
- package/dist/cjs/api/types/VcardContent.js +5 -0
- package/dist/cjs/api/types/VcardEmail.d.ts +30 -0
- package/dist/cjs/api/types/VcardEmail.js +27 -0
- package/dist/cjs/api/types/VcardPhone.d.ts +30 -0
- package/dist/cjs/api/types/VcardPhone.js +27 -0
- package/dist/cjs/api/types/VcardResource.d.ts +13 -0
- package/dist/cjs/api/types/VcardResource.js +5 -0
- package/dist/cjs/api/types/VettingFeedback.d.ts +13 -0
- package/dist/cjs/api/types/VettingFeedback.js +5 -0
- package/dist/cjs/api/types/VettingHistory.d.ts +27 -0
- package/dist/cjs/api/types/VettingHistory.js +15 -0
- package/dist/cjs/api/types/VettingResults.d.ts +7 -0
- package/dist/cjs/api/types/VettingResults.js +5 -0
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +12 -0
- package/dist/cjs/api/types/WebhookEventEnum.js +10 -0
- package/dist/cjs/api/types/WebhookResult.d.ts +12 -0
- package/dist/cjs/api/types/WebhookResult.js +5 -0
- package/dist/cjs/api/types/Webhooks.d.ts +14 -0
- package/dist/cjs/api/types/Webhooks.js +5 -0
- package/dist/cjs/api/types/ZodError.d.ts +15 -0
- package/dist/cjs/api/types/ZodError.js +5 -0
- package/dist/cjs/api/types/index.d.ts +125 -25
- package/dist/cjs/api/types/index.js +125 -25
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.js +2 -2
- package/dist/cjs/core/fetcher/index.d.ts +5 -5
- package/dist/cjs/core/fetcher/index.js +5 -5
- package/dist/cjs/core/fetcher/requestWithRetries.js +34 -2
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/environments.d.ts +1 -1
- package/dist/cjs/environments.js +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +31 -27
- package/dist/esm/Client.mjs +43 -95
- package/dist/esm/api/errors/InternalServerError.d.mts +2 -1
- package/dist/esm/api/errors/NotFoundError.d.mts +9 -0
- package/dist/esm/api/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/errors/NotImplementedError.d.mts +9 -0
- package/dist/esm/api/errors/NotImplementedError.mjs +15 -0
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +2 -1
- package/dist/esm/api/errors/UnauthorizedError.d.mts +2 -1
- package/dist/esm/api/errors/index.d.mts +2 -1
- package/dist/esm/api/errors/index.mjs +2 -1
- package/dist/esm/api/index.d.mts +0 -1
- package/dist/esm/api/index.mjs +0 -1
- package/dist/esm/api/resources/brands/client/Client.d.mts +176 -0
- package/dist/esm/api/resources/brands/client/Client.mjs +496 -0
- package/dist/esm/api/resources/brands/client/requests/AutofillBrandParams.d.mts +29 -0
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.d.mts +15 -0
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +49 -0
- package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.d.mts +59 -0
- package/dist/esm/api/resources/brands/client/requests/VetBrandParams.d.mts +9 -0
- package/dist/esm/api/resources/brands/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/brands/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/brands/index.d.mts +1 -0
- package/dist/esm/api/resources/brands/index.mjs +1 -0
- package/dist/esm/api/resources/campaigns/client/Client.d.mts +28 -0
- package/dist/esm/api/resources/campaigns/client/Client.mjs +23 -0
- package/dist/esm/api/resources/campaigns/client/index.d.mts +1 -0
- package/dist/esm/api/resources/campaigns/client/index.mjs +1 -0
- package/dist/esm/api/resources/campaigns/index.d.mts +2 -0
- package/dist/esm/api/resources/campaigns/index.mjs +2 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +158 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +422 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +145 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/index.d.mts +1 -0
- package/dist/esm/api/resources/campaigns/resources/dlc/index.mjs +1 -0
- package/dist/esm/api/resources/campaigns/resources/index.d.mts +8 -0
- package/dist/esm/api/resources/campaigns/resources/index.mjs +8 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +159 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +420 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/index.d.mts +2 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +158 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +7 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/types/index.d.mts +1 -0
- package/dist/esm/api/resources/campaigns/resources/rcs/types/index.mjs +1 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +136 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +403 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/index.d.mts +2 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +58 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +7 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/index.d.mts +1 -0
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/index.mjs +1 -0
- package/dist/esm/api/resources/contacts/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/contacts/client/Client.mjs +251 -0
- package/dist/esm/api/resources/contacts/client/index.d.mts +2 -0
- package/dist/esm/api/resources/contacts/client/index.mjs +1 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +17 -0
- package/dist/esm/api/resources/contacts/client/requests/CreateContactParams.d.mts +14 -0
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +18 -0
- package/dist/esm/api/resources/contacts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/contacts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/contacts/index.d.mts +1 -0
- package/dist/esm/api/resources/contacts/index.mjs +1 -0
- package/dist/esm/api/resources/conversations/client/Client.d.mts +93 -0
- package/dist/esm/api/resources/conversations/client/Client.mjs +251 -0
- package/dist/esm/api/resources/conversations/client/index.d.mts +2 -0
- package/dist/esm/api/resources/conversations/client/index.mjs +1 -0
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +30 -0
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +16 -0
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/conversations/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/conversations/index.d.mts +1 -0
- package/dist/esm/api/resources/conversations/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +16 -8
- package/dist/esm/api/resources/index.mjs +16 -8
- package/dist/esm/api/resources/message/client/Client.d.mts +22 -0
- package/dist/esm/api/resources/message/client/Client.mjs +13 -0
- package/dist/esm/api/resources/message/client/index.d.mts +1 -0
- package/dist/esm/api/resources/message/client/index.mjs +1 -0
- package/dist/esm/api/resources/message/index.d.mts +2 -0
- package/dist/esm/api/resources/message/index.mjs +2 -0
- package/dist/esm/api/resources/message/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/message/resources/index.mjs +1 -0
- package/dist/esm/api/resources/message/resources/sms/client/Client.d.mts +52 -0
- package/dist/esm/api/resources/message/resources/sms/client/Client.mjs +98 -0
- package/dist/esm/api/resources/message/resources/sms/client/index.d.mts +1 -0
- package/dist/esm/api/resources/message/resources/sms/client/index.mjs +1 -0
- package/dist/esm/api/resources/message/resources/sms/index.d.mts +1 -0
- package/dist/esm/api/resources/message/resources/sms/index.mjs +1 -0
- package/dist/esm/api/resources/messages/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/messages/client/Client.mjs +185 -0
- package/dist/esm/api/resources/messages/client/index.d.mts +2 -0
- package/dist/esm/api/resources/messages/client/index.mjs +1 -0
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +36 -0
- package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/messages/index.d.mts +2 -0
- package/dist/esm/api/resources/messages/index.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/messages/resources/index.mjs +5 -0
- package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +99 -0
- package/dist/esm/api/resources/messages/resources/mms/client/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/mms/client/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/mms/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/mms/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +57 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +103 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/rcs/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/rcs/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/send/client/Client.d.mts +110 -0
- package/dist/esm/api/resources/messages/resources/send/client/Client.mjs +274 -0
- package/dist/esm/api/resources/messages/resources/send/client/index.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/send/client/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/send/client/requests/Mms.d.mts +66 -0
- package/dist/esm/api/resources/messages/resources/send/client/requests/Sms.d.mts +38 -0
- package/dist/esm/api/resources/messages/resources/send/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/send/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/send/index.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/send/index.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/send/types/SendMmsResponse.d.mts +5 -0
- package/dist/esm/api/resources/messages/resources/send/types/SendRcsResponse.d.mts +5 -0
- package/dist/esm/api/resources/messages/resources/send/types/SendSmsResponse.d.mts +5 -0
- package/dist/esm/api/resources/messages/resources/send/types/index.d.mts +3 -0
- package/dist/esm/api/resources/messages/resources/send/types/index.mjs +3 -0
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +117 -0
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +281 -0
- package/dist/esm/api/resources/phoneNumbers/client/index.d.mts +2 -0
- package/dist/esm/api/resources/phoneNumbers/client/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.mts +19 -0
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.mts +76 -0
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.mjs +10 -0
- package/dist/esm/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.mts +76 -0
- package/dist/esm/api/resources/phoneNumbers/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/phoneNumbers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/index.d.mts +3 -0
- package/dist/esm/api/resources/phoneNumbers/index.mjs +3 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +73 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +176 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/index.d.mts +2 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +19 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.mts +13 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/index.d.mts +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/phoneNumbers/resources/index.mjs +3 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +80 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +182 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/index.d.mts +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/index.d.mts +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.mts +5 -0
- package/dist/esm/api/resources/phoneNumbers/types/index.d.mts +1 -0
- package/dist/esm/api/resources/phoneNumbers/types/index.mjs +1 -0
- package/dist/esm/api/resources/status/client/Client.d.mts +22 -0
- package/dist/esm/api/resources/status/client/Client.mjs +13 -0
- package/dist/esm/api/resources/status/client/index.d.mts +1 -0
- package/dist/esm/api/resources/status/client/index.mjs +1 -0
- package/dist/esm/api/resources/status/index.d.mts +2 -0
- package/dist/esm/api/resources/status/index.mjs +2 -0
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +122 -0
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +385 -0
- package/dist/esm/api/resources/status/resources/get/client/index.d.mts +1 -0
- package/dist/esm/api/resources/status/resources/get/client/index.mjs +1 -0
- package/dist/esm/api/resources/status/resources/get/index.d.mts +1 -0
- package/dist/esm/api/resources/status/resources/get/index.mjs +1 -0
- package/dist/esm/api/resources/status/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/status/resources/index.mjs +1 -0
- package/dist/esm/api/resources/tools/client/Client.d.mts +10 -53
- package/dist/esm/api/resources/tools/client/Client.mjs +12 -157
- package/dist/esm/api/resources/tools/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/client/index.mjs +1 -1
- package/dist/esm/api/resources/tools/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +112 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +211 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +24 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +57 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/contactCard/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/contactCard/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +59 -0
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +105 -0
- package/dist/esm/api/resources/tools/resources/file/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/file/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.d.mts +56 -0
- package/dist/esm/api/resources/tools/resources/file/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/file/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/file/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/file/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/tools/resources/index.mjs +6 -0
- package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +92 -0
- package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +241 -0
- package/dist/esm/api/resources/tools/resources/url/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/url/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.mts +18 -0
- package/dist/esm/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.mts +15 -0
- package/dist/esm/api/resources/tools/resources/url/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/url/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/url/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/url/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +52 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +98 -0
- package/dist/esm/api/resources/webhooks/client/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.d.mts +13 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/index.mjs +1 -0
- package/dist/esm/api/types/AdvancedPhoneInformation.d.mts +161 -0
- package/dist/esm/api/types/AdvancedPhoneInformation.mjs +14 -0
- package/dist/esm/api/types/AttachWebhookParams.d.mts +22 -0
- package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +42 -0
- package/dist/esm/api/types/AutofillCampaignParams.d.mts +9 -0
- package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +104 -0
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +5 -3
- package/dist/esm/api/types/BasicPhoneInformation.d.mts +53 -0
- package/dist/esm/api/types/BrandStatus.d.mts +23 -0
- package/dist/esm/api/types/BrandStatusEnum.d.mts +21 -0
- package/dist/esm/api/types/BrandStatusEnum.mjs +11 -0
- package/dist/esm/api/types/CampaignEnum.d.mts +15 -0
- package/dist/esm/api/types/CampaignEnum.mjs +8 -0
- package/dist/esm/api/types/CampaignQuery.d.mts +12 -0
- package/dist/esm/api/types/CampaignQuery.mjs +4 -0
- package/dist/esm/api/types/CampaignSubmissionResult.d.mts +7 -0
- package/dist/esm/api/types/CampaignSubmissionResult.mjs +4 -0
- package/dist/esm/api/types/CampaignValidationResult.d.mts +22 -0
- package/dist/esm/api/types/CampaignValidationResult.mjs +4 -0
- package/dist/esm/api/types/ClickAction.d.mts +28 -0
- package/dist/esm/api/types/ClickAction.mjs +4 -0
- package/dist/esm/api/types/CompanySectorEnum.d.mts +26 -0
- package/dist/esm/api/types/CompanySectorEnum.mjs +22 -0
- package/dist/esm/api/types/CompanyTypeEnum.d.mts +14 -0
- package/dist/esm/api/types/CompanyTypeEnum.mjs +10 -0
- package/dist/esm/api/types/ConfiguredWebhook.d.mts +35 -0
- package/dist/esm/api/types/ConfiguredWebhook.mjs +4 -0
- package/dist/esm/api/types/Contact.d.mts +17 -0
- package/dist/esm/api/types/Contact.mjs +4 -0
- package/dist/esm/api/types/ContactId.d.mts +7 -0
- package/dist/esm/api/types/ContactId.mjs +4 -0
- package/dist/esm/api/types/Conversation.d.mts +63 -0
- package/dist/esm/api/types/Conversation.mjs +4 -0
- package/dist/esm/api/types/ConversationList.d.mts +14 -0
- package/dist/esm/api/types/ConversationList.mjs +4 -0
- package/dist/esm/api/types/CreateUrlOptions.d.mts +11 -0
- package/dist/esm/api/types/CreateUrlOptions.mjs +4 -0
- package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +42 -0
- package/dist/esm/api/types/DetachedPhoneNumberResult.mjs +4 -0
- package/dist/esm/api/types/DetachedWebhookInfo.d.mts +11 -0
- package/dist/esm/api/types/DetachedWebhookInfo.mjs +4 -0
- package/dist/esm/api/types/DetailedPhoneNumberEnum.d.mts +24 -0
- package/dist/esm/api/types/DetailedPhoneNumberEnum.mjs +17 -0
- package/dist/esm/api/types/DlcAssignmentStatusEnum.d.mts +20 -0
- package/dist/esm/api/types/DlcAssignmentStatusEnum.mjs +10 -0
- package/dist/esm/api/types/DlcCampaignStatus.d.mts +55 -0
- package/dist/esm/api/types/DlcCampaignStatus.mjs +4 -0
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.d.mts +35 -0
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.mjs +31 -0
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +116 -0
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.mjs +4 -0
- package/dist/esm/api/types/EnhancedContact.d.mts +9 -0
- package/dist/esm/api/types/EnhancedContact.mjs +4 -0
- package/dist/esm/api/types/EnhancedContactItem.d.mts +24 -0
- package/dist/esm/api/types/EnhancedContactItem.mjs +4 -0
- package/dist/esm/api/types/Error_.d.mts +10 -0
- package/dist/esm/api/types/Error_.mjs +4 -0
- package/dist/esm/api/types/ExtendedBrand.d.mts +23 -0
- package/dist/esm/api/types/ExtendedBrand.mjs +4 -0
- package/dist/esm/api/types/ExtendedBrandWithVetting.d.mts +12 -0
- package/dist/esm/api/types/ExtendedBrandWithVetting.mjs +4 -0
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +112 -0
- package/dist/esm/api/types/ExtendedRcsCampaign.mjs +4 -0
- package/dist/esm/api/types/GetConversationParams.d.mts +18 -0
- package/dist/esm/api/types/GetConversationParams.mjs +4 -0
- package/dist/esm/api/types/InboundButton.d.mts +11 -0
- package/dist/esm/api/types/InboundButton.mjs +4 -0
- package/dist/esm/api/types/LinkClickEvent.d.mts +107 -0
- package/dist/esm/api/types/LinkClickEvent.mjs +4 -0
- package/dist/esm/api/types/LocationShareAction.d.mts +22 -0
- package/dist/esm/api/types/LocationShareAction.mjs +4 -0
- package/dist/esm/api/types/Message.d.mts +42 -0
- package/dist/esm/api/types/Message.mjs +4 -0
- package/dist/esm/api/types/MessageContent.d.mts +22 -0
- package/dist/esm/api/types/MessageContent.mjs +4 -0
- package/dist/esm/api/types/MessageMethodEnum.d.mts +12 -0
- package/dist/esm/api/types/MessageMethodEnum.mjs +8 -0
- package/dist/esm/api/types/MessageProtocolEnum.d.mts +12 -0
- package/dist/esm/api/types/MessageProtocolEnum.mjs +8 -0
- package/dist/esm/api/types/MessageSchedule.d.mts +20 -0
- package/dist/esm/api/types/MessageSchedule.mjs +4 -0
- package/dist/esm/api/types/MessageStatusEnum.d.mts +16 -0
- package/dist/esm/api/types/MessageStatusEnum.mjs +12 -0
- package/dist/esm/api/types/MessageVolumeEnum.d.mts +20 -0
- package/dist/esm/api/types/MessageVolumeEnum.mjs +16 -0
- package/dist/esm/api/types/MessagingProfileEnum.d.mts +11 -0
- package/dist/esm/api/types/MessagingProfileEnum.mjs +7 -0
- package/dist/esm/api/types/MmsContent.d.mts +16 -0
- package/dist/esm/api/types/MmsContent.mjs +4 -0
- package/dist/esm/api/types/MmsValidationResult.d.mts +41 -0
- package/dist/esm/api/types/MmsValidationResult.mjs +4 -0
- package/dist/esm/api/types/NullableContact.d.mts +16 -0
- package/dist/esm/api/types/NullableContact.mjs +4 -0
- package/dist/esm/api/types/NumberFormat.d.mts +19 -0
- package/dist/esm/api/types/NumberFormat.mjs +4 -0
- package/dist/esm/api/types/OptInMethodEnum.d.mts +13 -0
- package/dist/esm/api/types/OptInMethodEnum.mjs +9 -0
- package/dist/esm/api/types/OptionalBrandInfo.d.mts +23 -0
- package/dist/esm/api/types/OptionalBrandInfo.mjs +4 -0
- package/dist/esm/api/types/OptionalContact.d.mts +13 -0
- package/dist/esm/api/types/OptionalContact.mjs +4 -0
- package/dist/esm/api/types/OptionalContacts.d.mts +16 -0
- package/dist/esm/api/types/OptionalContacts.mjs +4 -0
- package/dist/esm/api/types/PhoneCapabilities.d.mts +14 -0
- package/dist/esm/api/types/PhoneCapabilities.mjs +4 -0
- package/dist/esm/api/types/PhoneEnum.d.mts +13 -0
- package/dist/esm/api/types/PhoneEnum.mjs +7 -0
- package/dist/esm/api/types/PhoneFeatureEnum.d.mts +19 -0
- package/dist/esm/api/types/PhoneFeatureEnum.mjs +13 -0
- package/dist/esm/api/types/PhoneNumberDetails.d.mts +49 -0
- package/dist/esm/api/types/PhoneNumberDetails.mjs +4 -0
- package/dist/esm/api/types/PhoneNumberEnum.d.mts +19 -0
- package/dist/esm/api/types/PhoneNumberEnum.mjs +13 -0
- package/dist/esm/api/types/PhoneNumberStatus.d.mts +21 -0
- package/dist/esm/api/types/PhoneNumberStatus.mjs +4 -0
- package/dist/esm/api/types/PhoneNumberStatusEnum.d.mts +16 -0
- package/dist/esm/api/types/PhoneNumberStatusEnum.mjs +8 -0
- package/dist/esm/api/types/ProfileStatusEnum.d.mts +18 -0
- package/dist/esm/api/types/ProfileStatusEnum.mjs +9 -0
- package/dist/esm/api/types/PurchasedNumber.d.mts +26 -0
- package/dist/esm/api/types/PurchasedNumber.mjs +4 -0
- package/dist/esm/api/types/Rcs.d.mts +14 -0
- package/dist/esm/api/types/Rcs.mjs +4 -0
- package/dist/esm/api/types/RcsBase.d.mts +29 -0
- package/dist/esm/api/types/RcsBase.mjs +4 -0
- package/dist/esm/api/types/RcsButtonCall.d.mts +12 -0
- package/dist/esm/api/types/RcsButtonCall.mjs +4 -0
- package/dist/esm/api/types/RcsButtonContent.d.mts +25 -0
- package/dist/esm/api/types/RcsButtonContent.mjs +4 -0
- package/dist/esm/api/types/RcsButtonOpenUrl.d.mts +12 -0
- package/dist/esm/api/types/RcsButtonOpenUrl.mjs +4 -0
- package/dist/esm/api/types/RcsButtonRequestUserLocation.d.mts +10 -0
- package/dist/esm/api/types/RcsButtonRequestUserLocation.mjs +4 -0
- package/dist/esm/api/types/RcsButtonScheduleEvent.d.mts +18 -0
- package/dist/esm/api/types/RcsButtonScheduleEvent.mjs +4 -0
- package/dist/esm/api/types/RcsButtonSendLocation.d.mts +23 -0
- package/dist/esm/api/types/RcsButtonSendLocation.mjs +4 -0
- package/dist/esm/api/types/RcsButtonTrigger.d.mts +14 -0
- package/dist/esm/api/types/RcsButtonTrigger.mjs +4 -0
- package/dist/esm/api/types/RcsCampaign.d.mts +106 -0
- package/dist/esm/api/types/RcsCampaign.mjs +4 -0
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.d.mts +15 -0
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.mjs +11 -0
- package/dist/esm/api/types/RcsCampaignStatus.d.mts +22 -0
- package/dist/esm/api/types/RcsCampaignStatus.mjs +4 -0
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.d.mts +23 -0
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.mjs +19 -0
- package/dist/esm/api/types/RcsCard.d.mts +6 -0
- package/dist/esm/api/types/RcsCard.mjs +4 -0
- package/dist/esm/api/types/RcsCards.d.mts +33 -0
- package/dist/esm/api/types/RcsCards.mjs +4 -0
- package/dist/esm/api/types/RcsCardsContent.d.mts +32 -0
- package/dist/esm/api/types/RcsCardsContent.mjs +4 -0
- package/dist/esm/api/types/RcsContent.d.mts +21 -0
- package/dist/esm/api/types/RcsContent.mjs +4 -0
- package/dist/esm/api/types/RcsMedia.d.mts +14 -0
- package/dist/esm/api/types/RcsMedia.mjs +4 -0
- package/dist/esm/api/types/RcsMediaContent.d.mts +14 -0
- package/dist/esm/api/types/RcsMediaContent.mjs +4 -0
- package/dist/esm/api/types/RcsMediaDetailsContent.d.mts +14 -0
- package/dist/esm/api/types/RcsMediaDetailsContent.mjs +4 -0
- package/dist/esm/api/types/RcsText.d.mts +6 -0
- package/dist/esm/api/types/RcsText.mjs +4 -0
- package/dist/esm/api/types/RcsTextContent.d.mts +13 -0
- package/dist/esm/api/types/RcsTextContent.mjs +4 -0
- package/dist/esm/api/types/RcsValidateContent.d.mts +20 -0
- package/dist/esm/api/types/RcsValidateContent.mjs +4 -0
- package/dist/esm/api/types/RcsValidationResult.d.mts +11 -0
- package/dist/esm/api/types/RcsValidationResult.mjs +4 -0
- package/dist/esm/api/types/ReactionResult.d.mts +9 -0
- package/dist/esm/api/types/ReactionResult.mjs +4 -0
- package/dist/esm/api/types/ScheduledMessaage.d.mts +24 -0
- package/dist/esm/api/types/ScheduledMessaage.mjs +4 -0
- package/dist/esm/api/types/Sender.d.mts +9 -0
- package/dist/esm/api/types/Sender.mjs +4 -0
- package/dist/esm/api/types/SentMmsDetails.d.mts +17 -0
- package/dist/esm/api/types/SentMmsDetails.mjs +4 -0
- package/dist/esm/api/types/SentRcsDetails.d.mts +17 -0
- package/dist/esm/api/types/SentRcsDetails.mjs +4 -0
- package/dist/esm/api/types/SentSmsDetails.d.mts +38 -0
- package/dist/esm/api/types/SentSmsDetails.mjs +13 -0
- package/dist/esm/api/types/ShortenedUrl.d.mts +16 -0
- package/dist/esm/api/types/ShortenedUrl.mjs +4 -0
- package/dist/esm/api/types/ShortenedUrlWithClickData.d.mts +12 -0
- package/dist/esm/api/types/ShortenedUrlWithClickData.mjs +4 -0
- package/dist/esm/api/types/SmsContent.d.mts +10 -0
- package/dist/esm/api/types/SmsContent.mjs +4 -0
- package/dist/esm/api/types/SmsValidationResult.d.mts +59 -0
- package/dist/esm/api/types/SmsValidationResult.mjs +4 -0
- package/dist/esm/api/types/SubUseCaseEnum.d.mts +19 -0
- package/dist/esm/api/types/SubUseCaseEnum.mjs +15 -0
- package/dist/esm/api/types/SubmissionResults.d.mts +7 -0
- package/dist/esm/api/types/SubmissionResults.mjs +4 -0
- package/dist/esm/api/types/SuccessfulConversationUpdate.d.mts +10 -0
- package/dist/esm/api/types/SuccessfulConversationUpdate.mjs +4 -0
- package/dist/esm/api/types/TollFreeCampaign.d.mts +37 -0
- package/dist/esm/api/types/TollFreeCampaign.mjs +4 -0
- package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +46 -0
- package/dist/esm/api/types/TollFreeCampaignStatus.mjs +4 -0
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.d.mts +52 -0
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.mjs +48 -0
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.mts +18 -0
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.mjs +4 -0
- package/dist/esm/api/types/TollFreeStatusEnum.d.mts +21 -0
- package/dist/esm/api/types/TollFreeStatusEnum.mjs +11 -0
- package/dist/esm/api/types/Tracking.d.mts +15 -0
- package/dist/esm/api/types/Tracking.mjs +7 -0
- package/dist/esm/api/types/UpdatedContactId.d.mts +7 -0
- package/dist/esm/api/types/UpdatedContactId.mjs +4 -0
- package/dist/esm/api/types/UploadResults.d.mts +24 -0
- package/dist/esm/api/types/UploadResults.mjs +4 -0
- package/dist/esm/api/types/VCardData.d.mts +32 -0
- package/dist/esm/api/types/VCardData.mjs +4 -0
- package/dist/esm/api/types/ValidateCampaignParams.d.mts +9 -0
- package/dist/esm/api/types/ValidateCampaignParams.mjs +4 -0
- package/dist/esm/api/types/ValidationErrorDetails.d.mts +11 -0
- package/dist/esm/api/types/ValidationErrorDetails.mjs +4 -0
- package/dist/esm/api/types/ValidationResults.d.mts +10 -0
- package/dist/esm/api/types/ValidationResults.mjs +4 -0
- package/dist/esm/api/types/Vcard.d.mts +73 -0
- package/dist/esm/api/types/Vcard.mjs +4 -0
- package/dist/esm/api/types/VcardAddress.d.mts +38 -0
- package/dist/esm/api/types/VcardAddress.mjs +18 -0
- package/dist/esm/api/types/VcardContent.d.mts +8 -0
- package/dist/esm/api/types/VcardContent.mjs +4 -0
- package/dist/esm/api/types/VcardEmail.d.mts +30 -0
- package/dist/esm/api/types/VcardEmail.mjs +24 -0
- package/dist/esm/api/types/VcardPhone.d.mts +30 -0
- package/dist/esm/api/types/VcardPhone.mjs +24 -0
- package/dist/esm/api/types/VcardResource.d.mts +13 -0
- package/dist/esm/api/types/VcardResource.mjs +4 -0
- package/dist/esm/api/types/VettingFeedback.d.mts +13 -0
- package/dist/esm/api/types/VettingFeedback.mjs +4 -0
- package/dist/esm/api/types/VettingHistory.d.mts +27 -0
- package/dist/esm/api/types/VettingHistory.mjs +12 -0
- package/dist/esm/api/types/VettingResults.d.mts +7 -0
- package/dist/esm/api/types/VettingResults.mjs +4 -0
- package/dist/esm/api/types/WebhookEventEnum.d.mts +12 -0
- package/dist/esm/api/types/WebhookEventEnum.mjs +7 -0
- package/dist/esm/api/types/WebhookResult.d.mts +12 -0
- package/dist/esm/api/types/WebhookResult.mjs +4 -0
- package/dist/esm/api/types/Webhooks.d.mts +14 -0
- package/dist/esm/api/types/Webhooks.mjs +4 -0
- package/dist/esm/api/types/ZodError.d.mts +15 -0
- package/dist/esm/api/types/ZodError.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +125 -25
- package/dist/esm/api/types/index.mjs +125 -25
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -2
- package/dist/esm/core/fetcher/index.d.mts +5 -5
- package/dist/esm/core/fetcher/index.mjs +2 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +34 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/environments.d.mts +1 -1
- package/dist/esm/environments.mjs +1 -1
- package/dist/esm/index.d.mts +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3328 -66
- package/dist/cjs/api/client/index.d.ts +0 -1
- package/dist/cjs/api/client/requests/GetRcsFunctionalityRequest.d.ts +0 -13
- package/dist/cjs/api/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/errors/ForbiddenError.d.ts +0 -8
- package/dist/cjs/api/errors/ForbiddenError.js +0 -52
- package/dist/cjs/api/resources/company/client/Client.d.ts +0 -81
- package/dist/cjs/api/resources/company/client/Client.js +0 -274
- package/dist/cjs/api/resources/company/client/requests/CompanyGetRequest.d.ts +0 -17
- package/dist/cjs/api/resources/company/client/requests/CompanyUpdateRequest.d.ts +0 -17
- package/dist/cjs/api/resources/company/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/company/types/CompanyRegisterRequest.d.ts +0 -19
- package/dist/cjs/api/resources/company/types/CompanyRegisterResponse.d.ts +0 -12
- package/dist/cjs/api/resources/company/types/CompanyUpdateResponse.d.ts +0 -12
- package/dist/cjs/api/resources/company/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/company/types/index.js +0 -19
- package/dist/cjs/api/resources/send/client/Client.d.ts +0 -97
- package/dist/cjs/api/resources/send/client/Client.js +0 -294
- package/dist/cjs/api/resources/send/client/requests/Rcs.d.ts +0 -62
- package/dist/cjs/api/resources/send/client/requests/SendMmsRequest.d.ts +0 -23
- package/dist/cjs/api/resources/send/client/requests/SendSmsRequest.d.ts +0 -21
- package/dist/cjs/api/resources/send/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/send/types/SendMmsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/send/types/SendRcsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/send/types/SendSmsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/send/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/send/types/index.js +0 -19
- package/dist/cjs/api/resources/tools/client/requests/ToolsShortenUrlRequest.d.ts +0 -15
- package/dist/cjs/api/resources/tools/client/requests/ToolsUploadUrlRequest.d.ts +0 -23
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/tools/types/ToolsShortenUrlResponse.d.ts +0 -9
- package/dist/cjs/api/resources/tools/types/ToolsUploadUrlResponse.d.ts +0 -9
- package/dist/cjs/api/resources/tools/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/tools/types/index.js +0 -18
- package/dist/cjs/api/types/Action.d.ts +0 -46
- package/dist/cjs/api/types/Action.js +0 -17
- package/dist/cjs/api/types/AdditionalEmail.d.ts +0 -9
- package/dist/cjs/api/types/AdditionalPhoneNumber.d.ts +0 -9
- package/dist/cjs/api/types/AdditionalWebsite.d.ts +0 -9
- package/dist/cjs/api/types/Card.d.ts +0 -14
- package/dist/cjs/api/types/Company.d.ts +0 -97
- package/dist/cjs/api/types/CompanyCategory.d.ts +0 -20
- package/dist/cjs/api/types/CompanyCategory.js +0 -22
- package/dist/cjs/api/types/CompanyContact.d.ts +0 -21
- package/dist/cjs/api/types/CompanyDetails.d.ts +0 -22
- package/dist/cjs/api/types/ForbiddenErrorBody.d.ts +0 -6
- package/dist/cjs/api/types/InboundActionMessage.d.ts +0 -19
- package/dist/cjs/api/types/InboundLocationMessage.d.ts +0 -21
- package/dist/cjs/api/types/InboundMediaMessage.d.ts +0 -18
- package/dist/cjs/api/types/InboundMessage.d.ts +0 -23
- package/dist/cjs/api/types/InboundMessage.js +0 -15
- package/dist/cjs/api/types/InboundTextMessage.d.ts +0 -17
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -6
- package/dist/cjs/api/types/MediaPayload.d.ts +0 -7
- package/dist/cjs/api/types/MessageMetadata.d.ts +0 -6
- package/dist/cjs/api/types/Messaging.d.ts +0 -15
- package/dist/cjs/api/types/Optionals.d.ts +0 -13
- package/dist/cjs/api/types/PaymentRequiredErrorBody.d.ts +0 -6
- package/dist/cjs/api/types/PointOfContact.d.ts +0 -11
- package/dist/cjs/api/types/RcsFunctionalities.d.ts +0 -21
- package/dist/cjs/api/types/SenderMetadata.d.ts +0 -8
- package/dist/cjs/api/types/UnauthorizedErrorBody.d.ts +0 -6
- package/dist/cjs/wrapper/PinnacleClient.d.ts +0 -17
- package/dist/cjs/wrapper/PinnacleClient.js +0 -64
- package/dist/esm/api/client/requests/GetRcsFunctionalityRequest.d.mts +0 -13
- package/dist/esm/api/client/requests/index.d.mts +0 -1
- package/dist/esm/api/errors/ForbiddenError.d.mts +0 -8
- package/dist/esm/api/errors/ForbiddenError.mjs +0 -15
- package/dist/esm/api/resources/company/client/Client.d.mts +0 -81
- package/dist/esm/api/resources/company/client/Client.mjs +0 -237
- package/dist/esm/api/resources/company/client/requests/CompanyGetRequest.d.mts +0 -17
- package/dist/esm/api/resources/company/client/requests/CompanyUpdateRequest.d.mts +0 -17
- package/dist/esm/api/resources/company/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/company/types/CompanyRegisterRequest.d.mts +0 -19
- package/dist/esm/api/resources/company/types/CompanyRegisterResponse.d.mts +0 -12
- package/dist/esm/api/resources/company/types/CompanyUpdateResponse.d.mts +0 -12
- package/dist/esm/api/resources/company/types/index.d.mts +0 -3
- package/dist/esm/api/resources/company/types/index.mjs +0 -3
- package/dist/esm/api/resources/send/client/Client.d.mts +0 -97
- package/dist/esm/api/resources/send/client/Client.mjs +0 -257
- package/dist/esm/api/resources/send/client/requests/Rcs.d.mts +0 -62
- package/dist/esm/api/resources/send/client/requests/SendMmsRequest.d.mts +0 -23
- package/dist/esm/api/resources/send/client/requests/SendSmsRequest.d.mts +0 -21
- package/dist/esm/api/resources/send/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/send/types/SendMmsResponse.d.mts +0 -9
- package/dist/esm/api/resources/send/types/SendRcsResponse.d.mts +0 -9
- package/dist/esm/api/resources/send/types/SendSmsResponse.d.mts +0 -9
- package/dist/esm/api/resources/send/types/index.d.mts +0 -3
- package/dist/esm/api/resources/send/types/index.mjs +0 -3
- package/dist/esm/api/resources/tools/client/requests/ToolsShortenUrlRequest.d.mts +0 -15
- package/dist/esm/api/resources/tools/client/requests/ToolsUploadUrlRequest.d.mts +0 -23
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/tools/types/ToolsShortenUrlResponse.d.mts +0 -9
- package/dist/esm/api/resources/tools/types/ToolsUploadUrlResponse.d.mts +0 -9
- package/dist/esm/api/resources/tools/types/index.d.mts +0 -2
- package/dist/esm/api/resources/tools/types/index.mjs +0 -2
- package/dist/esm/api/types/Action.d.mts +0 -46
- package/dist/esm/api/types/Action.mjs +0 -14
- package/dist/esm/api/types/AdditionalEmail.d.mts +0 -9
- package/dist/esm/api/types/AdditionalPhoneNumber.d.mts +0 -9
- package/dist/esm/api/types/AdditionalWebsite.d.mts +0 -9
- package/dist/esm/api/types/Card.d.mts +0 -14
- package/dist/esm/api/types/Company.d.mts +0 -97
- package/dist/esm/api/types/CompanyCategory.d.mts +0 -20
- package/dist/esm/api/types/CompanyCategory.mjs +0 -19
- package/dist/esm/api/types/CompanyContact.d.mts +0 -21
- package/dist/esm/api/types/CompanyDetails.d.mts +0 -22
- package/dist/esm/api/types/ForbiddenErrorBody.d.mts +0 -6
- package/dist/esm/api/types/InboundActionMessage.d.mts +0 -19
- package/dist/esm/api/types/InboundLocationMessage.d.mts +0 -21
- package/dist/esm/api/types/InboundMediaMessage.d.mts +0 -18
- package/dist/esm/api/types/InboundMessage.d.mts +0 -23
- package/dist/esm/api/types/InboundMessage.mjs +0 -12
- package/dist/esm/api/types/InboundTextMessage.d.mts +0 -17
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -6
- package/dist/esm/api/types/MediaPayload.d.mts +0 -7
- package/dist/esm/api/types/MessageMetadata.d.mts +0 -6
- package/dist/esm/api/types/Messaging.d.mts +0 -15
- package/dist/esm/api/types/Optionals.d.mts +0 -13
- package/dist/esm/api/types/PaymentRequiredErrorBody.d.mts +0 -6
- package/dist/esm/api/types/PointOfContact.d.mts +0 -11
- package/dist/esm/api/types/RcsFunctionalities.d.mts +0 -21
- package/dist/esm/api/types/SenderMetadata.d.mts +0 -8
- package/dist/esm/api/types/UnauthorizedErrorBody.d.mts +0 -6
- package/dist/esm/wrapper/PinnacleClient.d.mts +0 -17
- package/dist/esm/wrapper/PinnacleClient.mjs +0 -60
- /package/dist/cjs/api/resources/{company → brands}/client/index.d.ts +0 -0
- /package/dist/cjs/api/{client → resources/brands/client}/index.js +0 -0
- /package/dist/cjs/api/{client/requests/GetRcsFunctionalityRequest.js → resources/brands/client/requests/AutofillBrandParams.js} +0 -0
- /package/dist/cjs/api/resources/{company/client/requests/CompanyGetRequest.js → brands/client/requests/BrandsGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{company/client/requests/CompanyUpdateRequest.js → brands/client/requests/UpsertBrandParams.js} +0 -0
- /package/dist/cjs/api/resources/{company/types/CompanyRegisterRequest.js → brands/client/requests/ValidateBrandParams.js} +0 -0
- /package/dist/cjs/api/resources/{company/types/CompanyRegisterResponse.js → brands/client/requests/VetBrandParams.js} +0 -0
- /package/dist/cjs/api/{client → resources/brands/client}/requests/index.js +0 -0
- /package/dist/{esm/api/client/requests/index.mjs → cjs/api/resources/campaigns/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{company/client/requests → campaigns/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{send → campaigns/resources/dlc}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{company → campaigns/resources/dlc}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{company/types/CompanyUpdateResponse.js → campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.js} +0 -0
- /package/dist/cjs/api/resources/{send → campaigns/resources/dlc}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{send → campaigns/resources/rcs}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{send/client/requests/Rcs.js → campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.js} +0 -0
- /package/dist/cjs/api/resources/{tools → campaigns/resources/rcs}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{company → campaigns/resources/rcs}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{company → campaigns/resources/rcs}/index.js +0 -0
- /package/dist/cjs/api/resources/{send/client/requests/SendMmsRequest.js → campaigns/resources/rcs/types/RcsAutofillResponse.js} +0 -0
- /package/dist/cjs/api/resources/{send/client/requests/SendSmsRequest.js → campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.js} +0 -0
- /package/dist/cjs/api/resources/{send → campaigns/resources/tollFree}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{send → campaigns/resources/tollFree}/index.js +0 -0
- /package/dist/cjs/api/resources/{send/types/SendMmsResponse.js → campaigns/resources/tollFree/types/TollFreeAutofillResponse.js} +0 -0
- /package/dist/cjs/api/resources/{send/types/SendRcsResponse.js → contacts/client/requests/ContactsGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{send/types/SendSmsResponse.js → contacts/client/requests/CreateContactParams.js} +0 -0
- /package/dist/cjs/api/resources/{tools/client/requests/ToolsShortenUrlRequest.js → contacts/client/requests/UpdateContactParams.js} +0 -0
- /package/dist/cjs/api/resources/{tools/client/requests/ToolsUploadUrlRequest.js → conversations/client/requests/ListConversationsParams.js} +0 -0
- /package/dist/cjs/api/resources/{tools/types/ToolsShortenUrlResponse.js → conversations/client/requests/UpdateConversationParams.js} +0 -0
- /package/dist/{esm/api/resources/company/client/requests/index.mjs → cjs/api/resources/message/client/index.d.ts} +0 -0
- /package/dist/{esm/api/resources/send/client/requests/index.mjs → cjs/api/resources/message/resources/sms/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{tools/types/ToolsUploadUrlResponse.js → messages/client/requests/ReactMessageParams.js} +0 -0
- /package/dist/{esm/api/resources/tools/client/requests/index.mjs → cjs/api/resources/messages/resources/mms/client/index.d.ts} +0 -0
- /package/dist/cjs/api/{types/AdditionalEmail.js → resources/messages/resources/send/client/requests/Mms.js} +0 -0
- /package/dist/cjs/api/{types/AdditionalPhoneNumber.js → resources/messages/resources/send/client/requests/Sms.js} +0 -0
- /package/dist/cjs/api/{types/AdditionalWebsite.js → resources/messages/resources/send/types/SendMmsResponse.js} +0 -0
- /package/dist/cjs/api/{types/Card.js → resources/messages/resources/send/types/SendRcsResponse.js} +0 -0
- /package/dist/cjs/api/{types/Company.js → resources/messages/resources/send/types/SendSmsResponse.js} +0 -0
- /package/dist/cjs/api/{types/CompanyContact.js → resources/phoneNumbers/client/requests/BuyPhoneNumberParams.js} +0 -0
- /package/dist/cjs/api/{types/CompanyDetails.js → resources/phoneNumbers/client/requests/SearchPhoneNumberParams.js} +0 -0
- /package/dist/cjs/api/{types/ForbiddenErrorBody.js → resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.js} +0 -0
- /package/dist/cjs/api/{types/InboundActionMessage.js → resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.js} +0 -0
- /package/dist/cjs/api/{types/InboundLocationMessage.js → resources/phoneNumbers/types/PhoneNumbersGetResponse.js} +0 -0
- /package/dist/cjs/api/{types/InboundMediaMessage.js → resources/tools/resources/contactCard/client/requests/GetVcardParams.js} +0 -0
- /package/dist/cjs/api/{types/InboundTextMessage.js → resources/tools/resources/contactCard/client/requests/UpsertVcardParams.js} +0 -0
- /package/dist/cjs/api/{types/InternalServerErrorBody.js → resources/tools/resources/file/client/requests/UploadFileParams.js} +0 -0
- /package/dist/cjs/api/{types/MediaPayload.js → resources/tools/resources/url/client/requests/CreateUrlParams.js} +0 -0
- /package/dist/cjs/api/{types/MessageMetadata.js → resources/tools/resources/url/client/requests/UpdateUrlParams.js} +0 -0
- /package/dist/cjs/api/{types/Messaging.js → resources/webhooks/client/requests/GetWebhookParams.js} +0 -0
- /package/dist/cjs/api/types/{Optionals.js → AttachWebhookParams.js} +0 -0
- /package/dist/cjs/api/types/{PaymentRequiredErrorBody.js → AttachedPhoneNumberResult.js} +0 -0
- /package/dist/cjs/api/types/{PointOfContact.js → AutofillCampaignParams.js} +0 -0
- /package/dist/cjs/api/types/{RcsFunctionalities.js → AutofillDlcCampaignResponse.js} +0 -0
- /package/dist/cjs/api/types/{SenderMetadata.js → BasicPhoneInformation.js} +0 -0
- /package/dist/cjs/api/types/{UnauthorizedErrorBody.js → BrandStatus.js} +0 -0
- /package/dist/esm/api/resources/{company → brands}/client/index.d.mts +0 -0
- /package/dist/esm/api/{client → resources/brands/client}/index.mjs +0 -0
- /package/dist/esm/api/{client/requests/GetRcsFunctionalityRequest.mjs → resources/brands/client/requests/AutofillBrandParams.mjs} +0 -0
- /package/dist/esm/api/resources/{company/client/requests/CompanyGetRequest.mjs → brands/client/requests/BrandsGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{company/client/requests/CompanyUpdateRequest.mjs → brands/client/requests/UpsertBrandParams.mjs} +0 -0
- /package/dist/esm/api/resources/{company/types/CompanyRegisterRequest.mjs → brands/client/requests/ValidateBrandParams.mjs} +0 -0
- /package/dist/esm/api/resources/{company/types/CompanyRegisterResponse.mjs → brands/client/requests/VetBrandParams.mjs} +0 -0
- /package/dist/esm/api/resources/{send → campaigns/resources/dlc}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{company → campaigns/resources/dlc}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{company/types/CompanyUpdateResponse.mjs → campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.mjs} +0 -0
- /package/dist/esm/api/resources/{send → campaigns/resources/rcs}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{send/client/requests/Rcs.mjs → campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.mjs} +0 -0
- /package/dist/esm/api/resources/{company → campaigns/resources/rcs}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{company → campaigns/resources/rcs}/index.mjs +0 -0
- /package/dist/esm/api/resources/{send/client/requests/SendMmsRequest.mjs → campaigns/resources/rcs/types/RcsAutofillResponse.mjs} +0 -0
- /package/dist/esm/api/{client/index.d.mts → resources/campaigns/resources/tollFree/client/index.mjs} +0 -0
- /package/dist/esm/api/resources/{send/client/requests/SendSmsRequest.mjs → campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.mjs} +0 -0
- /package/dist/esm/api/resources/{send → campaigns/resources/tollFree}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{send → campaigns/resources/tollFree}/index.mjs +0 -0
- /package/dist/esm/api/resources/{send/types/SendMmsResponse.mjs → campaigns/resources/tollFree/types/TollFreeAutofillResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{send/types/SendRcsResponse.mjs → contacts/client/requests/ContactsGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{send/types/SendSmsResponse.mjs → contacts/client/requests/CreateContactParams.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/client/requests/ToolsShortenUrlRequest.mjs → contacts/client/requests/UpdateContactParams.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/client/requests/ToolsUploadUrlRequest.mjs → conversations/client/requests/ListConversationsParams.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/types/ToolsShortenUrlResponse.mjs → conversations/client/requests/UpdateConversationParams.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/types/ToolsUploadUrlResponse.mjs → messages/client/requests/ReactMessageParams.mjs} +0 -0
- /package/dist/esm/api/{types/AdditionalEmail.mjs → resources/messages/resources/send/client/requests/Mms.mjs} +0 -0
- /package/dist/esm/api/{types/AdditionalPhoneNumber.mjs → resources/messages/resources/send/client/requests/Sms.mjs} +0 -0
- /package/dist/esm/api/{types/AdditionalWebsite.mjs → resources/messages/resources/send/types/SendMmsResponse.mjs} +0 -0
- /package/dist/esm/api/{types/Card.mjs → resources/messages/resources/send/types/SendRcsResponse.mjs} +0 -0
- /package/dist/esm/api/{types/Company.mjs → resources/messages/resources/send/types/SendSmsResponse.mjs} +0 -0
- /package/dist/esm/api/{types/CompanyContact.mjs → resources/phoneNumbers/client/requests/BuyPhoneNumberParams.mjs} +0 -0
- /package/dist/esm/api/{types/CompanyDetails.mjs → resources/phoneNumbers/client/requests/SearchPhoneNumberParams.mjs} +0 -0
- /package/dist/esm/api/{types/ForbiddenErrorBody.mjs → resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.mjs} +0 -0
- /package/dist/esm/api/{types/InboundActionMessage.mjs → resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.mjs} +0 -0
- /package/dist/esm/api/{types/InboundLocationMessage.mjs → resources/phoneNumbers/types/PhoneNumbersGetResponse.mjs} +0 -0
- /package/dist/esm/api/{types/InboundMediaMessage.mjs → resources/tools/resources/contactCard/client/requests/GetVcardParams.mjs} +0 -0
- /package/dist/esm/api/{types/InboundTextMessage.mjs → resources/tools/resources/contactCard/client/requests/UpsertVcardParams.mjs} +0 -0
- /package/dist/esm/api/{types/InternalServerErrorBody.mjs → resources/tools/resources/file/client/requests/UploadFileParams.mjs} +0 -0
- /package/dist/esm/api/{types/MediaPayload.mjs → resources/tools/resources/url/client/requests/CreateUrlParams.mjs} +0 -0
- /package/dist/esm/api/{types/MessageMetadata.mjs → resources/tools/resources/url/client/requests/UpdateUrlParams.mjs} +0 -0
- /package/dist/esm/api/{types/Messaging.mjs → resources/webhooks/client/requests/GetWebhookParams.mjs} +0 -0
- /package/dist/esm/api/types/{Optionals.mjs → AttachWebhookParams.mjs} +0 -0
- /package/dist/esm/api/types/{PaymentRequiredErrorBody.mjs → AttachedPhoneNumberResult.mjs} +0 -0
- /package/dist/esm/api/types/{PointOfContact.mjs → AutofillCampaignParams.mjs} +0 -0
- /package/dist/esm/api/types/{RcsFunctionalities.mjs → AutofillDlcCampaignResponse.mjs} +0 -0
- /package/dist/esm/api/types/{SenderMetadata.mjs → BasicPhoneInformation.mjs} +0 -0
- /package/dist/esm/api/types/{UnauthorizedErrorBody.mjs → BrandStatus.mjs} +0 -0
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
+
import * as Pinnacle from "../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
+
export class Rcs {
|
|
19
|
+
constructor(_options) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Generate campaign details based off existing campaign and the brand it's connected to.
|
|
24
|
+
*
|
|
25
|
+
* @param {Pinnacle.AutofillCampaignParams} request
|
|
26
|
+
* @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
29
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
30
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.campaigns.rcs.autofill({
|
|
34
|
+
* additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
|
|
35
|
+
* campaignId: 161
|
|
36
|
+
* })
|
|
37
|
+
*/
|
|
38
|
+
autofill(request, requestOptions) {
|
|
39
|
+
return core.HttpResponsePromise.fromPromise(this.__autofill(request, requestOptions));
|
|
40
|
+
}
|
|
41
|
+
__autofill(request, requestOptions) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a, _b, _c;
|
|
44
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
45
|
+
const _response = yield core.fetcher({
|
|
46
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "campaigns/rcs/autofill"),
|
|
47
|
+
method: "POST",
|
|
48
|
+
headers: _headers,
|
|
49
|
+
contentType: "application/json",
|
|
50
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
51
|
+
requestType: "json",
|
|
52
|
+
body: request,
|
|
53
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
54
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
55
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
56
|
+
});
|
|
57
|
+
if (_response.ok) {
|
|
58
|
+
return {
|
|
59
|
+
data: _response.body,
|
|
60
|
+
rawResponse: _response.rawResponse,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (_response.error.reason === "status-code") {
|
|
64
|
+
switch (_response.error.statusCode) {
|
|
65
|
+
case 400:
|
|
66
|
+
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
67
|
+
case 401:
|
|
68
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
69
|
+
case 500:
|
|
70
|
+
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
71
|
+
default:
|
|
72
|
+
throw new errors.PinnacleError({
|
|
73
|
+
statusCode: _response.error.statusCode,
|
|
74
|
+
body: _response.error.body,
|
|
75
|
+
rawResponse: _response.rawResponse,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
switch (_response.error.reason) {
|
|
80
|
+
case "non-json":
|
|
81
|
+
throw new errors.PinnacleError({
|
|
82
|
+
statusCode: _response.error.statusCode,
|
|
83
|
+
body: _response.error.rawBody,
|
|
84
|
+
rawResponse: _response.rawResponse,
|
|
85
|
+
});
|
|
86
|
+
case "timeout":
|
|
87
|
+
throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /campaigns/rcs/autofill.");
|
|
88
|
+
case "unknown":
|
|
89
|
+
throw new errors.PinnacleError({
|
|
90
|
+
message: _response.error.errorMessage,
|
|
91
|
+
rawResponse: _response.rawResponse,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Retrieve RCS campaign.
|
|
98
|
+
*
|
|
99
|
+
* @param {number} campaignId - Unique identifier of the RCS campaign.
|
|
100
|
+
* @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
103
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
104
|
+
* @throws {@link Pinnacle.NotFoundError}
|
|
105
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* await client.campaigns.rcs.get(161)
|
|
109
|
+
*/
|
|
110
|
+
get(campaignId, requestOptions) {
|
|
111
|
+
return core.HttpResponsePromise.fromPromise(this.__get(campaignId, requestOptions));
|
|
112
|
+
}
|
|
113
|
+
__get(campaignId, requestOptions) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
var _a, _b, _c;
|
|
116
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
117
|
+
const _response = yield core.fetcher({
|
|
118
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `campaigns/rcs/${encodeURIComponent(campaignId)}`),
|
|
119
|
+
method: "GET",
|
|
120
|
+
headers: _headers,
|
|
121
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
122
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
123
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
124
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
125
|
+
});
|
|
126
|
+
if (_response.ok) {
|
|
127
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
128
|
+
}
|
|
129
|
+
if (_response.error.reason === "status-code") {
|
|
130
|
+
switch (_response.error.statusCode) {
|
|
131
|
+
case 400:
|
|
132
|
+
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
133
|
+
case 401:
|
|
134
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
135
|
+
case 404:
|
|
136
|
+
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
137
|
+
case 500:
|
|
138
|
+
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
139
|
+
default:
|
|
140
|
+
throw new errors.PinnacleError({
|
|
141
|
+
statusCode: _response.error.statusCode,
|
|
142
|
+
body: _response.error.body,
|
|
143
|
+
rawResponse: _response.rawResponse,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
switch (_response.error.reason) {
|
|
148
|
+
case "non-json":
|
|
149
|
+
throw new errors.PinnacleError({
|
|
150
|
+
statusCode: _response.error.statusCode,
|
|
151
|
+
body: _response.error.rawBody,
|
|
152
|
+
rawResponse: _response.rawResponse,
|
|
153
|
+
});
|
|
154
|
+
case "timeout":
|
|
155
|
+
throw new errors.PinnacleTimeoutError("Timeout exceeded when calling GET /campaigns/rcs/{campaignId}.");
|
|
156
|
+
case "unknown":
|
|
157
|
+
throw new errors.PinnacleError({
|
|
158
|
+
message: _response.error.errorMessage,
|
|
159
|
+
rawResponse: _response.rawResponse,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Submit your RCS campaign for approval and activation with carriers.
|
|
166
|
+
*
|
|
167
|
+
* @param {number} campaignId - Unique identifier of the RCS campaign to retrieve.
|
|
168
|
+
* @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
|
|
169
|
+
*
|
|
170
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
171
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
172
|
+
* @throws {@link Pinnacle.NotFoundError}
|
|
173
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* await client.campaigns.rcs.submit(161)
|
|
177
|
+
*/
|
|
178
|
+
submit(campaignId, requestOptions) {
|
|
179
|
+
return core.HttpResponsePromise.fromPromise(this.__submit(campaignId, requestOptions));
|
|
180
|
+
}
|
|
181
|
+
__submit(campaignId, requestOptions) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
var _a, _b, _c;
|
|
184
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
185
|
+
const _response = yield core.fetcher({
|
|
186
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `campaigns/rcs/submit/${encodeURIComponent(campaignId)}`),
|
|
187
|
+
method: "POST",
|
|
188
|
+
headers: _headers,
|
|
189
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
190
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
191
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
192
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
193
|
+
});
|
|
194
|
+
if (_response.ok) {
|
|
195
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
196
|
+
}
|
|
197
|
+
if (_response.error.reason === "status-code") {
|
|
198
|
+
switch (_response.error.statusCode) {
|
|
199
|
+
case 400:
|
|
200
|
+
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
201
|
+
case 401:
|
|
202
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
203
|
+
case 404:
|
|
204
|
+
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
205
|
+
case 500:
|
|
206
|
+
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
207
|
+
default:
|
|
208
|
+
throw new errors.PinnacleError({
|
|
209
|
+
statusCode: _response.error.statusCode,
|
|
210
|
+
body: _response.error.body,
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
switch (_response.error.reason) {
|
|
216
|
+
case "non-json":
|
|
217
|
+
throw new errors.PinnacleError({
|
|
218
|
+
statusCode: _response.error.statusCode,
|
|
219
|
+
body: _response.error.rawBody,
|
|
220
|
+
rawResponse: _response.rawResponse,
|
|
221
|
+
});
|
|
222
|
+
case "timeout":
|
|
223
|
+
throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /campaigns/rcs/submit/{campaignId}.");
|
|
224
|
+
case "unknown":
|
|
225
|
+
throw new errors.PinnacleError({
|
|
226
|
+
message: _response.error.errorMessage,
|
|
227
|
+
rawResponse: _response.rawResponse,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Create a new RCS campaign or updates an existing one. <br>
|
|
234
|
+
*
|
|
235
|
+
* Omit campaignId to create a campaign.
|
|
236
|
+
*
|
|
237
|
+
* @param {Pinnacle.campaigns.UpsertRcsCampaignParams} request
|
|
238
|
+
* @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
|
|
239
|
+
*
|
|
240
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
241
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
242
|
+
* @throws {@link Pinnacle.NotFoundError}
|
|
243
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* await client.campaigns.rcs.upsert({
|
|
247
|
+
* agent: {
|
|
248
|
+
* color: "#000000",
|
|
249
|
+
* description: "Engaging campaigns with RBM \u2013 next-gen SMS marketing with rich content and better analytics.",
|
|
250
|
+
* emails: [{
|
|
251
|
+
* email: "founders@trypinnacle.app",
|
|
252
|
+
* label: "Email Us"
|
|
253
|
+
* }],
|
|
254
|
+
* heroUrl: "https://agent-logos.storage.googleapis.com/_/m0bk9mmw7kfynqiKSPfsaoc6",
|
|
255
|
+
* iconUrl: "https://agent-logos.storage.googleapis.com/_/m0bk9gvlDunZEw1krfruZmw3",
|
|
256
|
+
* name: "Pinnacle Software Development",
|
|
257
|
+
* phones: [{
|
|
258
|
+
* label: "Contact us directly",
|
|
259
|
+
* phone: "+14154467821"
|
|
260
|
+
* }],
|
|
261
|
+
* websites: [{
|
|
262
|
+
* label: "Get started with Pinnacle",
|
|
263
|
+
* url: "https://www.trypinnacle.app/"
|
|
264
|
+
* }]
|
|
265
|
+
* },
|
|
266
|
+
* brand: 2,
|
|
267
|
+
* 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."],
|
|
268
|
+
* links: {
|
|
269
|
+
* privacyPolicy: "https://www.trypinnacle.app/privacy",
|
|
270
|
+
* termsOfService: "https://www.trypinnacle.app/terms"
|
|
271
|
+
* },
|
|
272
|
+
* optIn: {
|
|
273
|
+
* method: "WEBSITE",
|
|
274
|
+
* termsAndConditions: "Would you like to subscribe to Pinnacle?"
|
|
275
|
+
* },
|
|
276
|
+
* optOut: {
|
|
277
|
+
* description: "Reply STOP to opt-out anytime.",
|
|
278
|
+
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
279
|
+
* },
|
|
280
|
+
* useCase: {
|
|
281
|
+
* behavior: "Acts as a customer service representative.",
|
|
282
|
+
* value: "OTHER"
|
|
283
|
+
* }
|
|
284
|
+
* })
|
|
285
|
+
*/
|
|
286
|
+
upsert(request = {}, requestOptions) {
|
|
287
|
+
return core.HttpResponsePromise.fromPromise(this.__upsert(request, requestOptions));
|
|
288
|
+
}
|
|
289
|
+
__upsert() {
|
|
290
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
291
|
+
var _a, _b, _c;
|
|
292
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
293
|
+
const _response = yield core.fetcher({
|
|
294
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "campaigns/rcs"),
|
|
295
|
+
method: "POST",
|
|
296
|
+
headers: _headers,
|
|
297
|
+
contentType: "application/json",
|
|
298
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
299
|
+
requestType: "json",
|
|
300
|
+
body: request,
|
|
301
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
302
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
303
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
304
|
+
});
|
|
305
|
+
if (_response.ok) {
|
|
306
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
307
|
+
}
|
|
308
|
+
if (_response.error.reason === "status-code") {
|
|
309
|
+
switch (_response.error.statusCode) {
|
|
310
|
+
case 400:
|
|
311
|
+
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
312
|
+
case 401:
|
|
313
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
314
|
+
case 404:
|
|
315
|
+
throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
|
|
316
|
+
case 500:
|
|
317
|
+
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
318
|
+
default:
|
|
319
|
+
throw new errors.PinnacleError({
|
|
320
|
+
statusCode: _response.error.statusCode,
|
|
321
|
+
body: _response.error.body,
|
|
322
|
+
rawResponse: _response.rawResponse,
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
switch (_response.error.reason) {
|
|
327
|
+
case "non-json":
|
|
328
|
+
throw new errors.PinnacleError({
|
|
329
|
+
statusCode: _response.error.statusCode,
|
|
330
|
+
body: _response.error.rawBody,
|
|
331
|
+
rawResponse: _response.rawResponse,
|
|
332
|
+
});
|
|
333
|
+
case "timeout":
|
|
334
|
+
throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /campaigns/rcs.");
|
|
335
|
+
case "unknown":
|
|
336
|
+
throw new errors.PinnacleError({
|
|
337
|
+
message: _response.error.errorMessage,
|
|
338
|
+
rawResponse: _response.rawResponse,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Validate your RCS campaign configuration against carrier requirements and compliance rules.
|
|
345
|
+
*
|
|
346
|
+
* @param {Pinnacle.ValidateCampaignParams} request
|
|
347
|
+
* @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
|
|
348
|
+
*
|
|
349
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
350
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
351
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
352
|
+
*
|
|
353
|
+
* @example
|
|
354
|
+
* await client.campaigns.rcs.validate({
|
|
355
|
+
* additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
|
|
356
|
+
* campaignId: 161
|
|
357
|
+
* })
|
|
358
|
+
*/
|
|
359
|
+
validate(request, requestOptions) {
|
|
360
|
+
return core.HttpResponsePromise.fromPromise(this.__validate(request, requestOptions));
|
|
361
|
+
}
|
|
362
|
+
__validate(request, requestOptions) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
var _a, _b, _c;
|
|
365
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
366
|
+
const _response = yield core.fetcher({
|
|
367
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "campaigns/rcs/validate"),
|
|
368
|
+
method: "POST",
|
|
369
|
+
headers: _headers,
|
|
370
|
+
contentType: "application/json",
|
|
371
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
372
|
+
requestType: "json",
|
|
373
|
+
body: request,
|
|
374
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
375
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
376
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
377
|
+
});
|
|
378
|
+
if (_response.ok) {
|
|
379
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
380
|
+
}
|
|
381
|
+
if (_response.error.reason === "status-code") {
|
|
382
|
+
switch (_response.error.statusCode) {
|
|
383
|
+
case 400:
|
|
384
|
+
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
385
|
+
case 401:
|
|
386
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
387
|
+
case 500:
|
|
388
|
+
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
389
|
+
default:
|
|
390
|
+
throw new errors.PinnacleError({
|
|
391
|
+
statusCode: _response.error.statusCode,
|
|
392
|
+
body: _response.error.body,
|
|
393
|
+
rawResponse: _response.rawResponse,
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
switch (_response.error.reason) {
|
|
398
|
+
case "non-json":
|
|
399
|
+
throw new errors.PinnacleError({
|
|
400
|
+
statusCode: _response.error.statusCode,
|
|
401
|
+
body: _response.error.rawBody,
|
|
402
|
+
rawResponse: _response.rawResponse,
|
|
403
|
+
});
|
|
404
|
+
case "timeout":
|
|
405
|
+
throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /campaigns/rcs/validate.");
|
|
406
|
+
case "unknown":
|
|
407
|
+
throw new errors.PinnacleError({
|
|
408
|
+
message: _response.error.errorMessage,
|
|
409
|
+
rawResponse: _response.rawResponse,
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
_getCustomAuthorizationHeaders() {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
417
|
+
return { "PINNACLE-API-KEY": apiKeyValue };
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
}
|
package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Pinnacle from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* agent: {
|
|
9
|
+
* color: "#000000",
|
|
10
|
+
* description: "Engaging campaigns with RBM \u2013 next-gen SMS marketing with rich content and better analytics.",
|
|
11
|
+
* emails: [{
|
|
12
|
+
* email: "founders@trypinnacle.app",
|
|
13
|
+
* label: "Email Us"
|
|
14
|
+
* }],
|
|
15
|
+
* heroUrl: "https://agent-logos.storage.googleapis.com/_/m0bk9mmw7kfynqiKSPfsaoc6",
|
|
16
|
+
* iconUrl: "https://agent-logos.storage.googleapis.com/_/m0bk9gvlDunZEw1krfruZmw3",
|
|
17
|
+
* name: "Pinnacle Software Development",
|
|
18
|
+
* phones: [{
|
|
19
|
+
* label: "Contact us directly",
|
|
20
|
+
* phone: "+14154467821"
|
|
21
|
+
* }],
|
|
22
|
+
* websites: [{
|
|
23
|
+
* label: "Get started with Pinnacle",
|
|
24
|
+
* url: "https://www.trypinnacle.app/"
|
|
25
|
+
* }]
|
|
26
|
+
* },
|
|
27
|
+
* brand: 2,
|
|
28
|
+
* 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."],
|
|
29
|
+
* links: {
|
|
30
|
+
* privacyPolicy: "https://www.trypinnacle.app/privacy",
|
|
31
|
+
* termsOfService: "https://www.trypinnacle.app/terms"
|
|
32
|
+
* },
|
|
33
|
+
* optIn: {
|
|
34
|
+
* method: "WEBSITE",
|
|
35
|
+
* termsAndConditions: "Would you like to subscribe to Pinnacle?"
|
|
36
|
+
* },
|
|
37
|
+
* optOut: {
|
|
38
|
+
* description: "Reply STOP to opt-out anytime.",
|
|
39
|
+
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
40
|
+
* },
|
|
41
|
+
* useCase: {
|
|
42
|
+
* behavior: "Acts as a customer service representative.",
|
|
43
|
+
* value: "OTHER"
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
*/
|
|
47
|
+
export interface UpsertRcsCampaignParams {
|
|
48
|
+
/** Create an agent for the campaign. */
|
|
49
|
+
agent?: UpsertRcsCampaignParams.Agent;
|
|
50
|
+
/** Unique identifier for the brand. */
|
|
51
|
+
brand?: number;
|
|
52
|
+
/** Unique identifier for the campaign. */
|
|
53
|
+
campaignId?: number;
|
|
54
|
+
/** List of what the agent might say to users (1-5 required). */
|
|
55
|
+
expectedAgentResponses?: string[];
|
|
56
|
+
/** Legal documentation links. */
|
|
57
|
+
links?: UpsertRcsCampaignParams.Links;
|
|
58
|
+
/** Opt-in configuration. */
|
|
59
|
+
optIn?: UpsertRcsCampaignParams.OptIn;
|
|
60
|
+
/** Opt-out configuration. */
|
|
61
|
+
optOut?: UpsertRcsCampaignParams.OptOut;
|
|
62
|
+
/** Use case classification for the campaign. */
|
|
63
|
+
useCase?: UpsertRcsCampaignParams.UseCase;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace UpsertRcsCampaignParams {
|
|
66
|
+
/**
|
|
67
|
+
* Create an agent for the campaign.
|
|
68
|
+
*/
|
|
69
|
+
interface Agent {
|
|
70
|
+
/**
|
|
71
|
+
* Color of the agent's buttons. <br>
|
|
72
|
+
*
|
|
73
|
+
* Must have sufficient contrast with white.
|
|
74
|
+
*/
|
|
75
|
+
color?: string;
|
|
76
|
+
/** Description of the agent. */
|
|
77
|
+
description?: string;
|
|
78
|
+
/** List of emails (1-3 required). */
|
|
79
|
+
emails?: Agent.Emails.Item[];
|
|
80
|
+
/** Link to the agent's hero. */
|
|
81
|
+
heroUrl?: string;
|
|
82
|
+
/** Link to the agent's icon. */
|
|
83
|
+
iconUrl?: string;
|
|
84
|
+
/** Name of the agent. */
|
|
85
|
+
name?: string;
|
|
86
|
+
/** List of phone numbers (1-3 required). */
|
|
87
|
+
phones?: Agent.Phones.Item[];
|
|
88
|
+
/** List of urls (1-3 required). */
|
|
89
|
+
websites?: Agent.Websites.Item[];
|
|
90
|
+
}
|
|
91
|
+
namespace Agent {
|
|
92
|
+
type Emails = Emails.Item[];
|
|
93
|
+
namespace Emails {
|
|
94
|
+
interface Item {
|
|
95
|
+
/** Email attached to the agent. */
|
|
96
|
+
email?: string;
|
|
97
|
+
/** Label for the email. */
|
|
98
|
+
label?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
type Phones = Phones.Item[];
|
|
102
|
+
namespace Phones {
|
|
103
|
+
interface Item {
|
|
104
|
+
/** Label for the phone number. */
|
|
105
|
+
label?: string;
|
|
106
|
+
/** Phone number attached to the agent in E.164 format. */
|
|
107
|
+
phone?: string;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
type Websites = Websites.Item[];
|
|
111
|
+
namespace Websites {
|
|
112
|
+
interface Item {
|
|
113
|
+
/** Label for the url. */
|
|
114
|
+
label?: string;
|
|
115
|
+
/** Url attached to the agent. */
|
|
116
|
+
url?: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Legal documentation links.
|
|
122
|
+
*/
|
|
123
|
+
interface Links {
|
|
124
|
+
/** Privacy policy URL. */
|
|
125
|
+
privacyPolicy?: string;
|
|
126
|
+
/** Terms of service URL. */
|
|
127
|
+
termsOfService?: string;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Opt-in configuration.
|
|
131
|
+
*/
|
|
132
|
+
interface OptIn {
|
|
133
|
+
method?: Pinnacle.RcsCampaignOptInMethodEnum;
|
|
134
|
+
/** Message shown to users explaining what they are agreeing to when opting in. */
|
|
135
|
+
termsAndConditions?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Opt-out configuration.
|
|
139
|
+
*/
|
|
140
|
+
interface OptOut {
|
|
141
|
+
/** Description for the keyword. */
|
|
142
|
+
description?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Keywords to opt-out. <br>
|
|
145
|
+
*
|
|
146
|
+
* Each keyword must be a single word with no spaces or whitespace characters.
|
|
147
|
+
*/
|
|
148
|
+
keywords?: string[];
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Use case classification for the campaign.
|
|
152
|
+
*/
|
|
153
|
+
interface UseCase {
|
|
154
|
+
/** Summary of the use case. */
|
|
155
|
+
behavior?: string;
|
|
156
|
+
value?: Pinnacle.RcsCampaignUseCaseEnum;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type UpsertRcsCampaignParams } from "./UpsertRcsCampaignParams.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RcsAutofillResponse.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RcsAutofillResponse.mjs";
|