rcs-js 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +248 -0
- package/dist/cjs/BaseClient.d.ts +30 -0
- package/dist/cjs/{api/types/RcsCards.js → BaseClient.js} +1 -3
- package/dist/cjs/Client.d.ts +6 -26
- package/dist/cjs/Client.js +27 -29
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -4
- package/dist/cjs/api/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/errors/InternalServerError.d.ts +2 -5
- package/dist/cjs/api/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -4
- package/dist/cjs/api/errors/NotFoundError.js +1 -3
- package/dist/cjs/api/errors/NotImplementedError.d.ts +2 -5
- package/dist/cjs/api/errors/NotImplementedError.js +1 -3
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +2 -5
- package/dist/cjs/api/errors/PaymentRequiredError.js +1 -3
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +2 -5
- package/dist/cjs/api/errors/UnauthorizedError.js +1 -3
- package/dist/cjs/api/errors/index.d.ts +2 -2
- package/dist/cjs/api/errors/index.js +2 -2
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/audiences/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/audiences/client/Client.js +32 -26
- package/dist/cjs/api/resources/audiences/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesDeleteRequest.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesDeleteRequest.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/AudiencesGetRequest.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/CreateAudienceParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/CreateAudienceParams.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/UpdateAudienceParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/client/requests/UpdateAudienceParams.js +1 -3
- package/dist/cjs/api/resources/audiences/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/audiences/index.d.ts +1 -1
- package/dist/cjs/api/resources/audiences/index.js +1 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.js +16 -14
- package/dist/cjs/api/resources/audiences/resources/contacts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.js +1 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.ts +0 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.js +1 -3
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/audiences/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/audiences/resources/index.js +4 -4
- package/dist/cjs/api/resources/audiences/types/AudiencesGetResponse.d.ts +1 -4
- package/dist/cjs/api/resources/audiences/types/AudiencesGetResponse.js +1 -3
- package/dist/cjs/api/resources/brands/client/Client.d.ts +6 -25
- package/dist/cjs/api/resources/brands/client/Client.js +46 -34
- package/dist/cjs/api/resources/brands/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/brands/client/requests/AutofillBrandParams.d.ts +0 -3
- package/dist/cjs/api/resources/brands/client/requests/AutofillBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +4 -4
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.d.ts +4 -4
- package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/VetBrandParams.d.ts +1 -5
- package/dist/cjs/api/resources/brands/client/requests/VetBrandParams.js +1 -3
- package/dist/cjs/api/resources/brands/client/requests/index.d.ts +5 -5
- package/dist/cjs/api/resources/campaigns/client/Client.d.ts +3 -13
- package/dist/cjs/api/resources/campaigns/client/Client.js +5 -7
- package/dist/cjs/api/resources/campaigns/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +36 -28
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/index.d.ts +5 -5
- package/dist/cjs/api/resources/campaigns/resources/index.js +9 -9
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +36 -40
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +68 -43
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +112 -49
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +20 -25
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +52 -28
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +66 -4
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.js +1 -3
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/index.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/index.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -4
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.js +1 -3
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/contacts/client/Client.js +24 -20
- package/dist/cjs/api/resources/contacts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/CreateContactParams.d.ts +1 -4
- package/dist/cjs/api/resources/contacts/client/requests/CreateContactParams.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +1 -4
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.js +1 -3
- package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/conversations/client/Client.js +37 -31
- package/dist/cjs/api/resources/conversations/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +0 -3
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.js +1 -3
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/index.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/index.js +1 -1
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +1 -3
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +1 -4
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +1 -3
- package/dist/cjs/api/resources/conversations/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/types/index.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +12 -12
- package/dist/cjs/api/resources/index.js +16 -16
- package/dist/cjs/api/resources/messages/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/messages/client/Client.js +101 -21
- package/dist/cjs/api/resources/messages/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +0 -3
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.js +1 -3
- package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/messages/resources/index.js +8 -8
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +16 -14
- package/dist/cjs/api/resources/messages/resources/mms/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/Mms.d.ts +1 -4
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/Mms.js +1 -3
- package/dist/cjs/api/resources/messages/resources/mms/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/types/MmsSendResponse.d.ts +2 -5
- package/dist/cjs/api/resources/messages/resources/mms/types/MmsSendResponse.js +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +5 -26
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +26 -19
- package/dist/cjs/api/resources/messages/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.ts +0 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.js +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/types/SendRichMessageResponse.d.ts +2 -0
- package/dist/cjs/api/resources/messages/resources/rcs/types/{RcsSendResponse.js → SendRichMessageResponse.js} +1 -3
- package/dist/cjs/api/resources/messages/resources/rcs/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/types/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.js +16 -14
- package/dist/cjs/api/resources/messages/resources/sms/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/Sms.d.ts +1 -4
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/Sms.js +1 -3
- package/dist/cjs/api/resources/messages/resources/sms/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/index.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/index.js +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/types/SmsSendResponse.d.ts +2 -5
- package/dist/cjs/api/resources/messages/resources/sms/types/SmsSendResponse.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +5 -26
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +26 -22
- package/dist/cjs/api/resources/phoneNumbers/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.ts +0 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.js +6 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/phoneNumbers/index.d.ts +1 -1
- package/dist/cjs/api/resources/phoneNumbers/index.js +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +16 -14
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.ts +0 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.js +1 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/index.js +6 -6
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +18 -16
- package/dist/cjs/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +1 -4
- package/dist/cjs/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.js +1 -3
- package/dist/cjs/api/resources/rcs/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/rcs/client/Client.js +22 -18
- package/dist/cjs/api/resources/rcs/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsLinkRequest.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsLinkRequest.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.d.ts +0 -3
- package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.js +1 -3
- package/dist/cjs/api/resources/rcs/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/status/client/Client.d.ts +2 -12
- package/dist/cjs/api/resources/status/client/Client.js +1 -3
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +39 -31
- package/dist/cjs/api/resources/tools/client/Client.d.ts +4 -14
- package/dist/cjs/api/resources/tools/client/Client.js +5 -7
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +16 -14
- package/dist/cjs/api/resources/tools/resources/contactCard/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +16 -14
- package/dist/cjs/api/resources/tools/resources/file/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/file/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/tools/resources/index.js +8 -8
- package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/tools/resources/url/client/Client.js +24 -20
- package/dist/cjs/api/resources/tools/resources/url/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/url/client/requests/CreateUrlParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.ts +1 -4
- package/dist/cjs/api/resources/tools/resources/url/client/requests/UpdateUrlParams.js +1 -3
- package/dist/cjs/api/resources/tools/resources/url/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +4 -25
- package/dist/cjs/api/resources/webhooks/client/Client.js +10 -10
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.d.ts +0 -3
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.js +1 -3
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/AdvancedPhoneInformation.d.ts +2 -5
- package/dist/cjs/api/types/AdvancedPhoneInformation.js +7 -3
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -4
- package/dist/cjs/api/types/AttachWebhookParams.js +1 -3
- package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +1 -4
- package/dist/cjs/api/types/AttachedPhoneNumberResult.js +1 -3
- package/dist/cjs/api/types/AudienceCountOnly.d.ts +0 -3
- package/dist/cjs/api/types/AudienceCountOnly.js +1 -3
- package/dist/cjs/api/types/AudienceWithPagination.d.ts +1 -4
- package/dist/cjs/api/types/AudienceWithPagination.js +1 -3
- package/dist/cjs/api/types/AutofillCampaignParams.d.ts +0 -3
- package/dist/cjs/api/types/AutofillCampaignParams.js +1 -3
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +1 -4
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.js +1 -3
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +1 -4
- package/dist/cjs/api/types/BadRequestErrorBody.js +1 -3
- package/dist/cjs/api/types/BaseRichMessage.d.ts +9 -0
- package/dist/cjs/api/types/{RcsBase.js → BaseRichMessage.js} +1 -3
- package/dist/cjs/api/types/BasicPhoneInformation.d.ts +1 -4
- package/dist/cjs/api/types/BasicPhoneInformation.js +1 -3
- package/dist/cjs/api/types/BrandStatus.d.ts +1 -4
- package/dist/cjs/api/types/BrandStatus.js +1 -3
- package/dist/cjs/api/types/BrandStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/BrandStatusEnum.js +10 -3
- package/dist/cjs/api/types/ButtonClicked.d.ts +1 -4
- package/dist/cjs/api/types/ButtonClicked.js +1 -3
- package/dist/cjs/api/types/ButtonClickedData.d.ts +2 -5
- package/dist/cjs/api/types/ButtonClickedData.js +7 -3
- package/dist/cjs/api/types/CampaignEnum.d.ts +1 -4
- package/dist/cjs/api/types/CampaignEnum.js +7 -3
- package/dist/cjs/api/types/CampaignQuery.d.ts +1 -4
- package/dist/cjs/api/types/CampaignQuery.js +1 -3
- package/dist/cjs/api/types/CampaignSubmissionResult.d.ts +0 -3
- package/dist/cjs/api/types/CampaignSubmissionResult.js +1 -3
- package/dist/cjs/api/types/CampaignValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/CampaignValidationResult.js +1 -3
- package/dist/cjs/api/types/CancelScheduledMessageResponse.d.ts +4 -0
- package/dist/cjs/api/types/{Options.js → CancelScheduledMessageResponse.js} +1 -3
- package/dist/cjs/api/types/CompanyEntityTypeEnum.d.ts +9 -0
- package/dist/cjs/api/types/CompanyEntityTypeEnum.js +12 -0
- package/dist/cjs/api/types/CompanySectorEnum.d.ts +2 -7
- package/dist/cjs/api/types/CompanySectorEnum.js +2 -3
- package/dist/cjs/api/types/CompanyTypeEnum.d.ts +2 -7
- package/dist/cjs/api/types/CompanyTypeEnum.js +2 -3
- package/dist/cjs/api/types/ConfiguredWebhook.d.ts +1 -4
- package/dist/cjs/api/types/ConfiguredWebhook.js +1 -3
- package/dist/cjs/api/types/Contact.d.ts +0 -3
- package/dist/cjs/api/types/Contact.js +1 -3
- package/dist/cjs/api/types/ContactId.d.ts +0 -3
- package/dist/cjs/api/types/ContactId.js +1 -3
- package/dist/cjs/api/types/Conversation.d.ts +1 -4
- package/dist/cjs/api/types/Conversation.js +1 -3
- package/dist/cjs/api/types/ConversationList.d.ts +1 -4
- package/dist/cjs/api/types/ConversationList.js +1 -3
- package/dist/cjs/api/types/CreateUrlOptions.d.ts +0 -3
- package/dist/cjs/api/types/CreateUrlOptions.js +1 -3
- package/dist/cjs/api/types/DeleteAudienceResponse.d.ts +0 -3
- package/dist/cjs/api/types/DeleteAudienceResponse.js +1 -3
- package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +1 -4
- package/dist/cjs/api/types/DetachedPhoneNumberResult.js +1 -3
- package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +0 -3
- package/dist/cjs/api/types/DetachedWebhookInfo.js +1 -3
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.d.ts +1 -4
- package/dist/cjs/api/types/DetailedPhoneNumberEnum.js +7 -3
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/DlcAssignmentStatusEnum.js +10 -3
- package/dist/cjs/api/types/DlcCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/DlcCampaignStatus.js +1 -3
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/DlcCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +1 -4
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.js +1 -3
- package/dist/cjs/api/types/EnhancedContact.d.ts +1 -4
- package/dist/cjs/api/types/EnhancedContact.js +1 -3
- package/dist/cjs/api/types/EnhancedContactItem.d.ts +0 -3
- package/dist/cjs/api/types/EnhancedContactItem.js +1 -3
- package/dist/cjs/api/types/Error_.d.ts +0 -3
- package/dist/cjs/api/types/Error_.js +1 -3
- package/dist/cjs/api/types/ExtendedBrand.d.ts +1 -4
- package/dist/cjs/api/types/ExtendedBrand.js +1 -3
- package/dist/cjs/api/types/ExtendedBrandWithVetting.d.ts +1 -4
- package/dist/cjs/api/types/ExtendedBrandWithVetting.js +1 -3
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +55 -30
- package/dist/cjs/api/types/ExtendedRcsCampaign.js +1 -3
- package/dist/cjs/api/types/GetConversationParams.d.ts +0 -3
- package/dist/cjs/api/types/GetConversationParams.js +1 -3
- package/dist/cjs/api/types/LinkClickEvent.d.ts +0 -3
- package/dist/cjs/api/types/LinkClickEvent.js +1 -3
- package/dist/cjs/api/types/LocationShareAction.d.ts +0 -3
- package/dist/cjs/api/types/LocationShareAction.js +1 -3
- package/dist/cjs/api/types/Message.d.ts +1 -4
- package/dist/cjs/api/types/Message.js +1 -3
- package/dist/cjs/api/types/MessageContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageContent.js +1 -3
- package/dist/cjs/api/types/MessageEvent.d.ts +3 -8
- package/dist/cjs/api/types/MessageEvent.js +2 -3
- package/dist/cjs/api/types/MessageEventContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventContent.js +1 -3
- package/dist/cjs/api/types/MessageEventMmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MessageEventMmsContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsButtonData.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsButtonData.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsCardsContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsCardsContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsLocationData.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsLocationData.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsMediaContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsMediaContent.js +1 -3
- package/dist/cjs/api/types/MessageEventRcsTextContent.d.ts +1 -4
- package/dist/cjs/api/types/MessageEventRcsTextContent.js +1 -3
- package/dist/cjs/api/types/MessageEventSmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MessageEventSmsContent.js +1 -3
- package/dist/cjs/api/types/MessageList.d.ts +1 -4
- package/dist/cjs/api/types/MessageList.js +1 -3
- package/dist/cjs/api/types/MessageMethodEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageMethodEnum.js +2 -3
- package/dist/cjs/api/types/MessageProtocolEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageProtocolEnum.js +2 -3
- package/dist/cjs/api/types/MessageSchedule.d.ts +7 -4
- package/dist/cjs/api/types/MessageSchedule.js +1 -3
- package/dist/cjs/api/types/MessageStatusEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageStatusEnum.js +2 -3
- package/dist/cjs/api/types/MessageVolumeEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessageVolumeEnum.js +2 -3
- package/dist/cjs/api/types/MessageWithReaction.d.ts +3 -8
- package/dist/cjs/api/types/MessageWithReaction.js +2 -3
- package/dist/cjs/api/types/MessagingProfileEnum.d.ts +2 -7
- package/dist/cjs/api/types/MessagingProfileEnum.js +2 -3
- package/dist/cjs/api/types/MmsContent.d.ts +0 -3
- package/dist/cjs/api/types/MmsContent.js +1 -3
- package/dist/cjs/api/types/MmsValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/MmsValidationResult.js +1 -3
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/NotFoundErrorBody.js +1 -3
- package/dist/cjs/api/types/NumberFormat.d.ts +0 -3
- package/dist/cjs/api/types/NumberFormat.js +1 -3
- package/dist/cjs/api/types/OptInMethodEnum.d.ts +2 -7
- package/dist/cjs/api/types/OptInMethodEnum.js +2 -3
- package/dist/cjs/api/types/OptionalBrandInfo.d.ts +3 -4
- package/dist/cjs/api/types/OptionalBrandInfo.js +1 -3
- package/dist/cjs/api/types/OptionalContact.d.ts +0 -3
- package/dist/cjs/api/types/OptionalContact.js +1 -3
- package/dist/cjs/api/types/OptionalContacts.d.ts +0 -3
- package/dist/cjs/api/types/OptionalContacts.js +1 -3
- package/dist/cjs/api/types/Pagination.d.ts +0 -3
- package/dist/cjs/api/types/Pagination.js +1 -3
- package/dist/cjs/api/types/PhoneCapabilities.d.ts +0 -3
- package/dist/cjs/api/types/PhoneCapabilities.js +1 -3
- package/dist/cjs/api/types/PhoneEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneEnum.js +6 -3
- package/dist/cjs/api/types/PhoneFeatureEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneFeatureEnum.js +6 -3
- package/dist/cjs/api/types/PhoneNumberDetails.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberDetails.js +1 -3
- package/dist/cjs/api/types/PhoneNumberEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberEnum.js +6 -3
- package/dist/cjs/api/types/PhoneNumberStatus.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberStatus.js +1 -3
- package/dist/cjs/api/types/PhoneNumberStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/PhoneNumberStatusEnum.js +8 -3
- package/dist/cjs/api/types/ProfileStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/ProfileStatusEnum.js +12 -3
- package/dist/cjs/api/types/PurchasedNumber.d.ts +0 -3
- package/dist/cjs/api/types/PurchasedNumber.js +1 -3
- package/dist/cjs/api/types/RcsButtonCall.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonCall.js +1 -3
- package/dist/cjs/api/types/RcsButtonOpenUrl.d.ts +1 -4
- package/dist/cjs/api/types/RcsButtonOpenUrl.js +11 -3
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonRequestUserLocation.js +1 -3
- package/dist/cjs/api/types/RcsButtonScheduleEvent.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonScheduleEvent.js +1 -3
- package/dist/cjs/api/types/RcsButtonSendLocation.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonSendLocation.js +1 -3
- package/dist/cjs/api/types/RcsButtonTrigger.d.ts +0 -3
- package/dist/cjs/api/types/RcsButtonTrigger.js +1 -3
- package/dist/cjs/api/types/RcsCampaign.d.ts +55 -28
- package/dist/cjs/api/types/RcsCampaign.js +1 -3
- package/dist/cjs/api/types/RcsCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/RcsCampaignStatus.js +1 -3
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/RcsCapabilitiesResult.d.ts +1 -4
- package/dist/cjs/api/types/RcsCapabilitiesResult.js +1 -3
- package/dist/cjs/api/types/RcsCapability.d.ts +0 -3
- package/dist/cjs/api/types/RcsCapability.js +1 -3
- package/dist/cjs/api/types/RcsCardsContent.d.ts +2 -5
- package/dist/cjs/api/types/RcsCardsContent.js +1 -3
- package/dist/cjs/api/types/RcsContent.d.ts +2 -5
- package/dist/cjs/api/types/RcsContent.js +1 -3
- package/dist/cjs/api/types/RcsLinkResult.d.ts +0 -3
- package/dist/cjs/api/types/RcsLinkResult.js +1 -3
- package/dist/cjs/api/types/RcsMediaContent.d.ts +1 -4
- package/dist/cjs/api/types/RcsMediaContent.js +1 -3
- package/dist/cjs/api/types/RcsMediaDetailsContent.d.ts +0 -3
- package/dist/cjs/api/types/RcsMediaDetailsContent.js +1 -3
- package/dist/cjs/api/types/RcsMessagingTypeEnum.d.ts +15 -0
- package/dist/cjs/api/types/RcsMessagingTypeEnum.js +18 -0
- package/dist/cjs/api/types/RcsValidateContent.d.ts +3 -6
- package/dist/cjs/api/types/RcsValidateContent.js +1 -3
- package/dist/cjs/api/types/RcsValidationResult.d.ts +2 -3
- package/dist/cjs/api/types/RcsValidationResult.js +1 -3
- package/dist/cjs/api/types/RcsWhitelistResponse.d.ts +0 -3
- package/dist/cjs/api/types/RcsWhitelistResponse.js +1 -3
- package/dist/cjs/api/types/ReactionResult.d.ts +0 -3
- package/dist/cjs/api/types/ReactionResult.js +1 -3
- package/dist/cjs/api/types/RefreshedFile.d.ts +0 -3
- package/dist/cjs/api/types/RefreshedFile.js +1 -3
- package/dist/cjs/api/types/RichButton.d.ts +1 -4
- package/dist/cjs/api/types/RichButton.js +1 -3
- package/dist/cjs/api/types/{RcsCards.d.ts → RichCards.d.ts} +5 -8
- package/dist/cjs/api/types/RichCards.js +3 -0
- package/dist/cjs/api/types/RichCardsMessage.d.ts +11 -16
- package/dist/cjs/api/types/RichCardsMessage.js +3 -3
- package/dist/cjs/api/types/RichMediaMessage.d.ts +2 -5
- package/dist/cjs/api/types/RichMediaMessage.js +1 -3
- package/dist/cjs/api/types/RichMessage.d.ts +5 -5
- package/dist/cjs/api/types/RichMessage.js +1 -3
- package/dist/cjs/api/types/{RcsTextContent.d.ts → RichText.d.ts} +2 -5
- package/dist/cjs/api/types/RichText.js +3 -0
- package/dist/cjs/api/types/RichTextMessage.d.ts +2 -5
- package/dist/cjs/api/types/RichTextMessage.js +1 -3
- package/dist/{esm/api/types/ScheduledMessaage.d.mts → cjs/api/types/ScheduledMessage.d.ts} +3 -6
- package/dist/cjs/api/types/ScheduledMessage.js +3 -0
- package/dist/cjs/api/types/{Options.d.ts → SendRichMessageOptions.d.ts} +2 -5
- package/dist/cjs/api/types/SendRichMessageOptions.js +3 -0
- package/dist/cjs/api/types/SendTypingIndicatorResponse.d.ts +0 -3
- package/dist/cjs/api/types/SendTypingIndicatorResponse.js +1 -3
- package/dist/cjs/api/types/Sender.d.ts +0 -3
- package/dist/cjs/api/types/Sender.js +1 -3
- package/dist/cjs/api/types/SentMmsDetails.d.ts +0 -3
- package/dist/cjs/api/types/SentMmsDetails.js +1 -3
- package/dist/{esm/api/types/SentRcsDetails.d.mts → cjs/api/types/SentRichMessage.d.ts} +1 -4
- package/dist/cjs/api/types/SentRichMessage.js +3 -0
- package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -7
- package/dist/cjs/api/types/SentSmsDetails.js +2 -3
- package/dist/cjs/api/types/ShortenedUrl.d.ts +0 -3
- package/dist/cjs/api/types/ShortenedUrl.js +1 -3
- package/dist/cjs/api/types/ShortenedUrlWithClickData.d.ts +1 -4
- package/dist/cjs/api/types/ShortenedUrlWithClickData.js +1 -3
- package/dist/cjs/api/types/SmsContent.d.ts +0 -3
- package/dist/cjs/api/types/SmsContent.js +1 -3
- package/dist/cjs/api/types/SmsValidationResult.d.ts +0 -3
- package/dist/cjs/api/types/SmsValidationResult.js +1 -3
- package/dist/cjs/api/types/SubUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/SubUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/SubmissionResults.d.ts +0 -3
- package/dist/cjs/api/types/SubmissionResults.js +1 -3
- package/dist/cjs/api/types/SuccessfulConversationUpdate.d.ts +0 -3
- package/dist/cjs/api/types/SuccessfulConversationUpdate.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaign.d.ts +50 -4
- package/dist/cjs/api/types/TollFreeCampaign.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeCampaignStatus.js +1 -3
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.d.ts +2 -7
- package/dist/cjs/api/types/TollFreeCampaignUseCaseEnum.js +2 -3
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.js +1 -3
- package/dist/cjs/api/types/TollFreeStatusEnum.d.ts +1 -4
- package/dist/cjs/api/types/TollFreeStatusEnum.js +10 -3
- package/dist/cjs/api/types/Tracking.d.ts +1 -4
- package/dist/cjs/api/types/Tracking.js +8 -3
- package/dist/cjs/api/types/UpdatedContactId.d.ts +0 -3
- package/dist/cjs/api/types/UpdatedContactId.js +1 -3
- package/dist/cjs/api/types/UploadResults.d.ts +0 -3
- package/dist/cjs/api/types/UploadResults.js +1 -3
- package/dist/cjs/api/types/UpsertContact.d.ts +0 -3
- package/dist/cjs/api/types/UpsertContact.js +1 -3
- package/dist/cjs/api/types/UserEvent.d.ts +0 -3
- package/dist/cjs/api/types/UserEvent.js +1 -3
- package/dist/cjs/api/types/VCardData.d.ts +1 -4
- package/dist/cjs/api/types/VCardData.js +1 -3
- package/dist/cjs/api/types/ValidateCampaignParams.d.ts +0 -3
- package/dist/cjs/api/types/ValidateCampaignParams.js +1 -3
- package/dist/cjs/api/types/ValidationErrorDetails.d.ts +0 -3
- package/dist/cjs/api/types/ValidationErrorDetails.js +1 -3
- package/dist/cjs/api/types/ValidationResults.d.ts +1 -4
- package/dist/cjs/api/types/ValidationResults.js +1 -3
- package/dist/cjs/api/types/Vcard.d.ts +1 -4
- package/dist/cjs/api/types/Vcard.js +1 -3
- package/dist/cjs/api/types/VcardAddress.d.ts +1 -4
- package/dist/cjs/api/types/VcardAddress.js +1 -3
- package/dist/cjs/api/types/VcardContent.d.ts +1 -4
- package/dist/cjs/api/types/VcardContent.js +1 -3
- package/dist/cjs/api/types/VcardEmail.d.ts +1 -4
- package/dist/cjs/api/types/VcardEmail.js +1 -3
- package/dist/cjs/api/types/VcardPhone.d.ts +1 -4
- package/dist/cjs/api/types/VcardPhone.js +1 -3
- package/dist/cjs/api/types/VcardResource.d.ts +0 -3
- package/dist/cjs/api/types/VcardResource.js +1 -3
- package/dist/cjs/api/types/VettingFeedback.d.ts +0 -3
- package/dist/cjs/api/types/VettingFeedback.js +1 -3
- package/dist/cjs/api/types/VettingHistory.d.ts +2 -7
- package/dist/cjs/api/types/VettingHistory.js +2 -3
- package/dist/cjs/api/types/VettingResults.d.ts +0 -3
- package/dist/cjs/api/types/VettingResults.js +1 -3
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +1 -4
- package/dist/cjs/api/types/WebhookEventEnum.js +6 -3
- package/dist/cjs/api/types/WebhookResult.d.ts +1 -4
- package/dist/cjs/api/types/WebhookResult.js +1 -3
- package/dist/cjs/api/types/Webhooks.d.ts +0 -3
- package/dist/cjs/api/types/Webhooks.js +1 -3
- package/dist/cjs/api/types/ZodError.d.ts +0 -3
- package/dist/cjs/api/types/ZodError.js +1 -3
- package/dist/cjs/api/types/index.d.ts +125 -123
- package/dist/cjs/api/types/index.js +125 -123
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +9 -4
- package/dist/cjs/core/fetcher/Fetcher.js +205 -10
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +2 -4
- package/dist/cjs/core/fetcher/requestWithRetries.js +16 -21
- package/dist/cjs/core/fetcher/signals.d.ts +0 -6
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/headers.d.ts +2 -3
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -4
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/PinnacleError.d.ts +1 -4
- package/dist/cjs/errors/PinnacleError.js +2 -4
- package/dist/cjs/errors/PinnacleTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/PinnacleTimeoutError.js +1 -3
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/tools/FileUploader.d.ts +1 -1
- package/dist/esm/BaseClient.d.mts +30 -0
- package/dist/esm/BaseClient.mjs +2 -0
- package/dist/esm/Client.d.mts +6 -26
- package/dist/esm/Client.mjs +9 -11
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -4
- package/dist/esm/api/errors/BadRequestError.mjs +1 -3
- package/dist/esm/api/errors/InternalServerError.d.mts +2 -5
- package/dist/esm/api/errors/InternalServerError.mjs +1 -3
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -4
- package/dist/esm/api/errors/NotFoundError.mjs +1 -3
- package/dist/esm/api/errors/NotImplementedError.d.mts +2 -5
- package/dist/esm/api/errors/NotImplementedError.mjs +1 -3
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +2 -5
- package/dist/esm/api/errors/PaymentRequiredError.mjs +1 -3
- package/dist/esm/api/errors/UnauthorizedError.d.mts +2 -5
- package/dist/esm/api/errors/UnauthorizedError.mjs +1 -3
- package/dist/esm/api/errors/index.d.mts +2 -2
- package/dist/esm/api/errors/index.mjs +2 -2
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/audiences/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/audiences/client/Client.mjs +32 -26
- package/dist/esm/api/resources/audiences/client/index.d.mts +0 -1
- package/dist/esm/api/resources/audiences/client/requests/AudiencesDeleteRequest.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/AudiencesDeleteRequest.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/AudiencesGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/AudiencesGetRequest.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/CreateAudienceParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/CreateAudienceParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/UpdateAudienceParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/client/requests/UpdateAudienceParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/audiences/index.d.mts +1 -1
- package/dist/esm/api/resources/audiences/index.mjs +1 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.mjs +16 -14
- package/dist/esm/api/resources/audiences/resources/contacts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.mts +0 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.mjs +1 -3
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/audiences/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/audiences/resources/index.mjs +1 -1
- package/dist/esm/api/resources/audiences/types/AudiencesGetResponse.d.mts +1 -4
- package/dist/esm/api/resources/audiences/types/AudiencesGetResponse.mjs +1 -3
- package/dist/esm/api/resources/brands/client/Client.d.mts +6 -25
- package/dist/esm/api/resources/brands/client/Client.mjs +46 -34
- package/dist/esm/api/resources/brands/client/index.d.mts +0 -1
- package/dist/esm/api/resources/brands/client/requests/AutofillBrandParams.d.mts +0 -3
- package/dist/esm/api/resources/brands/client/requests/AutofillBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +4 -4
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.d.mts +4 -4
- package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/VetBrandParams.d.mts +1 -5
- package/dist/esm/api/resources/brands/client/requests/VetBrandParams.mjs +1 -3
- package/dist/esm/api/resources/brands/client/requests/index.d.mts +5 -5
- package/dist/esm/api/resources/campaigns/client/Client.d.mts +3 -13
- package/dist/esm/api/resources/campaigns/client/Client.mjs +2 -4
- package/dist/esm/api/resources/campaigns/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +36 -28
- package/dist/esm/api/resources/campaigns/resources/dlc/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/index.d.mts +5 -5
- package/dist/esm/api/resources/campaigns/resources/index.mjs +5 -5
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +36 -40
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +68 -43
- package/dist/esm/api/resources/campaigns/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +112 -49
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +20 -25
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +52 -28
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/index.d.mts +0 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +66 -4
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/index.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/index.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -4
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/contacts/client/Client.mjs +24 -20
- package/dist/esm/api/resources/contacts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/CreateContactParams.d.mts +1 -4
- package/dist/esm/api/resources/contacts/client/requests/CreateContactParams.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +1 -4
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.mjs +1 -3
- package/dist/esm/api/resources/contacts/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/conversations/client/Client.mjs +37 -31
- package/dist/esm/api/resources/conversations/client/index.d.mts +0 -1
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +1 -4
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +1 -4
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +0 -3
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.mjs +1 -3
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/conversations/index.d.mts +1 -1
- package/dist/esm/api/resources/conversations/index.mjs +1 -1
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +1 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +1 -3
- package/dist/esm/api/resources/conversations/types/index.d.mts +1 -1
- package/dist/esm/api/resources/conversations/types/index.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +12 -12
- package/dist/esm/api/resources/index.mjs +12 -12
- package/dist/esm/api/resources/messages/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/messages/client/Client.mjs +96 -16
- package/dist/esm/api/resources/messages/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +0 -3
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.mjs +1 -3
- package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/messages/resources/index.mjs +4 -4
- package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +16 -14
- package/dist/esm/api/resources/messages/resources/mms/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/mms/client/requests/Mms.d.mts +1 -4
- package/dist/esm/api/resources/messages/resources/mms/client/requests/Mms.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/mms/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/mms/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/mms/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/mms/types/MmsSendResponse.d.mts +2 -5
- package/dist/esm/api/resources/messages/resources/mms/types/MmsSendResponse.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +5 -26
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +26 -19
- package/dist/esm/api/resources/messages/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.mts +0 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/types/SendRichMessageResponse.d.mts +2 -0
- package/dist/esm/api/resources/messages/resources/rcs/types/SendRichMessageResponse.mjs +2 -0
- package/dist/esm/api/resources/messages/resources/rcs/types/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/types/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/sms/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/messages/resources/sms/client/Client.mjs +16 -14
- package/dist/esm/api/resources/messages/resources/sms/client/index.d.mts +0 -1
- package/dist/esm/api/resources/messages/resources/sms/client/requests/Sms.d.mts +1 -4
- package/dist/esm/api/resources/messages/resources/sms/client/requests/Sms.mjs +1 -3
- package/dist/esm/api/resources/messages/resources/sms/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/sms/index.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/sms/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/sms/types/SmsSendResponse.d.mts +2 -5
- package/dist/esm/api/resources/messages/resources/sms/types/SmsSendResponse.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +5 -26
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +23 -19
- package/dist/esm/api/resources/phoneNumbers/client/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.d.mts +0 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/BuyPhoneNumberParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/client/requests/RetrievePhoneNumberDetailsParams.mjs +6 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/client/requests/SearchPhoneNumberParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/phoneNumbers/index.d.mts +1 -1
- package/dist/esm/api/resources/phoneNumbers/index.mjs +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +16 -14
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.mts +0 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.mjs +1 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/index.mjs +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +18 -16
- package/dist/esm/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.mts +1 -4
- package/dist/esm/api/resources/phoneNumbers/types/PhoneNumbersGetResponse.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/rcs/client/Client.mjs +22 -18
- package/dist/esm/api/resources/rcs/client/index.d.mts +0 -1
- package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsLinkRequest.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsLinkRequest.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.d.mts +0 -3
- package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.mjs +1 -3
- package/dist/esm/api/resources/rcs/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/status/client/Client.d.mts +2 -12
- package/dist/esm/api/resources/status/client/Client.mjs +1 -3
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +39 -31
- package/dist/esm/api/resources/tools/client/Client.d.mts +4 -14
- package/dist/esm/api/resources/tools/client/Client.mjs +3 -5
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +16 -14
- package/dist/esm/api/resources/tools/resources/contactCard/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +16 -14
- package/dist/esm/api/resources/tools/resources/file/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/file/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/tools/resources/index.mjs +4 -4
- package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +24 -20
- package/dist/esm/api/resources/tools/resources/url/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/url/client/requests/CreateUrlParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/url/client/requests/CreateUrlParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/url/client/requests/UpdateUrlParams.d.mts +1 -4
- package/dist/esm/api/resources/tools/resources/url/client/requests/UpdateUrlParams.mjs +1 -3
- package/dist/esm/api/resources/tools/resources/url/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +4 -25
- package/dist/esm/api/resources/webhooks/client/Client.mjs +10 -10
- package/dist/esm/api/resources/webhooks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.d.mts +0 -3
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.mjs +1 -3
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/AdvancedPhoneInformation.d.mts +2 -5
- package/dist/esm/api/types/AdvancedPhoneInformation.mjs +7 -3
- package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -4
- package/dist/esm/api/types/AttachWebhookParams.mjs +1 -3
- package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +1 -4
- package/dist/esm/api/types/AttachedPhoneNumberResult.mjs +1 -3
- package/dist/esm/api/types/AudienceCountOnly.d.mts +0 -3
- package/dist/esm/api/types/AudienceCountOnly.mjs +1 -3
- package/dist/esm/api/types/AudienceWithPagination.d.mts +1 -4
- package/dist/esm/api/types/AudienceWithPagination.mjs +1 -3
- package/dist/esm/api/types/AutofillCampaignParams.d.mts +0 -3
- package/dist/esm/api/types/AutofillCampaignParams.mjs +1 -3
- package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +1 -4
- package/dist/esm/api/types/AutofillDlcCampaignResponse.mjs +1 -3
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +1 -4
- package/dist/esm/api/types/BadRequestErrorBody.mjs +1 -3
- package/dist/esm/api/types/BaseRichMessage.d.mts +9 -0
- package/dist/esm/api/types/BaseRichMessage.mjs +2 -0
- package/dist/esm/api/types/BasicPhoneInformation.d.mts +1 -4
- package/dist/esm/api/types/BasicPhoneInformation.mjs +1 -3
- package/dist/esm/api/types/BrandStatus.d.mts +1 -4
- package/dist/esm/api/types/BrandStatus.mjs +1 -3
- package/dist/esm/api/types/BrandStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/BrandStatusEnum.mjs +8 -1
- package/dist/esm/api/types/ButtonClicked.d.mts +1 -4
- package/dist/esm/api/types/ButtonClicked.mjs +1 -3
- package/dist/esm/api/types/ButtonClickedData.d.mts +2 -5
- package/dist/esm/api/types/ButtonClickedData.mjs +7 -3
- package/dist/esm/api/types/CampaignEnum.d.mts +1 -4
- package/dist/esm/api/types/CampaignEnum.mjs +5 -1
- package/dist/esm/api/types/CampaignQuery.d.mts +1 -4
- package/dist/esm/api/types/CampaignQuery.mjs +1 -3
- package/dist/esm/api/types/CampaignSubmissionResult.d.mts +0 -3
- package/dist/esm/api/types/CampaignSubmissionResult.mjs +1 -3
- package/dist/esm/api/types/CampaignValidationResult.d.mts +0 -3
- package/dist/esm/api/types/CampaignValidationResult.mjs +1 -3
- package/dist/esm/api/types/CancelScheduledMessageResponse.d.mts +4 -0
- package/dist/esm/api/types/CancelScheduledMessageResponse.mjs +2 -0
- package/dist/esm/api/types/CompanyEntityTypeEnum.d.mts +9 -0
- package/dist/esm/api/types/CompanyEntityTypeEnum.mjs +9 -0
- package/dist/esm/api/types/CompanySectorEnum.d.mts +2 -7
- package/dist/esm/api/types/CompanySectorEnum.mjs +2 -3
- package/dist/esm/api/types/CompanyTypeEnum.d.mts +2 -7
- package/dist/esm/api/types/CompanyTypeEnum.mjs +2 -3
- package/dist/esm/api/types/ConfiguredWebhook.d.mts +1 -4
- package/dist/esm/api/types/ConfiguredWebhook.mjs +1 -3
- package/dist/esm/api/types/Contact.d.mts +0 -3
- package/dist/esm/api/types/Contact.mjs +1 -3
- package/dist/esm/api/types/ContactId.d.mts +0 -3
- package/dist/esm/api/types/ContactId.mjs +1 -3
- package/dist/esm/api/types/Conversation.d.mts +1 -4
- package/dist/esm/api/types/Conversation.mjs +1 -3
- package/dist/esm/api/types/ConversationList.d.mts +1 -4
- package/dist/esm/api/types/ConversationList.mjs +1 -3
- package/dist/esm/api/types/CreateUrlOptions.d.mts +0 -3
- package/dist/esm/api/types/CreateUrlOptions.mjs +1 -3
- package/dist/esm/api/types/DeleteAudienceResponse.d.mts +0 -3
- package/dist/esm/api/types/DeleteAudienceResponse.mjs +1 -3
- package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +1 -4
- package/dist/esm/api/types/DetachedPhoneNumberResult.mjs +1 -3
- package/dist/esm/api/types/DetachedWebhookInfo.d.mts +0 -3
- package/dist/esm/api/types/DetachedWebhookInfo.mjs +1 -3
- package/dist/esm/api/types/DetailedPhoneNumberEnum.d.mts +1 -4
- package/dist/esm/api/types/DetailedPhoneNumberEnum.mjs +5 -1
- package/dist/esm/api/types/DlcAssignmentStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/DlcAssignmentStatusEnum.mjs +8 -1
- package/dist/esm/api/types/DlcCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/DlcCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/DlcCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +1 -4
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.mjs +1 -3
- package/dist/esm/api/types/EnhancedContact.d.mts +1 -4
- package/dist/esm/api/types/EnhancedContact.mjs +1 -3
- package/dist/esm/api/types/EnhancedContactItem.d.mts +0 -3
- package/dist/esm/api/types/EnhancedContactItem.mjs +1 -3
- package/dist/esm/api/types/Error_.d.mts +0 -3
- package/dist/esm/api/types/Error_.mjs +1 -3
- package/dist/esm/api/types/ExtendedBrand.d.mts +1 -4
- package/dist/esm/api/types/ExtendedBrand.mjs +1 -3
- package/dist/esm/api/types/ExtendedBrandWithVetting.d.mts +1 -4
- package/dist/esm/api/types/ExtendedBrandWithVetting.mjs +1 -3
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +55 -30
- package/dist/esm/api/types/ExtendedRcsCampaign.mjs +1 -3
- package/dist/esm/api/types/GetConversationParams.d.mts +0 -3
- package/dist/esm/api/types/GetConversationParams.mjs +1 -3
- package/dist/esm/api/types/LinkClickEvent.d.mts +0 -3
- package/dist/esm/api/types/LinkClickEvent.mjs +1 -3
- package/dist/esm/api/types/LocationShareAction.d.mts +0 -3
- package/dist/esm/api/types/LocationShareAction.mjs +1 -3
- package/dist/esm/api/types/Message.d.mts +1 -4
- package/dist/esm/api/types/Message.mjs +1 -3
- package/dist/esm/api/types/MessageContent.d.mts +1 -4
- package/dist/esm/api/types/MessageContent.mjs +1 -3
- package/dist/esm/api/types/MessageEvent.d.mts +3 -8
- package/dist/esm/api/types/MessageEvent.mjs +2 -3
- package/dist/esm/api/types/MessageEventContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventMmsContent.d.mts +0 -3
- package/dist/esm/api/types/MessageEventMmsContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsButtonData.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsButtonData.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsCardsContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsCardsContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsLocationData.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsLocationData.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsMediaContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsMediaContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventRcsTextContent.d.mts +1 -4
- package/dist/esm/api/types/MessageEventRcsTextContent.mjs +1 -3
- package/dist/esm/api/types/MessageEventSmsContent.d.mts +0 -3
- package/dist/esm/api/types/MessageEventSmsContent.mjs +1 -3
- package/dist/esm/api/types/MessageList.d.mts +1 -4
- package/dist/esm/api/types/MessageList.mjs +1 -3
- package/dist/esm/api/types/MessageMethodEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageMethodEnum.mjs +2 -3
- package/dist/esm/api/types/MessageProtocolEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageProtocolEnum.mjs +2 -3
- package/dist/esm/api/types/MessageSchedule.d.mts +7 -4
- package/dist/esm/api/types/MessageSchedule.mjs +1 -3
- package/dist/esm/api/types/MessageStatusEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageStatusEnum.mjs +2 -3
- package/dist/esm/api/types/MessageVolumeEnum.d.mts +2 -7
- package/dist/esm/api/types/MessageVolumeEnum.mjs +2 -3
- package/dist/esm/api/types/MessageWithReaction.d.mts +3 -8
- package/dist/esm/api/types/MessageWithReaction.mjs +2 -3
- package/dist/esm/api/types/MessagingProfileEnum.d.mts +2 -7
- package/dist/esm/api/types/MessagingProfileEnum.mjs +2 -3
- package/dist/esm/api/types/MmsContent.d.mts +0 -3
- package/dist/esm/api/types/MmsContent.mjs +1 -3
- package/dist/esm/api/types/MmsValidationResult.d.mts +0 -3
- package/dist/esm/api/types/MmsValidationResult.mjs +1 -3
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -3
- package/dist/esm/api/types/NotFoundErrorBody.mjs +1 -3
- package/dist/esm/api/types/NumberFormat.d.mts +0 -3
- package/dist/esm/api/types/NumberFormat.mjs +1 -3
- package/dist/esm/api/types/OptInMethodEnum.d.mts +2 -7
- package/dist/esm/api/types/OptInMethodEnum.mjs +2 -3
- package/dist/esm/api/types/OptionalBrandInfo.d.mts +3 -4
- package/dist/esm/api/types/OptionalBrandInfo.mjs +1 -3
- package/dist/esm/api/types/OptionalContact.d.mts +0 -3
- package/dist/esm/api/types/OptionalContact.mjs +1 -3
- package/dist/esm/api/types/OptionalContacts.d.mts +0 -3
- package/dist/esm/api/types/OptionalContacts.mjs +1 -3
- package/dist/esm/api/types/Pagination.d.mts +0 -3
- package/dist/esm/api/types/Pagination.mjs +1 -3
- package/dist/esm/api/types/PhoneCapabilities.d.mts +0 -3
- package/dist/esm/api/types/PhoneCapabilities.mjs +1 -3
- package/dist/esm/api/types/PhoneEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneFeatureEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneFeatureEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneNumberDetails.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberDetails.mjs +1 -3
- package/dist/esm/api/types/PhoneNumberEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberEnum.mjs +4 -1
- package/dist/esm/api/types/PhoneNumberStatus.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberStatus.mjs +1 -3
- package/dist/esm/api/types/PhoneNumberStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/PhoneNumberStatusEnum.mjs +6 -1
- package/dist/esm/api/types/ProfileStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/ProfileStatusEnum.mjs +10 -1
- package/dist/esm/api/types/PurchasedNumber.d.mts +0 -3
- package/dist/esm/api/types/PurchasedNumber.mjs +1 -3
- package/dist/esm/api/types/RcsButtonCall.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonCall.mjs +1 -3
- package/dist/esm/api/types/RcsButtonOpenUrl.d.mts +1 -4
- package/dist/esm/api/types/RcsButtonOpenUrl.mjs +11 -3
- package/dist/esm/api/types/RcsButtonRequestUserLocation.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonRequestUserLocation.mjs +1 -3
- package/dist/esm/api/types/RcsButtonScheduleEvent.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonScheduleEvent.mjs +1 -3
- package/dist/esm/api/types/RcsButtonSendLocation.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonSendLocation.mjs +1 -3
- package/dist/esm/api/types/RcsButtonTrigger.d.mts +0 -3
- package/dist/esm/api/types/RcsButtonTrigger.mjs +1 -3
- package/dist/esm/api/types/RcsCampaign.d.mts +55 -28
- package/dist/esm/api/types/RcsCampaign.mjs +1 -3
- package/dist/esm/api/types/RcsCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/RcsCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/RcsCapabilitiesResult.d.mts +1 -4
- package/dist/esm/api/types/RcsCapabilitiesResult.mjs +1 -3
- package/dist/esm/api/types/RcsCapability.d.mts +0 -3
- package/dist/esm/api/types/RcsCapability.mjs +1 -3
- package/dist/esm/api/types/RcsCardsContent.d.mts +2 -5
- package/dist/esm/api/types/RcsCardsContent.mjs +1 -3
- package/dist/esm/api/types/RcsContent.d.mts +2 -5
- package/dist/esm/api/types/RcsContent.mjs +1 -3
- package/dist/esm/api/types/RcsLinkResult.d.mts +0 -3
- package/dist/esm/api/types/RcsLinkResult.mjs +1 -3
- package/dist/esm/api/types/RcsMediaContent.d.mts +1 -4
- package/dist/esm/api/types/RcsMediaContent.mjs +1 -3
- package/dist/esm/api/types/RcsMediaDetailsContent.d.mts +0 -3
- package/dist/esm/api/types/RcsMediaDetailsContent.mjs +1 -3
- package/dist/esm/api/types/RcsMessagingTypeEnum.d.mts +15 -0
- package/dist/esm/api/types/RcsMessagingTypeEnum.mjs +15 -0
- package/dist/esm/api/types/RcsValidateContent.d.mts +3 -6
- package/dist/esm/api/types/RcsValidateContent.mjs +1 -3
- package/dist/esm/api/types/RcsValidationResult.d.mts +2 -3
- package/dist/esm/api/types/RcsValidationResult.mjs +1 -3
- package/dist/esm/api/types/RcsWhitelistResponse.d.mts +0 -3
- package/dist/esm/api/types/RcsWhitelistResponse.mjs +1 -3
- package/dist/esm/api/types/ReactionResult.d.mts +0 -3
- package/dist/esm/api/types/ReactionResult.mjs +1 -3
- package/dist/esm/api/types/RefreshedFile.d.mts +0 -3
- package/dist/esm/api/types/RefreshedFile.mjs +1 -3
- package/dist/esm/api/types/RichButton.d.mts +1 -4
- package/dist/esm/api/types/RichButton.mjs +1 -3
- package/dist/esm/api/types/{RcsCards.d.mts → RichCards.d.mts} +5 -8
- package/dist/esm/api/types/RichCards.mjs +2 -0
- package/dist/esm/api/types/RichCardsMessage.d.mts +11 -16
- package/dist/esm/api/types/RichCardsMessage.mjs +3 -3
- package/dist/esm/api/types/RichMediaMessage.d.mts +2 -5
- package/dist/esm/api/types/RichMediaMessage.mjs +1 -3
- package/dist/esm/api/types/RichMessage.d.mts +5 -5
- package/dist/esm/api/types/RichMessage.mjs +1 -3
- package/dist/esm/api/types/{RcsTextContent.d.mts → RichText.d.mts} +2 -5
- package/dist/esm/api/types/RichText.mjs +2 -0
- package/dist/esm/api/types/RichTextMessage.d.mts +2 -5
- package/dist/esm/api/types/RichTextMessage.mjs +1 -3
- package/dist/{cjs/api/types/ScheduledMessaage.d.ts → esm/api/types/ScheduledMessage.d.mts} +3 -6
- package/dist/esm/api/types/ScheduledMessage.mjs +2 -0
- package/dist/esm/api/types/{Options.d.mts → SendRichMessageOptions.d.mts} +2 -5
- package/dist/esm/api/types/SendRichMessageOptions.mjs +2 -0
- package/dist/esm/api/types/SendTypingIndicatorResponse.d.mts +0 -3
- package/dist/esm/api/types/SendTypingIndicatorResponse.mjs +1 -3
- package/dist/esm/api/types/Sender.d.mts +0 -3
- package/dist/esm/api/types/Sender.mjs +1 -3
- package/dist/esm/api/types/SentMmsDetails.d.mts +0 -3
- package/dist/esm/api/types/SentMmsDetails.mjs +1 -3
- package/dist/{cjs/api/types/SentRcsDetails.d.ts → esm/api/types/SentRichMessage.d.mts} +1 -4
- package/dist/esm/api/types/SentRichMessage.mjs +2 -0
- package/dist/esm/api/types/SentSmsDetails.d.mts +2 -7
- package/dist/esm/api/types/SentSmsDetails.mjs +2 -3
- package/dist/esm/api/types/ShortenedUrl.d.mts +0 -3
- package/dist/esm/api/types/ShortenedUrl.mjs +1 -3
- package/dist/esm/api/types/ShortenedUrlWithClickData.d.mts +1 -4
- package/dist/esm/api/types/ShortenedUrlWithClickData.mjs +1 -3
- package/dist/esm/api/types/SmsContent.d.mts +0 -3
- package/dist/esm/api/types/SmsContent.mjs +1 -3
- package/dist/esm/api/types/SmsValidationResult.d.mts +0 -3
- package/dist/esm/api/types/SmsValidationResult.mjs +1 -3
- package/dist/esm/api/types/SubUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/SubUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/SubmissionResults.d.mts +0 -3
- package/dist/esm/api/types/SubmissionResults.mjs +1 -3
- package/dist/esm/api/types/SuccessfulConversationUpdate.d.mts +0 -3
- package/dist/esm/api/types/SuccessfulConversationUpdate.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaign.d.mts +50 -4
- package/dist/esm/api/types/TollFreeCampaign.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +1 -4
- package/dist/esm/api/types/TollFreeCampaignStatus.mjs +1 -3
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.d.mts +2 -7
- package/dist/esm/api/types/TollFreeCampaignUseCaseEnum.mjs +2 -3
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.mts +1 -4
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.mjs +1 -3
- package/dist/esm/api/types/TollFreeStatusEnum.d.mts +1 -4
- package/dist/esm/api/types/TollFreeStatusEnum.mjs +8 -1
- package/dist/esm/api/types/Tracking.d.mts +1 -4
- package/dist/esm/api/types/Tracking.mjs +6 -1
- package/dist/esm/api/types/UpdatedContactId.d.mts +0 -3
- package/dist/esm/api/types/UpdatedContactId.mjs +1 -3
- package/dist/esm/api/types/UploadResults.d.mts +0 -3
- package/dist/esm/api/types/UploadResults.mjs +1 -3
- package/dist/esm/api/types/UpsertContact.d.mts +0 -3
- package/dist/esm/api/types/UpsertContact.mjs +1 -3
- package/dist/esm/api/types/UserEvent.d.mts +0 -3
- package/dist/esm/api/types/UserEvent.mjs +1 -3
- package/dist/esm/api/types/VCardData.d.mts +1 -4
- package/dist/esm/api/types/VCardData.mjs +1 -3
- package/dist/esm/api/types/ValidateCampaignParams.d.mts +0 -3
- package/dist/esm/api/types/ValidateCampaignParams.mjs +1 -3
- package/dist/esm/api/types/ValidationErrorDetails.d.mts +0 -3
- package/dist/esm/api/types/ValidationErrorDetails.mjs +1 -3
- package/dist/esm/api/types/ValidationResults.d.mts +1 -4
- package/dist/esm/api/types/ValidationResults.mjs +1 -3
- package/dist/esm/api/types/Vcard.d.mts +1 -4
- package/dist/esm/api/types/Vcard.mjs +1 -3
- package/dist/esm/api/types/VcardAddress.d.mts +1 -4
- package/dist/esm/api/types/VcardAddress.mjs +1 -3
- package/dist/esm/api/types/VcardContent.d.mts +1 -4
- package/dist/esm/api/types/VcardContent.mjs +1 -3
- package/dist/esm/api/types/VcardEmail.d.mts +1 -4
- package/dist/esm/api/types/VcardEmail.mjs +1 -3
- package/dist/esm/api/types/VcardPhone.d.mts +1 -4
- package/dist/esm/api/types/VcardPhone.mjs +1 -3
- package/dist/esm/api/types/VcardResource.d.mts +0 -3
- package/dist/esm/api/types/VcardResource.mjs +1 -3
- package/dist/esm/api/types/VettingFeedback.d.mts +0 -3
- package/dist/esm/api/types/VettingFeedback.mjs +1 -3
- package/dist/esm/api/types/VettingHistory.d.mts +2 -7
- package/dist/esm/api/types/VettingHistory.mjs +2 -3
- package/dist/esm/api/types/VettingResults.d.mts +0 -3
- package/dist/esm/api/types/VettingResults.mjs +1 -3
- package/dist/esm/api/types/WebhookEventEnum.d.mts +1 -4
- package/dist/esm/api/types/WebhookEventEnum.mjs +4 -1
- package/dist/esm/api/types/WebhookResult.d.mts +1 -4
- package/dist/esm/api/types/WebhookResult.mjs +1 -3
- package/dist/esm/api/types/Webhooks.d.mts +0 -3
- package/dist/esm/api/types/Webhooks.mjs +1 -3
- package/dist/esm/api/types/ZodError.d.mts +0 -3
- package/dist/esm/api/types/ZodError.mjs +1 -3
- package/dist/esm/api/types/index.d.mts +125 -123
- package/dist/esm/api/types/index.mjs +125 -123
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +9 -4
- package/dist/esm/core/fetcher/Fetcher.mjs +205 -10
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -4
- package/dist/esm/core/fetcher/requestWithRetries.mjs +16 -21
- package/dist/esm/core/fetcher/signals.d.mts +0 -6
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/headers.d.mts +2 -3
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -4
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/PinnacleError.d.mts +1 -4
- package/dist/esm/errors/PinnacleError.mjs +2 -4
- package/dist/esm/errors/PinnacleTimeoutError.d.mts +0 -3
- package/dist/esm/errors/PinnacleTimeoutError.mjs +1 -3
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/messages/Client.mjs +1 -0
- package/dist/esm/wrapper/tools/FileUploader.d.mts +1 -1
- package/dist/esm/wrapper/tools/FileUploader.mjs +1 -0
- package/package.json +16 -16
- package/reference.md +625 -579
- package/dist/cjs/api/resources/messages/resources/rcs/types/RcsSendResponse.d.ts +0 -5
- package/dist/cjs/api/types/RcsBase.d.ts +0 -31
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.d.ts +0 -15
- package/dist/cjs/api/types/RcsCampaignOptInMethodEnum.js +0 -14
- package/dist/cjs/api/types/RcsTextContent.js +0 -5
- package/dist/cjs/api/types/ScheduledMessaage.js +0 -5
- package/dist/cjs/api/types/SentRcsDetails.js +0 -5
- package/dist/esm/api/resources/messages/resources/rcs/types/RcsSendResponse.d.mts +0 -5
- package/dist/esm/api/resources/messages/resources/rcs/types/RcsSendResponse.mjs +0 -4
- package/dist/esm/api/types/Options.mjs +0 -4
- package/dist/esm/api/types/RcsBase.d.mts +0 -31
- package/dist/esm/api/types/RcsBase.mjs +0 -4
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.d.mts +0 -15
- package/dist/esm/api/types/RcsCampaignOptInMethodEnum.mjs +0 -11
- package/dist/esm/api/types/RcsCards.mjs +0 -4
- package/dist/esm/api/types/RcsTextContent.mjs +0 -4
- package/dist/esm/api/types/ScheduledMessaage.mjs +0 -4
- package/dist/esm/api/types/SentRcsDetails.mjs +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export *
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./dlc/client/requests/index.mjs";
|
|
2
|
+
export * as dlc from "./dlc/index.mjs";
|
|
3
|
+
export * from "./rcs/client/requests/index.mjs";
|
|
3
4
|
export * as rcs from "./rcs/index.mjs";
|
|
4
5
|
export * from "./rcs/types/index.mjs";
|
|
5
|
-
export * as dlc from "./dlc/index.mjs";
|
|
6
|
-
export * from "./dlc/client/requests/index.mjs";
|
|
7
6
|
export * from "./tollFree/client/requests/index.mjs";
|
|
8
|
-
export * from "./
|
|
7
|
+
export * as tollFree from "./tollFree/index.mjs";
|
|
8
|
+
export * from "./tollFree/types/index.mjs";
|
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../../../environments.mjs";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
5
2
|
import * as core from "../../../../../../core/index.mjs";
|
|
6
3
|
import * as Pinnacle from "../../../../../index.mjs";
|
|
7
4
|
export declare namespace Rcs {
|
|
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 Rcs {
|
|
@@ -97,14 +78,14 @@ export declare class Rcs {
|
|
|
97
78
|
* await client.campaigns.rcs.upsert({
|
|
98
79
|
* agent: {
|
|
99
80
|
* color: "#000000",
|
|
100
|
-
* description: "
|
|
81
|
+
* 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.",
|
|
101
82
|
* emails: [{
|
|
102
83
|
* email: "founders@trypinnacle.app",
|
|
103
84
|
* label: "Email Us"
|
|
104
85
|
* }],
|
|
105
|
-
* heroUrl: "https://
|
|
106
|
-
* iconUrl: "https://
|
|
107
|
-
* name: "Pinnacle
|
|
86
|
+
* heroUrl: "https://pncl.to/D6pDSqGxqgfbCfQmw4gXdnlHu4uSB4",
|
|
87
|
+
* iconUrl: "https://pncl.to/mq_tdIDenRb5eYpJiM8-3THCaUBrZP",
|
|
88
|
+
* name: "Pinnacle - RCS Demo",
|
|
108
89
|
* phones: [{
|
|
109
90
|
* label: "Contact us directly",
|
|
110
91
|
* phone: "+14154467821"
|
|
@@ -114,7 +95,6 @@ export declare class Rcs {
|
|
|
114
95
|
* url: "https://www.trypinnacle.app/"
|
|
115
96
|
* }]
|
|
116
97
|
* },
|
|
117
|
-
* brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
|
|
118
98
|
* brand: "b_1234567890",
|
|
119
99
|
* campaignId: "rcs_1234567890",
|
|
120
100
|
* 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."],
|
|
@@ -122,18 +102,36 @@ export declare class Rcs {
|
|
|
122
102
|
* privacyPolicy: "https://www.trypinnacle.app/privacy",
|
|
123
103
|
* termsOfService: "https://www.trypinnacle.app/terms"
|
|
124
104
|
* },
|
|
125
|
-
* optIn: {
|
|
126
|
-
* method: "WEBSITE",
|
|
127
|
-
* termsAndConditions: "Would you like to subscribe to Pinnacle?"
|
|
128
|
-
* },
|
|
129
|
-
* optOut: {
|
|
130
|
-
* description: "Reply STOP to opt-out anytime.",
|
|
131
|
-
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
132
|
-
* },
|
|
133
105
|
* useCase: {
|
|
134
|
-
* behavior: "
|
|
106
|
+
* 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",
|
|
135
107
|
* value: "OTHER"
|
|
136
|
-
* }
|
|
108
|
+
* },
|
|
109
|
+
* 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",
|
|
110
|
+
* messagingType: "MULTI_USE",
|
|
111
|
+
* 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.",
|
|
112
|
+
* keywords: {
|
|
113
|
+
* HELP: {
|
|
114
|
+
* message: "Email founders@trypinnacle.app for support.",
|
|
115
|
+
* keywords: ["HELP", "SUPPORT"]
|
|
116
|
+
* },
|
|
117
|
+
* OPT_IN: {
|
|
118
|
+
* 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",
|
|
119
|
+
* keywords: ["START", "SUBSCRIBE"]
|
|
120
|
+
* },
|
|
121
|
+
* OPT_OUT: {
|
|
122
|
+
* 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.",
|
|
123
|
+
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
124
|
+
* }
|
|
125
|
+
* },
|
|
126
|
+
* traffic: {
|
|
127
|
+
* monthlyWebsite: 10000,
|
|
128
|
+
* monthlyRcsEstimate: 10000
|
|
129
|
+
* },
|
|
130
|
+
* 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.",
|
|
131
|
+
* 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.",
|
|
132
|
+
* isConversational: true,
|
|
133
|
+
* 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.",
|
|
134
|
+
* demoTrigger: "Text \"START\" to trigger the flow."
|
|
137
135
|
* })
|
|
138
136
|
*/
|
|
139
137
|
upsert(request?: Pinnacle.campaigns.UpsertRcsCampaignParams, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.ExtendedRcsCampaign>;
|
|
@@ -156,7 +154,5 @@ export declare class Rcs {
|
|
|
156
154
|
*/
|
|
157
155
|
validate(request: Pinnacle.ValidateCampaignParams, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignValidationResult>;
|
|
158
156
|
private __validate;
|
|
159
|
-
protected _getCustomAuthorizationHeaders(): Promise<
|
|
160
|
-
"PINNACLE-API-KEY": string | undefined;
|
|
161
|
-
}>;
|
|
157
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
162
158
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
4
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,11 +8,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
9
|
});
|
|
12
10
|
};
|
|
13
|
-
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
-
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
-
import * as Pinnacle from "../../../../../index.mjs";
|
|
16
11
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
12
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
17
14
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
15
|
+
import * as Pinnacle from "../../../../../index.mjs";
|
|
18
16
|
export class Rcs {
|
|
19
17
|
constructor(_options = {}) {
|
|
20
18
|
this._options = _options;
|
|
@@ -40,8 +38,8 @@ export class Rcs {
|
|
|
40
38
|
}
|
|
41
39
|
__autofill(request, requestOptions) {
|
|
42
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
var _a, _b, _c;
|
|
44
|
-
|
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
42
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
45
43
|
const _response = yield core.fetcher({
|
|
46
44
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "campaigns/rcs/autofill"),
|
|
47
45
|
method: "POST",
|
|
@@ -50,9 +48,11 @@ export class Rcs {
|
|
|
50
48
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
51
49
|
requestType: "json",
|
|
52
50
|
body: request,
|
|
53
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
54
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
51
|
+
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,
|
|
52
|
+
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,
|
|
55
53
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
54
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
55
|
+
logging: this._options.logging,
|
|
56
56
|
});
|
|
57
57
|
if (_response.ok) {
|
|
58
58
|
return {
|
|
@@ -112,16 +112,18 @@ export class Rcs {
|
|
|
112
112
|
}
|
|
113
113
|
__get(campaignId, requestOptions) {
|
|
114
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
var _a, _b, _c;
|
|
116
|
-
|
|
115
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
116
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
117
117
|
const _response = yield core.fetcher({
|
|
118
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `campaigns/rcs/${
|
|
118
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `campaigns/rcs/${core.url.encodePathParam(campaignId)}`),
|
|
119
119
|
method: "GET",
|
|
120
120
|
headers: _headers,
|
|
121
121
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
122
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
123
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
122
|
+
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,
|
|
123
|
+
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,
|
|
124
124
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
125
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
126
|
+
logging: this._options.logging,
|
|
125
127
|
});
|
|
126
128
|
if (_response.ok) {
|
|
127
129
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -181,16 +183,18 @@ export class Rcs {
|
|
|
181
183
|
}
|
|
182
184
|
__submit(campaignId, requestOptions) {
|
|
183
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
-
var _a, _b, _c;
|
|
185
|
-
|
|
186
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
187
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
186
188
|
const _response = yield core.fetcher({
|
|
187
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `campaigns/rcs/submit/${
|
|
189
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `campaigns/rcs/submit/${core.url.encodePathParam(campaignId)}`),
|
|
188
190
|
method: "POST",
|
|
189
191
|
headers: _headers,
|
|
190
192
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
191
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
192
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
193
|
+
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,
|
|
194
|
+
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,
|
|
193
195
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
196
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
197
|
+
logging: this._options.logging,
|
|
194
198
|
});
|
|
195
199
|
if (_response.ok) {
|
|
196
200
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -249,14 +253,14 @@ export class Rcs {
|
|
|
249
253
|
* await client.campaigns.rcs.upsert({
|
|
250
254
|
* agent: {
|
|
251
255
|
* color: "#000000",
|
|
252
|
-
* description: "
|
|
256
|
+
* 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.",
|
|
253
257
|
* emails: [{
|
|
254
258
|
* email: "founders@trypinnacle.app",
|
|
255
259
|
* label: "Email Us"
|
|
256
260
|
* }],
|
|
257
|
-
* heroUrl: "https://
|
|
258
|
-
* iconUrl: "https://
|
|
259
|
-
* name: "Pinnacle
|
|
261
|
+
* heroUrl: "https://pncl.to/D6pDSqGxqgfbCfQmw4gXdnlHu4uSB4",
|
|
262
|
+
* iconUrl: "https://pncl.to/mq_tdIDenRb5eYpJiM8-3THCaUBrZP",
|
|
263
|
+
* name: "Pinnacle - RCS Demo",
|
|
260
264
|
* phones: [{
|
|
261
265
|
* label: "Contact us directly",
|
|
262
266
|
* phone: "+14154467821"
|
|
@@ -266,7 +270,6 @@ export class Rcs {
|
|
|
266
270
|
* url: "https://www.trypinnacle.app/"
|
|
267
271
|
* }]
|
|
268
272
|
* },
|
|
269
|
-
* brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
|
|
270
273
|
* brand: "b_1234567890",
|
|
271
274
|
* campaignId: "rcs_1234567890",
|
|
272
275
|
* 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."],
|
|
@@ -274,18 +277,36 @@ export class Rcs {
|
|
|
274
277
|
* privacyPolicy: "https://www.trypinnacle.app/privacy",
|
|
275
278
|
* termsOfService: "https://www.trypinnacle.app/terms"
|
|
276
279
|
* },
|
|
277
|
-
* optIn: {
|
|
278
|
-
* method: "WEBSITE",
|
|
279
|
-
* termsAndConditions: "Would you like to subscribe to Pinnacle?"
|
|
280
|
-
* },
|
|
281
|
-
* optOut: {
|
|
282
|
-
* description: "Reply STOP to opt-out anytime.",
|
|
283
|
-
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
284
|
-
* },
|
|
285
280
|
* useCase: {
|
|
286
|
-
* behavior: "
|
|
281
|
+
* 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",
|
|
287
282
|
* value: "OTHER"
|
|
288
|
-
* }
|
|
283
|
+
* },
|
|
284
|
+
* 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",
|
|
285
|
+
* messagingType: "MULTI_USE",
|
|
286
|
+
* 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.",
|
|
287
|
+
* keywords: {
|
|
288
|
+
* HELP: {
|
|
289
|
+
* message: "Email founders@trypinnacle.app for support.",
|
|
290
|
+
* keywords: ["HELP", "SUPPORT"]
|
|
291
|
+
* },
|
|
292
|
+
* OPT_IN: {
|
|
293
|
+
* 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",
|
|
294
|
+
* keywords: ["START", "SUBSCRIBE"]
|
|
295
|
+
* },
|
|
296
|
+
* OPT_OUT: {
|
|
297
|
+
* 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.",
|
|
298
|
+
* keywords: ["STOP", "UNSUBSCRIBE", "END"]
|
|
299
|
+
* }
|
|
300
|
+
* },
|
|
301
|
+
* traffic: {
|
|
302
|
+
* monthlyWebsite: 10000,
|
|
303
|
+
* monthlyRcsEstimate: 10000
|
|
304
|
+
* },
|
|
305
|
+
* 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.",
|
|
306
|
+
* 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.",
|
|
307
|
+
* isConversational: true,
|
|
308
|
+
* 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.",
|
|
309
|
+
* demoTrigger: "Text \"START\" to trigger the flow."
|
|
289
310
|
* })
|
|
290
311
|
*/
|
|
291
312
|
upsert(request = {}, requestOptions) {
|
|
@@ -293,8 +314,8 @@ export class Rcs {
|
|
|
293
314
|
}
|
|
294
315
|
__upsert() {
|
|
295
316
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
296
|
-
var _a, _b, _c;
|
|
297
|
-
|
|
317
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
318
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
298
319
|
const _response = yield core.fetcher({
|
|
299
320
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "campaigns/rcs"),
|
|
300
321
|
method: "POST",
|
|
@@ -303,9 +324,11 @@ export class Rcs {
|
|
|
303
324
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
304
325
|
requestType: "json",
|
|
305
326
|
body: request,
|
|
306
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
307
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
327
|
+
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,
|
|
328
|
+
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,
|
|
308
329
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
330
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
331
|
+
logging: this._options.logging,
|
|
309
332
|
});
|
|
310
333
|
if (_response.ok) {
|
|
311
334
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -366,8 +389,8 @@ export class Rcs {
|
|
|
366
389
|
}
|
|
367
390
|
__validate(request, requestOptions) {
|
|
368
391
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
var _a, _b, _c;
|
|
370
|
-
|
|
392
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
393
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
371
394
|
const _response = yield core.fetcher({
|
|
372
395
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "campaigns/rcs/validate"),
|
|
373
396
|
method: "POST",
|
|
@@ -376,9 +399,11 @@ export class Rcs {
|
|
|
376
399
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
377
400
|
requestType: "json",
|
|
378
401
|
body: request,
|
|
379
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
380
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
402
|
+
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,
|
|
403
|
+
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,
|
|
381
404
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
405
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
406
|
+
logging: this._options.logging,
|
|
382
407
|
});
|
|
383
408
|
if (_response.ok) {
|
|
384
409
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts
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.mjs";
|
|
1
|
+
import type * as Pinnacle from "../../../../../../index.mjs";
|
|
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.mjs";
|
|
|
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.mjs";
|
|
|
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.mjs";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../../../../../index.mjs";
|
|
1
|
+
import type * as Pinnacle from "../../../../../index.mjs";
|
|
5
2
|
export interface RcsAutofillResponse extends Pinnacle.RcsCampaign {
|
|
6
3
|
brand?: string;
|
|
7
4
|
}
|