rcs-js 2.0.1-rc.1 → 2.0.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 (210) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/errors/NotFoundError.d.ts +2 -1
  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 +3 -6
  6. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +13 -14
  7. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +11 -12
  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 +10 -11
  10. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +8 -9
  11. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +3 -4
  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 +2 -4
  18. package/dist/cjs/api/resources/contacts/client/Client.js +3 -5
  19. package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +2 -4
  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 +4 -21
  22. package/dist/cjs/api/resources/conversations/client/Client.js +4 -99
  23. package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +6 -11
  24. package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +3 -3
  25. package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +0 -1
  26. package/dist/cjs/api/resources/conversations/index.d.ts +0 -1
  27. package/dist/cjs/api/resources/conversations/index.js +0 -1
  28. package/dist/cjs/api/resources/index.d.ts +1 -2
  29. package/dist/cjs/api/resources/index.js +2 -3
  30. package/dist/cjs/api/resources/messages/client/Client.d.ts +4 -4
  31. package/dist/cjs/api/resources/messages/client/Client.js +3 -3
  32. package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +3 -3
  33. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +3 -12
  36. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +5 -5
  37. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +4 -4
  38. package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +12 -12
  39. package/dist/cjs/api/resources/status/resources/get/client/Client.js +8 -8
  40. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +2 -2
  41. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +2 -2
  42. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +3 -3
  43. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -1
  44. package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +1 -1
  45. package/dist/cjs/api/resources/tools/resources/file/client/Client.js +1 -1
  46. package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +11 -3
  47. package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -1
  48. package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +2 -2
  49. package/dist/cjs/api/types/AutofillCampaignParams.d.ts +2 -7
  50. package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +4 -4
  51. package/dist/cjs/api/types/BrandStatus.d.ts +2 -2
  52. package/dist/cjs/api/types/ButtonClickedData.d.ts +1 -1
  53. package/dist/cjs/api/types/CampaignQuery.d.ts +1 -6
  54. package/dist/cjs/api/types/ConfiguredWebhook.d.ts +2 -2
  55. package/dist/cjs/api/types/Contact.d.ts +2 -2
  56. package/dist/cjs/api/types/ContactId.d.ts +2 -2
  57. package/dist/cjs/api/types/Conversation.d.ts +7 -7
  58. package/dist/cjs/api/types/ConversationList.d.ts +4 -4
  59. package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +2 -2
  60. package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +2 -2
  61. package/dist/cjs/api/types/DlcCampaignStatus.d.ts +2 -2
  62. package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +2 -2
  63. package/dist/cjs/api/types/ExtendedBrand.d.ts +2 -2
  64. package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +2 -2
  65. package/dist/cjs/api/types/GetConversationParams.d.ts +1 -1
  66. package/dist/cjs/api/types/LinkClickEvent.d.ts +4 -0
  67. package/dist/cjs/api/types/Message.d.ts +2 -2
  68. package/dist/cjs/api/types/MessageEvent.d.ts +4 -10
  69. package/dist/cjs/api/types/RcsCampaign.d.ts +1 -1
  70. package/dist/cjs/api/types/RcsCampaignStatus.d.ts +2 -2
  71. package/dist/cjs/api/types/ReactionResult.d.ts +4 -4
  72. package/dist/cjs/api/types/ScheduledMessaage.d.ts +2 -2
  73. package/dist/cjs/api/types/SentMmsDetails.d.ts +2 -2
  74. package/dist/cjs/api/types/SentRcsDetails.d.ts +2 -2
  75. package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -2
  76. package/dist/cjs/api/types/TollFreeCampaign.d.ts +2 -2
  77. package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +2 -2
  78. package/dist/cjs/api/types/UpdatedContactId.d.ts +2 -2
  79. package/dist/cjs/api/types/ValidateCampaignParams.d.ts +2 -7
  80. package/dist/cjs/api/types/Vcard.d.ts +2 -2
  81. package/dist/cjs/api/types/VcardResource.d.ts +2 -2
  82. package/dist/cjs/api/types/Webhooks.d.ts +2 -2
  83. package/dist/cjs/api/types/index.d.ts +0 -3
  84. package/dist/cjs/api/types/index.js +0 -3
  85. package/dist/cjs/version.d.ts +1 -1
  86. package/dist/cjs/version.js +1 -1
  87. package/dist/esm/Client.mjs +2 -2
  88. package/dist/esm/api/errors/NotFoundError.d.mts +2 -1
  89. package/dist/esm/api/resources/brands/client/Client.d.mts +13 -13
  90. package/dist/esm/api/resources/brands/client/Client.mjs +10 -10
  91. package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +3 -6
  92. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +13 -14
  93. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +11 -12
  94. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +8 -8
  95. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +10 -11
  96. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +8 -9
  97. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +3 -4
  98. package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -1
  99. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +12 -12
  100. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +10 -10
  101. package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +7 -7
  102. package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -1
  103. package/dist/esm/api/resources/contacts/client/Client.d.mts +2 -4
  104. package/dist/esm/api/resources/contacts/client/Client.mjs +3 -5
  105. package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +2 -4
  106. package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +3 -3
  107. package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -21
  108. package/dist/esm/api/resources/conversations/client/Client.mjs +4 -99
  109. package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +6 -11
  110. package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +3 -3
  111. package/dist/esm/api/resources/conversations/client/requests/index.d.mts +0 -1
  112. package/dist/esm/api/resources/conversations/index.d.mts +0 -1
  113. package/dist/esm/api/resources/conversations/index.mjs +0 -1
  114. package/dist/esm/api/resources/index.d.mts +1 -2
  115. package/dist/esm/api/resources/index.mjs +1 -2
  116. package/dist/esm/api/resources/messages/client/Client.d.mts +4 -4
  117. package/dist/esm/api/resources/messages/client/Client.mjs +3 -3
  118. package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +3 -3
  119. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +1 -1
  120. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +1 -1
  121. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +3 -12
  122. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +5 -5
  123. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +4 -4
  124. package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +12 -12
  125. package/dist/esm/api/resources/status/resources/get/client/Client.mjs +8 -8
  126. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +2 -2
  127. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +2 -2
  128. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +3 -3
  129. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -1
  130. package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +1 -1
  131. package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +1 -1
  132. package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +11 -3
  133. package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -1
  134. package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +2 -2
  135. package/dist/esm/api/types/AutofillCampaignParams.d.mts +2 -7
  136. package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +4 -4
  137. package/dist/esm/api/types/BrandStatus.d.mts +2 -2
  138. package/dist/esm/api/types/ButtonClickedData.d.mts +1 -1
  139. package/dist/esm/api/types/CampaignQuery.d.mts +1 -6
  140. package/dist/esm/api/types/ConfiguredWebhook.d.mts +2 -2
  141. package/dist/esm/api/types/Contact.d.mts +2 -2
  142. package/dist/esm/api/types/ContactId.d.mts +2 -2
  143. package/dist/esm/api/types/Conversation.d.mts +7 -7
  144. package/dist/esm/api/types/ConversationList.d.mts +4 -4
  145. package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +2 -2
  146. package/dist/esm/api/types/DetachedWebhookInfo.d.mts +2 -2
  147. package/dist/esm/api/types/DlcCampaignStatus.d.mts +2 -2
  148. package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +2 -2
  149. package/dist/esm/api/types/ExtendedBrand.d.mts +2 -2
  150. package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +2 -2
  151. package/dist/esm/api/types/GetConversationParams.d.mts +1 -1
  152. package/dist/esm/api/types/LinkClickEvent.d.mts +4 -0
  153. package/dist/esm/api/types/Message.d.mts +2 -2
  154. package/dist/esm/api/types/MessageEvent.d.mts +4 -10
  155. package/dist/esm/api/types/RcsCampaign.d.mts +1 -1
  156. package/dist/esm/api/types/RcsCampaignStatus.d.mts +2 -2
  157. package/dist/esm/api/types/ReactionResult.d.mts +4 -4
  158. package/dist/esm/api/types/ScheduledMessaage.d.mts +2 -2
  159. package/dist/esm/api/types/SentMmsDetails.d.mts +2 -2
  160. package/dist/esm/api/types/SentRcsDetails.d.mts +2 -2
  161. package/dist/esm/api/types/SentSmsDetails.d.mts +2 -2
  162. package/dist/esm/api/types/TollFreeCampaign.d.mts +2 -2
  163. package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +2 -2
  164. package/dist/esm/api/types/UpdatedContactId.d.mts +2 -2
  165. package/dist/esm/api/types/ValidateCampaignParams.d.mts +2 -7
  166. package/dist/esm/api/types/Vcard.d.mts +2 -2
  167. package/dist/esm/api/types/VcardResource.d.mts +2 -2
  168. package/dist/esm/api/types/Webhooks.d.mts +2 -2
  169. package/dist/esm/api/types/index.d.mts +0 -3
  170. package/dist/esm/api/types/index.mjs +0 -3
  171. package/dist/esm/version.d.mts +1 -1
  172. package/dist/esm/version.mjs +1 -1
  173. package/package.json +1 -1
  174. package/reference.md +66 -144
  175. package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +0 -36
  176. package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +0 -5
  177. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +0 -8
  178. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +0 -10
  179. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +0 -8
  180. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +0 -10
  181. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +0 -13
  182. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +0 -15
  183. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +0 -9
  184. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +0 -11
  185. package/dist/cjs/api/resources/conversations/types/index.d.ts +0 -4
  186. package/dist/cjs/api/resources/conversations/types/index.js +0 -20
  187. package/dist/cjs/api/types/MessageList.d.ts +0 -15
  188. package/dist/cjs/api/types/MessageList.js +0 -5
  189. package/dist/cjs/api/types/MessageWithReaction.d.ts +0 -27
  190. package/dist/cjs/api/types/MessageWithReaction.js +0 -13
  191. package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -6
  192. package/dist/cjs/api/types/NotFoundErrorBody.js +0 -5
  193. package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +0 -36
  194. package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +0 -4
  195. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +0 -8
  196. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +0 -7
  197. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +0 -8
  198. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +0 -7
  199. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +0 -13
  200. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +0 -12
  201. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +0 -9
  202. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +0 -8
  203. package/dist/esm/api/resources/conversations/types/index.d.mts +0 -4
  204. package/dist/esm/api/resources/conversations/types/index.mjs +0 -4
  205. package/dist/esm/api/types/MessageList.d.mts +0 -15
  206. package/dist/esm/api/types/MessageList.mjs +0 -4
  207. package/dist/esm/api/types/MessageWithReaction.d.mts +0 -27
  208. package/dist/esm/api/types/MessageWithReaction.mjs +0 -10
  209. package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -6
  210. package/dist/esm/api/types/NotFoundErrorBody.mjs +0 -4
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: "b_1234567890",
115
+ id: 1,
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("b_1234567890");
183
+ await client.brands.get(1);
184
184
  ```
185
185
 
186
186
  </dd>
@@ -196,10 +196,7 @@ await client.brands.get("b_1234567890");
196
196
  <dl>
197
197
  <dd>
198
198
 
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`.
199
+ **id:** `number` — ID of an existing brand in your account that you want to retrieve.
203
200
 
204
201
  </dd>
205
202
  </dl>
@@ -254,7 +251,7 @@ Submit your brand for review and approval by the compliance team.
254
251
  <dd>
255
252
 
256
253
  ```typescript
257
- await client.brands.submit("b_1234567890");
254
+ await client.brands.submit(1);
258
255
  ```
259
256
 
260
257
  </dd>
@@ -270,10 +267,11 @@ await client.brands.submit("b_1234567890");
270
267
  <dl>
271
268
  <dd>
272
269
 
273
- **brandId:** `string`
270
+ **brandId:** `number`
271
+
272
+ The unique identifier of the brand you want to submit for review. <br>
274
273
 
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.
274
+ Must correspond to an existing brand in your account that is ready for submission.
277
275
 
278
276
  </dd>
279
277
  </dl>
@@ -399,7 +397,7 @@ Submit a brand for external vetting verification to enhance your brand's trust s
399
397
  <dd>
400
398
 
401
399
  ```typescript
402
- await client.brands.vet("b_1234567890", {});
400
+ await client.brands.vet(1, {});
403
401
  ```
404
402
 
405
403
  </dd>
@@ -415,11 +413,11 @@ await client.brands.vet("b_1234567890", {});
415
413
  <dl>
416
414
  <dd>
417
415
 
418
- **brandId:** `string`
416
+ **brandId:** `number`
419
417
 
420
418
  The unique identifier of the brand to vet. <br>
421
419
 
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.
420
+ The brand must be already registered before it can be vetted.
423
421
 
424
422
  </dd>
425
423
  </dl>
@@ -476,9 +474,7 @@ Retrieve contact information for a given number.
476
474
  <dd>
477
475
 
478
476
  ```typescript
479
- await client.contacts.get({
480
- id: "co_1234567890",
481
- });
477
+ await client.contacts.get();
482
478
  ```
483
479
 
484
480
  </dd>
@@ -611,7 +607,7 @@ await client.contacts.update({
611
607
  email: "alvaroopedtech@pinnacle.sh",
612
608
  name: "Retired Bestie",
613
609
  tags: ["friend"],
614
- id: "co_1234567890",
610
+ id: 137,
615
611
  });
616
612
  ```
617
613
 
@@ -678,7 +674,7 @@ Fetch a specific conversation using either its unique identifier or by matching
678
674
 
679
675
  ```typescript
680
676
  await client.conversations.get({
681
- id: "conv_1234567890",
677
+ id: 1,
682
678
  });
683
679
  ```
684
680
 
@@ -743,8 +739,8 @@ Retrieves conversations by page with optional filtering based off provided param
743
739
 
744
740
  ```typescript
745
741
  await client.conversations.list({
746
- brandId: "b_1234567890",
747
- campaignId: "tf_1234567890",
742
+ brandId: 101,
743
+ campaignId: 136,
748
744
  campaignType: "TOLL_FREE",
749
745
  pageIndex: 0,
750
746
  pageSize: 20,
@@ -814,7 +810,7 @@ Update the notes associated with a specific conversation.
814
810
 
815
811
  ```typescript
816
812
  await client.conversations.update({
817
- id: "conv_1234567890",
813
+ id: 123,
818
814
  notes: "Follow-up completed. Customer satisfied with resolution.",
819
815
  });
820
816
  ```
@@ -851,77 +847,6 @@ await client.conversations.update({
851
847
  </dl>
852
848
  </details>
853
849
 
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
-
925
850
  ## Messages
926
851
 
927
852
  <details><summary><code>client.messages.<a href="/src/api/resources/messages/client/Client.ts">get</a>(id) -> Pinnacle.Message</code></summary>
@@ -952,7 +877,7 @@ Retrieve a previously sent message.
952
877
  <dd>
953
878
 
954
879
  ```typescript
955
- await client.messages.get("msg_1234567890");
880
+ await client.messages.get(1240);
956
881
  ```
957
882
 
958
883
  </dd>
@@ -968,7 +893,7 @@ await client.messages.get("msg_1234567890");
968
893
  <dl>
969
894
  <dd>
970
895
 
971
- **id:** `string` — Unique identifier of the message. This identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`.
896
+ **id:** `number` — Unique identifier of the message.
972
897
 
973
898
  </dd>
974
899
  </dl>
@@ -1016,7 +941,7 @@ Add or remove an emoji reaction to a previously sent message.
1016
941
 
1017
942
  ```typescript
1018
943
  await client.messages.react({
1019
- messageId: "msg_1234567890",
944
+ messageId: 1410,
1020
945
  options: {
1021
946
  force: true,
1022
947
  },
@@ -1606,8 +1531,8 @@ Generate campaign details based off existing campaign and the brand it's connect
1606
1531
 
1607
1532
  ```typescript
1608
1533
  await client.campaigns.dlc.autofill({
1609
- additionalInfo: "Please autofill missing campaign fields using my brand profile",
1610
- campaignId: "dlc_1234567890",
1534
+ additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
1535
+ campaignId: 161,
1611
1536
  });
1612
1537
  ```
1613
1538
 
@@ -1671,7 +1596,7 @@ Retrieve 10DLC campaign.
1671
1596
  <dd>
1672
1597
 
1673
1598
  ```typescript
1674
- await client.campaigns.dlc.get("dlc_1234567890");
1599
+ await client.campaigns.dlc.get(28);
1675
1600
  ```
1676
1601
 
1677
1602
  </dd>
@@ -1687,7 +1612,7 @@ await client.campaigns.dlc.get("dlc_1234567890");
1687
1612
  <dl>
1688
1613
  <dd>
1689
1614
 
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`.
1615
+ **campaignId:** `number` — Unique identifier of the 10DLC campaign.
1691
1616
 
1692
1617
  </dd>
1693
1618
  </dl>
@@ -1734,7 +1659,7 @@ Submit your 10DLC campaign for approval and activation with carriers.
1734
1659
  <dd>
1735
1660
 
1736
1661
  ```typescript
1737
- await client.campaigns.dlc.submit("dlc_1234567890");
1662
+ await client.campaigns.dlc.submit(161);
1738
1663
  ```
1739
1664
 
1740
1665
  </dd>
@@ -1750,10 +1675,7 @@ await client.campaigns.dlc.submit("dlc_1234567890");
1750
1675
  <dl>
1751
1676
  <dd>
1752
1677
 
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`.
1678
+ **campaignId:** `number` — Unique identifier of the 10DLC campaign to submit.
1757
1679
 
1758
1680
  </dd>
1759
1681
  </dl>
@@ -1804,19 +1726,19 @@ Omit campaignId to create a campaign.
1804
1726
  ```typescript
1805
1727
  await client.campaigns.dlc.upsert({
1806
1728
  autoRenew: true,
1807
- brand: "b_1234567890",
1808
- campaignId: "dlc_1234567890",
1729
+ brand: 1,
1730
+ campaignId: 161,
1809
1731
  keywords: {
1810
1732
  HELP: {
1811
1733
  message: "Reply HELP for assistance, STOP to opt-out",
1812
1734
  values: ["HELP", "INFO", "SUPPORT"],
1813
1735
  },
1814
1736
  OPT_IN: {
1815
- message: "Welcome. You are now subscribed to Pinnacle.",
1737
+ message: "Welcome! You're now subscribed to Pinnacle.",
1816
1738
  values: ["JOIN", "START", "SUBSCRIBE"],
1817
1739
  },
1818
1740
  OPT_OUT: {
1819
- message: "You have been unsubscribed. Reply START to rejoin.",
1741
+ message: "You've been unsubscribed. Reply START to rejoin.",
1820
1742
  values: ["STOP", "QUIT", "UNSUBSCRIBE"],
1821
1743
  },
1822
1744
  },
@@ -1904,7 +1826,7 @@ Validate your 10DLC campaign configuration against carrier requirements and comp
1904
1826
  ```typescript
1905
1827
  await client.campaigns.dlc.validate({
1906
1828
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
1907
- campaignId: "dlc_1234567890",
1829
+ campaignId: 161,
1908
1830
  });
1909
1831
  ```
1910
1832
 
@@ -1971,8 +1893,8 @@ Generate campaign details based off existing campaign and the brand it's connect
1971
1893
 
1972
1894
  ```typescript
1973
1895
  await client.campaigns.tollFree.autofill({
1974
- additionalInfo: "Please autofill missing campaign fields using my brand profile",
1975
- campaignId: "dlc_1234567890",
1896
+ additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
1897
+ campaignId: 161,
1976
1898
  });
1977
1899
  ```
1978
1900
 
@@ -2036,7 +1958,7 @@ Retrieve Toll-Free campaign.
2036
1958
  <dd>
2037
1959
 
2038
1960
  ```typescript
2039
- await client.campaigns.tollFree.get("tf_1234567890");
1961
+ await client.campaigns.tollFree.get(161);
2040
1962
  ```
2041
1963
 
2042
1964
  </dd>
@@ -2052,7 +1974,7 @@ await client.campaigns.tollFree.get("tf_1234567890");
2052
1974
  <dl>
2053
1975
  <dd>
2054
1976
 
2055
- **campaignId:** `string` — Unique identifier of toll-free campaign. Must begin with the prefix `tf_`.
1977
+ **campaignId:** `number` — Unique identifier of toll-free campaign.
2056
1978
 
2057
1979
  </dd>
2058
1980
  </dl>
@@ -2099,7 +2021,7 @@ Submit your toll-free campaign for approval and activation with carriers.
2099
2021
  <dd>
2100
2022
 
2101
2023
  ```typescript
2102
- await client.campaigns.tollFree.submit("tf_1234567890");
2024
+ await client.campaigns.tollFree.submit(161);
2103
2025
  ```
2104
2026
 
2105
2027
  </dd>
@@ -2115,7 +2037,7 @@ await client.campaigns.tollFree.submit("tf_1234567890");
2115
2037
  <dl>
2116
2038
  <dd>
2117
2039
 
2118
- **campaignId:** `string` — Unique identifier of the toll-free campaign to submit. Must begin with the prefix `tf_`.
2040
+ **campaignId:** `number` — Unique identifier of the toll-free campaign to submit.
2119
2041
 
2120
2042
  </dd>
2121
2043
  </dl>
@@ -2165,8 +2087,8 @@ Omit campaignId to create a campaign.
2165
2087
 
2166
2088
  ```typescript
2167
2089
  await client.campaigns.tollFree.upsert({
2168
- brand: "b_1234567890",
2169
- campaignId: "tf_1234567890",
2090
+ brand: 2,
2091
+ campaignId: 161,
2170
2092
  monthlyVolume: "1,000",
2171
2093
  name: "Pinnacle",
2172
2094
  optIn: {
@@ -2174,7 +2096,7 @@ await client.campaigns.tollFree.upsert({
2174
2096
  url: "https://www.pinnacle.sh/",
2175
2097
  workflowDescription: "Visit https://www.pinnacle.sh/",
2176
2098
  },
2177
- productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
2099
+ productionMessageContent: "Join Pinnacle's workshop tomorrow and send your first RCS!",
2178
2100
  useCase: {
2179
2101
  summary: "Alerts clients about any Pinnacle hosted workshops.",
2180
2102
  value: "WORKSHOP_ALERTS",
@@ -2244,7 +2166,7 @@ Validate your toll-free campaign configuration against carrier requirements and
2244
2166
  ```typescript
2245
2167
  await client.campaigns.tollFree.validate({
2246
2168
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
2247
- campaignId: "dlc_1234567890",
2169
+ campaignId: 161,
2248
2170
  });
2249
2171
  ```
2250
2172
 
@@ -2311,8 +2233,8 @@ Generate campaign details based off existing campaign and the brand it's connect
2311
2233
 
2312
2234
  ```typescript
2313
2235
  await client.campaigns.rcs.autofill({
2314
- additionalInfo: "Please autofill missing campaign fields using my brand profile",
2315
- campaignId: "dlc_1234567890",
2236
+ additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
2237
+ campaignId: 161,
2316
2238
  });
2317
2239
  ```
2318
2240
 
@@ -2376,7 +2298,7 @@ Retrieve RCS campaign.
2376
2298
  <dd>
2377
2299
 
2378
2300
  ```typescript
2379
- await client.campaigns.rcs.get("rcs_1234567890");
2301
+ await client.campaigns.rcs.get(161);
2380
2302
  ```
2381
2303
 
2382
2304
  </dd>
@@ -2392,7 +2314,7 @@ await client.campaigns.rcs.get("rcs_1234567890");
2392
2314
  <dl>
2393
2315
  <dd>
2394
2316
 
2395
- **campaignId:** `string` — Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
2317
+ **campaignId:** `number` — Unique identifier of the RCS campaign.
2396
2318
 
2397
2319
  </dd>
2398
2320
  </dl>
@@ -2439,7 +2361,7 @@ Submit your RCS campaign for approval and activation with carriers.
2439
2361
  <dd>
2440
2362
 
2441
2363
  ```typescript
2442
- await client.campaigns.rcs.submit("rcs_1234567890");
2364
+ await client.campaigns.rcs.submit(161);
2443
2365
  ```
2444
2366
 
2445
2367
  </dd>
@@ -2455,7 +2377,7 @@ await client.campaigns.rcs.submit("rcs_1234567890");
2455
2377
  <dl>
2456
2378
  <dd>
2457
2379
 
2458
- **campaignId:** `string` — Unique identifier of the RCS campaign to retrieve. Must begin with the prefix `rcs_`.
2380
+ **campaignId:** `number` — Unique identifier of the RCS campaign to retrieve.
2459
2381
 
2460
2382
  </dd>
2461
2383
  </dl>
@@ -2532,8 +2454,7 @@ await client.campaigns.rcs.upsert({
2532
2454
  ],
2533
2455
  },
2534
2456
  brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
2535
- brand: "b_1234567890",
2536
- campaignId: "rcs_1234567890",
2457
+ brand: 2,
2537
2458
  expectedAgentResponses: [
2538
2459
  "Here are the things I can help you with.",
2539
2460
  "I can assist you with booking an appointment, or you may choose to book manually.",
@@ -2621,7 +2542,7 @@ Validate your RCS campaign configuration against carrier requirements and compli
2621
2542
  ```typescript
2622
2543
  await client.campaigns.rcs.validate({
2623
2544
  additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
2624
- campaignId: "dlc_1234567890",
2545
+ campaignId: 161,
2625
2546
  });
2626
2547
  ```
2627
2548
 
@@ -3116,7 +3037,7 @@ Connect a webhook to your phone number to receive real-time notifications for in
3116
3037
 
3117
3038
  ```typescript
3118
3039
  await client.phoneNumbers.webhook.attach("%2B14155551234", {
3119
- webhookId: "wh_1234567890",
3040
+ webhookId: 123,
3120
3041
  event: "MESSAGE.STATUS",
3121
3042
  });
3122
3043
  ```
@@ -3195,7 +3116,7 @@ The webhook configuration itself remains intact and available for use with other
3195
3116
  <dd>
3196
3117
 
3197
3118
  ```typescript
3198
- await client.phoneNumbers.webhook.detach("+14155551234", "wh_1234567890");
3119
+ await client.phoneNumbers.webhook.detach("+14155551234", 123);
3199
3120
  ```
3200
3121
 
3201
3122
  </dd>
@@ -3223,11 +3144,11 @@ Must be a phone number that you own and currently has the specified webhook atta
3223
3144
  <dl>
3224
3145
  <dd>
3225
3146
 
3226
- **webhookId:** `string`
3147
+ **webhookId:** `number`
3227
3148
 
3228
3149
  The unique identifier of the webhook you want to detach from the phone number. <br>
3229
3150
 
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`.
3151
+ This must be a valid webhook ID that is currently attached to the specified phone number.
3231
3152
 
3232
3153
  </dd>
3233
3154
  </dl>
@@ -3279,7 +3200,7 @@ Link a phone number to a specific campaign. Phone numbers must be linked to a ca
3279
3200
  await client.phoneNumbers.campaign.attach({
3280
3201
  phones: ["+14155550123", "+14155559876", "+14155550111"],
3281
3202
  campaignType: "TOLL_FREE",
3282
- campaignId: "tf_1234567890",
3203
+ campaignId: 101,
3283
3204
  });
3284
3205
  ```
3285
3206
 
@@ -3410,7 +3331,7 @@ Retrieve a brand's status.
3410
3331
  <dd>
3411
3332
 
3412
3333
  ```typescript
3413
- await client.status.get.brand("b_1234567890");
3334
+ await client.status.get.brand(28);
3414
3335
  ```
3415
3336
 
3416
3337
  </dd>
@@ -3426,7 +3347,7 @@ await client.status.get.brand("b_1234567890");
3426
3347
  <dl>
3427
3348
  <dd>
3428
3349
 
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`.
3350
+ **brandId:** `number` — ID of the brand.
3430
3351
 
3431
3352
  </dd>
3432
3353
  </dl>
@@ -3473,7 +3394,7 @@ Retrieve a toll-free campaign's status.
3473
3394
  <dd>
3474
3395
 
3475
3396
  ```typescript
3476
- await client.status.get.tollFree("tf_1234567890");
3397
+ await client.status.get.tollFree(28);
3477
3398
  ```
3478
3399
 
3479
3400
  </dd>
@@ -3489,7 +3410,7 @@ await client.status.get.tollFree("tf_1234567890");
3489
3410
  <dl>
3490
3411
  <dd>
3491
3412
 
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`.
3413
+ **campaignId:** `number` — ID of the toll-free campaign.
3493
3414
 
3494
3415
  </dd>
3495
3416
  </dl>
@@ -3536,7 +3457,7 @@ Retrieve a 10DLC campaign's status.
3536
3457
  <dd>
3537
3458
 
3538
3459
  ```typescript
3539
- await client.status.get.dlc("dlc_1234567890");
3460
+ await client.status.get.dlc(28);
3540
3461
  ```
3541
3462
 
3542
3463
  </dd>
@@ -3552,7 +3473,7 @@ await client.status.get.dlc("dlc_1234567890");
3552
3473
  <dl>
3553
3474
  <dd>
3554
3475
 
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`.
3476
+ **campaignId:** `number` — ID of the 10DLC campaign.
3556
3477
 
3557
3478
  </dd>
3558
3479
  </dl>
@@ -3599,7 +3520,7 @@ Retrieve a RCS campaign's status.
3599
3520
  <dd>
3600
3521
 
3601
3522
  ```typescript
3602
- await client.status.get.rcs("rcs_1234567890");
3523
+ await client.status.get.rcs(28);
3603
3524
  ```
3604
3525
 
3605
3526
  </dd>
@@ -3615,7 +3536,7 @@ await client.status.get.rcs("rcs_1234567890");
3615
3536
  <dl>
3616
3537
  <dd>
3617
3538
 
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`.
3539
+ **campaignId:** `number` — ID of the campaign.
3619
3540
 
3620
3541
  </dd>
3621
3542
  </dl>
@@ -4019,9 +3940,10 @@ Refresh expiring presigned URLs for Pinnacle-hosted files to extend their access
4019
3940
 
4020
3941
  ```typescript
4021
3942
  await client.tools.file.refresh({
4022
- urls: [
3943
+ uris: [
4023
3944
  "https://server.trypinnacle.app/storage/v1/object/sign/vault/3/test.jpg?token=oldtoken",
4024
3945
  "https://server.trypinnacle.app/storage/v1/object/sign/vault/3/document.pdf?token=oldtoken2",
3946
+ "icons/3/test.jpg",
4025
3947
  "invalid/url",
4026
3948
  "https://google.com",
4027
3949
  ],
@@ -4091,7 +4013,7 @@ Retrieve contact information as a vCard and get a presigned URL to download the
4091
4013
 
4092
4014
  ```typescript
4093
4015
  await client.tools.contactCard.get({
4094
- id: "cc_1234567890",
4016
+ id: 33,
4095
4017
  });
4096
4018
  ```
4097
4019
 
@@ -4156,7 +4078,7 @@ Create a new contact card or updates an existing one with full vCard data. Conta
4156
4078
 
4157
4079
  ```typescript
4158
4080
  await client.tools.contactCard.upsert({
4159
- id: "cc_1234567890",
4081
+ id: 34,
4160
4082
  formattedName: "Jane Smith",
4161
4083
  name: {
4162
4084
  familyName: "Smith",
@@ -1,36 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Pinnacle from "../../../../index.js";
5
- /**
6
- * @example
7
- * {}
8
- */
9
- export interface ConversationsListMessagesRequest {
10
- /** Zero-based index for pagination. */
11
- pageIndex?: number;
12
- /** Number of messages to return per page. */
13
- pageSize?: number;
14
- /**
15
- * Sort order for messages. <br>
16
- *
17
- * - `asc`: Oldest messages first
18
- * - `desc`: Newest messages first (default)
19
- */
20
- sortOrder?: Pinnacle.ConversationsListMessagesRequestSortOrder;
21
- /**
22
- * Filter messages by direction. <br>
23
- *
24
- * - `INBOUND`: Messages received from contacts
25
- * - `OUTBOUND`: Messages sent to contacts
26
- */
27
- direction?: Pinnacle.ConversationsListMessagesRequestDirection;
28
- /** Filter messages by delivery status. */
29
- status?: Pinnacle.ConversationsListMessagesRequestStatus;
30
- /** Filter messages by protocol type. */
31
- type?: Pinnacle.ConversationsListMessagesRequestType;
32
- /** Filter messages sent on or after this date (ISO 8601 format). */
33
- dateFrom?: string;
34
- /** Filter messages sent on or before this date (ISO 8601 format). */
35
- dateTo?: string;
36
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type ConversationsListMessagesRequestDirection = "INBOUND" | "OUTBOUND";
5
- export declare const ConversationsListMessagesRequestDirection: {
6
- readonly Inbound: "INBOUND";
7
- readonly Outbound: "OUTBOUND";
8
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConversationsListMessagesRequestDirection = void 0;
7
- exports.ConversationsListMessagesRequestDirection = {
8
- Inbound: "INBOUND",
9
- Outbound: "OUTBOUND",
10
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type ConversationsListMessagesRequestSortOrder = "asc" | "desc";
5
- export declare const ConversationsListMessagesRequestSortOrder: {
6
- readonly Asc: "asc";
7
- readonly Desc: "desc";
8
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConversationsListMessagesRequestSortOrder = void 0;
7
- exports.ConversationsListMessagesRequestSortOrder = {
8
- Asc: "asc",
9
- Desc: "desc",
10
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type ConversationsListMessagesRequestStatus = "PENDING" | "SENT" | "SEND_FAILED" | "DELIVERED" | "DELIVERY_FAILED" | "RECEIVED" | "READ";
5
- export declare const ConversationsListMessagesRequestStatus: {
6
- readonly Pending: "PENDING";
7
- readonly Sent: "SENT";
8
- readonly SendFailed: "SEND_FAILED";
9
- readonly Delivered: "DELIVERED";
10
- readonly DeliveryFailed: "DELIVERY_FAILED";
11
- readonly Received: "RECEIVED";
12
- readonly Read: "READ";
13
- };