telnyx 7.25.0 → 7.27.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 (708) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +25 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +25 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/addresses/addresses.d.mts +22 -2
  12. package/resources/addresses/addresses.d.mts.map +1 -1
  13. package/resources/addresses/addresses.d.ts +22 -2
  14. package/resources/addresses/addresses.d.ts.map +1 -1
  15. package/resources/addresses/addresses.js +12 -0
  16. package/resources/addresses/addresses.js.map +1 -1
  17. package/resources/addresses/addresses.mjs +12 -0
  18. package/resources/addresses/addresses.mjs.map +1 -1
  19. package/resources/ai/ai.d.mts +16 -7
  20. package/resources/ai/ai.d.mts.map +1 -1
  21. package/resources/ai/ai.d.ts +16 -7
  22. package/resources/ai/ai.d.ts.map +1 -1
  23. package/resources/ai/ai.js +4 -0
  24. package/resources/ai/ai.js.map +1 -1
  25. package/resources/ai/ai.mjs +4 -0
  26. package/resources/ai/ai.mjs.map +1 -1
  27. package/resources/ai/assistants/assistants.d.mts +383 -22
  28. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  29. package/resources/ai/assistants/assistants.d.ts +383 -22
  30. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  31. package/resources/ai/assistants/assistants.js +4 -1
  32. package/resources/ai/assistants/assistants.js.map +1 -1
  33. package/resources/ai/assistants/assistants.mjs +4 -1
  34. package/resources/ai/assistants/assistants.mjs.map +1 -1
  35. package/resources/ai/assistants/index.d.mts +1 -1
  36. package/resources/ai/assistants/index.d.mts.map +1 -1
  37. package/resources/ai/assistants/index.d.ts +1 -1
  38. package/resources/ai/assistants/index.d.ts.map +1 -1
  39. package/resources/ai/assistants/index.js.map +1 -1
  40. package/resources/ai/assistants/index.mjs.map +1 -1
  41. package/resources/ai/assistants/versions.d.mts +18 -1
  42. package/resources/ai/assistants/versions.d.mts.map +1 -1
  43. package/resources/ai/assistants/versions.d.ts +18 -1
  44. package/resources/ai/assistants/versions.d.ts.map +1 -1
  45. package/resources/ai/assistants/versions.js +4 -1
  46. package/resources/ai/assistants/versions.js.map +1 -1
  47. package/resources/ai/assistants/versions.mjs +4 -1
  48. package/resources/ai/assistants/versions.mjs.map +1 -1
  49. package/resources/ai/audio.d.mts +17 -5
  50. package/resources/ai/audio.d.mts.map +1 -1
  51. package/resources/ai/audio.d.ts +17 -5
  52. package/resources/ai/audio.d.ts.map +1 -1
  53. package/resources/ai/avatars.d.mts +200 -0
  54. package/resources/ai/avatars.d.mts.map +1 -0
  55. package/resources/ai/avatars.d.ts +200 -0
  56. package/resources/ai/avatars.d.ts.map +1 -0
  57. package/resources/ai/avatars.js +95 -0
  58. package/resources/ai/avatars.js.map +1 -0
  59. package/resources/ai/avatars.mjs +91 -0
  60. package/resources/ai/avatars.mjs.map +1 -0
  61. package/resources/ai/chat.d.mts +20 -6
  62. package/resources/ai/chat.d.mts.map +1 -1
  63. package/resources/ai/chat.d.ts +20 -6
  64. package/resources/ai/chat.d.ts.map +1 -1
  65. package/resources/ai/conversations/conversations.d.mts +8 -0
  66. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  67. package/resources/ai/conversations/conversations.d.ts +8 -0
  68. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  69. package/resources/ai/conversations/conversations.js.map +1 -1
  70. package/resources/ai/conversations/conversations.mjs.map +1 -1
  71. package/resources/ai/index.d.mts +3 -2
  72. package/resources/ai/index.d.mts.map +1 -1
  73. package/resources/ai/index.d.ts +3 -2
  74. package/resources/ai/index.d.ts.map +1 -1
  75. package/resources/ai/index.js +3 -1
  76. package/resources/ai/index.js.map +1 -1
  77. package/resources/ai/index.mjs +1 -0
  78. package/resources/ai/index.mjs.map +1 -1
  79. package/resources/ai/memory/namespaces/index.d.mts +1 -1
  80. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  81. package/resources/ai/memory/namespaces/index.d.ts +1 -1
  82. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  83. package/resources/ai/memory/namespaces/index.js.map +1 -1
  84. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  85. package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
  86. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  87. package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
  88. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  89. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  90. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  91. package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
  92. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
  93. package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
  94. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
  95. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
  96. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
  97. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
  98. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  99. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
  100. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  101. package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
  102. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  103. package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
  104. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  105. package/resources/ai/openai/chat.d.mts +20 -6
  106. package/resources/ai/openai/chat.d.mts.map +1 -1
  107. package/resources/ai/openai/chat.d.ts +20 -6
  108. package/resources/ai/openai/chat.d.ts.map +1 -1
  109. package/resources/ai/tools.d.mts +30 -2
  110. package/resources/ai/tools.d.mts.map +1 -1
  111. package/resources/ai/tools.d.ts +30 -2
  112. package/resources/ai/tools.d.ts.map +1 -1
  113. package/resources/calls/actions.d.mts +260 -25
  114. package/resources/calls/actions.d.mts.map +1 -1
  115. package/resources/calls/actions.d.ts +260 -25
  116. package/resources/calls/actions.d.ts.map +1 -1
  117. package/resources/calls/calls.d.mts +24 -14
  118. package/resources/calls/calls.d.mts.map +1 -1
  119. package/resources/calls/calls.d.ts +24 -14
  120. package/resources/calls/calls.d.ts.map +1 -1
  121. package/resources/calls/calls.js +8 -0
  122. package/resources/calls/calls.js.map +1 -1
  123. package/resources/calls/calls.mjs +8 -0
  124. package/resources/calls/calls.mjs.map +1 -1
  125. package/resources/calls/index.d.mts +1 -1
  126. package/resources/calls/index.d.mts.map +1 -1
  127. package/resources/calls/index.d.ts +1 -1
  128. package/resources/calls/index.d.ts.map +1 -1
  129. package/resources/calls/index.js.map +1 -1
  130. package/resources/calls/index.mjs.map +1 -1
  131. package/resources/credential-connections/credential-connections.d.mts +38 -8
  132. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  133. package/resources/credential-connections/credential-connections.d.ts +38 -8
  134. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  135. package/resources/credential-connections/credential-connections.js.map +1 -1
  136. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  137. package/resources/dial-metrics.d.mts +151 -0
  138. package/resources/dial-metrics.d.mts.map +1 -0
  139. package/resources/dial-metrics.d.ts +151 -0
  140. package/resources/dial-metrics.d.ts.map +1 -0
  141. package/resources/dial-metrics.js +44 -0
  142. package/resources/dial-metrics.js.map +1 -0
  143. package/resources/dial-metrics.mjs +40 -0
  144. package/resources/dial-metrics.mjs.map +1 -0
  145. package/resources/dir/dir.d.mts +11 -9
  146. package/resources/dir/dir.d.mts.map +1 -1
  147. package/resources/dir/dir.d.ts +11 -9
  148. package/resources/dir/dir.d.ts.map +1 -1
  149. package/resources/dir/dir.js +1 -2
  150. package/resources/dir/dir.js.map +1 -1
  151. package/resources/dir/dir.mjs +1 -2
  152. package/resources/dir/dir.mjs.map +1 -1
  153. package/resources/dir/phone-numbers.d.mts +0 -4
  154. package/resources/dir/phone-numbers.d.mts.map +1 -1
  155. package/resources/dir/phone-numbers.d.ts +0 -4
  156. package/resources/dir/phone-numbers.d.ts.map +1 -1
  157. package/resources/dir/references.d.mts +15 -9
  158. package/resources/dir/references.d.mts.map +1 -1
  159. package/resources/dir/references.d.ts +15 -9
  160. package/resources/dir/references.d.ts.map +1 -1
  161. package/resources/dir/references.js +15 -9
  162. package/resources/dir/references.js.map +1 -1
  163. package/resources/dir/references.mjs +15 -9
  164. package/resources/dir/references.mjs.map +1 -1
  165. package/resources/dir/verify-email.d.mts +17 -5
  166. package/resources/dir/verify-email.d.mts.map +1 -1
  167. package/resources/dir/verify-email.d.ts +17 -5
  168. package/resources/dir/verify-email.d.ts.map +1 -1
  169. package/resources/dir/verify-email.js +17 -5
  170. package/resources/dir/verify-email.js.map +1 -1
  171. package/resources/dir/verify-email.mjs +17 -5
  172. package/resources/dir/verify-email.mjs.map +1 -1
  173. package/resources/email-domains/email-domains.d.mts +1 -1
  174. package/resources/email-domains/email-domains.d.mts.map +1 -1
  175. package/resources/email-domains/email-domains.d.ts +1 -1
  176. package/resources/email-domains/email-domains.d.ts.map +1 -1
  177. package/resources/email-templates.d.mts +109 -18
  178. package/resources/email-templates.d.mts.map +1 -1
  179. package/resources/email-templates.d.ts +109 -18
  180. package/resources/email-templates.d.ts.map +1 -1
  181. package/resources/email-templates.js +5 -1
  182. package/resources/email-templates.js.map +1 -1
  183. package/resources/email-templates.mjs +5 -1
  184. package/resources/email-templates.mjs.map +1 -1
  185. package/resources/enterprises/dir.d.mts +8 -2
  186. package/resources/enterprises/dir.d.mts.map +1 -1
  187. package/resources/enterprises/dir.d.ts +8 -2
  188. package/resources/enterprises/dir.d.ts.map +1 -1
  189. package/resources/enterprises/dir.js +8 -2
  190. package/resources/enterprises/dir.js.map +1 -1
  191. package/resources/enterprises/dir.mjs +8 -2
  192. package/resources/enterprises/dir.mjs.map +1 -1
  193. package/resources/enterprises/enterprises.d.mts +7 -5
  194. package/resources/enterprises/enterprises.d.mts.map +1 -1
  195. package/resources/enterprises/enterprises.d.ts +7 -5
  196. package/resources/enterprises/enterprises.d.ts.map +1 -1
  197. package/resources/enterprises/enterprises.js +5 -3
  198. package/resources/enterprises/enterprises.js.map +1 -1
  199. package/resources/enterprises/enterprises.mjs +5 -3
  200. package/resources/enterprises/enterprises.mjs.map +1 -1
  201. package/resources/enterprises/index.d.mts +1 -1
  202. package/resources/enterprises/index.d.mts.map +1 -1
  203. package/resources/enterprises/index.d.ts +1 -1
  204. package/resources/enterprises/index.d.ts.map +1 -1
  205. package/resources/enterprises/index.js.map +1 -1
  206. package/resources/enterprises/index.mjs.map +1 -1
  207. package/resources/enterprises/reputation/external-verification.d.mts +94 -0
  208. package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
  209. package/resources/enterprises/reputation/external-verification.d.ts +94 -0
  210. package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
  211. package/resources/enterprises/reputation/external-verification.js +54 -0
  212. package/resources/enterprises/reputation/external-verification.js.map +1 -0
  213. package/resources/enterprises/reputation/external-verification.mjs +50 -0
  214. package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
  215. package/resources/enterprises/reputation/index.d.mts +3 -2
  216. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  217. package/resources/enterprises/reputation/index.d.ts +3 -2
  218. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  219. package/resources/enterprises/reputation/index.js +3 -1
  220. package/resources/enterprises/reputation/index.js.map +1 -1
  221. package/resources/enterprises/reputation/index.mjs +1 -0
  222. package/resources/enterprises/reputation/index.mjs.map +1 -1
  223. package/resources/enterprises/reputation/loa.d.mts +3 -2
  224. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  225. package/resources/enterprises/reputation/loa.d.ts +3 -2
  226. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  227. package/resources/enterprises/reputation/numbers.d.mts +197 -4
  228. package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
  229. package/resources/enterprises/reputation/numbers.d.ts +197 -4
  230. package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
  231. package/resources/enterprises/reputation/numbers.js +58 -2
  232. package/resources/enterprises/reputation/numbers.js.map +1 -1
  233. package/resources/enterprises/reputation/numbers.mjs +58 -2
  234. package/resources/enterprises/reputation/numbers.mjs.map +1 -1
  235. package/resources/enterprises/reputation/remediation.d.mts +3 -2
  236. package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
  237. package/resources/enterprises/reputation/remediation.d.ts +3 -2
  238. package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
  239. package/resources/enterprises/reputation/reputation.d.mts +39 -3
  240. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  241. package/resources/enterprises/reputation/reputation.d.ts +39 -3
  242. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  243. package/resources/enterprises/reputation/reputation.js +22 -0
  244. package/resources/enterprises/reputation/reputation.js.map +1 -1
  245. package/resources/enterprises/reputation/reputation.mjs +22 -0
  246. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  247. package/resources/enterprises/verify-email.d.mts +1 -1
  248. package/resources/enterprises/verify-email.d.ts +1 -1
  249. package/resources/enterprises/verify-email.js +1 -1
  250. package/resources/enterprises/verify-email.mjs +1 -1
  251. package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
  252. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  253. package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
  254. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  255. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  256. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  257. package/resources/global-ip-assignment-health.d.mts +4 -4
  258. package/resources/global-ip-assignment-health.d.mts.map +1 -1
  259. package/resources/global-ip-assignment-health.d.ts +4 -4
  260. package/resources/global-ip-assignment-health.d.ts.map +1 -1
  261. package/resources/global-ip-assignments-usage.d.mts +4 -4
  262. package/resources/global-ip-assignments-usage.d.mts.map +1 -1
  263. package/resources/global-ip-assignments-usage.d.ts +4 -4
  264. package/resources/global-ip-assignments-usage.d.ts.map +1 -1
  265. package/resources/index.d.mts +8 -5
  266. package/resources/index.d.mts.map +1 -1
  267. package/resources/index.d.ts +8 -5
  268. package/resources/index.d.ts.map +1 -1
  269. package/resources/index.js +10 -4
  270. package/resources/index.js.map +1 -1
  271. package/resources/index.mjs +3 -0
  272. package/resources/index.mjs.map +1 -1
  273. package/resources/ip-connections.d.mts +36 -6
  274. package/resources/ip-connections.d.mts.map +1 -1
  275. package/resources/ip-connections.d.ts +36 -6
  276. package/resources/ip-connections.d.ts.map +1 -1
  277. package/resources/llm-token-gateway/index.d.mts +4 -1
  278. package/resources/llm-token-gateway/index.d.mts.map +1 -1
  279. package/resources/llm-token-gateway/index.d.ts +4 -1
  280. package/resources/llm-token-gateway/index.d.ts.map +1 -1
  281. package/resources/llm-token-gateway/index.js +7 -1
  282. package/resources/llm-token-gateway/index.js.map +1 -1
  283. package/resources/llm-token-gateway/index.mjs +4 -1
  284. package/resources/llm-token-gateway/index.mjs.map +1 -1
  285. package/resources/llm-token-gateway/llm-token-gateway.d.mts +14 -2
  286. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -1
  287. package/resources/llm-token-gateway/llm-token-gateway.d.ts +14 -2
  288. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -1
  289. package/resources/llm-token-gateway/llm-token-gateway.js +12 -0
  290. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -1
  291. package/resources/llm-token-gateway/llm-token-gateway.mjs +13 -1
  292. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -1
  293. package/resources/llm-token-gateway/spend.d.mts +223 -0
  294. package/resources/llm-token-gateway/spend.d.mts.map +1 -0
  295. package/resources/llm-token-gateway/spend.d.ts +223 -0
  296. package/resources/llm-token-gateway/spend.d.ts.map +1 -0
  297. package/resources/llm-token-gateway/spend.js +56 -0
  298. package/resources/llm-token-gateway/spend.js.map +1 -0
  299. package/resources/llm-token-gateway/spend.mjs +52 -0
  300. package/resources/llm-token-gateway/spend.mjs.map +1 -0
  301. package/resources/llm-token-gateway/token-groups.d.mts +577 -0
  302. package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
  303. package/resources/llm-token-gateway/token-groups.d.ts +577 -0
  304. package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
  305. package/resources/llm-token-gateway/token-groups.js +139 -0
  306. package/resources/llm-token-gateway/token-groups.js.map +1 -0
  307. package/resources/llm-token-gateway/token-groups.mjs +135 -0
  308. package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
  309. package/resources/llm-token-gateway/token-keys.d.mts +318 -0
  310. package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
  311. package/resources/llm-token-gateway/token-keys.d.ts +318 -0
  312. package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
  313. package/resources/llm-token-gateway/token-keys.js +127 -0
  314. package/resources/llm-token-gateway/token-keys.js.map +1 -0
  315. package/resources/llm-token-gateway/token-keys.mjs +123 -0
  316. package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
  317. package/resources/llm-token-gateway/usage.d.mts +205 -146
  318. package/resources/llm-token-gateway/usage.d.mts.map +1 -1
  319. package/resources/llm-token-gateway/usage.d.ts +205 -146
  320. package/resources/llm-token-gateway/usage.d.ts.map +1 -1
  321. package/resources/llm-token-gateway/usage.js +47 -15
  322. package/resources/llm-token-gateway/usage.js.map +1 -1
  323. package/resources/llm-token-gateway/usage.mjs +47 -15
  324. package/resources/llm-token-gateway/usage.mjs.map +1 -1
  325. package/resources/meeting-sessions/actions.d.mts +13 -7
  326. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  327. package/resources/meeting-sessions/actions.d.ts +13 -7
  328. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  329. package/resources/meeting-sessions/actions.js +13 -7
  330. package/resources/meeting-sessions/actions.js.map +1 -1
  331. package/resources/meeting-sessions/actions.mjs +13 -7
  332. package/resources/meeting-sessions/actions.mjs.map +1 -1
  333. package/resources/meeting-sessions/index.d.mts +1 -1
  334. package/resources/meeting-sessions/index.d.mts.map +1 -1
  335. package/resources/meeting-sessions/index.d.ts +1 -1
  336. package/resources/meeting-sessions/index.d.ts.map +1 -1
  337. package/resources/meeting-sessions/index.js.map +1 -1
  338. package/resources/meeting-sessions/index.mjs.map +1 -1
  339. package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
  340. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  341. package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
  342. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  343. package/resources/meeting-sessions/meeting-sessions.js +14 -23
  344. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  345. package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
  346. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  347. package/resources/messages/messages.d.mts +581 -118
  348. package/resources/messages/messages.d.mts.map +1 -1
  349. package/resources/messages/messages.d.ts +581 -118
  350. package/resources/messages/messages.d.ts.map +1 -1
  351. package/resources/messages/messages.js +71 -14
  352. package/resources/messages/messages.js.map +1 -1
  353. package/resources/messages/messages.mjs +71 -14
  354. package/resources/messages/messages.mjs.map +1 -1
  355. package/resources/messages/rcs.d.mts +26 -6
  356. package/resources/messages/rcs.d.mts.map +1 -1
  357. package/resources/messages/rcs.d.ts +26 -6
  358. package/resources/messages/rcs.d.ts.map +1 -1
  359. package/resources/messages/rcs.js +11 -2
  360. package/resources/messages/rcs.js.map +1 -1
  361. package/resources/messages/rcs.mjs +11 -2
  362. package/resources/messages/rcs.mjs.map +1 -1
  363. package/resources/phone-numbers/csv-downloads.d.mts +9 -0
  364. package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
  365. package/resources/phone-numbers/csv-downloads.d.ts +9 -0
  366. package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
  367. package/resources/phone-numbers/csv-downloads.js +5 -2
  368. package/resources/phone-numbers/csv-downloads.js.map +1 -1
  369. package/resources/phone-numbers/csv-downloads.mjs +5 -2
  370. package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
  371. package/resources/phone-numbers/index.d.mts +2 -2
  372. package/resources/phone-numbers/index.d.mts.map +1 -1
  373. package/resources/phone-numbers/index.d.ts +2 -2
  374. package/resources/phone-numbers/index.d.ts.map +1 -1
  375. package/resources/phone-numbers/index.js.map +1 -1
  376. package/resources/phone-numbers/index.mjs.map +1 -1
  377. package/resources/phone-numbers/jobs.d.mts +277 -14
  378. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  379. package/resources/phone-numbers/jobs.d.ts +277 -14
  380. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  381. package/resources/phone-numbers/jobs.js +5 -4
  382. package/resources/phone-numbers/jobs.js.map +1 -1
  383. package/resources/phone-numbers/jobs.mjs +5 -4
  384. package/resources/phone-numbers/jobs.mjs.map +1 -1
  385. package/resources/phone-numbers/phone-numbers.d.mts +28 -3
  386. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  387. package/resources/phone-numbers/phone-numbers.d.ts +28 -3
  388. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  389. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  390. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  391. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  392. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  393. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  394. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  395. package/resources/porting-orders/porting-orders.d.mts +1 -1
  396. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  397. package/resources/porting-orders/porting-orders.d.ts +1 -1
  398. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  399. package/resources/porting-orders/porting-orders.js.map +1 -1
  400. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  401. package/resources/porting-phone-numbers.d.mts +1 -1
  402. package/resources/porting-phone-numbers.d.mts.map +1 -1
  403. package/resources/porting-phone-numbers.d.ts +1 -1
  404. package/resources/porting-phone-numbers.d.ts.map +1 -1
  405. package/resources/reputation/numbers.d.mts +10 -0
  406. package/resources/reputation/numbers.d.mts.map +1 -1
  407. package/resources/reputation/numbers.d.ts +10 -0
  408. package/resources/reputation/numbers.d.ts.map +1 -1
  409. package/resources/shared.d.mts +4 -0
  410. package/resources/shared.d.mts.map +1 -1
  411. package/resources/shared.d.ts +4 -0
  412. package/resources/shared.d.ts.map +1 -1
  413. package/resources/sip-registration-status.d.mts +149 -0
  414. package/resources/sip-registration-status.d.mts.map +1 -0
  415. package/resources/sip-registration-status.d.ts +149 -0
  416. package/resources/sip-registration-status.d.ts.map +1 -0
  417. package/resources/sip-registration-status.js +32 -0
  418. package/resources/sip-registration-status.js.map +1 -0
  419. package/resources/sip-registration-status.mjs +28 -0
  420. package/resources/sip-registration-status.mjs.map +1 -0
  421. package/resources/speech-to-text/speech-to-text.d.mts +12 -5
  422. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  423. package/resources/speech-to-text/speech-to-text.d.ts +12 -5
  424. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  425. package/resources/telephony-credentials.d.mts +11 -2
  426. package/resources/telephony-credentials.d.mts.map +1 -1
  427. package/resources/telephony-credentials.d.ts +11 -2
  428. package/resources/telephony-credentials.d.ts.map +1 -1
  429. package/resources/telephony-credentials.js +9 -2
  430. package/resources/telephony-credentials.js.map +1 -1
  431. package/resources/telephony-credentials.mjs +9 -2
  432. package/resources/telephony-credentials.mjs.map +1 -1
  433. package/resources/texml/accounts/accounts.d.mts +2 -2
  434. package/resources/texml/accounts/accounts.d.ts +2 -2
  435. package/resources/texml/accounts/accounts.js +2 -2
  436. package/resources/texml/accounts/accounts.mjs +2 -2
  437. package/resources/texml/accounts/calls/calls.d.mts +49 -14
  438. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  439. package/resources/texml/accounts/calls/calls.d.ts +49 -14
  440. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  441. package/resources/texml/accounts/calls/calls.js +7 -7
  442. package/resources/texml/accounts/calls/calls.js.map +1 -1
  443. package/resources/texml/accounts/calls/calls.mjs +7 -7
  444. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  445. package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
  446. package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
  447. package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
  448. package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
  449. package/resources/texml/accounts/calls/recordings-json.js +2 -2
  450. package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
  451. package/resources/texml/accounts/calls/recordings.d.mts +10 -2
  452. package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
  453. package/resources/texml/accounts/calls/recordings.d.ts +10 -2
  454. package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
  455. package/resources/texml/accounts/calls/recordings.js +4 -1
  456. package/resources/texml/accounts/calls/recordings.js.map +1 -1
  457. package/resources/texml/accounts/calls/recordings.mjs +4 -1
  458. package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
  459. package/resources/texml/accounts/calls/siprec.d.mts +10 -2
  460. package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
  461. package/resources/texml/accounts/calls/siprec.d.ts +10 -2
  462. package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
  463. package/resources/texml/accounts/calls/siprec.js +4 -1
  464. package/resources/texml/accounts/calls/siprec.js.map +1 -1
  465. package/resources/texml/accounts/calls/siprec.mjs +4 -1
  466. package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
  467. package/resources/texml/accounts/calls/streams.d.mts +10 -2
  468. package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
  469. package/resources/texml/accounts/calls/streams.d.ts +10 -2
  470. package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
  471. package/resources/texml/accounts/calls/streams.js +4 -1
  472. package/resources/texml/accounts/calls/streams.js.map +1 -1
  473. package/resources/texml/accounts/calls/streams.mjs +4 -1
  474. package/resources/texml/accounts/calls/streams.mjs.map +1 -1
  475. package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
  476. package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
  477. package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
  478. package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
  479. package/resources/texml/accounts/conferences/conferences.js +5 -5
  480. package/resources/texml/accounts/conferences/conferences.js.map +1 -1
  481. package/resources/texml/accounts/conferences/conferences.mjs +5 -5
  482. package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
  483. package/resources/texml/accounts/conferences/participants.d.mts +35 -10
  484. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  485. package/resources/texml/accounts/conferences/participants.d.ts +35 -10
  486. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  487. package/resources/texml/accounts/conferences/participants.js +5 -5
  488. package/resources/texml/accounts/conferences/participants.mjs +5 -5
  489. package/resources/texml/accounts/queues.d.mts +25 -8
  490. package/resources/texml/accounts/queues.d.mts.map +1 -1
  491. package/resources/texml/accounts/queues.d.ts +25 -8
  492. package/resources/texml/accounts/queues.d.ts.map +1 -1
  493. package/resources/texml/accounts/queues.js +7 -5
  494. package/resources/texml/accounts/queues.js.map +1 -1
  495. package/resources/texml/accounts/queues.mjs +7 -5
  496. package/resources/texml/accounts/queues.mjs.map +1 -1
  497. package/resources/texml/accounts/recordings/json.d.mts +14 -4
  498. package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
  499. package/resources/texml/accounts/recordings/json.d.ts +14 -4
  500. package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
  501. package/resources/texml/accounts/recordings/json.js +2 -2
  502. package/resources/texml/accounts/recordings/json.mjs +2 -2
  503. package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
  504. package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
  505. package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
  506. package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
  507. package/resources/texml/accounts/transcriptions/json.js +2 -2
  508. package/resources/texml/accounts/transcriptions/json.mjs +2 -2
  509. package/resources/texml/texml.d.mts +7 -3
  510. package/resources/texml/texml.d.mts.map +1 -1
  511. package/resources/texml/texml.d.ts +7 -3
  512. package/resources/texml/texml.d.ts.map +1 -1
  513. package/resources/texml/texml.js +4 -2
  514. package/resources/texml/texml.js.map +1 -1
  515. package/resources/texml/texml.mjs +4 -2
  516. package/resources/texml/texml.mjs.map +1 -1
  517. package/resources/text-to-speech/text-to-speech.d.mts +15 -6
  518. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  519. package/resources/text-to-speech/text-to-speech.d.ts +15 -6
  520. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  521. package/resources/tts-integrations/actions.d.mts +4 -0
  522. package/resources/tts-integrations/actions.d.mts.map +1 -0
  523. package/resources/tts-integrations/actions.d.ts +4 -0
  524. package/resources/tts-integrations/actions.d.ts.map +1 -0
  525. package/resources/tts-integrations/actions.js +9 -0
  526. package/resources/tts-integrations/actions.js.map +1 -0
  527. package/resources/tts-integrations/actions.mjs +5 -0
  528. package/resources/tts-integrations/actions.mjs.map +1 -0
  529. package/resources/tts-integrations/index.d.mts +3 -0
  530. package/resources/tts-integrations/index.d.mts.map +1 -0
  531. package/resources/tts-integrations/index.d.ts +3 -0
  532. package/resources/tts-integrations/index.d.ts.map +1 -0
  533. package/resources/tts-integrations/index.js +9 -0
  534. package/resources/tts-integrations/index.js.map +1 -0
  535. package/resources/tts-integrations/index.mjs +4 -0
  536. package/resources/tts-integrations/index.mjs.map +1 -0
  537. package/resources/tts-integrations/tts-integrations.d.mts +10 -0
  538. package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
  539. package/resources/tts-integrations/tts-integrations.d.ts +10 -0
  540. package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
  541. package/resources/tts-integrations/tts-integrations.js +17 -0
  542. package/resources/tts-integrations/tts-integrations.js.map +1 -0
  543. package/resources/tts-integrations/tts-integrations.mjs +12 -0
  544. package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
  545. package/resources/tts-integrations.d.mts +2 -0
  546. package/resources/tts-integrations.d.mts.map +1 -0
  547. package/resources/tts-integrations.d.ts +2 -0
  548. package/resources/tts-integrations.d.ts.map +1 -0
  549. package/resources/tts-integrations.js +6 -0
  550. package/resources/tts-integrations.js.map +1 -0
  551. package/resources/tts-integrations.mjs +3 -0
  552. package/resources/tts-integrations.mjs.map +1 -0
  553. package/resources/uac-connections/uac-connections.d.mts +36 -6
  554. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  555. package/resources/uac-connections/uac-connections.d.ts +36 -6
  556. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  557. package/resources/uac-connections/uac-connections.js.map +1 -1
  558. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  559. package/resources/voice-clones.d.mts +57 -10
  560. package/resources/voice-clones.d.mts.map +1 -1
  561. package/resources/voice-clones.d.ts +57 -10
  562. package/resources/voice-clones.d.ts.map +1 -1
  563. package/resources/voice-clones.js +6 -4
  564. package/resources/voice-clones.js.map +1 -1
  565. package/resources/voice-clones.mjs +6 -4
  566. package/resources/voice-clones.mjs.map +1 -1
  567. package/resources/webhooks.d.mts +986 -71
  568. package/resources/webhooks.d.mts.map +1 -1
  569. package/resources/webhooks.d.ts +986 -71
  570. package/resources/webhooks.d.ts.map +1 -1
  571. package/resources/webhooks.js.map +1 -1
  572. package/resources/webhooks.mjs.map +1 -1
  573. package/resources/whatsapp/hosted-signups.d.mts +165 -0
  574. package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
  575. package/resources/whatsapp/hosted-signups.d.ts +165 -0
  576. package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
  577. package/resources/whatsapp/hosted-signups.js +56 -0
  578. package/resources/whatsapp/hosted-signups.js.map +1 -0
  579. package/resources/whatsapp/hosted-signups.mjs +52 -0
  580. package/resources/whatsapp/hosted-signups.mjs.map +1 -0
  581. package/resources/whatsapp/index.d.mts +2 -0
  582. package/resources/whatsapp/index.d.mts.map +1 -1
  583. package/resources/whatsapp/index.d.ts +2 -0
  584. package/resources/whatsapp/index.d.ts.map +1 -1
  585. package/resources/whatsapp/index.js +5 -1
  586. package/resources/whatsapp/index.js.map +1 -1
  587. package/resources/whatsapp/index.mjs +2 -0
  588. package/resources/whatsapp/index.mjs.map +1 -1
  589. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +6 -5
  590. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -1
  591. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +6 -5
  592. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -1
  593. package/resources/whatsapp/phone-numbers/calling-routing.js +6 -5
  594. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -1
  595. package/resources/whatsapp/phone-numbers/calling-routing.mjs +6 -5
  596. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -1
  597. package/resources/whatsapp/signup.d.mts +128 -0
  598. package/resources/whatsapp/signup.d.mts.map +1 -0
  599. package/resources/whatsapp/signup.d.ts +128 -0
  600. package/resources/whatsapp/signup.d.ts.map +1 -0
  601. package/resources/whatsapp/signup.js +42 -0
  602. package/resources/whatsapp/signup.js.map +1 -0
  603. package/resources/whatsapp/signup.mjs +38 -0
  604. package/resources/whatsapp/signup.mjs.map +1 -0
  605. package/resources/whatsapp/whatsapp.d.mts +8 -0
  606. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  607. package/resources/whatsapp/whatsapp.d.ts +8 -0
  608. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  609. package/resources/whatsapp/whatsapp.js +8 -0
  610. package/resources/whatsapp/whatsapp.js.map +1 -1
  611. package/resources/whatsapp/whatsapp.mjs +8 -0
  612. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  613. package/src/client.ts +57 -4
  614. package/src/resources/addresses/addresses.ts +22 -2
  615. package/src/resources/ai/ai.ts +40 -3
  616. package/src/resources/ai/assistants/assistants.ts +455 -20
  617. package/src/resources/ai/assistants/index.ts +2 -0
  618. package/src/resources/ai/assistants/versions.ts +20 -1
  619. package/src/resources/ai/audio.ts +18 -5
  620. package/src/resources/ai/avatars.ts +252 -0
  621. package/src/resources/ai/chat.ts +20 -6
  622. package/src/resources/ai/conversations/conversations.ts +9 -0
  623. package/src/resources/ai/index.ts +14 -0
  624. package/src/resources/ai/memory/namespaces/index.ts +2 -0
  625. package/src/resources/ai/memory/namespaces/namespaces.ts +4 -0
  626. package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
  627. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
  628. package/src/resources/ai/openai/chat.ts +20 -6
  629. package/src/resources/ai/tools.ts +35 -1
  630. package/src/resources/calls/actions.ts +346 -20
  631. package/src/resources/calls/calls.ts +26 -8
  632. package/src/resources/calls/index.ts +2 -0
  633. package/src/resources/credential-connections/credential-connections.ts +41 -8
  634. package/src/resources/dial-metrics.ts +185 -0
  635. package/src/resources/dir/dir.ts +13 -8
  636. package/src/resources/dir/phone-numbers.ts +1 -6
  637. package/src/resources/dir/references.ts +15 -9
  638. package/src/resources/dir/verify-email.ts +17 -5
  639. package/src/resources/email-domains/email-domains.ts +1 -1
  640. package/src/resources/email-templates.ts +121 -19
  641. package/src/resources/enterprises/dir.ts +8 -2
  642. package/src/resources/enterprises/enterprises.ts +7 -3
  643. package/src/resources/enterprises/index.ts +1 -0
  644. package/src/resources/enterprises/reputation/external-verification.ts +125 -0
  645. package/src/resources/enterprises/reputation/index.ts +12 -0
  646. package/src/resources/enterprises/reputation/loa.ts +3 -2
  647. package/src/resources/enterprises/reputation/numbers.ts +256 -3
  648. package/src/resources/enterprises/reputation/remediation.ts +3 -2
  649. package/src/resources/enterprises/reputation/reputation.ts +70 -0
  650. package/src/resources/enterprises/verify-email.ts +1 -1
  651. package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
  652. package/src/resources/global-ip-assignment-health.ts +4 -4
  653. package/src/resources/global-ip-assignments-usage.ts +4 -4
  654. package/src/resources/index.ts +21 -2
  655. package/src/resources/ip-connections.ts +39 -6
  656. package/src/resources/llm-token-gateway/index.ts +38 -1
  657. package/src/resources/llm-token-gateway/llm-token-gateway.ts +83 -1
  658. package/src/resources/llm-token-gateway/spend.ts +309 -0
  659. package/src/resources/llm-token-gateway/token-groups.ts +724 -0
  660. package/src/resources/llm-token-gateway/token-keys.ts +422 -0
  661. package/src/resources/llm-token-gateway/usage.ts +273 -149
  662. package/src/resources/meeting-sessions/actions.ts +13 -7
  663. package/src/resources/meeting-sessions/index.ts +0 -1
  664. package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
  665. package/src/resources/messages/messages.ts +786 -125
  666. package/src/resources/messages/rcs.ts +37 -7
  667. package/src/resources/phone-numbers/csv-downloads.ts +15 -2
  668. package/src/resources/phone-numbers/index.ts +3 -1
  669. package/src/resources/phone-numbers/jobs.ts +332 -15
  670. package/src/resources/phone-numbers/phone-numbers.ts +38 -2
  671. package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
  672. package/src/resources/porting-orders/porting-orders.ts +1 -0
  673. package/src/resources/porting-phone-numbers.ts +1 -0
  674. package/src/resources/reputation/numbers.ts +12 -0
  675. package/src/resources/shared.ts +5 -0
  676. package/src/resources/sip-registration-status.ts +188 -0
  677. package/src/resources/speech-to-text/speech-to-text.ts +12 -4
  678. package/src/resources/telephony-credentials.ts +24 -2
  679. package/src/resources/texml/accounts/accounts.ts +2 -2
  680. package/src/resources/texml/accounts/calls/calls.ts +49 -14
  681. package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
  682. package/src/resources/texml/accounts/calls/recordings.ts +10 -2
  683. package/src/resources/texml/accounts/calls/siprec.ts +10 -2
  684. package/src/resources/texml/accounts/calls/streams.ts +10 -2
  685. package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
  686. package/src/resources/texml/accounts/conferences/participants.ts +35 -10
  687. package/src/resources/texml/accounts/queues.ts +25 -8
  688. package/src/resources/texml/accounts/recordings/json.ts +14 -4
  689. package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
  690. package/src/resources/texml/texml.ts +7 -3
  691. package/src/resources/text-to-speech/text-to-speech.ts +15 -6
  692. package/src/resources/tts-integrations/actions.ts +5 -0
  693. package/src/resources/tts-integrations/index.ts +4 -0
  694. package/src/resources/tts-integrations/tts-integrations.ts +15 -0
  695. package/src/resources/tts-integrations.ts +3 -0
  696. package/src/resources/uac-connections/uac-connections.ts +39 -6
  697. package/src/resources/voice-clones.ts +65 -9
  698. package/src/resources/webhooks.ts +1257 -96
  699. package/src/resources/whatsapp/hosted-signups.ts +221 -0
  700. package/src/resources/whatsapp/index.ts +16 -0
  701. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +6 -5
  702. package/src/resources/whatsapp/signup.ts +188 -0
  703. package/src/resources/whatsapp/whatsapp.ts +40 -0
  704. package/src/version.ts +1 -1
  705. package/version.d.mts +1 -1
  706. package/version.d.ts +1 -1
  707. package/version.js +1 -1
  708. package/version.mjs +1 -1
@@ -0,0 +1,165 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ export declare class HostedSignups extends APIResource {
6
+ /**
7
+ * List hosted signups created by the account, newest first. Expired hosted signups
8
+ * are included.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // Automatically fetches more pages as needed.
13
+ * for await (const hostedSignupListResponse of client.whatsapp.hostedSignups.list()) {
14
+ * // ...
15
+ * }
16
+ * ```
17
+ */
18
+ list(query?: HostedSignupListParams | null | undefined, options?: RequestOptions): PagePromise<HostedSignupListResponsesDefaultFlatPagination, HostedSignupListResponse>;
19
+ /**
20
+ * Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
21
+ * for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
22
+ * Meta's WhatsApp Business app coexistence flow instead of standard Cloud API
23
+ * onboarding.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const hostedSignup =
28
+ * await client.whatsapp.hostedSignups.create({
29
+ * app_id: '123456789012345',
30
+ * signup_type: 'coexistence',
31
+ * });
32
+ * ```
33
+ */
34
+ create(body: HostedSignupCreateParams, options?: RequestOptions): APIPromise<HostedSignupCreateResponse>;
35
+ /**
36
+ * Retrieve a hosted signup and its onboarding URL.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const hostedSignup =
41
+ * await client.whatsapp.hostedSignups.retrieve('id');
42
+ * ```
43
+ */
44
+ retrieve(id: string, options?: RequestOptions): APIPromise<HostedSignupRetrieveResponse>;
45
+ }
46
+ export type HostedSignupListResponsesDefaultFlatPagination = DefaultFlatPagination<HostedSignupListResponse>;
47
+ export interface HostedSignupCreateResponse {
48
+ data?: HostedSignupCreateResponse.Data;
49
+ }
50
+ export declare namespace HostedSignupCreateResponse {
51
+ interface Data {
52
+ /**
53
+ * Hosted signup ID
54
+ */
55
+ id?: string;
56
+ /**
57
+ * Meta App ID the hosted signup onboards customers into
58
+ */
59
+ app_id?: string;
60
+ created_at?: string;
61
+ /**
62
+ * When the onboarding URL stops working
63
+ */
64
+ expires_at?: string;
65
+ /**
66
+ * Signed token embedded in `url`
67
+ */
68
+ jwt?: string;
69
+ record_type?: 'whatsapp_jwt';
70
+ /**
71
+ * Meta Partner Solution ID linked to the app. Returned only when creating a hosted
72
+ * signup.
73
+ */
74
+ solution_id?: string;
75
+ /**
76
+ * Hosted onboarding URL to share with the end customer
77
+ */
78
+ url?: string;
79
+ }
80
+ }
81
+ export interface HostedSignupRetrieveResponse {
82
+ data?: HostedSignupRetrieveResponse.Data;
83
+ }
84
+ export declare namespace HostedSignupRetrieveResponse {
85
+ interface Data {
86
+ /**
87
+ * Hosted signup ID
88
+ */
89
+ id?: string;
90
+ /**
91
+ * Meta App ID the hosted signup onboards customers into
92
+ */
93
+ app_id?: string;
94
+ created_at?: string;
95
+ /**
96
+ * When the onboarding URL stops working
97
+ */
98
+ expires_at?: string;
99
+ /**
100
+ * Signed token embedded in `url`
101
+ */
102
+ jwt?: string;
103
+ record_type?: 'whatsapp_jwt';
104
+ /**
105
+ * Meta Partner Solution ID linked to the app. Returned only when creating a hosted
106
+ * signup.
107
+ */
108
+ solution_id?: string;
109
+ /**
110
+ * Hosted onboarding URL to share with the end customer
111
+ */
112
+ url?: string;
113
+ }
114
+ }
115
+ export interface HostedSignupListResponse {
116
+ /**
117
+ * Hosted signup ID
118
+ */
119
+ id?: string;
120
+ /**
121
+ * Meta App ID the hosted signup onboards customers into
122
+ */
123
+ app_id?: string;
124
+ created_at?: string;
125
+ /**
126
+ * When the onboarding URL stops working
127
+ */
128
+ expires_at?: string;
129
+ /**
130
+ * Signed token embedded in `url`
131
+ */
132
+ jwt?: string;
133
+ record_type?: 'whatsapp_jwt';
134
+ /**
135
+ * Meta Partner Solution ID linked to the app. Returned only when creating a hosted
136
+ * signup.
137
+ */
138
+ solution_id?: string;
139
+ /**
140
+ * Hosted onboarding URL to share with the end customer
141
+ */
142
+ url?: string;
143
+ }
144
+ export interface HostedSignupListParams extends DefaultFlatPaginationParams {
145
+ }
146
+ export interface HostedSignupCreateParams {
147
+ /**
148
+ * Meta App ID linked to the Telnyx account. The app must be enabled.
149
+ */
150
+ app_id: string;
151
+ /**
152
+ * When the onboarding URL expires, in RFC 3339 format. Must be in the future and
153
+ * at most 3 days ahead. Defaults to 24 hours after creation.
154
+ */
155
+ expires_at?: string;
156
+ /**
157
+ * Onboarding flow the hosted page launches. Use `coexistence` for a number that
158
+ * remains active in the WhatsApp Business app.
159
+ */
160
+ signup_type?: 'standard' | 'coexistence';
161
+ }
162
+ export declare namespace HostedSignups {
163
+ export { type HostedSignupCreateResponse as HostedSignupCreateResponse, type HostedSignupRetrieveResponse as HostedSignupRetrieveResponse, type HostedSignupListResponse as HostedSignupListResponse, type HostedSignupListResponsesDefaultFlatPagination as HostedSignupListResponsesDefaultFlatPagination, type HostedSignupListParams as HostedSignupListParams, type HostedSignupCreateParams as HostedSignupCreateParams, };
164
+ }
165
+ //# sourceMappingURL=hosted-signups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosted-signups.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,wBAAwB,CAAC;IAQxF;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGzF;AAED,MAAM,MAAM,8CAA8C,GAAG,qBAAqB,CAAC,wBAAwB,CAAC,CAA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IAEpB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAE9E,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,aAAa,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,56 @@
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.HostedSignups = 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 HostedSignups extends resource_1.APIResource {
9
+ /**
10
+ * List hosted signups created by the account, newest first. Expired hosted signups
11
+ * are included.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * // Automatically fetches more pages as needed.
16
+ * for await (const hostedSignupListResponse of client.whatsapp.hostedSignups.list()) {
17
+ * // ...
18
+ * }
19
+ * ```
20
+ */
21
+ list(query = {}, options) {
22
+ return this._client.getAPIList('/whatsapp/hosted_signups', (pagination_1.DefaultFlatPagination), { query, ...options });
23
+ }
24
+ /**
25
+ * Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
26
+ * for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
27
+ * Meta's WhatsApp Business app coexistence flow instead of standard Cloud API
28
+ * onboarding.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const hostedSignup =
33
+ * await client.whatsapp.hostedSignups.create({
34
+ * app_id: '123456789012345',
35
+ * signup_type: 'coexistence',
36
+ * });
37
+ * ```
38
+ */
39
+ create(body, options) {
40
+ return this._client.post('/whatsapp/hosted_signups', { body, ...options });
41
+ }
42
+ /**
43
+ * Retrieve a hosted signup and its onboarding URL.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const hostedSignup =
48
+ * await client.whatsapp.hostedSignups.retrieve('id');
49
+ * ```
50
+ */
51
+ retrieve(id, options) {
52
+ return this._client.get((0, path_1.path) `/whatsapp/hosted_signups/${id}`, options);
53
+ }
54
+ }
55
+ exports.HostedSignups = HostedSignups;
56
+ //# sourceMappingURL=hosted-signups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosted-signups.js","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAE7G,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,kCAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAvDD,sCAuDC"}
@@ -0,0 +1,52 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { DefaultFlatPagination } from "../../core/pagination.mjs";
4
+ import { path } from "../../internal/utils/path.mjs";
5
+ export class HostedSignups extends APIResource {
6
+ /**
7
+ * List hosted signups created by the account, newest first. Expired hosted signups
8
+ * are included.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // Automatically fetches more pages as needed.
13
+ * for await (const hostedSignupListResponse of client.whatsapp.hostedSignups.list()) {
14
+ * // ...
15
+ * }
16
+ * ```
17
+ */
18
+ list(query = {}, options) {
19
+ return this._client.getAPIList('/whatsapp/hosted_signups', (DefaultFlatPagination), { query, ...options });
20
+ }
21
+ /**
22
+ * Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
23
+ * for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
24
+ * Meta's WhatsApp Business app coexistence flow instead of standard Cloud API
25
+ * onboarding.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const hostedSignup =
30
+ * await client.whatsapp.hostedSignups.create({
31
+ * app_id: '123456789012345',
32
+ * signup_type: 'coexistence',
33
+ * });
34
+ * ```
35
+ */
36
+ create(body, options) {
37
+ return this._client.post('/whatsapp/hosted_signups', { body, ...options });
38
+ }
39
+ /**
40
+ * Retrieve a hosted signup and its onboarding URL.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const hostedSignup =
45
+ * await client.whatsapp.hostedSignups.retrieve('id');
46
+ * ```
47
+ */
48
+ retrieve(id, options) {
49
+ return this._client.get(path `/whatsapp/hosted_signups/${id}`, options);
50
+ }
51
+ }
52
+ //# sourceMappingURL=hosted-signups.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosted-signups.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,qBAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
@@ -1,5 +1,7 @@
1
1
  export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.mjs";
2
+ export { HostedSignups, type HostedSignupCreateResponse, type HostedSignupRetrieveResponse, type HostedSignupListResponse, type HostedSignupListParams, type HostedSignupCreateParams, type HostedSignupListResponsesDefaultFlatPagination, } from "./hosted-signups.mjs";
2
3
  export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers/index.mjs";
4
+ export { Signup, type SignupListResponse, type SignupRetrieveStatusResponse, type SignupListParams, type SignupListResponsesDefaultFlatPagination, } from "./signup.mjs";
3
5
  export { Templates, type WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent, type TemplateCreateResponse, type TemplateListParams, type TemplateCreateParams, } from "./templates.mjs";
4
6
  export { UserData, type WhatsappUserData, type UserDataRetrieveResponse, type UserDataUpdateResponse, type UserDataUpdateParams, } from "./user-data.mjs";
5
7
  export { Whatsapp } from "./whatsapp.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,sCAAkC;AACnC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,kCAA8B;AAC/B,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,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sB,EAC3B,KAAK,oBAAoB,GAC1B,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
@@ -1,5 +1,7 @@
1
1
  export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.js";
2
+ export { HostedSignups, type HostedSignupCreateResponse, type HostedSignupRetrieveResponse, type HostedSignupListResponse, type HostedSignupListParams, type HostedSignupCreateParams, type HostedSignupListResponsesDefaultFlatPagination, } from "./hosted-signups.js";
2
3
  export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers/index.js";
4
+ export { Signup, type SignupListResponse, type SignupRetrieveStatusResponse, type SignupListParams, type SignupListResponsesDefaultFlatPagination, } from "./signup.js";
3
5
  export { Templates, type WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent, type TemplateCreateResponse, type TemplateListParams, type TemplateCreateParams, } from "./templates.js";
4
6
  export { UserData, type WhatsappUserData, type UserDataRetrieveResponse, type UserDataUpdateResponse, type UserDataUpdateParams, } from "./user-data.js";
5
7
  export { Whatsapp } from "./whatsapp.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,qCAAkC;AACnC,OAAO,EACL,YAAY,EACZ,KAAK,u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kB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,oBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,sBAAmB"}
@@ -1,11 +1,15 @@
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.Whatsapp = exports.UserData = exports.Templates = exports.PhoneNumbers = exports.BusinessAccounts = void 0;
4
+ exports.Whatsapp = exports.UserData = exports.Templates = exports.Signup = exports.PhoneNumbers = exports.HostedSignups = exports.BusinessAccounts = void 0;
5
5
  var index_1 = require("./business-accounts/index.js");
6
6
  Object.defineProperty(exports, "BusinessAccounts", { enumerable: true, get: function () { return index_1.BusinessAccounts; } });
7
+ var hosted_signups_1 = require("./hosted-signups.js");
8
+ Object.defineProperty(exports, "HostedSignups", { enumerable: true, get: function () { return hosted_signups_1.HostedSignups; } });
7
9
  var index_2 = require("./phone-numbers/index.js");
8
10
  Object.defineProperty(exports, "PhoneNumbers", { enumerable: true, get: function () { return index_2.PhoneNumbers; } });
11
+ var signup_1 = require("./signup.js");
12
+ Object.defineProperty(exports, "Signup", { enumerable: true, get: function () { return signup_1.Signup; } });
9
13
  var templates_1 = require("./templates.js");
10
14
  Object.defineProperty(exports, "Templates", { enumerable: true, get: function () { return templates_1.Templates; } });
11
15
  var user_data_1 = require("./user-data.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAMmC;AALjC,yGAAA,gBAAgB,OAAA;AAMlB,kDAY+B;AAX7B,qGAAA,YAAY,OAAA;AAYd,4CAUqB;AATnB,sGAAA,SAAS,OAAA;AAUX,4CAMqB;AALnB,qGAAA,QAAQ,OAAA;AAMV,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAMmC;AALjC,yGAAA,gBAAgB,OAAA;AAMlB,sDAQ0B;AAPxB,+GAAA,aAAa,OAAA;AAQf,kDAY+B;AAX7B,qGAAA,YAAY,OAAA;AAYd,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,4CAUqB;AATnB,sGAAA,SAAS,OAAA;AAUX,4CAMqB;AALnB,qGAAA,QAAQ,OAAA;AAMV,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
@@ -1,6 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { BusinessAccounts, } from "./business-accounts/index.mjs";
3
+ export { HostedSignups, } from "./hosted-signups.mjs";
3
4
  export { PhoneNumbers, } from "./phone-numbers/index.mjs";
5
+ export { Signup, } from "./signup.mjs";
4
6
  export { Templates, } from "./templates.mjs";
5
7
  export { UserData, } from "./user-data.mjs";
6
8
  export { Whatsapp } from "./whatsapp.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,gBAAgB,GAKjB,sCAAkC;AACnC,OAAO,EACL,YAAY,GAWb,kCAA8B;AAC/B,OAAO,EACL,SAAS,GASV,wBAAoB;AACrB,OAAO,EACL,QAAQ,GAKT,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,gBAAgB,GAKjB,sCAAkC;AACnC,OAAO,EACL,aAAa,GAOd,6BAAyB;AAC1B,OAAO,EACL,YAAY,GAWb,kCAA8B;AAC/B,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,SAAS,GASV,wBAAoB;AACrB,OAAO,EACL,QAAQ,GAKT,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
@@ -6,9 +6,9 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
6
6
  */
7
7
  export declare class CallingRouting extends APIResource {
8
8
  /**
9
- * Retrieve the routing connection currently stored for a BYON (Bring Your Own
10
- * Number) phone number: the connection that inbound WhatsApp calls to the number
11
- * are delivered to.
9
+ * Retrieve the connection ID currently stored for a WhatsApp Calling BYON (Bring
10
+ * Your Own Number) phone number: the connection that inbound WhatsApp calls to the
11
+ * number are delivered to.
12
12
  *
13
13
  * Use it to check the result of
14
14
  * `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
@@ -26,8 +26,9 @@ export declare class CallingRouting extends APIResource {
26
26
  */
27
27
  list(id: string, options?: RequestOptions): APIPromise<CallingRoutingListResponse>;
28
28
  /**
29
- * Set or clear the connection that inbound WhatsApp calls to a BYON (Bring Your
30
- * Own Number) phone number are delivered to.
29
+ * Set or clear the connection ID for a WhatsApp Calling BYON (Bring Your Own
30
+ * Number) phone number: the connection that inbound WhatsApp calls to the number
31
+ * are delivered to.
31
32
  *
32
33
  * The update is processed asynchronously. A `202` response means the request was
33
34
  * accepted, not that the routing changed. Check the result with
@@ -1 +1 @@
1
- {"version":3,"file":"calling-routing.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIlF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,0BAA0B,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
1
+ {"version":3,"file":"calling-routing.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIlF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,0BAA0B,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
@@ -6,9 +6,9 @@ import { RequestOptions } from "../../../internal/request-options.js";
6
6
  */
7
7
  export declare class CallingRouting extends APIResource {
8
8
  /**
9
- * Retrieve the routing connection currently stored for a BYON (Bring Your Own
10
- * Number) phone number: the connection that inbound WhatsApp calls to the number
11
- * are delivered to.
9
+ * Retrieve the connection ID currently stored for a WhatsApp Calling BYON (Bring
10
+ * Your Own Number) phone number: the connection that inbound WhatsApp calls to the
11
+ * number are delivered to.
12
12
  *
13
13
  * Use it to check the result of
14
14
  * `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
@@ -26,8 +26,9 @@ export declare class CallingRouting extends APIResource {
26
26
  */
27
27
  list(id: string, options?: RequestOptions): APIPromise<CallingRoutingListResponse>;
28
28
  /**
29
- * Set or clear the connection that inbound WhatsApp calls to a BYON (Bring Your
30
- * Own Number) phone number are delivered to.
29
+ * Set or clear the connection ID for a WhatsApp Calling BYON (Bring Your Own
30
+ * Number) phone number: the connection that inbound WhatsApp calls to the number
31
+ * are delivered to.
31
32
  *
32
33
  * The update is processed asynchronously. A `202` response means the request was
33
34
  * accepted, not that the routing changed. Check the result with
@@ -1 +1 @@
1
- {"version":3,"file":"calling-routing.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIlF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,0BAA0B,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
1
+ {"version":3,"file":"calling-routing.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIlF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,0BAA0B,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,0BAA0B,CAAC;CAClC;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
@@ -9,9 +9,9 @@ const path_1 = require("../../../internal/utils/path.js");
9
9
  */
10
10
  class CallingRouting extends resource_1.APIResource {
11
11
  /**
12
- * Retrieve the routing connection currently stored for a BYON (Bring Your Own
13
- * Number) phone number: the connection that inbound WhatsApp calls to the number
14
- * are delivered to.
12
+ * Retrieve the connection ID currently stored for a WhatsApp Calling BYON (Bring
13
+ * Your Own Number) phone number: the connection that inbound WhatsApp calls to the
14
+ * number are delivered to.
15
15
  *
16
16
  * Use it to check the result of
17
17
  * `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
@@ -31,8 +31,9 @@ class CallingRouting extends resource_1.APIResource {
31
31
  return this._client.get((0, path_1.path) `/whatsapp/phone_numbers/${id}/calling_routing`, options);
32
32
  }
33
33
  /**
34
- * Set or clear the connection that inbound WhatsApp calls to a BYON (Bring Your
35
- * Own Number) phone number are delivered to.
34
+ * Set or clear the connection ID for a WhatsApp Calling BYON (Bring Your Own
35
+ * Number) phone number: the connection that inbound WhatsApp calls to the number
36
+ * are delivered to.
36
37
  *
37
38
  * The update is processed asynchronously. A `202` response means the request was
38
39
  * accepted, not that the routing changed. Check the result with
@@ -1 +1 @@
1
- {"version":3,"file":"calling-routing.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AA1DD,wCA0DC"}
1
+ {"version":3,"file":"calling-routing.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AA3DD,wCA2DC"}
@@ -6,9 +6,9 @@ import { path } from "../../../internal/utils/path.mjs";
6
6
  */
7
7
  export class CallingRouting extends APIResource {
8
8
  /**
9
- * Retrieve the routing connection currently stored for a BYON (Bring Your Own
10
- * Number) phone number: the connection that inbound WhatsApp calls to the number
11
- * are delivered to.
9
+ * Retrieve the connection ID currently stored for a WhatsApp Calling BYON (Bring
10
+ * Your Own Number) phone number: the connection that inbound WhatsApp calls to the
11
+ * number are delivered to.
12
12
  *
13
13
  * Use it to check the result of
14
14
  * `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
@@ -28,8 +28,9 @@ export class CallingRouting extends APIResource {
28
28
  return this._client.get(path `/whatsapp/phone_numbers/${id}/calling_routing`, options);
29
29
  }
30
30
  /**
31
- * Set or clear the connection that inbound WhatsApp calls to a BYON (Bring Your
32
- * Own Number) phone number are delivered to.
31
+ * Set or clear the connection ID for a WhatsApp Calling BYON (Bring Your Own
32
+ * Number) phone number: the connection that inbound WhatsApp calls to the number
33
+ * are delivered to.
33
34
  *
34
35
  * The update is processed asynchronously. A `202` response means the request was
35
36
  * accepted, not that the routing changed. Check the result with
@@ -1 +1 @@
1
- {"version":3,"file":"calling-routing.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
1
+ {"version":3,"file":"calling-routing.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
@@ -0,0 +1,128 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ export declare class Signup extends APIResource {
6
+ /**
7
+ * List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
8
+ * `FAILURE`, newest first. Use the `errors` of a failed session to see why
9
+ * provisioning stopped.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * // Automatically fetches more pages as needed.
14
+ * for await (const signupListResponse of client.whatsapp.signup.list()) {
15
+ * // ...
16
+ * }
17
+ * ```
18
+ */
19
+ list(query?: SignupListParams | null | undefined, options?: RequestOptions): PagePromise<SignupListResponsesDefaultFlatPagination, SignupListResponse>;
20
+ /**
21
+ * Retrieve the current state and status of a WhatsApp Embedded Signup session.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response =
26
+ * await client.whatsapp.signup.retrieveStatus('id');
27
+ * ```
28
+ */
29
+ retrieveStatus(id: string, options?: RequestOptions): APIPromise<SignupRetrieveStatusResponse>;
30
+ }
31
+ export type SignupListResponsesDefaultFlatPagination = DefaultFlatPagination<SignupListResponse>;
32
+ export interface SignupListResponse {
33
+ created_at?: string;
34
+ /**
35
+ * Tech provider customer reference submitted with the signup
36
+ */
37
+ customer_id?: string;
38
+ /**
39
+ * Errors recorded during provisioning
40
+ */
41
+ errors?: Array<string>;
42
+ record_type?: 'whatsapp_session_id';
43
+ /**
44
+ * Signup session ID
45
+ */
46
+ session_id?: string;
47
+ /**
48
+ * Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
49
+ * skipped for coexistence signups.
50
+ */
51
+ state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
52
+ /**
53
+ * `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
54
+ * finished provisioning, and `FAILURE` stopped at `state`.
55
+ */
56
+ status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
57
+ updated_at?: string;
58
+ /**
59
+ * Telnyx user ID that owns the signup session
60
+ */
61
+ user_id?: string;
62
+ /**
63
+ * Meta WhatsApp Business Account ID
64
+ */
65
+ waba_id?: string;
66
+ }
67
+ export interface SignupRetrieveStatusResponse {
68
+ data?: SignupRetrieveStatusResponse.Data;
69
+ }
70
+ export declare namespace SignupRetrieveStatusResponse {
71
+ interface Data {
72
+ created_at?: string;
73
+ /**
74
+ * Tech provider customer reference submitted with the signup
75
+ */
76
+ customer_id?: string;
77
+ /**
78
+ * Errors recorded during provisioning
79
+ */
80
+ errors?: Array<string>;
81
+ record_type?: 'whatsapp_session_id';
82
+ /**
83
+ * Signup session ID
84
+ */
85
+ session_id?: string;
86
+ /**
87
+ * Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
88
+ * skipped for coexistence signups.
89
+ */
90
+ state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
91
+ /**
92
+ * `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
93
+ * finished provisioning, and `FAILURE` stopped at `state`.
94
+ */
95
+ status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
96
+ updated_at?: string;
97
+ /**
98
+ * Telnyx user ID that owns the signup session
99
+ */
100
+ user_id?: string;
101
+ /**
102
+ * Meta WhatsApp Business Account ID
103
+ */
104
+ waba_id?: string;
105
+ }
106
+ }
107
+ export interface SignupListParams extends DefaultFlatPaginationParams {
108
+ /**
109
+ * Return sessions created at or after this time (RFC 3339)
110
+ */
111
+ 'filter[created_at][gte]'?: string;
112
+ /**
113
+ * Return sessions created at or before this time (RFC 3339)
114
+ */
115
+ 'filter[created_at][lte]'?: string;
116
+ /**
117
+ * Filter by the tech provider customer reference
118
+ */
119
+ 'filter[customer_id]'?: string;
120
+ /**
121
+ * Filter by Meta WABA ID
122
+ */
123
+ 'filter[waba_id]'?: string;
124
+ }
125
+ export declare namespace Signup {
126
+ export { type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
127
+ }
128
+ //# sourceMapping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