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
@@ -41,8 +41,8 @@ export declare class Rcs {
41
41
  *
42
42
  * @example
43
43
  * await client.campaigns.rcs.autofill({
44
- * additionalInfo: "Please autofill missing campaign fields using my brand profile",
45
- * campaignId: "dlc_1234567890"
44
+ * additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
45
+ * campaignId: 161
46
46
  * })
47
47
  */
48
48
  autofill(request: Pinnacle.AutofillCampaignParams, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.campaigns.RcsAutofillResponse>;
@@ -50,7 +50,7 @@ export declare class Rcs {
50
50
  /**
51
51
  * Retrieve RCS campaign.
52
52
  *
53
- * @param {string} campaignId - Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
53
+ * @param {number} campaignId - Unique identifier of the RCS campaign.
54
54
  * @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
55
55
  *
56
56
  * @throws {@link Pinnacle.BadRequestError}
@@ -59,14 +59,14 @@ export declare class Rcs {
59
59
  * @throws {@link Pinnacle.InternalServerError}
60
60
  *
61
61
  * @example
62
- * await client.campaigns.rcs.get("rcs_1234567890")
62
+ * await client.campaigns.rcs.get(161)
63
63
  */
64
- get(campaignId: string, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.ExtendedRcsCampaign>;
64
+ get(campaignId: number, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.ExtendedRcsCampaign>;
65
65
  private __get;
66
66
  /**
67
67
  * Submit your RCS campaign for approval and activation with carriers.
68
68
  *
69
- * @param {string} campaignId - Unique identifier of the RCS campaign to retrieve. Must begin with the prefix `rcs_`.
69
+ * @param {number} campaignId - Unique identifier of the RCS campaign to retrieve.
70
70
  * @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
71
71
  *
72
72
  * @throws {@link Pinnacle.BadRequestError}
@@ -76,9 +76,9 @@ export declare class Rcs {
76
76
  * @throws {@link Pinnacle.InternalServerError}
77
77
  *
78
78
  * @example
79
- * await client.campaigns.rcs.submit("rcs_1234567890")
79
+ * await client.campaigns.rcs.submit(161)
80
80
  */
81
- submit(campaignId: string, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignSubmissionResult>;
81
+ submit(campaignId: number, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignSubmissionResult>;
82
82
  private __submit;
83
83
  /**
84
84
  * Create a new RCS campaign or updates an existing one. <br>
@@ -115,8 +115,7 @@ export declare class Rcs {
115
115
  * }]
116
116
  * },
117
117
  * brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
118
- * brand: "b_1234567890",
119
- * campaignId: "rcs_1234567890",
118
+ * brand: 2,
120
119
  * expectedAgentResponses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
121
120
  * links: {
122
121
  * privacyPolicy: "https://www.trypinnacle.app/privacy",
@@ -151,7 +150,7 @@ export declare class Rcs {
151
150
  * @example
152
151
  * await client.campaigns.rcs.validate({
153
152
  * additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
154
- * campaignId: "dlc_1234567890"
153
+ * campaignId: 161
155
154
  * })
156
155
  */
157
156
  validate(request: Pinnacle.ValidateCampaignParams, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignValidationResult>;
@@ -31,8 +31,8 @@ export class Rcs {
31
31
  *
32
32
  * @example
33
33
  * await client.campaigns.rcs.autofill({
34
- * additionalInfo: "Please autofill missing campaign fields using my brand profile",
35
- * campaignId: "dlc_1234567890"
34
+ * additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
35
+ * campaignId: 161
36
36
  * })
37
37
  */
38
38
  autofill(request, requestOptions) {
@@ -96,7 +96,7 @@ export class Rcs {
96
96
  /**
97
97
  * Retrieve RCS campaign.
98
98
  *
99
- * @param {string} campaignId - Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
99
+ * @param {number} campaignId - Unique identifier of the RCS campaign.
100
100
  * @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
101
101
  *
102
102
  * @throws {@link Pinnacle.BadRequestError}
@@ -105,7 +105,7 @@ export class Rcs {
105
105
  * @throws {@link Pinnacle.InternalServerError}
106
106
  *
107
107
  * @example
108
- * await client.campaigns.rcs.get("rcs_1234567890")
108
+ * await client.campaigns.rcs.get(161)
109
109
  */
110
110
  get(campaignId, requestOptions) {
111
111
  return core.HttpResponsePromise.fromPromise(this.__get(campaignId, requestOptions));
@@ -164,7 +164,7 @@ export class Rcs {
164
164
  /**
165
165
  * Submit your RCS campaign for approval and activation with carriers.
166
166
  *
167
- * @param {string} campaignId - Unique identifier of the RCS campaign to retrieve. Must begin with the prefix `rcs_`.
167
+ * @param {number} campaignId - Unique identifier of the RCS campaign to retrieve.
168
168
  * @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
169
169
  *
170
170
  * @throws {@link Pinnacle.BadRequestError}
@@ -174,7 +174,7 @@ export class Rcs {
174
174
  * @throws {@link Pinnacle.InternalServerError}
175
175
  *
176
176
  * @example
177
- * await client.campaigns.rcs.submit("rcs_1234567890")
177
+ * await client.campaigns.rcs.submit(161)
178
178
  */
179
179
  submit(campaignId, requestOptions) {
180
180
  return core.HttpResponsePromise.fromPromise(this.__submit(campaignId, requestOptions));
@@ -267,8 +267,7 @@ export class Rcs {
267
267
  * }]
268
268
  * },
269
269
  * brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
270
- * brand: "b_1234567890",
271
- * campaignId: "rcs_1234567890",
270
+ * brand: 2,
272
271
  * expectedAgentResponses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
273
272
  * links: {
274
273
  * privacyPolicy: "https://www.trypinnacle.app/privacy",
@@ -358,7 +357,7 @@ export class Rcs {
358
357
  * @example
359
358
  * await client.campaigns.rcs.validate({
360
359
  * additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
361
- * campaignId: "dlc_1234567890"
360
+ * campaignId: 161
362
361
  * })
363
362
  */
364
363
  validate(request, requestOptions) {
@@ -25,8 +25,7 @@ import * as Pinnacle from "../../../../../../index.mjs";
25
25
  * }]
26
26
  * },
27
27
  * brandVerificationUrl: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
28
- * brand: "b_1234567890",
29
- * campaignId: "rcs_1234567890",
28
+ * brand: 2,
30
29
  * expectedAgentResponses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
31
30
  * links: {
32
31
  * privacyPolicy: "https://www.trypinnacle.app/privacy",
@@ -52,9 +51,9 @@ export interface UpsertRcsCampaignParams {
52
51
  /** Link to document verifying the brand's name. This may be the certificate of incorporation, business license, or other relevant document. You can typically find this on the Secretary of State website. */
53
52
  brandVerificationUrl?: string;
54
53
  /** Unique identifier for the brand. */
55
- brand?: string;
54
+ brand?: number;
56
55
  /** Unique identifier for the campaign. */
57
- campaignId?: string;
56
+ campaignId?: number;
58
57
  /** List of what the agent might say to users (1-5 required). */
59
58
  expectedAgentResponses?: string[];
60
59
  /** Legal documentation links. */
@@ -3,5 +3,5 @@
3
3
  */
4
4
  import * as Pinnacle from "../../../../../index.mjs";
5
5
  export interface RcsAutofillResponse extends Pinnacle.RcsCampaign {
6
- brand?: string;
6
+ brand?: number;
7
7
  }
@@ -41,8 +41,8 @@ export declare class TollFree {
41
41
  *
42
42
  * @example
43
43
  * await client.campaigns.tollFree.autofill({
44
- * additionalInfo: "Please autofill missing campaign fields using my brand profile",
45
- * campaignId: "dlc_1234567890"
44
+ * additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
45
+ * campaignId: 161
46
46
  * })
47
47
  */
48
48
  autofill(request: Pinnacle.AutofillCampaignParams, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.campaigns.TollFreeAutofillResponse>;
@@ -50,7 +50,7 @@ export declare class TollFree {
50
50
  /**
51
51
  * Retrieve Toll-Free campaign.
52
52
  *
53
- * @param {string} campaignId - Unique identifier of toll-free campaign. Must begin with the prefix `tf_`.
53
+ * @param {number} campaignId - Unique identifier of toll-free campaign.
54
54
  * @param {TollFree.RequestOptions} requestOptions - Request-specific configuration.
55
55
  *
56
56
  * @throws {@link Pinnacle.BadRequestError}
@@ -59,14 +59,14 @@ export declare class TollFree {
59
59
  * @throws {@link Pinnacle.InternalServerError}
60
60
  *
61
61
  * @example
62
- * await client.campaigns.tollFree.get("tf_1234567890")
62
+ * await client.campaigns.tollFree.get(161)
63
63
  */
64
- get(campaignId: string, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.TollFreeCampaignWithExtendedBrandAndStatus>;
64
+ get(campaignId: number, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.TollFreeCampaignWithExtendedBrandAndStatus>;
65
65
  private __get;
66
66
  /**
67
67
  * Submit your toll-free campaign for approval and activation with carriers.
68
68
  *
69
- * @param {string} campaignId - Unique identifier of the toll-free campaign to submit. Must begin with the prefix `tf_`.
69
+ * @param {number} campaignId - Unique identifier of the toll-free campaign to submit.
70
70
  * @param {TollFree.RequestOptions} requestOptions - Request-specific configuration.
71
71
  *
72
72
  * @throws {@link Pinnacle.BadRequestError}
@@ -75,9 +75,9 @@ export declare class TollFree {
75
75
  * @throws {@link Pinnacle.InternalServerError}
76
76
  *
77
77
  * @example
78
- * await client.campaigns.tollFree.submit("tf_1234567890")
78
+ * await client.campaigns.tollFree.submit(161)
79
79
  */
80
- submit(campaignId: string, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignSubmissionResult>;
80
+ submit(campaignId: number, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignSubmissionResult>;
81
81
  private __submit;
82
82
  /**
83
83
  * Create a new toll-free campaign or updates an existing one.<br>
@@ -94,8 +94,8 @@ export declare class TollFree {
94
94
  *
95
95
  * @example
96
96
  * await client.campaigns.tollFree.upsert({
97
- * brand: "b_1234567890",
98
- * campaignId: "tf_1234567890",
97
+ * brand: 2,
98
+ * campaignId: 161,
99
99
  * monthlyVolume: "1,000",
100
100
  * name: "Pinnacle",
101
101
  * optIn: {
@@ -103,7 +103,7 @@ export declare class TollFree {
103
103
  * url: "https://www.pinnacle.sh/",
104
104
  * workflowDescription: "Visit https://www.pinnacle.sh/"
105
105
  * },
106
- * productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
106
+ * productionMessageContent: "Join Pinnacle's workshop tomorrow and send your first RCS!",
107
107
  * useCase: {
108
108
  * summary: "Alerts clients about any Pinnacle hosted workshops.",
109
109
  * value: "WORKSHOP_ALERTS"
@@ -125,7 +125,7 @@ export declare class TollFree {
125
125
  * @example
126
126
  * await client.campaigns.tollFree.validate({
127
127
  * additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
128
- * campaignId: "dlc_1234567890"
128
+ * campaignId: 161
129
129
  * })
130
130
  */
131
131
  validate(request: Pinnacle.ValidateCampaignParams, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignValidationResult>;
@@ -31,8 +31,8 @@ export class TollFree {
31
31
  *
32
32
  * @example
33
33
  * await client.campaigns.tollFree.autofill({
34
- * additionalInfo: "Please autofill missing campaign fields using my brand profile",
35
- * campaignId: "dlc_1234567890"
34
+ * additionalInfo: "Please autofill missing DLC campaign fields using my brand profile",
35
+ * campaignId: 161
36
36
  * })
37
37
  */
38
38
  autofill(request, requestOptions) {
@@ -96,7 +96,7 @@ export class TollFree {
96
96
  /**
97
97
  * Retrieve Toll-Free campaign.
98
98
  *
99
- * @param {string} campaignId - Unique identifier of toll-free campaign. Must begin with the prefix `tf_`.
99
+ * @param {number} campaignId - Unique identifier of toll-free campaign.
100
100
  * @param {TollFree.RequestOptions} requestOptions - Request-specific configuration.
101
101
  *
102
102
  * @throws {@link Pinnacle.BadRequestError}
@@ -105,7 +105,7 @@ export class TollFree {
105
105
  * @throws {@link Pinnacle.InternalServerError}
106
106
  *
107
107
  * @example
108
- * await client.campaigns.tollFree.get("tf_1234567890")
108
+ * await client.campaigns.tollFree.get(161)
109
109
  */
110
110
  get(campaignId, requestOptions) {
111
111
  return core.HttpResponsePromise.fromPromise(this.__get(campaignId, requestOptions));
@@ -167,7 +167,7 @@ export class TollFree {
167
167
  /**
168
168
  * Submit your toll-free campaign for approval and activation with carriers.
169
169
  *
170
- * @param {string} campaignId - Unique identifier of the toll-free campaign to submit. Must begin with the prefix `tf_`.
170
+ * @param {number} campaignId - Unique identifier of the toll-free campaign to submit.
171
171
  * @param {TollFree.RequestOptions} requestOptions - Request-specific configuration.
172
172
  *
173
173
  * @throws {@link Pinnacle.BadRequestError}
@@ -176,7 +176,7 @@ export class TollFree {
176
176
  * @throws {@link Pinnacle.InternalServerError}
177
177
  *
178
178
  * @example
179
- * await client.campaigns.tollFree.submit("tf_1234567890")
179
+ * await client.campaigns.tollFree.submit(161)
180
180
  */
181
181
  submit(campaignId, requestOptions) {
182
182
  return core.HttpResponsePromise.fromPromise(this.__submit(campaignId, requestOptions));
@@ -247,8 +247,8 @@ export class TollFree {
247
247
  *
248
248
  * @example
249
249
  * await client.campaigns.tollFree.upsert({
250
- * brand: "b_1234567890",
251
- * campaignId: "tf_1234567890",
250
+ * brand: 2,
251
+ * campaignId: 161,
252
252
  * monthlyVolume: "1,000",
253
253
  * name: "Pinnacle",
254
254
  * optIn: {
@@ -256,7 +256,7 @@ export class TollFree {
256
256
  * url: "https://www.pinnacle.sh/",
257
257
  * workflowDescription: "Visit https://www.pinnacle.sh/"
258
258
  * },
259
- * productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
259
+ * productionMessageContent: "Join Pinnacle's workshop tomorrow and send your first RCS!",
260
260
  * useCase: {
261
261
  * summary: "Alerts clients about any Pinnacle hosted workshops.",
262
262
  * value: "WORKSHOP_ALERTS"
@@ -336,7 +336,7 @@ export class TollFree {
336
336
  * @example
337
337
  * await client.campaigns.tollFree.validate({
338
338
  * additionalInfo: "Please validate this DLC campaign for 10DLC compliance",
339
- * campaignId: "dlc_1234567890"
339
+ * campaignId: 161
340
340
  * })
341
341
  */
342
342
  validate(request, requestOptions) {
@@ -5,8 +5,8 @@ import * as Pinnacle from "../../../../../../index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * brand: "b_1234567890",
9
- * campaignId: "tf_1234567890",
8
+ * brand: 2,
9
+ * campaignId: 161,
10
10
  * monthlyVolume: "1,000",
11
11
  * name: "Pinnacle",
12
12
  * optIn: {
@@ -14,7 +14,7 @@ import * as Pinnacle from "../../../../../../index.mjs";
14
14
  * url: "https://www.pinnacle.sh/",
15
15
  * workflowDescription: "Visit https://www.pinnacle.sh/"
16
16
  * },
17
- * productionMessageContent: "Join the Pinnacle workshop tomorrow and send your first RCS!",
17
+ * productionMessageContent: "Join Pinnacle's workshop tomorrow and send your first RCS!",
18
18
  * useCase: {
19
19
  * summary: "Alerts clients about any Pinnacle hosted workshops.",
20
20
  * value: "WORKSHOP_ALERTS"
@@ -22,10 +22,10 @@ import * as Pinnacle from "../../../../../../index.mjs";
22
22
  * }
23
23
  */
24
24
  export interface UpsertTollFreeCampaignParams {
25
- /** Brand id. This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`. */
26
- brand?: string;
27
- /** Unique identifier for the campaign. This identifier is a string that always begins with the prefix `tf_`, for example: `tf_1234567890`. */
28
- campaignId?: string;
25
+ /** Brand id. */
26
+ brand?: number;
27
+ /** Unique identifier for the campaign. */
28
+ campaignId?: number;
29
29
  monthlyVolume?: Pinnacle.MessageVolumeEnum;
30
30
  /** Display name of the campaign. */
31
31
  name?: string;
@@ -3,5 +3,5 @@
3
3
  */
4
4
  import * as Pinnacle from "../../../../../index.mjs";
5
5
  export interface TollFreeAutofillResponse extends Pinnacle.TollFreeCampaign {
6
- brand?: string;
6
+ brand?: number;
7
7
  }
@@ -41,9 +41,7 @@ export declare class Contacts {
41
41
  * @throws {@link Pinnacle.InternalServerError}
42
42
  *
43
43
  * @example
44
- * await client.contacts.get({
45
- * id: "co_1234567890"
46
- * })
44
+ * await client.contacts.get()
47
45
  */
48
46
  get(request?: Pinnacle.ContactsGetRequest, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Pinnacle.Contact>;
49
47
  private __get;
@@ -81,7 +79,7 @@ export declare class Contacts {
81
79
  * email: "alvaroopedtech@pinnacle.sh",
82
80
  * name: "Retired Bestie",
83
81
  * tags: ["friend"],
84
- * id: "co_1234567890"
82
+ * id: 137
85
83
  * })
86
84
  */
87
85
  update(request: Pinnacle.UpdateContactParams, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Pinnacle.UpdatedContactId>;
@@ -31,9 +31,7 @@ export class Contacts {
31
31
  * @throws {@link Pinnacle.InternalServerError}
32
32
  *
33
33
  * @example
34
- * await client.contacts.get({
35
- * id: "co_1234567890"
36
- * })
34
+ * await client.contacts.get()
37
35
  */
38
36
  get(request = {}, requestOptions) {
39
37
  return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
@@ -44,7 +42,7 @@ export class Contacts {
44
42
  const { id, phoneNumber } = request;
45
43
  const _queryParams = {};
46
44
  if (id != null) {
47
- _queryParams["id"] = id;
45
+ _queryParams["id"] = id.toString();
48
46
  }
49
47
  if (phoneNumber != null) {
50
48
  _queryParams["phoneNumber"] = phoneNumber;
@@ -184,7 +182,7 @@ export class Contacts {
184
182
  * email: "alvaroopedtech@pinnacle.sh",
185
183
  * name: "Retired Bestie",
186
184
  * tags: ["friend"],
187
- * id: "co_1234567890"
185
+ * id: 137
188
186
  * })
189
187
  */
190
188
  update(request, requestOptions) {
@@ -3,9 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * id: "co_1234567890"
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface ContactsGetRequest {
11
9
  /**
@@ -13,7 +11,7 @@ export interface ContactsGetRequest {
13
11
  *
14
12
  * Either this parameter or `phoneNumber` must be provided, but not both.
15
13
  */
16
- id?: string;
14
+ id?: number;
17
15
  /** Phone number you want to look up contact information for, provided in URL-encoded E.164 format with %2B prefix instead of +. */
18
16
  phoneNumber?: string;
19
17
  }
@@ -9,10 +9,10 @@ import * as Pinnacle from "../../../../index.mjs";
9
9
  * email: "alvaroopedtech@pinnacle.sh",
10
10
  * name: "Retired Bestie",
11
11
  * tags: ["friend"],
12
- * id: "co_1234567890"
12
+ * id: 137
13
13
  * }
14
14
  */
15
15
  export interface UpdateContactParams extends Pinnacle.OptionalContact {
16
- /** ID of the contact you want to update. This identifier is a string that always begins with the prefix `co_`, for example: `co_1234567890`. */
17
- id: string;
16
+ /** ID of the contact you want to update. */
17
+ id: number;
18
18
  }
@@ -41,7 +41,7 @@ export declare class Conversations {
41
41
  *
42
42
  * @example
43
43
  * await client.conversations.get({
44
- * id: "conv_1234567890"
44
+ * id: 1
45
45
  * })
46
46
  */
47
47
  get(request: Pinnacle.GetConversationParams, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<Pinnacle.Conversation | null>;
@@ -58,8 +58,8 @@ export declare class Conversations {
58
58
  *
59
59
  * @example
60
60
  * await client.conversations.list({
61
- * brandId: "b_1234567890",
62
- * campaignId: "tf_1234567890",
61
+ * brandId: 101,
62
+ * campaignId: 136,
63
63
  * campaignType: "TOLL_FREE",
64
64
  * pageIndex: 0,
65
65
  * pageSize: 20,
@@ -81,29 +81,12 @@ export declare class Conversations {
81
81
  *
82
82
  * @example
83
83
  * await client.conversations.update({
84
- * id: "conv_1234567890",
84
+ * id: 123,
85
85
  * notes: "Follow-up completed. Customer satisfied with resolution."
86
86
  * })
87
87
  */
88
88
  update(request: Pinnacle.UpdateConversationParams, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<Pinnacle.SuccessfulConversationUpdate>;
89
89
  private __update;
90
- /**
91
- * Retrieve a paginated and filtered list of messages for a specific conversation.
92
- *
93
- * @param {string} id - Unique identifier of the conversation. This identifier is a string that always begins with the prefix `conv_`, for example: `conv_1234567890`.
94
- * @param {Pinnacle.ConversationsListMessagesRequest} request
95
- * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
96
- *
97
- * @throws {@link Pinnacle.BadRequestError}
98
- * @throws {@link Pinnacle.UnauthorizedError}
99
- * @throws {@link Pinnacle.NotFoundError}
100
- * @throws {@link Pinnacle.InternalServerError}
101
- *
102
- * @example
103
- * await client.conversations.listMessages("id")
104
- */
105
- listMessages(id: string, request?: Pinnacle.ConversationsListMessagesRequest, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<Pinnacle.MessageList>;
106
- private __listMessages;
107
90
  protected _getCustomAuthorizationHeaders(): Promise<{
108
91
  "PINNACLE-API-KEY": string | undefined;
109
92
  }>;
@@ -31,7 +31,7 @@ export class Conversations {
31
31
  *
32
32
  * @example
33
33
  * await client.conversations.get({
34
- * id: "conv_1234567890"
34
+ * id: 1
35
35
  * })
36
36
  */
37
37
  get(request, requestOptions) {
@@ -101,8 +101,8 @@ export class Conversations {
101
101
  *
102
102
  * @example
103
103
  * await client.conversations.list({
104
- * brandId: "b_1234567890",
105
- * campaignId: "tf_1234567890",
104
+ * brandId: 101,
105
+ * campaignId: 136,
106
106
  * campaignType: "TOLL_FREE",
107
107
  * pageIndex: 0,
108
108
  * pageSize: 20,
@@ -177,7 +177,7 @@ export class Conversations {
177
177
  *
178
178
  * @example
179
179
  * await client.conversations.update({
180
- * id: "conv_1234567890",
180
+ * id: 123,
181
181
  * notes: "Follow-up completed. Customer satisfied with resolution."
182
182
  * })
183
183
  */
@@ -239,101 +239,6 @@ export class Conversations {
239
239
  }
240
240
  });
241
241
  }
242
- /**
243
- * Retrieve a paginated and filtered list of messages for a specific conversation.
244
- *
245
- * @param {string} id - Unique identifier of the conversation. This identifier is a string that always begins with the prefix `conv_`, for example: `conv_1234567890`.
246
- * @param {Pinnacle.ConversationsListMessagesRequest} request
247
- * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
248
- *
249
- * @throws {@link Pinnacle.BadRequestError}
250
- * @throws {@link Pinnacle.UnauthorizedError}
251
- * @throws {@link Pinnacle.NotFoundError}
252
- * @throws {@link Pinnacle.InternalServerError}
253
- *
254
- * @example
255
- * await client.conversations.listMessages("id")
256
- */
257
- listMessages(id, request = {}, requestOptions) {
258
- return core.HttpResponsePromise.fromPromise(this.__listMessages(id, request, requestOptions));
259
- }
260
- __listMessages(id_1) {
261
- return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
262
- var _a, _b, _c;
263
- const { pageIndex, pageSize, sortOrder, direction, status, type: type_, dateFrom, dateTo } = request;
264
- const _queryParams = {};
265
- if (pageIndex != null) {
266
- _queryParams["pageIndex"] = pageIndex.toString();
267
- }
268
- if (pageSize != null) {
269
- _queryParams["pageSize"] = pageSize.toString();
270
- }
271
- if (sortOrder != null) {
272
- _queryParams["sortOrder"] = sortOrder;
273
- }
274
- if (direction != null) {
275
- _queryParams["direction"] = direction;
276
- }
277
- if (status != null) {
278
- _queryParams["status"] = status;
279
- }
280
- if (type_ != null) {
281
- _queryParams["type"] = type_;
282
- }
283
- if (dateFrom != null) {
284
- _queryParams["dateFrom"] = dateFrom;
285
- }
286
- if (dateTo != null) {
287
- _queryParams["dateTo"] = dateTo;
288
- }
289
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
290
- const _response = yield core.fetcher({
291
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, `conversations/${encodeURIComponent(id)}/messages`),
292
- method: "POST",
293
- headers: _headers,
294
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
295
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
296
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
297
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
298
- });
299
- if (_response.ok) {
300
- return { data: _response.body, rawResponse: _response.rawResponse };
301
- }
302
- if (_response.error.reason === "status-code") {
303
- switch (_response.error.statusCode) {
304
- case 400:
305
- throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
306
- case 401:
307
- throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
308
- case 404:
309
- throw new Pinnacle.NotFoundError(_response.error.body, _response.rawResponse);
310
- case 500:
311
- throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
312
- default:
313
- throw new errors.PinnacleError({
314
- statusCode: _response.error.statusCode,
315
- body: _response.error.body,
316
- rawResponse: _response.rawResponse,
317
- });
318
- }
319
- }
320
- switch (_response.error.reason) {
321
- case "non-json":
322
- throw new errors.PinnacleError({
323
- statusCode: _response.error.statusCode,
324
- body: _response.error.rawBody,
325
- rawResponse: _response.rawResponse,
326
- });
327
- case "timeout":
328
- throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /conversations/{id}/messages.");
329
- case "unknown":
330
- throw new errors.PinnacleError({
331
- message: _response.error.errorMessage,
332
- rawResponse: _response.rawResponse,
333
- });
334
- }
335
- });
336
- }
337
242
  _getCustomAuthorizationHeaders() {
338
243
  return __awaiter(this, void 0, void 0, function* () {
339
244
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -5,8 +5,8 @@ import * as Pinnacle from "../../../../index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * brandId: "b_1234567890",
9
- * campaignId: "tf_1234567890",
8
+ * brandId: 101,
9
+ * campaignId: 136,
10
10
  * campaignType: "TOLL_FREE",
11
11
  * pageIndex: 0,
12
12
  * pageSize: 20,
@@ -15,15 +15,10 @@ import * as Pinnacle from "../../../../index.mjs";
15
15
  * }
16
16
  */
17
17
  export interface ListConversationsParams {
18
- /** The unique identifier of the brand to filter conversations. This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`. */
19
- brandId?: string;
20
- /**
21
- * The unique identifier of the campaign to filter conversations. This identifier is a string that begins with the prefix:
22
- * - TOLL_FREE: `tf_` (e.g., `tf_1234567890`)
23
- * - 10DLC: `dlc_` (e.g., `dlc_1234567890`)
24
- * - RCS: `rcs_` (e.g., `rcs_1234567890`)
25
- */
26
- campaignId?: string;
18
+ /** The unique identifier of the brand to filter conversations. */
19
+ brandId?: number;
20
+ /** The unique identifier of the campaign to filter conversations. */
21
+ campaignId?: number;
27
22
  campaignType?: Pinnacle.CampaignEnum;
28
23
  /** Zero-based index for pagination. */
29
24
  pageIndex: number;