@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,88 @@
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 URLs extends APIResource {
6
+ /**
7
+ * List URLs that have been verified for this project.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // Automatically fetches more pages as needed.
12
+ * for await (const verifiedURL of client.urls.listVerified()) {
13
+ * // ...
14
+ * }
15
+ * ```
16
+ */
17
+ listVerified(query?: URLListVerifiedParams | null | undefined, options?: RequestOptions): PagePromise<VerifiedURLsCursor, VerifiedURL>;
18
+ /**
19
+ * Get details of a specific verified URL.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const response = await client.urls.retrieveDetails('urlId');
24
+ * ```
25
+ */
26
+ retrieveDetails(urlID: string, options?: RequestOptions): APIPromise<URLRetrieveDetailsResponse>;
27
+ /**
28
+ * Submit a URL for verification. URLs are automatically checked against Google Web
29
+ * Risk API. Safe URLs are auto-approved, malicious URLs are blocked. URL
30
+ * shorteners (bit.ly, t.co, etc.) are always blocked.
31
+ *
32
+ * **Important:** All SMS and Email messages containing URLs require those URLs to
33
+ * be verified before the message can be sent. This endpoint allows
34
+ * pre-verification of URLs.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const response = await client.urls.submitForVerification({
39
+ * url: 'https://example.com/page',
40
+ * });
41
+ * ```
42
+ */
43
+ submitForVerification(body: URLSubmitForVerificationParams, options?: RequestOptions): APIPromise<URLSubmitForVerificationResponse>;
44
+ }
45
+ export type VerifiedURLsCursor = Cursor<VerifiedURL>;
46
+ export interface VerifiedURL {
47
+ id: string;
48
+ createdAt: string;
49
+ /**
50
+ * Domain extracted from the URL.
51
+ */
52
+ domain: string;
53
+ /**
54
+ * Status of a verified URL.
55
+ */
56
+ status: 'pending' | 'approved' | 'rejected' | 'malicious';
57
+ /**
58
+ * The verified URL.
59
+ */
60
+ url: string;
61
+ /**
62
+ * How the URL was approved or rejected.
63
+ */
64
+ approvalType?: 'manual' | 'auto_web_risk';
65
+ updatedAt?: string;
66
+ }
67
+ export interface URLRetrieveDetailsResponse {
68
+ url: VerifiedURL;
69
+ }
70
+ export interface URLSubmitForVerificationResponse {
71
+ url: VerifiedURL;
72
+ }
73
+ export interface URLListVerifiedParams extends CursorParams {
74
+ /**
75
+ * Filter by verification status.
76
+ */
77
+ status?: 'pending' | 'approved' | 'rejected' | 'malicious';
78
+ }
79
+ export interface URLSubmitForVerificationParams {
80
+ /**
81
+ * The URL to submit for verification.
82
+ */
83
+ url: string;
84
+ }
85
+ export declare namespace URLs {
86
+ export { type VerifiedURL as VerifiedURL, type URLRetrieveDetailsResponse as URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse as URLSubmitForVerificationResponse, type VerifiedURLsCursor as VerifiedURLsCursor, type URLListVerifiedParams as URLListVerifiedParams, type URLSubmitForVerificationParams as URLSubmitForVerificationParams, };
87
+ }
88
+ //# sourceMappingURL=urls.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urls.d.mts","sourceRoot":"","sources":["../src/resources/urls.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,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,YAAY,CACV,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAI/C;;;;;;;OAOG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIhG;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CACnB,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;CAGhD;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;IAE1D;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IAE1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,WAAW,CAAC;CAClB;AAED,MAAM,WAAW,gCAAgC;IAC/C,GAAG,EAAE,WAAW,CAAC;CAClB;AAED,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;CAC5D;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -0,0 +1,88 @@
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 URLs extends APIResource {
6
+ /**
7
+ * List URLs that have been verified for this project.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // Automatically fetches more pages as needed.
12
+ * for await (const verifiedURL of client.urls.listVerified()) {
13
+ * // ...
14
+ * }
15
+ * ```
16
+ */
17
+ listVerified(query?: URLListVerifiedParams | null | undefined, options?: RequestOptions): PagePromise<VerifiedURLsCursor, VerifiedURL>;
18
+ /**
19
+ * Get details of a specific verified URL.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const response = await client.urls.retrieveDetails('urlId');
24
+ * ```
25
+ */
26
+ retrieveDetails(urlID: string, options?: RequestOptions): APIPromise<URLRetrieveDetailsResponse>;
27
+ /**
28
+ * Submit a URL for verification. URLs are automatically checked against Google Web
29
+ * Risk API. Safe URLs are auto-approved, malicious URLs are blocked. URL
30
+ * shorteners (bit.ly, t.co, etc.) are always blocked.
31
+ *
32
+ * **Important:** All SMS and Email messages containing URLs require those URLs to
33
+ * be verified before the message can be sent. This endpoint allows
34
+ * pre-verification of URLs.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const response = await client.urls.submitForVerification({
39
+ * url: 'https://example.com/page',
40
+ * });
41
+ * ```
42
+ */
43
+ submitForVerification(body: URLSubmitForVerificationParams, options?: RequestOptions): APIPromise<URLSubmitForVerificationResponse>;
44
+ }
45
+ export type VerifiedURLsCursor = Cursor<VerifiedURL>;
46
+ export interface VerifiedURL {
47
+ id: string;
48
+ createdAt: string;
49
+ /**
50
+ * Domain extracted from the URL.
51
+ */
52
+ domain: string;
53
+ /**
54
+ * Status of a verified URL.
55
+ */
56
+ status: 'pending' | 'approved' | 'rejected' | 'malicious';
57
+ /**
58
+ * The verified URL.
59
+ */
60
+ url: string;
61
+ /**
62
+ * How the URL was approved or rejected.
63
+ */
64
+ approvalType?: 'manual' | 'auto_web_risk';
65
+ updatedAt?: string;
66
+ }
67
+ export interface URLRetrieveDetailsResponse {
68
+ url: VerifiedURL;
69
+ }
70
+ export interface URLSubmitForVerificationResponse {
71
+ url: VerifiedURL;
72
+ }
73
+ export interface URLListVerifiedParams extends CursorParams {
74
+ /**
75
+ * Filter by verification status.
76
+ */
77
+ status?: 'pending' | 'approved' | 'rejected' | 'malicious';
78
+ }
79
+ export interface URLSubmitForVerificationParams {
80
+ /**
81
+ * The URL to submit for verification.
82
+ */
83
+ url: string;
84
+ }
85
+ export declare namespace URLs {
86
+ export { type VerifiedURL as VerifiedURL, type URLRetrieveDetailsResponse as URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse as URLSubmitForVerificationResponse, type VerifiedURLsCursor as VerifiedURLsCursor, type URLListVerifiedParams as URLListVerifiedParams, type URLSubmitForVerificationParams as URLSubmitForVerificationParams, };
87
+ }
88
+ //# sourceMappingURL=urls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urls.d.ts","sourceRoot":"","sources":["../src/resources/urls.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,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,YAAY,CACV,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAI/C;;;;;;;OAOG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIhG;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CACnB,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;CAGhD;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;IAE1D;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IAE1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,WAAW,CAAC;CAClB;AAED,MAAM,WAAW,gCAAgC;IAC/C,GAAG,EAAE,WAAW,CAAC;CAClB;AAED,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;CAC5D;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -0,0 +1,55 @@
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.URLs = 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 URLs extends resource_1.APIResource {
9
+ /**
10
+ * List URLs that have been verified for this project.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * // Automatically fetches more pages as needed.
15
+ * for await (const verifiedURL of client.urls.listVerified()) {
16
+ * // ...
17
+ * }
18
+ * ```
19
+ */
20
+ listVerified(query = {}, options) {
21
+ return this._client.getAPIList('/v1/urls', (pagination_1.Cursor), { query, ...options });
22
+ }
23
+ /**
24
+ * Get details of a specific verified URL.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const response = await client.urls.retrieveDetails('urlId');
29
+ * ```
30
+ */
31
+ retrieveDetails(urlID, options) {
32
+ return this._client.get((0, path_1.path) `/v1/urls/${urlID}`, options);
33
+ }
34
+ /**
35
+ * Submit a URL for verification. URLs are automatically checked against Google Web
36
+ * Risk API. Safe URLs are auto-approved, malicious URLs are blocked. URL
37
+ * shorteners (bit.ly, t.co, etc.) are always blocked.
38
+ *
39
+ * **Important:** All SMS and Email messages containing URLs require those URLs to
40
+ * be verified before the message can be sent. This endpoint allows
41
+ * pre-verification of URLs.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.urls.submitForVerification({
46
+ * url: 'https://example.com/page',
47
+ * });
48
+ * ```
49
+ */
50
+ submitForVerification(body, options) {
51
+ return this._client.post('/v1/urls', { body, ...options });
52
+ }
53
+ }
54
+ exports.URLs = URLs;
55
+ //# sourceMappingURL=urls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urls.js","sourceRoot":"","sources":["../src/resources/urls.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,mBAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;OAOG;IACH,eAAe,CAAC,KAAa,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CACnB,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AArDD,oBAqDC"}
@@ -0,0 +1,51 @@
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 URLs extends APIResource {
6
+ /**
7
+ * List URLs that have been verified for this project.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // Automatically fetches more pages as needed.
12
+ * for await (const verifiedURL of client.urls.listVerified()) {
13
+ * // ...
14
+ * }
15
+ * ```
16
+ */
17
+ listVerified(query = {}, options) {
18
+ return this._client.getAPIList('/v1/urls', (Cursor), { query, ...options });
19
+ }
20
+ /**
21
+ * Get details of a specific verified URL.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.urls.retrieveDetails('urlId');
26
+ * ```
27
+ */
28
+ retrieveDetails(urlID, options) {
29
+ return this._client.get(path `/v1/urls/${urlID}`, options);
30
+ }
31
+ /**
32
+ * Submit a URL for verification. URLs are automatically checked against Google Web
33
+ * Risk API. Safe URLs are auto-approved, malicious URLs are blocked. URL
34
+ * shorteners (bit.ly, t.co, etc.) are always blocked.
35
+ *
36
+ * **Important:** All SMS and Email messages containing URLs require those URLs to
37
+ * be verified before the message can be sent. This endpoint allows
38
+ * pre-verification of URLs.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const response = await client.urls.submitForVerification({
43
+ * url: 'https://example.com/page',
44
+ * });
45
+ * ```
46
+ */
47
+ submitForVerification(body, options) {
48
+ return this._client.post('/v1/urls', { body, ...options });
49
+ }
50
+ }
51
+ //# sourceMappingURL=urls.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urls.mjs","sourceRoot":"","sources":["../src/resources/urls.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,YAAY,CACV,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,MAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;OAOG;IACH,eAAe,CAAC,KAAa,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CACnB,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -0,0 +1,36 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Usage extends APIResource {
5
+ /**
6
+ * Get the current month's usage counters for A2P messages and emails, along with
7
+ * the tier limits.
8
+ */
9
+ retrieve(options?: RequestOptions): APIPromise<UsageRetrieveResponse>;
10
+ }
11
+ export interface UsageRetrieveResponse {
12
+ /**
13
+ * Emails sent this month.
14
+ */
15
+ emailsSent: number;
16
+ limits: UsageRetrieveResponse.Limits;
17
+ /**
18
+ * A2P messages sent this month (WhatsApp replies + Telegram).
19
+ */
20
+ messagesA2P: number;
21
+ /**
22
+ * Current month in YYYY-MM format.
23
+ */
24
+ monthKey: string;
25
+ tier: 'free' | 'pro' | 'scale' | 'enterprise';
26
+ }
27
+ export declare namespace UsageRetrieveResponse {
28
+ interface Limits {
29
+ emails?: number;
30
+ messagesA2P?: number;
31
+ }
32
+ }
33
+ export declare namespace Usage {
34
+ export { type UsageRetrieveResponse as UsageRetrieveResponse };
35
+ }
36
+ //# sourceMappingURL=usage.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGtE;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,qBAAqB,CAAC,MAAM,CAAC;IAErC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,YAAY,CAAC;CAC/C;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,MAAM;QACrB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
@@ -0,0 +1,36 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Usage extends APIResource {
5
+ /**
6
+ * Get the current month's usage counters for A2P messages and emails, along with
7
+ * the tier limits.
8
+ */
9
+ retrieve(options?: RequestOptions): APIPromise<UsageRetrieveResponse>;
10
+ }
11
+ export interface UsageRetrieveResponse {
12
+ /**
13
+ * Emails sent this month.
14
+ */
15
+ emailsSent: number;
16
+ limits: UsageRetrieveResponse.Limits;
17
+ /**
18
+ * A2P messages sent this month (WhatsApp replies + Telegram).
19
+ */
20
+ messagesA2P: number;
21
+ /**
22
+ * Current month in YYYY-MM format.
23
+ */
24
+ monthKey: string;
25
+ tier: 'free' | 'pro' | 'scale' | 'enterprise';
26
+ }
27
+ export declare namespace UsageRetrieveResponse {
28
+ interface Limits {
29
+ emails?: number;
30
+ messagesA2P?: number;
31
+ }
32
+ }
33
+ export declare namespace Usage {
34
+ export { type UsageRetrieveResponse as UsageRetrieveResponse };
35
+ }
36
+ //# sourceMappingURL=usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGtE;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,qBAAqB,CAAC,MAAM,CAAC;IAErC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,YAAY,CAAC;CAC/C;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,MAAM;QACrB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
@@ -0,0 +1,16 @@
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.Usage = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Usage extends resource_1.APIResource {
7
+ /**
8
+ * Get the current month's usage counters for A2P messages and emails, along with
9
+ * the tier limits.
10
+ */
11
+ retrieve(options) {
12
+ return this._client.get('/v1/usage', options);
13
+ }
14
+ }
15
+ exports.Usage = Usage;
16
+ //# sourceMappingURL=usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AARD,sBAQC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class Usage extends APIResource {
4
+ /**
5
+ * Get the current month's usage counters for A2P messages and emails, along with
6
+ * the tier limits.
7
+ */
8
+ retrieve(options) {
9
+ return this._client.get('/v1/usage', options);
10
+ }
11
+ }
12
+ //# sourceMappingURL=usage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -29,19 +29,32 @@ import {
29
29
  Addresses,
30
30
  AddressesCursor,
31
31
  } from './resources/addresses';
32
+ import { Balance, BalanceRetrieveResponse } from './resources/balance';
32
33
  import {
33
- Contact,
34
- ContactListParams,
35
- ContactUpdateParams,
36
- Contacts,
37
- ContactsCursor,
38
- } from './resources/contacts';
34
+ DataExport,
35
+ DataExportsCursor,
36
+ ExportCreateParams,
37
+ ExportCreateResponse,
38
+ ExportListParams,
39
+ ExportRetrieveResponse,
40
+ Exports,
41
+ } from './resources/exports';
39
42
  import {
40
43
  Introspect,
41
44
  IntrospectValidatePhoneParams,
42
45
  IntrospectValidatePhoneResponse,
43
46
  LineType,
44
47
  } from './resources/introspect';
48
+ import {
49
+ Invitation,
50
+ InvitationCancelResponse,
51
+ InvitationCreateParams,
52
+ InvitationCreateResponse,
53
+ InvitationListParams,
54
+ InvitationRetrieveResponse,
55
+ Invitations,
56
+ InvitationsCursor,
57
+ } from './resources/invitations';
45
58
  import {
46
59
  Channel,
47
60
  Message,
@@ -80,6 +93,7 @@ import {
80
93
  RequirementFieldType,
81
94
  RequirementType,
82
95
  } from './resources/phone-numbers';
96
+ import { Plan, PlanRetrieveResponse } from './resources/plan';
83
97
  import {
84
98
  RegulatoryDocument,
85
99
  RegulatoryDocumentCreateParams,
@@ -99,6 +113,16 @@ import {
99
113
  TemplatesCursor,
100
114
  WhatsappCategory,
101
115
  } from './resources/templates';
116
+ import {
117
+ URLListVerifiedParams,
118
+ URLRetrieveDetailsResponse,
119
+ URLSubmitForVerificationParams,
120
+ URLSubmitForVerificationResponse,
121
+ URLs,
122
+ VerifiedURL,
123
+ VerifiedURLsCursor,
124
+ } from './resources/urls';
125
+ import { Usage, UsageRetrieveResponse } from './resources/usage';
102
126
  import {
103
127
  Broadcast,
104
128
  BroadcastCancelResponse,
@@ -108,12 +132,14 @@ import {
108
132
  BroadcastContent,
109
133
  BroadcastCreateParams,
110
134
  BroadcastCreateResponse,
135
+ BroadcastEscalateReviewResponse,
111
136
  BroadcastListParams,
112
137
  BroadcastMessageType,
113
138
  BroadcastProgress,
114
139
  BroadcastRescheduleParams,
115
140
  BroadcastRescheduleResponse,
116
141
  BroadcastRetrieveResponse,
142
+ BroadcastRetryReviewResponse,
117
143
  BroadcastSendParams,
118
144
  BroadcastSendResponse,
119
145
  BroadcastStatus,
@@ -122,6 +148,17 @@ import {
122
148
  Broadcasts,
123
149
  BroadcastsCursor,
124
150
  } from './resources/broadcasts/broadcasts';
151
+ import {
152
+ Contact,
153
+ ContactChannel,
154
+ ContactCreateParams,
155
+ ContactListParams,
156
+ ContactMergeParams,
157
+ ContactUpdateParams,
158
+ Contacts,
159
+ ContactsCursor,
160
+ } from './resources/contacts/contacts';
161
+ import { Number10dlc } from './resources/number-10dlc/number-10dlc';
125
162
  import {
126
163
  Sender,
127
164
  SenderCreateParams,
@@ -140,6 +177,19 @@ import {
140
177
  WhatsappBusinessProfileResponse,
141
178
  WhatsappBusinessProfileVertical,
142
179
  } from './resources/senders/senders';
180
+ import {
181
+ SubAccount,
182
+ SubAccountCreateParams,
183
+ SubAccountCreateResponse,
184
+ SubAccountDeactivateResponse,
185
+ SubAccountGetBalanceResponse,
186
+ SubAccountListParams,
187
+ SubAccountRetrieveResponse,
188
+ SubAccountUpdateParams,
189
+ SubAccountUpdateResponse,
190
+ SubAccounts,
191
+ SubAccountsCursor,
192
+ } from './resources/sub-accounts/sub-accounts';
143
193
  import { type Fetch } from './internal/builtin-types';
144
194
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
145
195
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -873,6 +923,14 @@ export class Zavudev {
873
923
  phoneNumbers: API.PhoneNumbers = new API.PhoneNumbers(this);
874
924
  addresses: API.Addresses = new API.Addresses(this);
875
925
  regulatoryDocuments: API.RegulatoryDocuments = new API.RegulatoryDocuments(this);
926
+ invitations: API.Invitations = new API.Invitations(this);
927
+ exports: API.Exports = new API.Exports(this);
928
+ urls: API.URLs = new API.URLs(this);
929
+ balance: API.Balance = new API.Balance(this);
930
+ plan: API.Plan = new API.Plan(this);
931
+ usage: API.Usage = new API.Usage(this);
932
+ subAccounts: API.SubAccounts = new API.SubAccounts(this);
933
+ number10dlc: API.Number10dlc = new API.Number10dlc(this);
876
934
  }
877
935
 
878
936
  Zavudev.Messages = Messages;
@@ -884,6 +942,14 @@ Zavudev.Introspect = Introspect;
884
942
  Zavudev.PhoneNumbers = PhoneNumbers;
885
943
  Zavudev.Addresses = Addresses;
886
944
  Zavudev.RegulatoryDocuments = RegulatoryDocuments;
945
+ Zavudev.Invitations = Invitations;
946
+ Zavudev.Exports = Exports;
947
+ Zavudev.URLs = URLs;
948
+ Zavudev.Balance = Balance;
949
+ Zavudev.Plan = Plan;
950
+ Zavudev.Usage = Usage;
951
+ Zavudev.SubAccounts = SubAccounts;
952
+ Zavudev.Number10dlc = Number10dlc;
887
953
 
888
954
  export declare namespace Zavudev {
889
955
  export type RequestOptions = Opts.RequestOptions;
@@ -937,9 +1003,12 @@ export declare namespace Zavudev {
937
1003
  export {
938
1004
  Contacts as Contacts,
939
1005
  type Contact as Contact,
1006
+ type ContactChannel as ContactChannel,
940
1007
  type ContactsCursor as ContactsCursor,
1008
+ type ContactCreateParams as ContactCreateParams,
941
1009
  type ContactUpdateParams as ContactUpdateParams,
942
1010
  type ContactListParams as ContactListParams,
1011
+ type ContactMergeParams as ContactMergeParams,
943
1012
  };
944
1013
 
945
1014
  export {
@@ -956,7 +1025,9 @@ export declare namespace Zavudev {
956
1025
  type BroadcastRetrieveResponse as BroadcastRetrieveResponse,
957
1026
  type BroadcastUpdateResponse as BroadcastUpdateResponse,
958
1027
  type BroadcastCancelResponse as BroadcastCancelResponse,
1028
+ type BroadcastEscalateReviewResponse as BroadcastEscalateReviewResponse,
959
1029
  type BroadcastRescheduleResponse as BroadcastRescheduleResponse,
1030
+ type BroadcastRetryReviewResponse as BroadcastRetryReviewResponse,
960
1031
  type BroadcastSendResponse as BroadcastSendResponse,
961
1032
  type BroadcastsCursor as BroadcastsCursor,
962
1033
  type BroadcastCreateParams as BroadcastCreateParams,
@@ -1020,4 +1091,57 @@ export declare namespace Zavudev {
1020
1091
  type RegulatoryDocumentCreateParams as RegulatoryDocumentCreateParams,
1021
1092
  type RegulatoryDocumentListParams as RegulatoryDocumentListParams,
1022
1093
  };
1094
+
1095
+ export {
1096
+ Invitations as Invitations,
1097
+ type Invitation as Invitation,
1098
+ type InvitationCreateResponse as InvitationCreateResponse,
1099
+ type InvitationRetrieveResponse as InvitationRetrieveResponse,
1100
+ type InvitationCancelResponse as InvitationCancelResponse,
1101
+ type InvitationsCursor as InvitationsCursor,
1102
+ type InvitationCreateParams as InvitationCreateParams,
1103
+ type InvitationListParams as InvitationListParams,
1104
+ };
1105
+
1106
+ export {
1107
+ Exports as Exports,
1108
+ type DataExport as DataExport,
1109
+ type ExportCreateResponse as ExportCreateResponse,
1110
+ type ExportRetrieveResponse as ExportRetrieveResponse,
1111
+ type DataExportsCursor as DataExportsCursor,
1112
+ type ExportCreateParams as ExportCreateParams,
1113
+ type ExportListParams as ExportListParams,
1114
+ };
1115
+
1116
+ export {
1117
+ URLs as URLs,
1118
+ type VerifiedURL as VerifiedURL,
1119
+ type URLRetrieveDetailsResponse as URLRetrieveDetailsResponse,
1120
+ type URLSubmitForVerificationResponse as URLSubmitForVerificationResponse,
1121
+ type VerifiedURLsCursor as VerifiedURLsCursor,
1122
+ type URLListVerifiedParams as URLListVerifiedParams,
1123
+ type URLSubmitForVerificationParams as URLSubmitForVerificationParams,
1124
+ };
1125
+
1126
+ export { Balance as Balance, type BalanceRetrieveResponse as BalanceRetrieveResponse };
1127
+
1128
+ export { Plan as Plan, type PlanRetrieveResponse as PlanRetrieveResponse };
1129
+
1130
+ export { Usage as Usage, type UsageRetrieveResponse as UsageRetrieveResponse };
1131
+
1132
+ export {
1133
+ SubAccounts as SubAccounts,
1134
+ type SubAccount as SubAccount,
1135
+ type SubAccountCreateResponse as SubAccountCreateResponse,
1136
+ type SubAccountRetrieveResponse as SubAccountRetrieveResponse,
1137
+ type SubAccountUpdateResponse as SubAccountUpdateResponse,
1138
+ type SubAccountDeactivateResponse as SubAccountDeactivateResponse,
1139
+ type SubAccountGetBalanceResponse as SubAccountGetBalanceResponse,
1140
+ type SubAccountsCursor as SubAccountsCursor,
1141
+ type SubAccountCreateParams as SubAccountCreateParams,
1142
+ type SubAccountUpdateParams as SubAccountUpdateParams,
1143
+ type SubAccountListParams as SubAccountListParams,
1144
+ };
1145
+
1146
+ export { Number10dlc as Number10dlc };
1023
1147
  }
@@ -9,10 +9,10 @@
9
9
  */
10
10
  export const readEnv = (env: string): string | undefined => {
11
11
  if (typeof (globalThis as any).process !== 'undefined') {
12
- return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
12
+ return (globalThis as any).process.env?.[env]?.trim() || undefined;
13
13
  }
14
14
  if (typeof (globalThis as any).Deno !== 'undefined') {
15
- return (globalThis as any).Deno.env?.get?.(env)?.trim();
15
+ return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
16
16
  }
17
17
  return undefined;
18
18
  };