rcs-js 2.0.1 → 2.0.3-rc.1
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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -2
- package/dist/cjs/api/resources/brands/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/brands/client/Client.js +10 -10
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +6 -3
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +14 -13
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +12 -11
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +8 -8
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +11 -10
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +9 -8
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +4 -3
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +10 -10
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +7 -7
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/contacts/client/Client.js +5 -3
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +4 -2
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +21 -4
- package/dist/cjs/api/resources/conversations/client/Client.js +99 -4
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +36 -0
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +5 -0
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +11 -6
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/conversations/index.d.ts +1 -0
- package/dist/cjs/api/resources/conversations/index.js +1 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +8 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +10 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +8 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +10 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +13 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +15 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +9 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +11 -0
- package/dist/cjs/api/resources/conversations/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/conversations/types/index.js +20 -0
- package/dist/cjs/api/resources/index.d.ts +2 -1
- package/dist/cjs/api/resources/index.js +3 -2
- package/dist/cjs/api/resources/messages/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/messages/client/Client.js +3 -3
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +3 -3
- package/dist/cjs/api/resources/messages/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/index.js +1 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +33 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +90 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/index.js +15 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.ts +38 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.js +5 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/messages/resources/rcs/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +12 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +4 -4
- package/dist/cjs/api/resources/rcs/client/Client.d.ts +11 -7
- package/dist/cjs/api/resources/rcs/client/Client.js +11 -7
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +8 -8
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +2 -2
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +3 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +2 -1
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +3 -11
- package/dist/cjs/api/resources/tools/resources/file/client/requests/UploadFileParams.d.ts +7 -0
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -1
- package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +2 -2
- package/dist/cjs/api/types/AutofillCampaignParams.d.ts +7 -2
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +4 -4
- package/dist/cjs/api/types/BrandStatus.d.ts +2 -2
- package/dist/cjs/api/types/ButtonClickedData.d.ts +2 -2
- package/dist/cjs/api/types/CampaignQuery.d.ts +6 -1
- package/dist/cjs/api/types/ConfiguredWebhook.d.ts +2 -2
- package/dist/cjs/api/types/Contact.d.ts +2 -2
- package/dist/cjs/api/types/ContactId.d.ts +2 -2
- package/dist/cjs/api/types/Conversation.d.ts +7 -7
- package/dist/cjs/api/types/ConversationList.d.ts +4 -4
- package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +2 -2
- package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +2 -2
- package/dist/cjs/api/types/DlcCampaignStatus.d.ts +2 -2
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +2 -2
- package/dist/cjs/api/types/ExtendedBrand.d.ts +2 -2
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +2 -2
- package/dist/cjs/api/types/GetConversationParams.d.ts +1 -1
- package/dist/cjs/api/types/LinkClickEvent.d.ts +0 -4
- package/dist/cjs/api/types/Message.d.ts +2 -2
- package/dist/cjs/api/types/MessageEvent.d.ts +6 -12
- package/dist/cjs/api/types/MessageEventContent.d.ts +29 -0
- package/dist/cjs/api/types/MessageEventContent.js +5 -0
- package/dist/cjs/api/types/MessageEventMmsContent.d.ts +23 -0
- package/dist/cjs/api/types/MessageEventMmsContent.js +5 -0
- package/dist/cjs/api/types/MessageEventRcsButtonData.d.ts +18 -0
- package/dist/cjs/api/types/MessageEventRcsButtonData.js +5 -0
- package/dist/cjs/api/types/MessageEventRcsCardsContent.d.ts +39 -0
- package/dist/cjs/api/types/MessageEventRcsCardsContent.js +5 -0
- package/dist/cjs/api/types/MessageEventRcsLocationData.d.ts +18 -0
- package/dist/cjs/api/types/MessageEventRcsLocationData.js +5 -0
- package/dist/cjs/api/types/MessageEventRcsMediaContent.d.ts +22 -0
- package/dist/cjs/api/types/MessageEventRcsMediaContent.js +5 -0
- package/dist/cjs/api/types/MessageEventRcsTextContent.d.ts +20 -0
- package/dist/cjs/api/types/MessageEventRcsTextContent.js +5 -0
- package/dist/cjs/api/types/MessageEventSmsContent.d.ts +17 -0
- package/dist/cjs/api/types/MessageEventSmsContent.js +5 -0
- package/dist/cjs/api/types/MessageList.d.ts +15 -0
- package/dist/cjs/api/types/MessageList.js +5 -0
- package/dist/cjs/api/types/MessageWithReaction.d.ts +27 -0
- package/dist/cjs/api/types/MessageWithReaction.js +13 -0
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +6 -0
- package/dist/cjs/api/types/NotFoundErrorBody.js +5 -0
- package/dist/cjs/api/types/Options.d.ts +21 -0
- package/dist/cjs/api/types/Options.js +5 -0
- package/dist/cjs/api/types/RcsButtonOpenUrl.d.ts +31 -2
- package/dist/cjs/api/types/RcsButtonOpenUrl.js +9 -0
- package/dist/cjs/api/types/RcsButtonSendLocation.d.ts +8 -2
- package/dist/cjs/api/types/RcsCampaign.d.ts +1 -1
- package/dist/cjs/api/types/RcsCampaignStatus.d.ts +2 -2
- package/dist/cjs/api/types/ReactionResult.d.ts +4 -4
- package/dist/cjs/api/types/RichCardsMessage.d.ts +51 -1
- package/dist/cjs/api/types/RichCardsMessage.js +18 -0
- package/dist/cjs/api/types/ScheduledMessaage.d.ts +2 -2
- package/dist/cjs/api/types/SendTypingIndicatorResponse.d.ts +22 -0
- package/dist/cjs/api/types/SendTypingIndicatorResponse.js +5 -0
- package/dist/cjs/api/types/SentMmsDetails.d.ts +2 -2
- package/dist/cjs/api/types/SentRcsDetails.d.ts +2 -2
- package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -2
- package/dist/cjs/api/types/TollFreeCampaign.d.ts +2 -2
- package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +2 -2
- package/dist/cjs/api/types/UpdatedContactId.d.ts +2 -2
- package/dist/cjs/api/types/UploadResults.d.ts +6 -0
- package/dist/cjs/api/types/ValidateCampaignParams.d.ts +7 -2
- package/dist/cjs/api/types/Vcard.d.ts +2 -2
- package/dist/cjs/api/types/VcardResource.d.ts +2 -2
- package/dist/cjs/api/types/Webhooks.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +13 -0
- package/dist/cjs/api/types/index.js +13 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/messages/Client.js +8 -3
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -2
- package/dist/esm/api/resources/brands/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/brands/client/Client.mjs +10 -10
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +6 -3
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +14 -13
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +12 -11
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +8 -8
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +11 -10
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +9 -8
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +4 -3
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +10 -10
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +7 -7
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/contacts/client/Client.mjs +5 -3
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +4 -2
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +3 -3
- package/dist/esm/api/resources/conversations/client/Client.d.mts +21 -4
- package/dist/esm/api/resources/conversations/client/Client.mjs +99 -4
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +36 -0
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +4 -0
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +11 -6
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +3 -3
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/conversations/index.d.mts +1 -0
- package/dist/esm/api/resources/conversations/index.mjs +1 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +8 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +7 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +8 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +7 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +13 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +12 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +9 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +8 -0
- package/dist/esm/api/resources/conversations/types/index.d.mts +4 -0
- package/dist/esm/api/resources/conversations/types/index.mjs +4 -0
- package/dist/esm/api/resources/index.d.mts +2 -1
- package/dist/esm/api/resources/index.mjs +2 -1
- package/dist/esm/api/resources/messages/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/messages/client/Client.mjs +3 -3
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +3 -3
- package/dist/esm/api/resources/messages/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/index.mjs +1 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +33 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +90 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/index.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.d.mts +38 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/SendTypingIndicatorSchema.mjs +4 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/messages/resources/rcs/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +12 -3
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +4 -4
- package/dist/esm/api/resources/rcs/client/Client.d.mts +11 -7
- package/dist/esm/api/resources/rcs/client/Client.mjs +11 -7
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +8 -8
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +3 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +2 -1
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +3 -11
- package/dist/esm/api/resources/tools/resources/file/client/requests/UploadFileParams.d.mts +7 -0
- package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -1
- package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +2 -2
- package/dist/esm/api/types/AutofillCampaignParams.d.mts +7 -2
- package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +4 -4
- package/dist/esm/api/types/BrandStatus.d.mts +2 -2
- package/dist/esm/api/types/ButtonClickedData.d.mts +2 -2
- package/dist/esm/api/types/CampaignQuery.d.mts +6 -1
- package/dist/esm/api/types/ConfiguredWebhook.d.mts +2 -2
- package/dist/esm/api/types/Contact.d.mts +2 -2
- package/dist/esm/api/types/ContactId.d.mts +2 -2
- package/dist/esm/api/types/Conversation.d.mts +7 -7
- package/dist/esm/api/types/ConversationList.d.mts +4 -4
- package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +2 -2
- package/dist/esm/api/types/DetachedWebhookInfo.d.mts +2 -2
- package/dist/esm/api/types/DlcCampaignStatus.d.mts +2 -2
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +2 -2
- package/dist/esm/api/types/ExtendedBrand.d.mts +2 -2
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +2 -2
- package/dist/esm/api/types/GetConversationParams.d.mts +1 -1
- package/dist/esm/api/types/LinkClickEvent.d.mts +0 -4
- package/dist/esm/api/types/Message.d.mts +2 -2
- package/dist/esm/api/types/MessageEvent.d.mts +6 -12
- package/dist/esm/api/types/MessageEventContent.d.mts +29 -0
- package/dist/esm/api/types/MessageEventContent.mjs +4 -0
- package/dist/esm/api/types/MessageEventMmsContent.d.mts +23 -0
- package/dist/esm/api/types/MessageEventMmsContent.mjs +4 -0
- package/dist/esm/api/types/MessageEventRcsButtonData.d.mts +18 -0
- package/dist/esm/api/types/MessageEventRcsButtonData.mjs +4 -0
- package/dist/esm/api/types/MessageEventRcsCardsContent.d.mts +39 -0
- package/dist/esm/api/types/MessageEventRcsCardsContent.mjs +4 -0
- package/dist/esm/api/types/MessageEventRcsLocationData.d.mts +18 -0
- package/dist/esm/api/types/MessageEventRcsLocationData.mjs +4 -0
- package/dist/esm/api/types/MessageEventRcsMediaContent.d.mts +22 -0
- package/dist/esm/api/types/MessageEventRcsMediaContent.mjs +4 -0
- package/dist/esm/api/types/MessageEventRcsTextContent.d.mts +20 -0
- package/dist/esm/api/types/MessageEventRcsTextContent.mjs +4 -0
- package/dist/esm/api/types/MessageEventSmsContent.d.mts +17 -0
- package/dist/esm/api/types/MessageEventSmsContent.mjs +4 -0
- package/dist/esm/api/types/MessageList.d.mts +15 -0
- package/dist/esm/api/types/MessageList.mjs +4 -0
- package/dist/esm/api/types/MessageWithReaction.d.mts +27 -0
- package/dist/esm/api/types/MessageWithReaction.mjs +10 -0
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +6 -0
- package/dist/esm/api/types/NotFoundErrorBody.mjs +4 -0
- package/dist/esm/api/types/Options.d.mts +21 -0
- package/dist/esm/api/types/Options.mjs +4 -0
- package/dist/esm/api/types/RcsButtonOpenUrl.d.mts +31 -2
- package/dist/esm/api/types/RcsButtonOpenUrl.mjs +8 -1
- package/dist/esm/api/types/RcsButtonSendLocation.d.mts +8 -2
- package/dist/esm/api/types/RcsCampaign.d.mts +1 -1
- package/dist/esm/api/types/RcsCampaignStatus.d.mts +2 -2
- package/dist/esm/api/types/ReactionResult.d.mts +4 -4
- package/dist/esm/api/types/RichCardsMessage.d.mts +51 -1
- package/dist/esm/api/types/RichCardsMessage.mjs +17 -1
- package/dist/esm/api/types/ScheduledMessaage.d.mts +2 -2
- package/dist/esm/api/types/SendTypingIndicatorResponse.d.mts +22 -0
- package/dist/esm/api/types/SendTypingIndicatorResponse.mjs +4 -0
- package/dist/esm/api/types/SentMmsDetails.d.mts +2 -2
- package/dist/esm/api/types/SentRcsDetails.d.mts +2 -2
- package/dist/esm/api/types/SentSmsDetails.d.mts +2 -2
- package/dist/esm/api/types/TollFreeCampaign.d.mts +2 -2
- package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +2 -2
- package/dist/esm/api/types/UpdatedContactId.d.mts +2 -2
- package/dist/esm/api/types/UploadResults.d.mts +6 -0
- package/dist/esm/api/types/ValidateCampaignParams.d.mts +7 -2
- package/dist/esm/api/types/Vcard.d.mts +2 -2
- package/dist/esm/api/types/VcardResource.d.mts +2 -2
- package/dist/esm/api/types/Webhooks.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +13 -0
- package/dist/esm/api/types/index.mjs +13 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/messages/Client.mjs +8 -3
- package/package.json +3 -3
- package/reference.md +235 -73
package/reference.md
CHANGED
|
@@ -112,7 +112,7 @@ await client.brands.upsert({
|
|
|
112
112
|
description: "A developer-friendly, compliant API for SMS, MMS, and RCS, built to scale real conversations.",
|
|
113
113
|
ein: "88-1234567",
|
|
114
114
|
email: "founders@trypinnacle.app",
|
|
115
|
-
id:
|
|
115
|
+
id: "b_1234567890",
|
|
116
116
|
name: "Pinnacle",
|
|
117
117
|
sector: "TECHNOLOGY",
|
|
118
118
|
type: "PRIVATE_PROFIT",
|
|
@@ -180,7 +180,7 @@ Retrieve detailed information for a specific brand in your account by ID.
|
|
|
180
180
|
<dd>
|
|
181
181
|
|
|
182
182
|
```typescript
|
|
183
|
-
await client.brands.get(
|
|
183
|
+
await client.brands.get("b_1234567890");
|
|
184
184
|
```
|
|
185
185
|
|
|
186
186
|
</dd>
|
|
@@ -196,7 +196,10 @@ await client.brands.get(1);
|
|
|
196
196
|
<dl>
|
|
197
197
|
<dd>
|
|
198
198
|
|
|
199
|
-
**id:** `
|
|
199
|
+
**id:** `string`
|
|
200
|
+
|
|
201
|
+
The unique identifier of the brand you want to retrieve from your account.
|
|
202
|
+
<br><br> This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`.
|
|
200
203
|
|
|
201
204
|
</dd>
|
|
202
205
|
</dl>
|
|
@@ -251,7 +254,7 @@ Submit your brand for review and approval by the compliance team.
|
|
|
251
254
|
<dd>
|
|
252
255
|
|
|
253
256
|
```typescript
|
|
254
|
-
await client.brands.submit(
|
|
257
|
+
await client.brands.submit("b_1234567890");
|
|
255
258
|
```
|
|
256
259
|
|
|
257
260
|
</dd>
|
|
@@ -267,11 +270,10 @@ await client.brands.submit(1);
|
|
|
267
270
|
<dl>
|
|
268
271
|
<dd>
|
|
269
272
|
|
|
270
|
-
**brandId:** `
|
|
271
|
-
|
|
272
|
-
The unique identifier of the brand you want to submit for review. <br>
|
|
273
|
+
**brandId:** `string`
|
|
273
274
|
|
|
274
|
-
|
|
275
|
+
The unique identifier of the brand you want to submit for review. <br><br>
|
|
276
|
+
This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890` and must correspond to an existing brand in your account that is ready for submission.
|
|
275
277
|
|
|
276
278
|
</dd>
|
|
277
279
|
</dl>
|
|
@@ -397,7 +399,7 @@ Submit a brand for external vetting verification to enhance your brand's trust s
|
|
|
397
399
|
<dd>
|
|
398
400
|
|
|
399
401
|
```typescript
|
|
400
|
-
await client.brands.vet(
|
|
402
|
+
await client.brands.vet("b_1234567890", {});
|
|
401
403
|
```
|
|
402
404
|
|
|
403
405
|
</dd>
|
|
@@ -413,11 +415,11 @@ await client.brands.vet(1, {});
|
|
|
413
415
|
<dl>
|
|
414
416
|
<dd>
|
|
415
417
|
|
|
416
|
-
**brandId:** `
|
|
418
|
+
**brandId:** `string`
|
|
417
419
|
|
|
418
420
|
The unique identifier of the brand to vet. <br>
|
|
419
421
|
|
|
420
|
-
|
|
422
|
+
This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890` and must correspond to an existing brand in your account that is ready for vetting.
|
|
421
423
|
|
|
422
424
|
</dd>
|
|
423
425
|
</dl>
|
|
@@ -474,7 +476,9 @@ Retrieve contact information for a given number.
|
|
|
474
476
|
<dd>
|
|
475
477
|
|
|
476
478
|
```typescript
|
|
477
|
-
await client.contacts.get(
|
|
479
|
+
await client.contacts.get({
|
|
480
|
+
id: "co_1234567890",
|
|
481
|
+
});
|
|
478
482
|
```
|
|
479
483
|
|
|
480
484
|
</dd>
|
|
@@ -607,7 +611,7 @@ await client.contacts.update({
|
|
|
607
611
|
email: "alvaroopedtech@pinnacle.sh",
|
|
608
612
|
name: "Retired Bestie",
|
|
609
613
|
tags: ["friend"],
|
|
610
|
-
id:
|
|
614
|
+
id: "co_1234567890",
|
|
611
615
|
});
|
|
612
616
|
```
|
|
613
617
|
|
|
@@ -674,7 +678,7 @@ Fetch a specific conversation using either its unique identifier or by matching
|
|
|
674
678
|
|
|
675
679
|
```typescript
|
|
676
680
|
await client.conversations.get({
|
|
677
|
-
id:
|
|
681
|
+
id: "conv_1234567890",
|
|
678
682
|
});
|
|
679
683
|
```
|
|
680
684
|
|
|
@@ -739,8 +743,8 @@ Retrieves conversations by page with optional filtering based off provided param
|
|
|
739
743
|
|
|
740
744
|
```typescript
|
|
741
745
|
await client.conversations.list({
|
|
742
|
-
brandId:
|
|
743
|
-
campaignId:
|
|
746
|
+
brandId: "b_1234567890",
|
|
747
|
+
campaignId: "tf_1234567890",
|
|
744
748
|
campaignType: "TOLL_FREE",
|
|
745
749
|
pageIndex: 0,
|
|
746
750
|
pageSize: 20,
|
|
@@ -810,7 +814,7 @@ Update the notes associated with a specific conversation.
|
|
|
810
814
|
|
|
811
815
|
```typescript
|
|
812
816
|
await client.conversations.update({
|
|
813
|
-
id:
|
|
817
|
+
id: "conv_1234567890",
|
|
814
818
|
notes: "Follow-up completed. Customer satisfied with resolution.",
|
|
815
819
|
});
|
|
816
820
|
```
|
|
@@ -847,6 +851,77 @@ await client.conversations.update({
|
|
|
847
851
|
</dl>
|
|
848
852
|
</details>
|
|
849
853
|
|
|
854
|
+
<details><summary><code>client.conversations.<a href="/src/api/resources/conversations/client/Client.ts">listMessages</a>(id, { ...params }) -> Pinnacle.MessageList</code></summary>
|
|
855
|
+
<dl>
|
|
856
|
+
<dd>
|
|
857
|
+
|
|
858
|
+
#### 📝 Description
|
|
859
|
+
|
|
860
|
+
<dl>
|
|
861
|
+
<dd>
|
|
862
|
+
|
|
863
|
+
<dl>
|
|
864
|
+
<dd>
|
|
865
|
+
|
|
866
|
+
Retrieve a paginated and filtered list of messages for a specific conversation.
|
|
867
|
+
|
|
868
|
+
</dd>
|
|
869
|
+
</dl>
|
|
870
|
+
</dd>
|
|
871
|
+
</dl>
|
|
872
|
+
|
|
873
|
+
#### 🔌 Usage
|
|
874
|
+
|
|
875
|
+
<dl>
|
|
876
|
+
<dd>
|
|
877
|
+
|
|
878
|
+
<dl>
|
|
879
|
+
<dd>
|
|
880
|
+
|
|
881
|
+
```typescript
|
|
882
|
+
await client.conversations.listMessages("id");
|
|
883
|
+
```
|
|
884
|
+
|
|
885
|
+
</dd>
|
|
886
|
+
</dl>
|
|
887
|
+
</dd>
|
|
888
|
+
</dl>
|
|
889
|
+
|
|
890
|
+
#### ⚙️ Parameters
|
|
891
|
+
|
|
892
|
+
<dl>
|
|
893
|
+
<dd>
|
|
894
|
+
|
|
895
|
+
<dl>
|
|
896
|
+
<dd>
|
|
897
|
+
|
|
898
|
+
**id:** `string` — Unique identifier of the conversation. This identifier is a string that always begins with the prefix `conv_`, for example: `conv_1234567890`.
|
|
899
|
+
|
|
900
|
+
</dd>
|
|
901
|
+
</dl>
|
|
902
|
+
|
|
903
|
+
<dl>
|
|
904
|
+
<dd>
|
|
905
|
+
|
|
906
|
+
**request:** `Pinnacle.ConversationsListMessagesRequest`
|
|
907
|
+
|
|
908
|
+
</dd>
|
|
909
|
+
</dl>
|
|
910
|
+
|
|
911
|
+
<dl>
|
|
912
|
+
<dd>
|
|
913
|
+
|
|
914
|
+
**requestOptions:** `Conversations.RequestOptions`
|
|
915
|
+
|
|
916
|
+
</dd>
|
|
917
|
+
</dl>
|
|
918
|
+
</dd>
|
|
919
|
+
</dl>
|
|
920
|
+
|
|
921
|
+
</dd>
|
|
922
|
+
</dl>
|
|
923
|
+
</details>
|
|
924
|
+
|
|
850
925
|
## Messages
|
|
851
926
|
|
|
852
927
|
<details><summary><code>client.messages.<a href="/src/api/resources/messages/client/Client.ts">get</a>(id) -> Pinnacle.Message</code></summary>
|
|
@@ -877,7 +952,7 @@ Retrieve a previously sent message.
|
|
|
877
952
|
<dd>
|
|
878
953
|
|
|
879
954
|
```typescript
|
|
880
|
-
await client.messages.get(
|
|
955
|
+
await client.messages.get("msg_1234567890");
|
|
881
956
|
```
|
|
882
957
|
|
|
883
958
|
</dd>
|
|
@@ -893,7 +968,7 @@ await client.messages.get(1240);
|
|
|
893
968
|
<dl>
|
|
894
969
|
<dd>
|
|
895
970
|
|
|
896
|
-
**id:** `
|
|
971
|
+
**id:** `string` — Unique identifier of the message. This identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`.
|
|
897
972
|
|
|
898
973
|
</dd>
|
|
899
974
|
</dl>
|
|
@@ -941,7 +1016,7 @@ Add or remove an emoji reaction to a previously sent message.
|
|
|
941
1016
|
|
|
942
1017
|
```typescript
|
|
943
1018
|
await client.messages.react({
|
|
944
|
-
messageId:
|
|
1019
|
+
messageId: "msg_1234567890",
|
|
945
1020
|
options: {
|
|
946
1021
|
force: true,
|
|
947
1022
|
},
|
|
@@ -1286,24 +1361,28 @@ Whitelist a phone number for testing with your test RCS agent.
|
|
|
1286
1361
|
## Overview
|
|
1287
1362
|
|
|
1288
1363
|
During development and testing, RCS agents can only send messages to whitelisted phone numbers.
|
|
1289
|
-
Use this endpoint to
|
|
1364
|
+
Use this endpoint to whitelist specific phone numbers to send and receive messages from the test agent.
|
|
1290
1365
|
|
|
1291
1366
|
## Verification Process
|
|
1292
1367
|
|
|
1293
1368
|
After whitelisting a number, you'll need to complete verification:
|
|
1294
1369
|
|
|
1295
|
-
1. Check the test device for
|
|
1296
|
-
2.
|
|
1297
|
-
3. Enter the 4-digit verification code in the Pinnacle dashboard at:
|
|
1370
|
+
1. Check the test device for message from "RBM Tester Management"
|
|
1371
|
+
2. Click the "Make me a tester" button
|
|
1372
|
+
3. Enter the separate 4-digit verification SMS code in the Pinnacle dashboard at:
|
|
1298
1373
|
```
|
|
1299
1374
|
https://app.pinnacle.sh/dashboard/brands/{brandId}?campaignId={campaignId}&campaignType=RCS
|
|
1300
1375
|
```
|
|
1301
1376
|
|
|
1377
|
+
> **⚠️ Important: Re-whitelisting Numbers**
|
|
1378
|
+
>
|
|
1379
|
+
> If you whitelist a number that's already whitelisted, you'll receive a new message from "RBM Tester Management". **You must click the "Make me a tester" button again to continue sending and receiving messages.**
|
|
1380
|
+
|
|
1302
1381
|
> **Important Notes**
|
|
1303
1382
|
>
|
|
1304
|
-
> - **
|
|
1305
|
-
> - **
|
|
1306
|
-
> - **
|
|
1383
|
+
> - **Verification required:** Messages cannot be sent nor received until you have clicked the "Make me a tester" button on the test device.
|
|
1384
|
+
> - **Testing only:** This is only required for test agents. Production agents can message any RCS-enabled number.
|
|
1385
|
+
> - **Network limitations:** Whitelisting may be temporarily unavailable for some carriers but are usually restored shortly.
|
|
1307
1386
|
|
|
1308
1387
|
</dd>
|
|
1309
1388
|
</dl>
|
|
@@ -1531,8 +1610,8 @@ Generate campaign details based off existing campaign and the brand it's connect
|
|
|
1531
1610
|
|
|
1532
1611
|
```typescript
|
|
1533
1612
|
await client.campaigns.dlc.autofill({
|
|
1534
|
-
additionalInfo: "Please autofill missing
|
|
1535
|
-
campaignId:
|
|
1613
|
+
additionalInfo: "Please autofill missing campaign fields using my brand profile",
|
|
1614
|
+
campaignId: "dlc_1234567890",
|
|
1536
1615
|
});
|
|
1537
1616
|
```
|
|
1538
1617
|
|
|
@@ -1596,7 +1675,7 @@ Retrieve 10DLC campaign.
|
|
|
1596
1675
|
<dd>
|
|
1597
1676
|
|
|
1598
1677
|
```typescript
|
|
1599
|
-
await client.campaigns.dlc.get(
|
|
1678
|
+
await client.campaigns.dlc.get("dlc_1234567890");
|
|
1600
1679
|
```
|
|
1601
1680
|
|
|
1602
1681
|
</dd>
|
|
@@ -1612,7 +1691,7 @@ await client.campaigns.dlc.get(28);
|
|
|
1612
1691
|
<dl>
|
|
1613
1692
|
<dd>
|
|
1614
1693
|
|
|
1615
|
-
**campaignId:** `
|
|
1694
|
+
**campaignId:** `string` — Unique identifier of the 10DLC campaign. This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
1616
1695
|
|
|
1617
1696
|
</dd>
|
|
1618
1697
|
</dl>
|
|
@@ -1659,7 +1738,7 @@ Submit your 10DLC campaign for approval and activation with carriers.
|
|
|
1659
1738
|
<dd>
|
|
1660
1739
|
|
|
1661
1740
|
```typescript
|
|
1662
|
-
await client.campaigns.dlc.submit(
|
|
1741
|
+
await client.campaigns.dlc.submit("dlc_1234567890");
|
|
1663
1742
|
```
|
|
1664
1743
|
|
|
1665
1744
|
</dd>
|
|
@@ -1675,7 +1754,10 @@ await client.campaigns.dlc.submit(161);
|
|
|
1675
1754
|
<dl>
|
|
1676
1755
|
<dd>
|
|
1677
1756
|
|
|
1678
|
-
**campaignId:** `
|
|
1757
|
+
**campaignId:** `string`
|
|
1758
|
+
|
|
1759
|
+
Unique identifier of the 10DLC campaign to submit.
|
|
1760
|
+
<br><br> This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
1679
1761
|
|
|
1680
1762
|
</dd>
|
|
1681
1763
|
</dl>
|
|
@@ -1726,19 +1808,19 @@ Omit campaignId to create a campaign.
|
|
|
1726
1808
|
```typescript
|
|
1727
1809
|
await client.campaigns.dlc.upsert({
|
|
1728
1810
|
autoRenew: true,
|
|
1729
|
-
brand:
|
|
1730
|
-
campaignId:
|
|
1811
|
+
brand: "b_1234567890",
|
|
1812
|
+
campaignId: "dlc_1234567890",
|
|
1731
1813
|
keywords: {
|
|
1732
1814
|
HELP: {
|
|
1733
1815
|
message: "Reply HELP for assistance, STOP to opt-out",
|
|
1734
1816
|
values: ["HELP", "INFO", "SUPPORT"],
|
|
1735
1817
|
},
|
|
1736
1818
|
OPT_IN: {
|
|
1737
|
-
message: "Welcome
|
|
1819
|
+
message: "Welcome. You are now subscribed to Pinnacle.",
|
|
1738
1820
|
values: ["JOIN", "START", "SUBSCRIBE"],
|
|
1739
1821
|
},
|
|
1740
1822
|
OPT_OUT: {
|
|
1741
|
-
message: "You
|
|
1823
|
+
message: "You have been unsubscribed. Reply START to rejoin.",
|
|
1742
1824
|
values: ["STOP", "QUIT", "UNSUBSCRIBE"],
|
|
1743
1825
|
},
|
|
1744
1826
|
},
|
|
@@ -1826,7 +1908,7 @@ Validate your 10DLC campaign configuration against carrier requirements and comp
|
|
|
1826
1908
|
```typescript
|
|
1827
1909
|
await client.campaigns.dlc.validate({
|
|
1828
1910
|
additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
|
|
1829
|
-
campaignId:
|
|
1911
|
+
campaignId: "dlc_1234567890",
|
|
1830
1912
|
});
|
|
1831
1913
|
```
|
|
1832
1914
|
|
|
@@ -1893,8 +1975,8 @@ Generate campaign details based off existing campaign and the brand it's connect
|
|
|
1893
1975
|
|
|
1894
1976
|
```typescript
|
|
1895
1977
|
await client.campaigns.tollFree.autofill({
|
|
1896
|
-
additionalInfo: "Please autofill missing
|
|
1897
|
-
campaignId:
|
|
1978
|
+
additionalInfo: "Please autofill missing campaign fields using my brand profile",
|
|
1979
|
+
campaignId: "dlc_1234567890",
|
|
1898
1980
|
});
|
|
1899
1981
|
```
|
|
1900
1982
|
|
|
@@ -1958,7 +2040,7 @@ Retrieve Toll-Free campaign.
|
|
|
1958
2040
|
<dd>
|
|
1959
2041
|
|
|
1960
2042
|
```typescript
|
|
1961
|
-
await client.campaigns.tollFree.get(
|
|
2043
|
+
await client.campaigns.tollFree.get("tf_1234567890");
|
|
1962
2044
|
```
|
|
1963
2045
|
|
|
1964
2046
|
</dd>
|
|
@@ -1974,7 +2056,7 @@ await client.campaigns.tollFree.get(161);
|
|
|
1974
2056
|
<dl>
|
|
1975
2057
|
<dd>
|
|
1976
2058
|
|
|
1977
|
-
**campaignId:** `
|
|
2059
|
+
**campaignId:** `string` — Unique identifier of toll-free campaign. Must begin with the prefix `tf_`.
|
|
1978
2060
|
|
|
1979
2061
|
</dd>
|
|
1980
2062
|
</dl>
|
|
@@ -2021,7 +2103,7 @@ Submit your toll-free campaign for approval and activation with carriers.
|
|
|
2021
2103
|
<dd>
|
|
2022
2104
|
|
|
2023
2105
|
```typescript
|
|
2024
|
-
await client.campaigns.tollFree.submit(
|
|
2106
|
+
await client.campaigns.tollFree.submit("tf_1234567890");
|
|
2025
2107
|
```
|
|
2026
2108
|
|
|
2027
2109
|
</dd>
|
|
@@ -2037,7 +2119,7 @@ await client.campaigns.tollFree.submit(161);
|
|
|
2037
2119
|
<dl>
|
|
2038
2120
|
<dd>
|
|
2039
2121
|
|
|
2040
|
-
**campaignId:** `
|
|
2122
|
+
**campaignId:** `string` — Unique identifier of the toll-free campaign to submit. Must begin with the prefix `tf_`.
|
|
2041
2123
|
|
|
2042
2124
|
</dd>
|
|
2043
2125
|
</dl>
|
|
@@ -2087,8 +2169,8 @@ Omit campaignId to create a campaign.
|
|
|
2087
2169
|
|
|
2088
2170
|
```typescript
|
|
2089
2171
|
await client.campaigns.tollFree.upsert({
|
|
2090
|
-
brand:
|
|
2091
|
-
campaignId:
|
|
2172
|
+
brand: "b_1234567890",
|
|
2173
|
+
campaignId: "tf_1234567890",
|
|
2092
2174
|
monthlyVolume: "1,000",
|
|
2093
2175
|
name: "Pinnacle",
|
|
2094
2176
|
optIn: {
|
|
@@ -2096,7 +2178,7 @@ await client.campaigns.tollFree.upsert({
|
|
|
2096
2178
|
url: "https://www.pinnacle.sh/",
|
|
2097
2179
|
workflowDescription: "Visit https://www.pinnacle.sh/",
|
|
2098
2180
|
},
|
|
2099
|
-
productionMessageContent: "Join Pinnacle
|
|
2181
|
+
productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
|
|
2100
2182
|
useCase: {
|
|
2101
2183
|
summary: "Alerts clients about any Pinnacle hosted workshops.",
|
|
2102
2184
|
value: "WORKSHOP_ALERTS",
|
|
@@ -2166,7 +2248,7 @@ Validate your toll-free campaign configuration against carrier requirements and
|
|
|
2166
2248
|
```typescript
|
|
2167
2249
|
await client.campaigns.tollFree.validate({
|
|
2168
2250
|
additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
|
|
2169
|
-
campaignId:
|
|
2251
|
+
campaignId: "dlc_1234567890",
|
|
2170
2252
|
});
|
|
2171
2253
|
```
|
|
2172
2254
|
|
|
@@ -2233,8 +2315,8 @@ Generate campaign details based off existing campaign and the brand it's connect
|
|
|
2233
2315
|
|
|
2234
2316
|
```typescript
|
|
2235
2317
|
await client.campaigns.rcs.autofill({
|
|
2236
|
-
additionalInfo: "Please autofill missing
|
|
2237
|
-
campaignId:
|
|
2318
|
+
additionalInfo: "Please autofill missing campaign fields using my brand profile",
|
|
2319
|
+
campaignId: "dlc_1234567890",
|
|
2238
2320
|
});
|
|
2239
2321
|
```
|
|
2240
2322
|
|
|
@@ -2298,7 +2380,7 @@ Retrieve RCS campaign.
|
|
|
2298
2380
|
<dd>
|
|
2299
2381
|
|
|
2300
2382
|
```typescript
|
|
2301
|
-
await client.campaigns.rcs.get(
|
|
2383
|
+
await client.campaigns.rcs.get("rcs_1234567890");
|
|
2302
2384
|
```
|
|
2303
2385
|
|
|
2304
2386
|
</dd>
|
|
@@ -2314,7 +2396,7 @@ await client.campaigns.rcs.get(161);
|
|
|
2314
2396
|
<dl>
|
|
2315
2397
|
<dd>
|
|
2316
2398
|
|
|
2317
|
-
**campaignId:** `
|
|
2399
|
+
**campaignId:** `string` — Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
|
|
2318
2400
|
|
|
2319
2401
|
</dd>
|
|
2320
2402
|
</dl>
|
|
@@ -2361,7 +2443,7 @@ Submit your RCS campaign for approval and activation with carriers.
|
|
|
2361
2443
|
<dd>
|
|
2362
2444
|
|
|
2363
2445
|
```typescript
|
|
2364
|
-
await client.campaigns.rcs.submit(
|
|
2446
|
+
await client.campaigns.rcs.submit("rcs_1234567890");
|
|
2365
2447
|
```
|
|
2366
2448
|
|
|
2367
2449
|
</dd>
|
|
@@ -2377,7 +2459,7 @@ await client.campaigns.rcs.submit(161);
|
|
|
2377
2459
|
<dl>
|
|
2378
2460
|
<dd>
|
|
2379
2461
|
|
|
2380
|
-
**campaignId:** `
|
|
2462
|
+
**campaignId:** `string` — Unique identifier of the RCS campaign to retrieve. Must begin with the prefix `rcs_`.
|
|
2381
2463
|
|
|
2382
2464
|
</dd>
|
|
2383
2465
|
</dl>
|
|
@@ -2454,7 +2536,8 @@ await client.campaigns.rcs.upsert({
|
|
|
2454
2536
|
],
|
|
2455
2537
|
},
|
|
2456
2538
|
brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
|
|
2457
|
-
brand:
|
|
2539
|
+
brand: "b_1234567890",
|
|
2540
|
+
campaignId: "rcs_1234567890",
|
|
2458
2541
|
expectedAgentResponses: [
|
|
2459
2542
|
"Here are the things I can help you with.",
|
|
2460
2543
|
"I can assist you with booking an appointment, or you may choose to book manually.",
|
|
@@ -2542,7 +2625,7 @@ Validate your RCS campaign configuration against carrier requirements and compli
|
|
|
2542
2625
|
```typescript
|
|
2543
2626
|
await client.campaigns.rcs.validate({
|
|
2544
2627
|
additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
|
|
2545
|
-
campaignId:
|
|
2628
|
+
campaignId: "dlc_1234567890",
|
|
2546
2629
|
});
|
|
2547
2630
|
```
|
|
2548
2631
|
|
|
@@ -2934,6 +3017,85 @@ await client.messages.rcs.send({
|
|
|
2934
3017
|
</dl>
|
|
2935
3018
|
</details>
|
|
2936
3019
|
|
|
3020
|
+
<details><summary><code>client.messages.rcs.<a href="/src/api/resources/messages/resources/rcs/client/Client.ts">sendTyping</a>({ ...params }) -> Pinnacle.SendTypingIndicatorResponse</code></summary>
|
|
3021
|
+
<dl>
|
|
3022
|
+
<dd>
|
|
3023
|
+
|
|
3024
|
+
#### 📝 Description
|
|
3025
|
+
|
|
3026
|
+
<dl>
|
|
3027
|
+
<dd>
|
|
3028
|
+
|
|
3029
|
+
<dl>
|
|
3030
|
+
<dd>
|
|
3031
|
+
|
|
3032
|
+
Send a typing indicator from an RCS agent to a recipient.
|
|
3033
|
+
|
|
3034
|
+
This endpoint allows RCS agents to display a typing indicator to recipients. The indicator is a message bubble with animated typing dots like this: <img src="https://server.trypinnacle.app/storage/v1/object/public/pinnacle-public-assets/ios-typing-indicator.png" alt="Typing Indicator" style="display: inline; height: 1.5em; vertical-align: middle; margin: 0 4px;" />
|
|
3035
|
+
|
|
3036
|
+
**Use Case:** Typing indicators are especially useful for providing feedback to users while the agent is thinking or generating a response that may take some time, creating a more engaging conversational experience.
|
|
3037
|
+
|
|
3038
|
+
**Expiration:** Typing indicators automatically expire after around 20 seconds or when the agent sends a message, whichever comes first.
|
|
3039
|
+
|
|
3040
|
+
**Frequency:** You can send typing indicators as many times as needed, though only one will be displayed at a time. Sending multiple typing indicators will extend the duration of the current indicator.
|
|
3041
|
+
|
|
3042
|
+
> **Note:** Typing indicators are best-effort hints, not delivery-guaranteed state. The platform is allowed to coalesce or drop them, and the client UI decides when to show/hide.
|
|
3043
|
+
|
|
3044
|
+
</dd>
|
|
3045
|
+
</dl>
|
|
3046
|
+
</dd>
|
|
3047
|
+
</dl>
|
|
3048
|
+
|
|
3049
|
+
#### 🔌 Usage
|
|
3050
|
+
|
|
3051
|
+
<dl>
|
|
3052
|
+
<dd>
|
|
3053
|
+
|
|
3054
|
+
<dl>
|
|
3055
|
+
<dd>
|
|
3056
|
+
|
|
3057
|
+
```typescript
|
|
3058
|
+
await client.messages.rcs.sendTyping({
|
|
3059
|
+
agentId: "agent_pinnacle",
|
|
3060
|
+
to: "+14154746461",
|
|
3061
|
+
options: {
|
|
3062
|
+
test_mode: false,
|
|
3063
|
+
},
|
|
3064
|
+
});
|
|
3065
|
+
```
|
|
3066
|
+
|
|
3067
|
+
</dd>
|
|
3068
|
+
</dl>
|
|
3069
|
+
</dd>
|
|
3070
|
+
</dl>
|
|
3071
|
+
|
|
3072
|
+
#### ⚙️ Parameters
|
|
3073
|
+
|
|
3074
|
+
<dl>
|
|
3075
|
+
<dd>
|
|
3076
|
+
|
|
3077
|
+
<dl>
|
|
3078
|
+
<dd>
|
|
3079
|
+
|
|
3080
|
+
**request:** `Pinnacle.messages.SendTypingIndicatorSchema`
|
|
3081
|
+
|
|
3082
|
+
</dd>
|
|
3083
|
+
</dl>
|
|
3084
|
+
|
|
3085
|
+
<dl>
|
|
3086
|
+
<dd>
|
|
3087
|
+
|
|
3088
|
+
**requestOptions:** `Rcs.RequestOptions`
|
|
3089
|
+
|
|
3090
|
+
</dd>
|
|
3091
|
+
</dl>
|
|
3092
|
+
</dd>
|
|
3093
|
+
</dl>
|
|
3094
|
+
|
|
3095
|
+
</dd>
|
|
3096
|
+
</dl>
|
|
3097
|
+
</details>
|
|
3098
|
+
|
|
2937
3099
|
<details><summary><code>client.messages.rcs.<a href="/src/api/resources/messages/resources/rcs/client/Client.ts">validate</a>({ ...params }) -> Pinnacle.RcsValidationResult</code></summary>
|
|
2938
3100
|
<dl>
|
|
2939
3101
|
<dd>
|
|
@@ -3037,7 +3199,7 @@ Connect a webhook to your phone number to receive real-time notifications for in
|
|
|
3037
3199
|
|
|
3038
3200
|
```typescript
|
|
3039
3201
|
await client.phoneNumbers.webhook.attach("%2B14155551234", {
|
|
3040
|
-
webhookId:
|
|
3202
|
+
webhookId: "wh_1234567890",
|
|
3041
3203
|
event: "MESSAGE.STATUS",
|
|
3042
3204
|
});
|
|
3043
3205
|
```
|
|
@@ -3116,7 +3278,7 @@ The webhook configuration itself remains intact and available for use with other
|
|
|
3116
3278
|
<dd>
|
|
3117
3279
|
|
|
3118
3280
|
```typescript
|
|
3119
|
-
await client.phoneNumbers.webhook.detach("+14155551234",
|
|
3281
|
+
await client.phoneNumbers.webhook.detach("+14155551234", "wh_1234567890");
|
|
3120
3282
|
```
|
|
3121
3283
|
|
|
3122
3284
|
</dd>
|
|
@@ -3144,11 +3306,11 @@ Must be a phone number that you own and currently has the specified webhook atta
|
|
|
3144
3306
|
<dl>
|
|
3145
3307
|
<dd>
|
|
3146
3308
|
|
|
3147
|
-
**webhookId:** `
|
|
3309
|
+
**webhookId:** `string`
|
|
3148
3310
|
|
|
3149
3311
|
The unique identifier of the webhook you want to detach from the phone number. <br>
|
|
3150
3312
|
|
|
3151
|
-
This must be a valid webhook ID that is currently attached to the specified phone number.
|
|
3313
|
+
This must be a valid webhook ID that is currently attached to the specified phone number. This identifier is a string that always begins with the prefix `wh_`, for example: `wh_1234567890`.
|
|
3152
3314
|
|
|
3153
3315
|
</dd>
|
|
3154
3316
|
</dl>
|
|
@@ -3200,7 +3362,7 @@ Link a phone number to a specific campaign. Phone numbers must be linked to a ca
|
|
|
3200
3362
|
await client.phoneNumbers.campaign.attach({
|
|
3201
3363
|
phones: ["+14155550123", "+14155559876", "+14155550111"],
|
|
3202
3364
|
campaignType: "TOLL_FREE",
|
|
3203
|
-
campaignId:
|
|
3365
|
+
campaignId: "tf_1234567890",
|
|
3204
3366
|
});
|
|
3205
3367
|
```
|
|
3206
3368
|
|
|
@@ -3331,7 +3493,7 @@ Retrieve a brand's status.
|
|
|
3331
3493
|
<dd>
|
|
3332
3494
|
|
|
3333
3495
|
```typescript
|
|
3334
|
-
await client.status.get.brand(
|
|
3496
|
+
await client.status.get.brand("b_1234567890");
|
|
3335
3497
|
```
|
|
3336
3498
|
|
|
3337
3499
|
</dd>
|
|
@@ -3347,7 +3509,7 @@ await client.status.get.brand(28);
|
|
|
3347
3509
|
<dl>
|
|
3348
3510
|
<dd>
|
|
3349
3511
|
|
|
3350
|
-
**brandId:** `
|
|
3512
|
+
**brandId:** `string` — The unique identifier of the brand you want to retrieve the status for. This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`.
|
|
3351
3513
|
|
|
3352
3514
|
</dd>
|
|
3353
3515
|
</dl>
|
|
@@ -3394,7 +3556,7 @@ Retrieve a toll-free campaign's status.
|
|
|
3394
3556
|
<dd>
|
|
3395
3557
|
|
|
3396
3558
|
```typescript
|
|
3397
|
-
await client.status.get.tollFree(
|
|
3559
|
+
await client.status.get.tollFree("tf_1234567890");
|
|
3398
3560
|
```
|
|
3399
3561
|
|
|
3400
3562
|
</dd>
|
|
@@ -3410,7 +3572,7 @@ await client.status.get.tollFree(28);
|
|
|
3410
3572
|
<dl>
|
|
3411
3573
|
<dd>
|
|
3412
3574
|
|
|
3413
|
-
**campaignId:** `
|
|
3575
|
+
**campaignId:** `string` — The unique identifier of the toll-free campaign you want to retrieve the status for. This identifier is a string that always begins with the prefix `tf_`, for example: `tf_1234567890`.
|
|
3414
3576
|
|
|
3415
3577
|
</dd>
|
|
3416
3578
|
</dl>
|
|
@@ -3457,7 +3619,7 @@ Retrieve a 10DLC campaign's status.
|
|
|
3457
3619
|
<dd>
|
|
3458
3620
|
|
|
3459
3621
|
```typescript
|
|
3460
|
-
await client.status.get.dlc(
|
|
3622
|
+
await client.status.get.dlc("dlc_1234567890");
|
|
3461
3623
|
```
|
|
3462
3624
|
|
|
3463
3625
|
</dd>
|
|
@@ -3473,7 +3635,7 @@ await client.status.get.dlc(28);
|
|
|
3473
3635
|
<dl>
|
|
3474
3636
|
<dd>
|
|
3475
3637
|
|
|
3476
|
-
**campaignId:** `
|
|
3638
|
+
**campaignId:** `string` — The unique identifier of the 10DLC campaign you want to retrieve the status for. This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
3477
3639
|
|
|
3478
3640
|
</dd>
|
|
3479
3641
|
</dl>
|
|
@@ -3520,7 +3682,7 @@ Retrieve a RCS campaign's status.
|
|
|
3520
3682
|
<dd>
|
|
3521
3683
|
|
|
3522
3684
|
```typescript
|
|
3523
|
-
await client.status.get.rcs(
|
|
3685
|
+
await client.status.get.rcs("rcs_1234567890");
|
|
3524
3686
|
```
|
|
3525
3687
|
|
|
3526
3688
|
</dd>
|
|
@@ -3536,7 +3698,7 @@ await client.status.get.rcs(28);
|
|
|
3536
3698
|
<dl>
|
|
3537
3699
|
<dd>
|
|
3538
3700
|
|
|
3539
|
-
**campaignId:** `
|
|
3701
|
+
**campaignId:** `string` — The unique identifier of the RCS campaign you want to retrieve the status for. This identifier is a string that always begins with the prefix `rcs_`, for example: `rcs_1234567890`.
|
|
3540
3702
|
|
|
3541
3703
|
</dd>
|
|
3542
3704
|
</dl>
|
|
@@ -3869,6 +4031,7 @@ await client.tools.file.upload({
|
|
|
3869
4031
|
size: 1024,
|
|
3870
4032
|
name: "test.jpg",
|
|
3871
4033
|
options: {
|
|
4034
|
+
deleteAt: "2025-12-31T23:59:59Z",
|
|
3872
4035
|
download: {
|
|
3873
4036
|
expiresAt: "2025-06-30T12:00:00.000Z",
|
|
3874
4037
|
},
|
|
@@ -3940,10 +4103,9 @@ Refresh expiring presigned URLs for Pinnacle-hosted files to extend their access
|
|
|
3940
4103
|
|
|
3941
4104
|
```typescript
|
|
3942
4105
|
await client.tools.file.refresh({
|
|
3943
|
-
|
|
4106
|
+
urls: [
|
|
3944
4107
|
"https://server.trypinnacle.app/storage/v1/object/sign/vault/3/test.jpg?token=oldtoken",
|
|
3945
4108
|
"https://server.trypinnacle.app/storage/v1/object/sign/vault/3/document.pdf?token=oldtoken2",
|
|
3946
|
-
"icons/3/test.jpg",
|
|
3947
4109
|
"invalid/url",
|
|
3948
4110
|
"https://google.com",
|
|
3949
4111
|
],
|
|
@@ -4013,7 +4175,7 @@ Retrieve contact information as a vCard and get a presigned URL to download the
|
|
|
4013
4175
|
|
|
4014
4176
|
```typescript
|
|
4015
4177
|
await client.tools.contactCard.get({
|
|
4016
|
-
id:
|
|
4178
|
+
id: "cc_1234567890",
|
|
4017
4179
|
});
|
|
4018
4180
|
```
|
|
4019
4181
|
|
|
@@ -4078,7 +4240,7 @@ Create a new contact card or updates an existing one with full vCard data. Conta
|
|
|
4078
4240
|
|
|
4079
4241
|
```typescript
|
|
4080
4242
|
await client.tools.contactCard.upsert({
|
|
4081
|
-
id:
|
|
4243
|
+
id: "cc_1234567890",
|
|
4082
4244
|
formattedName: "Jane Smith",
|
|
4083
4245
|
name: {
|
|
4084
4246
|
familyName: "Smith",
|