telnyx 7.23.0 → 7.25.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 (594) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +27 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +27 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +11 -6
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +11 -6
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +4 -0
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +4 -0
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/ai/assistants/assistants.d.mts +469 -35
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +469 -35
  22. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  23. package/resources/ai/assistants/assistants.js +79 -2
  24. package/resources/ai/assistants/assistants.js.map +1 -1
  25. package/resources/ai/assistants/assistants.mjs +79 -2
  26. package/resources/ai/assistants/assistants.mjs.map +1 -1
  27. package/resources/ai/assistants/deleted.d.mts +60 -0
  28. package/resources/ai/assistants/deleted.d.mts.map +1 -0
  29. package/resources/ai/assistants/deleted.d.ts +60 -0
  30. package/resources/ai/assistants/deleted.d.ts.map +1 -0
  31. package/resources/ai/assistants/deleted.js +49 -0
  32. package/resources/ai/assistants/deleted.js.map +1 -0
  33. package/resources/ai/assistants/deleted.mjs +45 -0
  34. package/resources/ai/assistants/deleted.mjs.map +1 -0
  35. package/resources/ai/assistants/index.d.mts +2 -1
  36. package/resources/ai/assistants/index.d.mts.map +1 -1
  37. package/resources/ai/assistants/index.d.ts +2 -1
  38. package/resources/ai/assistants/index.d.ts.map +1 -1
  39. package/resources/ai/assistants/index.js +3 -1
  40. package/resources/ai/assistants/index.js.map +1 -1
  41. package/resources/ai/assistants/index.mjs +1 -0
  42. package/resources/ai/assistants/index.mjs.map +1 -1
  43. package/resources/ai/assistants/versions.d.mts +38 -2
  44. package/resources/ai/assistants/versions.d.mts.map +1 -1
  45. package/resources/ai/assistants/versions.d.ts +38 -2
  46. package/resources/ai/assistants/versions.d.ts.map +1 -1
  47. package/resources/ai/chat.d.mts +7 -2
  48. package/resources/ai/chat.d.mts.map +1 -1
  49. package/resources/ai/chat.d.ts +7 -2
  50. package/resources/ai/chat.d.ts.map +1 -1
  51. package/resources/ai/collections/collections.d.mts +3 -3
  52. package/resources/ai/collections/collections.d.mts.map +1 -1
  53. package/resources/ai/collections/collections.d.ts +3 -3
  54. package/resources/ai/collections/collections.d.ts.map +1 -1
  55. package/resources/ai/collections/collections.js.map +1 -1
  56. package/resources/ai/collections/collections.mjs.map +1 -1
  57. package/resources/ai/collections/index.d.mts +1 -1
  58. package/resources/ai/collections/index.d.mts.map +1 -1
  59. package/resources/ai/collections/index.d.ts +1 -1
  60. package/resources/ai/collections/index.d.ts.map +1 -1
  61. package/resources/ai/collections/index.js.map +1 -1
  62. package/resources/ai/collections/index.mjs.map +1 -1
  63. package/resources/ai/collections/sources.d.mts +32 -5
  64. package/resources/ai/collections/sources.d.mts.map +1 -1
  65. package/resources/ai/collections/sources.d.ts +32 -5
  66. package/resources/ai/collections/sources.d.ts.map +1 -1
  67. package/resources/ai/collections/sources.js.map +1 -1
  68. package/resources/ai/collections/sources.mjs.map +1 -1
  69. package/resources/ai/embeddings/embeddings.d.mts +1 -1
  70. package/resources/ai/embeddings/embeddings.d.ts +1 -1
  71. package/resources/ai/embeddings/embeddings.js +1 -1
  72. package/resources/ai/embeddings/embeddings.mjs +1 -1
  73. package/resources/ai/index.d.mts +3 -2
  74. package/resources/ai/index.d.mts.map +1 -1
  75. package/resources/ai/index.d.ts +3 -2
  76. package/resources/ai/index.d.ts.map +1 -1
  77. package/resources/ai/index.js +9 -7
  78. package/resources/ai/index.js.map +1 -1
  79. package/resources/ai/index.mjs +1 -0
  80. package/resources/ai/index.mjs.map +1 -1
  81. package/resources/ai/memory/index.d.mts +3 -0
  82. package/resources/ai/memory/index.d.mts.map +1 -0
  83. package/resources/ai/memory/index.d.ts +3 -0
  84. package/resources/ai/memory/index.d.ts.map +1 -0
  85. package/resources/ai/memory/index.js +9 -0
  86. package/resources/ai/memory/index.js.map +1 -0
  87. package/resources/ai/memory/index.mjs +4 -0
  88. package/resources/ai/memory/index.mjs.map +1 -0
  89. package/resources/ai/memory/memory.d.mts +10 -0
  90. package/resources/ai/memory/memory.d.mts.map +1 -0
  91. package/resources/ai/memory/memory.d.ts +10 -0
  92. package/resources/ai/memory/memory.d.ts.map +1 -0
  93. package/resources/ai/memory/memory.js +17 -0
  94. package/resources/ai/memory/memory.js.map +1 -0
  95. package/resources/ai/memory/memory.mjs +12 -0
  96. package/resources/ai/memory/memory.mjs.map +1 -0
  97. package/resources/ai/memory/namespaces/index.d.mts +4 -0
  98. package/resources/ai/memory/namespaces/index.d.mts.map +1 -0
  99. package/resources/ai/memory/namespaces/index.d.ts +4 -0
  100. package/resources/ai/memory/namespaces/index.d.ts.map +1 -0
  101. package/resources/ai/memory/namespaces/index.js +11 -0
  102. package/resources/ai/memory/namespaces/index.js.map +1 -0
  103. package/resources/ai/memory/namespaces/index.mjs +5 -0
  104. package/resources/ai/memory/namespaces/index.mjs.map +1 -0
  105. package/resources/ai/memory/namespaces/namespaces.d.mts +110 -0
  106. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -0
  107. package/resources/ai/memory/namespaces/namespaces.d.ts +110 -0
  108. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -0
  109. package/resources/ai/memory/namespaces/namespaces.js +81 -0
  110. package/resources/ai/memory/namespaces/namespaces.js.map +1 -0
  111. package/resources/ai/memory/namespaces/namespaces.mjs +76 -0
  112. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -0
  113. package/resources/ai/memory/namespaces/profiles/index.d.mts +4 -0
  114. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -0
  115. package/resources/ai/memory/namespaces/profiles/index.d.ts +4 -0
  116. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -0
  117. package/resources/ai/memory/namespaces/profiles/index.js +11 -0
  118. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -0
  119. package/resources/ai/memory/namespaces/profiles/index.mjs +5 -0
  120. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -0
  121. package/resources/ai/memory/namespaces/profiles/memories.d.mts +118 -0
  122. package/resources/ai/memory/namespaces/profiles/memories.d.mts.map +1 -0
  123. package/resources/ai/memory/namespaces/profiles/memories.d.ts +118 -0
  124. package/resources/ai/memory/namespaces/profiles/memories.d.ts.map +1 -0
  125. package/resources/ai/memory/namespaces/profiles/memories.js +63 -0
  126. package/resources/ai/memory/namespaces/profiles/memories.js.map +1 -0
  127. package/resources/ai/memory/namespaces/profiles/memories.mjs +59 -0
  128. package/resources/ai/memory/namespaces/profiles/memories.mjs.map +1 -0
  129. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +324 -0
  130. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -0
  131. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +324 -0
  132. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -0
  133. package/resources/ai/memory/namespaces/profiles/profiles.js +161 -0
  134. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -0
  135. package/resources/ai/memory/namespaces/profiles/profiles.mjs +156 -0
  136. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -0
  137. package/resources/ai/memory/namespaces/profiles/sources.d.mts +163 -0
  138. package/resources/ai/memory/namespaces/profiles/sources.d.mts.map +1 -0
  139. package/resources/ai/memory/namespaces/profiles/sources.d.ts +163 -0
  140. package/resources/ai/memory/namespaces/profiles/sources.d.ts.map +1 -0
  141. package/resources/ai/memory/namespaces/profiles/sources.js +80 -0
  142. package/resources/ai/memory/namespaces/profiles/sources.js.map +1 -0
  143. package/resources/ai/memory/namespaces/profiles/sources.mjs +76 -0
  144. package/resources/ai/memory/namespaces/profiles/sources.mjs.map +1 -0
  145. package/resources/ai/memory/namespaces/profiles.d.mts +2 -0
  146. package/resources/ai/memory/namespaces/profiles.d.mts.map +1 -0
  147. package/resources/ai/memory/namespaces/profiles.d.ts +2 -0
  148. package/resources/ai/memory/namespaces/profiles.d.ts.map +1 -0
  149. package/resources/ai/memory/namespaces/profiles.js +6 -0
  150. package/resources/ai/memory/namespaces/profiles.js.map +1 -0
  151. package/resources/ai/memory/namespaces/profiles.mjs +3 -0
  152. package/resources/ai/memory/namespaces/profiles.mjs.map +1 -0
  153. package/resources/ai/memory/namespaces/settings.d.mts +108 -0
  154. package/resources/ai/memory/namespaces/settings.d.mts.map +1 -0
  155. package/resources/ai/memory/namespaces/settings.d.ts +108 -0
  156. package/resources/ai/memory/namespaces/settings.d.ts.map +1 -0
  157. package/resources/ai/memory/namespaces/settings.js +54 -0
  158. package/resources/ai/memory/namespaces/settings.js.map +1 -0
  159. package/resources/ai/memory/namespaces/settings.mjs +50 -0
  160. package/resources/ai/memory/namespaces/settings.mjs.map +1 -0
  161. package/resources/ai/memory/namespaces.d.mts +2 -0
  162. package/resources/ai/memory/namespaces.d.mts.map +1 -0
  163. package/resources/ai/memory/namespaces.d.ts +2 -0
  164. package/resources/ai/memory/namespaces.d.ts.map +1 -0
  165. package/resources/ai/memory/namespaces.js +6 -0
  166. package/resources/ai/memory/namespaces.js.map +1 -0
  167. package/resources/ai/memory/namespaces.mjs +3 -0
  168. package/resources/ai/memory/namespaces.mjs.map +1 -0
  169. package/resources/ai/memory.d.mts +2 -0
  170. package/resources/ai/memory.d.mts.map +1 -0
  171. package/resources/ai/memory.d.ts +2 -0
  172. package/resources/ai/memory.d.ts.map +1 -0
  173. package/resources/ai/memory.js +6 -0
  174. package/resources/ai/memory.js.map +1 -0
  175. package/resources/ai/memory.mjs +3 -0
  176. package/resources/ai/memory.mjs.map +1 -0
  177. package/resources/ai/openai/chat.d.mts +7 -2
  178. package/resources/ai/openai/chat.d.mts.map +1 -1
  179. package/resources/ai/openai/chat.d.ts +7 -2
  180. package/resources/ai/openai/chat.d.ts.map +1 -1
  181. package/resources/ai/tools.d.mts +3 -4
  182. package/resources/ai/tools.d.mts.map +1 -1
  183. package/resources/ai/tools.d.ts +3 -4
  184. package/resources/ai/tools.d.ts.map +1 -1
  185. package/resources/ai/tools.js +5 -2
  186. package/resources/ai/tools.js.map +1 -1
  187. package/resources/ai/tools.mjs +5 -2
  188. package/resources/ai/tools.mjs.map +1 -1
  189. package/resources/ai/typesafe/v1.d.mts +25 -14
  190. package/resources/ai/typesafe/v1.d.mts.map +1 -1
  191. package/resources/ai/typesafe/v1.d.ts +25 -14
  192. package/resources/ai/typesafe/v1.d.ts.map +1 -1
  193. package/resources/ai/typesafe/v1.js +15 -10
  194. package/resources/ai/typesafe/v1.js.map +1 -1
  195. package/resources/ai/typesafe/v1.mjs +15 -10
  196. package/resources/ai/typesafe/v1.mjs.map +1 -1
  197. package/resources/calls/actions.d.mts +119 -22
  198. package/resources/calls/actions.d.mts.map +1 -1
  199. package/resources/calls/actions.d.ts +119 -22
  200. package/resources/calls/actions.d.ts.map +1 -1
  201. package/resources/calls/actions.js +31 -0
  202. package/resources/calls/actions.js.map +1 -1
  203. package/resources/calls/actions.mjs +31 -0
  204. package/resources/calls/actions.mjs.map +1 -1
  205. package/resources/calls/calls.d.mts +58 -15
  206. package/resources/calls/calls.d.mts.map +1 -1
  207. package/resources/calls/calls.d.ts +58 -15
  208. package/resources/calls/calls.d.ts.map +1 -1
  209. package/resources/calls/calls.js +3 -0
  210. package/resources/calls/calls.js.map +1 -1
  211. package/resources/calls/calls.mjs +3 -0
  212. package/resources/calls/calls.mjs.map +1 -1
  213. package/resources/calls/index.d.mts +1 -1
  214. package/resources/calls/index.d.mts.map +1 -1
  215. package/resources/calls/index.d.ts +1 -1
  216. package/resources/calls/index.d.ts.map +1 -1
  217. package/resources/calls/index.js.map +1 -1
  218. package/resources/calls/index.mjs.map +1 -1
  219. package/resources/conferences/actions.d.mts +7 -1
  220. package/resources/conferences/actions.d.mts.map +1 -1
  221. package/resources/conferences/actions.d.ts +7 -1
  222. package/resources/conferences/actions.d.ts.map +1 -1
  223. package/resources/dir/dir.d.mts +220 -28
  224. package/resources/dir/dir.d.mts.map +1 -1
  225. package/resources/dir/dir.d.ts +220 -28
  226. package/resources/dir/dir.d.ts.map +1 -1
  227. package/resources/dir/dir.js +77 -13
  228. package/resources/dir/dir.js.map +1 -1
  229. package/resources/dir/dir.mjs +77 -13
  230. package/resources/dir/dir.mjs.map +1 -1
  231. package/resources/dir/index.d.mts +1 -1
  232. package/resources/dir/index.d.mts.map +1 -1
  233. package/resources/dir/index.d.ts +1 -1
  234. package/resources/dir/index.d.ts.map +1 -1
  235. package/resources/dir/index.js.map +1 -1
  236. package/resources/dir/index.mjs.map +1 -1
  237. package/resources/dir/phone-numbers.d.mts +8 -4
  238. package/resources/dir/phone-numbers.d.mts.map +1 -1
  239. package/resources/dir/phone-numbers.d.ts +8 -4
  240. package/resources/dir/phone-numbers.d.ts.map +1 -1
  241. package/resources/dir/phone-numbers.js +4 -4
  242. package/resources/dir/phone-numbers.mjs +4 -4
  243. package/resources/dir/references.d.mts +9 -6
  244. package/resources/dir/references.d.mts.map +1 -1
  245. package/resources/dir/references.d.ts +9 -6
  246. package/resources/dir/references.d.ts.map +1 -1
  247. package/resources/email-blocks/email-blocks.d.mts +12 -4
  248. package/resources/email-blocks/email-blocks.d.mts.map +1 -1
  249. package/resources/email-blocks/email-blocks.d.ts +12 -4
  250. package/resources/email-blocks/email-blocks.d.ts.map +1 -1
  251. package/resources/email-blocks/email-blocks.js +5 -3
  252. package/resources/email-blocks/email-blocks.js.map +1 -1
  253. package/resources/email-blocks/email-blocks.mjs +5 -3
  254. package/resources/email-blocks/email-blocks.mjs.map +1 -1
  255. package/resources/email-blocks/imports.d.mts +20 -4
  256. package/resources/email-blocks/imports.d.mts.map +1 -1
  257. package/resources/email-blocks/imports.d.ts +20 -4
  258. package/resources/email-blocks/imports.d.ts.map +1 -1
  259. package/resources/email-blocks/imports.js +17 -3
  260. package/resources/email-blocks/imports.js.map +1 -1
  261. package/resources/email-blocks/imports.mjs +17 -3
  262. package/resources/email-blocks/imports.mjs.map +1 -1
  263. package/resources/email-domains/email-domains.d.mts +98 -1
  264. package/resources/email-domains/email-domains.d.mts.map +1 -1
  265. package/resources/email-domains/email-domains.d.ts +98 -1
  266. package/resources/email-domains/email-domains.d.ts.map +1 -1
  267. package/resources/email-domains/email-domains.js +21 -0
  268. package/resources/email-domains/email-domains.js.map +1 -1
  269. package/resources/email-domains/email-domains.mjs +21 -0
  270. package/resources/email-domains/email-domains.mjs.map +1 -1
  271. package/resources/email-domains/index.d.mts +1 -1
  272. package/resources/email-domains/index.d.mts.map +1 -1
  273. package/resources/email-domains/index.d.ts +1 -1
  274. package/resources/email-domains/index.d.ts.map +1 -1
  275. package/resources/email-domains/index.js.map +1 -1
  276. package/resources/email-domains/index.mjs.map +1 -1
  277. package/resources/email-domains/webhooks.d.mts +6 -4
  278. package/resources/email-domains/webhooks.d.mts.map +1 -1
  279. package/resources/email-domains/webhooks.d.ts +6 -4
  280. package/resources/email-domains/webhooks.d.ts.map +1 -1
  281. package/resources/email-events.d.mts +162 -28
  282. package/resources/email-events.d.mts.map +1 -1
  283. package/resources/email-events.d.ts +162 -28
  284. package/resources/email-events.d.ts.map +1 -1
  285. package/resources/email-events.js +15 -6
  286. package/resources/email-events.js.map +1 -1
  287. package/resources/email-events.mjs +15 -6
  288. package/resources/email-events.mjs.map +1 -1
  289. package/resources/email-inboxes/drafts.d.mts +31 -1
  290. package/resources/email-inboxes/drafts.d.mts.map +1 -1
  291. package/resources/email-inboxes/drafts.d.ts +31 -1
  292. package/resources/email-inboxes/drafts.d.ts.map +1 -1
  293. package/resources/email-inboxes/drafts.js.map +1 -1
  294. package/resources/email-inboxes/drafts.mjs.map +1 -1
  295. package/resources/email-messages/email-messages.d.mts +174 -43
  296. package/resources/email-messages/email-messages.d.mts.map +1 -1
  297. package/resources/email-messages/email-messages.d.ts +174 -43
  298. package/resources/email-messages/email-messages.d.ts.map +1 -1
  299. package/resources/email-messages/email-messages.js +39 -7
  300. package/resources/email-messages/email-messages.js.map +1 -1
  301. package/resources/email-messages/email-messages.mjs +39 -7
  302. package/resources/email-messages/email-messages.mjs.map +1 -1
  303. package/resources/email-messages/index.d.mts +1 -1
  304. package/resources/email-messages/index.d.mts.map +1 -1
  305. package/resources/email-messages/index.d.ts +1 -1
  306. package/resources/email-messages/index.d.ts.map +1 -1
  307. package/resources/email-messages/index.js.map +1 -1
  308. package/resources/email-messages/index.mjs.map +1 -1
  309. package/resources/email-messages/recipients.d.mts +2 -2
  310. package/resources/email-messages/recipients.d.mts.map +1 -1
  311. package/resources/email-messages/recipients.d.ts +2 -2
  312. package/resources/email-messages/recipients.d.ts.map +1 -1
  313. package/resources/email-templates.d.mts +170 -0
  314. package/resources/email-templates.d.mts.map +1 -1
  315. package/resources/email-templates.d.ts +170 -0
  316. package/resources/email-templates.d.ts.map +1 -1
  317. package/resources/email-templates.js +6 -0
  318. package/resources/email-templates.js.map +1 -1
  319. package/resources/email-templates.mjs +6 -0
  320. package/resources/email-templates.mjs.map +1 -1
  321. package/resources/enterprises/dir.d.mts +17 -1
  322. package/resources/enterprises/dir.d.mts.map +1 -1
  323. package/resources/enterprises/dir.d.ts +17 -1
  324. package/resources/enterprises/dir.d.ts.map +1 -1
  325. package/resources/enterprises/enterprises.d.mts +237 -23
  326. package/resources/enterprises/enterprises.d.mts.map +1 -1
  327. package/resources/enterprises/enterprises.d.ts +237 -23
  328. package/resources/enterprises/enterprises.d.ts.map +1 -1
  329. package/resources/enterprises/enterprises.js +26 -4
  330. package/resources/enterprises/enterprises.js.map +1 -1
  331. package/resources/enterprises/enterprises.mjs +26 -4
  332. package/resources/enterprises/enterprises.mjs.map +1 -1
  333. package/resources/enterprises/index.d.mts +1 -0
  334. package/resources/enterprises/index.d.mts.map +1 -1
  335. package/resources/enterprises/index.d.ts +1 -0
  336. package/resources/enterprises/index.d.ts.map +1 -1
  337. package/resources/enterprises/index.js +3 -1
  338. package/resources/enterprises/index.js.map +1 -1
  339. package/resources/enterprises/index.mjs +1 -0
  340. package/resources/enterprises/index.mjs.map +1 -1
  341. package/resources/enterprises/reputation/loa.d.mts +61 -1
  342. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  343. package/resources/enterprises/reputation/loa.d.ts +61 -1
  344. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  345. package/resources/enterprises/verify-email.d.mts +91 -0
  346. package/resources/enterprises/verify-email.d.mts.map +1 -0
  347. package/resources/enterprises/verify-email.d.ts +91 -0
  348. package/resources/enterprises/verify-email.d.ts.map +1 -0
  349. package/resources/enterprises/verify-email.js +55 -0
  350. package/resources/enterprises/verify-email.js.map +1 -0
  351. package/resources/enterprises/verify-email.mjs +51 -0
  352. package/resources/enterprises/verify-email.mjs.map +1 -0
  353. package/resources/index.d.mts +8 -6
  354. package/resources/index.d.mts.map +1 -1
  355. package/resources/index.d.ts +8 -6
  356. package/resources/index.d.ts.map +1 -1
  357. package/resources/index.js +7 -3
  358. package/resources/index.js.map +1 -1
  359. package/resources/index.mjs +2 -0
  360. package/resources/index.mjs.map +1 -1
  361. package/resources/infringement-claims.d.mts +4 -0
  362. package/resources/infringement-claims.d.mts.map +1 -1
  363. package/resources/infringement-claims.d.ts +4 -0
  364. package/resources/infringement-claims.d.ts.map +1 -1
  365. package/resources/llm-token-gateway/index.d.mts +3 -0
  366. package/resources/llm-token-gateway/index.d.mts.map +1 -0
  367. package/resources/llm-token-gateway/index.d.ts +3 -0
  368. package/resources/llm-token-gateway/index.d.ts.map +1 -0
  369. package/resources/llm-token-gateway/index.js +9 -0
  370. package/resources/llm-token-gateway/index.js.map +1 -0
  371. package/resources/llm-token-gateway/index.mjs +4 -0
  372. package/resources/llm-token-gateway/index.mjs.map +1 -0
  373. package/resources/llm-token-gateway/llm-token-gateway.d.mts +10 -0
  374. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
  375. package/resources/llm-token-gateway/llm-token-gateway.d.ts +10 -0
  376. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
  377. package/resources/llm-token-gateway/llm-token-gateway.js +17 -0
  378. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
  379. package/resources/llm-token-gateway/llm-token-gateway.mjs +12 -0
  380. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
  381. package/resources/llm-token-gateway/usage.d.mts +260 -0
  382. package/resources/llm-token-gateway/usage.d.mts.map +1 -0
  383. package/resources/llm-token-gateway/usage.d.ts +260 -0
  384. package/resources/llm-token-gateway/usage.d.ts.map +1 -0
  385. package/resources/llm-token-gateway/usage.js +31 -0
  386. package/resources/llm-token-gateway/usage.js.map +1 -0
  387. package/resources/llm-token-gateway/usage.mjs +27 -0
  388. package/resources/llm-token-gateway/usage.mjs.map +1 -0
  389. package/resources/llm-token-gateway.d.mts +2 -0
  390. package/resources/llm-token-gateway.d.mts.map +1 -0
  391. package/resources/llm-token-gateway.d.ts +2 -0
  392. package/resources/llm-token-gateway.d.ts.map +1 -0
  393. package/resources/llm-token-gateway.js +6 -0
  394. package/resources/llm-token-gateway.js.map +1 -0
  395. package/resources/llm-token-gateway.mjs +3 -0
  396. package/resources/llm-token-gateway.mjs.map +1 -0
  397. package/resources/meeting-sessions/actions.d.mts +7 -1
  398. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  399. package/resources/meeting-sessions/actions.d.ts +7 -1
  400. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  401. package/resources/meeting-sessions/actions.js +7 -1
  402. package/resources/meeting-sessions/actions.js.map +1 -1
  403. package/resources/meeting-sessions/actions.mjs +7 -1
  404. package/resources/meeting-sessions/actions.mjs.map +1 -1
  405. package/resources/meeting-sessions/artifacts.d.mts +38 -11
  406. package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
  407. package/resources/meeting-sessions/artifacts.d.ts +38 -11
  408. package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
  409. package/resources/meeting-sessions/artifacts.js +11 -5
  410. package/resources/meeting-sessions/artifacts.js.map +1 -1
  411. package/resources/meeting-sessions/artifacts.mjs +11 -5
  412. package/resources/meeting-sessions/artifacts.mjs.map +1 -1
  413. package/resources/meeting-sessions/meeting-sessions.d.mts +71 -32
  414. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  415. package/resources/meeting-sessions/meeting-sessions.d.ts +71 -32
  416. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  417. package/resources/meeting-sessions/meeting-sessions.js +6 -8
  418. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  419. package/resources/meeting-sessions/meeting-sessions.mjs +6 -8
  420. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  421. package/resources/phone-numbers/phone-numbers.d.mts +12 -2
  422. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  423. package/resources/phone-numbers/phone-numbers.d.ts +12 -2
  424. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  425. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  426. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  427. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  428. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  429. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  430. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  431. package/resources/porting-orders/porting-orders.d.mts +1 -1
  432. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  433. package/resources/porting-orders/porting-orders.d.ts +1 -1
  434. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  435. package/resources/porting-orders/porting-orders.js.map +1 -1
  436. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  437. package/resources/porting-phone-numbers.d.mts +1 -1
  438. package/resources/porting-phone-numbers.d.mts.map +1 -1
  439. package/resources/porting-phone-numbers.d.ts +1 -1
  440. package/resources/porting-phone-numbers.d.ts.map +1 -1
  441. package/resources/private-wireless-gateways.d.mts +61 -7
  442. package/resources/private-wireless-gateways.d.mts.map +1 -1
  443. package/resources/private-wireless-gateways.d.ts +61 -7
  444. package/resources/private-wireless-gateways.d.ts.map +1 -1
  445. package/resources/private-wireless-gateways.js +1 -1
  446. package/resources/private-wireless-gateways.js.map +1 -1
  447. package/resources/private-wireless-gateways.mjs +1 -1
  448. package/resources/private-wireless-gateways.mjs.map +1 -1
  449. package/resources/requirements.d.mts +2 -2
  450. package/resources/requirements.d.mts.map +1 -1
  451. package/resources/requirements.d.ts +2 -2
  452. package/resources/requirements.d.ts.map +1 -1
  453. package/resources/spend-limits.d.mts +335 -0
  454. package/resources/spend-limits.d.mts.map +1 -0
  455. package/resources/spend-limits.d.ts +335 -0
  456. package/resources/spend-limits.d.ts.map +1 -0
  457. package/resources/spend-limits.js +91 -0
  458. package/resources/spend-limits.js.map +1 -0
  459. package/resources/spend-limits.mjs +87 -0
  460. package/resources/spend-limits.mjs.map +1 -0
  461. package/resources/terms-of-service/agreements.d.mts +12 -0
  462. package/resources/terms-of-service/agreements.d.mts.map +1 -1
  463. package/resources/terms-of-service/agreements.d.ts +12 -0
  464. package/resources/terms-of-service/agreements.d.ts.map +1 -1
  465. package/resources/terms-of-service/terms-of-service.d.mts +15 -0
  466. package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
  467. package/resources/terms-of-service/terms-of-service.d.ts +15 -0
  468. package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
  469. package/resources/terms-of-service/terms-of-service.js.map +1 -1
  470. package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
  471. package/resources/texml/accounts/calls/calls.d.mts +9 -9
  472. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  473. package/resources/texml/accounts/calls/calls.d.ts +9 -9
  474. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  475. package/resources/texml/accounts/calls/calls.js +12 -2
  476. package/resources/texml/accounts/calls/calls.js.map +1 -1
  477. package/resources/texml/accounts/calls/calls.mjs +12 -2
  478. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  479. package/resources/text-to-speech/text-to-speech.d.mts +65 -11
  480. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  481. package/resources/text-to-speech/text-to-speech.d.ts +65 -11
  482. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  483. package/resources/text-to-speech/text-to-speech.js +10 -3
  484. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  485. package/resources/text-to-speech/text-to-speech.mjs +10 -3
  486. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  487. package/resources/webhooks.d.mts +417 -9
  488. package/resources/webhooks.d.mts.map +1 -1
  489. package/resources/webhooks.d.ts +417 -9
  490. package/resources/webhooks.d.ts.map +1 -1
  491. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +89 -0
  492. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
  493. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +89 -0
  494. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
  495. package/resources/whatsapp/phone-numbers/calling-routing.js +65 -0
  496. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
  497. package/resources/whatsapp/phone-numbers/calling-routing.mjs +61 -0
  498. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
  499. package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
  500. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  501. package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
  502. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  503. package/resources/whatsapp/phone-numbers/index.js +3 -1
  504. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  505. package/resources/whatsapp/phone-numbers/index.mjs +1 -0
  506. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  507. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
  508. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  509. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
  510. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  511. package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
  512. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  513. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
  514. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  515. package/src/client.ts +67 -6
  516. package/src/resources/ai/ai.ts +21 -4
  517. package/src/resources/ai/assistants/assistants.ts +602 -36
  518. package/src/resources/ai/assistants/deleted.ts +86 -0
  519. package/src/resources/ai/assistants/index.ts +12 -0
  520. package/src/resources/ai/assistants/versions.ts +42 -2
  521. package/src/resources/ai/chat.ts +7 -2
  522. package/src/resources/ai/collections/collections.ts +3 -1
  523. package/src/resources/ai/collections/index.ts +2 -0
  524. package/src/resources/ai/collections/sources.ts +38 -4
  525. package/src/resources/ai/embeddings/embeddings.ts +1 -1
  526. package/src/resources/ai/index.ts +7 -1
  527. package/src/resources/ai/memory/index.ts +12 -0
  528. package/src/resources/ai/memory/memory.ts +31 -0
  529. package/src/resources/ai/memory/namespaces/index.ts +29 -0
  530. package/src/resources/ai/memory/namespaces/namespaces.ts +194 -0
  531. package/src/resources/ai/memory/namespaces/profiles/index.ts +35 -0
  532. package/src/resources/ai/memory/namespaces/profiles/memories.ts +170 -0
  533. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +482 -0
  534. package/src/resources/ai/memory/namespaces/profiles/sources.ts +226 -0
  535. package/src/resources/ai/memory/namespaces/profiles.ts +3 -0
  536. package/src/resources/ai/memory/namespaces/settings.ts +129 -0
  537. package/src/resources/ai/memory/namespaces.ts +3 -0
  538. package/src/resources/ai/memory.ts +3 -0
  539. package/src/resources/ai/openai/chat.ts +7 -2
  540. package/src/resources/ai/tools.ts +6 -6
  541. package/src/resources/ai/typesafe/v1.ts +26 -14
  542. package/src/resources/calls/actions.ts +126 -19
  543. package/src/resources/calls/calls.ts +61 -11
  544. package/src/resources/calls/index.ts +1 -0
  545. package/src/resources/conferences/actions.ts +8 -1
  546. package/src/resources/dir/dir.ts +263 -32
  547. package/src/resources/dir/index.ts +6 -0
  548. package/src/resources/dir/phone-numbers.ts +8 -4
  549. package/src/resources/dir/references.ts +9 -6
  550. package/src/resources/email-blocks/email-blocks.ts +12 -4
  551. package/src/resources/email-blocks/imports.ts +20 -4
  552. package/src/resources/email-domains/email-domains.ts +120 -0
  553. package/src/resources/email-domains/index.ts +1 -0
  554. package/src/resources/email-domains/webhooks.ts +9 -4
  555. package/src/resources/email-events.ts +220 -35
  556. package/src/resources/email-inboxes/drafts.ts +32 -1
  557. package/src/resources/email-messages/email-messages.ts +191 -47
  558. package/src/resources/email-messages/index.ts +2 -1
  559. package/src/resources/email-messages/recipients.ts +6 -2
  560. package/src/resources/email-templates.ts +185 -0
  561. package/src/resources/enterprises/dir.ts +19 -1
  562. package/src/resources/enterprises/enterprises.ts +250 -23
  563. package/src/resources/enterprises/index.ts +5 -0
  564. package/src/resources/enterprises/reputation/loa.ts +73 -1
  565. package/src/resources/enterprises/verify-email.ts +117 -0
  566. package/src/resources/index.ts +26 -3
  567. package/src/resources/infringement-claims.ts +4 -0
  568. package/src/resources/llm-token-gateway/index.ts +4 -0
  569. package/src/resources/llm-token-gateway/llm-token-gateway.ts +19 -0
  570. package/src/resources/llm-token-gateway/usage.ts +336 -0
  571. package/src/resources/llm-token-gateway.ts +3 -0
  572. package/src/resources/meeting-sessions/actions.ts +7 -1
  573. package/src/resources/meeting-sessions/artifacts.ts +42 -11
  574. package/src/resources/meeting-sessions/meeting-sessions.ts +71 -33
  575. package/src/resources/phone-numbers/phone-numbers.ts +13 -2
  576. package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
  577. package/src/resources/porting-orders/porting-orders.ts +9 -1
  578. package/src/resources/porting-phone-numbers.ts +9 -1
  579. package/src/resources/private-wireless-gateways.ts +76 -8
  580. package/src/resources/requirements.ts +2 -2
  581. package/src/resources/spend-limits.ts +428 -0
  582. package/src/resources/terms-of-service/agreements.ts +12 -0
  583. package/src/resources/terms-of-service/terms-of-service.ts +15 -0
  584. package/src/resources/texml/accounts/calls/calls.ts +20 -10
  585. package/src/resources/text-to-speech/text-to-speech.ts +73 -11
  586. package/src/resources/webhooks.ts +511 -6
  587. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +113 -0
  588. package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
  589. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
  590. package/src/version.ts +1 -1
  591. package/version.d.mts +1 -1
  592. package/version.d.ts +1 -1
  593. package/version.js +1 -1
  594. package/version.mjs +1 -1
@@ -1,6 +1,8 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as DirAPI from "./dir.js";
3
3
  import { Dir, DirCreateParams, DirListParams } from "./dir.js";
4
+ import * as VerifyEmailAPI from "./verify-email.js";
5
+ import { EnterpriseEmailVerificationStatusWrapped, VerifyEmail, VerifyEmailConfirmParams } from "./verify-email.js";
4
6
  import * as ReputationAPI from "./reputation/reputation.js";
5
7
  import { EnterpriseReputationPublic, EnterpriseReputationPublicWrapped, Reputation, ReputationCheckFrequency, ReputationEnableParams, ReputationUpdateFrequencyParams } from "./reputation/reputation.js";
6
8
  import { APIPromise } from "../../core/api-promise.js";
@@ -12,6 +14,7 @@ import { RequestOptions } from "../../internal/request-options.js";
12
14
  export declare class Enterprises extends APIResource {
13
15
  reputation: ReputationAPI.Reputation;
14
16
  dir: DirAPI.Dir;
17
+ verifyEmail: VerifyEmailAPI.VerifyEmail;
15
18
  /**
16
19
  * Return the enterprises you own, paginated. The default page size is 20; the
17
20
  * maximum is 250.
@@ -125,6 +128,21 @@ export declare class Enterprises extends APIResource {
125
128
  * cannot be changed: including any of them in the body is rejected with
126
129
  * `400 Bad Request` (`Field 'X' is not allowed in this request`).
127
130
  *
131
+ * For an approved BPO enterprise (`role_type` `bpo`), changing any identity field
132
+ * (legal name, DBA, website, FEIN, industry, number of employees, physical
133
+ * address, organization contact, D-U-N-S number, legal type, SIC code, corporate
134
+ * registration number, professional license number, or jurisdiction of
135
+ * incorporation) resets `bpo_verification_status` to `pending` for re-approval and
136
+ * sets every DIR authorization for that BPO to `rejected`. After re-approval, link
137
+ * it again with a newly signed LOA (a new `loa_document_id`); resending the old
138
+ * one keeps the authorization `rejected`. Re-sending an unchanged value does not
139
+ * reset anything.
140
+ *
141
+ * If Number Reputation is enabled on the enterprise, `legal_name`,
142
+ * `doing_business_as`, `website`, `fein`, `industry`, `number_of_employees`,
143
+ * `organization_physical_address`, `organization_contact`, and
144
+ * `dun_bradstreet_number` cannot be changed: the request is rejected with `400`.
145
+ *
128
146
  * @example
129
147
  * ```ts
130
148
  * const enterprisePublicWrapped = await client.enterprises.update(
@@ -172,8 +190,7 @@ export declare class Enterprises extends APIResource {
172
190
  */
173
191
  update(enterpriseID: string, body: EnterpriseUpdateParams, options?: RequestOptions): APIPromise<EnterprisePublicWrapped>;
174
192
  /**
175
- * Branded Calling is a paid product that must be activated on each enterprise.
176
- * Activation is idempotent:
193
+ * Branded Calling must be activated on each enterprise. Activation is idempotent:
177
194
  *
178
195
  * - First call: marks the enterprise as activated and begins onboarding it with
179
196
  * the Branded Calling platform asynchronously. Returns `200` with
@@ -187,11 +204,15 @@ export declare class Enterprises extends APIResource {
187
204
  *
188
205
  * Failure modes:
189
206
  *
207
+ * - `400` - the account has no available credit. Add funds and retry.
208
+ * - `400` - the enterprise is not in the United States. Branded Calling is
209
+ * currently available only to US enterprises.
190
210
  * - `403` - Branded Calling Terms of Service not accepted.
191
211
  * - `404` - enterprise does not exist or does not belong to your account.
192
212
  *
193
- * **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
194
- * for current pricing.
213
+ * **Pricing:** Activation itself is free, but the account must have available
214
+ * credit. Branded Calling fees are charged per DIR and per branded call. See
215
+ * https://telnyx.com/pricing/branded-calling for current pricing.
195
216
  *
196
217
  * @example
197
218
  * ```ts
@@ -205,11 +226,24 @@ export declare class Enterprises extends APIResource {
205
226
  }
206
227
  export type EnterprisePublicsDefaultFlatPagination = DefaultFlatPagination<EnterprisePublic>;
207
228
  export interface BillingContact {
229
+ /**
230
+ * The email address of the person Telnyx should contact about billing for this
231
+ * account.
232
+ */
208
233
  email: string;
234
+ /**
235
+ * The first name of the person Telnyx should contact about billing for this
236
+ * account.
237
+ */
209
238
  first_name: string;
239
+ /**
240
+ * The last name of the person Telnyx should contact about billing for this
241
+ * account.
242
+ */
210
243
  last_name: string;
211
244
  /**
212
- * E.164 format with leading `+`.
245
+ * The phone number of the billing contact, in E.164 format, for example
246
+ * +12125551234.
213
247
  */
214
248
  phone_number: string;
215
249
  }
@@ -217,27 +251,70 @@ export interface EnterprisePublic {
217
251
  id?: string;
218
252
  billing_address?: PhysicalAddress;
219
253
  billing_contact?: BillingContact;
254
+ /**
255
+ * Reason Telnyx rejected the BPO (Business Process Outsourcer) verification, when
256
+ * `bpo_verification_status` is `rejected`; `null` otherwise.
257
+ */
258
+ bpo_verification_rejection_reason?: string | null;
259
+ /**
260
+ * Whether Telnyx has approved this BPO (Business Process Outsourcer) account. Only
261
+ * set for accounts created with `role_type` `bpo`; `null` for normal enterprises.
262
+ * A BPO enterprise must be `approved` before a DIR can be linked to it through
263
+ * `bpo_authorizations`.
264
+ */
265
+ bpo_verification_status?: 'pending' | 'approved' | 'rejected' | null;
220
266
  /**
221
267
  * True once Branded Calling has been activated on this enterprise (see
222
268
  * `POST /enterprises/{id}/branded_calling`).
223
269
  */
224
270
  branded_calling_enabled?: boolean;
225
271
  /**
226
- * Optional corporate-registration / company-number identifier.
272
+ * The official number your company received when it was legally registered or
273
+ * incorporated (for example from your state or national business registry). It is
274
+ * on your certificate of incorporation.
227
275
  */
228
276
  corporate_registration_number?: string | null;
229
277
  country_code?: string;
230
278
  created_at?: string;
279
+ /**
280
+ * Your own label for this account. Enter any reference that helps you find it in
281
+ * your records. Telnyx does not use it during vetting.
282
+ */
231
283
  customer_reference?: string;
284
+ /**
285
+ * The trade name your business operates under if it is different from your legal
286
+ * name, also called a Doing Business As (DBA) name. Leave blank if you only use
287
+ * your legal name.
288
+ */
232
289
  doing_business_as?: string;
233
290
  /**
234
- * Optional D-U-N-S Number issued by Dun & Bradstreet.
291
+ * Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
292
+ * identifier for your business. Leave blank if you do not have one.
235
293
  */
236
294
  dun_bradstreet_number?: string | null;
295
+ /**
296
+ * US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
297
+ */
237
298
  fein?: string;
299
+ /**
300
+ * The industry your business operates in. Choose the closest match from the list;
301
+ * if your value is not accepted, pick the nearest category.
302
+ */
238
303
  industry?: string;
304
+ /**
305
+ * The state, province, or country where your business was legally incorporated,
306
+ * for example Delaware.
307
+ */
239
308
  jurisdiction_of_incorporation?: string;
309
+ /**
310
+ * Your business's full registered legal name, exactly as it appears on your
311
+ * incorporation or tax documents, 3 to 64 characters.
312
+ */
240
313
  legal_name?: string;
314
+ /**
315
+ * Approximate headcount range. Used for vetting heuristics; pick the bucket that
316
+ * contains your current employee count.
317
+ */
241
318
  number_of_employees?: string;
242
319
  /**
243
320
  * True once Phone Number Reputation has been enabled on this enterprise (see
@@ -245,19 +322,38 @@ export interface EnterprisePublic {
245
322
  */
246
323
  number_reputation_enabled?: boolean;
247
324
  organization_contact?: OrganizationContact;
325
+ /**
326
+ * Legal-entity form. Pick the form that matches your incorporation documents:
327
+ *
328
+ * - `corporation` - C-corp or S-corp.
329
+ * - `llc` - limited liability company.
330
+ * - `partnership` - general/limited partnership.
331
+ * - `nonprofit` - non-profit corporation, charitable trust, or
332
+ * 501(c)(3)/equivalent.
333
+ * - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
334
+ * You may be asked for additional documents during vetting.
335
+ */
248
336
  organization_legal_type?: string;
249
337
  organization_physical_address?: PhysicalAddress;
250
338
  organization_type?: string;
251
339
  /**
252
- * Optional SIC code for the primary line of business.
340
+ * The 4-digit Standard Industrial Classification code for your main line of
341
+ * business, which tells us what industry you operate in. Look it up in the SIC
342
+ * code directory if you are unsure.
253
343
  */
254
344
  primary_business_domain_sic_code?: string | null;
255
345
  /**
256
- * Optional professional-license number for regulated industries.
346
+ * If your business operates under a professional license (for example legal,
347
+ * medical, or financial services), enter the license number issued by the
348
+ * licensing authority. Leave blank if it does not apply.
257
349
  */
258
350
  professional_license_number?: string | null;
259
- role_type?: string;
351
+ role_type?: 'enterprise' | 'bpo';
260
352
  updated_at?: string;
353
+ /**
354
+ * Your business's public website address, including https://. Leave blank if your
355
+ * business has no website.
356
+ */
261
357
  website?: string;
262
358
  }
263
359
  export interface EnterprisePublicWrapped {
@@ -289,12 +385,26 @@ export interface NumberReputationPaginationMeta {
289
385
  total_results: number;
290
386
  }
291
387
  export interface OrganizationContact {
388
+ /**
389
+ * The email address of the main person Telnyx should contact about this account.
390
+ * For a call center (BPO) account this is the email you will verify later, so use
391
+ * a mailbox you can access.
392
+ */
292
393
  email: string;
394
+ /**
395
+ * The first name of the main person Telnyx should contact about this account.
396
+ */
293
397
  first_name: string;
398
+ /**
399
+ * The job title of the main person Telnyx should contact about this account.
400
+ */
294
401
  job_title: string;
402
+ /**
403
+ * The last name of the main person Telnyx should contact about this account.
404
+ */
295
405
  last_name: string;
296
406
  /**
297
- * E.164 format with leading `+`.
407
+ * The phone number of the main contact, in E.164 format, for example +12125551234.
298
408
  */
299
409
  phone_number: string;
300
410
  }
@@ -303,13 +413,27 @@ export interface PhysicalAddress {
303
413
  * State or province code (e.g. `IL`, `ON`).
304
414
  */
305
415
  administrative_area: string;
416
+ /**
417
+ * The city of your registered business address.
418
+ */
306
419
  city: string;
307
420
  /**
308
421
  * ISO 3166-1 alpha-2 code (currently `US` or `CA`).
309
422
  */
310
423
  country: string;
424
+ /**
425
+ * The postal or ZIP code of your registered business address.
426
+ */
311
427
  postal_code: string;
428
+ /**
429
+ * The street address of your registered business, including the building number
430
+ * and street name.
431
+ */
312
432
  street_address: string;
433
+ /**
434
+ * An optional second address line, such as a suite, unit, or floor. Leave blank if
435
+ * it does not apply.
436
+ */
313
437
  extended_address?: string | null;
314
438
  }
315
439
  export interface EnterpriseListParams extends DefaultFlatPaginationParams {
@@ -317,6 +441,11 @@ export interface EnterpriseListParams extends DefaultFlatPaginationParams {
317
441
  * Case-insensitive partial match on legal name.
318
442
  */
319
443
  'filter[legal_name][contains]'?: string;
444
+ /**
445
+ * Only return enterprises of this type: `bpo` for call-center (BPO) enterprises,
446
+ * `enterprise` for normal enterprises. Omit to return both.
447
+ */
448
+ 'filter[role_type]'?: 'enterprise' | 'bpo';
320
449
  /**
321
450
  * Filter by legal name (partial match).
322
451
  */
@@ -329,18 +458,29 @@ export interface EnterpriseCreateParams {
329
458
  * ISO 3166-1 alpha-2 country code. Currently `US` and `CA` are supported.
330
459
  */
331
460
  country_code: string;
461
+ /**
462
+ * The trade name your business operates under if it is different from your legal
463
+ * name, also called a Doing Business As (DBA) name. Leave blank if you only use
464
+ * your legal name.
465
+ */
332
466
  doing_business_as: string;
333
467
  /**
334
468
  * US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
335
469
  */
336
470
  fein: string;
337
471
  /**
338
- * Industry classification.
472
+ * The industry your business operates in. Choose the closest match from the list;
473
+ * if your value is not accepted, pick the nearest category.
339
474
  */
340
475
  industry: 'accounting' | 'finance' | 'billing' | 'collections' | 'business' | 'charity' | 'nonprofit' | 'communications' | 'telecom' | 'customer service' | 'support' | 'delivery' | 'shipping' | 'logistics' | 'education' | 'financial' | 'banking' | 'government' | 'public' | 'healthcare' | 'health' | 'pharmacy' | 'medical' | 'insurance' | 'legal' | 'law' | 'notifications' | 'scheduling' | 'real estate' | 'property' | 'retail' | 'ecommerce' | 'sales' | 'marketing' | 'software' | 'technology' | 'tech' | 'media' | 'surveys' | 'market research' | 'travel' | 'hospitality' | 'hotel';
476
+ /**
477
+ * The state, province, or country where your business was legally incorporated,
478
+ * for example Delaware.
479
+ */
341
480
  jurisdiction_of_incorporation: string;
342
481
  /**
343
- * Legal name of the enterprise.
482
+ * Your business's full registered legal name, exactly as it appears on your
483
+ * incorporation or tax documents, 3 to 64 characters.
344
484
  */
345
485
  legal_name: string;
346
486
  /**
@@ -372,62 +512,136 @@ export interface EnterpriseCreateParams {
372
512
  * institutions, charities, religious organisations).
373
513
  */
374
514
  organization_type: 'commercial' | 'government' | 'non_profit';
515
+ /**
516
+ * Your business's public website address, including https://. Leave blank if your
517
+ * business has no website.
518
+ */
375
519
  website: string;
376
520
  /**
377
- * Optional corporate-registration / company-number identifier.
521
+ * The official number your company received when it was legally registered or
522
+ * incorporated (for example from your state or national business registry). It is
523
+ * on your certificate of incorporation.
378
524
  */
379
525
  corporate_registration_number?: string | null;
380
526
  /**
381
- * Optional free-form string the caller can attach for their own bookkeeping.
382
- * Telnyx does not interpret it.
527
+ * Your own label for this account. Enter any reference that helps you find it in
528
+ * your records. Telnyx does not use it during vetting.
383
529
  */
384
530
  customer_reference?: string;
385
531
  /**
386
- * Optional D-U-N-S Number.
532
+ * Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
533
+ * identifier for your business. Leave blank if you do not have one.
387
534
  */
388
535
  dun_bradstreet_number?: string | null;
389
536
  /**
390
- * Optional SIC code for the primary line of business.
537
+ * The 4-digit Standard Industrial Classification code for your main line of
538
+ * business, which tells us what industry you operate in. Look it up in the SIC
539
+ * code directory if you are unsure.
391
540
  */
392
541
  primary_business_domain_sic_code?: string | null;
393
542
  /**
394
- * Optional professional-license number for regulated industries.
543
+ * If your business operates under a professional license (for example legal,
544
+ * medical, or financial services), enter the license number issued by the
545
+ * licensing authority. Leave blank if it does not apply.
395
546
  */
396
547
  professional_license_number?: string | null;
397
548
  /**
398
- * `enterprise` for an organization registering its own DIRs; `bpo` for a Business
399
- * Process Outsourcer placing calls on behalf of one or more enterprises.
549
+ * `enterprise` for an organization registering its own DIRs (the default, and the
550
+ * right choice when the calls display your own brand). `bpo` for a Business
551
+ * Process Outsourcer: a call center that places calls on behalf of other
552
+ * enterprises and displays their brand. A `bpo` enterprise describes the call
553
+ * center itself and cannot own a DIR. Each client the call center calls for gets
554
+ * its own `enterprise` in the same account, with the client's DIR under it; that
555
+ * DIR is then linked to the `bpo` enterprise through `bpo_authorizations`. Fixed
556
+ * at creation.
400
557
  */
401
558
  role_type?: 'enterprise' | 'bpo';
402
559
  }
403
560
  export interface EnterpriseUpdateParams {
404
561
  billing_address?: PhysicalAddress;
405
562
  billing_contact?: BillingContact;
563
+ /**
564
+ * The official number your company received when it was legally registered or
565
+ * incorporated (for example from your state or national business registry). It is
566
+ * on your certificate of incorporation.
567
+ */
406
568
  corporate_registration_number?: string | null;
569
+ /**
570
+ * Your own label for this account. Enter any reference that helps you find it in
571
+ * your records. Telnyx does not use it during vetting.
572
+ */
407
573
  customer_reference?: string;
574
+ /**
575
+ * The trade name your business operates under if it is different from your legal
576
+ * name, also called a Doing Business As (DBA) name. Leave blank if you only use
577
+ * your legal name.
578
+ */
408
579
  doing_business_as?: string;
580
+ /**
581
+ * Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
582
+ * identifier for your business. Leave blank if you do not have one.
583
+ */
409
584
  dun_bradstreet_number?: string | null;
585
+ /**
586
+ * US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
587
+ */
410
588
  fein?: string;
589
+ /**
590
+ * The industry your business operates in. Choose the closest match from the list;
591
+ * if your value is not accepted, pick the nearest category.
592
+ */
411
593
  industry?: 'accounting' | 'finance' | 'billing' | 'collections' | 'business' | 'charity' | 'nonprofit' | 'communications' | 'telecom' | 'customer service' | 'support' | 'delivery' | 'shipping' | 'logistics' | 'education' | 'financial' | 'banking' | 'government' | 'public' | 'healthcare' | 'health' | 'pharmacy' | 'medical' | 'insurance' | 'legal' | 'law' | 'notifications' | 'scheduling' | 'real estate' | 'property' | 'retail' | 'ecommerce' | 'sales' | 'marketing' | 'software' | 'technology' | 'tech' | 'media' | 'surveys' | 'market research' | 'travel' | 'hospitality' | 'hotel';
412
594
  /**
413
- * Updated state/province/country of incorporation. Optional on update.
595
+ * The state, province, or country where your business was legally incorporated,
596
+ * for example Delaware.
414
597
  */
415
598
  jurisdiction_of_incorporation?: string;
416
599
  /**
417
- * Legal name of the enterprise.
600
+ * Your business's full registered legal name, exactly as it appears on your
601
+ * incorporation or tax documents, 3 to 64 characters.
418
602
  */
419
603
  legal_name?: string;
604
+ /**
605
+ * Approximate headcount range. Used for vetting heuristics; pick the bucket that
606
+ * contains your current employee count.
607
+ */
420
608
  number_of_employees?: string;
421
609
  organization_contact?: OrganizationContact;
610
+ /**
611
+ * Legal-entity form. Pick the form that matches your incorporation documents:
612
+ *
613
+ * - `corporation` - C-corp or S-corp.
614
+ * - `llc` - limited liability company.
615
+ * - `partnership` - general/limited partnership.
616
+ * - `nonprofit` - non-profit corporation, charitable trust, or
617
+ * 501(c)(3)/equivalent.
618
+ * - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
619
+ * You may be asked for additional documents during vetting.
620
+ */
422
621
  organization_legal_type?: string;
423
622
  organization_physical_address?: PhysicalAddress;
623
+ /**
624
+ * The 4-digit Standard Industrial Classification code for your main line of
625
+ * business, which tells us what industry you operate in. Look it up in the SIC
626
+ * code directory if you are unsure.
627
+ */
424
628
  primary_business_domain_sic_code?: string | null;
629
+ /**
630
+ * If your business operates under a professional license (for example legal,
631
+ * medical, or financial services), enter the license number issued by the
632
+ * licensing authority. Leave blank if it does not apply.
633
+ */
425
634
  professional_license_number?: string | null;
635
+ /**
636
+ * Your business's public website address, including https://. Leave blank if your
637
+ * business has no website.
638
+ */
426
639
  website?: string;
427
640
  }
428
641
  export declare namespace Enterprises {
429
642
  export { type BillingContact as BillingContact, type EnterprisePublic as EnterprisePublic, type EnterprisePublicWrapped as EnterprisePublicWrapped, type NumberReputationPaginationMeta as NumberReputationPaginationMeta, type OrganizationContact as OrganizationContact, type PhysicalAddress as PhysicalAddress, type EnterprisePublicsDefaultFlatPagination as EnterprisePublicsDefaultFlatPagination, type EnterpriseListParams as EnterpriseListParams, type EnterpriseCreateParams as EnterpriseCreateParams, type EnterpriseUpdateParams as EnterpriseUpdateParams, };
430
643
  export { Reputation as Reputation, type EnterpriseReputationPublic as EnterpriseReputationPublic, type EnterpriseReputationPublicWrapped as EnterpriseReputationPublicWrapped, type ReputationCheckFrequency as ReputationCheckFrequency, type ReputationEnableParams as ReputationEnableParams, type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams, };
431
644
  export { Dir as Dir, type DirListParams as DirListParams, type DirCreateParams as DirCreateParams };
645
+ export { VerifyEmail as VerifyEmail, type EnterpriseEmailVerificationStatusWrapped as EnterpriseEmailVerificationStatusWrapped, type VerifyEmailConfirmParams as VerifyEmailConfirmParams, };
432
646
  }
433
647
  //# sourceMappingURL=enterprises.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enterprises.d.ts","sourceRoot":"","sources":["../../src/resources/enterprises/enterprises.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,iBAAc;AAChC,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAc;AAC5D,OAAO,KAAK,aAAa,mCAAgC;AACzD,OAAO,EACL,0BAA0B,EAC1B,iCAAiC,EACjC,UAAU,EACV,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAChC,mCAAgC;AACjC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAE7G,OAA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AAM,CAAC;CAClB;AAKD,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EAAE,GAAG,IAAI,GAAG,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACrG"}
1
+ {"version":3,"file":"enterprises.d.ts","sourceRoot":"","sources":["../../src/resources/enterprises/enterprises.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,iBAAc;AAChC,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAc;AAC5D,OAAO,KAAK,cAAc,0BAAuB;AACjD,OAAO,EACL,wCAAwC,EACxC,WAAW,EACX,wBAAwB,EACzB,0BAAuB;AACxB,OAAO,KAAK,aAAa,mCAAgC;AACzD,OAAO,EACL,0BAA0B,EAC1B,iCAAiC,EACjC,UAAU,EACV,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAChC,mCAAgC;AACjC,OAAO,EA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,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EAAE,GAAG,IAAI,GAAG,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEpG,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -6,6 +6,8 @@ const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
7
  const DirAPI = tslib_1.__importStar(require("./dir.js"));
8
8
  const dir_1 = require("./dir.js");
9
+ const VerifyEmailAPI = tslib_1.__importStar(require("./verify-email.js"));
10
+ const verify_email_1 = require("./verify-email.js");
9
11
  const ReputationAPI = tslib_1.__importStar(require("./reputation/reputation.js"));
10
12
  const reputation_1 = require("./reputation/reputation.js");
11
13
  const pagination_1 = require("../../core/pagination.js");
@@ -19,6 +21,7 @@ class Enterprises extends resource_1.APIResource {
19
21
  super(...arguments);
20
22
  this.reputation = new ReputationAPI.Reputation(this._client);
21
23
  this.dir = new DirAPI.Dir(this._client);
24
+ this.verifyEmail = new VerifyEmailAPI.VerifyEmail(this._client);
22
25
  }
23
26
  /**
24
27
  * Return the enterprises you own, paginated. The default page size is 20; the
@@ -147,6 +150,21 @@ class Enterprises extends resource_1.APIResource {
147
150
  * cannot be changed: including any of them in the body is rejected with
148
151
  * `400 Bad Request` (`Field 'X' is not allowed in this request`).
149
152
  *
153
+ * For an approved BPO enterprise (`role_type` `bpo`), changing any identity field
154
+ * (legal name, DBA, website, FEIN, industry, number of employees, physical
155
+ * address, organization contact, D-U-N-S number, legal type, SIC code, corporate
156
+ * registration number, professional license number, or jurisdiction of
157
+ * incorporation) resets `bpo_verification_status` to `pending` for re-approval and
158
+ * sets every DIR authorization for that BPO to `rejected`. After re-approval, link
159
+ * it again with a newly signed LOA (a new `loa_document_id`); resending the old
160
+ * one keeps the authorization `rejected`. Re-sending an unchanged value does not
161
+ * reset anything.
162
+ *
163
+ * If Number Reputation is enabled on the enterprise, `legal_name`,
164
+ * `doing_business_as`, `website`, `fein`, `industry`, `number_of_employees`,
165
+ * `organization_physical_address`, `organization_contact`, and
166
+ * `dun_bradstreet_number` cannot be changed: the request is rejected with `400`.
167
+ *
150
168
  * @example
151
169
  * ```ts
152
170
  * const enterprisePublicWrapped = await client.enterprises.update(
@@ -196,8 +214,7 @@ class Enterprises extends resource_1.APIResource {
196
214
  return this._client.put((0, path_1.path) `/enterprises/${enterpriseID}`, { body, ...options });
197
215
  }
198
216
  /**
199
- * Branded Calling is a paid product that must be activated on each enterprise.
200
- * Activation is idempotent:
217
+ * Branded Calling must be activated on each enterprise. Activation is idempotent:
201
218
  *
202
219
  * - First call: marks the enterprise as activated and begins onboarding it with
203
220
  * the Branded Calling platform asynchronously. Returns `200` with
@@ -211,11 +228,15 @@ class Enterprises extends resource_1.APIResource {
211
228
  *
212
229
  * Failure modes:
213
230
  *
231
+ * - `400` - the account has no available credit. Add funds and retry.
232
+ * - `400` - the enterprise is not in the United States. Branded Calling is
233
+ * currently available only to US enterprises.
214
234
  * - `403` - Branded Calling Terms of Service not accepted.
215
235
  * - `404` - enterprise does not exist or does not belong to your account.
216
236
  *
217
- * **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
218
- * for current pricing.
237
+ * **Pricing:** Activation itself is free, but the account must have available
238
+ * credit. Branded Calling fees are charged per DIR and per branded call. See
239
+ * https://telnyx.com/pricing/branded-calling for current pricing.
219
240
  *
220
241
  * @example
221
242
  * ```ts
@@ -232,4 +253,5 @@ class Enterprises extends resource_1.APIResource {
232
253
  exports.Enterprises = Enterprises;
233
254
  Enterprises.Reputation = reputation_1.Reputation;
234
255
  Enterprises.Dir = dir_1.Dir;
256
+ Enterprises.VerifyEmail = verify_email_1.VerifyEmail;
235
257
  //# sourceMappingURL=enterprises.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enterprises.js","sourceRoot":"","sources":["../../src/resources/enterprises/enterprises.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yDAAgC;AAChC,kCAA4D;AAC5D,kFAAyD;AACzD,2DAOiC;AAEjC,yDAA6G;AAC7G,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8NjD,CAAC;IA5NC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,kCAAuC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,YAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI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,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkEG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,cAAc,CAAC,YAAoB,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;CACF;AAnPD,kCAmPC;AA8kBD,WAAW,CAAC,UAAU,GAAG,uBAAU,CAAC;AACpC,WAAW,CAAC,GAAG,GAAG,SAAG,CAAC;AACtB,WAAW,CAAC,WAAW,GAAG,0BAAW,CAAC"}
@@ -2,6 +2,8 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as DirAPI from "./dir.mjs";
4
4
  import { Dir } from "./dir.mjs";
5
+ import * as VerifyEmailAPI from "./verify-email.mjs";
6
+ import { VerifyEmail, } from "./verify-email.mjs";
5
7
  import * as ReputationAPI from "./reputation/reputation.mjs";
6
8
  import { Reputation, } from "./reputation/reputation.mjs";
7
9
  import { DefaultFlatPagination } from "../../core/pagination.mjs";
@@ -15,6 +17,7 @@ export class Enterprises extends APIResource {
15
17
  super(...arguments);
16
18
  this.reputation = new ReputationAPI.Reputation(this._client);
17
19
  this.dir = new DirAPI.Dir(this._client);
20
+ this.verifyEmail = new VerifyEmailAPI.VerifyEmail(this._client);
18
21
  }
19
22
  /**
20
23
  * Return the enterprises you own, paginated. The default page size is 20; the
@@ -143,6 +146,21 @@ export class Enterprises extends APIResource {
143
146
  * cannot be changed: including any of them in the body is rejected with
144
147
  * `400 Bad Request` (`Field 'X' is not allowed in this request`).
145
148
  *
149
+ * For an approved BPO enterprise (`role_type` `bpo`), changing any identity field
150
+ * (legal name, DBA, website, FEIN, industry, number of employees, physical
151
+ * address, organization contact, D-U-N-S number, legal type, SIC code, corporate
152
+ * registration number, professional license number, or jurisdiction of
153
+ * incorporation) resets `bpo_verification_status` to `pending` for re-approval and
154
+ * sets every DIR authorization for that BPO to `rejected`. After re-approval, link
155
+ * it again with a newly signed LOA (a new `loa_document_id`); resending the old
156
+ * one keeps the authorization `rejected`. Re-sending an unchanged value does not
157
+ * reset anything.
158
+ *
159
+ * If Number Reputation is enabled on the enterprise, `legal_name`,
160
+ * `doing_business_as`, `website`, `fein`, `industry`, `number_of_employees`,
161
+ * `organization_physical_address`, `organization_contact`, and
162
+ * `dun_bradstreet_number` cannot be changed: the request is rejected with `400`.
163
+ *
146
164
  * @example
147
165
  * ```ts
148
166
  * const enterprisePublicWrapped = await client.enterprises.update(
@@ -192,8 +210,7 @@ export class Enterprises extends APIResource {
192
210
  return this._client.put(path `/enterprises/${enterpriseID}`, { body, ...options });
193
211
  }
194
212
  /**
195
- * Branded Calling is a paid product that must be activated on each enterprise.
196
- * Activation is idempotent:
213
+ * Branded Calling must be activated on each enterprise. Activation is idempotent:
197
214
  *
198
215
  * - First call: marks the enterprise as activated and begins onboarding it with
199
216
  * the Branded Calling platform asynchronously. Returns `200` with
@@ -207,11 +224,15 @@ export class Enterprises extends APIResource {
207
224
  *
208
225
  * Failure modes:
209
226
  *
227
+ * - `400` - the account has no available credit. Add funds and retry.
228
+ * - `400` - the enterprise is not in the United States. Branded Calling is
229
+ * currently available only to US enterprises.
210
230
  * - `403` - Branded Calling Terms of Service not accepted.
211
231
  * - `404` - enterprise does not exist or does not belong to your account.
212
232
  *
213
- * **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
214
- * for current pricing.
233
+ * **Pricing:** Activation itself is free, but the account must have available
234
+ * credit. Branded Calling fees are charged per DIR and per branded call. See
235
+ * https://telnyx.com/pricing/branded-calling for current pricing.
215
236
  *
216
237
  * @example
217
238
  * ```ts
@@ -227,4 +248,5 @@ export class Enterprises extends APIResource {
227
248
  }
228
249
  Enterprises.Reputation = Reputation;
229
250
  Enterprises.Dir = Dir;
251
+ Enterprises.VerifyEmail = VerifyEmail;
230
252
  //# sourceMappingURL=enterprises.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"enterprises.mjs","sourceRoot":"","sources":["../../src/resources/enterprises/enterprises.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,kBAAc;AAChC,OAAO,EAAE,GAAG,EAAkC,kBAAc;AAC5D,OAAO,KAAK,aAAa,oCAAgC;AACzD,OAAO,EAGL,UAAU,GAIX,oCAAgC;AAEjC,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAC7G,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8NjD,CAAC;IA5NC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,qBAAuC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG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