rcs-js 2.0.0-rc.9 → 2.0.1-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.
Files changed (378) hide show
  1. package/dist/cjs/Client.d.ts +5 -2
  2. package/dist/cjs/Client.js +16 -11
  3. package/dist/cjs/api/errors/NotFoundError.d.ts +1 -2
  4. package/dist/cjs/api/resources/brands/client/Client.d.ts +19 -17
  5. package/dist/cjs/api/resources/brands/client/Client.js +25 -19
  6. package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.d.ts +1 -1
  7. package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +9 -6
  8. package/dist/cjs/api/resources/campaigns/client/Client.d.ts +2 -2
  9. package/dist/cjs/api/resources/campaigns/client/Client.js +1 -1
  10. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +21 -20
  11. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +17 -16
  12. package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +8 -8
  13. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +16 -13
  14. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +14 -9
  15. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +9 -7
  16. package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -1
  17. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +15 -15
  18. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +11 -11
  19. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +7 -7
  20. package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -1
  21. package/dist/cjs/api/resources/contacts/client/Client.d.ts +7 -5
  22. package/dist/cjs/api/resources/contacts/client/Client.js +11 -9
  23. package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +5 -3
  24. package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +3 -3
  25. package/dist/cjs/api/resources/conversations/client/Client.d.ts +25 -8
  26. package/dist/cjs/api/resources/conversations/client/Client.js +101 -9
  27. package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +36 -0
  28. package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +11 -6
  29. package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +3 -3
  30. package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/conversations/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/conversations/index.js +1 -0
  33. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +8 -0
  34. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +10 -0
  35. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +8 -0
  36. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +10 -0
  37. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +13 -0
  38. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +15 -0
  39. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +9 -0
  40. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +11 -0
  41. package/dist/cjs/api/resources/conversations/types/index.d.ts +4 -0
  42. package/dist/cjs/api/resources/conversations/types/index.js +20 -0
  43. package/dist/cjs/api/resources/index.d.ts +4 -1
  44. package/dist/cjs/api/resources/index.js +5 -2
  45. package/dist/cjs/api/resources/messages/client/Client.d.ts +10 -7
  46. package/dist/cjs/api/resources/messages/client/Client.js +13 -4
  47. package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +4 -4
  48. package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +4 -3
  49. package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +4 -1
  50. package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +6 -5
  51. package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +5 -2
  52. package/dist/cjs/api/resources/messages/resources/sms/client/Client.d.ts +4 -3
  53. package/dist/cjs/api/resources/messages/resources/sms/client/Client.js +4 -1
  54. package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +3 -3
  55. package/dist/cjs/api/resources/phoneNumbers/client/Client.js +1 -1
  56. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +7 -5
  57. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +9 -3
  58. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +12 -3
  59. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +11 -9
  60. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +10 -6
  61. package/dist/cjs/api/resources/rcs/client/Client.d.ts +121 -0
  62. package/dist/cjs/api/resources/rcs/client/Client.js +320 -0
  63. package/dist/cjs/api/resources/rcs/client/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/rcs/client/index.js +17 -0
  65. package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.ts +13 -0
  66. package/dist/cjs/api/resources/rcs/client/requests/RcsLinkRequest.d.ts +22 -0
  67. package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.d.ts +16 -0
  68. package/dist/cjs/api/resources/rcs/client/requests/RcsWhitelistRequest.js +5 -0
  69. package/dist/cjs/api/resources/rcs/client/requests/index.d.ts +3 -0
  70. package/dist/cjs/api/resources/rcs/client/requests/index.js +2 -0
  71. package/dist/cjs/api/resources/rcs/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/rcs/index.js +17 -0
  73. package/dist/cjs/api/resources/status/client/Client.d.ts +2 -2
  74. package/dist/cjs/api/resources/status/client/Client.js +1 -1
  75. package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +16 -16
  76. package/dist/cjs/api/resources/status/resources/get/client/Client.js +10 -10
  77. package/dist/cjs/api/resources/tools/client/Client.d.ts +2 -2
  78. package/dist/cjs/api/resources/tools/client/Client.js +1 -1
  79. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +7 -7
  80. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +5 -5
  81. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +3 -3
  82. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -1
  83. package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +24 -3
  84. package/dist/cjs/api/resources/tools/resources/file/client/Client.js +75 -1
  85. package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +13 -0
  86. package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.js +5 -0
  87. package/dist/cjs/api/resources/tools/resources/file/client/requests/index.d.ts +1 -0
  88. package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +4 -4
  89. package/dist/cjs/api/resources/tools/resources/url/client/Client.js +2 -2
  90. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +3 -3
  91. package/dist/cjs/api/resources/webhooks/client/Client.js +1 -1
  92. package/dist/cjs/api/types/AdvancedPhoneInformation.d.ts +9 -9
  93. package/dist/cjs/api/types/AttachWebhookParams.d.ts +3 -3
  94. package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +2 -2
  95. package/dist/cjs/api/types/AutofillCampaignParams.d.ts +7 -2
  96. package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +15 -15
  97. package/dist/cjs/api/types/BrandStatus.d.ts +2 -2
  98. package/dist/cjs/api/types/ButtonClicked.d.ts +11 -0
  99. package/dist/cjs/api/types/ButtonClicked.js +5 -0
  100. package/dist/cjs/api/types/ButtonClickedData.d.ts +58 -0
  101. package/dist/cjs/api/types/ButtonClickedData.js +16 -0
  102. package/dist/cjs/api/types/CampaignQuery.d.ts +6 -1
  103. package/dist/cjs/api/types/ConfiguredWebhook.d.ts +2 -2
  104. package/dist/cjs/api/types/Contact.d.ts +2 -2
  105. package/dist/cjs/api/types/ContactId.d.ts +2 -2
  106. package/dist/cjs/api/types/Conversation.d.ts +9 -9
  107. package/dist/cjs/api/types/CreateUrlOptions.d.ts +1 -1
  108. package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +2 -2
  109. package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +2 -2
  110. package/dist/cjs/api/types/DlcCampaignStatus.d.ts +4 -4
  111. package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +15 -12
  112. package/dist/cjs/api/types/EnhancedContactItem.d.ts +1 -1
  113. package/dist/cjs/api/types/ExtendedBrand.d.ts +14 -7
  114. package/dist/cjs/api/types/ExtendedBrandWithVetting.d.ts +2 -2
  115. package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +14 -13
  116. package/dist/cjs/api/types/GetConversationParams.d.ts +1 -1
  117. package/dist/cjs/api/types/LinkClickEvent.d.ts +0 -4
  118. package/dist/cjs/api/types/Message.d.ts +6 -6
  119. package/dist/cjs/api/types/MessageContent.d.ts +2 -2
  120. package/dist/cjs/api/types/MessageEvent.d.ts +62 -0
  121. package/dist/cjs/api/types/MessageEvent.js +13 -0
  122. package/dist/cjs/api/types/MessageList.d.ts +15 -0
  123. package/dist/cjs/api/types/MessageList.js +5 -0
  124. package/dist/cjs/api/types/MessageWithReaction.d.ts +27 -0
  125. package/dist/cjs/api/types/MessageWithReaction.js +13 -0
  126. package/dist/cjs/api/types/NotFoundErrorBody.d.ts +6 -0
  127. package/dist/cjs/api/types/NotFoundErrorBody.js +5 -0
  128. package/dist/cjs/api/types/ProfileStatusEnum.d.ts +7 -4
  129. package/dist/cjs/api/types/RcsBase.d.ts +2 -0
  130. package/dist/cjs/api/types/RcsButtonCall.d.ts +2 -0
  131. package/dist/cjs/api/types/RcsButtonOpenUrl.d.ts +2 -0
  132. package/dist/cjs/api/types/RcsButtonRequestUserLocation.d.ts +2 -0
  133. package/dist/cjs/api/types/RcsButtonScheduleEvent.d.ts +2 -0
  134. package/dist/cjs/api/types/RcsButtonSendLocation.d.ts +2 -0
  135. package/dist/cjs/api/types/RcsButtonTrigger.d.ts +2 -2
  136. package/dist/cjs/api/types/RcsCampaign.d.ts +5 -5
  137. package/dist/cjs/api/types/RcsCampaignStatus.d.ts +2 -2
  138. package/dist/cjs/api/types/RcsCapabilitiesResult.d.ts +8 -0
  139. package/dist/cjs/api/types/RcsCapabilitiesResult.js +5 -0
  140. package/dist/cjs/api/types/RcsCapability.d.ts +36 -0
  141. package/dist/cjs/api/types/RcsCapability.js +5 -0
  142. package/dist/cjs/api/types/RcsLinkResult.d.ts +13 -0
  143. package/dist/cjs/api/types/RcsLinkResult.js +5 -0
  144. package/dist/cjs/api/types/RcsValidateContent.d.ts +1 -0
  145. package/dist/cjs/api/types/RcsWhitelistResponse.d.ts +10 -0
  146. package/dist/cjs/api/types/RcsWhitelistResponse.js +5 -0
  147. package/dist/cjs/api/types/ReactionResult.d.ts +4 -4
  148. package/dist/cjs/api/types/RefreshedFile.d.ts +9 -0
  149. package/dist/cjs/api/types/RefreshedFile.js +5 -0
  150. package/dist/cjs/api/types/{Rcs.d.ts → RichMessage.d.ts} +1 -1
  151. package/dist/cjs/api/types/RichMessage.js +5 -0
  152. package/dist/cjs/api/types/ScheduledMessaage.d.ts +2 -2
  153. package/dist/cjs/api/types/SentMmsDetails.d.ts +2 -2
  154. package/dist/cjs/api/types/SentRcsDetails.d.ts +2 -2
  155. package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -2
  156. package/dist/cjs/api/types/ShortenedUrl.d.ts +1 -1
  157. package/dist/cjs/api/types/TollFreeCampaign.d.ts +2 -2
  158. package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +2 -2
  159. package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.ts +0 -1
  160. package/dist/cjs/api/types/UpdatedContactId.d.ts +2 -2
  161. package/dist/cjs/api/types/UploadResults.d.ts +1 -1
  162. package/dist/cjs/api/types/UserEvent.d.ts +27 -0
  163. package/dist/cjs/api/types/UserEvent.js +5 -0
  164. package/dist/cjs/api/types/VCardData.d.ts +1 -1
  165. package/dist/cjs/api/types/ValidateCampaignParams.d.ts +7 -2
  166. package/dist/cjs/api/types/Vcard.d.ts +2 -2
  167. package/dist/cjs/api/types/VcardResource.d.ts +2 -2
  168. package/dist/cjs/api/types/WebhookEventEnum.d.ts +1 -0
  169. package/dist/cjs/api/types/Webhooks.d.ts +2 -2
  170. package/dist/cjs/api/types/index.d.ts +13 -3
  171. package/dist/cjs/api/types/index.js +13 -3
  172. package/dist/cjs/index.d.ts +1 -1
  173. package/dist/cjs/index.js +2 -2
  174. package/dist/cjs/version.d.ts +1 -1
  175. package/dist/cjs/version.js +1 -1
  176. package/dist/cjs/wrapper/PinnacleClient.d.ts +9 -0
  177. package/dist/cjs/wrapper/PinnacleClient.js +17 -0
  178. package/dist/cjs/wrapper/messages/Client.d.ts +13 -0
  179. package/dist/cjs/wrapper/messages/Client.js +49 -0
  180. package/dist/cjs/wrapper/tools/Client.d.ts +6 -0
  181. package/dist/cjs/wrapper/tools/Client.js +12 -0
  182. package/dist/cjs/wrapper/tools/FileUploader.d.ts +15 -0
  183. package/dist/cjs/wrapper/tools/FileUploader.js +162 -0
  184. package/dist/esm/Client.d.mts +5 -2
  185. package/dist/esm/Client.mjs +8 -3
  186. package/dist/esm/api/errors/NotFoundError.d.mts +1 -2
  187. package/dist/esm/api/resources/brands/client/Client.d.mts +19 -17
  188. package/dist/esm/api/resources/brands/client/Client.mjs +25 -19
  189. package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.d.mts +1 -1
  190. package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +9 -6
  191. package/dist/esm/api/resources/campaigns/client/Client.d.mts +2 -2
  192. package/dist/esm/api/resources/campaigns/client/Client.mjs +1 -1
  193. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +21 -20
  194. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +17 -16
  195. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +8 -8
  196. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +16 -13
  197. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +14 -9
  198. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +9 -7
  199. package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -1
  200. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +15 -15
  201. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +11 -11
  202. package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +7 -7
  203. package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -1
  204. package/dist/esm/api/resources/contacts/client/Client.d.mts +7 -5
  205. package/dist/esm/api/resources/contacts/client/Client.mjs +11 -9
  206. package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +5 -3
  207. package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +3 -3
  208. package/dist/esm/api/resources/conversations/client/Client.d.mts +25 -8
  209. package/dist/esm/api/resources/conversations/client/Client.mjs +101 -9
  210. package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +36 -0
  211. package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +11 -6
  212. package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +3 -3
  213. package/dist/esm/api/resources/conversations/client/requests/index.d.mts +1 -0
  214. package/dist/esm/api/resources/conversations/index.d.mts +1 -0
  215. package/dist/esm/api/resources/conversations/index.mjs +1 -0
  216. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +8 -0
  217. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +7 -0
  218. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +8 -0
  219. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +7 -0
  220. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +13 -0
  221. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +12 -0
  222. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +9 -0
  223. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +8 -0
  224. package/dist/esm/api/resources/conversations/types/index.d.mts +4 -0
  225. package/dist/esm/api/resources/conversations/types/index.mjs +4 -0
  226. package/dist/esm/api/resources/index.d.mts +4 -1
  227. package/dist/esm/api/resources/index.mjs +4 -1
  228. package/dist/esm/api/resources/messages/client/Client.d.mts +10 -7
  229. package/dist/esm/api/resources/messages/client/Client.mjs +13 -4
  230. package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +4 -4
  231. package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +4 -3
  232. package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +4 -1
  233. package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +6 -5
  234. package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +5 -2
  235. package/dist/esm/api/resources/messages/resources/sms/client/Client.d.mts +4 -3
  236. package/dist/esm/api/resources/messages/resources/sms/client/Client.mjs +4 -1
  237. package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +3 -3
  238. package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +1 -1
  239. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +7 -5
  240. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +9 -3
  241. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +12 -3
  242. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +11 -9
  243. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +10 -6
  244. package/dist/esm/api/resources/rcs/client/Client.d.mts +121 -0
  245. package/dist/esm/api/resources/rcs/client/Client.mjs +283 -0
  246. package/dist/esm/api/resources/rcs/client/index.d.mts +2 -0
  247. package/dist/esm/api/resources/rcs/client/index.mjs +1 -0
  248. package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.mts +13 -0
  249. package/dist/esm/api/resources/rcs/client/requests/RcsLinkRequest.d.mts +22 -0
  250. package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.d.mts +16 -0
  251. package/dist/esm/api/resources/rcs/client/requests/RcsWhitelistRequest.mjs +4 -0
  252. package/dist/esm/api/resources/rcs/client/requests/index.d.mts +3 -0
  253. package/dist/esm/api/resources/rcs/client/requests/index.mjs +1 -0
  254. package/dist/esm/api/resources/rcs/index.d.mts +1 -0
  255. package/dist/esm/api/resources/rcs/index.mjs +1 -0
  256. package/dist/esm/api/resources/status/client/Client.d.mts +2 -2
  257. package/dist/esm/api/resources/status/client/Client.mjs +1 -1
  258. package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +16 -16
  259. package/dist/esm/api/resources/status/resources/get/client/Client.mjs +10 -10
  260. package/dist/esm/api/resources/tools/client/Client.d.mts +2 -2
  261. package/dist/esm/api/resources/tools/client/Client.mjs +1 -1
  262. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +7 -7
  263. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +5 -5
  264. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +3 -3
  265. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -1
  266. package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +24 -3
  267. package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +75 -1
  268. package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +13 -0
  269. package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.mjs +4 -0
  270. package/dist/esm/api/resources/tools/resources/file/client/requests/index.d.mts +1 -0
  271. package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +4 -4
  272. package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +2 -2
  273. package/dist/esm/api/resources/webhooks/client/Client.d.mts +3 -3
  274. package/dist/esm/api/resources/webhooks/client/Client.mjs +1 -1
  275. package/dist/esm/api/types/AdvancedPhoneInformation.d.mts +9 -9
  276. package/dist/esm/api/types/AttachWebhookParams.d.mts +3 -3
  277. package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +2 -2
  278. package/dist/esm/api/types/AutofillCampaignParams.d.mts +7 -2
  279. package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +15 -15
  280. package/dist/esm/api/types/BrandStatus.d.mts +2 -2
  281. package/dist/esm/api/types/ButtonClicked.d.mts +11 -0
  282. package/dist/esm/api/types/ButtonClicked.mjs +4 -0
  283. package/dist/esm/api/types/ButtonClickedData.d.mts +58 -0
  284. package/dist/esm/api/types/ButtonClickedData.mjs +13 -0
  285. package/dist/esm/api/types/CampaignQuery.d.mts +6 -1
  286. package/dist/esm/api/types/ConfiguredWebhook.d.mts +2 -2
  287. package/dist/esm/api/types/Contact.d.mts +2 -2
  288. package/dist/esm/api/types/ContactId.d.mts +2 -2
  289. package/dist/esm/api/types/Conversation.d.mts +9 -9
  290. package/dist/esm/api/types/CreateUrlOptions.d.mts +1 -1
  291. package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +2 -2
  292. package/dist/esm/api/types/DetachedWebhookInfo.d.mts +2 -2
  293. package/dist/esm/api/types/DlcCampaignStatus.d.mts +4 -4
  294. package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +15 -12
  295. package/dist/esm/api/types/EnhancedContactItem.d.mts +1 -1
  296. package/dist/esm/api/types/ExtendedBrand.d.mts +14 -7
  297. package/dist/esm/api/types/ExtendedBrandWithVetting.d.mts +2 -2
  298. package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +14 -13
  299. package/dist/esm/api/types/GetConversationParams.d.mts +1 -1
  300. package/dist/esm/api/types/LinkClickEvent.d.mts +0 -4
  301. package/dist/esm/api/types/Message.d.mts +6 -6
  302. package/dist/esm/api/types/MessageContent.d.mts +2 -2
  303. package/dist/esm/api/types/MessageEvent.d.mts +62 -0
  304. package/dist/esm/api/types/MessageEvent.mjs +10 -0
  305. package/dist/esm/api/types/MessageList.d.mts +15 -0
  306. package/dist/esm/api/types/MessageList.mjs +4 -0
  307. package/dist/esm/api/types/MessageWithReaction.d.mts +27 -0
  308. package/dist/esm/api/types/MessageWithReaction.mjs +10 -0
  309. package/dist/esm/api/types/NotFoundErrorBody.d.mts +6 -0
  310. package/dist/esm/api/types/NotFoundErrorBody.mjs +4 -0
  311. package/dist/esm/api/types/ProfileStatusEnum.d.mts +7 -4
  312. package/dist/esm/api/types/RcsBase.d.mts +2 -0
  313. package/dist/esm/api/types/RcsButtonCall.d.mts +2 -0
  314. package/dist/esm/api/types/RcsButtonOpenUrl.d.mts +2 -0
  315. package/dist/esm/api/types/RcsButtonRequestUserLocation.d.mts +2 -0
  316. package/dist/esm/api/types/RcsButtonScheduleEvent.d.mts +2 -0
  317. package/dist/esm/api/types/RcsButtonSendLocation.d.mts +2 -0
  318. package/dist/esm/api/types/RcsButtonTrigger.d.mts +2 -2
  319. package/dist/esm/api/types/RcsCampaign.d.mts +5 -5
  320. package/dist/esm/api/types/RcsCampaignStatus.d.mts +2 -2
  321. package/dist/esm/api/types/RcsCapabilitiesResult.d.mts +8 -0
  322. package/dist/esm/api/types/RcsCapabilitiesResult.mjs +4 -0
  323. package/dist/esm/api/types/RcsCapability.d.mts +36 -0
  324. package/dist/esm/api/types/RcsCapability.mjs +4 -0
  325. package/dist/esm/api/types/RcsLinkResult.d.mts +13 -0
  326. package/dist/esm/api/types/RcsLinkResult.mjs +4 -0
  327. package/dist/esm/api/types/RcsValidateContent.d.mts +1 -0
  328. package/dist/esm/api/types/RcsWhitelistResponse.d.mts +10 -0
  329. package/dist/esm/api/types/RcsWhitelistResponse.mjs +4 -0
  330. package/dist/esm/api/types/ReactionResult.d.mts +4 -4
  331. package/dist/esm/api/types/RefreshedFile.d.mts +9 -0
  332. package/dist/esm/api/types/RefreshedFile.mjs +4 -0
  333. package/dist/esm/api/types/{Rcs.d.mts → RichMessage.d.mts} +1 -1
  334. package/dist/esm/api/types/RichMessage.mjs +4 -0
  335. package/dist/esm/api/types/ScheduledMessaage.d.mts +2 -2
  336. package/dist/esm/api/types/SentMmsDetails.d.mts +2 -2
  337. package/dist/esm/api/types/SentRcsDetails.d.mts +2 -2
  338. package/dist/esm/api/types/SentSmsDetails.d.mts +2 -2
  339. package/dist/esm/api/types/ShortenedUrl.d.mts +1 -1
  340. package/dist/esm/api/types/TollFreeCampaign.d.mts +2 -2
  341. package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +2 -2
  342. package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.mts +0 -1
  343. package/dist/esm/api/types/UpdatedContactId.d.mts +2 -2
  344. package/dist/esm/api/types/UploadResults.d.mts +1 -1
  345. package/dist/esm/api/types/UserEvent.d.mts +27 -0
  346. package/dist/esm/api/types/UserEvent.mjs +4 -0
  347. package/dist/esm/api/types/VCardData.d.mts +1 -1
  348. package/dist/esm/api/types/ValidateCampaignParams.d.mts +7 -2
  349. package/dist/esm/api/types/Vcard.d.mts +2 -2
  350. package/dist/esm/api/types/VcardResource.d.mts +2 -2
  351. package/dist/esm/api/types/WebhookEventEnum.d.mts +1 -0
  352. package/dist/esm/api/types/Webhooks.d.mts +2 -2
  353. package/dist/esm/api/types/index.d.mts +13 -3
  354. package/dist/esm/api/types/index.mjs +13 -3
  355. package/dist/esm/index.d.mts +1 -1
  356. package/dist/esm/index.mjs +1 -1
  357. package/dist/esm/version.d.mts +1 -1
  358. package/dist/esm/version.mjs +1 -1
  359. package/dist/esm/wrapper/PinnacleClient.d.mts +9 -0
  360. package/dist/esm/wrapper/PinnacleClient.mjs +13 -0
  361. package/dist/esm/wrapper/messages/Client.d.mts +13 -0
  362. package/dist/esm/wrapper/messages/Client.mjs +45 -0
  363. package/dist/esm/wrapper/tools/Client.d.mts +6 -0
  364. package/dist/esm/wrapper/tools/Client.mjs +8 -0
  365. package/dist/esm/wrapper/tools/FileUploader.d.mts +15 -0
  366. package/dist/esm/wrapper/tools/FileUploader.mjs +125 -0
  367. package/package.json +7 -3
  368. package/reference.md +459 -76
  369. package/dist/cjs/api/types/ClickAction.d.ts +0 -28
  370. package/dist/cjs/api/types/InboundButton.d.ts +0 -11
  371. package/dist/esm/api/types/ClickAction.d.mts +0 -28
  372. package/dist/esm/api/types/InboundButton.d.mts +0 -11
  373. /package/dist/cjs/api/{types/ClickAction.js → resources/conversations/client/requests/ConversationsListMessagesRequest.js} +0 -0
  374. /package/dist/cjs/api/{types/InboundButton.js → resources/rcs/client/requests/RcsCapabilitiesQuery.js} +0 -0
  375. /package/dist/cjs/api/{types/Rcs.js → resources/rcs/client/requests/RcsLinkRequest.js} +0 -0
  376. /package/dist/esm/api/{types/ClickAction.mjs → resources/conversations/client/requests/ConversationsListMessagesRequest.mjs} +0 -0
  377. /package/dist/esm/api/{types/InboundButton.mjs → resources/rcs/client/requests/RcsCapabilitiesQuery.mjs} +0 -0
  378. /package/dist/esm/api/{types/Rcs.mjs → resources/rcs/client/requests/RcsLinkRequest.mjs} +0 -0
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: 1,
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(1);
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:** `number` — ID of an existing brand in your account that you want to retrieve.
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(1);
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:** `number`
271
-
272
- The unique identifier of the brand you want to submit for review. <br>
273
+ **brandId:** `string`
273
274
 
274
- Must correspond to an existing brand in your account that is ready for submission.
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(1, {});
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:** `number`
418
+ **brandId:** `string`
417
419
 
418
420
  The unique identifier of the brand to vet. <br>
419
421
 
420
- The brand must be already registered before it can be vetted.
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: 137,
614
+ id: "co_1234567890",
611
615
  });
612
616
  ```
613
617
 
@@ -645,7 +649,7 @@ await client.contacts.update({
645
649
 
646
650
  ## Conversations
647
651
 
648
- <details><summary><code>client.conversations.<a href="/src/api/resources/conversations/client/Client.ts">get</a>({ ...params }) -> (Pinnacle.Conversation | null) | undefined</code></summary>
652
+ <details><summary><code>client.conversations.<a href="/src/api/resources/conversations/client/Client.ts">get</a>({ ...params }) -> Pinnacle.Conversation | null</code></summary>
649
653
  <dl>
650
654
  <dd>
651
655
 
@@ -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: 1,
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: 101,
743
- campaignId: 136,
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: 123,
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(1240);
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:** `number` — Unique identifier of the message.
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: 1410,
1019
+ messageId: "msg_1234567890",
945
1020
  options: {
946
1021
  force: true,
947
1022
  },
@@ -1199,6 +1274,235 @@ await client.phoneNumbers.get({
1199
1274
  </dl>
1200
1275
  </details>
1201
1276
 
1277
+ ## RCS
1278
+
1279
+ <details><summary><code>client.rcs.<a href="/src/api/resources/rcs/client/Client.ts">getCapabilities</a>({ ...params }) -> Pinnacle.RcsCapabilitiesResult</code></summary>
1280
+ <dl>
1281
+ <dd>
1282
+
1283
+ #### 📝 Description
1284
+
1285
+ <dl>
1286
+ <dd>
1287
+
1288
+ <dl>
1289
+ <dd>
1290
+
1291
+ Check RCS capabilities for one or more phone numbers.
1292
+
1293
+ This endpoint allows you to verify which RCS features (cards, buttons, etc.) are supported
1294
+ on specific phone numbers before sending RCS messages to them.
1295
+
1296
+ </dd>
1297
+ </dl>
1298
+ </dd>
1299
+ </dl>
1300
+
1301
+ #### 🔌 Usage
1302
+
1303
+ <dl>
1304
+ <dd>
1305
+
1306
+ <dl>
1307
+ <dd>
1308
+
1309
+ ```typescript
1310
+ await client.rcs.getCapabilities({
1311
+ phoneNumbers: ["+12345678901", "+19876543210"],
1312
+ });
1313
+ ```
1314
+
1315
+ </dd>
1316
+ </dl>
1317
+ </dd>
1318
+ </dl>
1319
+
1320
+ #### ⚙️ Parameters
1321
+
1322
+ <dl>
1323
+ <dd>
1324
+
1325
+ <dl>
1326
+ <dd>
1327
+
1328
+ **request:** `Pinnacle.RcsCapabilitiesQuery`
1329
+
1330
+ </dd>
1331
+ </dl>
1332
+
1333
+ <dl>
1334
+ <dd>
1335
+
1336
+ **requestOptions:** `Rcs.RequestOptions`
1337
+
1338
+ </dd>
1339
+ </dl>
1340
+ </dd>
1341
+ </dl>
1342
+
1343
+ </dd>
1344
+ </dl>
1345
+ </details>
1346
+
1347
+ <details><summary><code>client.rcs.<a href="/src/api/resources/rcs/client/Client.ts">whitelist</a>({ ...params }) -> Pinnacle.RcsWhitelistResponse</code></summary>
1348
+ <dl>
1349
+ <dd>
1350
+
1351
+ #### 📝 Description
1352
+
1353
+ <dl>
1354
+ <dd>
1355
+
1356
+ <dl>
1357
+ <dd>
1358
+
1359
+ Whitelist a phone number for testing with your test RCS agent.
1360
+
1361
+ ## Overview
1362
+
1363
+ During development and testing, RCS agents can only send messages to whitelisted phone numbers.
1364
+ Use this endpoint to add test devices to your agent's whitelist before sending test messages.
1365
+
1366
+ ## Verification Process
1367
+
1368
+ After whitelisting a number, you'll need to complete verification:
1369
+
1370
+ 1. Check the test device for an "RBM Tester Management" request
1371
+ 2. Accept the request on the device
1372
+ 3. Enter the 4-digit verification code in the Pinnacle dashboard at:
1373
+ ```
1374
+ https://app.pinnacle.sh/dashboard/brands/{brandId}?campaignId={campaignId}&campaignType=RCS
1375
+ ```
1376
+
1377
+ > **Important Notes**
1378
+ >
1379
+ > - **Testing only:** This is only required for test agents. Production agents can message any RCS-enabled number
1380
+ > - **AT&T limitation:** Whitelisting may currently fail for AT&T numbers
1381
+ > - **Verification required:** The whitelist request isn't complete until you verify the device.
1382
+
1383
+ </dd>
1384
+ </dl>
1385
+ </dd>
1386
+ </dl>
1387
+
1388
+ #### 🔌 Usage
1389
+
1390
+ <dl>
1391
+ <dd>
1392
+
1393
+ <dl>
1394
+ <dd>
1395
+
1396
+ ```typescript
1397
+ await client.rcs.whitelist({
1398
+ agentId: "agent_XXXXXXXXXXXX",
1399
+ phoneNumber: "+12345678901",
1400
+ });
1401
+ ```
1402
+
1403
+ </dd>
1404
+ </dl>
1405
+ </dd>
1406
+ </dl>
1407
+
1408
+ #### ⚙️ Parameters
1409
+
1410
+ <dl>
1411
+ <dd>
1412
+
1413
+ <dl>
1414
+ <dd>
1415
+
1416
+ **request:** `Pinnacle.RcsWhitelistRequest`
1417
+
1418
+ </dd>
1419
+ </dl>
1420
+
1421
+ <dl>
1422
+ <dd>
1423
+
1424
+ **requestOptions:** `Rcs.RequestOptions`
1425
+
1426
+ </dd>
1427
+ </dl>
1428
+ </dd>
1429
+ </dl>
1430
+
1431
+ </dd>
1432
+ </dl>
1433
+ </details>
1434
+
1435
+ <details><summary><code>client.rcs.<a href="/src/api/resources/rcs/client/Client.ts">getLink</a>({ ...params }) -> Pinnacle.RcsLinkResult</code></summary>
1436
+ <dl>
1437
+ <dd>
1438
+
1439
+ #### 📝 Description
1440
+
1441
+ <dl>
1442
+ <dd>
1443
+
1444
+ <dl>
1445
+ <dd>
1446
+
1447
+ Generate a link for initiating an RCS conversation with your agent.
1448
+
1449
+ Users can click these links to start conversations with your RCS agent directly
1450
+ from websites, emails, or other applications.
1451
+
1452
+ </dd>
1453
+ </dl>
1454
+ </dd>
1455
+ </dl>
1456
+
1457
+ #### 🔌 Usage
1458
+
1459
+ <dl>
1460
+ <dd>
1461
+
1462
+ <dl>
1463
+ <dd>
1464
+
1465
+ ```typescript
1466
+ await client.rcs.getLink({
1467
+ agentId: "agent_XXXXXXXXXXXX",
1468
+ testMode: false,
1469
+ phoneNumber: "+12345678901",
1470
+ body: "Hello, I need help with my order",
1471
+ });
1472
+ ```
1473
+
1474
+ </dd>
1475
+ </dl>
1476
+ </dd>
1477
+ </dl>
1478
+
1479
+ #### ⚙️ Parameters
1480
+
1481
+ <dl>
1482
+ <dd>
1483
+
1484
+ <dl>
1485
+ <dd>
1486
+
1487
+ **request:** `Pinnacle.RcsLinkRequest`
1488
+
1489
+ </dd>
1490
+ </dl>
1491
+
1492
+ <dl>
1493
+ <dd>
1494
+
1495
+ **requestOptions:** `Rcs.RequestOptions`
1496
+
1497
+ </dd>
1498
+ </dl>
1499
+ </dd>
1500
+ </dl>
1501
+
1502
+ </dd>
1503
+ </dl>
1504
+ </details>
1505
+
1202
1506
  ## Webhooks
1203
1507
 
1204
1508
  <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">get</a>({ ...params }) -> Pinnacle.WebhookResult</code></summary>
@@ -1302,8 +1606,8 @@ Generate campaign details based off existing campaign and the brand it's connect
1302
1606
 
1303
1607
  ```typescript
1304
1608
  await client.campaigns.dlc.autofill({
1305
- additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
1306
- campaignId: 161,
1609
+ additionalInfo: "Please autofill missing campaign fields using my brand profile",
1610
+ campaignId: "dlc_1234567890",
1307
1611
  });
1308
1612
  ```
1309
1613
 
@@ -1351,7 +1655,7 @@ await client.campaigns.dlc.autofill({
1351
1655
  <dl>
1352
1656
  <dd>
1353
1657
 
1354
- Retrieve DLC campaign.
1658
+ Retrieve 10DLC campaign.
1355
1659
 
1356
1660
  </dd>
1357
1661
  </dl>
@@ -1367,7 +1671,7 @@ Retrieve DLC campaign.
1367
1671
  <dd>
1368
1672
 
1369
1673
  ```typescript
1370
- await client.campaigns.dlc.get(28);
1674
+ await client.campaigns.dlc.get("dlc_1234567890");
1371
1675
  ```
1372
1676
 
1373
1677
  </dd>
@@ -1383,7 +1687,7 @@ await client.campaigns.dlc.get(28);
1383
1687
  <dl>
1384
1688
  <dd>
1385
1689
 
1386
- **campaignId:** `number` — Unique identifier of the DLC campaign.
1690
+ **campaignId:** `string` — Unique identifier of the 10DLC campaign. This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
1387
1691
 
1388
1692
  </dd>
1389
1693
  </dl>
@@ -1414,7 +1718,7 @@ await client.campaigns.dlc.get(28);
1414
1718
  <dl>
1415
1719
  <dd>
1416
1720
 
1417
- Submit your DLC campaign for approval and activation with carriers.
1721
+ Submit your 10DLC campaign for approval and activation with carriers.
1418
1722
 
1419
1723
  </dd>
1420
1724
  </dl>
@@ -1430,7 +1734,7 @@ Submit your DLC campaign for approval and activation with carriers.
1430
1734
  <dd>
1431
1735
 
1432
1736
  ```typescript
1433
- await client.campaigns.dlc.submit(161);
1737
+ await client.campaigns.dlc.submit("dlc_1234567890");
1434
1738
  ```
1435
1739
 
1436
1740
  </dd>
@@ -1446,7 +1750,10 @@ await client.campaigns.dlc.submit(161);
1446
1750
  <dl>
1447
1751
  <dd>
1448
1752
 
1449
- **campaignId:** `number` — Unique identifier of the DLC campaign to submit.
1753
+ **campaignId:** `string`
1754
+
1755
+ Unique identifier of the 10DLC campaign to submit.
1756
+ <br><br> This identifier is a string that always begins with the prefix `dlc_`, for example: `dlc_1234567890`.
1450
1757
 
1451
1758
  </dd>
1452
1759
  </dl>
@@ -1477,7 +1784,7 @@ await client.campaigns.dlc.submit(161);
1477
1784
  <dl>
1478
1785
  <dd>
1479
1786
 
1480
- Create a new DLC campaign or updates an existing one. <br>
1787
+ Create a new 10DLC campaign or updates an existing one. <br>
1481
1788
 
1482
1789
  Omit campaignId to create a campaign.
1483
1790
 
@@ -1497,19 +1804,19 @@ Omit campaignId to create a campaign.
1497
1804
  ```typescript
1498
1805
  await client.campaigns.dlc.upsert({
1499
1806
  autoRenew: true,
1500
- brand: 1,
1501
- campaignId: 161,
1807
+ brand: "b_1234567890",
1808
+ campaignId: "dlc_1234567890",
1502
1809
  keywords: {
1503
1810
  HELP: {
1504
1811
  message: "Reply HELP for assistance, STOP to opt-out",
1505
1812
  values: ["HELP", "INFO", "SUPPORT"],
1506
1813
  },
1507
1814
  OPT_IN: {
1508
- message: "Welcome! You're now subscribed to Pinnacle.",
1815
+ message: "Welcome. You are now subscribed to Pinnacle.",
1509
1816
  values: ["JOIN", "START", "SUBSCRIBE"],
1510
1817
  },
1511
1818
  OPT_OUT: {
1512
- message: "You've been unsubscribed. Reply START to rejoin.",
1819
+ message: "You have been unsubscribed. Reply START to rejoin.",
1513
1820
  values: ["STOP", "QUIT", "UNSUBSCRIBE"],
1514
1821
  },
1515
1822
  },
@@ -1579,7 +1886,7 @@ await client.campaigns.dlc.upsert({
1579
1886
  <dl>
1580
1887
  <dd>
1581
1888
 
1582
- Validate your DLC campaign configuration against carrier requirements and compliance rules.
1889
+ Validate your 10DLC campaign configuration against carrier requirements and compliance rules.
1583
1890
 
1584
1891
  </dd>
1585
1892
  </dl>
@@ -1597,7 +1904,7 @@ Validate your DLC campaign configuration against carrier requirements and compli
1597
1904
  ```typescript
1598
1905
  await client.campaigns.dlc.validate({
1599
1906
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
1600
- campaignId: 161,
1907
+ campaignId: "dlc_1234567890",
1601
1908
  });
1602
1909
  ```
1603
1910
 
@@ -1664,8 +1971,8 @@ Generate campaign details based off existing campaign and the brand it's connect
1664
1971
 
1665
1972
  ```typescript
1666
1973
  await client.campaigns.tollFree.autofill({
1667
- additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
1668
- campaignId: 161,
1974
+ additionalInfo: "Please autofill missing campaign fields using my brand profile",
1975
+ campaignId: "dlc_1234567890",
1669
1976
  });
1670
1977
  ```
1671
1978
 
@@ -1729,7 +2036,7 @@ Retrieve Toll-Free campaign.
1729
2036
  <dd>
1730
2037
 
1731
2038
  ```typescript
1732
- await client.campaigns.tollFree.get(161);
2039
+ await client.campaigns.tollFree.get("tf_1234567890");
1733
2040
  ```
1734
2041
 
1735
2042
  </dd>
@@ -1745,7 +2052,7 @@ await client.campaigns.tollFree.get(161);
1745
2052
  <dl>
1746
2053
  <dd>
1747
2054
 
1748
- **campaignId:** `number` — Unique identifier of toll-free campaign.
2055
+ **campaignId:** `string` — Unique identifier of toll-free campaign. Must begin with the prefix `tf_`.
1749
2056
 
1750
2057
  </dd>
1751
2058
  </dl>
@@ -1792,7 +2099,7 @@ Submit your toll-free campaign for approval and activation with carriers.
1792
2099
  <dd>
1793
2100
 
1794
2101
  ```typescript
1795
- await client.campaigns.tollFree.submit(161);
2102
+ await client.campaigns.tollFree.submit("tf_1234567890");
1796
2103
  ```
1797
2104
 
1798
2105
  </dd>
@@ -1808,7 +2115,7 @@ await client.campaigns.tollFree.submit(161);
1808
2115
  <dl>
1809
2116
  <dd>
1810
2117
 
1811
- **campaignId:** `number` — Unique identifier of the toll-free campaign to submit.
2118
+ **campaignId:** `string` — Unique identifier of the toll-free campaign to submit. Must begin with the prefix `tf_`.
1812
2119
 
1813
2120
  </dd>
1814
2121
  </dl>
@@ -1858,8 +2165,8 @@ Omit campaignId to create a campaign.
1858
2165
 
1859
2166
  ```typescript
1860
2167
  await client.campaigns.tollFree.upsert({
1861
- brand: 2,
1862
- campaignId: 161,
2168
+ brand: "b_1234567890",
2169
+ campaignId: "tf_1234567890",
1863
2170
  monthlyVolume: "1,000",
1864
2171
  name: "Pinnacle",
1865
2172
  optIn: {
@@ -1867,7 +2174,7 @@ await client.campaigns.tollFree.upsert({
1867
2174
  url: "https://www.pinnacle.sh/",
1868
2175
  workflowDescription: "Visit https://www.pinnacle.sh/",
1869
2176
  },
1870
- productionMessageContent: "Join Pinnacle's workshop tomorrow and send your first RCS!",
2177
+ productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
1871
2178
  useCase: {
1872
2179
  summary: "Alerts clients about any Pinnacle hosted workshops.",
1873
2180
  value: "WORKSHOP_ALERTS",
@@ -1937,7 +2244,7 @@ Validate your toll-free campaign configuration against carrier requirements and
1937
2244
  ```typescript
1938
2245
  await client.campaigns.tollFree.validate({
1939
2246
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
1940
- campaignId: 161,
2247
+ campaignId: "dlc_1234567890",
1941
2248
  });
1942
2249
  ```
1943
2250
 
@@ -2004,8 +2311,8 @@ Generate campaign details based off existing campaign and the brand it's connect
2004
2311
 
2005
2312
  ```typescript
2006
2313
  await client.campaigns.rcs.autofill({
2007
- additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
2008
- campaignId: 161,
2314
+ additionalInfo: "Please autofill missing campaign fields using my brand profile",
2315
+ campaignId: "dlc_1234567890",
2009
2316
  });
2010
2317
  ```
2011
2318
 
@@ -2069,7 +2376,7 @@ Retrieve RCS campaign.
2069
2376
  <dd>
2070
2377
 
2071
2378
  ```typescript
2072
- await client.campaigns.rcs.get(161);
2379
+ await client.campaigns.rcs.get("rcs_1234567890");
2073
2380
  ```
2074
2381
 
2075
2382
  </dd>
@@ -2085,7 +2392,7 @@ await client.campaigns.rcs.get(161);
2085
2392
  <dl>
2086
2393
  <dd>
2087
2394
 
2088
- **campaignId:** `number` — Unique identifier of the RCS campaign.
2395
+ **campaignId:** `string` — Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
2089
2396
 
2090
2397
  </dd>
2091
2398
  </dl>
@@ -2132,7 +2439,7 @@ Submit your RCS campaign for approval and activation with carriers.
2132
2439
  <dd>
2133
2440
 
2134
2441
  ```typescript
2135
- await client.campaigns.rcs.submit(161);
2442
+ await client.campaigns.rcs.submit("rcs_1234567890");
2136
2443
  ```
2137
2444
 
2138
2445
  </dd>
@@ -2148,7 +2455,7 @@ await client.campaigns.rcs.submit(161);
2148
2455
  <dl>
2149
2456
  <dd>
2150
2457
 
2151
- **campaignId:** `number` — Unique identifier of the RCS campaign to retrieve.
2458
+ **campaignId:** `string` — Unique identifier of the RCS campaign to retrieve. Must begin with the prefix `rcs_`.
2152
2459
 
2153
2460
  </dd>
2154
2461
  </dl>
@@ -2224,7 +2531,9 @@ await client.campaigns.rcs.upsert({
2224
2531
  },
2225
2532
  ],
2226
2533
  },
2227
- brand: 2,
2534
+ brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
2535
+ brand: "b_1234567890",
2536
+ campaignId: "rcs_1234567890",
2228
2537
  expectedAgentResponses: [
2229
2538
  "Here are the things I can help you with.",
2230
2539
  "I can assist you with booking an appointment, or you may choose to book manually.",
@@ -2312,7 +2621,7 @@ Validate your RCS campaign configuration against carrier requirements and compli
2312
2621
  ```typescript
2313
2622
  await client.campaigns.rcs.validate({
2314
2623
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
2315
- campaignId: 161,
2624
+ campaignId: "dlc_1234567890",
2316
2625
  });
2317
2626
  ```
2318
2627
 
@@ -2685,7 +2994,7 @@ await client.messages.rcs.send({
2685
2994
  <dl>
2686
2995
  <dd>
2687
2996
 
2688
- **request:** `Pinnacle.Rcs`
2997
+ **request:** `Pinnacle.RichMessage`
2689
2998
 
2690
2999
  </dd>
2691
3000
  </dl>
@@ -2807,7 +3116,8 @@ Connect a webhook to your phone number to receive real-time notifications for in
2807
3116
 
2808
3117
  ```typescript
2809
3118
  await client.phoneNumbers.webhook.attach("%2B14155551234", {
2810
- webhookId: 1,
3119
+ webhookId: "wh_1234567890",
3120
+ event: "MESSAGE.STATUS",
2811
3121
  });
2812
3122
  ```
2813
3123
 
@@ -2828,7 +3138,7 @@ await client.phoneNumbers.webhook.attach("%2B14155551234", {
2828
3138
 
2829
3139
  The phone number you want to attach the webhook to in E.164 format. Make sure it is url encoded (i.e. replace the leading + with %2B). <br>
2830
3140
 
2831
- Must be a phone number that you own and have already [purchased](./buy) through the API.
3141
+ Must be a phone number that you own and have already [purchased](./buy) through the API. A phone number can have multiple webhooks attached to it.
2832
3142
 
2833
3143
  </dd>
2834
3144
  </dl>
@@ -2885,7 +3195,7 @@ The webhook configuration itself remains intact and available for use with other
2885
3195
  <dd>
2886
3196
 
2887
3197
  ```typescript
2888
- await client.phoneNumbers.webhook.detach("+14155551234", 123);
3198
+ await client.phoneNumbers.webhook.detach("+14155551234", "wh_1234567890");
2889
3199
  ```
2890
3200
 
2891
3201
  </dd>
@@ -2913,11 +3223,11 @@ Must be a phone number that you own and currently has the specified webhook atta
2913
3223
  <dl>
2914
3224
  <dd>
2915
3225
 
2916
- **webhookId:** `number`
3226
+ **webhookId:** `string`
2917
3227
 
2918
3228
  The unique identifier of the webhook you want to detach from the phone number. <br>
2919
3229
 
2920
- This must be a valid webhook ID that is currently attached to the specified phone number.
3230
+ 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`.
2921
3231
 
2922
3232
  </dd>
2923
3233
  </dl>
@@ -2950,7 +3260,7 @@ This must be a valid webhook ID that is currently attached to the specified phon
2950
3260
  <dl>
2951
3261
  <dd>
2952
3262
 
2953
- Link a phone number to a specific campaign.
3263
+ Link a phone number to a specific campaign. Phone numbers must be linked to a campaign to send messages.
2954
3264
 
2955
3265
  </dd>
2956
3266
  </dl>
@@ -2969,7 +3279,7 @@ Link a phone number to a specific campaign.
2969
3279
  await client.phoneNumbers.campaign.attach({
2970
3280
  phones: ["+14155550123", "+14155559876", "+14155550111"],
2971
3281
  campaignType: "TOLL_FREE",
2972
- campaignId: 101,
3282
+ campaignId: "tf_1234567890",
2973
3283
  });
2974
3284
  ```
2975
3285
 
@@ -3100,7 +3410,7 @@ Retrieve a brand's status.
3100
3410
  <dd>
3101
3411
 
3102
3412
  ```typescript
3103
- await client.status.get.brand(28);
3413
+ await client.status.get.brand("b_1234567890");
3104
3414
  ```
3105
3415
 
3106
3416
  </dd>
@@ -3116,7 +3426,7 @@ await client.status.get.brand(28);
3116
3426
  <dl>
3117
3427
  <dd>
3118
3428
 
3119
- **brandId:** `number` — ID of the brand.
3429
+ **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`.
3120
3430
 
3121
3431
  </dd>
3122
3432
  </dl>
@@ -3163,7 +3473,7 @@ Retrieve a toll-free campaign's status.
3163
3473
  <dd>
3164
3474
 
3165
3475
  ```typescript
3166
- await client.status.get.tollFree(28);
3476
+ await client.status.get.tollFree("tf_1234567890");
3167
3477
  ```
3168
3478
 
3169
3479
  </dd>
@@ -3179,7 +3489,7 @@ await client.status.get.tollFree(28);
3179
3489
  <dl>
3180
3490
  <dd>
3181
3491
 
3182
- **campaignId:** `number` — ID of the toll-free campaign.
3492
+ **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`.
3183
3493
 
3184
3494
  </dd>
3185
3495
  </dl>
@@ -3210,7 +3520,7 @@ await client.status.get.tollFree(28);
3210
3520
  <dl>
3211
3521
  <dd>
3212
3522
 
3213
- Retrieve a DLC campaign's status.
3523
+ Retrieve a 10DLC campaign's status.
3214
3524
 
3215
3525
  </dd>
3216
3526
  </dl>
@@ -3226,7 +3536,7 @@ Retrieve a DLC campaign's status.
3226
3536
  <dd>
3227
3537
 
3228
3538
  ```typescript
3229
- await client.status.get.dlc(28);
3539
+ await client.status.get.dlc("dlc_1234567890");
3230
3540
  ```
3231
3541
 
3232
3542
  </dd>
@@ -3242,7 +3552,7 @@ await client.status.get.dlc(28);
3242
3552
  <dl>
3243
3553
  <dd>
3244
3554
 
3245
- **campaignId:** `number` — ID of the DLC campaign.
3555
+ **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`.
3246
3556
 
3247
3557
  </dd>
3248
3558
  </dl>
@@ -3289,7 +3599,7 @@ Retrieve a RCS campaign's status.
3289
3599
  <dd>
3290
3600
 
3291
3601
  ```typescript
3292
- await client.status.get.rcs(28);
3602
+ await client.status.get.rcs("rcs_1234567890");
3293
3603
  ```
3294
3604
 
3295
3605
  </dd>
@@ -3305,7 +3615,7 @@ await client.status.get.rcs(28);
3305
3615
  <dl>
3306
3616
  <dd>
3307
3617
 
3308
- **campaignId:** `number` — ID of the campaign.
3618
+ **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`.
3309
3619
 
3310
3620
  </dd>
3311
3621
  </dl>
@@ -3538,7 +3848,7 @@ See the response of [Create Shortened URL](./create-url) for more information.
3538
3848
  <dl>
3539
3849
  <dd>
3540
3850
 
3541
- Update the destination or configuration of an existing shortened URL.
3851
+ Update the destination or expiration date of an existing shortened URL. Expiring links cannot be updated into a permalink.
3542
3852
 
3543
3853
  </dd>
3544
3854
  </dl>
@@ -3677,6 +3987,79 @@ await client.tools.file.upload({
3677
3987
  </dl>
3678
3988
  </details>
3679
3989
 
3990
+ <details><summary><code>client.tools.file.<a href="/src/api/resources/tools/resources/file/client/Client.ts">refresh</a>({ ...params }) -> Pinnacle.RefreshedFile[]</code></summary>
3991
+ <dl>
3992
+ <dd>
3993
+
3994
+ #### 📝 Description
3995
+
3996
+ <dl>
3997
+ <dd>
3998
+
3999
+ <dl>
4000
+ <dd>
4001
+
4002
+ Refresh expiring presigned URLs for Pinnacle-hosted files to extend their access time.
4003
+
4004
+ <Callout type="info">
4005
+ This only works for presigned download URLs. At this moment, you cannot refresh a presigned upload URL, generate a new one instead.
4006
+ </Callout>
4007
+ </dd>
4008
+ </dl>
4009
+ </dd>
4010
+ </dl>
4011
+
4012
+ #### 🔌 Usage
4013
+
4014
+ <dl>
4015
+ <dd>
4016
+
4017
+ <dl>
4018
+ <dd>
4019
+
4020
+ ```typescript
4021
+ await client.tools.file.refresh({
4022
+ urls: [
4023
+ "https://server.trypinnacle.app/storage/v1/object/sign/vault/3/test.jpg?token=oldtoken",
4024
+ "https://server.trypinnacle.app/storage/v1/object/sign/vault/3/document.pdf?token=oldtoken2",
4025
+ "invalid/url",
4026
+ "https://google.com",
4027
+ ],
4028
+ });
4029
+ ```
4030
+
4031
+ </dd>
4032
+ </dl>
4033
+ </dd>
4034
+ </dl>
4035
+
4036
+ #### ⚙️ Parameters
4037
+
4038
+ <dl>
4039
+ <dd>
4040
+
4041
+ <dl>
4042
+ <dd>
4043
+
4044
+ **request:** `Pinnacle.tools.RefreshFileParams`
4045
+
4046
+ </dd>
4047
+ </dl>
4048
+
4049
+ <dl>
4050
+ <dd>
4051
+
4052
+ **requestOptions:** `File_.RequestOptions`
4053
+
4054
+ </dd>
4055
+ </dl>
4056
+ </dd>
4057
+ </dl>
4058
+
4059
+ </dd>
4060
+ </dl>
4061
+ </details>
4062
+
3680
4063
  ## Tools ContactCard
3681
4064
 
3682
4065
  <details><summary><code>client.tools.contactCard.<a href="/src/api/resources/tools/resources/contactCard/client/Client.ts">get</a>({ ...params }) -> Pinnacle.VCardData</code></summary>
@@ -3691,7 +4074,7 @@ await client.tools.file.upload({
3691
4074
  <dl>
3692
4075
  <dd>
3693
4076
 
3694
- Retrieve contact information as a vCard and get a presigned URL to download the file.
4077
+ Retrieve contact information as a vCard and get a presigned URL to download the file. Contact cards can be sent [via MMS](/api-reference/messages/send-mms) as a media file.
3695
4078
 
3696
4079
  </dd>
3697
4080
  </dl>
@@ -3708,7 +4091,7 @@ Retrieve contact information as a vCard and get a presigned URL to download the
3708
4091
 
3709
4092
  ```typescript
3710
4093
  await client.tools.contactCard.get({
3711
- id: 33,
4094
+ id: "cc_1234567890",
3712
4095
  });
3713
4096
  ```
3714
4097
 
@@ -3756,7 +4139,7 @@ await client.tools.contactCard.get({
3756
4139
  <dl>
3757
4140
  <dd>
3758
4141
 
3759
- Create a new contact card or updates an existing one with full vCard data.
4142
+ Create a new contact card or updates an existing one with full vCard data. Contact cards can be sent [via MMS](/api-reference/messages/send-mms) as a media file.
3760
4143
 
3761
4144
  </dd>
3762
4145
  </dl>
@@ -3773,7 +4156,7 @@ Create a new contact card or updates an existing one with full vCard data.
3773
4156
 
3774
4157
  ```typescript
3775
4158
  await client.tools.contactCard.upsert({
3776
- id: 34,
4159
+ id: "cc_1234567890",
3777
4160
  formattedName: "Jane Smith",
3778
4161
  name: {
3779
4162
  familyName: "Smith",