telnyx 7.30.0-beta.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 (405) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +8 -9
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -9
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +20 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +20 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +25 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +23 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/lib/login-token.d.mts +7 -3
  19. package/lib/login-token.d.mts.map +1 -1
  20. package/lib/login-token.d.ts +7 -3
  21. package/lib/login-token.d.ts.map +1 -1
  22. package/lib/login-token.js.map +1 -1
  23. package/lib/login-token.mjs.map +1 -1
  24. package/package.json +1 -1
  25. package/resources/ai/ai.d.mts +9 -4
  26. package/resources/ai/ai.d.mts.map +1 -1
  27. package/resources/ai/ai.d.ts +9 -4
  28. package/resources/ai/ai.d.ts.map +1 -1
  29. package/resources/ai/ai.js.map +1 -1
  30. package/resources/ai/ai.mjs.map +1 -1
  31. package/resources/ai/assistants/assistants.d.mts +191 -109
  32. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  33. package/resources/ai/assistants/assistants.d.ts +191 -109
  34. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  35. package/resources/ai/assistants/assistants.js.map +1 -1
  36. package/resources/ai/assistants/assistants.mjs.map +1 -1
  37. package/resources/ai/assistants/index.d.mts +1 -1
  38. package/resources/ai/assistants/index.d.mts.map +1 -1
  39. package/resources/ai/assistants/index.d.ts +1 -1
  40. package/resources/ai/assistants/index.d.ts.map +1 -1
  41. package/resources/ai/assistants/index.js.map +1 -1
  42. package/resources/ai/assistants/index.mjs.map +1 -1
  43. package/resources/ai/chat.d.mts +3 -5
  44. package/resources/ai/chat.d.mts.map +1 -1
  45. package/resources/ai/chat.d.ts +3 -5
  46. package/resources/ai/chat.d.ts.map +1 -1
  47. package/resources/ai/conversations/conversations.d.mts +27 -2
  48. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  49. package/resources/ai/conversations/conversations.d.ts +27 -2
  50. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  51. package/resources/ai/conversations/conversations.js +23 -1
  52. package/resources/ai/conversations/conversations.js.map +1 -1
  53. package/resources/ai/conversations/conversations.mjs +23 -1
  54. package/resources/ai/conversations/conversations.mjs.map +1 -1
  55. package/resources/ai/conversations/index.d.mts +1 -1
  56. package/resources/ai/conversations/index.d.mts.map +1 -1
  57. package/resources/ai/conversations/index.d.ts +1 -1
  58. package/resources/ai/conversations/index.d.ts.map +1 -1
  59. package/resources/ai/conversations/index.js.map +1 -1
  60. package/resources/ai/conversations/index.mjs.map +1 -1
  61. package/resources/ai/index.d.mts +2 -2
  62. package/resources/ai/index.d.mts.map +1 -1
  63. package/resources/ai/index.d.ts +2 -2
  64. package/resources/ai/index.d.ts.map +1 -1
  65. package/resources/ai/index.js.map +1 -1
  66. package/resources/ai/index.mjs.map +1 -1
  67. package/resources/ai/memory/namespaces/index.d.mts +1 -1
  68. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  69. package/resources/ai/memory/namespaces/index.d.ts +1 -1
  70. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  71. package/resources/ai/memory/namespaces/index.js.map +1 -1
  72. package/resources/ai/memory/namespaces/index.mjs +1 -1
  73. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  74. package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
  75. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  76. package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
  77. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  78. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  79. package/resources/ai/memory/namespaces/namespaces.mjs +1 -1
  80. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  81. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +3 -3
  82. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  83. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +3 -3
  84. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  85. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  86. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  87. package/resources/ai/memory/namespaces/settings.d.mts +23 -27
  88. package/resources/ai/memory/namespaces/settings.d.mts.map +1 -1
  89. package/resources/ai/memory/namespaces/settings.d.ts +23 -27
  90. package/resources/ai/memory/namespaces/settings.d.ts.map +1 -1
  91. package/resources/ai/openai/chat.d.mts +3 -5
  92. package/resources/ai/openai/chat.d.mts.map +1 -1
  93. package/resources/ai/openai/chat.d.ts +3 -5
  94. package/resources/ai/openai/chat.d.ts.map +1 -1
  95. package/resources/ai/tests/test-framework/v1/v1.d.mts +15 -5
  96. package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -1
  97. package/resources/ai/tests/test-framework/v1/v1.d.ts +15 -5
  98. package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -1
  99. package/resources/ai/tools.d.mts +222 -0
  100. package/resources/ai/tools.d.mts.map +1 -1
  101. package/resources/ai/tools.d.ts +222 -0
  102. package/resources/ai/tools.d.ts.map +1 -1
  103. package/resources/browser-sessions/actions.d.mts +13 -7
  104. package/resources/browser-sessions/actions.d.mts.map +1 -1
  105. package/resources/browser-sessions/actions.d.ts +13 -7
  106. package/resources/browser-sessions/actions.d.ts.map +1 -1
  107. package/resources/browser-sessions/browser-sessions.d.mts +6 -2
  108. package/resources/browser-sessions/browser-sessions.d.mts.map +1 -1
  109. package/resources/browser-sessions/browser-sessions.d.ts +6 -2
  110. package/resources/browser-sessions/browser-sessions.d.ts.map +1 -1
  111. package/resources/compute/funcs/export.d.mts +33 -35
  112. package/resources/compute/funcs/export.d.mts.map +1 -1
  113. package/resources/compute/funcs/export.d.ts +33 -35
  114. package/resources/compute/funcs/export.d.ts.map +1 -1
  115. package/resources/compute/funcs/funcs.d.mts +2 -2
  116. package/resources/compute/funcs/funcs.d.mts.map +1 -1
  117. package/resources/compute/funcs/funcs.d.ts +2 -2
  118. package/resources/compute/funcs/funcs.d.ts.map +1 -1
  119. package/resources/compute/funcs/funcs.js.map +1 -1
  120. package/resources/compute/funcs/funcs.mjs.map +1 -1
  121. package/resources/compute/funcs/index.d.mts +1 -1
  122. package/resources/compute/funcs/index.d.mts.map +1 -1
  123. package/resources/compute/funcs/index.d.ts +1 -1
  124. package/resources/compute/funcs/index.d.ts.map +1 -1
  125. package/resources/compute/funcs/index.js.map +1 -1
  126. package/resources/compute/funcs/index.mjs +1 -1
  127. package/resources/compute/funcs/index.mjs.map +1 -1
  128. package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -1
  129. package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -1
  130. package/resources/email/dedicated-ips/dedicated-ips.js +2 -2
  131. package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -1
  132. package/resources/email/dedicated-ips/dedicated-ips.mjs +2 -2
  133. package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -1
  134. package/resources/email-events.d.mts +84 -106
  135. package/resources/email-events.d.mts.map +1 -1
  136. package/resources/email-events.d.ts +84 -106
  137. package/resources/email-events.d.ts.map +1 -1
  138. package/resources/email-events.js +5 -1
  139. package/resources/email-events.js.map +1 -1
  140. package/resources/email-events.mjs +5 -1
  141. package/resources/email-events.mjs.map +1 -1
  142. package/resources/email-messages/email-messages.d.mts +1 -7
  143. package/resources/email-messages/email-messages.d.mts.map +1 -1
  144. package/resources/email-messages/email-messages.d.ts +1 -7
  145. package/resources/email-messages/email-messages.d.ts.map +1 -1
  146. package/resources/email-messages/email-messages.js.map +1 -1
  147. package/resources/email-messages/email-messages.mjs.map +1 -1
  148. package/resources/email-templates.d.mts +16 -70
  149. package/resources/email-templates.d.mts.map +1 -1
  150. package/resources/email-templates.d.ts +16 -70
  151. package/resources/email-templates.d.ts.map +1 -1
  152. package/resources/enterprises/enterprises.d.mts +2 -2
  153. package/resources/enterprises/enterprises.d.mts.map +1 -1
  154. package/resources/enterprises/enterprises.d.ts +2 -2
  155. package/resources/enterprises/enterprises.d.ts.map +1 -1
  156. package/resources/enterprises/enterprises.js.map +1 -1
  157. package/resources/enterprises/enterprises.mjs.map +1 -1
  158. package/resources/enterprises/index.d.mts +1 -1
  159. package/resources/enterprises/index.d.mts.map +1 -1
  160. package/resources/enterprises/index.d.ts +1 -1
  161. package/resources/enterprises/index.d.ts.map +1 -1
  162. package/resources/enterprises/index.js.map +1 -1
  163. package/resources/enterprises/index.mjs.map +1 -1
  164. package/resources/enterprises/reputation/external-verification.d.mts +26 -29
  165. package/resources/enterprises/reputation/external-verification.d.mts.map +1 -1
  166. package/resources/enterprises/reputation/external-verification.d.ts +26 -29
  167. package/resources/enterprises/reputation/external-verification.d.ts.map +1 -1
  168. package/resources/enterprises/reputation/external-verification.js +3 -3
  169. package/resources/enterprises/reputation/external-verification.js.map +1 -1
  170. package/resources/enterprises/reputation/external-verification.mjs +1 -1
  171. package/resources/enterprises/reputation/external-verification.mjs.map +1 -1
  172. package/resources/enterprises/reputation/index.d.mts +1 -1
  173. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  174. package/resources/enterprises/reputation/index.d.ts +1 -1
  175. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  176. package/resources/enterprises/reputation/index.js +2 -2
  177. package/resources/enterprises/reputation/index.js.map +1 -1
  178. package/resources/enterprises/reputation/index.mjs +1 -1
  179. package/resources/enterprises/reputation/index.mjs.map +1 -1
  180. package/resources/enterprises/reputation/reputation.d.mts +3 -3
  181. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  182. package/resources/enterprises/reputation/reputation.d.ts +3 -3
  183. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  184. package/resources/enterprises/reputation/reputation.js +2 -2
  185. package/resources/enterprises/reputation/reputation.js.map +1 -1
  186. package/resources/enterprises/reputation/reputation.mjs +3 -3
  187. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  188. package/resources/enterprises/verify-email.d.mts +27 -29
  189. package/resources/enterprises/verify-email.d.mts.map +1 -1
  190. package/resources/enterprises/verify-email.d.ts +27 -29
  191. package/resources/enterprises/verify-email.d.ts.map +1 -1
  192. package/resources/index.d.mts +3 -4
  193. package/resources/index.d.mts.map +1 -1
  194. package/resources/index.d.ts +3 -4
  195. package/resources/index.d.ts.map +1 -1
  196. package/resources/index.js +1 -3
  197. package/resources/index.js.map +1 -1
  198. package/resources/index.mjs +0 -1
  199. package/resources/index.mjs.map +1 -1
  200. package/resources/messages/messages.d.mts +32 -2
  201. package/resources/messages/messages.d.mts.map +1 -1
  202. package/resources/messages/messages.d.ts +32 -2
  203. package/resources/messages/messages.d.ts.map +1 -1
  204. package/resources/messages/messages.js.map +1 -1
  205. package/resources/messages/messages.mjs.map +1 -1
  206. package/resources/messaging-profiles/messaging-profiles.d.mts +11 -0
  207. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  208. package/resources/messaging-profiles/messaging-profiles.d.ts +11 -0
  209. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  210. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  211. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  212. package/resources/number-lookup.d.mts +5 -0
  213. package/resources/number-lookup.d.mts.map +1 -1
  214. package/resources/number-lookup.d.ts +5 -0
  215. package/resources/number-lookup.d.ts.map +1 -1
  216. package/resources/pay-connectors.d.mts +7 -7
  217. package/resources/pay-connectors.d.mts.map +1 -1
  218. package/resources/pay-connectors.d.ts +7 -7
  219. package/resources/pay-connectors.d.ts.map +1 -1
  220. package/resources/phone-numbers/index.d.mts +1 -1
  221. package/resources/phone-numbers/index.d.mts.map +1 -1
  222. package/resources/phone-numbers/index.d.ts +1 -1
  223. package/resources/phone-numbers/index.d.ts.map +1 -1
  224. package/resources/phone-numbers/index.js.map +1 -1
  225. package/resources/phone-numbers/index.mjs.map +1 -1
  226. package/resources/phone-numbers/jobs.d.mts +21 -57
  227. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  228. package/resources/phone-numbers/jobs.d.ts +21 -57
  229. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  230. package/resources/phone-numbers/phone-numbers.d.mts +2 -2
  231. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  232. package/resources/phone-numbers/phone-numbers.d.ts +2 -2
  233. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  234. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  235. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  236. package/resources/portouts/portouts.d.mts +2 -1
  237. package/resources/portouts/portouts.d.mts.map +1 -1
  238. package/resources/portouts/portouts.d.ts +2 -1
  239. package/resources/portouts/portouts.d.ts.map +1 -1
  240. package/resources/portouts/portouts.js +2 -1
  241. package/resources/portouts/portouts.js.map +1 -1
  242. package/resources/portouts/portouts.mjs +2 -1
  243. package/resources/portouts/portouts.mjs.map +1 -1
  244. package/resources/telephony-credentials.d.mts +54 -24
  245. package/resources/telephony-credentials.d.mts.map +1 -1
  246. package/resources/telephony-credentials.d.ts +54 -24
  247. package/resources/telephony-credentials.d.ts.map +1 -1
  248. package/resources/telephony-credentials.js +31 -27
  249. package/resources/telephony-credentials.js.map +1 -1
  250. package/resources/telephony-credentials.mjs +31 -27
  251. package/resources/telephony-credentials.mjs.map +1 -1
  252. package/resources/voice-clones.d.mts +4 -4
  253. package/resources/voice-clones.d.mts.map +1 -1
  254. package/resources/voice-clones.d.ts +4 -4
  255. package/resources/voice-clones.d.ts.map +1 -1
  256. package/resources/webhooks.d.mts +10 -20
  257. package/resources/webhooks.d.mts.map +1 -1
  258. package/resources/webhooks.d.ts +10 -20
  259. package/resources/webhooks.d.ts.map +1 -1
  260. package/resources/whatsapp/business-accounts/business-accounts.d.mts +2 -2
  261. package/resources/whatsapp/business-accounts/business-accounts.d.mts.map +1 -1
  262. package/resources/whatsapp/business-accounts/business-accounts.d.ts +2 -2
  263. package/resources/whatsapp/business-accounts/business-accounts.d.ts.map +1 -1
  264. package/resources/whatsapp/business-accounts/business-accounts.js.map +1 -1
  265. package/resources/whatsapp/business-accounts/business-accounts.mjs.map +1 -1
  266. package/resources/whatsapp/business-accounts/index.d.mts +1 -1
  267. package/resources/whatsapp/business-accounts/index.d.mts.map +1 -1
  268. package/resources/whatsapp/business-accounts/index.d.ts +1 -1
  269. package/resources/whatsapp/business-accounts/index.d.ts.map +1 -1
  270. package/resources/whatsapp/business-accounts/index.js.map +1 -1
  271. package/resources/whatsapp/business-accounts/index.mjs.map +1 -1
  272. package/resources/whatsapp/business-accounts/phone-numbers.d.mts +7 -66
  273. package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
  274. package/resources/whatsapp/business-accounts/phone-numbers.d.ts +7 -66
  275. package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
  276. package/resources/whatsapp/business-accounts/phone-numbers.js +1 -1
  277. package/resources/whatsapp/business-accounts/phone-numbers.js.map +1 -1
  278. package/resources/whatsapp/business-accounts/phone-numbers.mjs +1 -1
  279. package/resources/whatsapp/business-accounts/phone-numbers.mjs.map +1 -1
  280. package/resources/whatsapp/hosted-signups.d.mts +11 -73
  281. package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
  282. package/resources/whatsapp/hosted-signups.d.ts +11 -73
  283. package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
  284. package/resources/whatsapp/hosted-signups.js +5 -2
  285. package/resources/whatsapp/hosted-signups.js.map +1 -1
  286. package/resources/whatsapp/hosted-signups.mjs +5 -2
  287. package/resources/whatsapp/hosted-signups.mjs.map +1 -1
  288. package/resources/whatsapp/index.d.mts +2 -2
  289. package/resources/whatsapp/index.d.mts.map +1 -1
  290. package/resources/whatsapp/index.d.ts +2 -2
  291. package/resources/whatsapp/index.d.ts.map +1 -1
  292. package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
  293. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  294. package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
  295. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  296. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +9 -135
  297. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  298. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +9 -135
  299. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  300. package/resources/whatsapp/phone-numbers/phone-numbers.js +1 -1
  301. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  302. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +1 -1
  303. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  304. package/resources/whatsapp/whatsapp.d.mts +4 -4
  305. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  306. package/resources/whatsapp/whatsapp.d.ts +4 -4
  307. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  308. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  309. package/src/client.ts +13 -6
  310. package/src/core/pagination.ts +58 -0
  311. package/src/lib/login-token.ts +8 -4
  312. package/src/resources/ai/ai.ts +12 -0
  313. package/src/resources/ai/assistants/assistants.ts +227 -144
  314. package/src/resources/ai/assistants/index.ts +2 -0
  315. package/src/resources/ai/chat.ts +3 -5
  316. package/src/resources/ai/conversations/conversations.ts +39 -1
  317. package/src/resources/ai/conversations/index.ts +1 -0
  318. package/src/resources/ai/index.ts +3 -0
  319. package/src/resources/ai/memory/namespaces/index.ts +7 -1
  320. package/src/resources/ai/memory/namespaces/namespaces.ts +9 -1
  321. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +5 -3
  322. package/src/resources/ai/memory/namespaces/settings.ts +25 -27
  323. package/src/resources/ai/openai/chat.ts +3 -5
  324. package/src/resources/ai/tests/test-framework/v1/v1.ts +5 -5
  325. package/src/resources/ai/tools.ts +366 -0
  326. package/src/resources/browser-sessions/actions.ts +7 -7
  327. package/src/resources/browser-sessions/browser-sessions.ts +2 -2
  328. package/src/resources/compute/funcs/export.ts +41 -42
  329. package/src/resources/compute/funcs/funcs.ts +2 -1
  330. package/src/resources/compute/funcs/index.ts +6 -1
  331. package/src/resources/email/dedicated-ips/dedicated-ips.ts +3 -2
  332. package/src/resources/email-events.ts +128 -147
  333. package/src/resources/email-messages/email-messages.ts +1 -7
  334. package/src/resources/email-templates.ts +17 -78
  335. package/src/resources/enterprises/enterprises.ts +2 -0
  336. package/src/resources/enterprises/index.ts +1 -0
  337. package/src/resources/enterprises/reputation/external-verification.ts +32 -34
  338. package/src/resources/enterprises/reputation/index.ts +2 -1
  339. package/src/resources/enterprises/reputation/reputation.ts +6 -4
  340. package/src/resources/enterprises/verify-email.ts +29 -30
  341. package/src/resources/index.ts +4 -1
  342. package/src/resources/messages/messages.ts +32 -2
  343. package/src/resources/messaging-profiles/messaging-profiles.ts +12 -0
  344. package/src/resources/number-lookup.ts +6 -0
  345. package/src/resources/pay-connectors.ts +7 -7
  346. package/src/resources/phone-numbers/index.ts +2 -0
  347. package/src/resources/phone-numbers/jobs.ts +22 -60
  348. package/src/resources/phone-numbers/phone-numbers.ts +4 -0
  349. package/src/resources/portouts/portouts.ts +2 -1
  350. package/src/resources/telephony-credentials.ts +74 -41
  351. package/src/resources/voice-clones.ts +4 -4
  352. package/src/resources/webhooks.ts +10 -20
  353. package/src/resources/whatsapp/business-accounts/business-accounts.ts +0 -4
  354. package/src/resources/whatsapp/business-accounts/index.ts +0 -2
  355. package/src/resources/whatsapp/business-accounts/phone-numbers.ts +7 -98
  356. package/src/resources/whatsapp/hosted-signups.ts +18 -97
  357. package/src/resources/whatsapp/index.ts +4 -4
  358. package/src/resources/whatsapp/phone-numbers/index.ts +2 -2
  359. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +11 -197
  360. package/src/resources/whatsapp/whatsapp.ts +8 -8
  361. package/src/version.ts +1 -1
  362. package/version.d.mts +1 -1
  363. package/version.d.mts.map +1 -1
  364. package/version.d.ts +1 -1
  365. package/version.d.ts.map +1 -1
  366. package/version.js +1 -1
  367. package/version.js.map +1 -1
  368. package/version.mjs +1 -1
  369. package/version.mjs.map +1 -1
  370. package/resources/tts-integrations/actions.d.mts +0 -4
  371. package/resources/tts-integrations/actions.d.mts.map +0 -1
  372. package/resources/tts-integrations/actions.d.ts +0 -4
  373. package/resources/tts-integrations/actions.d.ts.map +0 -1
  374. package/resources/tts-integrations/actions.js +0 -9
  375. package/resources/tts-integrations/actions.js.map +0 -1
  376. package/resources/tts-integrations/actions.mjs +0 -5
  377. package/resources/tts-integrations/actions.mjs.map +0 -1
  378. package/resources/tts-integrations/index.d.mts +0 -3
  379. package/resources/tts-integrations/index.d.mts.map +0 -1
  380. package/resources/tts-integrations/index.d.ts +0 -3
  381. package/resources/tts-integrations/index.d.ts.map +0 -1
  382. package/resources/tts-integrations/index.js +0 -9
  383. package/resources/tts-integrations/index.js.map +0 -1
  384. package/resources/tts-integrations/index.mjs +0 -4
  385. package/resources/tts-integrations/index.mjs.map +0 -1
  386. package/resources/tts-integrations/tts-integrations.d.mts +0 -10
  387. package/resources/tts-integrations/tts-integrations.d.mts.map +0 -1
  388. package/resources/tts-integrations/tts-integrations.d.ts +0 -10
  389. package/resources/tts-integrations/tts-integrations.d.ts.map +0 -1
  390. package/resources/tts-integrations/tts-integrations.js +0 -17
  391. package/resources/tts-integrations/tts-integrations.js.map +0 -1
  392. package/resources/tts-integrations/tts-integrations.mjs +0 -12
  393. package/resources/tts-integrations/tts-integrations.mjs.map +0 -1
  394. package/resources/tts-integrations.d.mts +0 -2
  395. package/resources/tts-integrations.d.mts.map +0 -1
  396. package/resources/tts-integrations.d.ts +0 -2
  397. package/resources/tts-integrations.d.ts.map +0 -1
  398. package/resources/tts-integrations.js +0 -6
  399. package/resources/tts-integrations.js.map +0 -1
  400. package/resources/tts-integrations.mjs +0 -3
  401. package/resources/tts-integrations.mjs.map +0 -1
  402. package/src/resources/tts-integrations/actions.ts +0 -5
  403. package/src/resources/tts-integrations/index.ts +0 -4
  404. package/src/resources/tts-integrations/tts-integrations.ts +0 -15
  405. package/src/resources/tts-integrations.ts +0 -3
@@ -3,7 +3,7 @@
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import * as FuncsAPI from './funcs';
5
5
  import * as ExportAPI from './export';
6
- import { Export, ExportCreateParams, FuncLogExportConfigResponse } from './export';
6
+ import { Export, ExportCreateParams, FuncLogExportConfig, FuncLogExportConfigResponse } from './export';
7
7
  import { APIPromise } from '../../../core/api-promise';
8
8
  import {
9
9
  DefaultFlatPagination,
@@ -434,6 +434,7 @@ export declare namespace Funcs {
434
434
 
435
435
  export {
436
436
  Export as Export,
437
+ type FuncLogExportConfig as FuncLogExportConfig,
437
438
  type FuncLogExportConfigResponse as FuncLogExportConfigResponse,
438
439
  type ExportCreateParams as ExportCreateParams,
439
440
  };
@@ -1,6 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Export, type FuncLogExportConfigResponse, type ExportCreateParams } from './export';
3
+ export {
4
+ Export,
5
+ type FuncLogExportConfig,
6
+ type FuncLogExportConfigResponse,
7
+ type ExportCreateParams,
8
+ } from './export';
4
9
  export {
5
10
  Funcs,
6
11
  type FunctionsObservabilityPaginationMeta,
@@ -97,10 +97,11 @@ export class DedicatedIPs extends APIResource {
97
97
  params: DedicatedIPDeleteParams | null | undefined = {},
98
98
  options?: RequestOptions,
99
99
  ): APIPromise<DedicatedIPShowResponse> {
100
- const { query_drain, query_force, query_reason, ...body } = params ?? {};
100
+ const { query_drain, query_force, query_reason, body_drain, body_force, body_reason, ...body } =
101
+ params ?? {};
101
102
  return this._client.delete(path`/email/dedicated_ips/${id}`, {
102
103
  query: { drain: query_drain, force: query_force, reason: query_reason },
103
- body,
104
+ body: { drain: body_drain, force: body_force, reason: body_reason, ...body },
104
105
  ...options,
105
106
  });
106
107
  }
@@ -3,6 +3,11 @@
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as EmailEventsAPI from './email-events';
5
5
  import { APIPromise } from '../core/api-promise';
6
+ import {
7
+ EmailEventsCursorPagination,
8
+ type EmailEventsCursorPaginationParams,
9
+ PagePromise,
10
+ } from '../core/pagination';
6
11
  import { RequestOptions } from '../internal/request-options';
7
12
 
8
13
  /**
@@ -29,8 +34,11 @@ export class EmailEvents extends APIResource {
29
34
  list(
30
35
  query: EmailEventListParams | null | undefined = {},
31
36
  options?: RequestOptions,
32
- ): APIPromise<EmailEventListResponse> {
33
- return this._client.get('/email_events', { query, ...options });
37
+ ): PagePromise<EmailEventListResponsesEmailEventsCursorPagination, EmailEventListResponse> {
38
+ return this._client.getAPIList('/email_events', EmailEventsCursorPagination<EmailEventListResponse>, {
39
+ query,
40
+ ...options,
41
+ });
34
42
  }
35
43
 
36
44
  /**
@@ -45,6 +53,9 @@ export class EmailEvents extends APIResource {
45
53
  }
46
54
  }
47
55
 
56
+ export type EmailEventListResponsesEmailEventsCursorPagination =
57
+ EmailEventsCursorPagination<EmailEventListResponse>;
58
+
48
59
  /**
49
60
  * Bare stored event names returned by message history. In addition to the normal
50
61
  * send and delivery lifecycle, polling can expose suppression, scan, and
@@ -95,169 +106,150 @@ export interface TimeRange {
95
106
  to: string | null;
96
107
  }
97
108
 
109
+ /**
110
+ * An account-polling event. The envelope is webhook-shaped, but polling preserves
111
+ * stored-event cardinality: queued, sending, sandbox, cancelled, and
112
+ * daily_limit_exceeded message events fan out per recipient; scheduled remains one
113
+ * message-scoped row. Payload fields vary among recipient-scoped, message-scoped,
114
+ * and minimal fallback rows.
115
+ */
98
116
  export interface EmailEventListResponse {
99
- data: Array<EmailEventListResponse.Data>;
117
+ /**
118
+ * Event UUID.
119
+ */
120
+ id: string;
121
+
122
+ /**
123
+ * Additive canonical outcome name, prefixed with `email.`. Gateway rejection is
124
+ * `email.gw_reject`, ambiguous injection timeout is `email.injection_timeout`, and
125
+ * MTA expiration is `email.expired`. Unchanged outcomes retain their names.
126
+ * Existing stored rows are translated only when recorded payload evidence proves
127
+ * the outcome; a legacy failed row is not guessed or sharpened.
128
+ */
129
+ canonical_event_type: string;
100
130
 
101
- meta: EmailEventListResponse.Meta;
131
+ /**
132
+ * Legacy customer-visible event name, prefixed with `email.`. Gateway rejections
133
+ * render `email.failed`; MTA expirations render `email.bounced`. Webhook
134
+ * subscription allowlists match the legacy name.
135
+ */
136
+ event_type: string;
137
+
138
+ occurred_at: string;
139
+
140
+ /**
141
+ * Payload returned by GET /email_events. Every row includes id, status, and
142
+ * occurred_at. Recipient-scoped rows also include recipient_id, from, subject, and
143
+ * exactly one object-valued to, cc, or bcc field. Legacy or message-scoped rows
144
+ * can omit recipient_id and use object-valued or string-valued to/cc fields,
145
+ * including an empty string when no address exists; bcc is redacted. If the
146
+ * related message or recipient cannot be loaded, the minimal fallback can omit
147
+ * from, subject, and recipient fields. Additional persisted public evidence can be
148
+ * present.
149
+ */
150
+ payload: EmailEventListResponse.Payload;
151
+
152
+ /**
153
+ * Durable email recipient UUID. Present for recipient-scoped events, including
154
+ * each queued, sending, sandbox, cancelled, and daily_limit_exceeded fan-out
155
+ * event.
156
+ */
157
+ recipient_id?: string;
102
158
  }
103
159
 
104
160
  export namespace EmailEventListResponse {
105
161
  /**
106
- * An account-polling event. The envelope is webhook-shaped, but polling preserves
107
- * stored-event cardinality: queued, sending, sandbox, cancelled, and
108
- * daily_limit_exceeded message events fan out per recipient; scheduled remains one
109
- * message-scoped row. Payload fields vary among recipient-scoped, message-scoped,
110
- * and minimal fallback rows.
162
+ * Payload returned by GET /email_events. Every row includes id, status, and
163
+ * occurred_at. Recipient-scoped rows also include recipient_id, from, subject, and
164
+ * exactly one object-valued to, cc, or bcc field. Legacy or message-scoped rows
165
+ * can omit recipient_id and use object-valued or string-valued to/cc fields,
166
+ * including an empty string when no address exists; bcc is redacted. If the
167
+ * related message or recipient cannot be loaded, the minimal fallback can omit
168
+ * from, subject, and recipient fields. Additional persisted public evidence can be
169
+ * present.
111
170
  */
112
- export interface Data {
171
+ export interface Payload {
113
172
  /**
114
- * Event UUID.
173
+ * Email message UUID.
115
174
  */
116
175
  id: string;
117
176
 
177
+ occurred_at: string;
178
+
118
179
  /**
119
- * Additive canonical outcome name, prefixed with `email.`. Gateway rejection is
120
- * `email.gw_reject`, ambiguous injection timeout is `email.injection_timeout`, and
121
- * MTA expiration is `email.expired`. Unchanged outcomes retain their names.
122
- * Existing stored rows are translated only when recorded payload evidence proves
123
- * the outcome; a legacy failed row is not guessed or sharpened.
180
+ * Stored event outcome slug, not the authoritative recipient status. Account
181
+ * polling returns the stored name, including suppression, scan, and quarantine
182
+ * lifecycle names. Webhooks retain legacy payload names: gateway rejections use
183
+ * failed and MTA expirations use bounced. New sharp stored rows can expose
184
+ * gw_reject, injection_timeout, or expired. Use the envelope canonical_event_type
185
+ * to identify the outcome across surfaces.
124
186
  */
125
- canonical_event_type: string;
187
+ status:
188
+ | 'queued'
189
+ | 'deferred'
190
+ | 'scheduled'
191
+ | 'cancelled'
192
+ | 'sandbox'
193
+ | 'sending'
194
+ | 'sent'
195
+ | 'failed'
196
+ | 'delivered'
197
+ | 'bounced'
198
+ | 'complained'
199
+ | 'suppressed'
200
+ | 'rejected'
201
+ | 'opened'
202
+ | 'clicked'
203
+ | 'unsubscribed'
204
+ | 'daily_limit_exceeded'
205
+ | 'scan_deferred'
206
+ | 'quarantined'
207
+ | 'quarantine_released'
208
+ | 'quarantine_release_dispatched'
209
+ | 'quarantine_rejected'
210
+ | 'quarantine_expired'
211
+ | 'gw_reject'
212
+ | 'injection_timeout'
213
+ | 'expired';
214
+
215
+ bcc?: EmailEventsAPI.EmailWebhookRecipient | 'redacted';
126
216
 
127
217
  /**
128
- * Legacy customer-visible event name, prefixed with `email.`. Gateway rejections
129
- * render `email.failed`; MTA expirations render `email.bounced`. Webhook
130
- * subscription allowlists match the legacy name.
218
+ * Legacy message-scoped address, or an empty string when absent.
131
219
  */
132
- event_type: string;
133
-
134
- occurred_at: string;
220
+ cc?: EmailEventsAPI.EmailWebhookRecipient | string;
135
221
 
136
222
  /**
137
- * Payload returned by GET /email_events. Every row includes id, status, and
138
- * occurred_at. Recipient-scoped rows also include recipient_id, from, subject, and
139
- * exactly one object-valued to, cc, or bcc field. Legacy or message-scoped rows
140
- * can omit recipient_id and use object-valued or string-valued to/cc fields,
141
- * including an empty string when no address exists; bcc is redacted. If the
142
- * related message or recipient cannot be loaded, the minimal fallback can omit
143
- * from, subject, and recipient fields. Additional persisted public evidence can be
144
- * present.
223
+ * Sender projection in account event polling. The display name is explicitly null
224
+ * when the message has no sender name.
145
225
  */
146
- payload: Data.Payload;
226
+ from?: Payload.From;
147
227
 
148
228
  /**
149
- * Durable email recipient UUID. Present for recipient-scoped events, including
150
- * each queued, sending, sandbox, cancelled, and daily_limit_exceeded fan-out
151
- * event.
229
+ * Durable email recipient UUID. Present for recipient-scoped events.
152
230
  */
153
231
  recipient_id?: string;
154
- }
155
232
 
156
- export namespace Data {
233
+ subject?: string;
234
+
157
235
  /**
158
- * Payload returned by GET /email_events. Every row includes id, status, and
159
- * occurred_at. Recipient-scoped rows also include recipient_id, from, subject, and
160
- * exactly one object-valued to, cc, or bcc field. Legacy or message-scoped rows
161
- * can omit recipient_id and use object-valued or string-valued to/cc fields,
162
- * including an empty string when no address exists; bcc is redacted. If the
163
- * related message or recipient cannot be loaded, the minimal fallback can omit
164
- * from, subject, and recipient fields. Additional persisted public evidence can be
165
- * present.
236
+ * Legacy message-scoped address, or an empty string when absent.
166
237
  */
167
- export interface Payload {
168
- /**
169
- * Email message UUID.
170
- */
171
- id: string;
172
-
173
- occurred_at: string;
174
-
175
- /**
176
- * Stored event outcome slug, not the authoritative recipient status. Account
177
- * polling returns the stored name, including suppression, scan, and quarantine
178
- * lifecycle names. Webhooks retain legacy payload names: gateway rejections use
179
- * failed and MTA expirations use bounced. New sharp stored rows can expose
180
- * gw_reject, injection_timeout, or expired. Use the envelope canonical_event_type
181
- * to identify the outcome across surfaces.
182
- */
183
- status:
184
- | 'queued'
185
- | 'deferred'
186
- | 'scheduled'
187
- | 'cancelled'
188
- | 'sandbox'
189
- | 'sending'
190
- | 'sent'
191
- | 'failed'
192
- | 'delivered'
193
- | 'bounced'
194
- | 'complained'
195
- | 'suppressed'
196
- | 'rejected'
197
- | 'opened'
198
- | 'clicked'
199
- | 'unsubscribed'
200
- | 'daily_limit_exceeded'
201
- | 'scan_deferred'
202
- | 'quarantined'
203
- | 'quarantine_released'
204
- | 'quarantine_release_dispatched'
205
- | 'quarantine_rejected'
206
- | 'quarantine_expired'
207
- | 'gw_reject'
208
- | 'injection_timeout'
209
- | 'expired';
210
-
211
- bcc?: EmailEventsAPI.EmailWebhookRecipient | 'redacted';
238
+ to?: EmailEventsAPI.EmailWebhookRecipient | string;
212
239
 
213
- /**
214
- * Legacy message-scoped address, or an empty string when absent.
215
- */
216
- cc?: EmailEventsAPI.EmailWebhookRecipient | string;
217
-
218
- /**
219
- * Sender projection in account event polling. The display name is explicitly null
220
- * when the message has no sender name.
221
- */
222
- from?: Payload.From;
223
-
224
- /**
225
- * Durable email recipient UUID. Present for recipient-scoped events.
226
- */
227
- recipient_id?: string;
228
-
229
- subject?: string;
230
-
231
- /**
232
- * Legacy message-scoped address, or an empty string when absent.
233
- */
234
- to?: EmailEventsAPI.EmailWebhookRecipient | string;
235
-
236
- [k: string]: unknown;
237
- }
238
-
239
- export namespace Payload {
240
- /**
241
- * Sender projection in account event polling. The display name is explicitly null
242
- * when the message has no sender name.
243
- */
244
- export interface From {
245
- email: string;
246
-
247
- name: string | null;
248
- }
249
- }
240
+ [k: string]: unknown;
250
241
  }
251
242
 
252
- export interface Meta {
253
- page_size: number;
254
-
255
- time_range: EmailEventsAPI.TimeRange;
256
-
243
+ export namespace Payload {
257
244
  /**
258
- * Cursor for the next page, when more results are available.
245
+ * Sender projection in account event polling. The display name is explicitly null
246
+ * when the message has no sender name.
259
247
  */
260
- page_cursor?: string;
248
+ export interface From {
249
+ email: string;
250
+
251
+ name: string | null;
252
+ }
261
253
  }
262
254
  }
263
255
 
@@ -356,7 +348,7 @@ export namespace EmailEventRetrieveStatsResponse {
356
348
  }
357
349
  }
358
350
 
359
- export interface EmailEventListParams {
351
+ export interface EmailEventListParams extends EmailEventsCursorPaginationParams {
360
352
  /**
361
353
  * Filter events for a specific email message UUID. Invalid UUID values are
362
354
  * silently ignored (no filter applied).
@@ -386,18 +378,6 @@ export interface EmailEventListParams {
386
378
  */
387
379
  from?: string;
388
380
 
389
- /**
390
- * Number of results to return. Defaults to 25; maximum is 100. Invalid values are
391
- * clamped to the valid range.
392
- */
393
- page_size?: number;
394
-
395
- /**
396
- * Opaque URL-safe Base64 cursor returned by a previous event list response. The
397
- * legacy `page[after]` and flat `page_cursor` forms are also accepted.
398
- */
399
- 'page[cursor]'?: string;
400
-
401
381
  /**
402
382
  * Inclusive ISO 8601 end timestamp. When `from` is provided without `to`, defaults
403
383
  * to `from + 30 days`.
@@ -425,6 +405,7 @@ export declare namespace EmailEvents {
425
405
  type TimeRange as TimeRange,
426
406
  type EmailEventListResponse as EmailEventListResponse,
427
407
  type EmailEventRetrieveStatsResponse as EmailEventRetrieveStatsResponse,
408
+ type EmailEventListResponsesEmailEventsCursorPagination as EmailEventListResponsesEmailEventsCursorPagination,
428
409
  type EmailEventListParams as EmailEventListParams,
429
410
  type EmailEventRetrieveStatsParams as EmailEventRetrieveStatsParams,
430
411
  };
@@ -338,13 +338,7 @@ export interface MessageEvent {
338
338
  occurred_at: string;
339
339
 
340
340
  /**
341
- * @deprecated Bare stored event names returned by message history. In addition to
342
- * the normal send and delivery lifecycle, polling can expose suppression, scan,
343
- * and quarantine lifecycle rows. Sharp canonical names gw_reject,
344
- * injection_timeout, and expired distinguish gateway rejection, ambiguous
345
- * injection timeout, and MTA expiration. The failed and bounced names remain valid
346
- * for system/admin failures and hard bounces respectively. Existing stored rows
347
- * retain their original names.
341
+ * @deprecated Use event_type instead.
348
342
  */
349
343
  type: EmailEventsAPI.EmailEventType;
350
344
 
@@ -205,7 +205,7 @@ export interface EmailTemplateCommon {
205
205
  * Structured variable requirements, or `null` when the template uses only the
206
206
  * legacy `variables` array.
207
207
  */
208
- variable_schema: { [key: string]: EmailTemplateCommon.VariableSchema } | null;
208
+ variable_schema: { [key: string]: VariableSchemaEntry } | null;
209
209
 
210
210
  /**
211
211
  * Persisted variable names. In `explicit` mode this array preserves the exact
@@ -221,21 +221,6 @@ export interface EmailTemplateCommon {
221
221
  variables_mode: 'automatic' | 'explicit';
222
222
  }
223
223
 
224
- export namespace EmailTemplateCommon {
225
- export interface VariableSchema {
226
- /**
227
- * Whether the variable must be supplied when strict variable validation is
228
- * enabled.
229
- */
230
- required: boolean;
231
-
232
- /**
233
- * Default value for an optional variable. Rejected when `required` is `true`.
234
- */
235
- default?: string;
236
- }
237
- }
238
-
239
224
  export interface EmailTemplateResponse {
240
225
  data: EmailTemplate;
241
226
  }
@@ -272,7 +257,7 @@ export interface UpdateEmailTemplateRequest {
272
257
  * Structured variable requirements. Required variables cannot define defaults;
273
258
  * invalid combinations return 422. Set to `null` to clear the schema.
274
259
  */
275
- variable_schema?: { [key: string]: UpdateEmailTemplateRequest.VariableSchema } | null;
260
+ variable_schema?: { [key: string]: VariableSchemaEntry } | null;
276
261
 
277
262
  /**
278
263
  * Persisted variable names. In `automatic` mode a non-null array is rejected; in
@@ -292,19 +277,17 @@ export interface UpdateEmailTemplateRequest {
292
277
  variables_mode?: 'automatic' | 'explicit';
293
278
  }
294
279
 
295
- export namespace UpdateEmailTemplateRequest {
296
- export interface VariableSchema {
297
- /**
298
- * Whether the variable must be supplied when strict variable validation is
299
- * enabled.
300
- */
301
- required: boolean;
302
-
303
- /**
304
- * Default value for an optional variable. Rejected when `required` is `true`.
305
- */
306
- default?: string;
307
- }
280
+ export interface VariableSchemaEntry {
281
+ /**
282
+ * Whether the variable must be supplied when strict variable validation is
283
+ * enabled.
284
+ */
285
+ required: boolean;
286
+
287
+ /**
288
+ * Default value for an optional variable. Rejected when `required` is `true`.
289
+ */
290
+ default?: string;
308
291
  }
309
292
 
310
293
  export interface EmailTemplateRenderResponse {
@@ -410,7 +393,7 @@ export interface EmailTemplateCreateParams {
410
393
  * while present values such as `false` and `0` pass (they are present, not empty).
411
394
  * Optional variables fall back to their `default` when absent.
412
395
  */
413
- variable_schema?: { [key: string]: EmailTemplateCreateParams.VariableSchema } | null;
396
+ variable_schema?: { [key: string]: VariableSchemaEntry } | null;
414
397
 
415
398
  /**
416
399
  * Body param: Persisted variable names. In `automatic` mode a non-null array is
@@ -442,21 +425,6 @@ export interface EmailTemplateCreateParams {
442
425
  'Idempotency-Key'?: string;
443
426
  }
444
427
 
445
- export namespace EmailTemplateCreateParams {
446
- export interface VariableSchema {
447
- /**
448
- * Whether the variable must be supplied when strict variable validation is
449
- * enabled.
450
- */
451
- required: boolean;
452
-
453
- /**
454
- * Default value for an optional variable. Rejected when `required` is `true`.
455
- */
456
- default?: string;
457
- }
458
- }
459
-
460
428
  export interface EmailTemplateReplaceParams {
461
429
  /**
462
430
  * Per-template HTML autoescaping setting.
@@ -489,7 +457,7 @@ export interface EmailTemplateReplaceParams {
489
457
  * Structured variable requirements. Required variables cannot define defaults;
490
458
  * invalid combinations return 422. Set to `null` to clear the schema.
491
459
  */
492
- variable_schema?: { [key: string]: EmailTemplateReplaceParams.VariableSchema } | null;
460
+ variable_schema?: { [key: string]: VariableSchemaEntry } | null;
493
461
 
494
462
  /**
495
463
  * Persisted variable names. In `automatic` mode a non-null array is rejected; in
@@ -509,21 +477,6 @@ export interface EmailTemplateReplaceParams {
509
477
  variables_mode?: 'automatic' | 'explicit';
510
478
  }
511
479
 
512
- export namespace EmailTemplateReplaceParams {
513
- export interface VariableSchema {
514
- /**
515
- * Whether the variable must be supplied when strict variable validation is
516
- * enabled.
517
- */
518
- required: boolean;
519
-
520
- /**
521
- * Default value for an optional variable. Rejected when `required` is `true`.
522
- */
523
- default?: string;
524
- }
525
- }
526
-
527
480
  export interface EmailTemplateUpdateParams {
528
481
  /**
529
482
  * Per-template HTML autoescaping setting.
@@ -556,7 +509,7 @@ export interface EmailTemplateUpdateParams {
556
509
  * Structured variable requirements. Required variables cannot define defaults;
557
510
  * invalid combinations return 422. Set to `null` to clear the schema.
558
511
  */
559
- variable_schema?: { [key: string]: EmailTemplateUpdateParams.VariableSchema } | null;
512
+ variable_schema?: { [key: string]: VariableSchemaEntry } | null;
560
513
 
561
514
  /**
562
515
  * Persisted variable names. In `automatic` mode a non-null array is rejected; in
@@ -576,21 +529,6 @@ export interface EmailTemplateUpdateParams {
576
529
  variables_mode?: 'automatic' | 'explicit';
577
530
  }
578
531
 
579
- export namespace EmailTemplateUpdateParams {
580
- export interface VariableSchema {
581
- /**
582
- * Whether the variable must be supplied when strict variable validation is
583
- * enabled.
584
- */
585
- required: boolean;
586
-
587
- /**
588
- * Default value for an optional variable. Rejected when `required` is `true`.
589
- */
590
- default?: string;
591
- }
592
- }
593
-
594
532
  export interface EmailTemplateRenderParams {
595
533
  /**
596
534
  * Variables for Liquid template rendering. Non-object values are silently treated
@@ -605,6 +543,7 @@ export declare namespace EmailTemplates {
605
543
  type EmailTemplateCommon as EmailTemplateCommon,
606
544
  type EmailTemplateResponse as EmailTemplateResponse,
607
545
  type UpdateEmailTemplateRequest as UpdateEmailTemplateRequest,
546
+ type VariableSchemaEntry as VariableSchemaEntry,
608
547
  type EmailTemplateRenderResponse as EmailTemplateRenderResponse,
609
548
  type EmailTemplatesEmailCursorPagination as EmailTemplatesEmailCursorPagination,
610
549
  type EmailTemplateListParams as EmailTemplateListParams,
@@ -5,6 +5,7 @@ import * as DirAPI from './dir';
5
5
  import { Dir, DirCreateParams, DirListParams } from './dir';
6
6
  import * as VerifyEmailAPI from './verify-email';
7
7
  import {
8
+ EnterpriseEmailVerificationStatus,
8
9
  EnterpriseEmailVerificationStatusWrapped,
9
10
  VerifyEmail,
10
11
  VerifyEmailConfirmParams,
@@ -895,6 +896,7 @@ export declare namespace Enterprises {
895
896
 
896
897
  export {
897
898
  VerifyEmail as VerifyEmail,
899
+ type EnterpriseEmailVerificationStatus as EnterpriseEmailVerificationStatus,
898
900
  type EnterpriseEmailVerificationStatusWrapped as EnterpriseEmailVerificationStatusWrapped,
899
901
  type VerifyEmailConfirmParams as VerifyEmailConfirmParams,
900
902
  };
@@ -25,6 +25,7 @@ export {
25
25
  } from './reputation/index';
26
26
  export {
27
27
  VerifyEmail,
28
+ type EnterpriseEmailVerificationStatus,
28
29
  type EnterpriseEmailVerificationStatusWrapped,
29
30
  type VerifyEmailConfirmParams,
30
31
  } from './verify-email';