telnyx 7.21.0 → 7.23.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 (476) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +39 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +39 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +33 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +33 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +8 -4
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +8 -4
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +4 -0
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +5 -1
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/ai/assistants/assistants.d.mts +408 -47
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +408 -47
  22. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  23. package/resources/ai/assistants/assistants.js.map +1 -1
  24. package/resources/ai/assistants/assistants.mjs.map +1 -1
  25. package/resources/ai/assistants/index.d.mts +1 -1
  26. package/resources/ai/assistants/index.d.mts.map +1 -1
  27. package/resources/ai/assistants/index.d.ts +1 -1
  28. package/resources/ai/assistants/index.d.ts.map +1 -1
  29. package/resources/ai/assistants/index.js.map +1 -1
  30. package/resources/ai/assistants/index.mjs.map +1 -1
  31. package/resources/ai/assistants/versions.d.mts +59 -12
  32. package/resources/ai/assistants/versions.d.mts.map +1 -1
  33. package/resources/ai/assistants/versions.d.ts +59 -12
  34. package/resources/ai/assistants/versions.d.ts.map +1 -1
  35. package/resources/ai/audio.d.mts +78 -43
  36. package/resources/ai/audio.d.mts.map +1 -1
  37. package/resources/ai/audio.d.ts +78 -43
  38. package/resources/ai/audio.d.ts.map +1 -1
  39. package/resources/ai/audio.js.map +1 -1
  40. package/resources/ai/audio.mjs.map +1 -1
  41. package/resources/ai/chat.d.mts +59 -28
  42. package/resources/ai/chat.d.mts.map +1 -1
  43. package/resources/ai/chat.d.ts +59 -28
  44. package/resources/ai/chat.d.ts.map +1 -1
  45. package/resources/ai/chat.js.map +1 -1
  46. package/resources/ai/chat.mjs.map +1 -1
  47. package/resources/ai/index.d.mts +3 -2
  48. package/resources/ai/index.d.mts.map +1 -1
  49. package/resources/ai/index.d.ts +3 -2
  50. package/resources/ai/index.d.ts.map +1 -1
  51. package/resources/ai/index.js +3 -1
  52. package/resources/ai/index.js.map +1 -1
  53. package/resources/ai/index.mjs +2 -1
  54. package/resources/ai/index.mjs.map +1 -1
  55. package/resources/ai/openai/chat.d.mts +67 -29
  56. package/resources/ai/openai/chat.d.mts.map +1 -1
  57. package/resources/ai/openai/chat.d.ts +67 -29
  58. package/resources/ai/openai/chat.d.ts.map +1 -1
  59. package/resources/ai/openai/chat.js.map +1 -1
  60. package/resources/ai/openai/chat.mjs.map +1 -1
  61. package/resources/ai/openai/index.d.mts +1 -1
  62. package/resources/ai/openai/index.d.mts.map +1 -1
  63. package/resources/ai/openai/index.d.ts +1 -1
  64. package/resources/ai/openai/index.d.ts.map +1 -1
  65. package/resources/ai/openai/index.js.map +1 -1
  66. package/resources/ai/openai/index.mjs +1 -1
  67. package/resources/ai/openai/index.mjs.map +1 -1
  68. package/resources/ai/openai/openai.d.mts +2 -2
  69. package/resources/ai/openai/openai.d.mts.map +1 -1
  70. package/resources/ai/openai/openai.d.ts +2 -2
  71. package/resources/ai/openai/openai.d.ts.map +1 -1
  72. package/resources/ai/openai/openai.js.map +1 -1
  73. package/resources/ai/openai/openai.mjs.map +1 -1
  74. package/resources/ai/typesafe/index.d.mts +3 -0
  75. package/resources/ai/typesafe/index.d.mts.map +1 -0
  76. package/resources/ai/typesafe/index.d.ts +3 -0
  77. package/resources/ai/typesafe/index.d.ts.map +1 -0
  78. package/resources/ai/typesafe/index.js +9 -0
  79. package/resources/ai/typesafe/index.js.map +1 -0
  80. package/resources/ai/typesafe/index.mjs +4 -0
  81. package/resources/ai/typesafe/index.mjs.map +1 -0
  82. package/resources/ai/typesafe/typesafe.d.mts +10 -0
  83. package/resources/ai/typesafe/typesafe.d.mts.map +1 -0
  84. package/resources/ai/typesafe/typesafe.d.ts +10 -0
  85. package/resources/ai/typesafe/typesafe.d.ts.map +1 -0
  86. package/resources/ai/typesafe/typesafe.js +17 -0
  87. package/resources/ai/typesafe/typesafe.js.map +1 -0
  88. package/resources/ai/typesafe/typesafe.mjs +12 -0
  89. package/resources/ai/typesafe/typesafe.mjs.map +1 -0
  90. package/resources/ai/typesafe/v1.d.mts +274 -0
  91. package/resources/ai/typesafe/v1.d.mts.map +1 -0
  92. package/resources/ai/typesafe/v1.d.ts +274 -0
  93. package/resources/ai/typesafe/v1.d.ts.map +1 -0
  94. package/resources/ai/typesafe/v1.js +67 -0
  95. package/resources/ai/typesafe/v1.js.map +1 -0
  96. package/resources/ai/typesafe/v1.mjs +63 -0
  97. package/resources/ai/typesafe/v1.mjs.map +1 -0
  98. package/resources/ai/typesafe.d.mts +2 -0
  99. package/resources/ai/typesafe.d.mts.map +1 -0
  100. package/resources/ai/typesafe.d.ts +2 -0
  101. package/resources/ai/typesafe.d.ts.map +1 -0
  102. package/resources/ai/typesafe.js +6 -0
  103. package/resources/ai/typesafe.js.map +1 -0
  104. package/resources/ai/typesafe.mjs +3 -0
  105. package/resources/ai/typesafe.mjs.map +1 -0
  106. package/resources/bot-challenge.d.mts +80 -0
  107. package/resources/bot-challenge.d.mts.map +1 -0
  108. package/resources/bot-challenge.d.ts +80 -0
  109. package/resources/bot-challenge.d.ts.map +1 -0
  110. package/resources/bot-challenge.js +35 -0
  111. package/resources/bot-challenge.js.map +1 -0
  112. package/resources/bot-challenge.mjs +31 -0
  113. package/resources/bot-challenge.mjs.map +1 -0
  114. package/resources/bot-sessions.d.mts +49 -0
  115. package/resources/bot-sessions.d.mts.map +1 -0
  116. package/resources/bot-sessions.d.ts +49 -0
  117. package/resources/bot-sessions.d.ts.map +1 -0
  118. package/resources/bot-sessions.js +28 -0
  119. package/resources/bot-sessions.js.map +1 -0
  120. package/resources/bot-sessions.mjs +24 -0
  121. package/resources/bot-sessions.mjs.map +1 -0
  122. package/resources/bot-signup.d.mts +114 -0
  123. package/resources/bot-signup.d.mts.map +1 -0
  124. package/resources/bot-signup.d.ts +114 -0
  125. package/resources/bot-signup.d.ts.map +1 -0
  126. package/resources/bot-signup.js +63 -0
  127. package/resources/bot-signup.js.map +1 -0
  128. package/resources/bot-signup.mjs +59 -0
  129. package/resources/bot-signup.mjs.map +1 -0
  130. package/resources/calls/actions.d.mts +57 -11
  131. package/resources/calls/actions.d.mts.map +1 -1
  132. package/resources/calls/actions.d.ts +57 -11
  133. package/resources/calls/actions.d.ts.map +1 -1
  134. package/resources/calls/calls.d.mts +45 -5
  135. package/resources/calls/calls.d.mts.map +1 -1
  136. package/resources/calls/calls.d.ts +45 -5
  137. package/resources/calls/calls.d.ts.map +1 -1
  138. package/resources/calls/calls.js.map +1 -1
  139. package/resources/calls/calls.mjs.map +1 -1
  140. package/resources/compute/compute.d.mts +10 -0
  141. package/resources/compute/compute.d.mts.map +1 -0
  142. package/resources/compute/compute.d.ts +10 -0
  143. package/resources/compute/compute.d.ts.map +1 -0
  144. package/resources/compute/compute.js +17 -0
  145. package/resources/compute/compute.js.map +1 -0
  146. package/resources/compute/compute.mjs +12 -0
  147. package/resources/compute/compute.mjs.map +1 -0
  148. package/resources/compute/funcs/export.d.mts +121 -0
  149. package/resources/compute/funcs/export.d.mts.map +1 -0
  150. package/resources/compute/funcs/export.d.ts +121 -0
  151. package/resources/compute/funcs/export.d.ts.map +1 -0
  152. package/resources/compute/funcs/export.js +68 -0
  153. package/resources/compute/funcs/export.js.map +1 -0
  154. package/resources/compute/funcs/export.mjs +64 -0
  155. package/resources/compute/funcs/export.mjs.map +1 -0
  156. package/resources/compute/funcs/funcs.d.mts +214 -0
  157. package/resources/compute/funcs/funcs.d.mts.map +1 -0
  158. package/resources/compute/funcs/funcs.d.ts +214 -0
  159. package/resources/compute/funcs/funcs.d.ts.map +1 -0
  160. package/resources/compute/funcs/funcs.js +80 -0
  161. package/resources/compute/funcs/funcs.js.map +1 -0
  162. package/resources/compute/funcs/funcs.mjs +75 -0
  163. package/resources/compute/funcs/funcs.mjs.map +1 -0
  164. package/resources/compute/funcs/index.d.mts +3 -0
  165. package/resources/compute/funcs/index.d.mts.map +1 -0
  166. package/resources/compute/funcs/index.d.ts +3 -0
  167. package/resources/compute/funcs/index.d.ts.map +1 -0
  168. package/resources/compute/funcs/index.js +9 -0
  169. package/resources/compute/funcs/index.js.map +1 -0
  170. package/resources/compute/funcs/index.mjs +4 -0
  171. package/resources/compute/funcs/index.mjs.map +1 -0
  172. package/resources/compute/funcs.d.mts +2 -0
  173. package/resources/compute/funcs.d.mts.map +1 -0
  174. package/resources/compute/funcs.d.ts +2 -0
  175. package/resources/compute/funcs.d.ts.map +1 -0
  176. package/resources/compute/funcs.js +6 -0
  177. package/resources/compute/funcs.js.map +1 -0
  178. package/resources/compute/funcs.mjs +3 -0
  179. package/resources/compute/funcs.mjs.map +1 -0
  180. package/resources/compute/index.d.mts +3 -0
  181. package/resources/compute/index.d.mts.map +1 -0
  182. package/resources/compute/index.d.ts +3 -0
  183. package/resources/compute/index.d.ts.map +1 -0
  184. package/resources/compute/index.js +9 -0
  185. package/resources/compute/index.js.map +1 -0
  186. package/resources/compute/index.mjs +4 -0
  187. package/resources/compute/index.mjs.map +1 -0
  188. package/resources/compute.d.mts +2 -0
  189. package/resources/compute.d.mts.map +1 -0
  190. package/resources/compute.d.ts +2 -0
  191. package/resources/compute.d.ts.map +1 -0
  192. package/resources/compute.js +6 -0
  193. package/resources/compute.js.map +1 -0
  194. package/resources/compute.mjs +3 -0
  195. package/resources/compute.mjs.map +1 -0
  196. package/resources/connections.d.mts +109 -1
  197. package/resources/connections.d.mts.map +1 -1
  198. package/resources/connections.d.ts +109 -1
  199. package/resources/connections.d.ts.map +1 -1
  200. package/resources/connections.js +8 -0
  201. package/resources/connections.js.map +1 -1
  202. package/resources/connections.mjs +8 -0
  203. package/resources/connections.mjs.map +1 -1
  204. package/resources/credential-connections/credential-connections.d.mts +4 -1
  205. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  206. package/resources/credential-connections/credential-connections.d.ts +4 -1
  207. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  208. package/resources/credential-connections/credential-connections.js.map +1 -1
  209. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  210. package/resources/detail-records.d.mts +18 -1
  211. package/resources/detail-records.d.mts.map +1 -1
  212. package/resources/detail-records.d.ts +18 -1
  213. package/resources/detail-records.d.ts.map +1 -1
  214. package/resources/email-inboxes/drafts.d.mts +7 -0
  215. package/resources/email-inboxes/drafts.d.mts.map +1 -1
  216. package/resources/email-inboxes/drafts.d.ts +7 -0
  217. package/resources/email-inboxes/drafts.d.ts.map +1 -1
  218. package/resources/email-messages/email-messages.d.mts +9 -3
  219. package/resources/email-messages/email-messages.d.mts.map +1 -1
  220. package/resources/email-messages/email-messages.d.ts +9 -3
  221. package/resources/email-messages/email-messages.d.ts.map +1 -1
  222. package/resources/email-messages/email-messages.js +5 -1
  223. package/resources/email-messages/email-messages.js.map +1 -1
  224. package/resources/email-messages/email-messages.mjs +5 -1
  225. package/resources/email-messages/email-messages.mjs.map +1 -1
  226. package/resources/fqdn-connections/fqdn-authentication.d.mts +4 -1
  227. package/resources/fqdn-connections/fqdn-authentication.d.mts.map +1 -1
  228. package/resources/fqdn-connections/fqdn-authentication.d.ts +4 -1
  229. package/resources/fqdn-connections/fqdn-authentication.d.ts.map +1 -1
  230. package/resources/fqdn-connections/fqdn-connections.d.mts +4 -1
  231. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  232. package/resources/fqdn-connections/fqdn-connections.d.ts +4 -1
  233. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  234. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  235. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  236. package/resources/index.d.mts +9 -3
  237. package/resources/index.d.mts.map +1 -1
  238. package/resources/index.d.ts +9 -3
  239. package/resources/index.d.ts.map +1 -1
  240. package/resources/index.js +16 -4
  241. package/resources/index.js.map +1 -1
  242. package/resources/index.mjs +6 -0
  243. package/resources/index.mjs.map +1 -1
  244. package/resources/machine-payments.d.mts +142 -0
  245. package/resources/machine-payments.d.mts.map +1 -0
  246. package/resources/machine-payments.d.ts +142 -0
  247. package/resources/machine-payments.d.ts.map +1 -0
  248. package/resources/machine-payments.js +56 -0
  249. package/resources/machine-payments.js.map +1 -0
  250. package/resources/machine-payments.mjs +52 -0
  251. package/resources/machine-payments.mjs.map +1 -0
  252. package/resources/messages/messages.d.mts +207 -22
  253. package/resources/messages/messages.d.mts.map +1 -1
  254. package/resources/messages/messages.d.ts +207 -22
  255. package/resources/messages/messages.d.ts.map +1 -1
  256. package/resources/messages/messages.js.map +1 -1
  257. package/resources/messages/messages.mjs.map +1 -1
  258. package/resources/messaging-profiles/index.d.mts +1 -1
  259. package/resources/messaging-profiles/index.d.mts.map +1 -1
  260. package/resources/messaging-profiles/index.d.ts +1 -1
  261. package/resources/messaging-profiles/index.d.ts.map +1 -1
  262. package/resources/messaging-profiles/index.js.map +1 -1
  263. package/resources/messaging-profiles/index.mjs.map +1 -1
  264. package/resources/messaging-profiles/messaging-profiles.d.mts +34 -1
  265. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  266. package/resources/messaging-profiles/messaging-profiles.d.ts +34 -1
  267. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  268. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  269. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  270. package/resources/noise-suppression-engines.d.mts +42 -0
  271. package/resources/noise-suppression-engines.d.mts.map +1 -0
  272. package/resources/noise-suppression-engines.d.ts +42 -0
  273. package/resources/noise-suppression-engines.d.ts.map +1 -0
  274. package/resources/noise-suppression-engines.js +21 -0
  275. package/resources/noise-suppression-engines.js.map +1 -0
  276. package/resources/noise-suppression-engines.mjs +17 -0
  277. package/resources/noise-suppression-engines.mjs.map +1 -0
  278. package/resources/speech-to-text/speech-to-text.d.mts +1 -1
  279. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  280. package/resources/speech-to-text/speech-to-text.d.ts +1 -1
  281. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  282. package/resources/texml/accounts/calls/calls.d.mts +117 -0
  283. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  284. package/resources/texml/accounts/calls/calls.d.ts +117 -0
  285. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  286. package/resources/texml/accounts/calls/calls.js.map +1 -1
  287. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  288. package/resources/texml/accounts/conferences/participants.d.mts +39 -0
  289. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  290. package/resources/texml/accounts/conferences/participants.d.ts +39 -0
  291. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  292. package/resources/texml/calls.d.mts +71 -0
  293. package/resources/texml/calls.d.mts.map +1 -0
  294. package/resources/texml/calls.d.ts +71 -0
  295. package/resources/texml/calls.d.ts.map +1 -0
  296. package/resources/texml/calls.js +33 -0
  297. package/resources/texml/calls.js.map +1 -0
  298. package/resources/texml/calls.mjs +29 -0
  299. package/resources/texml/calls.mjs.map +1 -0
  300. package/resources/texml/index.d.mts +1 -0
  301. package/resources/texml/index.d.mts.map +1 -1
  302. package/resources/texml/index.d.ts +1 -0
  303. package/resources/texml/index.d.ts.map +1 -1
  304. package/resources/texml/index.js +3 -1
  305. package/resources/texml/index.js.map +1 -1
  306. package/resources/texml/index.mjs +1 -0
  307. package/resources/texml/index.mjs.map +1 -1
  308. package/resources/texml/texml.d.mts +43 -0
  309. package/resources/texml/texml.d.mts.map +1 -1
  310. package/resources/texml/texml.d.ts +43 -0
  311. package/resources/texml/texml.d.ts.map +1 -1
  312. package/resources/texml/texml.js +4 -0
  313. package/resources/texml/texml.js.map +1 -1
  314. package/resources/texml/texml.mjs +4 -0
  315. package/resources/texml/texml.mjs.map +1 -1
  316. package/resources/uac-connections/uac-connections.d.mts +9 -2
  317. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  318. package/resources/uac-connections/uac-connections.d.ts +9 -2
  319. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  320. package/resources/uac-connections/uac-connections.js.map +1 -1
  321. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  322. package/resources/voice-clones.d.mts +6 -4
  323. package/resources/voice-clones.d.mts.map +1 -1
  324. package/resources/voice-clones.d.ts +6 -4
  325. package/resources/voice-clones.d.ts.map +1 -1
  326. package/resources/voice-clones.js +4 -2
  327. package/resources/voice-clones.js.map +1 -1
  328. package/resources/voice-clones.mjs +4 -2
  329. package/resources/voice-clones.mjs.map +1 -1
  330. package/resources/webhooks.d.mts +154 -51
  331. package/resources/webhooks.d.mts.map +1 -1
  332. package/resources/webhooks.d.ts +154 -51
  333. package/resources/webhooks.d.ts.map +1 -1
  334. package/resources/whatsapp/business-accounts/phone-numbers.d.mts +33 -0
  335. package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
  336. package/resources/whatsapp/business-accounts/phone-numbers.d.ts +33 -0
  337. package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
  338. package/resources/whatsapp/index.d.mts +1 -1
  339. package/resources/whatsapp/index.d.mts.map +1 -1
  340. package/resources/whatsapp/index.d.ts +1 -1
  341. package/resources/whatsapp/index.d.ts.map +1 -1
  342. package/resources/whatsapp/index.js.map +1 -1
  343. package/resources/whatsapp/index.mjs.map +1 -1
  344. package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
  345. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  346. package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
  347. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  348. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  349. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  350. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +147 -1
  351. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  352. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +147 -1
  353. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  354. package/resources/whatsapp/phone-numbers/phone-numbers.js +16 -0
  355. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  356. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +16 -0
  357. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  358. package/resources/whatsapp/whatsapp.d.mts +2 -2
  359. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  360. package/resources/whatsapp/whatsapp.d.ts +2 -2
  361. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  362. package/resources/whatsapp/whatsapp.js.map +1 -1
  363. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  364. package/resources/x402/credit-account/credit-account.d.mts +226 -0
  365. package/resources/x402/credit-account/credit-account.d.mts.map +1 -0
  366. package/resources/x402/credit-account/credit-account.d.ts +226 -0
  367. package/resources/x402/credit-account/credit-account.d.ts.map +1 -0
  368. package/resources/x402/credit-account/credit-account.js +66 -0
  369. package/resources/x402/credit-account/credit-account.js.map +1 -0
  370. package/resources/x402/credit-account/credit-account.mjs +61 -0
  371. package/resources/x402/credit-account/credit-account.mjs.map +1 -0
  372. package/resources/x402/credit-account/index.d.mts +3 -0
  373. package/resources/x402/credit-account/index.d.mts.map +1 -0
  374. package/resources/x402/credit-account/index.d.ts +3 -0
  375. package/resources/x402/credit-account/index.d.ts.map +1 -0
  376. package/resources/x402/credit-account/index.js +9 -0
  377. package/resources/x402/credit-account/index.js.map +1 -0
  378. package/resources/x402/credit-account/index.mjs +4 -0
  379. package/resources/x402/credit-account/index.mjs.map +1 -0
  380. package/resources/x402/credit-account/payments.d.mts +90 -0
  381. package/resources/x402/credit-account/payments.d.mts.map +1 -0
  382. package/resources/x402/credit-account/payments.d.ts +90 -0
  383. package/resources/x402/credit-account/payments.d.ts.map +1 -0
  384. package/resources/x402/credit-account/payments.js +47 -0
  385. package/resources/x402/credit-account/payments.js.map +1 -0
  386. package/resources/x402/credit-account/payments.mjs +43 -0
  387. package/resources/x402/credit-account/payments.mjs.map +1 -0
  388. package/resources/x402/credit-account.d.mts +1 -221
  389. package/resources/x402/credit-account.d.mts.map +1 -1
  390. package/resources/x402/credit-account.d.ts +1 -221
  391. package/resources/x402/credit-account.d.ts.map +1 -1
  392. package/resources/x402/credit-account.js +2 -54
  393. package/resources/x402/credit-account.js.map +1 -1
  394. package/resources/x402/credit-account.mjs +1 -52
  395. package/resources/x402/credit-account.mjs.map +1 -1
  396. package/resources/x402/index.d.mts +1 -1
  397. package/resources/x402/index.d.mts.map +1 -1
  398. package/resources/x402/index.d.ts +1 -1
  399. package/resources/x402/index.d.ts.map +1 -1
  400. package/resources/x402/index.js +2 -2
  401. package/resources/x402/index.js.map +1 -1
  402. package/resources/x402/index.mjs +1 -1
  403. package/resources/x402/index.mjs.map +1 -1
  404. package/resources/x402/x402.d.mts +2 -2
  405. package/resources/x402/x402.d.mts.map +1 -1
  406. package/resources/x402/x402.d.ts +2 -2
  407. package/resources/x402/x402.d.ts.map +1 -1
  408. package/resources/x402/x402.js +2 -2
  409. package/resources/x402/x402.js.map +1 -1
  410. package/resources/x402/x402.mjs +2 -2
  411. package/resources/x402/x402.mjs.map +1 -1
  412. package/src/client.ts +91 -0
  413. package/src/resources/ai/ai.ts +15 -1
  414. package/src/resources/ai/assistants/assistants.ts +454 -45
  415. package/src/resources/ai/assistants/index.ts +1 -0
  416. package/src/resources/ai/assistants/versions.ts +61 -12
  417. package/src/resources/ai/audio.ts +93 -45
  418. package/src/resources/ai/chat.ts +66 -29
  419. package/src/resources/ai/index.ts +8 -1
  420. package/src/resources/ai/openai/chat.ts +75 -29
  421. package/src/resources/ai/openai/index.ts +6 -1
  422. package/src/resources/ai/openai/openai.ts +2 -1
  423. package/src/resources/ai/typesafe/index.ts +4 -0
  424. package/src/resources/ai/typesafe/typesafe.ts +19 -0
  425. package/src/resources/ai/typesafe/v1.ts +298 -0
  426. package/src/resources/ai/typesafe.ts +3 -0
  427. package/src/resources/bot-challenge.ts +101 -0
  428. package/src/resources/bot-sessions.ts +61 -0
  429. package/src/resources/bot-signup.ts +140 -0
  430. package/src/resources/calls/actions.ts +65 -10
  431. package/src/resources/calls/calls.ts +52 -5
  432. package/src/resources/compute/compute.ts +37 -0
  433. package/src/resources/compute/funcs/export.ts +156 -0
  434. package/src/resources/compute/funcs/funcs.ts +341 -0
  435. package/src/resources/compute/funcs/index.ts +15 -0
  436. package/src/resources/compute/funcs.ts +3 -0
  437. package/src/resources/compute/index.ts +15 -0
  438. package/src/resources/compute.ts +3 -0
  439. package/src/resources/connections.ts +133 -0
  440. package/src/resources/credential-connections/credential-connections.ts +4 -1
  441. package/src/resources/detail-records.ts +18 -1
  442. package/src/resources/email-inboxes/drafts.ts +8 -0
  443. package/src/resources/email-messages/email-messages.ts +9 -2
  444. package/src/resources/fqdn-connections/fqdn-authentication.ts +4 -1
  445. package/src/resources/fqdn-connections/fqdn-connections.ts +4 -1
  446. package/src/resources/index.ts +27 -0
  447. package/src/resources/machine-payments.ts +169 -0
  448. package/src/resources/messages/messages.ts +250 -22
  449. package/src/resources/messaging-profiles/index.ts +1 -0
  450. package/src/resources/messaging-profiles/messaging-profiles.ts +39 -0
  451. package/src/resources/noise-suppression-engines.ts +51 -0
  452. package/src/resources/speech-to-text/speech-to-text.ts +1 -0
  453. package/src/resources/texml/accounts/calls/calls.ts +138 -0
  454. package/src/resources/texml/accounts/conferences/participants.ts +46 -0
  455. package/src/resources/texml/calls.ts +90 -0
  456. package/src/resources/texml/index.ts +1 -0
  457. package/src/resources/texml/texml.ts +56 -0
  458. package/src/resources/uac-connections/uac-connections.ts +9 -2
  459. package/src/resources/voice-clones.ts +6 -4
  460. package/src/resources/webhooks.ts +208 -60
  461. package/src/resources/whatsapp/business-accounts/phone-numbers.ts +52 -0
  462. package/src/resources/whatsapp/index.ts +1 -0
  463. package/src/resources/whatsapp/phone-numbers/index.ts +1 -0
  464. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +222 -0
  465. package/src/resources/whatsapp/whatsapp.ts +2 -0
  466. package/src/resources/x402/credit-account/credit-account.ts +312 -0
  467. package/src/resources/x402/credit-account/index.ts +16 -0
  468. package/src/resources/x402/credit-account/payments.ts +126 -0
  469. package/src/resources/x402/credit-account.ts +1 -290
  470. package/src/resources/x402/index.ts +1 -1
  471. package/src/resources/x402/x402.ts +2 -2
  472. package/src/version.ts +1 -1
  473. package/version.d.mts +1 -1
  474. package/version.d.ts +1 -1
  475. package/version.js +1 -1
  476. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAIL,SAAS,GAMV,wBAAoB;AACrB,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EACL,QAAQ,GAKT,wBAAoB;AACrB,OAAO,KAAK,mBAAmB,kDAA8C;AAC7E,OAAO,EAKL,gBAAgB,GACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,0CAAsC;AACjE,OAAO,EAUL,YAAY,GACb,0CAAsC;AAEvC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,cAAS,GAA2B,IAAI,YAAY,CA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C;CAAA;AAED,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,226 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as PaymentsAPI from "./payments.mjs";
3
+ import { PaymentListParams, PaymentRetrieveResponse, Payments, X402TransactionRecord, X402TransactionRecordsDefaultFlatPagination } from "./payments.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { RequestOptions } from "../../../internal/request-options.mjs";
6
+ /**
7
+ * Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
8
+ */
9
+ export declare class CreditAccount extends APIResource {
10
+ payments: PaymentsAPI.Payments;
11
+ /**
12
+ * Settles an x402 payment using the quote ID and a signed payment authorization.
13
+ * The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
14
+ * `payment_signature` body parameter. Settlement is idempotent — submitting the
15
+ * same quote ID multiple times returns the existing transaction.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const response = await client.x402.creditAccount.settle({
20
+ * id: 'quote_abc123',
21
+ * payment_signature: '0xabc123...',
22
+ * });
23
+ * ```
24
+ */
25
+ settle(params: CreditAccountSettleParams, options?: RequestOptions): APIPromise<CreditAccountSettleResponse>;
26
+ /**
27
+ * Creates a payment quote for the specified USD amount. Returns payment details
28
+ * including the x402 payment requirements, network, and expiration time. The quote
29
+ * must be settled before it expires.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const response =
34
+ * await client.x402.creditAccount.createQuote({
35
+ * amount_usd: '50.00',
36
+ * });
37
+ * ```
38
+ */
39
+ createQuote(body: CreditAccountCreateQuoteParams, options?: RequestOptions): APIPromise<CreditAccountCreateQuoteResponse>;
40
+ }
41
+ export interface CreditAccountCreateQuoteResponse {
42
+ data?: CreditAccountCreateQuoteResponse.Data;
43
+ }
44
+ export declare namespace CreditAccountCreateQuoteResponse {
45
+ interface Data {
46
+ /**
47
+ * Unique quote identifier. Use this to settle the payment.
48
+ */
49
+ id?: string;
50
+ /**
51
+ * The equivalent amount in the payment cryptocurrency's smallest unit (e.g. USDC
52
+ * has 6 decimals, so $50.00 = "50000000").
53
+ */
54
+ amount_crypto?: string;
55
+ /**
56
+ * The quoted amount in USD.
57
+ */
58
+ amount_usd?: string;
59
+ /**
60
+ * ISO 8601 timestamp when the quote expires.
61
+ */
62
+ expires_at?: string;
63
+ /**
64
+ * The blockchain network for the payment in CAIP-2 format (e.g. eip155:8453 for
65
+ * Base).
66
+ */
67
+ network?: string;
68
+ /**
69
+ * x402 protocol v2 payment requirements. Contains all information needed to
70
+ * construct and sign a payment authorization.
71
+ */
72
+ payment_requirements?: Data.PaymentRequirements;
73
+ record_type?: 'quote';
74
+ }
75
+ namespace Data {
76
+ /**
77
+ * x402 protocol v2 payment requirements. Contains all information needed to
78
+ * construct and sign a payment authorization.
79
+ */
80
+ interface PaymentRequirements {
81
+ /**
82
+ * Accepted payment schemes. Currently only the `exact` EVM scheme is supported.
83
+ */
84
+ accepts?: Array<PaymentRequirements.Accept>;
85
+ /**
86
+ * The resource being paid for. Included in the payment signature.
87
+ */
88
+ resource?: PaymentRequirements.Resource;
89
+ /**
90
+ * x402 protocol version. Currently always 2.
91
+ */
92
+ x402Version?: 2;
93
+ }
94
+ namespace PaymentRequirements {
95
+ interface Accept {
96
+ /**
97
+ * Amount in the token's smallest unit.
98
+ */
99
+ amount?: string;
100
+ /**
101
+ * Token contract address (e.g. USDC on Base).
102
+ */
103
+ asset?: string;
104
+ /**
105
+ * Additional scheme-specific parameters including EIP-712 domain info and the
106
+ * facilitator URL.
107
+ */
108
+ extra?: Accept.Extra;
109
+ /**
110
+ * Maximum time in seconds before the payment authorization expires.
111
+ */
112
+ maxTimeoutSeconds?: number;
113
+ /**
114
+ * Blockchain network identifier in CAIP-2 format (e.g. "eip155:8453" for Base).
115
+ */
116
+ network?: string;
117
+ /**
118
+ * Recipient wallet address.
119
+ */
120
+ payTo?: string;
121
+ /**
122
+ * Payment scheme (e.g. "exact").
123
+ */
124
+ scheme?: string;
125
+ }
126
+ namespace Accept {
127
+ /**
128
+ * Additional scheme-specific parameters including EIP-712 domain info and the
129
+ * facilitator URL.
130
+ */
131
+ interface Extra {
132
+ facilitatorUrl?: string;
133
+ /**
134
+ * EIP-712 domain name (e.g. "USD Coin").
135
+ */
136
+ name?: string;
137
+ quoteId?: string;
138
+ /**
139
+ * EIP-712 domain version.
140
+ */
141
+ version?: string;
142
+ }
143
+ }
144
+ /**
145
+ * The resource being paid for. Included in the payment signature.
146
+ */
147
+ interface Resource {
148
+ /**
149
+ * Human-readable description of the payment.
150
+ */
151
+ description?: string;
152
+ /**
153
+ * MIME type of the resource.
154
+ */
155
+ mimeType?: string;
156
+ /**
157
+ * Canonical URL of the payment resource.
158
+ */
159
+ url?: string;
160
+ }
161
+ }
162
+ }
163
+ }
164
+ export interface CreditAccountSettleResponse {
165
+ data?: CreditAccountSettleResponse.Data;
166
+ }
167
+ export declare namespace CreditAccountSettleResponse {
168
+ interface Data {
169
+ /**
170
+ * Unique transaction identifier.
171
+ */
172
+ id?: string;
173
+ /**
174
+ * The transaction amount in the specified currency.
175
+ */
176
+ amount?: string;
177
+ /**
178
+ * ISO 8601 timestamp when the transaction was created.
179
+ */
180
+ created_at?: string;
181
+ /**
182
+ * The currency of the transaction amount (e.g. USD).
183
+ */
184
+ currency?: string;
185
+ /**
186
+ * The original quote ID associated with this transaction.
187
+ */
188
+ quote_id?: string;
189
+ record_type?: 'x402_transaction';
190
+ /**
191
+ * The settlement status of the transaction.
192
+ */
193
+ status?: 'settled';
194
+ /**
195
+ * The on-chain transaction hash, if available.
196
+ */
197
+ tx_hash?: string | null;
198
+ }
199
+ }
200
+ export interface CreditAccountSettleParams {
201
+ /**
202
+ * Body param: The quote ID to settle.
203
+ */
204
+ id: string;
205
+ /**
206
+ * Body param: Base64-encoded signed payment authorization (x402 PaymentPayload).
207
+ * Can alternatively be provided via the PAYMENT-SIGNATURE header.
208
+ */
209
+ payment_signature?: string;
210
+ /**
211
+ * Header param: Signed payment authorization for the quote. Alternative to
212
+ * providing `payment_signature` in the request body.
213
+ */
214
+ header_payment_signature?: string;
215
+ }
216
+ export interface CreditAccountCreateQuoteParams {
217
+ /**
218
+ * Amount in USD to fund (minimum 5.00, maximum 10000.00).
219
+ */
220
+ amount_usd: string;
221
+ }
222
+ export declare namespace CreditAccount {
223
+ export { type CreditAccountCreateQuoteResponse as CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse as CreditAccountSettleResponse, type CreditAccountSettleParams as CreditAccountSettleParams, type CreditAccountCreateQuoteParams as CreditAccountCreateQuoteParams, };
224
+ export { Payments as Payments, type X402TransactionRecord as X402TransactionRecord, type PaymentRetrieveResponse as PaymentRetrieveResponse, type X402TransactionRecordsDefaultFlatPagination as X402TransactionRecordsDefaultFlatPagination, type PaymentListParams as PaymentListParams, };
225
+ }
226
+ //# sourceMappingURL=credit-account.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credit-account.d.mts","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/credit-account.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,QAAQ,EACR,qBAAqB,EACrB,2CAA2C,EAC5C,uBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAA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M,CAAC;IAE3B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,226 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as PaymentsAPI from "./payments.js";
3
+ import { PaymentListParams, PaymentRetrieveResponse, Payments, X402TransactionRecord, X402TransactionRecordsDefaultFlatPagination } from "./payments.js";
4
+ import { APIPromise } from "../../../core/api-promise.js";
5
+ import { RequestOptions } from "../../../internal/request-options.js";
6
+ /**
7
+ * Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
8
+ */
9
+ export declare class CreditAccount extends APIResource {
10
+ payments: PaymentsAPI.Payments;
11
+ /**
12
+ * Settles an x402 payment using the quote ID and a signed payment authorization.
13
+ * The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
14
+ * `payment_signature` body parameter. Settlement is idempotent — submitting the
15
+ * same quote ID multiple times returns the existing transaction.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const response = await client.x402.creditAccount.settle({
20
+ * id: 'quote_abc123',
21
+ * payment_signature: '0xabc123...',
22
+ * });
23
+ * ```
24
+ */
25
+ settle(params: CreditAccountSettleParams, options?: RequestOptions): APIPromise<CreditAccountSettleResponse>;
26
+ /**
27
+ * Creates a payment quote for the specified USD amount. Returns payment details
28
+ * including the x402 payment requirements, network, and expiration time. The quote
29
+ * must be settled before it expires.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const response =
34
+ * await client.x402.creditAccount.createQuote({
35
+ * amount_usd: '50.00',
36
+ * });
37
+ * ```
38
+ */
39
+ createQuote(body: CreditAccountCreateQuoteParams, options?: RequestOptions): APIPromise<CreditAccountCreateQuoteResponse>;
40
+ }
41
+ export interface CreditAccountCreateQuoteResponse {
42
+ data?: CreditAccountCreateQuoteResponse.Data;
43
+ }
44
+ export declare namespace CreditAccountCreateQuoteResponse {
45
+ interface Data {
46
+ /**
47
+ * Unique quote identifier. Use this to settle the payment.
48
+ */
49
+ id?: string;
50
+ /**
51
+ * The equivalent amount in the payment cryptocurrency's smallest unit (e.g. USDC
52
+ * has 6 decimals, so $50.00 = "50000000").
53
+ */
54
+ amount_crypto?: string;
55
+ /**
56
+ * The quoted amount in USD.
57
+ */
58
+ amount_usd?: string;
59
+ /**
60
+ * ISO 8601 timestamp when the quote expires.
61
+ */
62
+ expires_at?: string;
63
+ /**
64
+ * The blockchain network for the payment in CAIP-2 format (e.g. eip155:8453 for
65
+ * Base).
66
+ */
67
+ network?: string;
68
+ /**
69
+ * x402 protocol v2 payment requirements. Contains all information needed to
70
+ * construct and sign a payment authorization.
71
+ */
72
+ payment_requirements?: Data.PaymentRequirements;
73
+ record_type?: 'quote';
74
+ }
75
+ namespace Data {
76
+ /**
77
+ * x402 protocol v2 payment requirements. Contains all information needed to
78
+ * construct and sign a payment authorization.
79
+ */
80
+ interface PaymentRequirements {
81
+ /**
82
+ * Accepted payment schemes. Currently only the `exact` EVM scheme is supported.
83
+ */
84
+ accepts?: Array<PaymentRequirements.Accept>;
85
+ /**
86
+ * The resource being paid for. Included in the payment signature.
87
+ */
88
+ resource?: PaymentRequirements.Resource;
89
+ /**
90
+ * x402 protocol version. Currently always 2.
91
+ */
92
+ x402Version?: 2;
93
+ }
94
+ namespace PaymentRequirements {
95
+ interface Accept {
96
+ /**
97
+ * Amount in the token's smallest unit.
98
+ */
99
+ amount?: string;
100
+ /**
101
+ * Token contract address (e.g. USDC on Base).
102
+ */
103
+ asset?: string;
104
+ /**
105
+ * Additional scheme-specific parameters including EIP-712 domain info and the
106
+ * facilitator URL.
107
+ */
108
+ extra?: Accept.Extra;
109
+ /**
110
+ * Maximum time in seconds before the payment authorization expires.
111
+ */
112
+ maxTimeoutSeconds?: number;
113
+ /**
114
+ * Blockchain network identifier in CAIP-2 format (e.g. "eip155:8453" for Base).
115
+ */
116
+ network?: string;
117
+ /**
118
+ * Recipient wallet address.
119
+ */
120
+ payTo?: string;
121
+ /**
122
+ * Payment scheme (e.g. "exact").
123
+ */
124
+ scheme?: string;
125
+ }
126
+ namespace Accept {
127
+ /**
128
+ * Additional scheme-specific parameters including EIP-712 domain info and the
129
+ * facilitator URL.
130
+ */
131
+ interface Extra {
132
+ facilitatorUrl?: string;
133
+ /**
134
+ * EIP-712 domain name (e.g. "USD Coin").
135
+ */
136
+ name?: string;
137
+ quoteId?: string;
138
+ /**
139
+ * EIP-712 domain version.
140
+ */
141
+ version?: string;
142
+ }
143
+ }
144
+ /**
145
+ * The resource being paid for. Included in the payment signature.
146
+ */
147
+ interface Resource {
148
+ /**
149
+ * Human-readable description of the payment.
150
+ */
151
+ description?: string;
152
+ /**
153
+ * MIME type of the resource.
154
+ */
155
+ mimeType?: string;
156
+ /**
157
+ * Canonical URL of the payment resource.
158
+ */
159
+ url?: string;
160
+ }
161
+ }
162
+ }
163
+ }
164
+ export interface CreditAccountSettleResponse {
165
+ data?: CreditAccountSettleResponse.Data;
166
+ }
167
+ export declare namespace CreditAccountSettleResponse {
168
+ interface Data {
169
+ /**
170
+ * Unique transaction identifier.
171
+ */
172
+ id?: string;
173
+ /**
174
+ * The transaction amount in the specified currency.
175
+ */
176
+ amount?: string;
177
+ /**
178
+ * ISO 8601 timestamp when the transaction was created.
179
+ */
180
+ created_at?: string;
181
+ /**
182
+ * The currency of the transaction amount (e.g. USD).
183
+ */
184
+ currency?: string;
185
+ /**
186
+ * The original quote ID associated with this transaction.
187
+ */
188
+ quote_id?: string;
189
+ record_type?: 'x402_transaction';
190
+ /**
191
+ * The settlement status of the transaction.
192
+ */
193
+ status?: 'settled';
194
+ /**
195
+ * The on-chain transaction hash, if available.
196
+ */
197
+ tx_hash?: string | null;
198
+ }
199
+ }
200
+ export interface CreditAccountSettleParams {
201
+ /**
202
+ * Body param: The quote ID to settle.
203
+ */
204
+ id: string;
205
+ /**
206
+ * Body param: Base64-encoded signed payment authorization (x402 PaymentPayload).
207
+ * Can alternatively be provided via the PAYMENT-SIGNATURE header.
208
+ */
209
+ payment_signature?: string;
210
+ /**
211
+ * Header param: Signed payment authorization for the quote. Alternative to
212
+ * providing `payment_signature` in the request body.
213
+ */
214
+ header_payment_signature?: string;
215
+ }
216
+ export interface CreditAccountCreateQuoteParams {
217
+ /**
218
+ * Amount in USD to fund (minimum 5.00, maximum 10000.00).
219
+ */
220
+ amount_usd: string;
221
+ }
222
+ export declare namespace CreditAccount {
223
+ export { type CreditAccountCreateQuoteResponse as CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse as CreditAccountSettleResponse, type CreditAccountSettleParams as CreditAccountSettleParams, type CreditAccountCreateQuoteParams as CreditAccountCreateQuoteParams, };
224
+ export { Payments as Payments, type X402TransactionRecord as X402TransactionRecord, type PaymentRetrieveResponse as PaymentRetrieveResponse, type X402TransactionRecordsDefaultFlatPagination as X402TransactionRecordsDefaultFlatPagination, type PaymentListParams as PaymentListParams, };
225
+ }
226
+ //# sourceMappingURL=credit-account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credit-account.d.ts","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/credit-account.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO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AC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,WAAW,CAAC,EAAE,kBAAkB,CAAC;QAEjC;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC;QAEnB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,66 @@
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.CreditAccount = void 0;
5
+ const tslib_1 = require("../../../internal/tslib.js");
6
+ const resource_1 = require("../../../core/resource.js");
7
+ const PaymentsAPI = tslib_1.__importStar(require("./payments.js"));
8
+ const payments_1 = require("./payments.js");
9
+ const headers_1 = require("../../../internal/headers.js");
10
+ /**
11
+ * Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
12
+ */
13
+ class CreditAccount extends resource_1.APIResource {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.payments = new PaymentsAPI.Payments(this._client);
17
+ }
18
+ /**
19
+ * Settles an x402 payment using the quote ID and a signed payment authorization.
20
+ * The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
21
+ * `payment_signature` body parameter. Settlement is idempotent — submitting the
22
+ * same quote ID multiple times returns the existing transaction.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const response = await client.x402.creditAccount.settle({
27
+ * id: 'quote_abc123',
28
+ * payment_signature: '0xabc123...',
29
+ * });
30
+ * ```
31
+ */
32
+ settle(params, options) {
33
+ const { header_payment_signature, ...body } = params;
34
+ return this._client.post('/x402/credit_account', {
35
+ body,
36
+ ...options,
37
+ headers: (0, headers_1.buildHeaders)([
38
+ {
39
+ ...(header_payment_signature != null ?
40
+ { 'PAYMENT-SIGNATURE': header_payment_signature }
41
+ : undefined),
42
+ },
43
+ options?.headers,
44
+ ]),
45
+ });
46
+ }
47
+ /**
48
+ * Creates a payment quote for the specified USD amount. Returns payment details
49
+ * including the x402 payment requirements, network, and expiration time. The quote
50
+ * must be settled before it expires.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const response =
55
+ * await client.x402.creditAccount.createQuote({
56
+ * amount_usd: '50.00',
57
+ * });
58
+ * ```
59
+ */
60
+ createQuote(body, options) {
61
+ return this._client.post('/x402/credit_account/quote', { body, ...options });
62
+ }
63
+ }
64
+ exports.CreditAccount = CreditAccount;
65
+ CreditAccount.Payments = payments_1.Payments;
66
+ //# sourceMappingURL=credit-account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credit-account.js","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/credit-account.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,mEAA0C;AAC1C,4CAMoB;AAEpB,0DAAyD;AAGzD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsD1E,CAAC;IApDC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,wBAAwB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,wBAAwB,IAAI,IAAI,CAAC,CAAC;wBACpC,EAAE,mBAAmB,EAAE,wBAAwB,EAAE;wBACnD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAvDD,sCAuDC;AA6ND,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -0,0 +1,61 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import * as PaymentsAPI from "./payments.mjs";
4
+ import { Payments, } from "./payments.mjs";
5
+ import { buildHeaders } from "../../../internal/headers.mjs";
6
+ /**
7
+ * Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
8
+ */
9
+ export class CreditAccount extends APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.payments = new PaymentsAPI.Payments(this._client);
13
+ }
14
+ /**
15
+ * Settles an x402 payment using the quote ID and a signed payment authorization.
16
+ * The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
17
+ * `payment_signature` body parameter. Settlement is idempotent — submitting the
18
+ * same quote ID multiple times returns the existing transaction.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const response = await client.x402.creditAccount.settle({
23
+ * id: 'quote_abc123',
24
+ * payment_signature: '0xabc123...',
25
+ * });
26
+ * ```
27
+ */
28
+ settle(params, options) {
29
+ const { header_payment_signature, ...body } = params;
30
+ return this._client.post('/x402/credit_account', {
31
+ body,
32
+ ...options,
33
+ headers: buildHeaders([
34
+ {
35
+ ...(header_payment_signature != null ?
36
+ { 'PAYMENT-SIGNATURE': header_payment_signature }
37
+ : undefined),
38
+ },
39
+ options?.headers,
40
+ ]),
41
+ });
42
+ }
43
+ /**
44
+ * Creates a payment quote for the specified USD amount. Returns payment details
45
+ * including the x402 payment requirements, network, and expiration time. The quote
46
+ * must be settled before it expires.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const response =
51
+ * await client.x402.creditAccount.createQuote({
52
+ * amount_usd: '50.00',
53
+ * });
54
+ * ```
55
+ */
56
+ createQuote(body, options) {
57
+ return this._client.post('/x402/credit_account/quote', { body, ...options });
58
+ }
59
+ }
60
+ CreditAccount.Payments = Payments;
61
+ //# sourceMappingURL=credit-account.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credit-account.mjs","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/credit-account.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAGL,QAAQ,GAGT,uBAAmB;AAEpB,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAGzD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsD1E,CAAC;IApDC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,wBAAwB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,wBAAwB,IAAI,IAAI,CAAC,CAAC;wBACpC,EAAE,mBAAmB,EAAE,wBAAwB,EAAE;wBACnD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AA6ND,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CreditAccount, type CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse, type CreditAccountSettleParams, type CreditAccountCreateQuoteParams, } from "./credit-account.mjs";
2
+ export { Payments, type X402TransactionRecord, type PaymentRetrieveResponse, type PaymentListParams, type X402TransactionRecordsDefaultFlatPagination, } from "./payments.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,6BAAyB;AAC1B,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,GACjD,uBAAmB"}
@@ -0,0 +1,3 @@
1
+ export { CreditAccount, type CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse, type CreditAccountSettleParams, type CreditAccountCreateQuoteParams, } from "./credit-account.js";
2
+ export { Payments, type X402TransactionRecord, type PaymentRetrieveResponse, type PaymentListParams, type X402TransactionRecordsDefaultFlatPagination, } from "./payments.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,4BAAyB;AAC1B,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,GACjD,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.Payments = exports.CreditAccount = void 0;
5
+ var credit_account_1 = require("./credit-account.js");
6
+ Object.defineProperty(exports, "CreditAccount", { enumerable: true, get: function () { return credit_account_1.CreditAccount; } });
7
+ var payments_1 = require("./payments.js");
8
+ Object.defineProperty(exports, "Payments", { enumerable: true, get: function () { return payments_1.Payments; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAM0B;AALxB,+GAAA,aAAa,OAAA;AAMf,0CAMoB;AALlB,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { CreditAccount, } from "./credit-account.mjs";
3
+ export { Payments, } from "./payments.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,GAKd,6BAAyB;AAC1B,OAAO,EACL,QAAQ,GAKT,uBAAmB"}