rcs-js 2.0.13-rc.5 → 2.0.14

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 (338) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/audiences/client/Client.d.ts +15 -0
  3. package/dist/cjs/api/resources/audiences/client/Client.js +70 -0
  4. package/dist/cjs/api/resources/audiences/client/requests/ListAudiencesParams.d.ts +10 -0
  5. package/dist/cjs/api/resources/audiences/client/requests/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/brands/client/Client.d.ts +15 -0
  7. package/dist/cjs/api/resources/brands/client/Client.js +70 -0
  8. package/dist/cjs/api/resources/brands/client/requests/ListBrandsParams.d.ts +23 -0
  9. package/dist/cjs/api/resources/brands/client/requests/ListBrandsParams.js +15 -0
  10. package/dist/cjs/api/resources/brands/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +15 -0
  12. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +70 -0
  13. package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/ListDlcCampaignsParams.d.ts +21 -0
  14. package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/ListDlcCampaignsParams.js +13 -0
  15. package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +15 -0
  17. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +70 -0
  18. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/ListRcsCampaignsParams.d.ts +21 -0
  19. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/ListRcsCampaignsParams.js +13 -0
  20. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +15 -0
  22. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +73 -0
  23. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/ListTollFreeCampaignsParams.d.ts +21 -0
  24. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/ListTollFreeCampaignsParams.js +13 -0
  25. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/contacts/client/Client.d.ts +15 -0
  27. package/dist/cjs/api/resources/contacts/client/Client.js +70 -0
  28. package/dist/cjs/api/resources/contacts/client/requests/ListContactsParams.d.ts +16 -0
  29. package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/messages/client/Client.d.ts +21 -0
  31. package/dist/cjs/api/resources/messages/client/Client.js +88 -8
  32. package/dist/cjs/api/resources/messages/client/requests/ListMessagesParams.d.ts +55 -0
  33. package/dist/cjs/api/resources/messages/client/requests/ListMessagesParams.js +33 -0
  34. package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastRcs.d.ts +0 -2
  36. package/dist/cjs/api/resources/messages/resources/blasts/client/Client.d.ts +29 -0
  37. package/dist/cjs/api/resources/messages/resources/blasts/client/Client.js +133 -0
  38. package/dist/cjs/api/resources/messages/resources/blasts/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/messages/resources/blasts/client/index.js +17 -0
  40. package/dist/cjs/api/resources/messages/resources/blasts/client/requests/ListBlastsParams.d.ts +17 -0
  41. package/dist/cjs/api/resources/messages/resources/blasts/client/requests/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/messages/resources/blasts/client/requests/index.js +2 -0
  43. package/dist/cjs/api/resources/messages/resources/blasts/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/messages/resources/blasts/index.js +17 -0
  45. package/dist/cjs/api/resources/messages/resources/index.d.ts +4 -0
  46. package/dist/cjs/api/resources/messages/resources/index.js +5 -1
  47. package/dist/cjs/api/resources/messages/resources/schedules/client/Client.d.ts +29 -0
  48. package/dist/cjs/api/resources/messages/resources/schedules/client/Client.js +136 -0
  49. package/dist/cjs/api/resources/messages/resources/schedules/client/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/messages/resources/schedules/client/index.js +17 -0
  51. package/dist/cjs/api/resources/messages/resources/schedules/client/requests/ListScheduledMessagesParams.d.ts +27 -0
  52. package/dist/cjs/api/resources/messages/resources/schedules/client/requests/ListScheduledMessagesParams.js +17 -0
  53. package/dist/cjs/api/resources/messages/resources/schedules/client/requests/index.d.ts +1 -0
  54. package/dist/cjs/api/resources/messages/resources/schedules/client/requests/index.js +2 -0
  55. package/dist/cjs/api/resources/messages/resources/schedules/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/messages/resources/schedules/index.js +17 -0
  57. package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +15 -0
  58. package/dist/cjs/api/resources/phoneNumbers/client/Client.js +70 -0
  59. package/dist/cjs/api/resources/phoneNumbers/client/requests/ListPhoneNumbersParams.d.ts +8 -0
  60. package/dist/cjs/api/resources/phoneNumbers/client/requests/ListPhoneNumbersParams.js +3 -0
  61. package/dist/cjs/api/resources/phoneNumbers/client/requests/index.d.ts +1 -0
  62. package/dist/cjs/api/resources/rcs/client/Client.d.ts +6 -0
  63. package/dist/cjs/api/resources/rcs/client/Client.js +12 -2
  64. package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.ts +2 -0
  65. package/dist/cjs/api/resources/rcs/resources/agents/client/Client.d.ts +29 -0
  66. package/dist/cjs/api/resources/rcs/resources/agents/client/Client.js +133 -0
  67. package/dist/cjs/api/resources/rcs/resources/agents/client/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/rcs/resources/agents/client/index.js +17 -0
  69. package/dist/cjs/api/resources/rcs/resources/agents/client/requests/ListAgentsParams.d.ts +20 -0
  70. package/dist/cjs/api/resources/rcs/resources/agents/client/requests/ListAgentsParams.js +12 -0
  71. package/dist/cjs/api/resources/rcs/resources/agents/client/requests/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/rcs/resources/agents/client/requests/index.js +2 -0
  73. package/dist/cjs/api/resources/rcs/resources/agents/index.d.ts +1 -0
  74. package/dist/cjs/api/resources/rcs/resources/agents/index.js +17 -0
  75. package/dist/cjs/api/resources/rcs/resources/index.d.ts +4 -0
  76. package/dist/cjs/api/resources/rcs/resources/index.js +5 -1
  77. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/Client.d.ts +29 -0
  78. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/Client.js +133 -0
  79. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/index.js +17 -0
  81. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/requests/ListTestNumbersParams.d.ts +23 -0
  82. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/requests/ListTestNumbersParams.js +13 -0
  83. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/requests/index.d.ts +1 -0
  84. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/client/requests/index.js +2 -0
  85. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/index.d.ts +1 -0
  86. package/dist/cjs/api/resources/rcs/resources/whitelistedNumbers/index.js +17 -0
  87. package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +15 -0
  88. package/dist/cjs/api/resources/tools/resources/url/client/Client.js +70 -0
  89. package/dist/cjs/api/resources/tools/resources/url/client/requests/ListLinksParams.d.ts +10 -0
  90. package/dist/cjs/api/resources/tools/resources/url/client/requests/ListLinksParams.js +3 -0
  91. package/dist/cjs/api/resources/tools/resources/url/client/requests/index.d.ts +1 -0
  92. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +15 -0
  93. package/dist/cjs/api/resources/webhooks/client/Client.js +70 -0
  94. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksParams.d.ts +19 -0
  95. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksParams.js +12 -0
  96. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -0
  97. package/dist/cjs/api/types/AgentSummary.d.ts +94 -0
  98. package/dist/cjs/api/types/AgentSummary.js +22 -0
  99. package/dist/cjs/api/types/AudienceSummary.d.ts +12 -0
  100. package/dist/cjs/api/types/AudienceSummary.js +3 -0
  101. package/dist/cjs/api/types/BlastDetails.d.ts +1 -1
  102. package/dist/cjs/api/types/BlastSummary.d.ts +27 -0
  103. package/dist/cjs/api/types/BlastSummary.js +13 -0
  104. package/dist/cjs/api/types/DlcCampaignSummary.d.ts +26 -0
  105. package/dist/cjs/api/types/DlcCampaignSummary.js +14 -0
  106. package/dist/cjs/api/types/FallbackMessage.d.ts +6 -5
  107. package/dist/cjs/api/types/LinkSummary.d.ts +10 -0
  108. package/dist/cjs/api/types/LinkSummary.js +3 -0
  109. package/dist/cjs/api/types/ListAgentsResponse.d.ts +6 -0
  110. package/dist/cjs/api/types/ListAgentsResponse.js +3 -0
  111. package/dist/cjs/api/types/ListAudiencesResponse.d.ts +6 -0
  112. package/dist/cjs/api/types/ListAudiencesResponse.js +3 -0
  113. package/dist/cjs/api/types/ListBlastsResponse.d.ts +6 -0
  114. package/dist/cjs/api/types/ListBlastsResponse.js +3 -0
  115. package/dist/cjs/api/types/ListBrandsResponse.d.ts +6 -0
  116. package/dist/cjs/api/types/ListBrandsResponse.js +3 -0
  117. package/dist/cjs/api/types/ListContactsResponse.d.ts +6 -0
  118. package/dist/cjs/api/types/ListContactsResponse.js +3 -0
  119. package/dist/cjs/api/types/ListDlcCampaignsResponse.d.ts +6 -0
  120. package/dist/cjs/api/types/ListDlcCampaignsResponse.js +3 -0
  121. package/dist/cjs/api/types/ListLinksResponse.d.ts +6 -0
  122. package/dist/cjs/api/types/ListLinksResponse.js +3 -0
  123. package/dist/cjs/api/types/ListMessagesResponse.d.ts +6 -0
  124. package/dist/cjs/api/types/ListMessagesResponse.js +3 -0
  125. package/dist/cjs/api/types/ListPhoneNumbersResponse.d.ts +6 -0
  126. package/dist/cjs/api/types/ListPhoneNumbersResponse.js +3 -0
  127. package/dist/cjs/api/types/ListRcsCampaignsResponse.d.ts +6 -0
  128. package/dist/cjs/api/types/ListRcsCampaignsResponse.js +3 -0
  129. package/dist/cjs/api/types/ListScheduledMessagesResponse.d.ts +6 -0
  130. package/dist/cjs/api/types/ListScheduledMessagesResponse.js +3 -0
  131. package/dist/cjs/api/types/ListTestNumbersResponse.d.ts +6 -0
  132. package/dist/cjs/api/types/ListTestNumbersResponse.js +3 -0
  133. package/dist/cjs/api/types/ListTollFreeCampaignsResponse.d.ts +6 -0
  134. package/dist/cjs/api/types/ListTollFreeCampaignsResponse.js +3 -0
  135. package/dist/cjs/api/types/ListWebhooksResponse.d.ts +6 -0
  136. package/dist/cjs/api/types/ListWebhooksResponse.js +3 -0
  137. package/dist/cjs/api/types/Message.d.ts +0 -8
  138. package/dist/cjs/api/types/MessageEvent.d.ts +21 -14
  139. package/dist/cjs/api/types/MessageEvent.js +1 -1
  140. package/dist/cjs/api/types/MessageList.d.ts +1 -1
  141. package/dist/cjs/api/types/MessageSummary.d.ts +71 -0
  142. package/dist/cjs/api/types/MessageSummary.js +36 -0
  143. package/dist/cjs/api/types/{MessageWithReaction.d.ts → MessageWithReactions.d.ts} +7 -7
  144. package/dist/cjs/api/types/{MessageWithReaction.js → MessageWithReactions.js} +5 -5
  145. package/dist/cjs/api/types/OwnedPhoneNumber.d.ts +14 -0
  146. package/dist/cjs/api/types/OwnedPhoneNumber.js +3 -0
  147. package/dist/cjs/api/types/RcsCampaignSummary.d.ts +28 -0
  148. package/dist/cjs/api/types/RcsCampaignSummary.js +14 -0
  149. package/dist/cjs/api/types/ScheduledMessageSummary.d.ts +29 -0
  150. package/dist/cjs/api/types/ScheduledMessageSummary.js +13 -0
  151. package/dist/cjs/api/types/SentRichMessageFallbackMms.d.ts +4 -2
  152. package/dist/cjs/api/types/SentRichMessageFallbackSms.d.ts +4 -2
  153. package/dist/cjs/api/types/TollFreeCampaignSummary.d.ts +26 -0
  154. package/dist/cjs/api/types/TollFreeCampaignSummary.js +14 -0
  155. package/dist/cjs/api/types/WebhookSummary.d.ts +23 -0
  156. package/dist/cjs/api/types/WebhookSummary.js +13 -0
  157. package/dist/cjs/api/types/WhitelistedNumberSummary.d.ts +19 -0
  158. package/dist/cjs/api/types/WhitelistedNumberSummary.js +13 -0
  159. package/dist/cjs/api/types/index.d.ts +27 -1
  160. package/dist/cjs/api/types/index.js +27 -1
  161. package/dist/cjs/version.d.ts +1 -1
  162. package/dist/cjs/version.js +1 -1
  163. package/dist/esm/Client.mjs +2 -2
  164. package/dist/esm/api/resources/audiences/client/Client.d.mts +15 -0
  165. package/dist/esm/api/resources/audiences/client/Client.mjs +70 -0
  166. package/dist/esm/api/resources/audiences/client/requests/ListAudiencesParams.d.mts +10 -0
  167. package/dist/esm/api/resources/audiences/client/requests/index.d.mts +1 -0
  168. package/dist/esm/api/resources/brands/client/Client.d.mts +15 -0
  169. package/dist/esm/api/resources/brands/client/Client.mjs +70 -0
  170. package/dist/esm/api/resources/brands/client/requests/ListBrandsParams.d.mts +23 -0
  171. package/dist/esm/api/resources/brands/client/requests/ListBrandsParams.mjs +12 -0
  172. package/dist/esm/api/resources/brands/client/requests/index.d.mts +1 -0
  173. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +15 -0
  174. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +70 -0
  175. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/ListDlcCampaignsParams.d.mts +21 -0
  176. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/ListDlcCampaignsParams.mjs +10 -0
  177. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/index.d.mts +1 -0
  178. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +15 -0
  179. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +70 -0
  180. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/ListRcsCampaignsParams.d.mts +21 -0
  181. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/ListRcsCampaignsParams.mjs +10 -0
  182. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/index.d.mts +1 -0
  183. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +15 -0
  184. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +73 -0
  185. package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/ListTollFreeCampaignsParams.d.mts +21 -0
  186. package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/ListTollFreeCampaignsParams.mjs +10 -0
  187. package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/index.d.mts +1 -0
  188. package/dist/esm/api/resources/contacts/client/Client.d.mts +15 -0
  189. package/dist/esm/api/resources/contacts/client/Client.mjs +70 -0
  190. package/dist/esm/api/resources/contacts/client/requests/ListContactsParams.d.mts +16 -0
  191. package/dist/esm/api/resources/contacts/client/requests/index.d.mts +1 -0
  192. package/dist/esm/api/resources/messages/client/Client.d.mts +21 -0
  193. package/dist/esm/api/resources/messages/client/Client.mjs +80 -0
  194. package/dist/esm/api/resources/messages/client/requests/ListMessagesParams.d.mts +55 -0
  195. package/dist/esm/api/resources/messages/client/requests/ListMessagesParams.mjs +30 -0
  196. package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -0
  197. package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastRcs.d.mts +0 -2
  198. package/dist/esm/api/resources/messages/resources/blasts/client/Client.d.mts +29 -0
  199. package/dist/esm/api/resources/messages/resources/blasts/client/Client.mjs +96 -0
  200. package/dist/esm/api/resources/messages/resources/blasts/client/index.d.mts +1 -0
  201. package/dist/esm/api/resources/messages/resources/blasts/client/index.mjs +1 -0
  202. package/dist/esm/api/resources/messages/resources/blasts/client/requests/ListBlastsParams.d.mts +17 -0
  203. package/dist/esm/api/resources/messages/resources/blasts/client/requests/index.d.mts +1 -0
  204. package/dist/esm/api/resources/messages/resources/blasts/client/requests/index.mjs +1 -0
  205. package/dist/esm/api/resources/messages/resources/blasts/index.d.mts +1 -0
  206. package/dist/esm/api/resources/messages/resources/blasts/index.mjs +1 -0
  207. package/dist/esm/api/resources/messages/resources/index.d.mts +4 -0
  208. package/dist/esm/api/resources/messages/resources/index.mjs +4 -0
  209. package/dist/esm/api/resources/messages/resources/schedules/client/Client.d.mts +29 -0
  210. package/dist/esm/api/resources/messages/resources/schedules/client/Client.mjs +99 -0
  211. package/dist/esm/api/resources/messages/resources/schedules/client/index.d.mts +1 -0
  212. package/dist/esm/api/resources/messages/resources/schedules/client/index.mjs +1 -0
  213. package/dist/esm/api/resources/messages/resources/schedules/client/requests/ListScheduledMessagesParams.d.mts +27 -0
  214. package/dist/esm/api/resources/messages/resources/schedules/client/requests/ListScheduledMessagesParams.mjs +14 -0
  215. package/dist/esm/api/resources/messages/resources/schedules/client/requests/index.d.mts +1 -0
  216. package/dist/esm/api/resources/messages/resources/schedules/client/requests/index.mjs +1 -0
  217. package/dist/esm/api/resources/messages/resources/schedules/index.d.mts +1 -0
  218. package/dist/esm/api/resources/messages/resources/schedules/index.mjs +1 -0
  219. package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +15 -0
  220. package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +70 -0
  221. package/dist/esm/api/resources/phoneNumbers/client/requests/ListPhoneNumbersParams.d.mts +8 -0
  222. package/dist/esm/api/resources/phoneNumbers/client/requests/ListPhoneNumbersParams.mjs +2 -0
  223. package/dist/esm/api/resources/phoneNumbers/client/requests/index.d.mts +1 -0
  224. package/dist/esm/api/resources/rcs/client/Client.d.mts +6 -0
  225. package/dist/esm/api/resources/rcs/client/Client.mjs +10 -0
  226. package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.mts +2 -0
  227. package/dist/esm/api/resources/rcs/resources/agents/client/Client.d.mts +29 -0
  228. package/dist/esm/api/resources/rcs/resources/agents/client/Client.mjs +96 -0
  229. package/dist/esm/api/resources/rcs/resources/agents/client/index.d.mts +1 -0
  230. package/dist/esm/api/resources/rcs/resources/agents/client/index.mjs +1 -0
  231. package/dist/esm/api/resources/rcs/resources/agents/client/requests/ListAgentsParams.d.mts +20 -0
  232. package/dist/esm/api/resources/rcs/resources/agents/client/requests/ListAgentsParams.mjs +9 -0
  233. package/dist/esm/api/resources/rcs/resources/agents/client/requests/index.d.mts +1 -0
  234. package/dist/esm/api/resources/rcs/resources/agents/client/requests/index.mjs +1 -0
  235. package/dist/esm/api/resources/rcs/resources/agents/index.d.mts +1 -0
  236. package/dist/esm/api/resources/rcs/resources/agents/index.mjs +1 -0
  237. package/dist/esm/api/resources/rcs/resources/index.d.mts +4 -0
  238. package/dist/esm/api/resources/rcs/resources/index.mjs +4 -0
  239. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/Client.d.mts +29 -0
  240. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/Client.mjs +96 -0
  241. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/index.d.mts +1 -0
  242. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/index.mjs +1 -0
  243. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/requests/ListTestNumbersParams.d.mts +23 -0
  244. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/requests/ListTestNumbersParams.mjs +10 -0
  245. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/requests/index.d.mts +1 -0
  246. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/client/requests/index.mjs +1 -0
  247. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/index.d.mts +1 -0
  248. package/dist/esm/api/resources/rcs/resources/whitelistedNumbers/index.mjs +1 -0
  249. package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +15 -0
  250. package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +70 -0
  251. package/dist/esm/api/resources/tools/resources/url/client/requests/ListLinksParams.d.mts +10 -0
  252. package/dist/esm/api/resources/tools/resources/url/client/requests/ListLinksParams.mjs +2 -0
  253. package/dist/esm/api/resources/tools/resources/url/client/requests/index.d.mts +1 -0
  254. package/dist/esm/api/resources/webhooks/client/Client.d.mts +15 -0
  255. package/dist/esm/api/resources/webhooks/client/Client.mjs +70 -0
  256. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksParams.d.mts +19 -0
  257. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksParams.mjs +9 -0
  258. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
  259. package/dist/esm/api/types/AgentSummary.d.mts +94 -0
  260. package/dist/esm/api/types/AgentSummary.mjs +19 -0
  261. package/dist/esm/api/types/AudienceSummary.d.mts +12 -0
  262. package/dist/esm/api/types/AudienceSummary.mjs +2 -0
  263. package/dist/esm/api/types/BlastDetails.d.mts +1 -1
  264. package/dist/esm/api/types/BlastSummary.d.mts +27 -0
  265. package/dist/esm/api/types/BlastSummary.mjs +10 -0
  266. package/dist/esm/api/types/DlcCampaignSummary.d.mts +26 -0
  267. package/dist/esm/api/types/DlcCampaignSummary.mjs +11 -0
  268. package/dist/esm/api/types/FallbackMessage.d.mts +6 -5
  269. package/dist/esm/api/types/LinkSummary.d.mts +10 -0
  270. package/dist/esm/api/types/LinkSummary.mjs +2 -0
  271. package/dist/esm/api/types/ListAgentsResponse.d.mts +6 -0
  272. package/dist/esm/api/types/ListAgentsResponse.mjs +2 -0
  273. package/dist/esm/api/types/ListAudiencesResponse.d.mts +6 -0
  274. package/dist/esm/api/types/ListAudiencesResponse.mjs +2 -0
  275. package/dist/esm/api/types/ListBlastsResponse.d.mts +6 -0
  276. package/dist/esm/api/types/ListBlastsResponse.mjs +2 -0
  277. package/dist/esm/api/types/ListBrandsResponse.d.mts +6 -0
  278. package/dist/esm/api/types/ListBrandsResponse.mjs +2 -0
  279. package/dist/esm/api/types/ListContactsResponse.d.mts +6 -0
  280. package/dist/esm/api/types/ListContactsResponse.mjs +2 -0
  281. package/dist/esm/api/types/ListDlcCampaignsResponse.d.mts +6 -0
  282. package/dist/esm/api/types/ListDlcCampaignsResponse.mjs +2 -0
  283. package/dist/esm/api/types/ListLinksResponse.d.mts +6 -0
  284. package/dist/esm/api/types/ListLinksResponse.mjs +2 -0
  285. package/dist/esm/api/types/ListMessagesResponse.d.mts +6 -0
  286. package/dist/esm/api/types/ListMessagesResponse.mjs +2 -0
  287. package/dist/esm/api/types/ListPhoneNumbersResponse.d.mts +6 -0
  288. package/dist/esm/api/types/ListPhoneNumbersResponse.mjs +2 -0
  289. package/dist/esm/api/types/ListRcsCampaignsResponse.d.mts +6 -0
  290. package/dist/esm/api/types/ListRcsCampaignsResponse.mjs +2 -0
  291. package/dist/esm/api/types/ListScheduledMessagesResponse.d.mts +6 -0
  292. package/dist/esm/api/types/ListScheduledMessagesResponse.mjs +2 -0
  293. package/dist/esm/api/types/ListTestNumbersResponse.d.mts +6 -0
  294. package/dist/esm/api/types/ListTestNumbersResponse.mjs +2 -0
  295. package/dist/esm/api/types/ListTollFreeCampaignsResponse.d.mts +6 -0
  296. package/dist/esm/api/types/ListTollFreeCampaignsResponse.mjs +2 -0
  297. package/dist/esm/api/types/ListWebhooksResponse.d.mts +6 -0
  298. package/dist/esm/api/types/ListWebhooksResponse.mjs +2 -0
  299. package/dist/esm/api/types/Message.d.mts +0 -8
  300. package/dist/esm/api/types/MessageEvent.d.mts +21 -14
  301. package/dist/esm/api/types/MessageEvent.mjs +1 -1
  302. package/dist/esm/api/types/MessageList.d.mts +1 -1
  303. package/dist/esm/api/types/MessageSummary.d.mts +71 -0
  304. package/dist/esm/api/types/MessageSummary.mjs +33 -0
  305. package/dist/esm/api/types/{MessageWithReaction.d.mts → MessageWithReactions.d.mts} +7 -7
  306. package/dist/esm/api/types/{MessageWithReaction.mjs → MessageWithReactions.mjs} +4 -4
  307. package/dist/esm/api/types/OwnedPhoneNumber.d.mts +14 -0
  308. package/dist/esm/api/types/OwnedPhoneNumber.mjs +2 -0
  309. package/dist/esm/api/types/RcsCampaignSummary.d.mts +28 -0
  310. package/dist/esm/api/types/RcsCampaignSummary.mjs +11 -0
  311. package/dist/esm/api/types/ScheduledMessageSummary.d.mts +29 -0
  312. package/dist/esm/api/types/ScheduledMessageSummary.mjs +10 -0
  313. package/dist/esm/api/types/SentRichMessageFallbackMms.d.mts +4 -2
  314. package/dist/esm/api/types/SentRichMessageFallbackSms.d.mts +4 -2
  315. package/dist/esm/api/types/TollFreeCampaignSummary.d.mts +26 -0
  316. package/dist/esm/api/types/TollFreeCampaignSummary.mjs +11 -0
  317. package/dist/esm/api/types/WebhookSummary.d.mts +23 -0
  318. package/dist/esm/api/types/WebhookSummary.mjs +10 -0
  319. package/dist/esm/api/types/WhitelistedNumberSummary.d.mts +19 -0
  320. package/dist/esm/api/types/WhitelistedNumberSummary.mjs +10 -0
  321. package/dist/esm/api/types/index.d.mts +27 -1
  322. package/dist/esm/api/types/index.mjs +27 -1
  323. package/dist/esm/version.d.mts +1 -1
  324. package/dist/esm/version.mjs +1 -1
  325. package/package.json +1 -1
  326. package/reference.md +957 -71
  327. package/dist/cjs/api/types/AgentPrivacyPolicy.d.ts +0 -7
  328. package/dist/cjs/api/types/AgentTermsConditions.d.ts +0 -7
  329. package/dist/cjs/api/types/TestAgentDetails.d.ts +0 -19
  330. package/dist/esm/api/types/AgentPrivacyPolicy.d.mts +0 -7
  331. package/dist/esm/api/types/AgentTermsConditions.d.mts +0 -7
  332. package/dist/esm/api/types/TestAgentDetails.d.mts +0 -19
  333. /package/dist/cjs/api/{types/AgentPrivacyPolicy.js → resources/audiences/client/requests/ListAudiencesParams.js} +0 -0
  334. /package/dist/cjs/api/{types/AgentTermsConditions.js → resources/contacts/client/requests/ListContactsParams.js} +0 -0
  335. /package/dist/cjs/api/{types/TestAgentDetails.js → resources/messages/resources/blasts/client/requests/ListBlastsParams.js} +0 -0
  336. /package/dist/esm/api/{types/AgentPrivacyPolicy.mjs → resources/audiences/client/requests/ListAudiencesParams.mjs} +0 -0
  337. /package/dist/esm/api/{types/AgentTermsConditions.mjs → resources/contacts/client/requests/ListContactsParams.mjs} +0 -0
  338. /package/dist/esm/api/{types/TestAgentDetails.mjs → resources/messages/resources/blasts/client/requests/ListBlastsParams.mjs} +0 -0
@@ -53,8 +53,8 @@ class PinnacleClient {
53
53
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
54
54
  "X-Fern-Language": "JavaScript",
55
55
  "X-Fern-SDK-Name": "rcs-js",
56
- "X-Fern-SDK-Version": "2.0.13-rc.2",
57
- "User-Agent": "rcs-js/2.0.13-rc.2",
56
+ "X-Fern-SDK-Version": "2.0.14",
57
+ "User-Agent": "rcs-js/2.0.14",
58
58
  "X-Fern-Runtime": core.RUNTIME.type,
59
59
  "X-Fern-Runtime-Version": core.RUNTIME.version,
60
60
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -108,5 +108,20 @@ export declare class Audiences {
108
108
  */
109
109
  update(request: Pinnacle.UpdateAudienceParams, requestOptions?: Audiences.RequestOptions): core.HttpResponsePromise<Pinnacle.AudienceCountOnly>;
110
110
  private __update;
111
+ /**
112
+ * List all audiences with optional filtering and pagination. Results are sorted by creation date, newest first.
113
+ *
114
+ * @param {Pinnacle.ListAudiencesParams} request
115
+ * @param {Audiences.RequestOptions} requestOptions - Request-specific configuration.
116
+ *
117
+ * @throws {@link Pinnacle.BadRequestError}
118
+ * @throws {@link Pinnacle.UnauthorizedError}
119
+ * @throws {@link Pinnacle.InternalServerError}
120
+ *
121
+ * @example
122
+ * await client.audiences.list()
123
+ */
124
+ list(request?: Pinnacle.ListAudiencesParams, requestOptions?: Audiences.RequestOptions): core.HttpResponsePromise<Pinnacle.ListAudiencesResponse>;
125
+ private __list;
111
126
  protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
112
127
  }
@@ -393,6 +393,76 @@ class Audiences {
393
393
  }
394
394
  });
395
395
  }
396
+ /**
397
+ * List all audiences with optional filtering and pagination. Results are sorted by creation date, newest first.
398
+ *
399
+ * @param {Pinnacle.ListAudiencesParams} request
400
+ * @param {Audiences.RequestOptions} requestOptions - Request-specific configuration.
401
+ *
402
+ * @throws {@link Pinnacle.BadRequestError}
403
+ * @throws {@link Pinnacle.UnauthorizedError}
404
+ * @throws {@link Pinnacle.InternalServerError}
405
+ *
406
+ * @example
407
+ * await client.audiences.list()
408
+ */
409
+ list(request = {}, requestOptions) {
410
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
411
+ }
412
+ __list() {
413
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
414
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
415
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
416
+ const _response = yield core.fetcher({
417
+ 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, "audiences/list"),
418
+ method: "POST",
419
+ headers: _headers,
420
+ contentType: "application/json",
421
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
422
+ requestType: "json",
423
+ body: request,
424
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
425
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
426
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
427
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
428
+ logging: this._options.logging,
429
+ });
430
+ if (_response.ok) {
431
+ return { data: _response.body, rawResponse: _response.rawResponse };
432
+ }
433
+ if (_response.error.reason === "status-code") {
434
+ switch (_response.error.statusCode) {
435
+ case 400:
436
+ throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
437
+ case 401:
438
+ throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
439
+ case 500:
440
+ throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
441
+ default:
442
+ throw new errors.PinnacleError({
443
+ statusCode: _response.error.statusCode,
444
+ body: _response.error.body,
445
+ rawResponse: _response.rawResponse,
446
+ });
447
+ }
448
+ }
449
+ switch (_response.error.reason) {
450
+ case "non-json":
451
+ throw new errors.PinnacleError({
452
+ statusCode: _response.error.statusCode,
453
+ body: _response.error.rawBody,
454
+ rawResponse: _response.rawResponse,
455
+ });
456
+ case "timeout":
457
+ throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /audiences/list.");
458
+ case "unknown":
459
+ throw new errors.PinnacleError({
460
+ message: _response.error.errorMessage,
461
+ rawResponse: _response.rawResponse,
462
+ });
463
+ }
464
+ });
465
+ }
396
466
  _getCustomAuthorizationHeaders() {
397
467
  return __awaiter(this, void 0, void 0, function* () {
398
468
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListAudiencesParams {
6
+ pageIndex?: number;
7
+ pageSize?: number;
8
+ /** Filter audiences by name (partial match). */
9
+ name?: string;
10
+ }
@@ -1,4 +1,5 @@
1
1
  export type { AudiencesDeleteRequest } from "./AudiencesDeleteRequest.js";
2
2
  export type { AudiencesGetRequest } from "./AudiencesGetRequest.js";
3
3
  export type { CreateAudienceParams } from "./CreateAudienceParams.js";
4
+ export type { ListAudiencesParams } from "./ListAudiencesParams.js";
4
5
  export type { UpdateAudienceParams } from "./UpdateAudienceParams.js";
@@ -150,5 +150,20 @@ export declare class Brands {
150
150
  */
151
151
  vet(brandId: string, request: Pinnacle.VetBrandParams, requestOptions?: Brands.RequestOptions): core.HttpResponsePromise<Pinnacle.VettingResults>;
152
152
  private __vet;
153
+ /**
154
+ * List all brands with optional filtering and pagination. Results are sorted by creation date, newest first.
155
+ *
156
+ * @param {Pinnacle.ListBrandsParams} request
157
+ * @param {Brands.RequestOptions} requestOptions - Request-specific configuration.
158
+ *
159
+ * @throws {@link Pinnacle.BadRequestError}
160
+ * @throws {@link Pinnacle.UnauthorizedError}
161
+ * @throws {@link Pinnacle.InternalServerError}
162
+ *
163
+ * @example
164
+ * await client.brands.list()
165
+ */
166
+ list(request?: Pinnacle.ListBrandsParams, requestOptions?: Brands.RequestOptions): core.HttpResponsePromise<Pinnacle.ListBrandsResponse>;
167
+ private __list;
153
168
  protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
154
169
  }
@@ -548,6 +548,76 @@ class Brands {
548
548
  }
549
549
  });
550
550
  }
551
+ /**
552
+ * List all brands with optional filtering and pagination. Results are sorted by creation date, newest first.
553
+ *
554
+ * @param {Pinnacle.ListBrandsParams} request
555
+ * @param {Brands.RequestOptions} requestOptions - Request-specific configuration.
556
+ *
557
+ * @throws {@link Pinnacle.BadRequestError}
558
+ * @throws {@link Pinnacle.UnauthorizedError}
559
+ * @throws {@link Pinnacle.InternalServerError}
560
+ *
561
+ * @example
562
+ * await client.brands.list()
563
+ */
564
+ list(request = {}, requestOptions) {
565
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
566
+ }
567
+ __list() {
568
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
569
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
570
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
571
+ const _response = yield core.fetcher({
572
+ 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, "brands/list"),
573
+ method: "POST",
574
+ headers: _headers,
575
+ contentType: "application/json",
576
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
577
+ requestType: "json",
578
+ body: request,
579
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
580
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
581
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
582
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
583
+ logging: this._options.logging,
584
+ });
585
+ if (_response.ok) {
586
+ return { data: _response.body, rawResponse: _response.rawResponse };
587
+ }
588
+ if (_response.error.reason === "status-code") {
589
+ switch (_response.error.statusCode) {
590
+ case 400:
591
+ throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
592
+ case 401:
593
+ throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
594
+ case 500:
595
+ throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
596
+ default:
597
+ throw new errors.PinnacleError({
598
+ statusCode: _response.error.statusCode,
599
+ body: _response.error.body,
600
+ rawResponse: _response.rawResponse,
601
+ });
602
+ }
603
+ }
604
+ switch (_response.error.reason) {
605
+ case "non-json":
606
+ throw new errors.PinnacleError({
607
+ statusCode: _response.error.statusCode,
608
+ body: _response.error.rawBody,
609
+ rawResponse: _response.rawResponse,
610
+ });
611
+ case "timeout":
612
+ throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /brands/list.");
613
+ case "unknown":
614
+ throw new errors.PinnacleError({
615
+ message: _response.error.errorMessage,
616
+ rawResponse: _response.rawResponse,
617
+ });
618
+ }
619
+ });
620
+ }
551
621
  _getCustomAuthorizationHeaders() {
552
622
  return __awaiter(this, void 0, void 0, function* () {
553
623
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListBrandsParams {
6
+ pageIndex?: number;
7
+ pageSize?: number;
8
+ status?: ListBrandsParams.Status;
9
+ isArchived?: boolean;
10
+ /** Case-insensitive substring search on brand name. */
11
+ name?: string;
12
+ }
13
+ export declare namespace ListBrandsParams {
14
+ const Status: {
15
+ readonly Pending: "PENDING";
16
+ readonly Unverified: "UNVERIFIED";
17
+ readonly Verified: "VERIFIED";
18
+ readonly Vetted: "VETTED";
19
+ readonly Failed: "FAILED";
20
+ readonly Incomplete: "INCOMPLETE";
21
+ };
22
+ type Status = (typeof Status)[keyof typeof Status];
23
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListBrandsParams = void 0;
5
+ var ListBrandsParams;
6
+ (function (ListBrandsParams) {
7
+ ListBrandsParams.Status = {
8
+ Pending: "PENDING",
9
+ Unverified: "UNVERIFIED",
10
+ Verified: "VERIFIED",
11
+ Vetted: "VETTED",
12
+ Failed: "FAILED",
13
+ Incomplete: "INCOMPLETE",
14
+ };
15
+ })(ListBrandsParams || (exports.ListBrandsParams = ListBrandsParams = {}));
@@ -1,4 +1,5 @@
1
1
  export type { AutofillBrandParams } from "./AutofillBrandParams.js";
2
2
  export type { BrandsGetRequest } from "./BrandsGetRequest.js";
3
+ export type { ListBrandsParams } from "./ListBrandsParams.js";
3
4
  export type { UpsertBrandParams } from "./UpsertBrandParams.js";
4
5
  export type { VetBrandParams } from "./VetBrandParams.js";
@@ -147,5 +147,20 @@ export declare class Dlc {
147
147
  */
148
148
  validate(request: Pinnacle.ValidateCampaignParams, requestOptions?: Dlc.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignValidationResult>;
149
149
  private __validate;
150
+ /**
151
+ * List all 10DLC campaigns with optional filtering and pagination. Results are sorted by creation date, newest first.
152
+ *
153
+ * @param {Pinnacle.campaigns.ListDlcCampaignsParams} request
154
+ * @param {Dlc.RequestOptions} requestOptions - Request-specific configuration.
155
+ *
156
+ * @throws {@link Pinnacle.BadRequestError}
157
+ * @throws {@link Pinnacle.UnauthorizedError}
158
+ * @throws {@link Pinnacle.InternalServerError}
159
+ *
160
+ * @example
161
+ * await client.campaigns.dlc.list()
162
+ */
163
+ list(request?: Pinnacle.campaigns.ListDlcCampaignsParams, requestOptions?: Dlc.RequestOptions): core.HttpResponsePromise<Pinnacle.ListDlcCampaignsResponse>;
164
+ private __list;
150
165
  protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
151
166
  }
@@ -481,6 +481,76 @@ class Dlc {
481
481
  }
482
482
  });
483
483
  }
484
+ /**
485
+ * List all 10DLC campaigns with optional filtering and pagination. Results are sorted by creation date, newest first.
486
+ *
487
+ * @param {Pinnacle.campaigns.ListDlcCampaignsParams} request
488
+ * @param {Dlc.RequestOptions} requestOptions - Request-specific configuration.
489
+ *
490
+ * @throws {@link Pinnacle.BadRequestError}
491
+ * @throws {@link Pinnacle.UnauthorizedError}
492
+ * @throws {@link Pinnacle.InternalServerError}
493
+ *
494
+ * @example
495
+ * await client.campaigns.dlc.list()
496
+ */
497
+ list(request = {}, requestOptions) {
498
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
499
+ }
500
+ __list() {
501
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
502
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
503
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
504
+ const _response = yield core.fetcher({
505
+ 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, "campaigns/dlc/list"),
506
+ method: "POST",
507
+ headers: _headers,
508
+ contentType: "application/json",
509
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
510
+ requestType: "json",
511
+ body: request,
512
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
513
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
514
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
515
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
516
+ logging: this._options.logging,
517
+ });
518
+ if (_response.ok) {
519
+ return { data: _response.body, rawResponse: _response.rawResponse };
520
+ }
521
+ if (_response.error.reason === "status-code") {
522
+ switch (_response.error.statusCode) {
523
+ case 400:
524
+ throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
525
+ case 401:
526
+ throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
527
+ case 500:
528
+ throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
529
+ default:
530
+ throw new errors.PinnacleError({
531
+ statusCode: _response.error.statusCode,
532
+ body: _response.error.body,
533
+ rawResponse: _response.rawResponse,
534
+ });
535
+ }
536
+ }
537
+ switch (_response.error.reason) {
538
+ case "non-json":
539
+ throw new errors.PinnacleError({
540
+ statusCode: _response.error.statusCode,
541
+ body: _response.error.rawBody,
542
+ rawResponse: _response.rawResponse,
543
+ });
544
+ case "timeout":
545
+ throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /campaigns/dlc/list.");
546
+ case "unknown":
547
+ throw new errors.PinnacleError({
548
+ message: _response.error.errorMessage,
549
+ rawResponse: _response.rawResponse,
550
+ });
551
+ }
552
+ });
553
+ }
484
554
  _getCustomAuthorizationHeaders() {
485
555
  return __awaiter(this, void 0, void 0, function* () {
486
556
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListDlcCampaignsParams {
6
+ pageIndex?: number;
7
+ pageSize?: number;
8
+ status?: ListDlcCampaignsParams.Status;
9
+ brandId?: string;
10
+ /** Filter by campaign name (partial match, case-insensitive). */
11
+ name?: string;
12
+ }
13
+ export declare namespace ListDlcCampaignsParams {
14
+ const Status: {
15
+ readonly Incomplete: "INCOMPLETE";
16
+ readonly InReview: "IN REVIEW";
17
+ readonly Verified: "VERIFIED";
18
+ readonly Failed: "FAILED";
19
+ };
20
+ type Status = (typeof Status)[keyof typeof Status];
21
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListDlcCampaignsParams = void 0;
5
+ var ListDlcCampaignsParams;
6
+ (function (ListDlcCampaignsParams) {
7
+ ListDlcCampaignsParams.Status = {
8
+ Incomplete: "INCOMPLETE",
9
+ InReview: "IN REVIEW",
10
+ Verified: "VERIFIED",
11
+ Failed: "FAILED",
12
+ };
13
+ })(ListDlcCampaignsParams || (exports.ListDlcCampaignsParams = ListDlcCampaignsParams = {}));
@@ -1 +1,2 @@
1
+ export type { ListDlcCampaignsParams } from "./ListDlcCampaignsParams.js";
1
2
  export type { UpsertDlcCampaignParams } from "./UpsertDlcCampaignParams.js";
@@ -165,5 +165,20 @@ export declare class Rcs {
165
165
  */
166
166
  validate(request: Pinnacle.ValidateCampaignParams, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignValidationResult>;
167
167
  private __validate;
168
+ /**
169
+ * List all RCS campaigns with optional filtering and pagination. Results are sorted by creation date, newest first.
170
+ *
171
+ * @param {Pinnacle.campaigns.ListRcsCampaignsParams} request
172
+ * @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
173
+ *
174
+ * @throws {@link Pinnacle.BadRequestError}
175
+ * @throws {@link Pinnacle.UnauthorizedError}
176
+ * @throws {@link Pinnacle.InternalServerError}
177
+ *
178
+ * @example
179
+ * await client.campaigns.rcs.list()
180
+ */
181
+ list(request?: Pinnacle.campaigns.ListRcsCampaignsParams, requestOptions?: Rcs.RequestOptions): core.HttpResponsePromise<Pinnacle.ListRcsCampaignsResponse>;
182
+ private __list;
168
183
  protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
169
184
  }
@@ -498,6 +498,76 @@ class Rcs {
498
498
  }
499
499
  });
500
500
  }
501
+ /**
502
+ * List all RCS campaigns with optional filtering and pagination. Results are sorted by creation date, newest first.
503
+ *
504
+ * @param {Pinnacle.campaigns.ListRcsCampaignsParams} request
505
+ * @param {Rcs.RequestOptions} requestOptions - Request-specific configuration.
506
+ *
507
+ * @throws {@link Pinnacle.BadRequestError}
508
+ * @throws {@link Pinnacle.UnauthorizedError}
509
+ * @throws {@link Pinnacle.InternalServerError}
510
+ *
511
+ * @example
512
+ * await client.campaigns.rcs.list()
513
+ */
514
+ list(request = {}, requestOptions) {
515
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
516
+ }
517
+ __list() {
518
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
519
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
520
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
521
+ const _response = yield core.fetcher({
522
+ 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, "campaigns/rcs/list"),
523
+ method: "POST",
524
+ headers: _headers,
525
+ contentType: "application/json",
526
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
527
+ requestType: "json",
528
+ body: request,
529
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
530
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
531
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
532
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
533
+ logging: this._options.logging,
534
+ });
535
+ if (_response.ok) {
536
+ return { data: _response.body, rawResponse: _response.rawResponse };
537
+ }
538
+ if (_response.error.reason === "status-code") {
539
+ switch (_response.error.statusCode) {
540
+ case 400:
541
+ throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
542
+ case 401:
543
+ throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
544
+ case 500:
545
+ throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
546
+ default:
547
+ throw new errors.PinnacleError({
548
+ statusCode: _response.error.statusCode,
549
+ body: _response.error.body,
550
+ rawResponse: _response.rawResponse,
551
+ });
552
+ }
553
+ }
554
+ switch (_response.error.reason) {
555
+ case "non-json":
556
+ throw new errors.PinnacleError({
557
+ statusCode: _response.error.statusCode,
558
+ body: _response.error.rawBody,
559
+ rawResponse: _response.rawResponse,
560
+ });
561
+ case "timeout":
562
+ throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /campaigns/rcs/list.");
563
+ case "unknown":
564
+ throw new errors.PinnacleError({
565
+ message: _response.error.errorMessage,
566
+ rawResponse: _response.rawResponse,
567
+ });
568
+ }
569
+ });
570
+ }
501
571
  _getCustomAuthorizationHeaders() {
502
572
  return __awaiter(this, void 0, void 0, function* () {
503
573
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListRcsCampaignsParams {
6
+ pageIndex?: number;
7
+ pageSize?: number;
8
+ status?: ListRcsCampaignsParams.Status;
9
+ brandId?: string;
10
+ /** Filter by campaign name (partial match, case-insensitive). */
11
+ name?: string;
12
+ }
13
+ export declare namespace ListRcsCampaignsParams {
14
+ const Status: {
15
+ readonly Incomplete: "INCOMPLETE";
16
+ readonly InReview: "IN REVIEW";
17
+ readonly Verified: "VERIFIED";
18
+ readonly Failed: "FAILED";
19
+ };
20
+ type Status = (typeof Status)[keyof typeof Status];
21
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListRcsCampaignsParams = void 0;
5
+ var ListRcsCampaignsParams;
6
+ (function (ListRcsCampaignsParams) {
7
+ ListRcsCampaignsParams.Status = {
8
+ Incomplete: "INCOMPLETE",
9
+ InReview: "IN REVIEW",
10
+ Verified: "VERIFIED",
11
+ Failed: "FAILED",
12
+ };
13
+ })(ListRcsCampaignsParams || (exports.ListRcsCampaignsParams = ListRcsCampaignsParams = {}));
@@ -1 +1,2 @@
1
+ export type { ListRcsCampaignsParams } from "./ListRcsCampaignsParams.js";
1
2
  export type { UpsertRcsCampaignParams } from "./UpsertRcsCampaignParams.js";
@@ -140,5 +140,20 @@ export declare class TollFree {
140
140
  */
141
141
  validate(request: Pinnacle.ValidateCampaignParams, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.CampaignValidationResult>;
142
142
  private __validate;
143
+ /**
144
+ * List all toll-free campaigns with optional filtering and pagination. Results are sorted by creation date, newest first.
145
+ *
146
+ * @param {Pinnacle.campaigns.ListTollFreeCampaignsParams} request
147
+ * @param {TollFree.RequestOptions} requestOptions - Request-specific configuration.
148
+ *
149
+ * @throws {@link Pinnacle.BadRequestError}
150
+ * @throws {@link Pinnacle.UnauthorizedError}
151
+ * @throws {@link Pinnacle.InternalServerError}
152
+ *
153
+ * @example
154
+ * await client.campaigns.tollFree.list()
155
+ */
156
+ list(request?: Pinnacle.campaigns.ListTollFreeCampaignsParams, requestOptions?: TollFree.RequestOptions): core.HttpResponsePromise<Pinnacle.ListTollFreeCampaignsResponse>;
157
+ private __list;
143
158
  protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
144
159
  }