telnyx 7.29.0 → 7.30.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 (404) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +27 -0
  3. package/client.d.mts +9 -10
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +9 -10
  6. package/client.d.ts.map +1 -1
  7. package/client.js +0 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +0 -3
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +20 -0
  12. package/core/pagination.d.mts.map +1 -1
  13. package/core/pagination.d.ts +20 -0
  14. package/core/pagination.d.ts.map +1 -1
  15. package/core/pagination.js +25 -1
  16. package/core/pagination.js.map +1 -1
  17. package/core/pagination.mjs +23 -0
  18. package/core/pagination.mjs.map +1 -1
  19. package/lib/login-token.d.mts +91 -0
  20. package/lib/login-token.d.mts.map +1 -0
  21. package/lib/login-token.d.ts +91 -0
  22. package/lib/login-token.d.ts.map +1 -0
  23. package/lib/login-token.js +190 -0
  24. package/lib/login-token.js.map +1 -0
  25. package/lib/login-token.mjs +151 -0
  26. package/lib/login-token.mjs.map +1 -0
  27. package/package.json +1 -1
  28. package/resources/ai/ai.d.mts +9 -4
  29. package/resources/ai/ai.d.mts.map +1 -1
  30. package/resources/ai/ai.d.ts +9 -4
  31. package/resources/ai/ai.d.ts.map +1 -1
  32. package/resources/ai/ai.js.map +1 -1
  33. package/resources/ai/ai.mjs.map +1 -1
  34. package/resources/ai/assistants/assistants.d.mts +191 -109
  35. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  36. package/resources/ai/assistants/assistants.d.ts +191 -109
  37. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  38. package/resources/ai/assistants/assistants.js.map +1 -1
  39. package/resources/ai/assistants/assistants.mjs.map +1 -1
  40. package/resources/ai/assistants/index.d.mts +1 -1
  41. package/resources/ai/assistants/index.d.mts.map +1 -1
  42. package/resources/ai/assistants/index.d.ts +1 -1
  43. package/resources/ai/assistants/index.d.ts.map +1 -1
  44. package/resources/ai/assistants/index.js.map +1 -1
  45. package/resources/ai/assistants/index.mjs.map +1 -1
  46. package/resources/ai/chat.d.mts +3 -5
  47. package/resources/ai/chat.d.mts.map +1 -1
  48. package/resources/ai/chat.d.ts +3 -5
  49. package/resources/ai/chat.d.ts.map +1 -1
  50. package/resources/ai/conversations/conversations.d.mts +27 -2
  51. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  52. package/resources/ai/conversations/conversations.d.ts +27 -2
  53. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  54. package/resources/ai/conversations/conversations.js +23 -1
  55. package/resources/ai/conversations/conversations.js.map +1 -1
  56. package/resources/ai/conversations/conversations.mjs +23 -1
  57. package/resources/ai/conversations/conversations.mjs.map +1 -1
  58. package/resources/ai/conversations/index.d.mts +1 -1
  59. package/resources/ai/conversations/index.d.mts.map +1 -1
  60. package/resources/ai/conversations/index.d.ts +1 -1
  61. package/resources/ai/conversations/index.d.ts.map +1 -1
  62. package/resources/ai/conversations/index.js.map +1 -1
  63. package/resources/ai/conversations/index.mjs.map +1 -1
  64. package/resources/ai/index.d.mts +2 -2
  65. package/resources/ai/index.d.mts.map +1 -1
  66. package/resources/ai/index.d.ts +2 -2
  67. package/resources/ai/index.d.ts.map +1 -1
  68. package/resources/ai/index.js.map +1 -1
  69. package/resources/ai/index.mjs.map +1 -1
  70. package/resources/ai/memory/namespaces/index.d.mts +1 -1
  71. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  72. package/resources/ai/memory/namespaces/index.d.ts +1 -1
  73. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  74. package/resources/ai/memory/namespaces/index.js.map +1 -1
  75. package/resources/ai/memory/namespaces/index.mjs +1 -1
  76. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  77. package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
  78. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  79. package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
  80. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  81. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  82. package/resources/ai/memory/namespaces/namespaces.mjs +1 -1
  83. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  84. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +3 -3
  85. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  86. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +3 -3
  87. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  88. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  89. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  90. package/resources/ai/memory/namespaces/settings.d.mts +23 -27
  91. package/resources/ai/memory/namespaces/settings.d.mts.map +1 -1
  92. package/resources/ai/memory/namespaces/settings.d.ts +23 -27
  93. package/resources/ai/memory/namespaces/settings.d.ts.map +1 -1
  94. package/resources/ai/openai/chat.d.mts +3 -5
  95. package/resources/ai/openai/chat.d.mts.map +1 -1
  96. package/resources/ai/openai/chat.d.ts +3 -5
  97. package/resources/ai/openai/chat.d.ts.map +1 -1
  98. package/resources/ai/tests/test-framework/v1/v1.d.mts +15 -5
  99. package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -1
  100. package/resources/ai/tests/test-framework/v1/v1.d.ts +15 -5
  101. package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -1
  102. package/resources/ai/tools.d.mts +222 -0
  103. package/resources/ai/tools.d.mts.map +1 -1
  104. package/resources/ai/tools.d.ts +222 -0
  105. package/resources/ai/tools.d.ts.map +1 -1
  106. package/resources/browser-sessions/actions.d.mts +13 -7
  107. package/resources/browser-sessions/actions.d.mts.map +1 -1
  108. package/resources/browser-sessions/actions.d.ts +13 -7
  109. package/resources/browser-sessions/actions.d.ts.map +1 -1
  110. package/resources/browser-sessions/browser-sessions.d.mts +6 -2
  111. package/resources/browser-sessions/browser-sessions.d.mts.map +1 -1
  112. package/resources/browser-sessions/browser-sessions.d.ts +6 -2
  113. package/resources/browser-sessions/browser-sessions.d.ts.map +1 -1
  114. package/resources/compute/funcs/export.d.mts +33 -35
  115. package/resources/compute/funcs/export.d.mts.map +1 -1
  116. package/resources/compute/funcs/export.d.ts +33 -35
  117. package/resources/compute/funcs/export.d.ts.map +1 -1
  118. package/resources/compute/funcs/funcs.d.mts +2 -2
  119. package/resources/compute/funcs/funcs.d.mts.map +1 -1
  120. package/resources/compute/funcs/funcs.d.ts +2 -2
  121. package/resources/compute/funcs/funcs.d.ts.map +1 -1
  122. package/resources/compute/funcs/funcs.js.map +1 -1
  123. package/resources/compute/funcs/funcs.mjs.map +1 -1
  124. package/resources/compute/funcs/index.d.mts +1 -1
  125. package/resources/compute/funcs/index.d.mts.map +1 -1
  126. package/resources/compute/funcs/index.d.ts +1 -1
  127. package/resources/compute/funcs/index.d.ts.map +1 -1
  128. package/resources/compute/funcs/index.js.map +1 -1
  129. package/resources/compute/funcs/index.mjs +1 -1
  130. package/resources/compute/funcs/index.mjs.map +1 -1
  131. package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -1
  132. package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -1
  133. package/resources/email/dedicated-ips/dedicated-ips.js +2 -2
  134. package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -1
  135. package/resources/email/dedicated-ips/dedicated-ips.mjs +2 -2
  136. package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -1
  137. package/resources/email-events.d.mts +84 -106
  138. package/resources/email-events.d.mts.map +1 -1
  139. package/resources/email-events.d.ts +84 -106
  140. package/resources/email-events.d.ts.map +1 -1
  141. package/resources/email-events.js +5 -1
  142. package/resources/email-events.js.map +1 -1
  143. package/resources/email-events.mjs +5 -1
  144. package/resources/email-events.mjs.map +1 -1
  145. package/resources/email-messages/email-messages.d.mts +1 -7
  146. package/resources/email-messages/email-messages.d.mts.map +1 -1
  147. package/resources/email-messages/email-messages.d.ts +1 -7
  148. package/resources/email-messages/email-messages.d.ts.map +1 -1
  149. package/resources/email-messages/email-messages.js.map +1 -1
  150. package/resources/email-messages/email-messages.mjs.map +1 -1
  151. package/resources/email-templates.d.mts +16 -70
  152. package/resources/email-templates.d.mts.map +1 -1
  153. package/resources/email-templates.d.ts +16 -70
  154. package/resources/email-templates.d.ts.map +1 -1
  155. package/resources/enterprises/enterprises.d.mts +2 -2
  156. package/resources/enterprises/enterprises.d.mts.map +1 -1
  157. package/resources/enterprises/enterprises.d.ts +2 -2
  158. package/resources/enterprises/enterprises.d.ts.map +1 -1
  159. package/resources/enterprises/enterprises.js.map +1 -1
  160. package/resources/enterprises/enterprises.mjs.map +1 -1
  161. package/resources/enterprises/index.d.mts +1 -1
  162. package/resources/enterprises/index.d.mts.map +1 -1
  163. package/resources/enterprises/index.d.ts +1 -1
  164. package/resources/enterprises/index.d.ts.map +1 -1
  165. package/resources/enterprises/index.js.map +1 -1
  166. package/resources/enterprises/index.mjs.map +1 -1
  167. package/resources/enterprises/reputation/external-verification.d.mts +26 -29
  168. package/resources/enterprises/reputation/external-verification.d.mts.map +1 -1
  169. package/resources/enterprises/reputation/external-verification.d.ts +26 -29
  170. package/resources/enterprises/reputation/external-verification.d.ts.map +1 -1
  171. package/resources/enterprises/reputation/external-verification.js +3 -3
  172. package/resources/enterprises/reputation/external-verification.js.map +1 -1
  173. package/resources/enterprises/reputation/external-verification.mjs +1 -1
  174. package/resources/enterprises/reputation/external-verification.mjs.map +1 -1
  175. package/resources/enterprises/reputation/index.d.mts +1 -1
  176. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  177. package/resources/enterprises/reputation/index.d.ts +1 -1
  178. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  179. package/resources/enterprises/reputation/index.js +2 -2
  180. package/resources/enterprises/reputation/index.js.map +1 -1
  181. package/resources/enterprises/reputation/index.mjs +1 -1
  182. package/resources/enterprises/reputation/index.mjs.map +1 -1
  183. package/resources/enterprises/reputation/reputation.d.mts +3 -3
  184. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  185. package/resources/enterprises/reputation/reputation.d.ts +3 -3
  186. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  187. package/resources/enterprises/reputation/reputation.js +2 -2
  188. package/resources/enterprises/reputation/reputation.js.map +1 -1
  189. package/resources/enterprises/reputation/reputation.mjs +3 -3
  190. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  191. package/resources/enterprises/verify-email.d.mts +27 -29
  192. package/resources/enterprises/verify-email.d.mts.map +1 -1
  193. package/resources/enterprises/verify-email.d.ts +27 -29
  194. package/resources/enterprises/verify-email.d.ts.map +1 -1
  195. package/resources/index.d.mts +3 -4
  196. package/resources/index.d.mts.map +1 -1
  197. package/resources/index.d.ts +3 -4
  198. package/resources/index.d.ts.map +1 -1
  199. package/resources/index.js +1 -3
  200. package/resources/index.js.map +1 -1
  201. package/resources/index.mjs +0 -1
  202. package/resources/index.mjs.map +1 -1
  203. package/resources/messages/messages.d.mts +32 -2
  204. package/resources/messages/messages.d.mts.map +1 -1
  205. package/resources/messages/messages.d.ts +32 -2
  206. package/resources/messages/messages.d.ts.map +1 -1
  207. package/resources/messages/messages.js.map +1 -1
  208. package/resources/messages/messages.mjs.map +1 -1
  209. package/resources/messaging-profiles/messaging-profiles.d.mts +11 -0
  210. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  211. package/resources/messaging-profiles/messaging-profiles.d.ts +11 -0
  212. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  213. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  214. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  215. package/resources/number-lookup.d.mts +5 -0
  216. package/resources/number-lookup.d.mts.map +1 -1
  217. package/resources/number-lookup.d.ts +5 -0
  218. package/resources/number-lookup.d.ts.map +1 -1
  219. package/resources/pay-connectors.d.mts +7 -7
  220. package/resources/pay-connectors.d.mts.map +1 -1
  221. package/resources/pay-connectors.d.ts +7 -7
  222. package/resources/pay-connectors.d.ts.map +1 -1
  223. package/resources/phone-numbers/index.d.mts +1 -1
  224. package/resources/phone-numbers/index.d.mts.map +1 -1
  225. package/resources/phone-numbers/index.d.ts +1 -1
  226. package/resources/phone-numbers/index.d.ts.map +1 -1
  227. package/resources/phone-numbers/index.js.map +1 -1
  228. package/resources/phone-numbers/index.mjs.map +1 -1
  229. package/resources/phone-numbers/jobs.d.mts +21 -57
  230. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  231. package/resources/phone-numbers/jobs.d.ts +21 -57
  232. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  233. package/resources/phone-numbers/phone-numbers.d.mts +2 -2
  234. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  235. package/resources/phone-numbers/phone-numbers.d.ts +2 -2
  236. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  237. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  238. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  239. package/resources/portouts/portouts.d.mts +2 -1
  240. package/resources/portouts/portouts.d.mts.map +1 -1
  241. package/resources/portouts/portouts.d.ts +2 -1
  242. package/resources/portouts/portouts.d.ts.map +1 -1
  243. package/resources/portouts/portouts.js +2 -1
  244. package/resources/portouts/portouts.js.map +1 -1
  245. package/resources/portouts/portouts.mjs +2 -1
  246. package/resources/portouts/portouts.mjs.map +1 -1
  247. package/resources/telephony-credentials.d.mts +78 -2
  248. package/resources/telephony-credentials.d.mts.map +1 -1
  249. package/resources/telephony-credentials.d.ts +78 -2
  250. package/resources/telephony-credentials.d.ts.map +1 -1
  251. package/resources/telephony-credentials.js +50 -2
  252. package/resources/telephony-credentials.js.map +1 -1
  253. package/resources/telephony-credentials.mjs +50 -2
  254. package/resources/telephony-credentials.mjs.map +1 -1
  255. package/resources/voice-clones.d.mts +4 -4
  256. package/resources/voice-clones.d.mts.map +1 -1
  257. package/resources/voice-clones.d.ts +4 -4
  258. package/resources/voice-clones.d.ts.map +1 -1
  259. package/resources/webhooks.d.mts +10 -20
  260. package/resources/webhooks.d.mts.map +1 -1
  261. package/resources/webhooks.d.ts +10 -20
  262. package/resources/webhooks.d.ts.map +1 -1
  263. package/resources/whatsapp/business-accounts/business-accounts.d.mts +2 -2
  264. package/resources/whatsapp/business-accounts/business-accounts.d.mts.map +1 -1
  265. package/resources/whatsapp/business-accounts/business-accounts.d.ts +2 -2
  266. package/resources/whatsapp/business-accounts/business-accounts.d.ts.map +1 -1
  267. package/resources/whatsapp/business-accounts/business-accounts.js.map +1 -1
  268. package/resources/whatsapp/business-accounts/business-accounts.mjs.map +1 -1
  269. package/resources/whatsapp/business-accounts/index.d.mts +1 -1
  270. package/resources/whatsapp/business-accounts/index.d.mts.map +1 -1
  271. package/resources/whatsapp/business-accounts/index.d.ts +1 -1
  272. package/resources/whatsapp/business-accounts/index.d.ts.map +1 -1
  273. package/resources/whatsapp/business-accounts/index.js.map +1 -1
  274. package/resources/whatsapp/business-accounts/index.mjs.map +1 -1
  275. package/resources/whatsapp/business-accounts/phone-numbers.d.mts +7 -66
  276. package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
  277. package/resources/whatsapp/business-accounts/phone-numbers.d.ts +7 -66
  278. package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
  279. package/resources/whatsapp/business-accounts/phone-numbers.js +1 -1
  280. package/resources/whatsapp/business-accounts/phone-numbers.js.map +1 -1
  281. package/resources/whatsapp/business-accounts/phone-numbers.mjs +1 -1
  282. package/resources/whatsapp/business-accounts/phone-numbers.mjs.map +1 -1
  283. package/resources/whatsapp/hosted-signups.d.mts +11 -73
  284. package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
  285. package/resources/whatsapp/hosted-signups.d.ts +11 -73
  286. package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
  287. package/resources/whatsapp/hosted-signups.js +5 -2
  288. package/resources/whatsapp/hosted-signups.js.map +1 -1
  289. package/resources/whatsapp/hosted-signups.mjs +5 -2
  290. package/resources/whatsapp/hosted-signups.mjs.map +1 -1
  291. package/resources/whatsapp/index.d.mts +2 -2
  292. package/resources/whatsapp/index.d.mts.map +1 -1
  293. package/resources/whatsapp/index.d.ts +2 -2
  294. package/resources/whatsapp/index.d.ts.map +1 -1
  295. package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
  296. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  297. package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
  298. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  299. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +9 -135
  300. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  301. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +9 -135
  302. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  303. package/resources/whatsapp/phone-numbers/phone-numbers.js +1 -1
  304. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  305. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +1 -1
  306. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  307. package/resources/whatsapp/whatsapp.d.mts +4 -4
  308. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  309. package/resources/whatsapp/whatsapp.d.ts +4 -4
  310. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  311. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  312. package/src/client.ts +16 -5
  313. package/src/core/pagination.ts +58 -0
  314. package/src/lib/login-token.ts +223 -0
  315. package/src/resources/ai/ai.ts +12 -0
  316. package/src/resources/ai/assistants/assistants.ts +227 -144
  317. package/src/resources/ai/assistants/index.ts +2 -0
  318. package/src/resources/ai/chat.ts +3 -5
  319. package/src/resources/ai/conversations/conversations.ts +39 -1
  320. package/src/resources/ai/conversations/index.ts +1 -0
  321. package/src/resources/ai/index.ts +3 -0
  322. package/src/resources/ai/memory/namespaces/index.ts +7 -1
  323. package/src/resources/ai/memory/namespaces/namespaces.ts +9 -1
  324. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +5 -3
  325. package/src/resources/ai/memory/namespaces/settings.ts +25 -27
  326. package/src/resources/ai/openai/chat.ts +3 -5
  327. package/src/resources/ai/tests/test-framework/v1/v1.ts +5 -5
  328. package/src/resources/ai/tools.ts +366 -0
  329. package/src/resources/browser-sessions/actions.ts +7 -7
  330. package/src/resources/browser-sessions/browser-sessions.ts +2 -2
  331. package/src/resources/compute/funcs/export.ts +41 -42
  332. package/src/resources/compute/funcs/funcs.ts +2 -1
  333. package/src/resources/compute/funcs/index.ts +6 -1
  334. package/src/resources/email/dedicated-ips/dedicated-ips.ts +3 -2
  335. package/src/resources/email-events.ts +128 -147
  336. package/src/resources/email-messages/email-messages.ts +1 -7
  337. package/src/resources/email-templates.ts +17 -78
  338. package/src/resources/enterprises/enterprises.ts +2 -0
  339. package/src/resources/enterprises/index.ts +1 -0
  340. package/src/resources/enterprises/reputation/external-verification.ts +32 -34
  341. package/src/resources/enterprises/reputation/index.ts +2 -1
  342. package/src/resources/enterprises/reputation/reputation.ts +6 -4
  343. package/src/resources/enterprises/verify-email.ts +29 -30
  344. package/src/resources/index.ts +4 -1
  345. package/src/resources/messages/messages.ts +32 -2
  346. package/src/resources/messaging-profiles/messaging-profiles.ts +12 -0
  347. package/src/resources/number-lookup.ts +6 -0
  348. package/src/resources/pay-connectors.ts +7 -7
  349. package/src/resources/phone-numbers/index.ts +2 -0
  350. package/src/resources/phone-numbers/jobs.ts +22 -60
  351. package/src/resources/phone-numbers/phone-numbers.ts +4 -0
  352. package/src/resources/portouts/portouts.ts +2 -1
  353. package/src/resources/telephony-credentials.ts +108 -2
  354. package/src/resources/voice-clones.ts +4 -4
  355. package/src/resources/webhooks.ts +10 -20
  356. package/src/resources/whatsapp/business-accounts/business-accounts.ts +0 -4
  357. package/src/resources/whatsapp/business-accounts/index.ts +0 -2
  358. package/src/resources/whatsapp/business-accounts/phone-numbers.ts +7 -98
  359. package/src/resources/whatsapp/hosted-signups.ts +18 -97
  360. package/src/resources/whatsapp/index.ts +4 -4
  361. package/src/resources/whatsapp/phone-numbers/index.ts +2 -2
  362. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +11 -197
  363. package/src/resources/whatsapp/whatsapp.ts +8 -8
  364. package/src/version.ts +1 -1
  365. package/version.d.mts +1 -1
  366. package/version.d.ts +1 -1
  367. package/version.js +1 -1
  368. package/version.mjs +1 -1
  369. package/resources/tts-integrations/actions.d.mts +0 -4
  370. package/resources/tts-integrations/actions.d.mts.map +0 -1
  371. package/resources/tts-integrations/actions.d.ts +0 -4
  372. package/resources/tts-integrations/actions.d.ts.map +0 -1
  373. package/resources/tts-integrations/actions.js +0 -9
  374. package/resources/tts-integrations/actions.js.map +0 -1
  375. package/resources/tts-integrations/actions.mjs +0 -5
  376. package/resources/tts-integrations/actions.mjs.map +0 -1
  377. package/resources/tts-integrations/index.d.mts +0 -3
  378. package/resources/tts-integrations/index.d.mts.map +0 -1
  379. package/resources/tts-integrations/index.d.ts +0 -3
  380. package/resources/tts-integrations/index.d.ts.map +0 -1
  381. package/resources/tts-integrations/index.js +0 -9
  382. package/resources/tts-integrations/index.js.map +0 -1
  383. package/resources/tts-integrations/index.mjs +0 -4
  384. package/resources/tts-integrations/index.mjs.map +0 -1
  385. package/resources/tts-integrations/tts-integrations.d.mts +0 -10
  386. package/resources/tts-integrations/tts-integrations.d.mts.map +0 -1
  387. package/resources/tts-integrations/tts-integrations.d.ts +0 -10
  388. package/resources/tts-integrations/tts-integrations.d.ts.map +0 -1
  389. package/resources/tts-integrations/tts-integrations.js +0 -17
  390. package/resources/tts-integrations/tts-integrations.js.map +0 -1
  391. package/resources/tts-integrations/tts-integrations.mjs +0 -12
  392. package/resources/tts-integrations/tts-integrations.mjs.map +0 -1
  393. package/resources/tts-integrations.d.mts +0 -2
  394. package/resources/tts-integrations.d.mts.map +0 -1
  395. package/resources/tts-integrations.d.ts +0 -2
  396. package/resources/tts-integrations.d.ts.map +0 -1
  397. package/resources/tts-integrations.js +0 -6
  398. package/resources/tts-integrations.js.map +0 -1
  399. package/resources/tts-integrations.mjs +0 -3
  400. package/resources/tts-integrations.mjs.map +0 -1
  401. package/src/resources/tts-integrations/actions.ts +0 -5
  402. package/src/resources/tts-integrations/index.ts +0 -4
  403. package/src/resources/tts-integrations/tts-integrations.ts +0 -15
  404. package/src/resources/tts-integrations.ts +0 -3
@@ -57,41 +57,37 @@ export class Settings extends APIResource {
57
57
  }
58
58
  }
59
59
 
60
- export interface NamespaceSettingsResponse {
60
+ /**
61
+ * A namespace's settings, grouped by what they affect.
62
+ */
63
+ export interface NamespaceSettings {
61
64
  /**
62
- * A namespace's settings, grouped by what they affect.
65
+ * Settings that shape this namespace's summaries.
63
66
  */
64
- data: NamespaceSettingsResponse.Data;
67
+ summary?: SummarySettings;
65
68
  }
66
69
 
67
- export namespace NamespaceSettingsResponse {
70
+ export interface NamespaceSettingsResponse {
68
71
  /**
69
72
  * A namespace's settings, grouped by what they affect.
70
73
  */
71
- export interface Data {
72
- /**
73
- * Settings that shape this namespace's summaries.
74
- */
75
- summary?: Data.Summary;
76
- }
74
+ data: NamespaceSettings;
75
+ }
77
76
 
78
- export namespace Data {
79
- /**
80
- * Settings that shape this namespace's summaries.
81
- */
82
- export interface Summary {
83
- /**
84
- * Free-form instructions that influence how this namespace's summaries are
85
- * written, shared by every profile in the namespace. How you use them is up to you
86
- * -- they steer the outcome, so try a phrasing and see how the summary comes out.
87
- * Advisory: they steer the summary but never override or deny a profile's own
88
- * facts, and they do not affect recall. Null or empty means none are set, and
89
- * summaries use the neutral default. A change reaches each summary the next time
90
- * it is regenerated.
91
- */
92
- instructions?: string | null;
93
- }
94
- }
77
+ /**
78
+ * A namespace's summary settings, shared by every profile in it.
79
+ */
80
+ export interface SummarySettings {
81
+ /**
82
+ * Free-form instructions that influence how this namespace's summaries are
83
+ * written, shared by every profile in the namespace. How you use them is up to you
84
+ * -- they steer the outcome, so try a phrasing and see how the summary comes out.
85
+ * Advisory: they steer the summary but never override or deny a profile's own
86
+ * facts, and they do not affect recall. Null or empty means none are set, and
87
+ * summaries use the neutral default. A change reaches each summary the next time
88
+ * it is regenerated.
89
+ */
90
+ instructions?: string | null;
95
91
  }
96
92
 
97
93
  export interface SettingPatchAllParams {
@@ -123,7 +119,9 @@ export namespace SettingPatchAllParams {
123
119
 
124
120
  export declare namespace Settings {
125
121
  export {
122
+ type NamespaceSettings as NamespaceSettings,
126
123
  type NamespaceSettingsResponse as NamespaceSettingsResponse,
124
+ type SummarySettings as SummarySettings,
127
125
  type SettingPatchAllParams as SettingPatchAllParams,
128
126
  };
129
127
  }
@@ -105,14 +105,12 @@ export interface ChatCreateCompletionParams {
105
105
  * /v2/ai/openai/models). An omitted limit on an excluded model remains unset even
106
106
  * when metadata declares a ceiling. Input and output together must fit the model's
107
107
  * context window. Set an explicit limit when a bounded generation budget is
108
- * required. For current Telnyx-hosted models, omitted or null limits default to
109
- * 8192 for `zai-org/GLM-5.3`, `zai-org/GLM-5.3-Flash` and
110
- * `deepseek-ai/DeepSeek-V4.1-Flash`. The hosted exclusions are
108
+ * required. For example, omitted or null limits default to 8192 for
109
+ * `zai-org/GLM-5.3` and `zai-org/GLM-5.3-Flash`. Hosted exclusions include
111
110
  * `moonshotai/Kimi-K3`, `moonshotai/Kimi-K2.6`, `moonshotai/Kimi-K2.5`,
112
111
  * `zai-org/GLM-5.2`, `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M3-MXFP8`,
113
112
  * `MiniMaxAI/MiniMax-M2.7`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3-235B-A22B`,
114
- * `deepseek-ai/DeepSeek-V4-Flash-0731`, `meta-llama/Llama-3.3-70B-Instruct`,
115
- * `meta-llama/Meta-Llama-3.1-70B-Instruct`,
113
+ * `meta-llama/Llama-3.3-70B-Instruct`, `meta-llama/Meta-Llama-3.1-70B-Instruct`,
116
114
  * `meta-llama/Meta-Llama-3.1-8B-Instruct` and `google/gemma-2b-it`. Legacy
117
115
  * external and fine-tuned model IDs can also bypass the default; model discovery
118
116
  * reports completion ceilings, not whether this default applies. Set an explicit
@@ -121,7 +121,7 @@ export namespace V1RetrievePersonalitiesResponse {
121
121
  */
122
122
  forked_from?: number | null;
123
123
 
124
- generation_config?: unknown | null;
124
+ generation_config?: { [key: string]: unknown } | null;
125
125
 
126
126
  /**
127
127
  * How aggressively the personality interrupts the assistant.
@@ -131,9 +131,9 @@ export namespace V1RetrievePersonalitiesResponse {
131
131
  /**
132
132
  * Idle-timeout plan for messages during a call.
133
133
  */
134
- message_plan?: unknown | null;
134
+ message_plan?: { [key: string]: unknown } | null;
135
135
 
136
- network_simulation?: unknown | null;
136
+ network_simulation?: { [key: string]: unknown } | null;
137
137
 
138
138
  organization?: number | null;
139
139
 
@@ -141,9 +141,9 @@ export namespace V1RetrievePersonalitiesResponse {
141
141
 
142
142
  speed?: number | string | null;
143
143
 
144
- start_speaking_plan?: number | unknown | null;
144
+ start_speaking_plan?: number | { [key: string]: unknown } | null;
145
145
 
146
- stop_speaking_plan?: unknown | null;
146
+ stop_speaking_plan?: { [key: string]: unknown } | null;
147
147
 
148
148
  voice_volume?: number | null;
149
149
  }
@@ -127,11 +127,55 @@ export interface PayToolParams {
127
127
  */
128
128
  description?: string | null;
129
129
 
130
+ /**
131
+ * Time in milliseconds to wait between consecutive DTMF digits. Omitted means the
132
+ * platform default (5000) applies.
133
+ */
134
+ inter_digit_timeout_millis?: number;
135
+
136
+ /**
137
+ * Maximum number of attempts for each payment collection step. Omitted means the
138
+ * platform default (3) applies.
139
+ */
140
+ max_attempts?: number;
141
+
142
+ /**
143
+ * Minimum number of digits the caller must enter when collecting a credit-card
144
+ * billing postal code. Applies only when `postal_code` prompts the caller. Omitted
145
+ * means the platform default (1) applies. The maximum number of digits collected
146
+ * is the greater of 10 and this value. This does not validate the length of a
147
+ * postal code supplied directly in `postal_code`.
148
+ */
149
+ min_postal_code_length?: number;
150
+
130
151
  /**
131
152
  * Default payment method for payments processed by this tool.
132
153
  */
133
154
  payment_method?: string;
134
155
 
156
+ /**
157
+ * Controls billing postal code collection for credit-card payments. Set to `false`
158
+ * to skip the postal code prompt without supplying a postal code to the payment
159
+ * connector (non-US cards, e.g. Irish Eircodes). Set to `true` to prompt the
160
+ * caller. Supply a non-empty string, such as `"90210"`, to use that postal code
161
+ * without prompting. This option does not affect ACH debit payments or payments
162
+ * using an existing token.
163
+ */
164
+ postal_code?: string | boolean;
165
+
166
+ /**
167
+ * Custom text-to-speech prompts keyed by payment collection step. The AI assistant
168
+ * merges its own card-number prompt into this map, matching on the same step keys.
169
+ */
170
+ prompts?: PayToolParams.Prompts;
171
+
172
+ /**
173
+ * Time in milliseconds to wait for DTMF input for each collection step. Omitted
174
+ * means the platform default (5000) applies. Increase this for slower entry, e.g.
175
+ * a 16-digit card number.
176
+ */
177
+ timeout_millis?: number;
178
+
135
179
  /**
136
180
  * Restricts accepted card numbers to the listed card types. When the caller enters
137
181
  * a card number that does not match one of the listed types, Pay treats the input
@@ -142,6 +186,328 @@ export interface PayToolParams {
142
186
  >;
143
187
  }
144
188
 
189
+ export namespace PayToolParams {
190
+ /**
191
+ * Custom text-to-speech prompts keyed by payment collection step. The AI assistant
192
+ * merges its own card-number prompt into this map, matching on the same step keys.
193
+ */
194
+ export interface Prompts {
195
+ /**
196
+ * A default prompt string or an ordered list of qualified prompts.
197
+ */
198
+ 'bank-account-number'?: string | Array<Prompts.PayToolPromptList>;
199
+
200
+ /**
201
+ * A default prompt string or an ordered list of qualified prompts.
202
+ */
203
+ 'bank-routing-number'?: string | Array<Prompts.PayToolPromptList>;
204
+
205
+ /**
206
+ * A default prompt string or an ordered list of qualified prompts.
207
+ */
208
+ 'expiration-date'?: string | Array<Prompts.PayToolPromptList>;
209
+
210
+ /**
211
+ * A default prompt string or an ordered list of qualified prompts.
212
+ */
213
+ 'payment-card-number'?: string | Array<Prompts.PayToolPromptList>;
214
+
215
+ /**
216
+ * A default prompt string or an ordered list of qualified prompts.
217
+ */
218
+ 'postal-code'?: string | Array<Prompts.PayToolPromptList>;
219
+
220
+ /**
221
+ * A default prompt string or an ordered list of qualified prompts.
222
+ */
223
+ 'security-code'?: string | Array<Prompts.PayToolPromptList>;
224
+ }
225
+
226
+ export namespace Prompts {
227
+ /**
228
+ * A text-to-speech prompt with optional matching qualifiers, mirroring the Voice
229
+ * API PayPrompt schema.
230
+ */
231
+ export interface PayToolPromptList {
232
+ /**
233
+ * Text spoken for the payment collection step.
234
+ */
235
+ text: string;
236
+
237
+ /**
238
+ * Space-separated 1-based attempt numbers (1-9 followed by digits only, e.g.
239
+ * `"2 3"`) for which this prompt applies. A prompt qualified with an attempt
240
+ * number above `max_attempts` (default 3) is rejected at write time — it could
241
+ * never play.
242
+ */
243
+ attempt?: string;
244
+
245
+ /**
246
+ * Lowercase, case-sensitive detected card type for which this prompt applies.
247
+ */
248
+ card_type?:
249
+ | 'visa'
250
+ | 'mastercard'
251
+ | 'amex'
252
+ | 'optima'
253
+ | 'discover'
254
+ | 'diners-club'
255
+ | 'jcb'
256
+ | 'maestro'
257
+ | 'enroute';
258
+
259
+ /**
260
+ * Step error for which this prompt applies.
261
+ */
262
+ error_type?:
263
+ | 'timeout'
264
+ | 'invalid-card-number'
265
+ | 'invalid-card-type'
266
+ | 'invalid-date'
267
+ | 'invalid-security-code'
268
+ | 'invalid-postal-code'
269
+ | 'invalid-bank-routing-number'
270
+ | 'invalid-bank-account-number'
271
+ | 'input-matching-failed';
272
+ }
273
+
274
+ /**
275
+ * A text-to-speech prompt with optional matching qualifiers, mirroring the Voice
276
+ * API PayPrompt schema.
277
+ */
278
+ export interface PayToolPromptList {
279
+ /**
280
+ * Text spoken for the payment collection step.
281
+ */
282
+ text: string;
283
+
284
+ /**
285
+ * Space-separated 1-based attempt numbers (1-9 followed by digits only, e.g.
286
+ * `"2 3"`) for which this prompt applies. A prompt qualified with an attempt
287
+ * number above `max_attempts` (default 3) is rejected at write time — it could
288
+ * never play.
289
+ */
290
+ attempt?: string;
291
+
292
+ /**
293
+ * Lowercase, case-sensitive detected card type for which this prompt applies.
294
+ */
295
+ card_type?:
296
+ | 'visa'
297
+ | 'mastercard'
298
+ | 'amex'
299
+ | 'optima'
300
+ | 'discover'
301
+ | 'diners-club'
302
+ | 'jcb'
303
+ | 'maestro'
304
+ | 'enroute';
305
+
306
+ /**
307
+ * Step error for which this prompt applies.
308
+ */
309
+ error_type?:
310
+ | 'timeout'
311
+ | 'invalid-card-number'
312
+ | 'invalid-card-type'
313
+ | 'invalid-date'
314
+ | 'invalid-security-code'
315
+ | 'invalid-postal-code'
316
+ | 'invalid-bank-routing-number'
317
+ | 'invalid-bank-account-number'
318
+ | 'input-matching-failed';
319
+ }
320
+
321
+ /**
322
+ * A text-to-speech prompt with optional matching qualifiers, mirroring the Voice
323
+ * API PayPrompt schema.
324
+ */
325
+ export interface PayToolPromptList {
326
+ /**
327
+ * Text spoken for the payment collection step.
328
+ */
329
+ text: string;
330
+
331
+ /**
332
+ * Space-separated 1-based attempt numbers (1-9 followed by digits only, e.g.
333
+ * `"2 3"`) for which this prompt applies. A prompt qualified with an attempt
334
+ * number above `max_attempts` (default 3) is rejected at write time — it could
335
+ * never play.
336
+ */
337
+ attempt?: string;
338
+
339
+ /**
340
+ * Lowercase, case-sensitive detected card type for which this prompt applies.
341
+ */
342
+ card_type?:
343
+ | 'visa'
344
+ | 'mastercard'
345
+ | 'amex'
346
+ | 'optima'
347
+ | 'discover'
348
+ | 'diners-club'
349
+ | 'jcb'
350
+ | 'maestro'
351
+ | 'enroute';
352
+
353
+ /**
354
+ * Step error for which this prompt applies.
355
+ */
356
+ error_type?:
357
+ | 'timeout'
358
+ | 'invalid-card-number'
359
+ | 'invalid-card-type'
360
+ | 'invalid-date'
361
+ | 'invalid-security-code'
362
+ | 'invalid-postal-code'
363
+ | 'invalid-bank-routing-number'
364
+ | 'invalid-bank-account-number'
365
+ | 'input-matching-failed';
366
+ }
367
+
368
+ /**
369
+ * A text-to-speech prompt with optional matching qualifiers, mirroring the Voice
370
+ * API PayPrompt schema.
371
+ */
372
+ export interface PayToolPromptList {
373
+ /**
374
+ * Text spoken for the payment collection step.
375
+ */
376
+ text: string;
377
+
378
+ /**
379
+ * Space-separated 1-based attempt numbers (1-9 followed by digits only, e.g.
380
+ * `"2 3"`) for which this prompt applies. A prompt qualified with an attempt
381
+ * number above `max_attempts` (default 3) is rejected at write time — it could
382
+ * never play.
383
+ */
384
+ attempt?: string;
385
+
386
+ /**
387
+ * Lowercase, case-sensitive detected card type for which this prompt applies.
388
+ */
389
+ card_type?:
390
+ | 'visa'
391
+ | 'mastercard'
392
+ | 'amex'
393
+ | 'optima'
394
+ | 'discover'
395
+ | 'diners-club'
396
+ | 'jcb'
397
+ | 'maestro'
398
+ | 'enroute';
399
+
400
+ /**
401
+ * Step error for which this prompt applies.
402
+ */
403
+ error_type?:
404
+ | 'timeout'
405
+ | 'invalid-card-number'
406
+ | 'invalid-card-type'
407
+ | 'invalid-date'
408
+ | 'invalid-security-code'
409
+ | 'invalid-postal-code'
410
+ | 'invalid-bank-routing-number'
411
+ | 'invalid-bank-account-number'
412
+ | 'input-matching-failed';
413
+ }
414
+
415
+ /**
416
+ * A text-to-speech prompt with optional matching qualifiers, mirroring the Voice
417
+ * API PayPrompt schema.
418
+ */
419
+ export interface PayToolPromptList {
420
+ /**
421
+ * Text spoken for the payment collection step.
422
+ */
423
+ text: string;
424
+
425
+ /**
426
+ * Space-separated 1-based attempt numbers (1-9 followed by digits only, e.g.
427
+ * `"2 3"`) for which this prompt applies. A prompt qualified with an attempt
428
+ * number above `max_attempts` (default 3) is rejected at write time — it could
429
+ * never play.
430
+ */
431
+ attempt?: string;
432
+
433
+ /**
434
+ * Lowercase, case-sensitive detected card type for which this prompt applies.
435
+ */
436
+ card_type?:
437
+ | 'visa'
438
+ | 'mastercard'
439
+ | 'amex'
440
+ | 'optima'
441
+ | 'discover'
442
+ | 'diners-club'
443
+ | 'jcb'
444
+ | 'maestro'
445
+ | 'enroute';
446
+
447
+ /**
448
+ * Step error for which this prompt applies.
449
+ */
450
+ error_type?:
451
+ | 'timeout'
452
+ | 'invalid-card-number'
453
+ | 'invalid-card-type'
454
+ | 'invalid-date'
455
+ | 'invalid-security-code'
456
+ | 'invalid-postal-code'
457
+ | 'invalid-bank-routing-number'
458
+ | 'invalid-bank-account-number'
459
+ | 'input-matching-failed';
460
+ }
461
+
462
+ /**
463
+ * A text-to-speech prompt with optional matching qualifiers, mirroring the Voice
464
+ * API PayPrompt schema.
465
+ */
466
+ export interface PayToolPromptList {
467
+ /**
468
+ * Text spoken for the payment collection step.
469
+ */
470
+ text: string;
471
+
472
+ /**
473
+ * Space-separated 1-based attempt numbers (1-9 followed by digits only, e.g.
474
+ * `"2 3"`) for which this prompt applies. A prompt qualified with an attempt
475
+ * number above `max_attempts` (default 3) is rejected at write time — it could
476
+ * never play.
477
+ */
478
+ attempt?: string;
479
+
480
+ /**
481
+ * Lowercase, case-sensitive detected card type for which this prompt applies.
482
+ */
483
+ card_type?:
484
+ | 'visa'
485
+ | 'mastercard'
486
+ | 'amex'
487
+ | 'optima'
488
+ | 'discover'
489
+ | 'diners-club'
490
+ | 'jcb'
491
+ | 'maestro'
492
+ | 'enroute';
493
+
494
+ /**
495
+ * Step error for which this prompt applies.
496
+ */
497
+ error_type?:
498
+ | 'timeout'
499
+ | 'invalid-card-number'
500
+ | 'invalid-card-type'
501
+ | 'invalid-date'
502
+ | 'invalid-security-code'
503
+ | 'invalid-postal-code'
504
+ | 'invalid-bank-routing-number'
505
+ | 'invalid-bank-account-number'
506
+ | 'input-matching-failed';
507
+ }
508
+ }
509
+ }
510
+
145
511
  export interface SharedToolResponse {
146
512
  id: string;
147
513
 
@@ -80,7 +80,7 @@ export interface ActionResponse {
80
80
  * Normalized request metadata; defaults may be materialized and fill values are
81
81
  * redacted as {redacted: true, length: number}, including inside batch actions.
82
82
  */
83
- request: unknown;
83
+ request: { [key: string]: unknown };
84
84
 
85
85
  result: ActionResponse.Result | null;
86
86
 
@@ -131,7 +131,7 @@ export namespace ActionResponse {
131
131
  /**
132
132
  * Present only for batch actions.
133
133
  */
134
- results?: Array<unknown>;
134
+ results?: Array<{ [key: string]: unknown }>;
135
135
 
136
136
  title?: string;
137
137
 
@@ -162,7 +162,7 @@ export namespace ActionResponse {
162
162
  */
163
163
  ref_count?: number;
164
164
 
165
- refs?: unknown;
165
+ refs?: { [key: string]: unknown };
166
166
 
167
167
  title?: string;
168
168
 
@@ -313,7 +313,7 @@ export interface WaitForAction {
313
313
  | WaitForAction.UnionMember0
314
314
  | WaitForAction.UnionMember1
315
315
  | WaitForAction.UnionMember2
316
- | WaitForAction.Kind;
316
+ | WaitForAction.UnionMember3;
317
317
 
318
318
  type: 'wait_for';
319
319
 
@@ -345,7 +345,7 @@ export namespace WaitForAction {
345
345
  text: string;
346
346
  }
347
347
 
348
- export interface Kind {
348
+ export interface UnionMember3 {
349
349
  kind: 'dom_stable';
350
350
  }
351
351
  }
@@ -658,7 +658,7 @@ export declare namespace ActionCreateParams {
658
658
  | WaitForAction.UnionMember0
659
659
  | WaitForAction.UnionMember1
660
660
  | WaitForAction.UnionMember2
661
- | WaitForAction.Kind;
661
+ | WaitForAction.UnionMember3;
662
662
 
663
663
  /**
664
664
  * Body param
@@ -709,7 +709,7 @@ export declare namespace ActionCreateParams {
709
709
  text: string;
710
710
  }
711
711
 
712
- export interface Kind {
712
+ export interface UnionMember3 {
713
713
  kind: 'dom_stable';
714
714
  }
715
715
  }
@@ -126,7 +126,7 @@ export interface Session {
126
126
 
127
127
  limits: Session.Limits;
128
128
 
129
- metadata: unknown;
129
+ metadata: { [key: string]: unknown };
130
130
 
131
131
  policy: Session.Policy;
132
132
 
@@ -218,7 +218,7 @@ export interface BrowserSessionCreateParams {
218
218
  /**
219
219
  * Arbitrary key-value metadata.
220
220
  */
221
- metadata?: unknown;
221
+ metadata?: { [key: string]: unknown };
222
222
  }
223
223
 
224
224
  export namespace BrowserSessionCreateParams {
@@ -75,56 +75,54 @@ export class Export extends APIResource {
75
75
  }
76
76
  }
77
77
 
78
- export interface FuncLogExportConfigResponse {
78
+ /**
79
+ * Metadata-only view of a function's log export destination. Header values are
80
+ * write-only (encrypted server-side) and never appear in any response.
81
+ */
82
+ export interface FuncLogExportConfig {
79
83
  /**
80
- * Metadata-only view of a function's log export destination. Header values are
81
- * write-only (encrypted server-side) and never appear in any response.
84
+ * Configuration record ID
82
85
  */
83
- data?: FuncLogExportConfigResponse.Data;
86
+ id?: string;
87
+
88
+ created_at?: string;
89
+
90
+ /**
91
+ * Whether export is enabled for this function
92
+ */
93
+ enabled?: boolean;
94
+
95
+ /**
96
+ * HTTPS OTLP endpoint URL logs are pushed to
97
+ */
98
+ endpoint?: string;
99
+
100
+ /**
101
+ * Function ID this configuration belongs to
102
+ */
103
+ func_id?: string;
104
+
105
+ /**
106
+ * Whether invocation records (one per HTTP request) are exported
107
+ */
108
+ invocation_export_enabled?: boolean;
109
+
110
+ record_type?: 'compute_func_log_export_config';
111
+
112
+ /**
113
+ * Whether runtime logs (function stdout/stderr) are exported
114
+ */
115
+ runtime_export_enabled?: boolean;
116
+
117
+ updated_at?: string;
84
118
  }
85
119
 
86
- export namespace FuncLogExportConfigResponse {
120
+ export interface FuncLogExportConfigResponse {
87
121
  /**
88
122
  * Metadata-only view of a function's log export destination. Header values are
89
123
  * write-only (encrypted server-side) and never appear in any response.
90
124
  */
91
- export interface Data {
92
- /**
93
- * Configuration record ID
94
- */
95
- id?: string;
96
-
97
- created_at?: string;
98
-
99
- /**
100
- * Whether export is enabled for this function
101
- */
102
- enabled?: boolean;
103
-
104
- /**
105
- * HTTPS OTLP endpoint URL logs are pushed to
106
- */
107
- endpoint?: string;
108
-
109
- /**
110
- * Function ID this configuration belongs to
111
- */
112
- func_id?: string;
113
-
114
- /**
115
- * Whether invocation records (one per HTTP request) are exported
116
- */
117
- invocation_export_enabled?: boolean;
118
-
119
- record_type?: 'compute_func_log_export_config';
120
-
121
- /**
122
- * Whether runtime logs (function stdout/stderr) are exported
123
- */
124
- runtime_export_enabled?: boolean;
125
-
126
- updated_at?: string;
127
- }
125
+ data?: FuncLogExportConfig;
128
126
  }
129
127
 
130
128
  export interface ExportCreateParams {
@@ -153,6 +151,7 @@ export interface ExportCreateParams {
153
151
 
154
152
  export declare namespace Export {
155
153
  export {
154
+ type FuncLogExportConfig as FuncLogExportConfig,
156
155
  type FuncLogExportConfigResponse as FuncLogExportConfigResponse,
157
156
  type ExportCreateParams as ExportCreateParams,
158
157
  };