@zavudev/sdk 0.30.0 → 0.38.0

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 (305) hide show
  1. package/CHANGELOG.md +124 -0
  2. package/client.d.mts +28 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +28 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +25 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +25 -1
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/env.js +2 -2
  11. package/internal/utils/env.js.map +1 -1
  12. package/internal/utils/env.mjs +2 -2
  13. package/internal/utils/env.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/balance.d.mts +33 -0
  16. package/resources/balance.d.mts.map +1 -0
  17. package/resources/balance.d.ts +33 -0
  18. package/resources/balance.d.ts.map +1 -0
  19. package/resources/balance.js +16 -0
  20. package/resources/balance.js.map +1 -0
  21. package/resources/balance.mjs +12 -0
  22. package/resources/balance.mjs.map +1 -0
  23. package/resources/broadcasts/broadcasts.d.mts +31 -1
  24. package/resources/broadcasts/broadcasts.d.mts.map +1 -1
  25. package/resources/broadcasts/broadcasts.d.ts +31 -1
  26. package/resources/broadcasts/broadcasts.d.ts.map +1 -1
  27. package/resources/broadcasts/broadcasts.js +28 -0
  28. package/resources/broadcasts/broadcasts.js.map +1 -1
  29. package/resources/broadcasts/broadcasts.mjs +28 -0
  30. package/resources/broadcasts/broadcasts.mjs.map +1 -1
  31. package/resources/broadcasts/index.d.mts +1 -1
  32. package/resources/broadcasts/index.d.mts.map +1 -1
  33. package/resources/broadcasts/index.d.ts +1 -1
  34. package/resources/broadcasts/index.d.ts.map +1 -1
  35. package/resources/broadcasts/index.js.map +1 -1
  36. package/resources/broadcasts/index.mjs.map +1 -1
  37. package/resources/contacts/channels.d.mts +127 -0
  38. package/resources/contacts/channels.d.mts.map +1 -0
  39. package/resources/contacts/channels.d.ts +127 -0
  40. package/resources/contacts/channels.d.ts.map +1 -0
  41. package/resources/contacts/channels.js +76 -0
  42. package/resources/contacts/channels.js.map +1 -0
  43. package/resources/contacts/channels.mjs +72 -0
  44. package/resources/contacts/channels.mjs.map +1 -0
  45. package/resources/contacts/contacts.d.mts +262 -0
  46. package/resources/contacts/contacts.d.mts.map +1 -0
  47. package/resources/contacts/contacts.d.ts +262 -0
  48. package/resources/contacts/contacts.d.ts.map +1 -0
  49. package/resources/contacts/contacts.js +118 -0
  50. package/resources/contacts/contacts.js.map +1 -0
  51. package/resources/contacts/contacts.mjs +113 -0
  52. package/resources/contacts/contacts.mjs.map +1 -0
  53. package/resources/contacts/index.d.mts +3 -0
  54. package/resources/contacts/index.d.mts.map +1 -0
  55. package/resources/contacts/index.d.ts +3 -0
  56. package/resources/contacts/index.d.ts.map +1 -0
  57. package/resources/contacts/index.js +9 -0
  58. package/resources/contacts/index.js.map +1 -0
  59. package/resources/contacts/index.mjs +4 -0
  60. package/resources/contacts/index.mjs.map +1 -0
  61. package/resources/contacts.d.mts +1 -144
  62. package/resources/contacts.d.mts.map +1 -1
  63. package/resources/contacts.d.ts +1 -144
  64. package/resources/contacts.d.ts.map +1 -1
  65. package/resources/contacts.js +2 -31
  66. package/resources/contacts.js.map +1 -1
  67. package/resources/contacts.mjs +1 -29
  68. package/resources/contacts.mjs.map +1 -1
  69. package/resources/exports.d.mts +101 -0
  70. package/resources/exports.d.mts.map +1 -0
  71. package/resources/exports.d.ts +101 -0
  72. package/resources/exports.d.ts.map +1 -0
  73. package/resources/exports.js +53 -0
  74. package/resources/exports.js.map +1 -0
  75. package/resources/exports.mjs +49 -0
  76. package/resources/exports.mjs.map +1 -0
  77. package/resources/index.d.mts +10 -2
  78. package/resources/index.d.mts.map +1 -1
  79. package/resources/index.d.ts +10 -2
  80. package/resources/index.d.ts.map +1 -1
  81. package/resources/index.js +18 -2
  82. package/resources/index.js.map +1 -1
  83. package/resources/index.mjs +9 -1
  84. package/resources/index.mjs.map +1 -1
  85. package/resources/invitations.d.mts +133 -0
  86. package/resources/invitations.d.mts.map +1 -0
  87. package/resources/invitations.d.ts +133 -0
  88. package/resources/invitations.d.ts.map +1 -0
  89. package/resources/invitations.js +67 -0
  90. package/resources/invitations.js.map +1 -0
  91. package/resources/invitations.mjs +63 -0
  92. package/resources/invitations.mjs.map +1 -0
  93. package/resources/messages.d.mts +37 -4
  94. package/resources/messages.d.mts.map +1 -1
  95. package/resources/messages.d.ts +37 -4
  96. package/resources/messages.d.ts.map +1 -1
  97. package/resources/number-10dlc/brands.d.mts +258 -0
  98. package/resources/number-10dlc/brands.d.mts.map +1 -0
  99. package/resources/number-10dlc/brands.d.ts +258 -0
  100. package/resources/number-10dlc/brands.d.ts.map +1 -0
  101. package/resources/number-10dlc/brands.js +132 -0
  102. package/resources/number-10dlc/brands.js.map +1 -0
  103. package/resources/number-10dlc/brands.mjs +128 -0
  104. package/resources/number-10dlc/brands.mjs.map +1 -0
  105. package/resources/number-10dlc/campaigns/campaigns.d.mts +223 -0
  106. package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -0
  107. package/resources/number-10dlc/campaigns/campaigns.d.ts +223 -0
  108. package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -0
  109. package/resources/number-10dlc/campaigns/campaigns.js +133 -0
  110. package/resources/number-10dlc/campaigns/campaigns.js.map +1 -0
  111. package/resources/number-10dlc/campaigns/campaigns.mjs +128 -0
  112. package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -0
  113. package/resources/number-10dlc/campaigns/index.d.mts +3 -0
  114. package/resources/number-10dlc/campaigns/index.d.mts.map +1 -0
  115. package/resources/number-10dlc/campaigns/index.d.ts +3 -0
  116. package/resources/number-10dlc/campaigns/index.d.ts.map +1 -0
  117. package/resources/number-10dlc/campaigns/index.js +9 -0
  118. package/resources/number-10dlc/campaigns/index.js.map +1 -0
  119. package/resources/number-10dlc/campaigns/index.mjs +4 -0
  120. package/resources/number-10dlc/campaigns/index.mjs.map +1 -0
  121. package/resources/number-10dlc/campaigns/phone-numbers.d.mts +79 -0
  122. package/resources/number-10dlc/campaigns/phone-numbers.d.mts.map +1 -0
  123. package/resources/number-10dlc/campaigns/phone-numbers.d.ts +79 -0
  124. package/resources/number-10dlc/campaigns/phone-numbers.d.ts.map +1 -0
  125. package/resources/number-10dlc/campaigns/phone-numbers.js +59 -0
  126. package/resources/number-10dlc/campaigns/phone-numbers.js.map +1 -0
  127. package/resources/number-10dlc/campaigns/phone-numbers.mjs +55 -0
  128. package/resources/number-10dlc/campaigns/phone-numbers.mjs.map +1 -0
  129. package/resources/number-10dlc/campaigns.d.mts +2 -0
  130. package/resources/number-10dlc/campaigns.d.mts.map +1 -0
  131. package/resources/number-10dlc/campaigns.d.ts +2 -0
  132. package/resources/number-10dlc/campaigns.d.ts.map +1 -0
  133. package/resources/number-10dlc/campaigns.js +6 -0
  134. package/resources/number-10dlc/campaigns.js.map +1 -0
  135. package/resources/number-10dlc/campaigns.mjs +3 -0
  136. package/resources/number-10dlc/campaigns.mjs.map +1 -0
  137. package/resources/number-10dlc/index.d.mts +4 -0
  138. package/resources/number-10dlc/index.d.mts.map +1 -0
  139. package/resources/number-10dlc/index.d.ts +4 -0
  140. package/resources/number-10dlc/index.d.ts.map +1 -0
  141. package/resources/number-10dlc/index.js +11 -0
  142. package/resources/number-10dlc/index.js.map +1 -0
  143. package/resources/number-10dlc/index.mjs +5 -0
  144. package/resources/number-10dlc/index.mjs.map +1 -0
  145. package/resources/number-10dlc/number-10dlc.d.mts +14 -0
  146. package/resources/number-10dlc/number-10dlc.d.mts.map +1 -0
  147. package/resources/number-10dlc/number-10dlc.d.ts +14 -0
  148. package/resources/number-10dlc/number-10dlc.d.ts.map +1 -0
  149. package/resources/number-10dlc/number-10dlc.js +21 -0
  150. package/resources/number-10dlc/number-10dlc.js.map +1 -0
  151. package/resources/number-10dlc/number-10dlc.mjs +16 -0
  152. package/resources/number-10dlc/number-10dlc.mjs.map +1 -0
  153. package/resources/number-10dlc.d.mts +2 -0
  154. package/resources/number-10dlc.d.mts.map +1 -0
  155. package/resources/number-10dlc.d.ts +2 -0
  156. package/resources/number-10dlc.d.ts.map +1 -0
  157. package/resources/number-10dlc.js +6 -0
  158. package/resources/number-10dlc.js.map +1 -0
  159. package/resources/number-10dlc.mjs +3 -0
  160. package/resources/number-10dlc.mjs.map +1 -0
  161. package/resources/plan.d.mts +43 -0
  162. package/resources/plan.d.mts.map +1 -0
  163. package/resources/plan.d.ts +43 -0
  164. package/resources/plan.d.ts.map +1 -0
  165. package/resources/plan.js +16 -0
  166. package/resources/plan.js.map +1 -0
  167. package/resources/plan.mjs +12 -0
  168. package/resources/plan.mjs.map +1 -0
  169. package/resources/senders/agent/agent.d.mts +4 -4
  170. package/resources/senders/agent/agent.d.mts.map +1 -1
  171. package/resources/senders/agent/agent.d.ts +4 -4
  172. package/resources/senders/agent/agent.d.ts.map +1 -1
  173. package/resources/senders/agent/agent.js.map +1 -1
  174. package/resources/senders/agent/agent.mjs.map +1 -1
  175. package/resources/senders/agent/flows.d.mts +40 -114
  176. package/resources/senders/agent/flows.d.mts.map +1 -1
  177. package/resources/senders/agent/flows.d.ts +40 -114
  178. package/resources/senders/agent/flows.d.ts.map +1 -1
  179. package/resources/senders/agent/index.d.mts +2 -2
  180. package/resources/senders/agent/index.d.mts.map +1 -1
  181. package/resources/senders/agent/index.d.ts +2 -2
  182. package/resources/senders/agent/index.d.ts.map +1 -1
  183. package/resources/senders/agent/index.js.map +1 -1
  184. package/resources/senders/agent/index.mjs.map +1 -1
  185. package/resources/senders/agent/tools.d.mts +15 -47
  186. package/resources/senders/agent/tools.d.mts.map +1 -1
  187. package/resources/senders/agent/tools.d.ts +15 -47
  188. package/resources/senders/agent/tools.d.ts.map +1 -1
  189. package/resources/senders/index.d.mts +1 -0
  190. package/resources/senders/index.d.mts.map +1 -1
  191. package/resources/senders/index.d.ts +1 -0
  192. package/resources/senders/index.d.ts.map +1 -1
  193. package/resources/senders/index.js +3 -1
  194. package/resources/senders/index.js.map +1 -1
  195. package/resources/senders/index.mjs +1 -0
  196. package/resources/senders/index.mjs.map +1 -1
  197. package/resources/senders/senders.d.mts +17 -1
  198. package/resources/senders/senders.d.mts.map +1 -1
  199. package/resources/senders/senders.d.ts +17 -1
  200. package/resources/senders/senders.d.ts.map +1 -1
  201. package/resources/senders/senders.js +4 -0
  202. package/resources/senders/senders.js.map +1 -1
  203. package/resources/senders/senders.mjs +4 -0
  204. package/resources/senders/senders.mjs.map +1 -1
  205. package/resources/senders/whatsapp-sync.d.mts +134 -0
  206. package/resources/senders/whatsapp-sync.d.mts.map +1 -0
  207. package/resources/senders/whatsapp-sync.d.ts +134 -0
  208. package/resources/senders/whatsapp-sync.d.ts.map +1 -0
  209. package/resources/senders/whatsapp-sync.js +56 -0
  210. package/resources/senders/whatsapp-sync.js.map +1 -0
  211. package/resources/senders/whatsapp-sync.mjs +52 -0
  212. package/resources/senders/whatsapp-sync.mjs.map +1 -0
  213. package/resources/sub-accounts/api-keys.d.mts +85 -0
  214. package/resources/sub-accounts/api-keys.d.mts.map +1 -0
  215. package/resources/sub-accounts/api-keys.d.ts +85 -0
  216. package/resources/sub-accounts/api-keys.d.ts.map +1 -0
  217. package/resources/sub-accounts/api-keys.js +53 -0
  218. package/resources/sub-accounts/api-keys.js.map +1 -0
  219. package/resources/sub-accounts/api-keys.mjs +49 -0
  220. package/resources/sub-accounts/api-keys.mjs.map +1 -0
  221. package/resources/sub-accounts/index.d.mts +3 -0
  222. package/resources/sub-accounts/index.d.mts.map +1 -0
  223. package/resources/sub-accounts/index.d.ts +3 -0
  224. package/resources/sub-accounts/index.d.ts.map +1 -0
  225. package/resources/sub-accounts/index.js +9 -0
  226. package/resources/sub-accounts/index.js.map +1 -0
  227. package/resources/sub-accounts/index.mjs +4 -0
  228. package/resources/sub-accounts/index.mjs.map +1 -0
  229. package/resources/sub-accounts/sub-accounts.d.mts +168 -0
  230. package/resources/sub-accounts/sub-accounts.d.mts.map +1 -0
  231. package/resources/sub-accounts/sub-accounts.d.ts +168 -0
  232. package/resources/sub-accounts/sub-accounts.d.ts.map +1 -0
  233. package/resources/sub-accounts/sub-accounts.js +94 -0
  234. package/resources/sub-accounts/sub-accounts.js.map +1 -0
  235. package/resources/sub-accounts/sub-accounts.mjs +89 -0
  236. package/resources/sub-accounts/sub-accounts.mjs.map +1 -0
  237. package/resources/sub-accounts.d.mts +2 -0
  238. package/resources/sub-accounts.d.mts.map +1 -0
  239. package/resources/sub-accounts.d.ts +2 -0
  240. package/resources/sub-accounts.d.ts.map +1 -0
  241. package/resources/sub-accounts.js +6 -0
  242. package/resources/sub-accounts.js.map +1 -0
  243. package/resources/sub-accounts.mjs +3 -0
  244. package/resources/sub-accounts.mjs.map +1 -0
  245. package/resources/templates.d.mts +42 -2
  246. package/resources/templates.d.mts.map +1 -1
  247. package/resources/templates.d.ts +42 -2
  248. package/resources/templates.d.ts.map +1 -1
  249. package/resources/urls.d.mts +88 -0
  250. package/resources/urls.d.mts.map +1 -0
  251. package/resources/urls.d.ts +88 -0
  252. package/resources/urls.d.ts.map +1 -0
  253. package/resources/urls.js +55 -0
  254. package/resources/urls.js.map +1 -0
  255. package/resources/urls.mjs +51 -0
  256. package/resources/urls.mjs.map +1 -0
  257. package/resources/usage.d.mts +36 -0
  258. package/resources/usage.d.mts.map +1 -0
  259. package/resources/usage.d.ts +36 -0
  260. package/resources/usage.d.ts.map +1 -0
  261. package/resources/usage.js +16 -0
  262. package/resources/usage.js.map +1 -0
  263. package/resources/usage.mjs +12 -0
  264. package/resources/usage.mjs.map +1 -0
  265. package/src/client.ts +130 -6
  266. package/src/internal/utils/env.ts +2 -2
  267. package/src/resources/balance.ts +43 -0
  268. package/src/resources/broadcasts/broadcasts.ts +40 -0
  269. package/src/resources/broadcasts/index.ts +2 -0
  270. package/src/resources/contacts/channels.ts +177 -0
  271. package/src/resources/contacts/contacts.ts +360 -0
  272. package/src/resources/contacts/index.ts +22 -0
  273. package/src/resources/contacts.ts +1 -196
  274. package/src/resources/exports.ts +141 -0
  275. package/src/resources/index.ts +51 -1
  276. package/src/resources/invitations.ts +188 -0
  277. package/src/resources/messages.ts +43 -3
  278. package/src/resources/number-10dlc/brands.ts +377 -0
  279. package/src/resources/number-10dlc/campaigns/campaigns.ts +349 -0
  280. package/src/resources/number-10dlc/campaigns/index.ts +23 -0
  281. package/src/resources/number-10dlc/campaigns/phone-numbers.ts +123 -0
  282. package/src/resources/number-10dlc/campaigns.ts +3 -0
  283. package/src/resources/number-10dlc/index.ts +30 -0
  284. package/src/resources/number-10dlc/number-10dlc.ts +71 -0
  285. package/src/resources/number-10dlc.ts +3 -0
  286. package/src/resources/plan.ts +62 -0
  287. package/src/resources/senders/agent/agent.ts +6 -0
  288. package/src/resources/senders/agent/flows.ts +44 -126
  289. package/src/resources/senders/agent/index.ts +3 -0
  290. package/src/resources/senders/agent/tools.ts +13 -50
  291. package/src/resources/senders/index.ts +9 -0
  292. package/src/resources/senders/senders.ts +38 -1
  293. package/src/resources/senders/whatsapp-sync.ts +175 -0
  294. package/src/resources/sub-accounts/api-keys.ts +126 -0
  295. package/src/resources/sub-accounts/index.ts +22 -0
  296. package/src/resources/sub-accounts/sub-accounts.ts +246 -0
  297. package/src/resources/sub-accounts.ts +3 -0
  298. package/src/resources/templates.ts +51 -2
  299. package/src/resources/urls.ts +125 -0
  300. package/src/resources/usage.ts +48 -0
  301. package/src/version.ts +1 -1
  302. package/version.d.mts +1 -1
  303. package/version.d.ts +1 -1
  304. package/version.js +1 -1
  305. package/version.mjs +1 -1
@@ -0,0 +1,49 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class Exports extends APIResource {
6
+ /**
7
+ * Create a new data export job. The export will be processed asynchronously and
8
+ * the download URL will be available when status is 'completed'. Export links
9
+ * expire after 24 hours.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const _export = await client.exports.create({
14
+ * dataTypes: ['messages', 'conversations'],
15
+ * dateFrom: '2024-01-01T00:00:00Z',
16
+ * dateTo: '2024-12-31T23:59:59Z',
17
+ * });
18
+ * ```
19
+ */
20
+ create(body, options) {
21
+ return this._client.post('/v1/exports', { body, ...options });
22
+ }
23
+ /**
24
+ * Get details of a specific data export, including download URL when completed.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const _export = await client.exports.retrieve('exportId');
29
+ * ```
30
+ */
31
+ retrieve(exportID, options) {
32
+ return this._client.get(path `/v1/exports/${exportID}`, options);
33
+ }
34
+ /**
35
+ * List data exports for this project.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * // Automatically fetches more pages as needed.
40
+ * for await (const dataExport of client.exports.list()) {
41
+ * // ...
42
+ * }
43
+ * ```
44
+ */
45
+ list(query = {}, options) {
46
+ return this._client.getAPIList('/v1/exports', (Cursor), { query, ...options });
47
+ }
48
+ }
49
+ //# sourceMappingURL=exports.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.mjs","sourceRoot":"","sources":["../src/resources/exports.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,MAAkB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
@@ -1,10 +1,18 @@
1
1
  export { Addresses, type Address, type AddressStatus, type AddressCreateResponse, type AddressRetrieveResponse, type AddressCreateParams, type AddressListParams, type AddressesCursor, } from "./addresses.mjs";
2
- export { Broadcasts, type Broadcast, type BroadcastChannel, type BroadcastContact, type BroadcastContactStatus, type BroadcastContent, type BroadcastMessageType, type BroadcastProgress, type BroadcastStatus, type BroadcastCreateResponse, type BroadcastRetrieveResponse, type BroadcastUpdateResponse, type BroadcastCancelResponse, type BroadcastRescheduleResponse, type BroadcastSendResponse, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastRescheduleParams, type BroadcastSendParams, type BroadcastContactsCursor, type BroadcastsCursor, } from "./broadcasts/broadcasts.mjs";
3
- export { Contacts, type Contact, type ContactUpdateParams, type ContactListParams, type ContactsCursor, } from "./contacts.mjs";
2
+ export { Balance, type BalanceRetrieveResponse } from "./balance.mjs";
3
+ export { Broadcasts, type Broadcast, type BroadcastChannel, type BroadcastContact, type BroadcastContactStatus, type BroadcastContent, type BroadcastMessageType, type BroadcastProgress, type BroadcastStatus, type BroadcastCreateResponse, type BroadcastRetrieveResponse, type BroadcastUpdateResponse, type BroadcastCancelResponse, type BroadcastEscalateReviewResponse, type BroadcastRescheduleResponse, type BroadcastRetryReviewResponse, type BroadcastSendResponse, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastRescheduleParams, type BroadcastSendParams, type BroadcastContactsCursor, type BroadcastsCursor, } from "./broadcasts/broadcasts.mjs";
4
+ export { Contacts, type Contact, type ContactChannel, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactMergeParams, type ContactsCursor, } from "./contacts/contacts.mjs";
5
+ export { Exports, type DataExport, type ExportCreateResponse, type ExportRetrieveResponse, type ExportCreateParams, type ExportListParams, type DataExportsCursor, } from "./exports.mjs";
4
6
  export { Introspect, type LineType, type IntrospectValidatePhoneResponse, type IntrospectValidatePhoneParams, } from "./introspect.mjs";
7
+ export { Invitations, type Invitation, type InvitationCreateResponse, type InvitationRetrieveResponse, type InvitationCancelResponse, type InvitationCreateParams, type InvitationListParams, type InvitationsCursor, } from "./invitations.mjs";
5
8
  export { Messages, type Channel, type Message, type MessageContent, type MessageResponse, type MessageStatus, type MessageType, type MessageListParams, type MessageReactParams, type MessageSendParams, type MessagesCursor, } from "./messages.mjs";
9
+ export { Number10dlc } from "./number-10dlc/number-10dlc.mjs";
6
10
  export { PhoneNumbers, type AvailablePhoneNumber, type OwnedPhoneNumber, type OwnedPhoneNumberPricing, type PhoneNumberCapabilities, type PhoneNumberPricing, type PhoneNumberStatus, type PhoneNumberType, type Requirement, type RequirementAcceptanceCriteria, type RequirementFieldType, type RequirementType, type PhoneNumberRetrieveResponse, type PhoneNumberUpdateResponse, type PhoneNumberPurchaseResponse, type PhoneNumberRequirementsResponse, type PhoneNumberSearchAvailableResponse, type PhoneNumberUpdateParams, type PhoneNumberListParams, type PhoneNumberPurchaseParams, type PhoneNumberRequirementsParams, type PhoneNumberSearchAvailableParams, type OwnedPhoneNumbersCursor, } from "./phone-numbers.mjs";
11
+ export { Plan, type PlanRetrieveResponse } from "./plan.mjs";
7
12
  export { RegulatoryDocuments, type RegulatoryDocument, type RegulatoryDocumentCreateResponse, type RegulatoryDocumentRetrieveResponse, type RegulatoryDocumentUploadURLResponse, type RegulatoryDocumentCreateParams, type RegulatoryDocumentListParams, type RegulatoryDocumentsCursor, } from "./regulatory-documents.mjs";
8
13
  export { Senders, type Sender, type SenderWebhook, type WebhookEvent, type WebhookSecretResponse, type WhatsappBusinessProfile, type WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse, type SenderCreateParams, type SenderUpdateParams, type SenderListParams, type SenderUpdateProfileParams, type SenderUploadProfilePictureParams, type SendersCursor, } from "./senders/senders.mjs";
14
+ export { SubAccounts, type SubAccount, type SubAccountCreateResponse, type SubAccountRetrieveResponse, type SubAccountUpdateResponse, type SubAccountDeactivateResponse, type SubAccountGetBalanceResponse, type SubAccountCreateParams, type SubAccountUpdateParams, type SubAccountListParams, type SubAccountsCursor, } from "./sub-accounts/sub-accounts.mjs";
9
15
  export { Templates, type Template, type WhatsappCategory, type TemplateCreateParams, type TemplateListParams, type TemplateSubmitParams, type TemplatesCursor, } from "./templates.mjs";
16
+ export { URLs, type VerifiedURL, type URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse, type URLListVerifiedParams, type URLSubmitForVerificationParams, type VerifiedURLsCursor, } from "./urls.mjs";
17
+ export { Usage, type UsageRetrieveResponse } from "./usage.mjs";
10
18
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KA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2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EAAE,OAAO,EAAE,KAAK,uBAAuB,EAAE;OACzC,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB;OACM,EAC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,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB;OACM,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,GACxB;OACM,EAAE,KAAK,EAAE,KAAK,qBAAqB,EAAE"}
@@ -1,10 +1,18 @@
1
1
  export { Addresses, type Address, type AddressStatus, type AddressCreateResponse, type AddressRetrieveResponse, type AddressCreateParams, type AddressListParams, type AddressesCursor, } from "./addresses.js";
2
- export { Broadcasts, type Broadcast, type BroadcastChannel, type BroadcastContact, type BroadcastContactStatus, type BroadcastContent, type BroadcastMessageType, type BroadcastProgress, type BroadcastStatus, type BroadcastCreateResponse, type BroadcastRetrieveResponse, type BroadcastUpdateResponse, type BroadcastCancelResponse, type BroadcastRescheduleResponse, type BroadcastSendResponse, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastRescheduleParams, type BroadcastSendParams, type BroadcastContactsCursor, type BroadcastsCursor, } from "./broadcasts/broadcasts.js";
3
- export { Contacts, type Contact, type ContactUpdateParams, type ContactListParams, type ContactsCursor, } from "./contacts.js";
2
+ export { Balance, type BalanceRetrieveResponse } from "./balance.js";
3
+ export { Broadcasts, type Broadcast, type BroadcastChannel, type BroadcastContact, type BroadcastContactStatus, type BroadcastContent, type BroadcastMessageType, type BroadcastProgress, type BroadcastStatus, type BroadcastCreateResponse, type BroadcastRetrieveResponse, type BroadcastUpdateResponse, type BroadcastCancelResponse, type BroadcastEscalateReviewResponse, type BroadcastRescheduleResponse, type BroadcastRetryReviewResponse, type BroadcastSendResponse, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastRescheduleParams, type BroadcastSendParams, type BroadcastContactsCursor, type BroadcastsCursor, } from "./broadcasts/broadcasts.js";
4
+ export { Contacts, type Contact, type ContactChannel, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactMergeParams, type ContactsCursor, } from "./contacts/contacts.js";
5
+ export { Exports, type DataExport, type ExportCreateResponse, type ExportRetrieveResponse, type ExportCreateParams, type ExportListParams, type DataExportsCursor, } from "./exports.js";
4
6
  export { Introspect, type LineType, type IntrospectValidatePhoneResponse, type IntrospectValidatePhoneParams, } from "./introspect.js";
7
+ export { Invitations, type Invitation, type InvitationCreateResponse, type InvitationRetrieveResponse, type InvitationCancelResponse, type InvitationCreateParams, type InvitationListParams, type InvitationsCursor, } from "./invitations.js";
5
8
  export { Messages, type Channel, type Message, type MessageContent, type MessageResponse, type MessageStatus, type MessageType, type MessageListParams, type MessageReactParams, type MessageSendParams, type MessagesCursor, } from "./messages.js";
9
+ export { Number10dlc } from "./number-10dlc/number-10dlc.js";
6
10
  export { PhoneNumbers, type AvailablePhoneNumber, type OwnedPhoneNumber, type OwnedPhoneNumberPricing, type PhoneNumberCapabilities, type PhoneNumberPricing, type PhoneNumberStatus, type PhoneNumberType, type Requirement, type RequirementAcceptanceCriteria, type RequirementFieldType, type RequirementType, type PhoneNumberRetrieveResponse, type PhoneNumberUpdateResponse, type PhoneNumberPurchaseResponse, type PhoneNumberRequirementsResponse, type PhoneNumberSearchAvailableResponse, type PhoneNumberUpdateParams, type PhoneNumberListParams, type PhoneNumberPurchaseParams, type PhoneNumberRequirementsParams, type PhoneNumberSearchAvailableParams, type OwnedPhoneNumbersCursor, } from "./phone-numbers.js";
11
+ export { Plan, type PlanRetrieveResponse } from "./plan.js";
7
12
  export { RegulatoryDocuments, type RegulatoryDocument, type RegulatoryDocumentCreateResponse, type RegulatoryDocumentRetrieveResponse, type RegulatoryDocumentUploadURLResponse, type RegulatoryDocumentCreateParams, type RegulatoryDocumentListParams, type RegulatoryDocumentsCursor, } from "./regulatory-documents.js";
8
13
  export { Senders, type Sender, type SenderWebhook, type WebhookEvent, type WebhookSecretResponse, type WhatsappBusinessProfile, type WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse, type SenderCreateParams, type SenderUpdateParams, type SenderListParams, type SenderUpdateProfileParams, type SenderUploadProfilePictureParams, type SendersCursor, } from "./senders/senders.js";
14
+ export { SubAccounts, type SubAccount, type SubAccountCreateResponse, type SubAccountRetrieveResponse, type SubAccountUpdateResponse, type SubAccountDeactivateResponse, type SubAccountGetBalanceResponse, type SubAccountCreateParams, type SubAccountUpdateParams, type SubAccountListParams, type SubAccountsCursor, } from "./sub-accounts/sub-accounts.js";
9
15
  export { Templates, type Template, type WhatsappCategory, type TemplateCreateParams, type TemplateListParams, type TemplateSubmitParams, type TemplatesCursor, } from "./templates.js";
16
+ export { URLs, type VerifiedURL, type URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse, type URLListVerifiedParams, type URLSubmitForVerificationParams, type VerifiedURLsCursor, } from "./urls.js";
17
+ export { Usage, type UsageRetrieveResponse } from "./usage.js";
10
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB;OACM,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB;OACM,EACL,YAAY,EACZ,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,GAC7B;OACM,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KA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K,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB;OACM,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,GACxB;OACM,EAAE,KAAK,EAAE,KAAK,qBAAqB,EAAE"}
@@ -1,23 +1,39 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Templates = exports.Senders = exports.RegulatoryDocuments = exports.PhoneNumbers = exports.Messages = exports.Introspect = exports.Contacts = exports.Broadcasts = exports.Addresses = void 0;
4
+ exports.Usage = exports.URLs = exports.Templates = exports.SubAccounts = exports.Senders = exports.RegulatoryDocuments = exports.Plan = exports.PhoneNumbers = exports.Number10dlc = exports.Messages = exports.Invitations = exports.Introspect = exports.Exports = exports.Contacts = exports.Broadcasts = exports.Balance = exports.Addresses = void 0;
5
5
  var addresses_1 = require("./addresses.js");
6
6
  Object.defineProperty(exports, "Addresses", { enumerable: true, get: function () { return addresses_1.Addresses; } });
7
+ var balance_1 = require("./balance.js");
8
+ Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return balance_1.Balance; } });
7
9
  var broadcasts_1 = require("./broadcasts/broadcasts.js");
8
10
  Object.defineProperty(exports, "Broadcasts", { enumerable: true, get: function () { return broadcasts_1.Broadcasts; } });
9
- var contacts_1 = require("./contacts.js");
11
+ var contacts_1 = require("./contacts/contacts.js");
10
12
  Object.defineProperty(exports, "Contacts", { enumerable: true, get: function () { return contacts_1.Contacts; } });
13
+ var exports_1 = require("./exports.js");
14
+ Object.defineProperty(exports, "Exports", { enumerable: true, get: function () { return exports_1.Exports; } });
11
15
  var introspect_1 = require("./introspect.js");
12
16
  Object.defineProperty(exports, "Introspect", { enumerable: true, get: function () { return introspect_1.Introspect; } });
17
+ var invitations_1 = require("./invitations.js");
18
+ Object.defineProperty(exports, "Invitations", { enumerable: true, get: function () { return invitations_1.Invitations; } });
13
19
  var messages_1 = require("./messages.js");
14
20
  Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } });
21
+ var number_10dlc_1 = require("./number-10dlc/number-10dlc.js");
22
+ Object.defineProperty(exports, "Number10dlc", { enumerable: true, get: function () { return number_10dlc_1.Number10dlc; } });
15
23
  var phone_numbers_1 = require("./phone-numbers.js");
16
24
  Object.defineProperty(exports, "PhoneNumbers", { enumerable: true, get: function () { return phone_numbers_1.PhoneNumbers; } });
25
+ var plan_1 = require("./plan.js");
26
+ Object.defineProperty(exports, "Plan", { enumerable: true, get: function () { return plan_1.Plan; } });
17
27
  var regulatory_documents_1 = require("./regulatory-documents.js");
18
28
  Object.defineProperty(exports, "RegulatoryDocuments", { enumerable: true, get: function () { return regulatory_documents_1.RegulatoryDocuments; } });
19
29
  var senders_1 = require("./senders/senders.js");
20
30
  Object.defineProperty(exports, "Senders", { enumerable: true, get: function () { return senders_1.Senders; } });
31
+ var sub_accounts_1 = require("./sub-accounts/sub-accounts.js");
32
+ Object.defineProperty(exports, "SubAccounts", { enumerable: true, get: function () { return sub_accounts_1.SubAccounts; } });
21
33
  var templates_1 = require("./templates.js");
22
34
  Object.defineProperty(exports, "Templates", { enumerable: true, get: function () { return templates_1.Templates; } });
35
+ var urls_1 = require("./urls.js");
36
+ Object.defineProperty(exports, "URLs", { enumerable: true, get: function () { return urls_1.URLs; } });
37
+ var usage_1 = require("./usage.js");
38
+ Object.defineProperty(exports, "Usage", { enumerable: true, get: function () { return usage_1.Usage; } });
23
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,yDAuBiC;AAtB/B,wGAAA,UAAU,OAAA;AAuBZ,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA;AAYV,oDAwByB;AAvBvB,6GAAA,YAAY,OAAA;AAwBd,kEASgC;AAR9B,2HAAA,mBAAmB,OAAA;AASrB,gDAiB2B;AAhBzB,kGAAA,OAAO,OAAA;AAiBT,4CAQqB;AAPnB,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,wCAAkE;AAAzD,kGAAA,OAAO,OAAA;AAChB,yDAyBiC;AAxB/B,wGAAA,UAAU,OAAA;AAyBZ,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA;AAYV,+DAA0D;AAAjD,2GAAA,WAAW,OAAA;AACpB,oDAwByB;AAvBvB,6GAAA,YAAY,OAAA;AAwBd,kCAAyD;AAAhD,4FAAA,IAAI,OAAA;AACb,kEASgC;AAR9B,2HAAA,mBAAmB,OAAA;AASrB,gDAiB2B;AAhBzB,kGAAA,OAAO,OAAA;AAiBT,+DAYqC;AAXnC,2GAAA,WAAW,OAAA;AAYb,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,oCAA4D;AAAnD,8FAAA,KAAK,OAAA"}
@@ -1,11 +1,19 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Addresses, } from "./addresses.mjs";
3
+ export { Balance } from "./balance.mjs";
3
4
  export { Broadcasts, } from "./broadcasts/broadcasts.mjs";
4
- export { Contacts, } from "./contacts.mjs";
5
+ export { Contacts, } from "./contacts/contacts.mjs";
6
+ export { Exports, } from "./exports.mjs";
5
7
  export { Introspect, } from "./introspect.mjs";
8
+ export { Invitations, } from "./invitations.mjs";
6
9
  export { Messages, } from "./messages.mjs";
10
+ export { Number10dlc } from "./number-10dlc/number-10dlc.mjs";
7
11
  export { PhoneNumbers, } from "./phone-numbers.mjs";
12
+ export { Plan } from "./plan.mjs";
8
13
  export { RegulatoryDocuments, } from "./regulatory-documents.mjs";
9
14
  export { Senders, } from "./senders/senders.mjs";
15
+ export { SubAccounts, } from "./sub-accounts/sub-accounts.mjs";
10
16
  export { Templates, } from "./templates.mjs";
17
+ export { URLs, } from "./urls.mjs";
18
+ export { Usage } from "./usage.mjs";
11
19
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAQV;OACM,EACL,UAAU,GAsBX;OACM,EACL,QAAQ,GAKT;OACM,EACL,UAAU,GAIX;OACM,EACL,QAAQ,GAWT;OACM,EACL,YAAY,GAuBb;OACM,EACL,mBAAmB,GAQpB;OACM,EACL,OAAO,GAgBR;OACM,EACL,SAAS,GAOV"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAQV;OACM,EAAE,OAAO,EAAgC;OACzC,EACL,UAAU,GAwBX;OACM,EACL,QAAQ,GAQT;OACM,EACL,OAAO,GAOR;OACM,EACL,UAAU,GAIX;OACM,EACL,WAAW,GAQZ;OACM,EACL,QAAQ,GAWT;OACM,EAAE,WAAW,EAAE;OACf,EACL,YAAY,GAuBb;OACM,EAAE,IAAI,EAA6B;OACnC,EACL,mBAAmB,GAQpB;OACM,EACL,OAAO,GAgBR;OACM,EACL,WAAW,GAWZ;OACM,EACL,SAAS,GAOV;OACM,EACL,IAAI,GAOL;OACM,EAAE,KAAK,EAA8B"}
@@ -0,0 +1,133 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class Invitations extends APIResource {
6
+ /**
7
+ * Create a partner invitation link for a client to connect their WhatsApp Business
8
+ * account. The client will complete Meta's embedded signup flow and the resulting
9
+ * sender will be created in your project.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const invitation = await client.invitations.create({
14
+ * clientName: 'Acme Corp',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body?: InvitationCreateParams | null | undefined, options?: RequestOptions): APIPromise<InvitationCreateResponse>;
19
+ /**
20
+ * Get invitation
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const invitation = await client.invitations.retrieve(
25
+ * 'invitationId',
26
+ * );
27
+ * ```
28
+ */
29
+ retrieve(invitationID: string, options?: RequestOptions): APIPromise<InvitationRetrieveResponse>;
30
+ /**
31
+ * List partner invitations for this project.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * // Automatically fetches more pages as needed.
36
+ * for await (const invitation of client.invitations.list()) {
37
+ * // ...
38
+ * }
39
+ * ```
40
+ */
41
+ list(query?: InvitationListParams | null | undefined, options?: RequestOptions): PagePromise<InvitationsCursor, Invitation>;
42
+ /**
43
+ * Cancel an active invitation. The client will no longer be able to use the
44
+ * invitation link.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const response = await client.invitations.cancel(
49
+ * 'invitationId',
50
+ * );
51
+ * ```
52
+ */
53
+ cancel(invitationID: string, options?: RequestOptions): APIPromise<InvitationCancelResponse>;
54
+ }
55
+ export type InvitationsCursor = Cursor<Invitation>;
56
+ export interface Invitation {
57
+ id: string;
58
+ /**
59
+ * Unique invitation token.
60
+ */
61
+ token: string;
62
+ createdAt: string;
63
+ expiresAt: string;
64
+ /**
65
+ * Current status of the partner invitation.
66
+ */
67
+ status: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
68
+ updatedAt: string;
69
+ /**
70
+ * Full URL to share with the client.
71
+ */
72
+ url: string;
73
+ clientEmail?: string | null;
74
+ clientName?: string | null;
75
+ clientPhone?: string | null;
76
+ completedAt?: string | null;
77
+ /**
78
+ * ID of a pre-assigned Zavu phone number for WhatsApp registration.
79
+ */
80
+ phoneNumberId?: string | null;
81
+ /**
82
+ * ID of the sender created when invitation is completed.
83
+ */
84
+ senderId?: string | null;
85
+ startedAt?: string | null;
86
+ viewedAt?: string | null;
87
+ }
88
+ export interface InvitationCreateResponse {
89
+ invitation: Invitation;
90
+ }
91
+ export interface InvitationRetrieveResponse {
92
+ invitation: Invitation;
93
+ }
94
+ export interface InvitationCancelResponse {
95
+ invitation: Invitation;
96
+ }
97
+ export interface InvitationCreateParams {
98
+ /**
99
+ * ISO country codes for allowed phone numbers.
100
+ */
101
+ allowedPhoneCountries?: Array<string>;
102
+ /**
103
+ * Email of the client being invited.
104
+ */
105
+ clientEmail?: string;
106
+ /**
107
+ * Name of the client being invited.
108
+ */
109
+ clientName?: string;
110
+ /**
111
+ * Phone number of the client in E.164 format.
112
+ */
113
+ clientPhone?: string;
114
+ /**
115
+ * Number of days until the invitation expires.
116
+ */
117
+ expiresInDays?: number;
118
+ /**
119
+ * ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided,
120
+ * the client will use this number instead of their own.
121
+ */
122
+ phoneNumberId?: string;
123
+ }
124
+ export interface InvitationListParams extends CursorParams {
125
+ /**
126
+ * Current status of the partner invitation.
127
+ */
128
+ status?: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
129
+ }
130
+ export declare namespace Invitations {
131
+ export { type Invitation as Invitation, type InvitationCreateResponse as InvitationCreateResponse, type InvitationRetrieveResponse as InvitationRetrieveResponse, type InvitationCancelResponse as InvitationCancelResponse, type InvitationsCursor as InvitationsCursor, type InvitationCreateParams as InvitationCreateParams, type InvitationListParams as InvitationListParams, };
132
+ }
133
+ //# sourceMappingURL=invitations.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitations.d.mts","sourceRoot":"","sources":["../src/resources/invitations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIhG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,UAAU,CAAC;IAI7C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG7F;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAA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EG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC;CAC5E;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,133 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Invitations extends APIResource {
6
+ /**
7
+ * Create a partner invitation link for a client to connect their WhatsApp Business
8
+ * account. The client will complete Meta's embedded signup flow and the resulting
9
+ * sender will be created in your project.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const invitation = await client.invitations.create({
14
+ * clientName: 'Acme Corp',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body?: InvitationCreateParams | null | undefined, options?: RequestOptions): APIPromise<InvitationCreateResponse>;
19
+ /**
20
+ * Get invitation
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const invitation = await client.invitations.retrieve(
25
+ * 'invitationId',
26
+ * );
27
+ * ```
28
+ */
29
+ retrieve(invitationID: string, options?: RequestOptions): APIPromise<InvitationRetrieveResponse>;
30
+ /**
31
+ * List partner invitations for this project.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * // Automatically fetches more pages as needed.
36
+ * for await (const invitation of client.invitations.list()) {
37
+ * // ...
38
+ * }
39
+ * ```
40
+ */
41
+ list(query?: InvitationListParams | null | undefined, options?: RequestOptions): PagePromise<InvitationsCursor, Invitation>;
42
+ /**
43
+ * Cancel an active invitation. The client will no longer be able to use the
44
+ * invitation link.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const response = await client.invitations.cancel(
49
+ * 'invitationId',
50
+ * );
51
+ * ```
52
+ */
53
+ cancel(invitationID: string, options?: RequestOptions): APIPromise<InvitationCancelResponse>;
54
+ }
55
+ export type InvitationsCursor = Cursor<Invitation>;
56
+ export interface Invitation {
57
+ id: string;
58
+ /**
59
+ * Unique invitation token.
60
+ */
61
+ token: string;
62
+ createdAt: string;
63
+ expiresAt: string;
64
+ /**
65
+ * Current status of the partner invitation.
66
+ */
67
+ status: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
68
+ updatedAt: string;
69
+ /**
70
+ * Full URL to share with the client.
71
+ */
72
+ url: string;
73
+ clientEmail?: string | null;
74
+ clientName?: string | null;
75
+ clientPhone?: string | null;
76
+ completedAt?: string | null;
77
+ /**
78
+ * ID of a pre-assigned Zavu phone number for WhatsApp registration.
79
+ */
80
+ phoneNumberId?: string | null;
81
+ /**
82
+ * ID of the sender created when invitation is completed.
83
+ */
84
+ senderId?: string | null;
85
+ startedAt?: string | null;
86
+ viewedAt?: string | null;
87
+ }
88
+ export interface InvitationCreateResponse {
89
+ invitation: Invitation;
90
+ }
91
+ export interface InvitationRetrieveResponse {
92
+ invitation: Invitation;
93
+ }
94
+ export interface InvitationCancelResponse {
95
+ invitation: Invitation;
96
+ }
97
+ export interface InvitationCreateParams {
98
+ /**
99
+ * ISO country codes for allowed phone numbers.
100
+ */
101
+ allowedPhoneCountries?: Array<string>;
102
+ /**
103
+ * Email of the client being invited.
104
+ */
105
+ clientEmail?: string;
106
+ /**
107
+ * Name of the client being invited.
108
+ */
109
+ clientName?: string;
110
+ /**
111
+ * Phone number of the client in E.164 format.
112
+ */
113
+ clientPhone?: string;
114
+ /**
115
+ * Number of days until the invitation expires.
116
+ */
117
+ expiresInDays?: number;
118
+ /**
119
+ * ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided,
120
+ * the client will use this number instead of their own.
121
+ */
122
+ phoneNumberId?: string;
123
+ }
124
+ export interface InvitationListParams extends CursorParams {
125
+ /**
126
+ * Current status of the partner invitation.
127
+ */
128
+ status?: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
129
+ }
130
+ export declare namespace Invitations {
131
+ export { type Invitation as Invitation, type InvitationCreateResponse as InvitationCreateResponse, type InvitationRetrieveResponse as InvitationRetrieveResponse, type InvitationCancelResponse as InvitationCancelResponse, type InvitationsCursor as InvitationsCursor, type InvitationCreateParams as InvitationCreateParams, type InvitationListParams as InvitationListParams, };
132
+ }
133
+ //# sourceMappingURL=invitations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["../src/resources/invitations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIhG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,UAAU,CAAC;IAI7C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG7F;AAED,M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ErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC;CAC5E;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Invitations = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class Invitations extends resource_1.APIResource {
9
+ /**
10
+ * Create a partner invitation link for a client to connect their WhatsApp Business
11
+ * account. The client will complete Meta's embedded signup flow and the resulting
12
+ * sender will be created in your project.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const invitation = await client.invitations.create({
17
+ * clientName: 'Acme Corp',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body = {}, options) {
22
+ return this._client.post('/v1/invitations', { body, ...options });
23
+ }
24
+ /**
25
+ * Get invitation
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const invitation = await client.invitations.retrieve(
30
+ * 'invitationId',
31
+ * );
32
+ * ```
33
+ */
34
+ retrieve(invitationID, options) {
35
+ return this._client.get((0, path_1.path) `/v1/invitations/${invitationID}`, options);
36
+ }
37
+ /**
38
+ * List partner invitations for this project.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * // Automatically fetches more pages as needed.
43
+ * for await (const invitation of client.invitations.list()) {
44
+ * // ...
45
+ * }
46
+ * ```
47
+ */
48
+ list(query = {}, options) {
49
+ return this._client.getAPIList('/v1/invitations', (pagination_1.Cursor), { query, ...options });
50
+ }
51
+ /**
52
+ * Cancel an active invitation. The client will no longer be able to use the
53
+ * invitation link.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response = await client.invitations.cancel(
58
+ * 'invitationId',
59
+ * );
60
+ * ```
61
+ */
62
+ cancel(invitationID, options) {
63
+ return this._client.post((0, path_1.path) `/v1/invitations/${invitationID}/cancel`, options);
64
+ }
65
+ }
66
+ exports.Invitations = Invitations;
67
+ //# sourceMappingURL=invitations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitations.js","sourceRoot":"","sources":["../src/resources/invitations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,mBAAkB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,YAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,YAAY,SAAS,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAlED,kCAkEC"}
@@ -0,0 +1,63 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class Invitations extends APIResource {
6
+ /**
7
+ * Create a partner invitation link for a client to connect their WhatsApp Business
8
+ * account. The client will complete Meta's embedded signup flow and the resulting
9
+ * sender will be created in your project.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const invitation = await client.invitations.create({
14
+ * clientName: 'Acme Corp',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body = {}, options) {
19
+ return this._client.post('/v1/invitations', { body, ...options });
20
+ }
21
+ /**
22
+ * Get invitation
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const invitation = await client.invitations.retrieve(
27
+ * 'invitationId',
28
+ * );
29
+ * ```
30
+ */
31
+ retrieve(invitationID, options) {
32
+ return this._client.get(path `/v1/invitations/${invitationID}`, options);
33
+ }
34
+ /**
35
+ * List partner invitations for this project.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * // Automatically fetches more pages as needed.
40
+ * for await (const invitation of client.invitations.list()) {
41
+ * // ...
42
+ * }
43
+ * ```
44
+ */
45
+ list(query = {}, options) {
46
+ return this._client.getAPIList('/v1/invitations', (Cursor), { query, ...options });
47
+ }
48
+ /**
49
+ * Cancel an active invitation. The client will no longer be able to use the
50
+ * invitation link.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const response = await client.invitations.cancel(
55
+ * 'invitationId',
56
+ * );
57
+ * ```
58
+ */
59
+ cancel(invitationID, options) {
60
+ return this._client.post(path `/v1/invitations/${invitationID}/cancel`, options);
61
+ }
62
+ }
63
+ //# sourceMappingURL=invitations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitations.mjs","sourceRoot":"","sources":["../src/resources/invitations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,MAAkB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,YAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,YAAY,SAAS,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF"}