rcs-js 2.0.0 → 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 (216) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/errors/NotFoundError.d.ts +1 -2
  3. package/dist/cjs/api/resources/brands/client/Client.d.ts +13 -13
  4. package/dist/cjs/api/resources/brands/client/Client.js +10 -10
  5. package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +6 -3
  6. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +14 -13
  7. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +12 -11
  8. package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +8 -8
  9. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +11 -10
  10. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +9 -8
  11. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +4 -3
  12. package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -1
  13. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +12 -12
  14. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +10 -10
  15. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +7 -7
  16. package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -1
  17. package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -2
  18. package/dist/cjs/api/resources/contacts/client/Client.js +5 -3
  19. package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +4 -2
  20. package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +3 -3
  21. package/dist/cjs/api/resources/conversations/client/Client.d.ts +21 -4
  22. package/dist/cjs/api/resources/conversations/client/Client.js +99 -4
  23. package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +36 -0
  24. package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +5 -0
  25. package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +11 -6
  26. package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +3 -3
  27. package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/conversations/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/conversations/index.js +1 -0
  30. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +8 -0
  31. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +10 -0
  32. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +8 -0
  33. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +10 -0
  34. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +13 -0
  35. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +15 -0
  36. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +9 -0
  37. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +11 -0
  38. package/dist/cjs/api/resources/conversations/types/index.d.ts +4 -0
  39. package/dist/cjs/api/resources/conversations/types/index.js +20 -0
  40. package/dist/cjs/api/resources/index.d.ts +2 -1
  41. package/dist/cjs/api/resources/index.js +3 -2
  42. package/dist/cjs/api/resources/messages/client/Client.d.ts +4 -4
  43. package/dist/cjs/api/resources/messages/client/Client.js +3 -3
  44. package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +3 -3
  45. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +1 -1
  46. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +1 -1
  47. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +12 -3
  48. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +5 -5
  49. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +4 -4
  50. package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +12 -12
  51. package/dist/cjs/api/resources/status/resources/get/client/Client.js +8 -8
  52. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +2 -2
  53. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +2 -2
  54. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +3 -3
  55. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -1
  56. package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +1 -1
  57. package/dist/cjs/api/resources/tools/resources/file/client/Client.js +1 -1
  58. package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +3 -11
  59. package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -1
  60. package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +2 -2
  61. package/dist/cjs/api/types/AutofillCampaignParams.d.ts +7 -2
  62. package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +4 -4
  63. package/dist/cjs/api/types/BrandStatus.d.ts +2 -2
  64. package/dist/cjs/api/types/ButtonClickedData.d.ts +1 -1
  65. package/dist/cjs/api/types/CampaignQuery.d.ts +6 -1
  66. package/dist/cjs/api/types/ConfiguredWebhook.d.ts +2 -2
  67. package/dist/cjs/api/types/Contact.d.ts +2 -2
  68. package/dist/cjs/api/types/ContactId.d.ts +2 -2
  69. package/dist/cjs/api/types/Conversation.d.ts +7 -7
  70. package/dist/cjs/api/types/ConversationList.d.ts +4 -4
  71. package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +2 -2
  72. package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +2 -2
  73. package/dist/cjs/api/types/DlcCampaignStatus.d.ts +2 -2
  74. package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +2 -2
  75. package/dist/cjs/api/types/ExtendedBrand.d.ts +2 -2
  76. package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +2 -2
  77. package/dist/cjs/api/types/GetConversationParams.d.ts +1 -1
  78. package/dist/cjs/api/types/LinkClickEvent.d.ts +0 -4
  79. package/dist/cjs/api/types/Message.d.ts +2 -2
  80. package/dist/cjs/api/types/MessageEvent.d.ts +10 -4
  81. package/dist/cjs/api/types/MessageList.d.ts +15 -0
  82. package/dist/cjs/api/types/MessageList.js +5 -0
  83. package/dist/cjs/api/types/MessageWithReaction.d.ts +27 -0
  84. package/dist/cjs/api/types/MessageWithReaction.js +13 -0
  85. package/dist/cjs/api/types/NotFoundErrorBody.d.ts +6 -0
  86. package/dist/cjs/api/types/NotFoundErrorBody.js +5 -0
  87. package/dist/cjs/api/types/RcsCampaign.d.ts +1 -1
  88. package/dist/cjs/api/types/RcsCampaignStatus.d.ts +2 -2
  89. package/dist/cjs/api/types/ReactionResult.d.ts +4 -4
  90. package/dist/cjs/api/types/ScheduledMessaage.d.ts +2 -2
  91. package/dist/cjs/api/types/SentMmsDetails.d.ts +2 -2
  92. package/dist/cjs/api/types/SentRcsDetails.d.ts +2 -2
  93. package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -2
  94. package/dist/cjs/api/types/TollFreeCampaign.d.ts +2 -2
  95. package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +2 -2
  96. package/dist/cjs/api/types/UpdatedContactId.d.ts +2 -2
  97. package/dist/cjs/api/types/UserEvent.d.ts +27 -0
  98. package/dist/cjs/api/types/UserEvent.js +5 -0
  99. package/dist/cjs/api/types/ValidateCampaignParams.d.ts +7 -2
  100. package/dist/cjs/api/types/Vcard.d.ts +2 -2
  101. package/dist/cjs/api/types/VcardResource.d.ts +2 -2
  102. package/dist/cjs/api/types/Webhooks.d.ts +2 -2
  103. package/dist/cjs/api/types/index.d.ts +4 -0
  104. package/dist/cjs/api/types/index.js +4 -0
  105. package/dist/cjs/version.d.ts +1 -1
  106. package/dist/cjs/version.js +1 -1
  107. package/dist/cjs/wrapper/messages/Client.d.ts +1 -1
  108. package/dist/esm/Client.mjs +2 -2
  109. package/dist/esm/api/errors/NotFoundError.d.mts +1 -2
  110. package/dist/esm/api/resources/brands/client/Client.d.mts +13 -13
  111. package/dist/esm/api/resources/brands/client/Client.mjs +10 -10
  112. package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +6 -3
  113. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +14 -13
  114. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +12 -11
  115. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +8 -8
  116. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +11 -10
  117. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +9 -8
  118. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +4 -3
  119. package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -1
  120. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +12 -12
  121. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +10 -10
  122. package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +7 -7
  123. package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -1
  124. package/dist/esm/api/resources/contacts/client/Client.d.mts +4 -2
  125. package/dist/esm/api/resources/contacts/client/Client.mjs +5 -3
  126. package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +4 -2
  127. package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +3 -3
  128. package/dist/esm/api/resources/conversations/client/Client.d.mts +21 -4
  129. package/dist/esm/api/resources/conversations/client/Client.mjs +99 -4
  130. package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +36 -0
  131. package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +4 -0
  132. package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +11 -6
  133. package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +3 -3
  134. package/dist/esm/api/resources/conversations/client/requests/index.d.mts +1 -0
  135. package/dist/esm/api/resources/conversations/index.d.mts +1 -0
  136. package/dist/esm/api/resources/conversations/index.mjs +1 -0
  137. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +8 -0
  138. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +7 -0
  139. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +8 -0
  140. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +7 -0
  141. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +13 -0
  142. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +12 -0
  143. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +9 -0
  144. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +8 -0
  145. package/dist/esm/api/resources/conversations/types/index.d.mts +4 -0
  146. package/dist/esm/api/resources/conversations/types/index.mjs +4 -0
  147. package/dist/esm/api/resources/index.d.mts +2 -1
  148. package/dist/esm/api/resources/index.mjs +2 -1
  149. package/dist/esm/api/resources/messages/client/Client.d.mts +4 -4
  150. package/dist/esm/api/resources/messages/client/Client.mjs +3 -3
  151. package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +3 -3
  152. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +1 -1
  153. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +1 -1
  154. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +12 -3
  155. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +5 -5
  156. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +4 -4
  157. package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +12 -12
  158. package/dist/esm/api/resources/status/resources/get/client/Client.mjs +8 -8
  159. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +2 -2
  160. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +2 -2
  161. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +3 -3
  162. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -1
  163. package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +1 -1
  164. package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +1 -1
  165. package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +3 -11
  166. package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -1
  167. package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +2 -2
  168. package/dist/esm/api/types/AutofillCampaignParams.d.mts +7 -2
  169. package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +4 -4
  170. package/dist/esm/api/types/BrandStatus.d.mts +2 -2
  171. package/dist/esm/api/types/ButtonClickedData.d.mts +1 -1
  172. package/dist/esm/api/types/CampaignQuery.d.mts +6 -1
  173. package/dist/esm/api/types/ConfiguredWebhook.d.mts +2 -2
  174. package/dist/esm/api/types/Contact.d.mts +2 -2
  175. package/dist/esm/api/types/ContactId.d.mts +2 -2
  176. package/dist/esm/api/types/Conversation.d.mts +7 -7
  177. package/dist/esm/api/types/ConversationList.d.mts +4 -4
  178. package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +2 -2
  179. package/dist/esm/api/types/DetachedWebhookInfo.d.mts +2 -2
  180. package/dist/esm/api/types/DlcCampaignStatus.d.mts +2 -2
  181. package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +2 -2
  182. package/dist/esm/api/types/ExtendedBrand.d.mts +2 -2
  183. package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +2 -2
  184. package/dist/esm/api/types/GetConversationParams.d.mts +1 -1
  185. package/dist/esm/api/types/LinkClickEvent.d.mts +0 -4
  186. package/dist/esm/api/types/Message.d.mts +2 -2
  187. package/dist/esm/api/types/MessageEvent.d.mts +10 -4
  188. package/dist/esm/api/types/MessageList.d.mts +15 -0
  189. package/dist/esm/api/types/MessageList.mjs +4 -0
  190. package/dist/esm/api/types/MessageWithReaction.d.mts +27 -0
  191. package/dist/esm/api/types/MessageWithReaction.mjs +10 -0
  192. package/dist/esm/api/types/NotFoundErrorBody.d.mts +6 -0
  193. package/dist/esm/api/types/NotFoundErrorBody.mjs +4 -0
  194. package/dist/esm/api/types/RcsCampaign.d.mts +1 -1
  195. package/dist/esm/api/types/RcsCampaignStatus.d.mts +2 -2
  196. package/dist/esm/api/types/ReactionResult.d.mts +4 -4
  197. package/dist/esm/api/types/ScheduledMessaage.d.mts +2 -2
  198. package/dist/esm/api/types/SentMmsDetails.d.mts +2 -2
  199. package/dist/esm/api/types/SentRcsDetails.d.mts +2 -2
  200. package/dist/esm/api/types/SentSmsDetails.d.mts +2 -2
  201. package/dist/esm/api/types/TollFreeCampaign.d.mts +2 -2
  202. package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +2 -2
  203. package/dist/esm/api/types/UpdatedContactId.d.mts +2 -2
  204. package/dist/esm/api/types/UserEvent.d.mts +27 -0
  205. package/dist/esm/api/types/UserEvent.mjs +4 -0
  206. package/dist/esm/api/types/ValidateCampaignParams.d.mts +7 -2
  207. package/dist/esm/api/types/Vcard.d.mts +2 -2
  208. package/dist/esm/api/types/VcardResource.d.mts +2 -2
  209. package/dist/esm/api/types/Webhooks.d.mts +2 -2
  210. package/dist/esm/api/types/index.d.mts +4 -0
  211. package/dist/esm/api/types/index.mjs +4 -0
  212. package/dist/esm/version.d.mts +1 -1
  213. package/dist/esm/version.mjs +1 -1
  214. package/dist/esm/wrapper/messages/Client.d.mts +1 -1
  215. package/package.json +2 -2
  216. package/reference.md +144 -66
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
 
@@ -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
  },
@@ -1531,8 +1606,8 @@ Generate campaign details based off existing campaign and the brand it's connect
1531
1606
 
1532
1607
  ```typescript
1533
1608
  await client.campaigns.dlc.autofill({
1534
- additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
1535
- campaignId: 161,
1609
+ additionalInfo: "Please autofill missing campaign fields using my brand profile",
1610
+ campaignId: "dlc_1234567890",
1536
1611
  });
1537
1612
  ```
1538
1613
 
@@ -1596,7 +1671,7 @@ Retrieve 10DLC campaign.
1596
1671
  <dd>
1597
1672
 
1598
1673
  ```typescript
1599
- await client.campaigns.dlc.get(28);
1674
+ await client.campaigns.dlc.get("dlc_1234567890");
1600
1675
  ```
1601
1676
 
1602
1677
  </dd>
@@ -1612,7 +1687,7 @@ await client.campaigns.dlc.get(28);
1612
1687
  <dl>
1613
1688
  <dd>
1614
1689
 
1615
- **campaignId:** `number` — Unique identifier of the 10DLC 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`.
1616
1691
 
1617
1692
  </dd>
1618
1693
  </dl>
@@ -1659,7 +1734,7 @@ Submit your 10DLC campaign for approval and activation with carriers.
1659
1734
  <dd>
1660
1735
 
1661
1736
  ```typescript
1662
- await client.campaigns.dlc.submit(161);
1737
+ await client.campaigns.dlc.submit("dlc_1234567890");
1663
1738
  ```
1664
1739
 
1665
1740
  </dd>
@@ -1675,7 +1750,10 @@ await client.campaigns.dlc.submit(161);
1675
1750
  <dl>
1676
1751
  <dd>
1677
1752
 
1678
- **campaignId:** `number` — Unique identifier of the 10DLC 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`.
1679
1757
 
1680
1758
  </dd>
1681
1759
  </dl>
@@ -1726,19 +1804,19 @@ Omit campaignId to create a campaign.
1726
1804
  ```typescript
1727
1805
  await client.campaigns.dlc.upsert({
1728
1806
  autoRenew: true,
1729
- brand: 1,
1730
- campaignId: 161,
1807
+ brand: "b_1234567890",
1808
+ campaignId: "dlc_1234567890",
1731
1809
  keywords: {
1732
1810
  HELP: {
1733
1811
  message: "Reply HELP for assistance, STOP to opt-out",
1734
1812
  values: ["HELP", "INFO", "SUPPORT"],
1735
1813
  },
1736
1814
  OPT_IN: {
1737
- message: "Welcome! You're now subscribed to Pinnacle.",
1815
+ message: "Welcome. You are now subscribed to Pinnacle.",
1738
1816
  values: ["JOIN", "START", "SUBSCRIBE"],
1739
1817
  },
1740
1818
  OPT_OUT: {
1741
- message: "You've been unsubscribed. Reply START to rejoin.",
1819
+ message: "You have been unsubscribed. Reply START to rejoin.",
1742
1820
  values: ["STOP", "QUIT", "UNSUBSCRIBE"],
1743
1821
  },
1744
1822
  },
@@ -1826,7 +1904,7 @@ Validate your 10DLC campaign configuration against carrier requirements and comp
1826
1904
  ```typescript
1827
1905
  await client.campaigns.dlc.validate({
1828
1906
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
1829
- campaignId: 161,
1907
+ campaignId: "dlc_1234567890",
1830
1908
  });
1831
1909
  ```
1832
1910
 
@@ -1893,8 +1971,8 @@ Generate campaign details based off existing campaign and the brand it's connect
1893
1971
 
1894
1972
  ```typescript
1895
1973
  await client.campaigns.tollFree.autofill({
1896
- additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
1897
- campaignId: 161,
1974
+ additionalInfo: "Please autofill missing campaign fields using my brand profile",
1975
+ campaignId: "dlc_1234567890",
1898
1976
  });
1899
1977
  ```
1900
1978
 
@@ -1958,7 +2036,7 @@ Retrieve Toll-Free campaign.
1958
2036
  <dd>
1959
2037
 
1960
2038
  ```typescript
1961
- await client.campaigns.tollFree.get(161);
2039
+ await client.campaigns.tollFree.get("tf_1234567890");
1962
2040
  ```
1963
2041
 
1964
2042
  </dd>
@@ -1974,7 +2052,7 @@ await client.campaigns.tollFree.get(161);
1974
2052
  <dl>
1975
2053
  <dd>
1976
2054
 
1977
- **campaignId:** `number` — Unique identifier of toll-free campaign.
2055
+ **campaignId:** `string` — Unique identifier of toll-free campaign. Must begin with the prefix `tf_`.
1978
2056
 
1979
2057
  </dd>
1980
2058
  </dl>
@@ -2021,7 +2099,7 @@ Submit your toll-free campaign for approval and activation with carriers.
2021
2099
  <dd>
2022
2100
 
2023
2101
  ```typescript
2024
- await client.campaigns.tollFree.submit(161);
2102
+ await client.campaigns.tollFree.submit("tf_1234567890");
2025
2103
  ```
2026
2104
 
2027
2105
  </dd>
@@ -2037,7 +2115,7 @@ await client.campaigns.tollFree.submit(161);
2037
2115
  <dl>
2038
2116
  <dd>
2039
2117
 
2040
- **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_`.
2041
2119
 
2042
2120
  </dd>
2043
2121
  </dl>
@@ -2087,8 +2165,8 @@ Omit campaignId to create a campaign.
2087
2165
 
2088
2166
  ```typescript
2089
2167
  await client.campaigns.tollFree.upsert({
2090
- brand: 2,
2091
- campaignId: 161,
2168
+ brand: "b_1234567890",
2169
+ campaignId: "tf_1234567890",
2092
2170
  monthlyVolume: "1,000",
2093
2171
  name: "Pinnacle",
2094
2172
  optIn: {
@@ -2096,7 +2174,7 @@ await client.campaigns.tollFree.upsert({
2096
2174
  url: "https://www.pinnacle.sh/",
2097
2175
  workflowDescription: "Visit https://www.pinnacle.sh/",
2098
2176
  },
2099
- productionMessageContent: "Join Pinnacle's workshop tomorrow and send your first RCS!",
2177
+ productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
2100
2178
  useCase: {
2101
2179
  summary: "Alerts clients about any Pinnacle hosted workshops.",
2102
2180
  value: "WORKSHOP_ALERTS",
@@ -2166,7 +2244,7 @@ Validate your toll-free campaign configuration against carrier requirements and
2166
2244
  ```typescript
2167
2245
  await client.campaigns.tollFree.validate({
2168
2246
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
2169
- campaignId: 161,
2247
+ campaignId: "dlc_1234567890",
2170
2248
  });
2171
2249
  ```
2172
2250
 
@@ -2233,8 +2311,8 @@ Generate campaign details based off existing campaign and the brand it's connect
2233
2311
 
2234
2312
  ```typescript
2235
2313
  await client.campaigns.rcs.autofill({
2236
- additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
2237
- campaignId: 161,
2314
+ additionalInfo: "Please autofill missing campaign fields using my brand profile",
2315
+ campaignId: "dlc_1234567890",
2238
2316
  });
2239
2317
  ```
2240
2318
 
@@ -2298,7 +2376,7 @@ Retrieve RCS campaign.
2298
2376
  <dd>
2299
2377
 
2300
2378
  ```typescript
2301
- await client.campaigns.rcs.get(161);
2379
+ await client.campaigns.rcs.get("rcs_1234567890");
2302
2380
  ```
2303
2381
 
2304
2382
  </dd>
@@ -2314,7 +2392,7 @@ await client.campaigns.rcs.get(161);
2314
2392
  <dl>
2315
2393
  <dd>
2316
2394
 
2317
- **campaignId:** `number` — Unique identifier of the RCS campaign.
2395
+ **campaignId:** `string` — Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
2318
2396
 
2319
2397
  </dd>
2320
2398
  </dl>
@@ -2361,7 +2439,7 @@ Submit your RCS campaign for approval and activation with carriers.
2361
2439
  <dd>
2362
2440
 
2363
2441
  ```typescript
2364
- await client.campaigns.rcs.submit(161);
2442
+ await client.campaigns.rcs.submit("rcs_1234567890");
2365
2443
  ```
2366
2444
 
2367
2445
  </dd>
@@ -2377,7 +2455,7 @@ await client.campaigns.rcs.submit(161);
2377
2455
  <dl>
2378
2456
  <dd>
2379
2457
 
2380
- **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_`.
2381
2459
 
2382
2460
  </dd>
2383
2461
  </dl>
@@ -2454,7 +2532,8 @@ await client.campaigns.rcs.upsert({
2454
2532
  ],
2455
2533
  },
2456
2534
  brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
2457
- brand: 2,
2535
+ brand: "b_1234567890",
2536
+ campaignId: "rcs_1234567890",
2458
2537
  expectedAgentResponses: [
2459
2538
  "Here are the things I can help you with.",
2460
2539
  "I can assist you with booking an appointment, or you may choose to book manually.",
@@ -2542,7 +2621,7 @@ Validate your RCS campaign configuration against carrier requirements and compli
2542
2621
  ```typescript
2543
2622
  await client.campaigns.rcs.validate({
2544
2623
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
2545
- campaignId: 161,
2624
+ campaignId: "dlc_1234567890",
2546
2625
  });
2547
2626
  ```
2548
2627
 
@@ -3037,7 +3116,7 @@ Connect a webhook to your phone number to receive real-time notifications for in
3037
3116
 
3038
3117
  ```typescript
3039
3118
  await client.phoneNumbers.webhook.attach("%2B14155551234", {
3040
- webhookId: 123,
3119
+ webhookId: "wh_1234567890",
3041
3120
  event: "MESSAGE.STATUS",
3042
3121
  });
3043
3122
  ```
@@ -3116,7 +3195,7 @@ The webhook configuration itself remains intact and available for use with other
3116
3195
  <dd>
3117
3196
 
3118
3197
  ```typescript
3119
- await client.phoneNumbers.webhook.detach("+14155551234", 123);
3198
+ await client.phoneNumbers.webhook.detach("+14155551234", "wh_1234567890");
3120
3199
  ```
3121
3200
 
3122
3201
  </dd>
@@ -3144,11 +3223,11 @@ Must be a phone number that you own and currently has the specified webhook atta
3144
3223
  <dl>
3145
3224
  <dd>
3146
3225
 
3147
- **webhookId:** `number`
3226
+ **webhookId:** `string`
3148
3227
 
3149
3228
  The unique identifier of the webhook you want to detach from the phone number. <br>
3150
3229
 
3151
- 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`.
3152
3231
 
3153
3232
  </dd>
3154
3233
  </dl>
@@ -3200,7 +3279,7 @@ Link a phone number to a specific campaign. Phone numbers must be linked to a ca
3200
3279
  await client.phoneNumbers.campaign.attach({
3201
3280
  phones: ["+14155550123", "+14155559876", "+14155550111"],
3202
3281
  campaignType: "TOLL_FREE",
3203
- campaignId: 101,
3282
+ campaignId: "tf_1234567890",
3204
3283
  });
3205
3284
  ```
3206
3285
 
@@ -3331,7 +3410,7 @@ Retrieve a brand's status.
3331
3410
  <dd>
3332
3411
 
3333
3412
  ```typescript
3334
- await client.status.get.brand(28);
3413
+ await client.status.get.brand("b_1234567890");
3335
3414
  ```
3336
3415
 
3337
3416
  </dd>
@@ -3347,7 +3426,7 @@ await client.status.get.brand(28);
3347
3426
  <dl>
3348
3427
  <dd>
3349
3428
 
3350
- **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`.
3351
3430
 
3352
3431
  </dd>
3353
3432
  </dl>
@@ -3394,7 +3473,7 @@ Retrieve a toll-free campaign's status.
3394
3473
  <dd>
3395
3474
 
3396
3475
  ```typescript
3397
- await client.status.get.tollFree(28);
3476
+ await client.status.get.tollFree("tf_1234567890");
3398
3477
  ```
3399
3478
 
3400
3479
  </dd>
@@ -3410,7 +3489,7 @@ await client.status.get.tollFree(28);
3410
3489
  <dl>
3411
3490
  <dd>
3412
3491
 
3413
- **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`.
3414
3493
 
3415
3494
  </dd>
3416
3495
  </dl>
@@ -3457,7 +3536,7 @@ Retrieve a 10DLC campaign's status.
3457
3536
  <dd>
3458
3537
 
3459
3538
  ```typescript
3460
- await client.status.get.dlc(28);
3539
+ await client.status.get.dlc("dlc_1234567890");
3461
3540
  ```
3462
3541
 
3463
3542
  </dd>
@@ -3473,7 +3552,7 @@ await client.status.get.dlc(28);
3473
3552
  <dl>
3474
3553
  <dd>
3475
3554
 
3476
- **campaignId:** `number` — ID of the 10DLC 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`.
3477
3556
 
3478
3557
  </dd>
3479
3558
  </dl>
@@ -3520,7 +3599,7 @@ Retrieve a RCS campaign's status.
3520
3599
  <dd>
3521
3600
 
3522
3601
  ```typescript
3523
- await client.status.get.rcs(28);
3602
+ await client.status.get.rcs("rcs_1234567890");
3524
3603
  ```
3525
3604
 
3526
3605
  </dd>
@@ -3536,7 +3615,7 @@ await client.status.get.rcs(28);
3536
3615
  <dl>
3537
3616
  <dd>
3538
3617
 
3539
- **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`.
3540
3619
 
3541
3620
  </dd>
3542
3621
  </dl>
@@ -3940,10 +4019,9 @@ Refresh expiring presigned URLs for Pinnacle-hosted files to extend their access
3940
4019
 
3941
4020
  ```typescript
3942
4021
  await client.tools.file.refresh({
3943
- uris: [
4022
+ urls: [
3944
4023
  "https://server.trypinnacle.app/storage/v1/object/sign/vault/3/test.jpg?token=oldtoken",
3945
4024
  "https://server.trypinnacle.app/storage/v1/object/sign/vault/3/document.pdf?token=oldtoken2",
3946
- "icons/3/test.jpg",
3947
4025
  "invalid/url",
3948
4026
  "https://google.com",
3949
4027
  ],
@@ -4013,7 +4091,7 @@ Retrieve contact information as a vCard and get a presigned URL to download the
4013
4091
 
4014
4092
  ```typescript
4015
4093
  await client.tools.contactCard.get({
4016
- id: 33,
4094
+ id: "cc_1234567890",
4017
4095
  });
4018
4096
  ```
4019
4097
 
@@ -4078,7 +4156,7 @@ Create a new contact card or updates an existing one with full vCard data. Conta
4078
4156
 
4079
4157
  ```typescript
4080
4158
  await client.tools.contactCard.upsert({
4081
- id: 34,
4159
+ id: "cc_1234567890",
4082
4160
  formattedName: "Jane Smith",
4083
4161
  name: {
4084
4162
  familyName: "Smith",