@zavudev/sdk 0.31.0 → 0.43.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 (491) hide show
  1. package/CHANGELOG.md +197 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +36 -6
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +36 -6
  11. package/client.d.ts.map +1 -1
  12. package/client.js +42 -1
  13. package/client.js.map +1 -1
  14. package/client.mjs +42 -1
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts.map +1 -1
  22. package/core/pagination.mjs.map +1 -1
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/headers.mjs.map +1 -1
  39. package/internal/parse.d.mts.map +1 -1
  40. package/internal/parse.d.ts.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/request-options.d.mts.map +1 -1
  43. package/internal/request-options.d.ts.map +1 -1
  44. package/internal/shims.d.mts +6 -0
  45. package/internal/shims.d.mts.map +1 -1
  46. package/internal/shims.d.ts +6 -0
  47. package/internal/shims.d.ts.map +1 -1
  48. package/internal/to-file.d.mts.map +1 -1
  49. package/internal/to-file.d.ts.map +1 -1
  50. package/internal/to-file.mjs.map +1 -1
  51. package/internal/types.d.mts +10 -10
  52. package/internal/types.d.mts.map +1 -1
  53. package/internal/types.d.ts +10 -10
  54. package/internal/types.d.ts.map +1 -1
  55. package/internal/uploads.d.mts.map +1 -1
  56. package/internal/uploads.d.ts.map +1 -1
  57. package/internal/uploads.mjs.map +1 -1
  58. package/internal/utils/base64.mjs.map +1 -1
  59. package/internal/utils/env.js +2 -2
  60. package/internal/utils/env.js.map +1 -1
  61. package/internal/utils/env.mjs +2 -2
  62. package/internal/utils/env.mjs.map +1 -1
  63. package/internal/utils/log.d.mts.map +1 -1
  64. package/internal/utils/log.d.ts.map +1 -1
  65. package/internal/utils/log.js +2 -0
  66. package/internal/utils/log.js.map +1 -1
  67. package/internal/utils/log.mjs +2 -0
  68. package/internal/utils/log.mjs.map +1 -1
  69. package/internal/utils/path.mjs.map +1 -1
  70. package/internal/utils/query.mjs.map +1 -1
  71. package/internal/utils/values.mjs.map +1 -1
  72. package/internal/utils.d.mts.map +1 -1
  73. package/internal/utils.d.ts.map +1 -1
  74. package/internal/utils.mjs.map +1 -1
  75. package/package.json +1 -1
  76. package/pagination.d.mts +1 -0
  77. package/pagination.d.mts.map +1 -1
  78. package/pagination.d.ts +1 -0
  79. package/pagination.d.ts.map +1 -1
  80. package/pagination.mjs +1 -0
  81. package/pagination.mjs.map +1 -1
  82. package/resource.d.mts +1 -0
  83. package/resource.d.mts.map +1 -1
  84. package/resource.d.ts +1 -0
  85. package/resource.d.ts.map +1 -1
  86. package/resource.mjs +1 -0
  87. package/resource.mjs.map +1 -1
  88. package/resources/addresses.d.mts.map +1 -1
  89. package/resources/addresses.d.ts.map +1 -1
  90. package/resources/addresses.mjs.map +1 -1
  91. package/resources/balance.d.mts +33 -0
  92. package/resources/balance.d.mts.map +1 -0
  93. package/resources/balance.d.ts +33 -0
  94. package/resources/balance.d.ts.map +1 -0
  95. package/resources/balance.js +16 -0
  96. package/resources/balance.js.map +1 -0
  97. package/resources/balance.mjs +12 -0
  98. package/resources/balance.mjs.map +1 -0
  99. package/resources/broadcasts/broadcasts.d.mts +43 -2
  100. package/resources/broadcasts/broadcasts.d.mts.map +1 -1
  101. package/resources/broadcasts/broadcasts.d.ts +43 -2
  102. package/resources/broadcasts/broadcasts.d.ts.map +1 -1
  103. package/resources/broadcasts/broadcasts.js +28 -0
  104. package/resources/broadcasts/broadcasts.js.map +1 -1
  105. package/resources/broadcasts/broadcasts.mjs +28 -0
  106. package/resources/broadcasts/broadcasts.mjs.map +1 -1
  107. package/resources/broadcasts/contacts.d.mts +9 -1
  108. package/resources/broadcasts/contacts.d.mts.map +1 -1
  109. package/resources/broadcasts/contacts.d.ts +9 -1
  110. package/resources/broadcasts/contacts.d.ts.map +1 -1
  111. package/resources/broadcasts/contacts.mjs.map +1 -1
  112. package/resources/broadcasts/index.d.mts +1 -1
  113. package/resources/broadcasts/index.d.mts.map +1 -1
  114. package/resources/broadcasts/index.d.ts +1 -1
  115. package/resources/broadcasts/index.d.ts.map +1 -1
  116. package/resources/broadcasts/index.js.map +1 -1
  117. package/resources/broadcasts/index.mjs.map +1 -1
  118. package/resources/broadcasts.d.mts.map +1 -1
  119. package/resources/broadcasts.d.ts.map +1 -1
  120. package/resources/broadcasts.mjs.map +1 -1
  121. package/resources/contacts/channels.d.mts +127 -0
  122. package/resources/contacts/channels.d.mts.map +1 -0
  123. package/resources/contacts/channels.d.ts +127 -0
  124. package/resources/contacts/channels.d.ts.map +1 -0
  125. package/resources/contacts/channels.js +76 -0
  126. package/resources/contacts/channels.js.map +1 -0
  127. package/resources/contacts/channels.mjs +72 -0
  128. package/resources/contacts/channels.mjs.map +1 -0
  129. package/resources/contacts/contacts.d.mts +276 -0
  130. package/resources/contacts/contacts.d.mts.map +1 -0
  131. package/resources/contacts/contacts.d.ts +276 -0
  132. package/resources/contacts/contacts.d.ts.map +1 -0
  133. package/resources/contacts/contacts.js +137 -0
  134. package/resources/contacts/contacts.js.map +1 -0
  135. package/resources/contacts/contacts.mjs +132 -0
  136. package/resources/contacts/contacts.mjs.map +1 -0
  137. package/resources/contacts/index.d.mts +3 -0
  138. package/resources/contacts/index.d.mts.map +1 -0
  139. package/resources/contacts/index.d.ts +3 -0
  140. package/resources/contacts/index.d.ts.map +1 -0
  141. package/resources/contacts/index.js +9 -0
  142. package/resources/contacts/index.js.map +1 -0
  143. package/resources/contacts/index.mjs +4 -0
  144. package/resources/contacts/index.mjs.map +1 -0
  145. package/resources/contacts.d.mts +1 -144
  146. package/resources/contacts.d.mts.map +1 -1
  147. package/resources/contacts.d.ts +1 -144
  148. package/resources/contacts.d.ts.map +1 -1
  149. package/resources/contacts.js +2 -31
  150. package/resources/contacts.js.map +1 -1
  151. package/resources/contacts.mjs +1 -29
  152. package/resources/contacts.mjs.map +1 -1
  153. package/resources/exports.d.mts +101 -0
  154. package/resources/exports.d.mts.map +1 -0
  155. package/resources/exports.d.ts +101 -0
  156. package/resources/exports.d.ts.map +1 -0
  157. package/resources/exports.js +53 -0
  158. package/resources/exports.js.map +1 -0
  159. package/resources/exports.mjs +49 -0
  160. package/resources/exports.mjs.map +1 -0
  161. package/resources/functions/functions.d.mts +420 -0
  162. package/resources/functions/functions.d.mts.map +1 -0
  163. package/resources/functions/functions.d.ts +420 -0
  164. package/resources/functions/functions.d.ts.map +1 -0
  165. package/resources/functions/functions.js +129 -0
  166. package/resources/functions/functions.js.map +1 -0
  167. package/resources/functions/functions.mjs +124 -0
  168. package/resources/functions/functions.mjs.map +1 -0
  169. package/resources/functions/index.d.mts +3 -0
  170. package/resources/functions/index.d.mts.map +1 -0
  171. package/resources/functions/index.d.ts +3 -0
  172. package/resources/functions/index.d.ts.map +1 -0
  173. package/resources/functions/index.js +9 -0
  174. package/resources/functions/index.js.map +1 -0
  175. package/resources/functions/index.mjs +4 -0
  176. package/resources/functions/index.mjs.map +1 -0
  177. package/resources/functions/secrets.d.mts +78 -0
  178. package/resources/functions/secrets.d.mts.map +1 -0
  179. package/resources/functions/secrets.d.ts +78 -0
  180. package/resources/functions/secrets.d.ts.map +1 -0
  181. package/resources/functions/secrets.js +61 -0
  182. package/resources/functions/secrets.js.map +1 -0
  183. package/resources/functions/secrets.mjs +57 -0
  184. package/resources/functions/secrets.mjs.map +1 -0
  185. package/resources/functions.d.mts +2 -0
  186. package/resources/functions.d.mts.map +1 -0
  187. package/resources/functions.d.ts +2 -0
  188. package/resources/functions.d.ts.map +1 -0
  189. package/resources/functions.js +6 -0
  190. package/resources/functions.js.map +1 -0
  191. package/resources/functions.mjs +3 -0
  192. package/resources/functions.mjs.map +1 -0
  193. package/resources/index.d.mts +13 -3
  194. package/resources/index.d.mts.map +1 -1
  195. package/resources/index.d.ts +13 -3
  196. package/resources/index.d.ts.map +1 -1
  197. package/resources/index.js +22 -2
  198. package/resources/index.js.map +1 -1
  199. package/resources/index.mjs +11 -1
  200. package/resources/index.mjs.map +1 -1
  201. package/resources/introspect.d.mts.map +1 -1
  202. package/resources/introspect.d.ts.map +1 -1
  203. package/resources/introspect.mjs.map +1 -1
  204. package/resources/invitations.d.mts +133 -0
  205. package/resources/invitations.d.mts.map +1 -0
  206. package/resources/invitations.d.ts +133 -0
  207. package/resources/invitations.d.ts.map +1 -0
  208. package/resources/invitations.js +67 -0
  209. package/resources/invitations.js.map +1 -0
  210. package/resources/invitations.mjs +63 -0
  211. package/resources/invitations.mjs.map +1 -0
  212. package/resources/me.d.mts +34 -0
  213. package/resources/me.d.mts.map +1 -0
  214. package/resources/me.d.ts +34 -0
  215. package/resources/me.d.ts.map +1 -0
  216. package/resources/me.js +16 -0
  217. package/resources/me.js.map +1 -0
  218. package/resources/me.mjs +12 -0
  219. package/resources/me.mjs.map +1 -0
  220. package/resources/messages.d.mts +112 -7
  221. package/resources/messages.d.mts.map +1 -1
  222. package/resources/messages.d.ts +112 -7
  223. package/resources/messages.d.ts.map +1 -1
  224. package/resources/messages.js +24 -0
  225. package/resources/messages.js.map +1 -1
  226. package/resources/messages.mjs +24 -0
  227. package/resources/messages.mjs.map +1 -1
  228. package/resources/number-10dlc/brands.d.mts +258 -0
  229. package/resources/number-10dlc/brands.d.mts.map +1 -0
  230. package/resources/number-10dlc/brands.d.ts +258 -0
  231. package/resources/number-10dlc/brands.d.ts.map +1 -0
  232. package/resources/number-10dlc/brands.js +132 -0
  233. package/resources/number-10dlc/brands.js.map +1 -0
  234. package/resources/number-10dlc/brands.mjs +128 -0
  235. package/resources/number-10dlc/brands.mjs.map +1 -0
  236. package/resources/number-10dlc/campaigns/campaigns.d.mts +223 -0
  237. package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -0
  238. package/resources/number-10dlc/campaigns/campaigns.d.ts +223 -0
  239. package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -0
  240. package/resources/number-10dlc/campaigns/campaigns.js +133 -0
  241. package/resources/number-10dlc/campaigns/campaigns.js.map +1 -0
  242. package/resources/number-10dlc/campaigns/campaigns.mjs +128 -0
  243. package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -0
  244. package/resources/number-10dlc/campaigns/index.d.mts +3 -0
  245. package/resources/number-10dlc/campaigns/index.d.mts.map +1 -0
  246. package/resources/number-10dlc/campaigns/index.d.ts +3 -0
  247. package/resources/number-10dlc/campaigns/index.d.ts.map +1 -0
  248. package/resources/number-10dlc/campaigns/index.js +9 -0
  249. package/resources/number-10dlc/campaigns/index.js.map +1 -0
  250. package/resources/number-10dlc/campaigns/index.mjs +4 -0
  251. package/resources/number-10dlc/campaigns/index.mjs.map +1 -0
  252. package/resources/number-10dlc/campaigns/phone-numbers.d.mts +79 -0
  253. package/resources/number-10dlc/campaigns/phone-numbers.d.mts.map +1 -0
  254. package/resources/number-10dlc/campaigns/phone-numbers.d.ts +79 -0
  255. package/resources/number-10dlc/campaigns/phone-numbers.d.ts.map +1 -0
  256. package/resources/number-10dlc/campaigns/phone-numbers.js +59 -0
  257. package/resources/number-10dlc/campaigns/phone-numbers.js.map +1 -0
  258. package/resources/number-10dlc/campaigns/phone-numbers.mjs +55 -0
  259. package/resources/number-10dlc/campaigns/phone-numbers.mjs.map +1 -0
  260. package/resources/number-10dlc/campaigns.d.mts +2 -0
  261. package/resources/number-10dlc/campaigns.d.mts.map +1 -0
  262. package/resources/number-10dlc/campaigns.d.ts +2 -0
  263. package/resources/number-10dlc/campaigns.d.ts.map +1 -0
  264. package/resources/number-10dlc/campaigns.js +6 -0
  265. package/resources/number-10dlc/campaigns.js.map +1 -0
  266. package/resources/number-10dlc/campaigns.mjs +3 -0
  267. package/resources/number-10dlc/campaigns.mjs.map +1 -0
  268. package/resources/number-10dlc/index.d.mts +4 -0
  269. package/resources/number-10dlc/index.d.mts.map +1 -0
  270. package/resources/number-10dlc/index.d.ts +4 -0
  271. package/resources/number-10dlc/index.d.ts.map +1 -0
  272. package/resources/number-10dlc/index.js +11 -0
  273. package/resources/number-10dlc/index.js.map +1 -0
  274. package/resources/number-10dlc/index.mjs +5 -0
  275. package/resources/number-10dlc/index.mjs.map +1 -0
  276. package/resources/number-10dlc/number-10dlc.d.mts +14 -0
  277. package/resources/number-10dlc/number-10dlc.d.mts.map +1 -0
  278. package/resources/number-10dlc/number-10dlc.d.ts +14 -0
  279. package/resources/number-10dlc/number-10dlc.d.ts.map +1 -0
  280. package/resources/number-10dlc/number-10dlc.js +21 -0
  281. package/resources/number-10dlc/number-10dlc.js.map +1 -0
  282. package/resources/number-10dlc/number-10dlc.mjs +16 -0
  283. package/resources/number-10dlc/number-10dlc.mjs.map +1 -0
  284. package/resources/number-10dlc.d.mts +2 -0
  285. package/resources/number-10dlc.d.mts.map +1 -0
  286. package/resources/number-10dlc.d.ts +2 -0
  287. package/resources/number-10dlc.d.ts.map +1 -0
  288. package/resources/number-10dlc.js +6 -0
  289. package/resources/number-10dlc.js.map +1 -0
  290. package/resources/number-10dlc.mjs +3 -0
  291. package/resources/number-10dlc.mjs.map +1 -0
  292. package/resources/phone-numbers.d.mts.map +1 -1
  293. package/resources/phone-numbers.d.ts.map +1 -1
  294. package/resources/phone-numbers.mjs.map +1 -1
  295. package/resources/plan.d.mts +43 -0
  296. package/resources/plan.d.mts.map +1 -0
  297. package/resources/plan.d.ts +43 -0
  298. package/resources/plan.d.ts.map +1 -0
  299. package/resources/plan.js +16 -0
  300. package/resources/plan.js.map +1 -0
  301. package/resources/plan.mjs +12 -0
  302. package/resources/plan.mjs.map +1 -0
  303. package/resources/regulatory-documents.d.mts.map +1 -1
  304. package/resources/regulatory-documents.d.ts.map +1 -1
  305. package/resources/regulatory-documents.mjs.map +1 -1
  306. package/resources/senders/agent/agent.d.mts +6 -6
  307. package/resources/senders/agent/agent.d.mts.map +1 -1
  308. package/resources/senders/agent/agent.d.ts +6 -6
  309. package/resources/senders/agent/agent.d.ts.map +1 -1
  310. package/resources/senders/agent/agent.js.map +1 -1
  311. package/resources/senders/agent/agent.mjs +1 -1
  312. package/resources/senders/agent/agent.mjs.map +1 -1
  313. package/resources/senders/agent/executions.d.mts +22 -1
  314. package/resources/senders/agent/executions.d.mts.map +1 -1
  315. package/resources/senders/agent/executions.d.ts +22 -1
  316. package/resources/senders/agent/executions.d.ts.map +1 -1
  317. package/resources/senders/agent/executions.js +17 -0
  318. package/resources/senders/agent/executions.js.map +1 -1
  319. package/resources/senders/agent/executions.mjs +17 -0
  320. package/resources/senders/agent/executions.mjs.map +1 -1
  321. package/resources/senders/agent/flows.d.mts +40 -114
  322. package/resources/senders/agent/flows.d.mts.map +1 -1
  323. package/resources/senders/agent/flows.d.ts +40 -114
  324. package/resources/senders/agent/flows.d.ts.map +1 -1
  325. package/resources/senders/agent/flows.mjs.map +1 -1
  326. package/resources/senders/agent/index.d.mts +3 -3
  327. package/resources/senders/agent/index.d.mts.map +1 -1
  328. package/resources/senders/agent/index.d.ts +3 -3
  329. package/resources/senders/agent/index.d.ts.map +1 -1
  330. package/resources/senders/agent/index.js.map +1 -1
  331. package/resources/senders/agent/index.mjs +1 -1
  332. package/resources/senders/agent/index.mjs.map +1 -1
  333. package/resources/senders/agent/knowledge-bases/documents.d.mts.map +1 -1
  334. package/resources/senders/agent/knowledge-bases/documents.d.ts.map +1 -1
  335. package/resources/senders/agent/knowledge-bases/documents.mjs.map +1 -1
  336. package/resources/senders/agent/knowledge-bases/index.d.mts.map +1 -1
  337. package/resources/senders/agent/knowledge-bases/index.d.ts.map +1 -1
  338. package/resources/senders/agent/knowledge-bases/index.mjs.map +1 -1
  339. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts.map +1 -1
  340. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts.map +1 -1
  341. package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs.map +1 -1
  342. package/resources/senders/agent/knowledge-bases.d.mts.map +1 -1
  343. package/resources/senders/agent/knowledge-bases.d.ts.map +1 -1
  344. package/resources/senders/agent/knowledge-bases.mjs.map +1 -1
  345. package/resources/senders/agent/tools.d.mts +15 -47
  346. package/resources/senders/agent/tools.d.mts.map +1 -1
  347. package/resources/senders/agent/tools.d.ts +15 -47
  348. package/resources/senders/agent/tools.d.ts.map +1 -1
  349. package/resources/senders/agent/tools.mjs.map +1 -1
  350. package/resources/senders/agent.d.mts.map +1 -1
  351. package/resources/senders/agent.d.ts.map +1 -1
  352. package/resources/senders/agent.mjs.map +1 -1
  353. package/resources/senders/index.d.mts +1 -0
  354. package/resources/senders/index.d.mts.map +1 -1
  355. package/resources/senders/index.d.ts +1 -0
  356. package/resources/senders/index.d.ts.map +1 -1
  357. package/resources/senders/index.js +3 -1
  358. package/resources/senders/index.js.map +1 -1
  359. package/resources/senders/index.mjs +1 -0
  360. package/resources/senders/index.mjs.map +1 -1
  361. package/resources/senders/senders.d.mts +24 -1
  362. package/resources/senders/senders.d.mts.map +1 -1
  363. package/resources/senders/senders.d.ts +24 -1
  364. package/resources/senders/senders.d.ts.map +1 -1
  365. package/resources/senders/senders.js +4 -0
  366. package/resources/senders/senders.js.map +1 -1
  367. package/resources/senders/senders.mjs +4 -0
  368. package/resources/senders/senders.mjs.map +1 -1
  369. package/resources/senders/whatsapp-sync.d.mts +134 -0
  370. package/resources/senders/whatsapp-sync.d.mts.map +1 -0
  371. package/resources/senders/whatsapp-sync.d.ts +134 -0
  372. package/resources/senders/whatsapp-sync.d.ts.map +1 -0
  373. package/resources/senders/whatsapp-sync.js +56 -0
  374. package/resources/senders/whatsapp-sync.js.map +1 -0
  375. package/resources/senders/whatsapp-sync.mjs +52 -0
  376. package/resources/senders/whatsapp-sync.mjs.map +1 -0
  377. package/resources/senders.d.mts.map +1 -1
  378. package/resources/senders.d.ts.map +1 -1
  379. package/resources/senders.mjs.map +1 -1
  380. package/resources/sub-accounts/api-keys.d.mts +88 -0
  381. package/resources/sub-accounts/api-keys.d.mts.map +1 -0
  382. package/resources/sub-accounts/api-keys.d.ts +88 -0
  383. package/resources/sub-accounts/api-keys.d.ts.map +1 -0
  384. package/resources/sub-accounts/api-keys.js +56 -0
  385. package/resources/sub-accounts/api-keys.js.map +1 -0
  386. package/resources/sub-accounts/api-keys.mjs +52 -0
  387. package/resources/sub-accounts/api-keys.mjs.map +1 -0
  388. package/resources/sub-accounts/index.d.mts +3 -0
  389. package/resources/sub-accounts/index.d.mts.map +1 -0
  390. package/resources/sub-accounts/index.d.ts +3 -0
  391. package/resources/sub-accounts/index.d.ts.map +1 -0
  392. package/resources/sub-accounts/index.js +9 -0
  393. package/resources/sub-accounts/index.js.map +1 -0
  394. package/resources/sub-accounts/index.mjs +4 -0
  395. package/resources/sub-accounts/index.mjs.map +1 -0
  396. package/resources/sub-accounts/sub-accounts.d.mts +174 -0
  397. package/resources/sub-accounts/sub-accounts.d.mts.map +1 -0
  398. package/resources/sub-accounts/sub-accounts.d.ts +174 -0
  399. package/resources/sub-accounts/sub-accounts.d.ts.map +1 -0
  400. package/resources/sub-accounts/sub-accounts.js +100 -0
  401. package/resources/sub-accounts/sub-accounts.js.map +1 -0
  402. package/resources/sub-accounts/sub-accounts.mjs +95 -0
  403. package/resources/sub-accounts/sub-accounts.mjs.map +1 -0
  404. package/resources/sub-accounts.d.mts +2 -0
  405. package/resources/sub-accounts.d.mts.map +1 -0
  406. package/resources/sub-accounts.d.ts +2 -0
  407. package/resources/sub-accounts.d.ts.map +1 -0
  408. package/resources/sub-accounts.js +6 -0
  409. package/resources/sub-accounts.js.map +1 -0
  410. package/resources/sub-accounts.mjs +3 -0
  411. package/resources/sub-accounts.mjs.map +1 -0
  412. package/resources/templates.d.mts +58 -2
  413. package/resources/templates.d.mts.map +1 -1
  414. package/resources/templates.d.ts +58 -2
  415. package/resources/templates.d.ts.map +1 -1
  416. package/resources/templates.mjs.map +1 -1
  417. package/resources/urls.d.mts +88 -0
  418. package/resources/urls.d.mts.map +1 -0
  419. package/resources/urls.d.ts +88 -0
  420. package/resources/urls.d.ts.map +1 -0
  421. package/resources/urls.js +55 -0
  422. package/resources/urls.js.map +1 -0
  423. package/resources/urls.mjs +51 -0
  424. package/resources/urls.mjs.map +1 -0
  425. package/resources/usage.d.mts +36 -0
  426. package/resources/usage.d.mts.map +1 -0
  427. package/resources/usage.d.ts +36 -0
  428. package/resources/usage.d.ts.map +1 -0
  429. package/resources/usage.js +16 -0
  430. package/resources/usage.js.map +1 -0
  431. package/resources/usage.mjs +12 -0
  432. package/resources/usage.mjs.map +1 -0
  433. package/resources.d.mts.map +1 -1
  434. package/resources.d.ts.map +1 -1
  435. package/resources.mjs.map +1 -1
  436. package/src/client.ts +182 -6
  437. package/src/internal/types.ts +6 -8
  438. package/src/internal/utils/env.ts +2 -2
  439. package/src/internal/utils/log.ts +2 -0
  440. package/src/resources/balance.ts +43 -0
  441. package/src/resources/broadcasts/broadcasts.ts +50 -1
  442. package/src/resources/broadcasts/contacts.ts +8 -1
  443. package/src/resources/broadcasts/index.ts +2 -0
  444. package/src/resources/contacts/channels.ts +177 -0
  445. package/src/resources/contacts/contacts.ts +380 -0
  446. package/src/resources/contacts/index.ts +22 -0
  447. package/src/resources/contacts.ts +1 -196
  448. package/src/resources/exports.ts +141 -0
  449. package/src/resources/functions/functions.ts +562 -0
  450. package/src/resources/functions/index.ts +23 -0
  451. package/src/resources/functions/secrets.ts +112 -0
  452. package/src/resources/functions.ts +3 -0
  453. package/src/resources/index.ts +68 -1
  454. package/src/resources/invitations.ts +188 -0
  455. package/src/resources/me.ts +49 -0
  456. package/src/resources/messages.ts +140 -4
  457. package/src/resources/number-10dlc/brands.ts +377 -0
  458. package/src/resources/number-10dlc/campaigns/campaigns.ts +349 -0
  459. package/src/resources/number-10dlc/campaigns/index.ts +23 -0
  460. package/src/resources/number-10dlc/campaigns/phone-numbers.ts +123 -0
  461. package/src/resources/number-10dlc/campaigns.ts +3 -0
  462. package/src/resources/number-10dlc/index.ts +30 -0
  463. package/src/resources/number-10dlc/number-10dlc.ts +71 -0
  464. package/src/resources/number-10dlc.ts +3 -0
  465. package/src/resources/plan.ts +62 -0
  466. package/src/resources/senders/agent/agent.ts +18 -2
  467. package/src/resources/senders/agent/executions.ts +36 -1
  468. package/src/resources/senders/agent/flows.ts +44 -126
  469. package/src/resources/senders/agent/index.ts +9 -1
  470. package/src/resources/senders/agent/tools.ts +13 -50
  471. package/src/resources/senders/index.ts +9 -0
  472. package/src/resources/senders/senders.ts +47 -1
  473. package/src/resources/senders/whatsapp-sync.ts +175 -0
  474. package/src/resources/sub-accounts/api-keys.ts +129 -0
  475. package/src/resources/sub-accounts/index.ts +22 -0
  476. package/src/resources/sub-accounts/sub-accounts.ts +252 -0
  477. package/src/resources/sub-accounts.ts +3 -0
  478. package/src/resources/templates.ts +69 -2
  479. package/src/resources/urls.ts +125 -0
  480. package/src/resources/usage.ts +48 -0
  481. package/src/version.ts +1 -1
  482. package/uploads.d.mts +1 -0
  483. package/uploads.d.mts.map +1 -1
  484. package/uploads.d.ts +1 -0
  485. package/uploads.d.ts.map +1 -1
  486. package/uploads.mjs +1 -0
  487. package/uploads.mjs.map +1 -1
  488. package/version.d.mts +1 -1
  489. package/version.d.ts +1 -1
  490. package/version.js +1 -1
  491. package/version.mjs +1 -1
@@ -0,0 +1,137 @@
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.Contacts = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const ChannelsAPI = tslib_1.__importStar(require("./channels.js"));
8
+ const channels_1 = require("./channels.js");
9
+ const pagination_1 = require("../../core/pagination.js");
10
+ const headers_1 = require("../../internal/headers.js");
11
+ const path_1 = require("../../internal/utils/path.js");
12
+ class Contacts extends resource_1.APIResource {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.channels = new ChannelsAPI.Channels(this._client);
16
+ }
17
+ /**
18
+ * Create a new contact with one or more communication channels.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const contact = await client.contacts.create({
23
+ * channels: [
24
+ * {
25
+ * channel: 'sms',
26
+ * identifier: '+14155551234',
27
+ * isPrimary: true,
28
+ * },
29
+ * ],
30
+ * displayName: 'John Doe',
31
+ * });
32
+ * ```
33
+ */
34
+ create(body, options) {
35
+ return this._client.post('/v1/contacts', { body, ...options });
36
+ }
37
+ /**
38
+ * Get contact
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const contact = await client.contacts.retrieve('contactId');
43
+ * ```
44
+ */
45
+ retrieve(contactID, options) {
46
+ return this._client.get((0, path_1.path) `/v1/contacts/${contactID}`, options);
47
+ }
48
+ /**
49
+ * Update contact
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const contact = await client.contacts.update('contactId');
54
+ * ```
55
+ */
56
+ update(contactID, body, options) {
57
+ return this._client.patch((0, path_1.path) `/v1/contacts/${contactID}`, { body, ...options });
58
+ }
59
+ /**
60
+ * List contacts with their communication channels.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * // Automatically fetches more pages as needed.
65
+ * for await (const contact of client.contacts.list()) {
66
+ * // ...
67
+ * }
68
+ * ```
69
+ */
70
+ list(query = {}, options) {
71
+ return this._client.getAPIList('/v1/contacts', (pagination_1.Cursor), { query, ...options });
72
+ }
73
+ /**
74
+ * Permanently delete a contact and its communication channels. Implements
75
+ * right-to-erasure obligations under GDPR Art. 17, Ley 19.628 (Chile) Art. 12,
76
+ * CCPA § 1798.105, and LGPD Art. 18.VI. The contact, its channels, and any
77
+ * associated agent flow sessions and conversation threads are removed. Past
78
+ * message records and broadcast delivery logs are retained for billing/audit but
79
+ * no longer reference the deleted contact.
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * await client.contacts.delete('contactId');
84
+ * ```
85
+ */
86
+ delete(contactID, options) {
87
+ return this._client.delete((0, path_1.path) `/v1/contacts/${contactID}`, {
88
+ ...options,
89
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
90
+ });
91
+ }
92
+ /**
93
+ * Dismiss the merge suggestion for a contact.
94
+ *
95
+ * @example
96
+ * ```ts
97
+ * await client.contacts.dismissMergeSuggestion('contactId');
98
+ * ```
99
+ */
100
+ dismissMergeSuggestion(contactID, options) {
101
+ return this._client.delete((0, path_1.path) `/v1/contacts/${contactID}/merge-suggestion`, {
102
+ ...options,
103
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
104
+ });
105
+ }
106
+ /**
107
+ * Merge a source contact into this contact. All channels from the source contact
108
+ * will be moved to the target contact, and the source contact will be marked as
109
+ * merged.
110
+ *
111
+ * @example
112
+ * ```ts
113
+ * const contact = await client.contacts.merge('contactId', {
114
+ * sourceContactId: 'jx7xyz789',
115
+ * });
116
+ * ```
117
+ */
118
+ merge(contactID, body, options) {
119
+ return this._client.post((0, path_1.path) `/v1/contacts/${contactID}/merge`, { body, ...options });
120
+ }
121
+ /**
122
+ * Get contact by phone number
123
+ *
124
+ * @example
125
+ * ```ts
126
+ * const contact = await client.contacts.retrieveByPhone(
127
+ * 'phoneNumber',
128
+ * );
129
+ * ```
130
+ */
131
+ retrieveByPhone(phoneNumber, options) {
132
+ return this._client.get((0, path_1.path) `/v1/contacts/phone/${phoneNumber}`, options);
133
+ }
134
+ }
135
+ exports.Contacts = Contacts;
136
+ Contacts.Channels = channels_1.Channels;
137
+ //# sourceMappingURL=contacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/contacts/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,mEAA0C;AAC1C,4CASoB;AAEpB,yDAA+E;AAC/E,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiI1E,CAAC;IA/HC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,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enAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as ChannelsAPI from "./channels.mjs";
4
+ import { Channels, } from "./channels.mjs";
5
+ import { Cursor } from "../../core/pagination.mjs";
6
+ import { buildHeaders } from "../../internal/headers.mjs";
7
+ import { path } from "../../internal/utils/path.mjs";
8
+ export class Contacts extends APIResource {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.channels = new ChannelsAPI.Channels(this._client);
12
+ }
13
+ /**
14
+ * Create a new contact with one or more communication channels.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const contact = await client.contacts.create({
19
+ * channels: [
20
+ * {
21
+ * channel: 'sms',
22
+ * identifier: '+14155551234',
23
+ * isPrimary: true,
24
+ * },
25
+ * ],
26
+ * displayName: 'John Doe',
27
+ * });
28
+ * ```
29
+ */
30
+ create(body, options) {
31
+ return this._client.post('/v1/contacts', { body, ...options });
32
+ }
33
+ /**
34
+ * Get contact
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const contact = await client.contacts.retrieve('contactId');
39
+ * ```
40
+ */
41
+ retrieve(contactID, options) {
42
+ return this._client.get(path `/v1/contacts/${contactID}`, options);
43
+ }
44
+ /**
45
+ * Update contact
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const contact = await client.contacts.update('contactId');
50
+ * ```
51
+ */
52
+ update(contactID, body, options) {
53
+ return this._client.patch(path `/v1/contacts/${contactID}`, { body, ...options });
54
+ }
55
+ /**
56
+ * List contacts with their communication channels.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * // Automatically fetches more pages as needed.
61
+ * for await (const contact of client.contacts.list()) {
62
+ * // ...
63
+ * }
64
+ * ```
65
+ */
66
+ list(query = {}, options) {
67
+ return this._client.getAPIList('/v1/contacts', (Cursor), { query, ...options });
68
+ }
69
+ /**
70
+ * Permanently delete a contact and its communication channels. Implements
71
+ * right-to-erasure obligations under GDPR Art. 17, Ley 19.628 (Chile) Art. 12,
72
+ * CCPA § 1798.105, and LGPD Art. 18.VI. The contact, its channels, and any
73
+ * associated agent flow sessions and conversation threads are removed. Past
74
+ * message records and broadcast delivery logs are retained for billing/audit but
75
+ * no longer reference the deleted contact.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * await client.contacts.delete('contactId');
80
+ * ```
81
+ */
82
+ delete(contactID, options) {
83
+ return this._client.delete(path `/v1/contacts/${contactID}`, {
84
+ ...options,
85
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
86
+ });
87
+ }
88
+ /**
89
+ * Dismiss the merge suggestion for a contact.
90
+ *
91
+ * @example
92
+ * ```ts
93
+ * await client.contacts.dismissMergeSuggestion('contactId');
94
+ * ```
95
+ */
96
+ dismissMergeSuggestion(contactID, options) {
97
+ return this._client.delete(path `/v1/contacts/${contactID}/merge-suggestion`, {
98
+ ...options,
99
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
100
+ });
101
+ }
102
+ /**
103
+ * Merge a source contact into this contact. All channels from the source contact
104
+ * will be moved to the target contact, and the source contact will be marked as
105
+ * merged.
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * const contact = await client.contacts.merge('contactId', {
110
+ * sourceContactId: 'jx7xyz789',
111
+ * });
112
+ * ```
113
+ */
114
+ merge(contactID, body, options) {
115
+ return this._client.post(path `/v1/contacts/${contactID}/merge`, { body, ...options });
116
+ }
117
+ /**
118
+ * Get contact by phone number
119
+ *
120
+ * @example
121
+ * ```ts
122
+ * const contact = await client.contacts.retrieveByPhone(
123
+ * 'phoneNumber',
124
+ * );
125
+ * ```
126
+ */
127
+ retrieveByPhone(phoneNumber, options) {
128
+ return this._client.get(path `/v1/contacts/phone/${phoneNumber}`, options);
129
+ }
130
+ }
131
+ Contacts.Channels = Channels;
132
+ //# sourceMappingURL=contacts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../../src/resources/contacts/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,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I,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,sBAAsB,CAAC,SAAiB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,SAAS,mBAAmB,EAAE;YAC3E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,SAAiB,EAAE,IAAwB,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CAAC,WAAmB,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AA8MD,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Channels, type ChannelUpdateResponse, type ChannelAddResponse, type ChannelSetPrimaryResponse, type ChannelUpdateParams, type ChannelAddParams, type ChannelRemoveParams, type ChannelSetPrimaryParams, } from "./channels.mjs";
2
+ export { Contacts, type Contact, type ContactChannel, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactMergeParams, type ContactsCursor, } from "./contacts.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,GAC7B,uBAAmB;AACpB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,uBAAmB"}
@@ -0,0 +1,3 @@
1
+ export { Channels, type ChannelUpdateResponse, type ChannelAddResponse, type ChannelSetPrimaryResponse, type ChannelUpdateParams, type ChannelAddParams, type ChannelRemoveParams, type ChannelSetPrimaryParams, } from "./channels.js";
2
+ export { Contacts, type Contact, type ContactChannel, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactMergeParams, type ContactsCursor, } from "./contacts.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,GAC7B,sBAAmB;AACpB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,sBAAmB"}
@@ -0,0 +1,9 @@
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.Contacts = exports.Channels = void 0;
5
+ var channels_1 = require("./channels.js");
6
+ Object.defineProperty(exports, "Channels", { enumerable: true, get: function () { return channels_1.Channels; } });
7
+ var contacts_1 = require("./contacts.js");
8
+ Object.defineProperty(exports, "Contacts", { enumerable: true, get: function () { return contacts_1.Contacts; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,0CASoB;AARlB,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Channels, } from "./channels.mjs";
3
+ export { Contacts, } from "./contacts.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAQT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAQT,uBAAmB"}
@@ -1,145 +1,2 @@
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 Contacts extends APIResource {
6
- /**
7
- * Get contact
8
- */
9
- retrieve(contactID: string, options?: RequestOptions): APIPromise<Contact>;
10
- /**
11
- * Update contact
12
- */
13
- update(contactID: string, body: ContactUpdateParams, options?: RequestOptions): APIPromise<Contact>;
14
- /**
15
- * List contacts with their communication channels.
16
- */
17
- list(query?: ContactListParams | null | undefined, options?: RequestOptions): PagePromise<ContactsCursor, Contact>;
18
- /**
19
- * Get contact by phone number
20
- */
21
- retrieveByPhone(phoneNumber: string, options?: RequestOptions): APIPromise<Contact>;
22
- }
23
- export type ContactsCursor = Cursor<Contact>;
24
- export interface Contact {
25
- id: string;
26
- /**
27
- * List of available messaging channels for this contact.
28
- */
29
- availableChannels: Array<string>;
30
- createdAt: string;
31
- metadata: {
32
- [key: string]: string;
33
- };
34
- /**
35
- * Whether this contact has been verified.
36
- */
37
- verified: boolean;
38
- /**
39
- * All communication channels for this contact.
40
- */
41
- channels?: Array<Contact.Channel>;
42
- countryCode?: string;
43
- /**
44
- * Preferred channel for this contact.
45
- */
46
- defaultChannel?: 'sms' | 'whatsapp' | 'telegram' | 'email' | 'instagram' | 'voice';
47
- /**
48
- * Display name for the contact.
49
- */
50
- displayName?: string;
51
- /**
52
- * DEPRECATED: Use primaryPhone instead. Primary phone number in E.164 format.
53
- */
54
- phoneNumber?: string;
55
- /**
56
- * Primary email address.
57
- */
58
- primaryEmail?: string;
59
- /**
60
- * Primary phone number in E.164 format.
61
- */
62
- primaryPhone?: string;
63
- /**
64
- * Contact's WhatsApp profile name. Only available for WhatsApp contacts.
65
- */
66
- profileName?: string | null;
67
- /**
68
- * ID of a contact suggested for merging.
69
- */
70
- suggestedMergeWith?: string;
71
- updatedAt?: string;
72
- }
73
- export declare namespace Contact {
74
- /**
75
- * A communication channel for a contact.
76
- */
77
- interface Channel {
78
- id: string;
79
- /**
80
- * Channel type.
81
- */
82
- channel: 'sms' | 'whatsapp' | 'email' | 'telegram' | 'voice';
83
- createdAt: string;
84
- /**
85
- * Channel identifier (phone number or email address).
86
- */
87
- identifier: string;
88
- /**
89
- * Whether this is the primary channel for its type.
90
- */
91
- isPrimary: boolean;
92
- /**
93
- * Whether this channel has been verified.
94
- */
95
- verified: boolean;
96
- /**
97
- * ISO country code for phone numbers.
98
- */
99
- countryCode?: string;
100
- /**
101
- * Optional label for the channel.
102
- */
103
- label?: string;
104
- /**
105
- * Last time a message was received on this channel.
106
- */
107
- lastInboundAt?: string;
108
- metadata?: {
109
- [key: string]: string;
110
- };
111
- /**
112
- * Delivery metrics for this channel.
113
- */
114
- metrics?: Channel.Metrics;
115
- updatedAt?: string;
116
- }
117
- namespace Channel {
118
- /**
119
- * Delivery metrics for this channel.
120
- */
121
- interface Metrics {
122
- avgDeliveryTimeMs?: number;
123
- failureCount?: number;
124
- lastSuccessAt?: string;
125
- successCount?: number;
126
- totalAttempts?: number;
127
- }
128
- }
129
- }
130
- export interface ContactUpdateParams {
131
- /**
132
- * Preferred channel for this contact. Set to null to clear.
133
- */
134
- defaultChannel?: 'sms' | 'whatsapp' | 'telegram' | 'email' | 'instagram' | 'voice' | null;
135
- metadata?: {
136
- [key: string]: string;
137
- };
138
- }
139
- export interface ContactListParams extends CursorParams {
140
- phoneNumber?: string;
141
- }
142
- export declare namespace Contacts {
143
- export { type Contact as Contact, type ContactsCursor as ContactsCursor, type ContactUpdateParams as ContactUpdateParams, type ContactListParams as ContactListParams, };
144
- }
1
+ export * from "./contacts/index.mjs";
145
2
  //# sourceMappingURL=contacts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../src/resources/contacts.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,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInG;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI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I,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
1
+ {"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":"AAEA,qCAAiC"}
@@ -1,145 +1,2 @@
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 Contacts extends APIResource {
6
- /**
7
- * Get contact
8
- */
9
- retrieve(contactID: string, options?: RequestOptions): APIPromise<Contact>;
10
- /**
11
- * Update contact
12
- */
13
- update(contactID: string, body: ContactUpdateParams, options?: RequestOptions): APIPromise<Contact>;
14
- /**
15
- * List contacts with their communication channels.
16
- */
17
- list(query?: ContactListParams | null | undefined, options?: RequestOptions): PagePromise<ContactsCursor, Contact>;
18
- /**
19
- * Get contact by phone number
20
- */
21
- retrieveByPhone(phoneNumber: string, options?: RequestOptions): APIPromise<Contact>;
22
- }
23
- export type ContactsCursor = Cursor<Contact>;
24
- export interface Contact {
25
- id: string;
26
- /**
27
- * List of available messaging channels for this contact.
28
- */
29
- availableChannels: Array<string>;
30
- createdAt: string;
31
- metadata: {
32
- [key: string]: string;
33
- };
34
- /**
35
- * Whether this contact has been verified.
36
- */
37
- verified: boolean;
38
- /**
39
- * All communication channels for this contact.
40
- */
41
- channels?: Array<Contact.Channel>;
42
- countryCode?: string;
43
- /**
44
- * Preferred channel for this contact.
45
- */
46
- defaultChannel?: 'sms' | 'whatsapp' | 'telegram' | 'email' | 'instagram' | 'voice';
47
- /**
48
- * Display name for the contact.
49
- */
50
- displayName?: string;
51
- /**
52
- * DEPRECATED: Use primaryPhone instead. Primary phone number in E.164 format.
53
- */
54
- phoneNumber?: string;
55
- /**
56
- * Primary email address.
57
- */
58
- primaryEmail?: string;
59
- /**
60
- * Primary phone number in E.164 format.
61
- */
62
- primaryPhone?: string;
63
- /**
64
- * Contact's WhatsApp profile name. Only available for WhatsApp contacts.
65
- */
66
- profileName?: string | null;
67
- /**
68
- * ID of a contact suggested for merging.
69
- */
70
- suggestedMergeWith?: string;
71
- updatedAt?: string;
72
- }
73
- export declare namespace Contact {
74
- /**
75
- * A communication channel for a contact.
76
- */
77
- interface Channel {
78
- id: string;
79
- /**
80
- * Channel type.
81
- */
82
- channel: 'sms' | 'whatsapp' | 'email' | 'telegram' | 'voice';
83
- createdAt: string;
84
- /**
85
- * Channel identifier (phone number or email address).
86
- */
87
- identifier: string;
88
- /**
89
- * Whether this is the primary channel for its type.
90
- */
91
- isPrimary: boolean;
92
- /**
93
- * Whether this channel has been verified.
94
- */
95
- verified: boolean;
96
- /**
97
- * ISO country code for phone numbers.
98
- */
99
- countryCode?: string;
100
- /**
101
- * Optional label for the channel.
102
- */
103
- label?: string;
104
- /**
105
- * Last time a message was received on this channel.
106
- */
107
- lastInboundAt?: string;
108
- metadata?: {
109
- [key: string]: string;
110
- };
111
- /**
112
- * Delivery metrics for this channel.
113
- */
114
- metrics?: Channel.Metrics;
115
- updatedAt?: string;
116
- }
117
- namespace Channel {
118
- /**
119
- * Delivery metrics for this channel.
120
- */
121
- interface Metrics {
122
- avgDeliveryTimeMs?: number;
123
- failureCount?: number;
124
- lastSuccessAt?: string;
125
- successCount?: number;
126
- totalAttempts?: number;
127
- }
128
- }
129
- }
130
- export interface ContactUpdateParams {
131
- /**
132
- * Preferred channel for this contact. Set to null to clear.
133
- */
134
- defaultChannel?: 'sms' | 'whatsapp' | 'telegram' | 'email' | 'instagram' | 'voice' | null;
135
- metadata?: {
136
- [key: string]: string;
137
- };
138
- }
139
- export interface ContactListParams extends CursorParams {
140
- phoneNumber?: string;
141
- }
142
- export declare namespace Contacts {
143
- export { type Contact as Contact, type ContactsCursor as ContactsCursor, type ContactUpdateParams as ContactUpdateParams, type ContactListParams as ContactListParams, };
144
- }
1
+ export * from "./contacts/index.js";
145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,YAAY,CAAC,EAAE,MAAM,CAAC;YAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;YAEvB,YAAY,CAAC,EAAE,MAAM,CAAC;YAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,IAAI,CAAC;IAE1F,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
1
+ {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":"AAEA,oCAAiC"}
@@ -1,35 +1,6 @@
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.Contacts = 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 Contacts extends resource_1.APIResource {
9
- /**
10
- * Get contact
11
- */
12
- retrieve(contactID, options) {
13
- return this._client.get((0, path_1.path) `/v1/contacts/${contactID}`, options);
14
- }
15
- /**
16
- * Update contact
17
- */
18
- update(contactID, body, options) {
19
- return this._client.patch((0, path_1.path) `/v1/contacts/${contactID}`, { body, ...options });
20
- }
21
- /**
22
- * List contacts with their communication channels.
23
- */
24
- list(query = {}, options) {
25
- return this._client.getAPIList('/v1/contacts', (pagination_1.Cursor), { query, ...options });
26
- }
27
- /**
28
- * Get contact by phone number
29
- */
30
- retrieveByPhone(phoneNumber, options) {
31
- return this._client.get((0, path_1.path) `/v1/contacts/phone/${phoneNumber}`, options);
32
- }
33
- }
34
- exports.Contacts = Contacts;
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./contacts/index.js"), exports);
35
6
  //# sourceMappingURL=contacts.js.map