rcs-js 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -25
- package/dist/cjs/BaseClient.d.ts +30 -0
- package/dist/cjs/{api/types/RcsCards.js → BaseClient.js} +1 -3
- package/dist/cjs/Client.d.ts +8 -25
- package/dist/cjs/Client.js +27 -24
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -4
- package/dist/cjs/api/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/errors/InternalServerError.d.ts +2 -5
- package/dist/cjs/api/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -4
- package/dist/cjs/api/errors/NotFoundError.js +1 -3
- package/dist/cjs/api/errors/NotImplementedError.d.ts +2 -5
- package/dist/cjs/api/errors/NotImplementedError.js +1 -3
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +2 -5
- package/dist/cjs/api/errors/PaymentRequiredError.js +1 -3
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +2 -5
- package/dist/cjs/api/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/errors/index.d.ts +2 -2
- package/dist/cjs/api/errors/index.js +2 -2
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/audiences/client/Client.d.ts +108 -0
- package/dist/cjs/api/resources/audiences/client/Client.js +391 -0
- package/dist/cjs/api/resources/audiences/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/audiences/client/index.js +17 -0
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesDeleteRequest.d.ts +10 -0
- package/dist/cjs/api/resources/{messages/resources/rcs/types/RcsSendResponse.js → audiences/client/requests/AudiencesDeleteRequest.js} +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesGetRequest.d.ts +19 -0
- package/dist/cjs/api/{types/RcsBase.js → resources/audiences/client/requests/AudiencesGetRequest.js} +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/CreateAudienceParams.d.ts +28 -0
- package/dist/cjs/api/{types/Options.js → resources/audiences/client/requests/CreateAudienceParams.js} +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/UpdateAudienceParams.d.ts +16 -0
- package/dist/cjs/api/resources/audiences/client/requests/UpdateAudienceParams.js +3 -0
- package/dist/cjs/api/resources/audiences/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/audiences/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/audiences/index.d.ts +3 -0
- package/dist/cjs/api/resources/audiences/index.js +19 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.d.ts +59 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.js +222 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/index.js +17 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.ts +13 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.js +3 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.ts +13 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.js +3 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/index.d.ts +1 -0
- package/dist/cjs/api/resources/audiences/resources/contacts/index.js +17 -0
- package/dist/cjs/api/resources/audiences/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/audiences/resources/index.js +41 -0
- package/dist/cjs/api/resources/audiences/types/AudiencesGetResponse.d.ts +8 -0
- package/dist/cjs/api/resources/audiences/types/AudiencesGetResponse.js +3 -0
- package/dist/cjs/api/resources/audiences/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/audiences/types/index.js +17 -0
- package/dist/cjs/api/resources/brands/client/Client.d.ts +6 -25
- package/dist/cjs/api/resources/brands/client/Client.js +46 -34
- package/dist/cjs/api/resources/brands/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/brands/client/requests/AutofillBrandParams.d.ts +0 -3
- package/dist/cjs/api/resources/brands/client/requests/AutofillBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +4 -4
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.d.ts +4 -4
- package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/VetBrandParams.d.ts +1 -5
- package/dist/cjs/api/resources/brands/client/requests/VetBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/index.d.ts +5 -5
- package/dist/cjs/api/resources/campaigns/client/Client.d.ts +3 -13
- package/dist/cjs/api/resources/campaigns/client/Client.js +5 -7
- package/dist/cjs/api/resources/campaigns/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +36 -28
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/index.d.ts +5 -5
- package/dist/cjs/api/resources/campaigns/resources/index.js +9 -9
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +36 -40
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +68 -43
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +112 -49
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +20 -25
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +52 -28
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +66 -4
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.js +1 -3
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/contacts/client/Client.js +24 -20
- package/dist/cjs/api/resources/contacts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/CreateContactParams.d.ts +1 -4
- package/dist/cjs/api/resources/contacts/client/requests/CreateContactParams.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +1 -4
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/conversations/client/Client.js +37 -31
- package/dist/cjs/api/resources/conversations/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +0 -3
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/index.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/index.js +1 -1
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +1 -3
- package/dist/cjs/api/resources/conversations/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/types/index.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +14 -11
- package/dist/cjs/api/resources/index.js +18 -15
- package/dist/cjs/api/resources/messages/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/messages/client/Client.js +101 -21
- package/dist/cjs/api/resources/messages/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +0 -3
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.js +1 -3
- package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/messages/resources/index.js +8 -8
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +16 -14
- package/dist/cjs/api/resources/messages/resources/mms/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/Mms.d.ts +1 -4
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/Mms.js +1 -3
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/types/MmsSendResponse.d.ts +2 -5
- package/dist/cjs/api/resources/messages/resources/mms/types/MmsSendResponse.js +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +5 -26
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +26 -19
- package/dist/cjs/api/resources/messages/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.ts +0 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.js +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/types/SendRichMessageResponse.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/rcs/types/SendRichMessageResponse.js +3 -0
- package/dist/cjs/api/resources/messages/resources/rcs/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/types/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.js +16 -14
- package/dist/cjs/api/resources/messages/resources/sms/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/Sms.d.ts +1 -4
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/Sms.js +1 -3
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/types/SmsSendResponse.d.ts +2 -5
- package/dist/cjs/api/resources/messages/resources/sms/types/SmsSendResponse.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +5 -26
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +26 -22
- package/dist/cjs/api/resources/phoneNumbers/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.ts +0 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.js +6 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/phoneNumbers/index.d.ts +1 -1
- package/dist/cjs/api/resources/phoneNumbers/index.js +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +16 -14
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.ts +0 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/index.js +6 -6
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +18 -16
- package/dist/cjs/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.js +1 -3
- package/dist/cjs/api/resources/rcs/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/rcs/client/Client.js +22 -18
- package/dist/cjs/api/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsLinkRequest.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsLinkRequest.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/status/client/Client.d.ts +2 -12
- package/dist/cjs/api/resources/status/client/Client.js +1 -3
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +39 -31
- package/dist/cjs/api/resources/tools/client/Client.d.ts +4 -14
- package/dist/cjs/api/resources/tools/client/Client.js +5 -7
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +16 -14
- package/dist/cjs/api/resources/tools/resources/contactCard/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +16 -14
- package/dist/cjs/api/resources/tools/resources/file/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/tools/resources/index.js +8 -8
- package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/url/client/Client.js +24 -20
- package/dist/cjs/api/resources/tools/resources/url/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/url/client/requests/CreateUrlParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/url/client/requests/UpdateUrlParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/url/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/webhooks/client/Client.js +10 -10
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.d.ts +0 -3
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.js +1 -3
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/AdvancedPhoneInformation.d.ts +2 -5
- package/dist/cjs/api/types/AdvancedPhoneInformation.js +7 -3
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -4
- package/dist/cjs/api/types/AttachWebhookParams.js +1 -3
- package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +1 -4
- package/dist/cjs/api/types/AttachedPhoneNumberResult.js +1 -3
- package/dist/cjs/api/types/AudienceCountOnly.d.ts +14 -0
- package/dist/cjs/api/types/AudienceCountOnly.js +3 -0
- package/dist/cjs/api/types/AudienceWithPagination.d.ts +14 -0
- package/dist/cjs/api/types/AudienceWithPagination.js +3 -0
- package/dist/cjs/api/types/AutofillCampaignParams.d.ts +0 -3
- package/dist/cjs/api/types/AutofillCampaignParams.js +1 -3
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +1 -4
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.js +1 -3
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +1 -4
- package/dist/cjs/api/types/BadRequestErrorBody.js +1 -3
- package/dist/cjs/api/types/BaseRichMessage.d.ts +9 -0
- package/dist/cjs/api/types/BaseRichMessage.js +3 -0
- package/dist/cjs/api/types/BasicPhoneInformation.d.ts +1 -4
- package/dist/cjs/api/types/BasicPhoneInformation.js +1 -3
- package/dist/cjs/api/types/BrandStatus.d.ts +1 -4
- package/dist/cjs/api/types/BrandStatus.js +1 -3
- package/dist/cjs/api/types/BrandStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/BrandStatusEnum.js +10 -3
- package/dist/cjs/api/types/ButtonClicked.d.ts +1 -4
- package/dist/cjs/api/types/ButtonClicked.js +1 -3
- package/dist/cjs/api/types/ButtonClickedData.d.ts +2 -5
- package/dist/cjs/api/types/ButtonClickedData.js +7 -3
- package/dist/cjs/api/types/CampaignEnum.d.ts +1 -4
- package/dist/cjs/api/types/CampaignEnum.js +7 -3
- package/dist/cjs/api/types/CampaignQuery.d.ts +1 -4
- package/dist/cjs/api/types/CampaignQuery.js +1 -3
- package/dist/cjs/api/types/CampaignSubmissionResult.d.ts +0 -3
- package/dist/cjs/api/types/CampaignSubmissionResult.js +1 -3
- package/dist/cjs/api/types/CampaignValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/CampaignValidationResult.js +1 -3
- package/dist/cjs/api/types/CancelScheduledMessageResponse.d.ts +4 -0
- package/dist/cjs/api/types/CancelScheduledMessageResponse.js +3 -0
- package/dist/cjs/api/types/CompanyEntityTypeEnum.d.ts +9 -0
- package/dist/cjs/api/types/CompanyEntityTypeEnum.js +12 -0
- package/dist/cjs/api/types/CompanySectorEnum.d.ts +2 -7
- package/dist/cjs/api/types/CompanySectorEnum.js +2 -3
- package/dist/cjs/api/types/CompanyTypeEnum.d.ts +2 -7
- package/dist/cjs/api/types/CompanyTypeEnum.js +2 -3
- package/dist/cjs/api/types/ConfiguredWebhook.d.ts +1 -4
- package/dist/cjs/api/types/ConfiguredWebhook.js +1 -3
- package/dist/cjs/api/types/Contact.d.ts +0 -3
- package/dist/cjs/api/types/Contact.js +1 -3
- package/dist/cjs/api/types/ContactId.d.ts +0 -3
- package/dist/cjs/api/types/ContactId.js +1 -3
- package/dist/cjs/api/types/Conversation.d.ts +1 -4
- package/dist/cjs/api/types/Conversation.js +1 -3
- package/dist/cjs/api/types/ConversationList.d.ts +1 -4
- package/dist/cjs/api/types/ConversationList.js +1 -3
- package/dist/cjs/api/types/CreateUrlOptions.d.ts +0 -3
- package/dist/cjs/api/types/CreateUrlOptions.js +1 -3
- package/dist/cjs/api/types/DeleteAudienceResponse.d.ts +4 -0
- package/dist/cjs/api/types/DeleteAudienceResponse.js +3 -0
- package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +1 -4
- package/dist/cjs/api/types/DetachedPhoneNumberResult.js +1 -3
- package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +0 -3
- package/dist/cjs/api/types/DetachedWebhookInfo.js +1 -3
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.d.ts +1 -4
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.js +7 -3
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.js +10 -3
- package/dist/cjs/api/types/DlcCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/DlcCampaignStatus.js +1 -3
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +1 -4
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.js +1 -3
- package/dist/cjs/api/types/EnhancedContact.d.ts +1 -4
- package/dist/cjs/api/types/EnhancedContact.js +1 -3
- package/dist/cjs/api/types/EnhancedContactItem.d.ts +0 -3
- package/dist/cjs/api/types/EnhancedContactItem.js +1 -3
- package/dist/cjs/api/types/Error_.d.ts +0 -3
- package/dist/cjs/api/types/Error_.js +1 -3
- package/dist/cjs/api/types/ExtendedBrand.d.ts +1 -4
- package/dist/cjs/api/types/ExtendedBrand.js +1 -3
- package/dist/cjs/api/types/ExtendedBrandWithVetting.d.ts +1 -4
- package/dist/cjs/api/types/ExtendedBrandWithVetting.js +1 -3
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +55 -30
- package/dist/cjs/api/types/ExtendedRcsCampaign.js +1 -3
- package/dist/cjs/api/types/GetConversationParams.d.ts +0 -3
- package/dist/cjs/api/types/GetConversationParams.js +1 -3
- package/dist/cjs/api/types/LinkClickEvent.d.ts +0 -3
- package/dist/cjs/api/types/LinkClickEvent.js +1 -3
- package/dist/cjs/api/types/LocationShareAction.d.ts +0 -3
- package/dist/cjs/api/types/LocationShareAction.js +1 -3
- package/dist/cjs/api/types/Message.d.ts +1 -4
- package/dist/cjs/api/types/Message.js +1 -3
- package/dist/cjs/api/types/MessageContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageContent.js +1 -3
- package/dist/cjs/api/types/MessageEvent.d.ts +3 -8
- package/dist/cjs/api/types/MessageEvent.js +2 -3
- package/dist/cjs/api/types/MessageEventContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventContent.js +1 -3
- package/dist/cjs/api/types/MessageEventMmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MessageEventMmsContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsButtonData.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsButtonData.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsCardsContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsCardsContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsLocationData.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsLocationData.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsMediaContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsMediaContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsTextContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsTextContent.js +1 -3
- package/dist/cjs/api/types/MessageEventSmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MessageEventSmsContent.js +1 -3
- package/dist/cjs/api/types/MessageList.d.ts +1 -4
- package/dist/cjs/api/types/MessageList.js +1 -3
- package/dist/cjs/api/types/MessageMethodEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageMethodEnum.js +2 -3
- package/dist/cjs/api/types/MessageProtocolEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageProtocolEnum.js +2 -3
- package/dist/cjs/api/types/MessageSchedule.d.ts +7 -4
- package/dist/cjs/api/types/MessageSchedule.js +1 -3
- package/dist/cjs/api/types/MessageStatusEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageStatusEnum.js +2 -3
- package/dist/cjs/api/types/MessageVolumeEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageVolumeEnum.js +2 -3
- package/dist/cjs/api/types/MessageWithReaction.d.ts +3 -8
- package/dist/cjs/api/types/MessageWithReaction.js +2 -3
- package/dist/cjs/api/types/MessagingProfileEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessagingProfileEnum.js +2 -3
- package/dist/cjs/api/types/MmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MmsContent.js +1 -3
- package/dist/cjs/api/types/MmsValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/MmsValidationResult.js +1 -3
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/NotFoundErrorBody.js +1 -3
- package/dist/cjs/api/types/NumberFormat.d.ts +0 -3
- package/dist/cjs/api/types/NumberFormat.js +1 -3
- package/dist/cjs/api/types/OptInMethodEnum.d.ts +2 -7
- package/dist/cjs/api/types/OptInMethodEnum.js +2 -3
- package/dist/cjs/api/types/OptionalBrandInfo.d.ts +3 -4
- package/dist/cjs/api/types/OptionalBrandInfo.js +1 -3
- package/dist/cjs/api/types/OptionalContact.d.ts +0 -3
- package/dist/cjs/api/types/OptionalContact.js +1 -3
- package/dist/cjs/api/types/OptionalContacts.d.ts +0 -3
- package/dist/cjs/api/types/OptionalContacts.js +1 -3
- package/dist/cjs/api/types/Pagination.d.ts +10 -0
- package/dist/cjs/api/types/Pagination.js +3 -0
- package/dist/cjs/api/types/PhoneCapabilities.d.ts +0 -3
- package/dist/cjs/api/types/PhoneCapabilities.js +1 -3
- package/dist/cjs/api/types/PhoneEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneEnum.js +6 -3
- package/dist/cjs/api/types/PhoneFeatureEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneFeatureEnum.js +6 -3
- package/dist/cjs/api/types/PhoneNumberDetails.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberDetails.js +1 -3
- package/dist/cjs/api/types/PhoneNumberEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberEnum.js +6 -3
- package/dist/cjs/api/types/PhoneNumberStatus.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberStatus.js +1 -3
- package/dist/cjs/api/types/PhoneNumberStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberStatusEnum.js +8 -3
- package/dist/cjs/api/types/ProfileStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/ProfileStatusEnum.js +12 -3
- package/dist/cjs/api/types/PurchasedNumber.d.ts +0 -3
- package/dist/cjs/api/types/PurchasedNumber.js +1 -3
- package/dist/cjs/api/types/RcsButtonCall.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonCall.js +1 -3
- package/dist/cjs/api/types/RcsButtonOpenUrl.d.ts +1 -4
- package/dist/cjs/api/types/RcsButtonOpenUrl.js +11 -3
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.js +1 -3
- package/dist/cjs/api/types/RcsButtonScheduleEvent.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonScheduleEvent.js +1 -3
- package/dist/cjs/api/types/RcsButtonSendLocation.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonSendLocation.js +1 -3
- package/dist/cjs/api/types/RcsButtonTrigger.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonTrigger.js +1 -3
- package/dist/cjs/api/types/RcsCampaign.d.ts +55 -28
- package/dist/cjs/api/types/RcsCampaign.js +1 -3
- package/dist/cjs/api/types/RcsCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/RcsCampaignStatus.js +1 -3
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/RcsCapabilitiesResult.d.ts +1 -4
- package/dist/cjs/api/types/RcsCapabilitiesResult.js +1 -3
- package/dist/cjs/api/types/RcsCapability.d.ts +0 -3
- package/dist/cjs/api/types/RcsCapability.js +1 -3
- package/dist/cjs/api/types/RcsCardsContent.d.ts +2 -5
- package/dist/cjs/api/types/RcsCardsContent.js +1 -3
- package/dist/cjs/api/types/RcsContent.d.ts +2 -5
- package/dist/cjs/api/types/RcsContent.js +1 -3
- package/dist/cjs/api/types/RcsLinkResult.d.ts +0 -3
- package/dist/cjs/api/types/RcsLinkResult.js +1 -3
- package/dist/cjs/api/types/RcsMediaContent.d.ts +1 -4
- package/dist/cjs/api/types/RcsMediaContent.js +1 -3
- package/dist/cjs/api/types/RcsMediaDetailsContent.d.ts +0 -3
- package/dist/cjs/api/types/RcsMediaDetailsContent.js +1 -3
- package/dist/cjs/api/types/RcsMessagingTypeEnum.d.ts +15 -0
- package/dist/cjs/api/types/RcsMessagingTypeEnum.js +18 -0
- package/dist/cjs/api/types/RcsValidateContent.d.ts +3 -6
- package/dist/cjs/api/types/RcsValidateContent.js +1 -3
- package/dist/cjs/api/types/RcsValidationResult.d.ts +2 -3
- package/dist/cjs/api/types/RcsValidationResult.js +1 -3
- package/dist/cjs/api/types/RcsWhitelistResponse.d.ts +0 -3
- package/dist/cjs/api/types/RcsWhitelistResponse.js +1 -3
- package/dist/cjs/api/types/ReactionResult.d.ts +0 -3
- package/dist/cjs/api/types/ReactionResult.js +1 -3
- package/dist/cjs/api/types/RefreshedFile.d.ts +0 -3
- package/dist/cjs/api/types/RefreshedFile.js +1 -3
- package/dist/cjs/api/types/RichButton.d.ts +1 -4
- package/dist/cjs/api/types/RichButton.js +1 -3
- package/dist/cjs/api/types/{RcsCards.d.ts → RichCards.d.ts} +5 -8
- package/dist/cjs/api/types/RichCards.js +3 -0
- package/dist/cjs/api/types/RichCardsMessage.d.ts +11 -16
- package/dist/cjs/api/types/RichCardsMessage.js +3 -3
- package/dist/cjs/api/types/RichMediaMessage.d.ts +2 -5
- package/dist/cjs/api/types/RichMediaMessage.js +1 -3
- package/dist/cjs/api/types/RichMessage.d.ts +5 -5
- package/dist/cjs/api/types/RichMessage.js +1 -3
- package/dist/cjs/api/types/{RcsTextContent.d.ts → RichText.d.ts} +2 -5
- package/dist/cjs/api/types/RichText.js +3 -0
- package/dist/cjs/api/types/RichTextMessage.d.ts +2 -5
- package/dist/cjs/api/types/RichTextMessage.js +1 -3
- package/dist/{esm/api/types/ScheduledMessaage.d.mts → cjs/api/types/ScheduledMessage.d.ts} +3 -6
- package/dist/cjs/api/types/ScheduledMessage.js +3 -0
- package/dist/cjs/api/types/{Options.d.ts → SendRichMessageOptions.d.ts} +2 -5
- package/dist/cjs/api/types/SendRichMessageOptions.js +3 -0
- package/dist/cjs/api/types/SendTypingIndicatorResponse.d.ts +0 -3
- package/dist/cjs/api/types/SendTypingIndicatorResponse.js +1 -3
- package/dist/cjs/api/types/Sender.d.ts +0 -3
- package/dist/cjs/api/types/Sender.js +1 -3
- package/dist/cjs/api/types/SentMmsDetails.d.ts +5 -4
- package/dist/cjs/api/types/SentMmsDetails.js +1 -3
- package/dist/{esm/api/types/SentRcsDetails.d.mts → cjs/api/types/SentRichMessage.d.ts} +1 -4
- package/dist/cjs/api/types/SentRichMessage.js +3 -0
- package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -7
- package/dist/cjs/api/types/SentSmsDetails.js +2 -3
- package/dist/cjs/api/types/ShortenedUrl.d.ts +0 -3
- package/dist/cjs/api/types/ShortenedUrl.js +1 -3
- package/dist/cjs/api/types/ShortenedUrlWithClickData.d.ts +1 -4
- package/dist/cjs/api/types/ShortenedUrlWithClickData.js +1 -3
- package/dist/cjs/api/types/SmsContent.d.ts +0 -3
- package/dist/cjs/api/types/SmsContent.js +1 -3
- package/dist/cjs/api/types/SmsValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/SmsValidationResult.js +1 -3
- package/dist/cjs/api/types/SubUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/SubUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/SubmissionResults.d.ts +0 -3
- package/dist/cjs/api/types/SubmissionResults.js +1 -3
- package/dist/cjs/api/types/SuccessfulConversationUpdate.d.ts +0 -3
- package/dist/cjs/api/types/SuccessfulConversationUpdate.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaign.d.ts +50 -4
- package/dist/cjs/api/types/TollFreeCampaign.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeCampaignStatus.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.js +1 -3
- package/dist/cjs/api/types/TollFreeStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeStatusEnum.js +10 -3
- package/dist/cjs/api/types/Tracking.d.ts +1 -4
- package/dist/cjs/api/types/Tracking.js +8 -3
- package/dist/cjs/api/types/UpdatedContactId.d.ts +0 -3
- package/dist/cjs/api/types/UpdatedContactId.js +1 -3
- package/dist/cjs/api/types/UploadResults.d.ts +0 -3
- package/dist/cjs/api/types/UploadResults.js +1 -3
- package/dist/cjs/api/types/UpsertContact.d.ts +0 -3
- package/dist/cjs/api/types/UpsertContact.js +1 -3
- package/dist/cjs/api/types/UserEvent.d.ts +0 -3
- package/dist/cjs/api/types/UserEvent.js +1 -3
- package/dist/cjs/api/types/VCardData.d.ts +1 -4
- package/dist/cjs/api/types/VCardData.js +1 -3
- package/dist/cjs/api/types/ValidateCampaignParams.d.ts +0 -3
- package/dist/cjs/api/types/ValidateCampaignParams.js +1 -3
- package/dist/cjs/api/types/ValidationErrorDetails.d.ts +0 -3
- package/dist/cjs/api/types/ValidationErrorDetails.js +1 -3
- package/dist/cjs/api/types/ValidationResults.d.ts +1 -4
- package/dist/cjs/api/types/ValidationResults.js +1 -3
- package/dist/cjs/api/types/Vcard.d.ts +1 -4
- package/dist/cjs/api/types/Vcard.js +1 -3
- package/dist/cjs/api/types/VcardAddress.d.ts +1 -4
- package/dist/cjs/api/types/VcardAddress.js +1 -3
- package/dist/cjs/api/types/VcardContent.d.ts +1 -4
- package/dist/cjs/api/types/VcardContent.js +1 -3
- package/dist/cjs/api/types/VcardEmail.d.ts +1 -4
- package/dist/cjs/api/types/VcardEmail.js +1 -3
- package/dist/cjs/api/types/VcardPhone.d.ts +1 -4
- package/dist/cjs/api/types/VcardPhone.js +1 -3
- package/dist/cjs/api/types/VcardResource.d.ts +0 -3
- package/dist/cjs/api/types/VcardResource.js +1 -3
- package/dist/cjs/api/types/VettingFeedback.d.ts +0 -3
- package/dist/cjs/api/types/VettingFeedback.js +1 -3
- package/dist/cjs/api/types/VettingHistory.d.ts +2 -7
- package/dist/cjs/api/types/VettingHistory.js +2 -3
- package/dist/cjs/api/types/VettingResults.d.ts +0 -3
- package/dist/cjs/api/types/VettingResults.js +1 -3
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +1 -4
- package/dist/cjs/api/types/WebhookEventEnum.js +6 -3
- package/dist/cjs/api/types/WebhookResult.d.ts +1 -4
- package/dist/cjs/api/types/WebhookResult.js +1 -3
- package/dist/cjs/api/types/Webhooks.d.ts +0 -3
- package/dist/cjs/api/types/Webhooks.js +1 -3
- package/dist/cjs/api/types/ZodError.d.ts +0 -3
- package/dist/cjs/api/types/ZodError.js +1 -3
- package/dist/cjs/api/types/index.d.ts +125 -119
- package/dist/cjs/api/types/index.js +125 -119
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +9 -4
- package/dist/cjs/core/fetcher/Fetcher.js +205 -10
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +2 -4
- package/dist/cjs/core/fetcher/requestWithRetries.js +16 -21
- package/dist/cjs/core/fetcher/signals.d.ts +0 -6
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/headers.d.ts +2 -3
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -4
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/PinnacleError.d.ts +1 -4
- package/dist/cjs/errors/PinnacleError.js +2 -4
- package/dist/cjs/errors/PinnacleTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/PinnacleTimeoutError.js +1 -3
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/tools/FileUploader.d.ts +1 -1
- package/dist/esm/BaseClient.d.mts +30 -0
- package/dist/esm/BaseClient.mjs +2 -0
- package/dist/esm/Client.d.mts +8 -25
- package/dist/esm/Client.mjs +13 -10
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -4
- package/dist/esm/api/errors/BadRequestError.mjs +1 -3
- package/dist/esm/api/errors/InternalServerError.d.mts +2 -5
- package/dist/esm/api/errors/InternalServerError.mjs +1 -3
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -4
- package/dist/esm/api/errors/NotFoundError.mjs +1 -3
- package/dist/esm/api/errors/NotImplementedError.d.mts +2 -5
- package/dist/esm/api/errors/NotImplementedError.mjs +1 -3
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +2 -5
- package/dist/esm/api/errors/PaymentRequiredError.mjs +1 -3
- package/dist/esm/api/errors/UnauthorizedError.d.mts +2 -5
- package/dist/esm/api/errors/UnauthorizedError.mjs +1 -3
- package/dist/esm/api/errors/index.d.mts +2 -2
- package/dist/esm/api/errors/index.mjs +2 -2
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/audiences/client/Client.d.mts +108 -0
- package/dist/esm/api/resources/audiences/client/Client.mjs +354 -0
- package/dist/esm/api/resources/audiences/client/index.d.mts +1 -0
- package/dist/esm/api/resources/audiences/client/index.mjs +1 -0
- package/dist/esm/api/resources/audiences/client/requests/AudiencesDeleteRequest.d.mts +10 -0
- package/dist/esm/api/resources/audiences/client/requests/AudiencesDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/audiences/client/requests/AudiencesGetRequest.d.mts +19 -0
- package/dist/esm/api/resources/audiences/client/requests/AudiencesGetRequest.mjs +2 -0
- package/dist/esm/api/resources/audiences/client/requests/CreateAudienceParams.d.mts +28 -0
- package/dist/esm/api/resources/audiences/client/requests/CreateAudienceParams.mjs +2 -0
- package/dist/esm/api/resources/audiences/client/requests/UpdateAudienceParams.d.mts +16 -0
- package/dist/esm/api/resources/audiences/client/requests/UpdateAudienceParams.mjs +2 -0
- package/dist/esm/api/resources/audiences/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/audiences/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/audiences/index.d.mts +3 -0
- package/dist/esm/api/resources/audiences/index.mjs +3 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.d.mts +59 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.mjs +185 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/index.mjs +1 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.mts +13 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.mjs +2 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.mts +13 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.mjs +2 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/audiences/resources/contacts/index.d.mts +1 -0
- package/dist/esm/api/resources/audiences/resources/contacts/index.mjs +1 -0
- package/dist/esm/api/resources/audiences/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/audiences/resources/index.mjs +2 -0
- package/dist/esm/api/resources/audiences/types/AudiencesGetResponse.d.mts +8 -0
- package/dist/esm/api/resources/audiences/types/AudiencesGetResponse.mjs +2 -0
- package/dist/esm/api/resources/audiences/types/index.d.mts +1 -0
- package/dist/esm/api/resources/audiences/types/index.mjs +1 -0
- package/dist/esm/api/resources/brands/client/Client.d.mts +6 -25
- package/dist/esm/api/resources/brands/client/Client.mjs +46 -34
- package/dist/esm/api/resources/brands/client/index.d.mts +0 -1
- package/dist/esm/api/resources/brands/client/requests/AutofillBrandParams.d.mts +0 -3
- package/dist/esm/api/resources/brands/client/requests/AutofillBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +4 -4
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.d.mts +4 -4
- package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/VetBrandParams.d.mts +1 -5
- package/dist/esm/api/resources/brands/client/requests/VetBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/index.d.mts +5 -5
- package/dist/esm/api/resources/campaigns/client/Client.d.mts +3 -13
- package/dist/esm/api/resources/campaigns/client/Client.mjs +2 -4
- package/dist/esm/api/resources/campaigns/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +36 -28
- package/dist/esm/api/resources/campaigns/resources/dlc/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/index.d.mts +5 -5
- package/dist/esm/api/resources/campaigns/resources/index.mjs +5 -5
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +36 -40
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +68 -43
- package/dist/esm/api/resources/campaigns/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +112 -49
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +20 -25
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +52 -28
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +66 -4
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/contacts/client/Client.mjs +24 -20
- package/dist/esm/api/resources/contacts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/CreateContactParams.d.mts +1 -4
- package/dist/esm/api/resources/contacts/client/requests/CreateContactParams.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +1 -4
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/conversations/client/Client.mjs +37 -31
- package/dist/esm/api/resources/conversations/client/index.d.mts +0 -1
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +1 -4
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +1 -4
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +0 -3
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/conversations/index.d.mts +1 -1
- package/dist/esm/api/resources/conversations/index.mjs +1 -1
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/index.d.mts +1 -1
- package/dist/esm/api/resources/conversations/types/index.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +14 -11
- package/dist/esm/api/resources/index.mjs +14 -11
- package/dist/esm/api/resources/messages/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/messages/client/Client.mjs +96 -16
- package/dist/esm/api/resources/messages/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +0 -3
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.mjs +1 -3
- package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/messages/resources/index.mjs +4 -4
- package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +16 -14
- package/dist/esm/api/resources/messages/resources/mms/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/mms/client/requests/Mms.d.mts +1 -4
- package/dist/esm/api/resources/messages/resources/mms/client/requests/Mms.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/mms/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/mms/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/mms/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/mms/types/MmsSendResponse.d.mts +2 -5
- package/dist/esm/api/resources/messages/resources/mms/types/MmsSendResponse.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +5 -26
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +26 -19
- package/dist/esm/api/resources/messages/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.mts +0 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/types/SendRichMessageResponse.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/rcs/types/SendRichMessageResponse.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/rcs/types/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/types/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/sms/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/messages/resources/sms/client/Client.mjs +16 -14
- package/dist/esm/api/resources/messages/resources/sms/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/sms/client/requests/Sms.d.mts +1 -4
- package/dist/esm/api/resources/messages/resources/sms/client/requests/Sms.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/sms/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/sms/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/sms/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/sms/types/SmsSendResponse.d.mts +2 -5
- package/dist/esm/api/resources/messages/resources/sms/types/SmsSendResponse.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +5 -26
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +23 -19
- package/dist/esm/api/resources/phoneNumbers/client/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.mts +0 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.mjs +6 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/phoneNumbers/index.d.mts +1 -1
- package/dist/esm/api/resources/phoneNumbers/index.mjs +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +16 -14
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.mts +0 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/index.mjs +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +18 -16
- package/dist/esm/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/rcs/client/Client.mjs +22 -18
- package/dist/esm/api/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsLinkRequest.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsLinkRequest.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/status/client/Client.d.mts +2 -12
- package/dist/esm/api/resources/status/client/Client.mjs +1 -3
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +39 -31
- package/dist/esm/api/resources/tools/client/Client.d.mts +4 -14
- package/dist/esm/api/resources/tools/client/Client.mjs +3 -5
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +16 -14
- package/dist/esm/api/resources/tools/resources/contactCard/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +16 -14
- package/dist/esm/api/resources/tools/resources/file/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/tools/resources/index.mjs +4 -4
- package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +24 -20
- package/dist/esm/api/resources/tools/resources/url/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/url/client/requests/CreateUrlParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/url/client/requests/UpdateUrlParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/url/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/webhooks/client/Client.mjs +10 -10
- package/dist/esm/api/resources/webhooks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.d.mts +0 -3
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.mjs +1 -3
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/AdvancedPhoneInformation.d.mts +2 -5
- package/dist/esm/api/types/AdvancedPhoneInformation.mjs +7 -3
- package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -4
- package/dist/esm/api/types/AttachWebhookParams.mjs +1 -3
- package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +1 -4
- package/dist/esm/api/types/AttachedPhoneNumberResult.mjs +1 -3
- package/dist/esm/api/types/AudienceCountOnly.d.mts +14 -0
- package/dist/esm/api/types/AudienceCountOnly.mjs +2 -0
- package/dist/esm/api/types/AudienceWithPagination.d.mts +14 -0
- package/dist/esm/api/types/AudienceWithPagination.mjs +2 -0
- package/dist/esm/api/types/AutofillCampaignParams.d.mts +0 -3
- package/dist/esm/api/types/AutofillCampaignParams.mjs +1 -3
- package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +1 -4
- package/dist/esm/api/types/AutofillDlcCampaignResponse.mjs +1 -3
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +1 -4
- package/dist/esm/api/types/BadRequestErrorBody.mjs +1 -3
- package/dist/esm/api/types/BaseRichMessage.d.mts +9 -0
- package/dist/esm/api/types/BaseRichMessage.mjs +2 -0
- package/dist/esm/api/types/BasicPhoneInformation.d.mts +1 -4
- package/dist/esm/api/types/BasicPhoneInformation.mjs +1 -3
- package/dist/esm/api/types/BrandStatus.d.mts +1 -4
- package/dist/esm/api/types/BrandStatus.mjs +1 -3
- package/dist/esm/api/types/BrandStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/BrandStatusEnum.mjs +8 -1
- package/dist/esm/api/types/ButtonClicked.d.mts +1 -4
- package/dist/esm/api/types/ButtonClicked.mjs +1 -3
- package/dist/esm/api/types/ButtonClickedData.d.mts +2 -5
- package/dist/esm/api/types/ButtonClickedData.mjs +7 -3
- package/dist/esm/api/types/CampaignEnum.d.mts +1 -4
- package/dist/esm/api/types/CampaignEnum.mjs +5 -1
- package/dist/esm/api/types/CampaignQuery.d.mts +1 -4
- package/dist/esm/api/types/CampaignQuery.mjs +1 -3
- package/dist/esm/api/types/CampaignSubmissionResult.d.mts +0 -3
- package/dist/esm/api/types/CampaignSubmissionResult.mjs +1 -3
- package/dist/esm/api/types/CampaignValidationResult.d.mts +0 -3
- package/dist/esm/api/types/CampaignValidationResult.mjs +1 -3
- package/dist/esm/api/types/CancelScheduledMessageResponse.d.mts +4 -0
- package/dist/esm/api/types/CancelScheduledMessageResponse.mjs +2 -0
- package/dist/esm/api/types/CompanyEntityTypeEnum.d.mts +9 -0
- package/dist/esm/api/types/CompanyEntityTypeEnum.mjs +9 -0
- package/dist/esm/api/types/CompanySectorEnum.d.mts +2 -7
- package/dist/esm/api/types/CompanySectorEnum.mjs +2 -3
- package/dist/esm/api/types/CompanyTypeEnum.d.mts +2 -7
- package/dist/esm/api/types/CompanyTypeEnum.mjs +2 -3
- package/dist/esm/api/types/ConfiguredWebhook.d.mts +1 -4
- package/dist/esm/api/types/ConfiguredWebhook.mjs +1 -3
- package/dist/esm/api/types/Contact.d.mts +0 -3
- package/dist/esm/api/types/Contact.mjs +1 -3
- package/dist/esm/api/types/ContactId.d.mts +0 -3
- package/dist/esm/api/types/ContactId.mjs +1 -3
- package/dist/esm/api/types/Conversation.d.mts +1 -4
- package/dist/esm/api/types/Conversation.mjs +1 -3
- package/dist/esm/api/types/ConversationList.d.mts +1 -4
- package/dist/esm/api/types/ConversationList.mjs +1 -3
- package/dist/esm/api/types/CreateUrlOptions.d.mts +0 -3
- package/dist/esm/api/types/CreateUrlOptions.mjs +1 -3
- package/dist/esm/api/types/DeleteAudienceResponse.d.mts +4 -0
- package/dist/esm/api/types/DeleteAudienceResponse.mjs +2 -0
- package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +1 -4
- package/dist/esm/api/types/DetachedPhoneNumberResult.mjs +1 -3
- package/dist/esm/api/types/DetachedWebhookInfo.d.mts +0 -3
- package/dist/esm/api/types/DetachedWebhookInfo.mjs +1 -3
- package/dist/esm/api/types/DetailedPhoneNumberEnum.d.mts +1 -4
- package/dist/esm/api/types/DetailedPhoneNumberEnum.mjs +5 -1
- package/dist/esm/api/types/DlcAssignmentStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/DlcAssignmentStatusEnum.mjs +8 -1
- package/dist/esm/api/types/DlcCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/DlcCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +1 -4
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.mjs +1 -3
- package/dist/esm/api/types/EnhancedContact.d.mts +1 -4
- package/dist/esm/api/types/EnhancedContact.mjs +1 -3
- package/dist/esm/api/types/EnhancedContactItem.d.mts +0 -3
- package/dist/esm/api/types/EnhancedContactItem.mjs +1 -3
- package/dist/esm/api/types/Error_.d.mts +0 -3
- package/dist/esm/api/types/Error_.mjs +1 -3
- package/dist/esm/api/types/ExtendedBrand.d.mts +1 -4
- package/dist/esm/api/types/ExtendedBrand.mjs +1 -3
- package/dist/esm/api/types/ExtendedBrandWithVetting.d.mts +1 -4
- package/dist/esm/api/types/ExtendedBrandWithVetting.mjs +1 -3
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +55 -30
- package/dist/esm/api/types/ExtendedRcsCampaign.mjs +1 -3
- package/dist/esm/api/types/GetConversationParams.d.mts +0 -3
- package/dist/esm/api/types/GetConversationParams.mjs +1 -3
- package/dist/esm/api/types/LinkClickEvent.d.mts +0 -3
- package/dist/esm/api/types/LinkClickEvent.mjs +1 -3
- package/dist/esm/api/types/LocationShareAction.d.mts +0 -3
- package/dist/esm/api/types/LocationShareAction.mjs +1 -3
- package/dist/esm/api/types/Message.d.mts +1 -4
- package/dist/esm/api/types/Message.mjs +1 -3
- package/dist/esm/api/types/MessageContent.d.mts +1 -4
- package/dist/esm/api/types/MessageContent.mjs +1 -3
- package/dist/esm/api/types/MessageEvent.d.mts +3 -8
- package/dist/esm/api/types/MessageEvent.mjs +2 -3
- package/dist/esm/api/types/MessageEventContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventMmsContent.d.mts +0 -3
- package/dist/esm/api/types/MessageEventMmsContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsButtonData.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsButtonData.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsCardsContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsCardsContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsLocationData.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsLocationData.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsMediaContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsMediaContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsTextContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsTextContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventSmsContent.d.mts +0 -3
- package/dist/esm/api/types/MessageEventSmsContent.mjs +1 -3
- package/dist/esm/api/types/MessageList.d.mts +1 -4
- package/dist/esm/api/types/MessageList.mjs +1 -3
- package/dist/esm/api/types/MessageMethodEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageMethodEnum.mjs +2 -3
- package/dist/esm/api/types/MessageProtocolEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageProtocolEnum.mjs +2 -3
- package/dist/esm/api/types/MessageSchedule.d.mts +7 -4
- package/dist/esm/api/types/MessageSchedule.mjs +1 -3
- package/dist/esm/api/types/MessageStatusEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageStatusEnum.mjs +2 -3
- package/dist/esm/api/types/MessageVolumeEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageVolumeEnum.mjs +2 -3
- package/dist/esm/api/types/MessageWithReaction.d.mts +3 -8
- package/dist/esm/api/types/MessageWithReaction.mjs +2 -3
- package/dist/esm/api/types/MessagingProfileEnum.d.mts +2 -7
- package/dist/esm/api/types/MessagingProfileEnum.mjs +2 -3
- package/dist/esm/api/types/MmsContent.d.mts +0 -3
- package/dist/esm/api/types/MmsContent.mjs +1 -3
- package/dist/esm/api/types/MmsValidationResult.d.mts +0 -3
- package/dist/esm/api/types/MmsValidationResult.mjs +1 -3
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -3
- package/dist/esm/api/types/NotFoundErrorBody.mjs +1 -3
- package/dist/esm/api/types/NumberFormat.d.mts +0 -3
- package/dist/esm/api/types/NumberFormat.mjs +1 -3
- package/dist/esm/api/types/OptInMethodEnum.d.mts +2 -7
- package/dist/esm/api/types/OptInMethodEnum.mjs +2 -3
- package/dist/esm/api/types/OptionalBrandInfo.d.mts +3 -4
- package/dist/esm/api/types/OptionalBrandInfo.mjs +1 -3
- package/dist/esm/api/types/OptionalContact.d.mts +0 -3
- package/dist/esm/api/types/OptionalContact.mjs +1 -3
- package/dist/esm/api/types/OptionalContacts.d.mts +0 -3
- package/dist/esm/api/types/OptionalContacts.mjs +1 -3
- package/dist/esm/api/types/Pagination.d.mts +10 -0
- package/dist/esm/api/types/Pagination.mjs +2 -0
- package/dist/esm/api/types/PhoneCapabilities.d.mts +0 -3
- package/dist/esm/api/types/PhoneCapabilities.mjs +1 -3
- package/dist/esm/api/types/PhoneEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneFeatureEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneFeatureEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneNumberDetails.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberDetails.mjs +1 -3
- package/dist/esm/api/types/PhoneNumberEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneNumberStatus.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberStatus.mjs +1 -3
- package/dist/esm/api/types/PhoneNumberStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberStatusEnum.mjs +6 -1
- package/dist/esm/api/types/ProfileStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/ProfileStatusEnum.mjs +10 -1
- package/dist/esm/api/types/PurchasedNumber.d.mts +0 -3
- package/dist/esm/api/types/PurchasedNumber.mjs +1 -3
- package/dist/esm/api/types/RcsButtonCall.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonCall.mjs +1 -3
- package/dist/esm/api/types/RcsButtonOpenUrl.d.mts +1 -4
- package/dist/esm/api/types/RcsButtonOpenUrl.mjs +11 -3
- package/dist/esm/api/types/RcsButtonRequestUserLocation.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonRequestUserLocation.mjs +1 -3
- package/dist/esm/api/types/RcsButtonScheduleEvent.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonScheduleEvent.mjs +1 -3
- package/dist/esm/api/types/RcsButtonSendLocation.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonSendLocation.mjs +1 -3
- package/dist/esm/api/types/RcsButtonTrigger.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonTrigger.mjs +1 -3
- package/dist/esm/api/types/RcsCampaign.d.mts +55 -28
- package/dist/esm/api/types/RcsCampaign.mjs +1 -3
- package/dist/esm/api/types/RcsCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/RcsCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/RcsCapabilitiesResult.d.mts +1 -4
- package/dist/esm/api/types/RcsCapabilitiesResult.mjs +1 -3
- package/dist/esm/api/types/RcsCapability.d.mts +0 -3
- package/dist/esm/api/types/RcsCapability.mjs +1 -3
- package/dist/esm/api/types/RcsCardsContent.d.mts +2 -5
- package/dist/esm/api/types/RcsCardsContent.mjs +1 -3
- package/dist/esm/api/types/RcsContent.d.mts +2 -5
- package/dist/esm/api/types/RcsContent.mjs +1 -3
- package/dist/esm/api/types/RcsLinkResult.d.mts +0 -3
- package/dist/esm/api/types/RcsLinkResult.mjs +1 -3
- package/dist/esm/api/types/RcsMediaContent.d.mts +1 -4
- package/dist/esm/api/types/RcsMediaContent.mjs +1 -3
- package/dist/esm/api/types/RcsMediaDetailsContent.d.mts +0 -3
- package/dist/esm/api/types/RcsMediaDetailsContent.mjs +1 -3
- package/dist/esm/api/types/RcsMessagingTypeEnum.d.mts +15 -0
- package/dist/esm/api/types/RcsMessagingTypeEnum.mjs +15 -0
- package/dist/esm/api/types/RcsValidateContent.d.mts +3 -6
- package/dist/esm/api/types/RcsValidateContent.mjs +1 -3
- package/dist/esm/api/types/RcsValidationResult.d.mts +2 -3
- package/dist/esm/api/types/RcsValidationResult.mjs +1 -3
- package/dist/esm/api/types/RcsWhitelistResponse.d.mts +0 -3
- package/dist/esm/api/types/RcsWhitelistResponse.mjs +1 -3
- package/dist/esm/api/types/ReactionResult.d.mts +0 -3
- package/dist/esm/api/types/ReactionResult.mjs +1 -3
- package/dist/esm/api/types/RefreshedFile.d.mts +0 -3
- package/dist/esm/api/types/RefreshedFile.mjs +1 -3
- package/dist/esm/api/types/RichButton.d.mts +1 -4
- package/dist/esm/api/types/RichButton.mjs +1 -3
- package/dist/esm/api/types/{RcsCards.d.mts → RichCards.d.mts} +5 -8
- package/dist/esm/api/types/RichCards.mjs +2 -0
- package/dist/esm/api/types/RichCardsMessage.d.mts +11 -16
- package/dist/esm/api/types/RichCardsMessage.mjs +3 -3
- package/dist/esm/api/types/RichMediaMessage.d.mts +2 -5
- package/dist/esm/api/types/RichMediaMessage.mjs +1 -3
- package/dist/esm/api/types/RichMessage.d.mts +5 -5
- package/dist/esm/api/types/RichMessage.mjs +1 -3
- package/dist/esm/api/types/{RcsTextContent.d.mts → RichText.d.mts} +2 -5
- package/dist/esm/api/types/RichText.mjs +2 -0
- package/dist/esm/api/types/RichTextMessage.d.mts +2 -5
- package/dist/esm/api/types/RichTextMessage.mjs +1 -3
- package/dist/{cjs/api/types/ScheduledMessaage.d.ts → esm/api/types/ScheduledMessage.d.mts} +3 -6
- package/dist/esm/api/types/ScheduledMessage.mjs +2 -0
- package/dist/esm/api/types/{Options.d.mts → SendRichMessageOptions.d.mts} +2 -5
- package/dist/esm/api/types/SendRichMessageOptions.mjs +2 -0
- package/dist/esm/api/types/SendTypingIndicatorResponse.d.mts +0 -3
- package/dist/esm/api/types/SendTypingIndicatorResponse.mjs +1 -3
- package/dist/esm/api/types/Sender.d.mts +0 -3
- package/dist/esm/api/types/Sender.mjs +1 -3
- package/dist/esm/api/types/SentMmsDetails.d.mts +5 -4
- package/dist/esm/api/types/SentMmsDetails.mjs +1 -3
- package/dist/{cjs/api/types/SentRcsDetails.d.ts → esm/api/types/SentRichMessage.d.mts} +1 -4
- package/dist/esm/api/types/SentRichMessage.mjs +2 -0
- package/dist/esm/api/types/SentSmsDetails.d.mts +2 -7
- package/dist/esm/api/types/SentSmsDetails.mjs +2 -3
- package/dist/esm/api/types/ShortenedUrl.d.mts +0 -3
- package/dist/esm/api/types/ShortenedUrl.mjs +1 -3
- package/dist/esm/api/types/ShortenedUrlWithClickData.d.mts +1 -4
- package/dist/esm/api/types/ShortenedUrlWithClickData.mjs +1 -3
- package/dist/esm/api/types/SmsContent.d.mts +0 -3
- package/dist/esm/api/types/SmsContent.mjs +1 -3
- package/dist/esm/api/types/SmsValidationResult.d.mts +0 -3
- package/dist/esm/api/types/SmsValidationResult.mjs +1 -3
- package/dist/esm/api/types/SubUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/SubUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/SubmissionResults.d.mts +0 -3
- package/dist/esm/api/types/SubmissionResults.mjs +1 -3
- package/dist/esm/api/types/SuccessfulConversationUpdate.d.mts +0 -3
- package/dist/esm/api/types/SuccessfulConversationUpdate.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaign.d.mts +50 -4
- package/dist/esm/api/types/TollFreeCampaign.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/TollFreeCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.mts +1 -4
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.mjs +1 -3
- package/dist/esm/api/types/TollFreeStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/TollFreeStatusEnum.mjs +8 -1
- package/dist/esm/api/types/Tracking.d.mts +1 -4
- package/dist/esm/api/types/Tracking.mjs +6 -1
- package/dist/esm/api/types/UpdatedContactId.d.mts +0 -3
- package/dist/esm/api/types/UpdatedContactId.mjs +1 -3
- package/dist/esm/api/types/UploadResults.d.mts +0 -3
- package/dist/esm/api/types/UploadResults.mjs +1 -3
- package/dist/esm/api/types/UpsertContact.d.mts +0 -3
- package/dist/esm/api/types/UpsertContact.mjs +1 -3
- package/dist/esm/api/types/UserEvent.d.mts +0 -3
- package/dist/esm/api/types/UserEvent.mjs +1 -3
- package/dist/esm/api/types/VCardData.d.mts +1 -4
- package/dist/esm/api/types/VCardData.mjs +1 -3
- package/dist/esm/api/types/ValidateCampaignParams.d.mts +0 -3
- package/dist/esm/api/types/ValidateCampaignParams.mjs +1 -3
- package/dist/esm/api/types/ValidationErrorDetails.d.mts +0 -3
- package/dist/esm/api/types/ValidationErrorDetails.mjs +1 -3
- package/dist/esm/api/types/ValidationResults.d.mts +1 -4
- package/dist/esm/api/types/ValidationResults.mjs +1 -3
- package/dist/esm/api/types/Vcard.d.mts +1 -4
- package/dist/esm/api/types/Vcard.mjs +1 -3
- package/dist/esm/api/types/VcardAddress.d.mts +1 -4
- package/dist/esm/api/types/VcardAddress.mjs +1 -3
- package/dist/esm/api/types/VcardContent.d.mts +1 -4
- package/dist/esm/api/types/VcardContent.mjs +1 -3
- package/dist/esm/api/types/VcardEmail.d.mts +1 -4
- package/dist/esm/api/types/VcardEmail.mjs +1 -3
- package/dist/esm/api/types/VcardPhone.d.mts +1 -4
- package/dist/esm/api/types/VcardPhone.mjs +1 -3
- package/dist/esm/api/types/VcardResource.d.mts +0 -3
- package/dist/esm/api/types/VcardResource.mjs +1 -3
- package/dist/esm/api/types/VettingFeedback.d.mts +0 -3
- package/dist/esm/api/types/VettingFeedback.mjs +1 -3
- package/dist/esm/api/types/VettingHistory.d.mts +2 -7
- package/dist/esm/api/types/VettingHistory.mjs +2 -3
- package/dist/esm/api/types/VettingResults.d.mts +0 -3
- package/dist/esm/api/types/VettingResults.mjs +1 -3
- package/dist/esm/api/types/WebhookEventEnum.d.mts +1 -4
- package/dist/esm/api/types/WebhookEventEnum.mjs +4 -1
- package/dist/esm/api/types/WebhookResult.d.mts +1 -4
- package/dist/esm/api/types/WebhookResult.mjs +1 -3
- package/dist/esm/api/types/Webhooks.d.mts +0 -3
- package/dist/esm/api/types/Webhooks.mjs +1 -3
- package/dist/esm/api/types/ZodError.d.mts +0 -3
- package/dist/esm/api/types/ZodError.mjs +1 -3
- package/dist/esm/api/types/index.d.mts +125 -119
- package/dist/esm/api/types/index.mjs +125 -119
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +9 -4
- package/dist/esm/core/fetcher/Fetcher.mjs +205 -10
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -4
- package/dist/esm/core/fetcher/requestWithRetries.mjs +16 -21
- package/dist/esm/core/fetcher/signals.d.mts +0 -6
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/headers.d.mts +2 -3
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -4
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/PinnacleError.d.mts +1 -4
- package/dist/esm/errors/PinnacleError.mjs +2 -4
- package/dist/esm/errors/PinnacleTimeoutError.d.mts +0 -3
- package/dist/esm/errors/PinnacleTimeoutError.mjs +1 -3
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/messages/Client.mjs +1 -0
- package/dist/esm/wrapper/tools/FileUploader.d.mts +1 -1
- package/dist/esm/wrapper/tools/FileUploader.mjs +1 -0
- package/package.json +16 -16
- package/reference.md +1064 -610
- package/dist/cjs/api/resources/messages/resources/rcs/types/RcsSendResponse.d.ts +0 -5
- package/dist/cjs/api/types/RcsBase.d.ts +0 -31
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.d.ts +0 -15
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.js +0 -14
- package/dist/cjs/api/types/RcsTextContent.js +0 -5
- package/dist/cjs/api/types/ScheduledMessaage.js +0 -5
- package/dist/cjs/api/types/SentRcsDetails.js +0 -5
- package/dist/esm/api/resources/messages/resources/rcs/types/RcsSendResponse.d.mts +0 -5
- package/dist/esm/api/resources/messages/resources/rcs/types/RcsSendResponse.mjs +0 -4
- package/dist/esm/api/types/Options.mjs +0 -4
- package/dist/esm/api/types/RcsBase.d.mts +0 -31
- package/dist/esm/api/types/RcsBase.mjs +0 -4
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.d.mts +0 -15
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.mjs +0 -11
- package/dist/esm/api/types/RcsCards.mjs +0 -4
- package/dist/esm/api/types/RcsTextContent.mjs +0 -4
- package/dist/esm/api/types/ScheduledMessaage.mjs +0 -4
- package/dist/esm/api/types/SentRcsDetails.mjs +0 -4
package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../../../../../../index.js";
|
|
1
|
+
import type * as Pinnacle from "../../../../../../index.js";
|
|
5
2
|
/**
|
|
6
3
|
* @example
|
|
7
4
|
* {
|
|
8
5
|
* agent: {
|
|
9
6
|
* color: "#000000",
|
|
10
|
-
* description: "
|
|
7
|
+
* description: "Experience the power of RCS messaging with interactive demos. Test rich features like carousels, suggested replies, and media sharing. Get started with our developer-friendly APIs.",
|
|
11
8
|
* emails: [{
|
|
12
9
|
* email: "founders@trypinnacle.app",
|
|
13
10
|
* label: "Email Us"
|
|
14
11
|
* }],
|
|
15
|
-
* heroUrl: "https://
|
|
16
|
-
* iconUrl: "https://
|
|
17
|
-
* name: "Pinnacle
|
|
12
|
+
* heroUrl: "https://pncl.to/D6pDSqGxqgfbCfQmw4gXdnlHu4uSB4",
|
|
13
|
+
* iconUrl: "https://pncl.to/mq_tdIDenRb5eYpJiM8-3THCaUBrZP",
|
|
14
|
+
* name: "Pinnacle - RCS Demo",
|
|
18
15
|
* phones: [{
|
|
19
16
|
* label: "Contact us directly",
|
|
20
17
|
* phone: "+14154467821"
|
|
@@ -24,7 +21,6 @@ import * as Pinnacle from "../../../../../../index.js";
|
|
|
24
21
|
* url: "https://www.trypinnacle.app/"
|
|
25
22
|
* }]
|
|
26
23
|
* },
|
|
27
|
-
* brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
|
|
28
24
|
* brand: "b_1234567890",
|
|
29
25
|
* campaignId: "rcs_1234567890",
|
|
30
26
|
* 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."],
|
|
@@ -32,25 +28,41 @@ import * as Pinnacle from "../../../../../../index.js";
|
|
|
32
28
|
* privacyPolicy: "https://www.trypinnacle.app/privacy",
|
|
33
29
|
* termsOfService: "https://www.trypinnacle.app/terms"
|
|
34
30
|
* },
|
|
35
|
-
* optIn: {
|
|
36
|
-
* method: "WEBSITE",
|
|
37
|
-
* termsAndConditions: "Would you like to subscribe to Pinnacle?"
|
|
38
|
-
* },
|
|
39
|
-
* optOut: {
|
|
40
|
-
* description: "Reply STOP to opt-out anytime.",
|
|
41
|
-
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
42
|
-
* },
|
|
43
31
|
* useCase: {
|
|
44
|
-
* behavior: "
|
|
32
|
+
* behavior: "Pinnacle is a developer-focused RCS assistant that helps teams design, test, and optimize rich messaging experiences across SMS, MMS, and RCS. The agent acts as both an \u201Conboarding guide\u201D for new customers and a \u201Cbest-practices coach\u201D for existing teams exploring higher-value RCS workflows like rich cards, carousels, and suggested actions.<br>\nThe agent delivers a mix of operational updates and educational content (2\u20136 messages/month). Content includes important platform notices (e.g., deliverability or throughput changes), implementation tips with sample RCS templates, and personalized recommendations on how to upgrade existing SMS campaigns into richer, higher-converting RCS conversations.\n",
|
|
45
33
|
* value: "OTHER"
|
|
46
|
-
* }
|
|
34
|
+
* },
|
|
35
|
+
* optInTermsAndConditions: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
36
|
+
* messagingType: "MULTI_USE",
|
|
37
|
+
* carrierDescription: "Demonstrate the power of RCS to medium and large companies already sending massive SMS/MMS volumes through our platform. These clients send conversational messages in industries such as commerce, appointments, and customer support.",
|
|
38
|
+
* keywords: {
|
|
39
|
+
* HELP: {
|
|
40
|
+
* message: "Email founders@trypinnacle.app for support.",
|
|
41
|
+
* keywords: ["HELP", "SUPPORT"]
|
|
42
|
+
* },
|
|
43
|
+
* OPT_IN: {
|
|
44
|
+
* message: "Welcome back to Pinnacle!<br>\n\uD83D\uDD14 You're now subscribed to Pinnacle - RCS Demo and will continue receiving important updates and news. Feel free to contact this us at any time for help.<br>\n\nReply STOP to opt out and HELP for support. Message & rates may apply.\n",
|
|
45
|
+
* keywords: ["START", "SUBSCRIBE"]
|
|
46
|
+
* },
|
|
47
|
+
* OPT_OUT: {
|
|
48
|
+
* message: "You've been unsubscribed from Pinnacle - RCS Demo and will no longer receive notifications. If you ever change your mind, reply START or SUBSCRIBE to rejoin anytime.",
|
|
49
|
+
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
50
|
+
* }
|
|
51
|
+
* },
|
|
52
|
+
* traffic: {
|
|
53
|
+
* monthlyWebsite: 10000,
|
|
54
|
+
* monthlyRcsEstimate: 10000
|
|
55
|
+
* },
|
|
56
|
+
* agentTriggers: "The agent sends the first message when the user subscribes to Pinnacle. Messages are based on user actions such as pressing suggestion buttons. External triggers such as reminders can be setup by users in advance for a later time.",
|
|
57
|
+
* interactionDescription: "The agent's primary interaction will be customer service \u2014 helping users with questions, troubleshooting issues, and providing quick assistance through chat. Other interactions include appointment management and sending notifications to the user.",
|
|
58
|
+
* isConversational: true,
|
|
59
|
+
* ctaLanguage: "By checking this box and submitting this form, you consent to receive transactional text messages for support, appointment, and reminder messages from Pinnacle Software Development Inc. Reply STOP to opt out. Reply HELP for help. Standard message and data rates may apply. Message frequency may vary. View our Terms and Conditions at https://www.pinnacle.sh/terms. View our Privacy Policy at https://www.pinnacle.sh/privacy.",
|
|
60
|
+
* demoTrigger: "Text \"START\" to trigger the flow."
|
|
47
61
|
* }
|
|
48
62
|
*/
|
|
49
63
|
export interface UpsertRcsCampaignParams {
|
|
50
64
|
/** Create an agent for the campaign. */
|
|
51
65
|
agent?: UpsertRcsCampaignParams.Agent;
|
|
52
|
-
/** Link to document verifying the brand's name. This may be the certificate of incorporation, business license, or other relevant document. You can typically find this on the Secretary of State website. */
|
|
53
|
-
brandVerificationUrl?: string;
|
|
54
66
|
/** Unique identifier for the brand. */
|
|
55
67
|
brand?: string;
|
|
56
68
|
/** Unique identifier for the campaign. */
|
|
@@ -59,12 +71,30 @@ export interface UpsertRcsCampaignParams {
|
|
|
59
71
|
expectedAgentResponses?: string[];
|
|
60
72
|
/** Legal documentation links. */
|
|
61
73
|
links?: UpsertRcsCampaignParams.Links;
|
|
62
|
-
/** Opt-in configuration. */
|
|
63
|
-
optIn?: UpsertRcsCampaignParams.OptIn;
|
|
64
|
-
/** Opt-out configuration. */
|
|
65
|
-
optOut?: UpsertRcsCampaignParams.OptOut;
|
|
66
74
|
/** Use case classification for the campaign. */
|
|
67
75
|
useCase?: UpsertRcsCampaignParams.UseCase;
|
|
76
|
+
/** Details on how opt-in is acquired. If it is done through a website or app, provide the link. */
|
|
77
|
+
optInTermsAndConditions?: string;
|
|
78
|
+
messagingType?: Pinnacle.RcsMessagingTypeEnum;
|
|
79
|
+
/** Description of the agent's purpose, shown to carriers for approval. */
|
|
80
|
+
carrierDescription?: string;
|
|
81
|
+
keywords?: UpsertRcsCampaignParams.Keywords;
|
|
82
|
+
traffic?: UpsertRcsCampaignParams.Traffic;
|
|
83
|
+
/** Explanation of how the agent is triggered. This includes how the first message is delivered, whether messages follow a schedule or triggered by user actions, and any external triggers. */
|
|
84
|
+
agentTriggers?: string;
|
|
85
|
+
/** Description of all agent interactions. */
|
|
86
|
+
interactionDescription?: string;
|
|
87
|
+
/** Whether the agent supports conversational flows or respond to P2A messages from the users. Set to false for one-way messages from agent to user. */
|
|
88
|
+
isConversational?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Required text that appears next to the opt-in checkbox for your opt-in form. This checkbox has to be unchecked by default. The text should meet the US CTIA requirements and is usually in the following format: <br>
|
|
91
|
+
*
|
|
92
|
+
* [Program description of the company sending the messages and what type of messages are being sent]. Msg&data rates may apply. [Message frequency: How frequently messages are sent]. [Privacy statement or link to privacy policy]. [Link to full mobile
|
|
93
|
+
* T&Cs page].
|
|
94
|
+
*/
|
|
95
|
+
ctaLanguage?: string;
|
|
96
|
+
/** Instructions on how an external reviewer can trigger messages and an example flow from the agent. This is usually an inbound text message to the agent that will start a flow of messages between the agent and the user. */
|
|
97
|
+
demoTrigger?: string;
|
|
68
98
|
}
|
|
69
99
|
export declare namespace UpsertRcsCampaignParams {
|
|
70
100
|
/**
|
|
@@ -77,7 +107,11 @@ export declare namespace UpsertRcsCampaignParams {
|
|
|
77
107
|
* Must have sufficient contrast with white.
|
|
78
108
|
*/
|
|
79
109
|
color?: string;
|
|
80
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Description of the agent. <br>
|
|
112
|
+
*
|
|
113
|
+
* Be clear, concise, user-focused, and highlight what the agent does and the benefits it provides for the user.
|
|
114
|
+
*/
|
|
81
115
|
description?: string;
|
|
82
116
|
/** List of emails (1-3 required). */
|
|
83
117
|
emails?: Agent.Emails.Item[];
|
|
@@ -85,7 +119,11 @@ export declare namespace UpsertRcsCampaignParams {
|
|
|
85
119
|
heroUrl?: string;
|
|
86
120
|
/** Link to the agent's icon. Icon must be an image file with dimensions 224x224px. */
|
|
87
121
|
iconUrl?: string;
|
|
88
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* Name of the agent. <br>
|
|
124
|
+
*
|
|
125
|
+
* Recommended format: [Brand Name] - [1-2 word description of purpose]
|
|
126
|
+
*/
|
|
89
127
|
name?: string;
|
|
90
128
|
/** List of phone numbers (1-3 required). */
|
|
91
129
|
phones?: Agent.Phones.Item[];
|
|
@@ -130,33 +168,58 @@ export declare namespace UpsertRcsCampaignParams {
|
|
|
130
168
|
/** Terms of service URL. */
|
|
131
169
|
termsOfService?: string;
|
|
132
170
|
}
|
|
133
|
-
/**
|
|
134
|
-
* Opt-in configuration.
|
|
135
|
-
*/
|
|
136
|
-
interface OptIn {
|
|
137
|
-
method?: Pinnacle.RcsCampaignOptInMethodEnum;
|
|
138
|
-
/** Message shown to users explaining what they are agreeing to when opting in. */
|
|
139
|
-
termsAndConditions?: string;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Opt-out configuration.
|
|
143
|
-
*/
|
|
144
|
-
interface OptOut {
|
|
145
|
-
/** Description for the keyword. */
|
|
146
|
-
description?: string;
|
|
147
|
-
/**
|
|
148
|
-
* Keywords to opt-out. <br>
|
|
149
|
-
*
|
|
150
|
-
* Each keyword must be a single word with no spaces or whitespace characters.
|
|
151
|
-
*/
|
|
152
|
-
keywords?: string[];
|
|
153
|
-
}
|
|
154
171
|
/**
|
|
155
172
|
* Use case classification for the campaign.
|
|
156
173
|
*/
|
|
157
174
|
interface UseCase {
|
|
158
|
-
/**
|
|
175
|
+
/** Detailed summary of what the brand is and how this agent will be used. */
|
|
159
176
|
behavior?: string;
|
|
160
177
|
value?: Pinnacle.RcsCampaignUseCaseEnum;
|
|
161
178
|
}
|
|
179
|
+
interface Keywords {
|
|
180
|
+
HELP?: Keywords.Help;
|
|
181
|
+
OPT_IN?: Keywords.OptIn;
|
|
182
|
+
OPT_OUT?: Keywords.OptOut;
|
|
183
|
+
}
|
|
184
|
+
namespace Keywords {
|
|
185
|
+
interface Help {
|
|
186
|
+
/**
|
|
187
|
+
* Message sent when a user sends HELP. Must include at least one support contact method (phone, email, or website).<br>
|
|
188
|
+
*
|
|
189
|
+
* Recommended format: [Verb] [Contact Information] for support.
|
|
190
|
+
*/
|
|
191
|
+
message?: string;
|
|
192
|
+
/** Keywords that trigger help response (HELP, SUPPORT, INFO, etc). */
|
|
193
|
+
keywords?: string[];
|
|
194
|
+
}
|
|
195
|
+
interface OptIn {
|
|
196
|
+
/**
|
|
197
|
+
* Message sent when a user opt-in. Must include brand name, confirmation of subscription, and disclosures (STOP and HELP instructions, message and data rates).<br>
|
|
198
|
+
*
|
|
199
|
+
* Recommended Format:<br>
|
|
200
|
+
* [Greetings]<br>
|
|
201
|
+
* You are now subscribed to [Agent Name] and will receive [type of messages that the agent will send]. Feel free to contact us any time for help. <br>
|
|
202
|
+
* Reply STOP to opt out and HELP for support. Message & rates may apply.
|
|
203
|
+
*/
|
|
204
|
+
message?: string;
|
|
205
|
+
/** Keywords that trigger opt-in response (START, SUBSCRIBE, JOIN, etc). */
|
|
206
|
+
keywords?: string[];
|
|
207
|
+
}
|
|
208
|
+
interface OptOut {
|
|
209
|
+
/**
|
|
210
|
+
* Message sent when a user opt-out. Must include brand name, acknowledge opt-out request and state user will not receive further messages. No marketing or re-engagement attempts.<br>
|
|
211
|
+
*
|
|
212
|
+
* Recommended format: "You've been unsubscribed from [Agent Name] and will no longer receive messages. If you ever change your mind, reply START or SUBSCRIBE to rejoin anytime."
|
|
213
|
+
*/
|
|
214
|
+
message?: string;
|
|
215
|
+
/** Keywords that trigger opt-out response (END, UNSUBSCRIBE, STOP, etc). */
|
|
216
|
+
keywords?: string[];
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
interface Traffic {
|
|
220
|
+
/** Estimated monthly website visitors. */
|
|
221
|
+
monthlyWebsite?: number;
|
|
222
|
+
/** Estimated monthly RCS messages sent. */
|
|
223
|
+
monthlyRcsEstimate?: number;
|
|
224
|
+
}
|
|
162
225
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { UpsertRcsCampaignParams } from "./UpsertRcsCampaignParams.js";
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types/index.js"), exports);
|
|
18
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../../../../../index.js";
|
|
1
|
+
import type * as Pinnacle from "../../../../../index.js";
|
|
5
2
|
export interface RcsAutofillResponse extends Pinnacle.RcsCampaign {
|
|
6
3
|
brand?: string;
|
|
7
4
|
}
|
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../../../environments.js";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
5
2
|
import * as core from "../../../../../../core/index.js";
|
|
6
3
|
import * as Pinnacle from "../../../../../index.js";
|
|
7
4
|
export declare namespace TollFree {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.PinnacleEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
13
|
-
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
15
6
|
}
|
|
16
|
-
interface RequestOptions {
|
|
17
|
-
/** The maximum time to wait for a response in seconds. */
|
|
18
|
-
timeoutInSeconds?: number;
|
|
19
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
-
maxRetries?: number;
|
|
21
|
-
/** A hook to abort the request. */
|
|
22
|
-
abortSignal?: AbortSignal;
|
|
23
|
-
/** Additional query string parameters to include in the request. */
|
|
24
|
-
queryParams?: Record<string, unknown>;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
27
8
|
}
|
|
28
9
|
}
|
|
29
10
|
export declare class TollFree {
|
|
@@ -96,6 +77,19 @@ export declare class TollFree {
|
|
|
96
77
|
* await client.campaigns.tollFree.upsert({
|
|
97
78
|
* brand: "b_1234567890",
|
|
98
79
|
* campaignId: "tf_1234567890",
|
|
80
|
+
* keywords: {
|
|
81
|
+
* HELP: {
|
|
82
|
+
* message: "Email founders@trypinnacle.app for support."
|
|
83
|
+
* },
|
|
84
|
+
* OPT_IN: {
|
|
85
|
+
* message: "Welcome back to Pinnacle!<br>\n\uD83D\uDD14 You're now subscribed to Pinnacle and will continue receiving important updates and news. Feel free to contact this us at any time for help.<br>\n\nReply STOP to opt out and HELP for support. Message & rates may apply.\n",
|
|
86
|
+
* keywords: ["START", "SUBSCRIBE"]
|
|
87
|
+
* }
|
|
88
|
+
* },
|
|
89
|
+
* links: {
|
|
90
|
+
* privacyPolicy: "https://www.pinnacle.sh/privacy",
|
|
91
|
+
* termsOfService: "https://www.pinnacle.sh/terms"
|
|
92
|
+
* },
|
|
99
93
|
* monthlyVolume: "1,000",
|
|
100
94
|
* name: "Pinnacle",
|
|
101
95
|
* optIn: {
|
|
@@ -103,6 +97,9 @@ export declare class TollFree {
|
|
|
103
97
|
* url: "https://www.pinnacle.sh/",
|
|
104
98
|
* workflowDescription: "Visit https://www.pinnacle.sh/"
|
|
105
99
|
* },
|
|
100
|
+
* options: {
|
|
101
|
+
* ageGated: false
|
|
102
|
+
* },
|
|
106
103
|
* productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
|
|
107
104
|
* useCase: {
|
|
108
105
|
* summary: "Alerts clients about any Pinnacle hosted workshops.",
|
|
@@ -130,7 +127,5 @@ export declare class TollFree {
|
|
|
130
127
|
*/
|
|
131
128
|
validate(request: Pinnacle.ValidateCampaignParams, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignValidationResult>;
|
|
132
129
|
private __validate;
|
|
133
|
-
protected _getCustomAuthorizationHeaders(): Promise<
|
|
134
|
-
"PINNACLE-API-KEY": string | undefined;
|
|
135
|
-
}>;
|
|
130
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
136
131
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -46,11 +44,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
46
44
|
};
|
|
47
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
46
|
exports.TollFree = void 0;
|
|
49
|
-
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
-
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
-
const Pinnacle = __importStar(require("../../../../../index.js"));
|
|
52
47
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
48
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
53
50
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
51
|
+
const Pinnacle = __importStar(require("../../../../../index.js"));
|
|
54
52
|
class TollFree {
|
|
55
53
|
constructor(_options = {}) {
|
|
56
54
|
this._options = _options;
|
|
@@ -76,8 +74,8 @@ class TollFree {
|
|
|
76
74
|
}
|
|
77
75
|
__autofill(request, requestOptions) {
|
|
78
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
var _a, _b, _c;
|
|
80
|
-
|
|
77
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
78
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
81
79
|
const _response = yield core.fetcher({
|
|
82
80
|
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/toll-free/autofill"),
|
|
83
81
|
method: "POST",
|
|
@@ -86,9 +84,11 @@ class TollFree {
|
|
|
86
84
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
87
85
|
requestType: "json",
|
|
88
86
|
body: request,
|
|
89
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
90
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
87
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
88
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
91
89
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
91
|
+
logging: this._options.logging,
|
|
92
92
|
});
|
|
93
93
|
if (_response.ok) {
|
|
94
94
|
return {
|
|
@@ -148,16 +148,18 @@ class TollFree {
|
|
|
148
148
|
}
|
|
149
149
|
__get(campaignId, requestOptions) {
|
|
150
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
-
var _a, _b, _c;
|
|
152
|
-
|
|
151
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
152
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
153
153
|
const _response = yield core.fetcher({
|
|
154
|
-
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/toll-free/${
|
|
154
|
+
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/toll-free/${core.url.encodePathParam(campaignId)}`),
|
|
155
155
|
method: "GET",
|
|
156
156
|
headers: _headers,
|
|
157
157
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
158
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
159
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
158
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
159
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
160
160
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
161
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
162
|
+
logging: this._options.logging,
|
|
161
163
|
});
|
|
162
164
|
if (_response.ok) {
|
|
163
165
|
return {
|
|
@@ -219,16 +221,18 @@ class TollFree {
|
|
|
219
221
|
}
|
|
220
222
|
__submit(campaignId, requestOptions) {
|
|
221
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
-
var _a, _b, _c;
|
|
223
|
-
|
|
224
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
225
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
224
226
|
const _response = yield core.fetcher({
|
|
225
|
-
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/toll-free/submit/${
|
|
227
|
+
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/toll-free/submit/${core.url.encodePathParam(campaignId)}`),
|
|
226
228
|
method: "POST",
|
|
227
229
|
headers: _headers,
|
|
228
230
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
229
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
230
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
231
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
232
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
231
233
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
234
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
235
|
+
logging: this._options.logging,
|
|
232
236
|
});
|
|
233
237
|
if (_response.ok) {
|
|
234
238
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -285,6 +289,19 @@ class TollFree {
|
|
|
285
289
|
* await client.campaigns.tollFree.upsert({
|
|
286
290
|
* brand: "b_1234567890",
|
|
287
291
|
* campaignId: "tf_1234567890",
|
|
292
|
+
* keywords: {
|
|
293
|
+
* HELP: {
|
|
294
|
+
* message: "Email founders@trypinnacle.app for support."
|
|
295
|
+
* },
|
|
296
|
+
* OPT_IN: {
|
|
297
|
+
* message: "Welcome back to Pinnacle!<br>\n\uD83D\uDD14 You're now subscribed to Pinnacle and will continue receiving important updates and news. Feel free to contact this us at any time for help.<br>\n\nReply STOP to opt out and HELP for support. Message & rates may apply.\n",
|
|
298
|
+
* keywords: ["START", "SUBSCRIBE"]
|
|
299
|
+
* }
|
|
300
|
+
* },
|
|
301
|
+
* links: {
|
|
302
|
+
* privacyPolicy: "https://www.pinnacle.sh/privacy",
|
|
303
|
+
* termsOfService: "https://www.pinnacle.sh/terms"
|
|
304
|
+
* },
|
|
288
305
|
* monthlyVolume: "1,000",
|
|
289
306
|
* name: "Pinnacle",
|
|
290
307
|
* optIn: {
|
|
@@ -292,6 +309,9 @@ class TollFree {
|
|
|
292
309
|
* url: "https://www.pinnacle.sh/",
|
|
293
310
|
* workflowDescription: "Visit https://www.pinnacle.sh/"
|
|
294
311
|
* },
|
|
312
|
+
* options: {
|
|
313
|
+
* ageGated: false
|
|
314
|
+
* },
|
|
295
315
|
* productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
|
|
296
316
|
* useCase: {
|
|
297
317
|
* summary: "Alerts clients about any Pinnacle hosted workshops.",
|
|
@@ -304,8 +324,8 @@ class TollFree {
|
|
|
304
324
|
}
|
|
305
325
|
__upsert() {
|
|
306
326
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
307
|
-
var _a, _b, _c;
|
|
308
|
-
|
|
327
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
328
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
309
329
|
const _response = yield core.fetcher({
|
|
310
330
|
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/toll-free"),
|
|
311
331
|
method: "POST",
|
|
@@ -314,9 +334,11 @@ class TollFree {
|
|
|
314
334
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
315
335
|
requestType: "json",
|
|
316
336
|
body: request,
|
|
317
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
318
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
337
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
338
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
319
339
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
340
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
341
|
+
logging: this._options.logging,
|
|
320
342
|
});
|
|
321
343
|
if (_response.ok) {
|
|
322
344
|
return {
|
|
@@ -380,8 +402,8 @@ class TollFree {
|
|
|
380
402
|
}
|
|
381
403
|
__validate(request, requestOptions) {
|
|
382
404
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
|
-
var _a, _b, _c;
|
|
384
|
-
|
|
405
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
406
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
385
407
|
const _response = yield core.fetcher({
|
|
386
408
|
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/toll-free/validate"),
|
|
387
409
|
method: "POST",
|
|
@@ -390,9 +412,11 @@ class TollFree {
|
|
|
390
412
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
391
413
|
requestType: "json",
|
|
392
414
|
body: request,
|
|
393
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
394
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
415
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
416
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
395
417
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
418
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
419
|
+
logging: this._options.logging,
|
|
396
420
|
});
|
|
397
421
|
if (_response.ok) {
|
|
398
422
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../../../../../../index.js";
|
|
1
|
+
import type * as Pinnacle from "../../../../../../index.js";
|
|
5
2
|
/**
|
|
6
3
|
* @example
|
|
7
4
|
* {
|
|
8
5
|
* brand: "b_1234567890",
|
|
9
6
|
* campaignId: "tf_1234567890",
|
|
7
|
+
* keywords: {
|
|
8
|
+
* HELP: {
|
|
9
|
+
* message: "Email founders@trypinnacle.app for support."
|
|
10
|
+
* },
|
|
11
|
+
* OPT_IN: {
|
|
12
|
+
* message: "Welcome back to Pinnacle!<br>\n\uD83D\uDD14 You're now subscribed to Pinnacle and will continue receiving important updates and news. Feel free to contact this us at any time for help.<br>\n\nReply STOP to opt out and HELP for support. Message & rates may apply.\n",
|
|
13
|
+
* keywords: ["START", "SUBSCRIBE"]
|
|
14
|
+
* }
|
|
15
|
+
* },
|
|
16
|
+
* links: {
|
|
17
|
+
* privacyPolicy: "https://www.pinnacle.sh/privacy",
|
|
18
|
+
* termsOfService: "https://www.pinnacle.sh/terms"
|
|
19
|
+
* },
|
|
10
20
|
* monthlyVolume: "1,000",
|
|
11
21
|
* name: "Pinnacle",
|
|
12
22
|
* optIn: {
|
|
@@ -14,6 +24,9 @@ import * as Pinnacle from "../../../../../../index.js";
|
|
|
14
24
|
* url: "https://www.pinnacle.sh/",
|
|
15
25
|
* workflowDescription: "Visit https://www.pinnacle.sh/"
|
|
16
26
|
* },
|
|
27
|
+
* options: {
|
|
28
|
+
* ageGated: false
|
|
29
|
+
* },
|
|
17
30
|
* productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
|
|
18
31
|
* useCase: {
|
|
19
32
|
* summary: "Alerts clients about any Pinnacle hosted workshops.",
|
|
@@ -26,17 +39,59 @@ export interface UpsertTollFreeCampaignParams {
|
|
|
26
39
|
brand?: string;
|
|
27
40
|
/** Unique identifier for the campaign. This identifier is a string that always begins with the prefix `tf_`, for example: `tf_1234567890`. */
|
|
28
41
|
campaignId?: string;
|
|
42
|
+
/** Keyword response configuration. */
|
|
43
|
+
keywords?: UpsertTollFreeCampaignParams.Keywords;
|
|
44
|
+
/** Legal documentation links. */
|
|
45
|
+
links?: UpsertTollFreeCampaignParams.Links;
|
|
29
46
|
monthlyVolume?: Pinnacle.MessageVolumeEnum;
|
|
30
47
|
/** Display name of the campaign. */
|
|
31
48
|
name?: string;
|
|
32
49
|
/** Opt-in keyword settings. */
|
|
33
50
|
optIn?: UpsertTollFreeCampaignParams.OptIn;
|
|
51
|
+
/** Campaign configuration options. */
|
|
52
|
+
options?: UpsertTollFreeCampaignParams.Options;
|
|
34
53
|
/** Explain message that would be sent. */
|
|
35
54
|
productionMessageContent?: string;
|
|
36
55
|
/** Use case classification for the campaign. */
|
|
37
56
|
useCase?: UpsertTollFreeCampaignParams.UseCase;
|
|
38
57
|
}
|
|
39
58
|
export declare namespace UpsertTollFreeCampaignParams {
|
|
59
|
+
/**
|
|
60
|
+
* Keyword response configuration.
|
|
61
|
+
*/
|
|
62
|
+
interface Keywords {
|
|
63
|
+
/** Help keyword settings. */
|
|
64
|
+
HELP?: Keywords.Help;
|
|
65
|
+
/** Opt-in keyword settings. */
|
|
66
|
+
OPT_IN?: Keywords.OptIn;
|
|
67
|
+
}
|
|
68
|
+
namespace Keywords {
|
|
69
|
+
/**
|
|
70
|
+
* Help keyword settings.
|
|
71
|
+
*/
|
|
72
|
+
interface Help {
|
|
73
|
+
/** Message sent when a user sends HELP. Must include at least one support contact method (phone, email, or website). */
|
|
74
|
+
message?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Opt-in keyword settings.
|
|
78
|
+
*/
|
|
79
|
+
interface OptIn {
|
|
80
|
+
/** Message sent when a user opt-in. Must include brand name, confirmation of subscription, and disclosures (STOP and HELP instructions, message and data rates). */
|
|
81
|
+
message?: string;
|
|
82
|
+
/** Keywords that trigger opt-in response. */
|
|
83
|
+
keywords?: string[];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Legal documentation links.
|
|
88
|
+
*/
|
|
89
|
+
interface Links {
|
|
90
|
+
/** Privacy policy URL. */
|
|
91
|
+
privacyPolicy?: string;
|
|
92
|
+
/** Terms of service URL. */
|
|
93
|
+
termsOfService?: string;
|
|
94
|
+
}
|
|
40
95
|
/**
|
|
41
96
|
* Opt-in keyword settings.
|
|
42
97
|
*/
|
|
@@ -47,6 +102,13 @@ export declare namespace UpsertTollFreeCampaignParams {
|
|
|
47
102
|
/** Explain how users find the opt-in. */
|
|
48
103
|
workflowDescription?: string;
|
|
49
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Campaign configuration options.
|
|
107
|
+
*/
|
|
108
|
+
interface Options {
|
|
109
|
+
/** Whether the campaign is age-gated. */
|
|
110
|
+
ageGated?: boolean;
|
|
111
|
+
}
|
|
50
112
|
/**
|
|
51
113
|
* Use case classification for the campaign.
|
|
52
114
|
*/
|