telnyx 7.24.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 (341) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +19 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +19 -4
  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 +7 -6
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +7 -6
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js.map +1 -1
  16. package/resources/ai/ai.mjs.map +1 -1
  17. package/resources/ai/assistants/assistants.d.mts +320 -28
  18. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  19. package/resources/ai/assistants/assistants.d.ts +320 -28
  20. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  21. package/resources/ai/assistants/assistants.js +79 -2
  22. package/resources/ai/assistants/assistants.js.map +1 -1
  23. package/resources/ai/assistants/assistants.mjs +79 -2
  24. package/resources/ai/assistants/assistants.mjs.map +1 -1
  25. package/resources/ai/assistants/deleted.d.mts +60 -0
  26. package/resources/ai/assistants/deleted.d.mts.map +1 -0
  27. package/resources/ai/assistants/deleted.d.ts +60 -0
  28. package/resources/ai/assistants/deleted.d.ts.map +1 -0
  29. package/resources/ai/assistants/deleted.js +49 -0
  30. package/resources/ai/assistants/deleted.js.map +1 -0
  31. package/resources/ai/assistants/deleted.mjs +45 -0
  32. package/resources/ai/assistants/deleted.mjs.map +1 -0
  33. package/resources/ai/assistants/index.d.mts +2 -1
  34. package/resources/ai/assistants/index.d.mts.map +1 -1
  35. package/resources/ai/assistants/index.d.ts +2 -1
  36. package/resources/ai/assistants/index.d.ts.map +1 -1
  37. package/resources/ai/assistants/index.js +3 -1
  38. package/resources/ai/assistants/index.js.map +1 -1
  39. package/resources/ai/assistants/index.mjs +1 -0
  40. package/resources/ai/assistants/index.mjs.map +1 -1
  41. package/resources/ai/assistants/versions.d.mts +36 -0
  42. package/resources/ai/assistants/versions.d.mts.map +1 -1
  43. package/resources/ai/assistants/versions.d.ts +36 -0
  44. package/resources/ai/assistants/versions.d.ts.map +1 -1
  45. package/resources/ai/chat.d.mts +7 -2
  46. package/resources/ai/chat.d.mts.map +1 -1
  47. package/resources/ai/chat.d.ts +7 -2
  48. package/resources/ai/chat.d.ts.map +1 -1
  49. package/resources/ai/embeddings/embeddings.d.mts +1 -1
  50. package/resources/ai/embeddings/embeddings.d.ts +1 -1
  51. package/resources/ai/embeddings/embeddings.js +1 -1
  52. package/resources/ai/embeddings/embeddings.mjs +1 -1
  53. package/resources/ai/index.d.mts +2 -2
  54. package/resources/ai/index.d.mts.map +1 -1
  55. package/resources/ai/index.d.ts +2 -2
  56. package/resources/ai/index.d.ts.map +1 -1
  57. package/resources/ai/index.js.map +1 -1
  58. package/resources/ai/index.mjs.map +1 -1
  59. package/resources/ai/memory/index.d.mts +1 -1
  60. package/resources/ai/memory/index.d.mts.map +1 -1
  61. package/resources/ai/memory/index.d.ts +1 -1
  62. package/resources/ai/memory/index.d.ts.map +1 -1
  63. package/resources/ai/memory/index.js.map +1 -1
  64. package/resources/ai/memory/index.mjs +1 -1
  65. package/resources/ai/memory/index.mjs.map +1 -1
  66. package/resources/ai/memory/memory.d.mts +2 -2
  67. package/resources/ai/memory/memory.d.mts.map +1 -1
  68. package/resources/ai/memory/memory.d.ts +2 -2
  69. package/resources/ai/memory/memory.d.ts.map +1 -1
  70. package/resources/ai/memory/memory.js.map +1 -1
  71. package/resources/ai/memory/memory.mjs +1 -1
  72. package/resources/ai/memory/memory.mjs.map +1 -1
  73. package/resources/ai/memory/namespaces/index.d.mts +1 -1
  74. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  75. package/resources/ai/memory/namespaces/index.d.ts +1 -1
  76. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  77. package/resources/ai/memory/namespaces/index.js.map +1 -1
  78. package/resources/ai/memory/namespaces/index.mjs +1 -1
  79. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  80. package/resources/ai/memory/namespaces/namespaces.d.mts +60 -4
  81. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  82. package/resources/ai/memory/namespaces/namespaces.d.ts +60 -4
  83. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  84. package/resources/ai/memory/namespaces/namespaces.js +41 -3
  85. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  86. package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
  87. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  88. package/resources/ai/openai/chat.d.mts +7 -2
  89. package/resources/ai/openai/chat.d.mts.map +1 -1
  90. package/resources/ai/openai/chat.d.ts +7 -2
  91. package/resources/ai/openai/chat.d.ts.map +1 -1
  92. package/resources/ai/tools.d.mts +3 -4
  93. package/resources/ai/tools.d.mts.map +1 -1
  94. package/resources/ai/tools.d.ts +3 -4
  95. package/resources/ai/tools.d.ts.map +1 -1
  96. package/resources/ai/tools.js +5 -2
  97. package/resources/ai/tools.js.map +1 -1
  98. package/resources/ai/tools.mjs +5 -2
  99. package/resources/ai/tools.mjs.map +1 -1
  100. package/resources/calls/actions.d.mts +76 -17
  101. package/resources/calls/actions.d.mts.map +1 -1
  102. package/resources/calls/actions.d.ts +76 -17
  103. package/resources/calls/actions.d.ts.map +1 -1
  104. package/resources/calls/actions.js +31 -0
  105. package/resources/calls/actions.js.map +1 -1
  106. package/resources/calls/actions.mjs +31 -0
  107. package/resources/calls/actions.mjs.map +1 -1
  108. package/resources/calls/calls.d.mts +48 -11
  109. package/resources/calls/calls.d.mts.map +1 -1
  110. package/resources/calls/calls.d.ts +48 -11
  111. package/resources/calls/calls.d.ts.map +1 -1
  112. package/resources/calls/calls.js +3 -0
  113. package/resources/calls/calls.js.map +1 -1
  114. package/resources/calls/calls.mjs +3 -0
  115. package/resources/calls/calls.mjs.map +1 -1
  116. package/resources/dir/dir.d.mts +220 -28
  117. package/resources/dir/dir.d.mts.map +1 -1
  118. package/resources/dir/dir.d.ts +220 -28
  119. package/resources/dir/dir.d.ts.map +1 -1
  120. package/resources/dir/dir.js +77 -13
  121. package/resources/dir/dir.js.map +1 -1
  122. package/resources/dir/dir.mjs +77 -13
  123. package/resources/dir/dir.mjs.map +1 -1
  124. package/resources/dir/index.d.mts +1 -1
  125. package/resources/dir/index.d.mts.map +1 -1
  126. package/resources/dir/index.d.ts +1 -1
  127. package/resources/dir/index.d.ts.map +1 -1
  128. package/resources/dir/index.js.map +1 -1
  129. package/resources/dir/index.mjs.map +1 -1
  130. package/resources/dir/phone-numbers.d.mts +8 -4
  131. package/resources/dir/phone-numbers.d.mts.map +1 -1
  132. package/resources/dir/phone-numbers.d.ts +8 -4
  133. package/resources/dir/phone-numbers.d.ts.map +1 -1
  134. package/resources/dir/phone-numbers.js +4 -4
  135. package/resources/dir/phone-numbers.mjs +4 -4
  136. package/resources/dir/references.d.mts +9 -6
  137. package/resources/dir/references.d.mts.map +1 -1
  138. package/resources/dir/references.d.ts +9 -6
  139. package/resources/dir/references.d.ts.map +1 -1
  140. package/resources/enterprises/dir.d.mts +17 -1
  141. package/resources/enterprises/dir.d.mts.map +1 -1
  142. package/resources/enterprises/dir.d.ts +17 -1
  143. package/resources/enterprises/dir.d.ts.map +1 -1
  144. package/resources/enterprises/enterprises.d.mts +237 -23
  145. package/resources/enterprises/enterprises.d.mts.map +1 -1
  146. package/resources/enterprises/enterprises.d.ts +237 -23
  147. package/resources/enterprises/enterprises.d.ts.map +1 -1
  148. package/resources/enterprises/enterprises.js +26 -4
  149. package/resources/enterprises/enterprises.js.map +1 -1
  150. package/resources/enterprises/enterprises.mjs +26 -4
  151. package/resources/enterprises/enterprises.mjs.map +1 -1
  152. package/resources/enterprises/index.d.mts +1 -0
  153. package/resources/enterprises/index.d.mts.map +1 -1
  154. package/resources/enterprises/index.d.ts +1 -0
  155. package/resources/enterprises/index.d.ts.map +1 -1
  156. package/resources/enterprises/index.js +3 -1
  157. package/resources/enterprises/index.js.map +1 -1
  158. package/resources/enterprises/index.mjs +1 -0
  159. package/resources/enterprises/index.mjs.map +1 -1
  160. package/resources/enterprises/reputation/loa.d.mts +61 -1
  161. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  162. package/resources/enterprises/reputation/loa.d.ts +61 -1
  163. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  164. package/resources/enterprises/verify-email.d.mts +91 -0
  165. package/resources/enterprises/verify-email.d.mts.map +1 -0
  166. package/resources/enterprises/verify-email.d.ts +91 -0
  167. package/resources/enterprises/verify-email.d.ts.map +1 -0
  168. package/resources/enterprises/verify-email.js +55 -0
  169. package/resources/enterprises/verify-email.js.map +1 -0
  170. package/resources/enterprises/verify-email.mjs +51 -0
  171. package/resources/enterprises/verify-email.mjs.map +1 -0
  172. package/resources/index.d.mts +4 -2
  173. package/resources/index.d.mts.map +1 -1
  174. package/resources/index.d.ts +4 -2
  175. package/resources/index.d.ts.map +1 -1
  176. package/resources/index.js +7 -3
  177. package/resources/index.js.map +1 -1
  178. package/resources/index.mjs +2 -0
  179. package/resources/index.mjs.map +1 -1
  180. package/resources/infringement-claims.d.mts +4 -0
  181. package/resources/infringement-claims.d.mts.map +1 -1
  182. package/resources/infringement-claims.d.ts +4 -0
  183. package/resources/infringement-claims.d.ts.map +1 -1
  184. package/resources/llm-token-gateway/index.d.mts +3 -0
  185. package/resources/llm-token-gateway/index.d.mts.map +1 -0
  186. package/resources/llm-token-gateway/index.d.ts +3 -0
  187. package/resources/llm-token-gateway/index.d.ts.map +1 -0
  188. package/resources/llm-token-gateway/index.js +9 -0
  189. package/resources/llm-token-gateway/index.js.map +1 -0
  190. package/resources/llm-token-gateway/index.mjs +4 -0
  191. package/resources/llm-token-gateway/index.mjs.map +1 -0
  192. package/resources/llm-token-gateway/llm-token-gateway.d.mts +10 -0
  193. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
  194. package/resources/llm-token-gateway/llm-token-gateway.d.ts +10 -0
  195. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
  196. package/resources/llm-token-gateway/llm-token-gateway.js +17 -0
  197. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
  198. package/resources/llm-token-gateway/llm-token-gateway.mjs +12 -0
  199. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
  200. package/resources/llm-token-gateway/usage.d.mts +260 -0
  201. package/resources/llm-token-gateway/usage.d.mts.map +1 -0
  202. package/resources/llm-token-gateway/usage.d.ts +260 -0
  203. package/resources/llm-token-gateway/usage.d.ts.map +1 -0
  204. package/resources/llm-token-gateway/usage.js +31 -0
  205. package/resources/llm-token-gateway/usage.js.map +1 -0
  206. package/resources/llm-token-gateway/usage.mjs +27 -0
  207. package/resources/llm-token-gateway/usage.mjs.map +1 -0
  208. package/resources/llm-token-gateway.d.mts +2 -0
  209. package/resources/llm-token-gateway.d.mts.map +1 -0
  210. package/resources/llm-token-gateway.d.ts +2 -0
  211. package/resources/llm-token-gateway.d.ts.map +1 -0
  212. package/resources/llm-token-gateway.js +6 -0
  213. package/resources/llm-token-gateway.js.map +1 -0
  214. package/resources/llm-token-gateway.mjs +3 -0
  215. package/resources/llm-token-gateway.mjs.map +1 -0
  216. package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
  217. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  218. package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
  219. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  220. package/resources/meeting-sessions/meeting-sessions.js +6 -6
  221. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  222. package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
  223. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  224. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  225. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  226. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  227. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  228. package/resources/porting-orders/porting-orders.d.mts +1 -1
  229. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  230. package/resources/porting-orders/porting-orders.d.ts +1 -1
  231. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  232. package/resources/porting-orders/porting-orders.js.map +1 -1
  233. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  234. package/resources/porting-phone-numbers.d.mts +1 -1
  235. package/resources/porting-phone-numbers.d.mts.map +1 -1
  236. package/resources/porting-phone-numbers.d.ts +1 -1
  237. package/resources/porting-phone-numbers.d.ts.map +1 -1
  238. package/resources/requirements.d.mts +2 -2
  239. package/resources/requirements.d.mts.map +1 -1
  240. package/resources/requirements.d.ts +2 -2
  241. package/resources/requirements.d.ts.map +1 -1
  242. package/resources/spend-limits.d.mts +335 -0
  243. package/resources/spend-limits.d.mts.map +1 -0
  244. package/resources/spend-limits.d.ts +335 -0
  245. package/resources/spend-limits.d.ts.map +1 -0
  246. package/resources/spend-limits.js +91 -0
  247. package/resources/spend-limits.js.map +1 -0
  248. package/resources/spend-limits.mjs +87 -0
  249. package/resources/spend-limits.mjs.map +1 -0
  250. package/resources/terms-of-service/agreements.d.mts +12 -0
  251. package/resources/terms-of-service/agreements.d.mts.map +1 -1
  252. package/resources/terms-of-service/agreements.d.ts +12 -0
  253. package/resources/terms-of-service/agreements.d.ts.map +1 -1
  254. package/resources/terms-of-service/terms-of-service.d.mts +15 -0
  255. package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
  256. package/resources/terms-of-service/terms-of-service.d.ts +15 -0
  257. package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
  258. package/resources/terms-of-service/terms-of-service.js.map +1 -1
  259. package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
  260. package/resources/text-to-speech/text-to-speech.d.mts +4 -2
  261. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  262. package/resources/text-to-speech/text-to-speech.d.ts +4 -2
  263. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  264. package/resources/webhooks.d.mts +403 -5
  265. package/resources/webhooks.d.mts.map +1 -1
  266. package/resources/webhooks.d.ts +403 -5
  267. package/resources/webhooks.d.ts.map +1 -1
  268. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +89 -0
  269. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
  270. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +89 -0
  271. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
  272. package/resources/whatsapp/phone-numbers/calling-routing.js +65 -0
  273. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
  274. package/resources/whatsapp/phone-numbers/calling-routing.mjs +61 -0
  275. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
  276. package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
  277. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  278. package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
  279. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  280. package/resources/whatsapp/phone-numbers/index.js +3 -1
  281. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  282. package/resources/whatsapp/phone-numbers/index.mjs +1 -0
  283. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  284. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
  285. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  286. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
  287. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  288. package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
  289. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  290. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
  291. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  292. package/src/client.ts +55 -0
  293. package/src/resources/ai/ai.ts +13 -4
  294. package/src/resources/ai/assistants/assistants.ts +384 -28
  295. package/src/resources/ai/assistants/deleted.ts +86 -0
  296. package/src/resources/ai/assistants/index.ts +11 -0
  297. package/src/resources/ai/assistants/versions.ts +40 -0
  298. package/src/resources/ai/chat.ts +7 -2
  299. package/src/resources/ai/embeddings/embeddings.ts +1 -1
  300. package/src/resources/ai/index.ts +5 -1
  301. package/src/resources/ai/memory/index.ts +9 -1
  302. package/src/resources/ai/memory/memory.ts +13 -1
  303. package/src/resources/ai/memory/namespaces/index.ts +9 -1
  304. package/src/resources/ai/memory/namespaces/namespaces.ts +81 -3
  305. package/src/resources/ai/openai/chat.ts +7 -2
  306. package/src/resources/ai/tools.ts +6 -6
  307. package/src/resources/calls/actions.ts +76 -15
  308. package/src/resources/calls/calls.ts +49 -9
  309. package/src/resources/dir/dir.ts +263 -32
  310. package/src/resources/dir/index.ts +6 -0
  311. package/src/resources/dir/phone-numbers.ts +8 -4
  312. package/src/resources/dir/references.ts +9 -6
  313. package/src/resources/enterprises/dir.ts +19 -1
  314. package/src/resources/enterprises/enterprises.ts +250 -23
  315. package/src/resources/enterprises/index.ts +5 -0
  316. package/src/resources/enterprises/reputation/loa.ts +73 -1
  317. package/src/resources/enterprises/verify-email.ts +117 -0
  318. package/src/resources/index.ts +20 -0
  319. package/src/resources/infringement-claims.ts +4 -0
  320. package/src/resources/llm-token-gateway/index.ts +4 -0
  321. package/src/resources/llm-token-gateway/llm-token-gateway.ts +19 -0
  322. package/src/resources/llm-token-gateway/usage.ts +336 -0
  323. package/src/resources/llm-token-gateway.ts +3 -0
  324. package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
  325. package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
  326. package/src/resources/porting-orders/porting-orders.ts +9 -1
  327. package/src/resources/porting-phone-numbers.ts +9 -1
  328. package/src/resources/requirements.ts +2 -2
  329. package/src/resources/spend-limits.ts +428 -0
  330. package/src/resources/terms-of-service/agreements.ts +12 -0
  331. package/src/resources/terms-of-service/terms-of-service.ts +15 -0
  332. package/src/resources/text-to-speech/text-to-speech.ts +4 -2
  333. package/src/resources/webhooks.ts +495 -2
  334. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +113 -0
  335. package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
  336. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
  337. package/src/version.ts +1 -1
  338. package/version.d.mts +1 -1
  339. package/version.d.ts +1 -1
  340. package/version.js +1 -1
  341. package/version.mjs +1 -1
@@ -3,6 +3,12 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as DirAPI from './dir';
5
5
  import { Dir, DirCreateParams, DirListParams } from './dir';
6
+ import * as VerifyEmailAPI from './verify-email';
7
+ import {
8
+ EnterpriseEmailVerificationStatusWrapped,
9
+ VerifyEmail,
10
+ VerifyEmailConfirmParams,
11
+ } from './verify-email';
6
12
  import * as ReputationAPI from './reputation/reputation';
7
13
  import {
8
14
  EnterpriseReputationPublic,
@@ -24,6 +30,7 @@ import { path } from '../../internal/utils/path';
24
30
  export class Enterprises extends APIResource {
25
31
  reputation: ReputationAPI.Reputation = new ReputationAPI.Reputation(this._client);
26
32
  dir: DirAPI.Dir = new DirAPI.Dir(this._client);
33
+ verifyEmail: VerifyEmailAPI.VerifyEmail = new VerifyEmailAPI.VerifyEmail(this._client);
27
34
 
28
35
  /**
29
36
  * Return the enterprises you own, paginated. The default page size is 20; the
@@ -159,6 +166,21 @@ export class Enterprises extends APIResource {
159
166
  * cannot be changed: including any of them in the body is rejected with
160
167
  * `400 Bad Request` (`Field 'X' is not allowed in this request`).
161
168
  *
169
+ * For an approved BPO enterprise (`role_type` `bpo`), changing any identity field
170
+ * (legal name, DBA, website, FEIN, industry, number of employees, physical
171
+ * address, organization contact, D-U-N-S number, legal type, SIC code, corporate
172
+ * registration number, professional license number, or jurisdiction of
173
+ * incorporation) resets `bpo_verification_status` to `pending` for re-approval and
174
+ * sets every DIR authorization for that BPO to `rejected`. After re-approval, link
175
+ * it again with a newly signed LOA (a new `loa_document_id`); resending the old
176
+ * one keeps the authorization `rejected`. Re-sending an unchanged value does not
177
+ * reset anything.
178
+ *
179
+ * If Number Reputation is enabled on the enterprise, `legal_name`,
180
+ * `doing_business_as`, `website`, `fein`, `industry`, `number_of_employees`,
181
+ * `organization_physical_address`, `organization_contact`, and
182
+ * `dun_bradstreet_number` cannot be changed: the request is rejected with `400`.
183
+ *
162
184
  * @example
163
185
  * ```ts
164
186
  * const enterprisePublicWrapped = await client.enterprises.update(
@@ -213,8 +235,7 @@ export class Enterprises extends APIResource {
213
235
  }
214
236
 
215
237
  /**
216
- * Branded Calling is a paid product that must be activated on each enterprise.
217
- * Activation is idempotent:
238
+ * Branded Calling must be activated on each enterprise. Activation is idempotent:
218
239
  *
219
240
  * - First call: marks the enterprise as activated and begins onboarding it with
220
241
  * the Branded Calling platform asynchronously. Returns `200` with
@@ -228,11 +249,15 @@ export class Enterprises extends APIResource {
228
249
  *
229
250
  * Failure modes:
230
251
  *
252
+ * - `400` - the account has no available credit. Add funds and retry.
253
+ * - `400` - the enterprise is not in the United States. Branded Calling is
254
+ * currently available only to US enterprises.
231
255
  * - `403` - Branded Calling Terms of Service not accepted.
232
256
  * - `404` - enterprise does not exist or does not belong to your account.
233
257
  *
234
- * **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
235
- * for current pricing.
258
+ * **Pricing:** Activation itself is free, but the account must have available
259
+ * credit. Branded Calling fees are charged per DIR and per branded call. See
260
+ * https://telnyx.com/pricing/branded-calling for current pricing.
236
261
  *
237
262
  * @example
238
263
  * ```ts
@@ -250,14 +275,27 @@ export class Enterprises extends APIResource {
250
275
  export type EnterprisePublicsDefaultFlatPagination = DefaultFlatPagination<EnterprisePublic>;
251
276
 
252
277
  export interface BillingContact {
278
+ /**
279
+ * The email address of the person Telnyx should contact about billing for this
280
+ * account.
281
+ */
253
282
  email: string;
254
283
 
284
+ /**
285
+ * The first name of the person Telnyx should contact about billing for this
286
+ * account.
287
+ */
255
288
  first_name: string;
256
289
 
290
+ /**
291
+ * The last name of the person Telnyx should contact about billing for this
292
+ * account.
293
+ */
257
294
  last_name: string;
258
295
 
259
296
  /**
260
- * E.164 format with leading `+`.
297
+ * The phone number of the billing contact, in E.164 format, for example
298
+ * +12125551234.
261
299
  */
262
300
  phone_number: string;
263
301
  }
@@ -269,6 +307,20 @@ export interface EnterprisePublic {
269
307
 
270
308
  billing_contact?: BillingContact;
271
309
 
310
+ /**
311
+ * Reason Telnyx rejected the BPO (Business Process Outsourcer) verification, when
312
+ * `bpo_verification_status` is `rejected`; `null` otherwise.
313
+ */
314
+ bpo_verification_rejection_reason?: string | null;
315
+
316
+ /**
317
+ * Whether Telnyx has approved this BPO (Business Process Outsourcer) account. Only
318
+ * set for accounts created with `role_type` `bpo`; `null` for normal enterprises.
319
+ * A BPO enterprise must be `approved` before a DIR can be linked to it through
320
+ * `bpo_authorizations`.
321
+ */
322
+ bpo_verification_status?: 'pending' | 'approved' | 'rejected' | null;
323
+
272
324
  /**
273
325
  * True once Branded Calling has been activated on this enterprise (see
274
326
  * `POST /enterprises/{id}/branded_calling`).
@@ -276,7 +328,9 @@ export interface EnterprisePublic {
276
328
  branded_calling_enabled?: boolean;
277
329
 
278
330
  /**
279
- * Optional corporate-registration / company-number identifier.
331
+ * The official number your company received when it was legally registered or
332
+ * incorporated (for example from your state or national business registry). It is
333
+ * on your certificate of incorporation.
280
334
  */
281
335
  corporate_registration_number?: string | null;
282
336
 
@@ -284,23 +338,52 @@ export interface EnterprisePublic {
284
338
 
285
339
  created_at?: string;
286
340
 
341
+ /**
342
+ * Your own label for this account. Enter any reference that helps you find it in
343
+ * your records. Telnyx does not use it during vetting.
344
+ */
287
345
  customer_reference?: string;
288
346
 
347
+ /**
348
+ * The trade name your business operates under if it is different from your legal
349
+ * name, also called a Doing Business As (DBA) name. Leave blank if you only use
350
+ * your legal name.
351
+ */
289
352
  doing_business_as?: string;
290
353
 
291
354
  /**
292
- * Optional D-U-N-S Number issued by Dun & Bradstreet.
355
+ * Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
356
+ * identifier for your business. Leave blank if you do not have one.
293
357
  */
294
358
  dun_bradstreet_number?: string | null;
295
359
 
360
+ /**
361
+ * US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
362
+ */
296
363
  fein?: string;
297
364
 
365
+ /**
366
+ * The industry your business operates in. Choose the closest match from the list;
367
+ * if your value is not accepted, pick the nearest category.
368
+ */
298
369
  industry?: string;
299
370
 
371
+ /**
372
+ * The state, province, or country where your business was legally incorporated,
373
+ * for example Delaware.
374
+ */
300
375
  jurisdiction_of_incorporation?: string;
301
376
 
377
+ /**
378
+ * Your business's full registered legal name, exactly as it appears on your
379
+ * incorporation or tax documents, 3 to 64 characters.
380
+ */
302
381
  legal_name?: string;
303
382
 
383
+ /**
384
+ * Approximate headcount range. Used for vetting heuristics; pick the bucket that
385
+ * contains your current employee count.
386
+ */
304
387
  number_of_employees?: string;
305
388
 
306
389
  /**
@@ -311,6 +394,17 @@ export interface EnterprisePublic {
311
394
 
312
395
  organization_contact?: OrganizationContact;
313
396
 
397
+ /**
398
+ * Legal-entity form. Pick the form that matches your incorporation documents:
399
+ *
400
+ * - `corporation` - C-corp or S-corp.
401
+ * - `llc` - limited liability company.
402
+ * - `partnership` - general/limited partnership.
403
+ * - `nonprofit` - non-profit corporation, charitable trust, or
404
+ * 501(c)(3)/equivalent.
405
+ * - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
406
+ * You may be asked for additional documents during vetting.
407
+ */
314
408
  organization_legal_type?: string;
315
409
 
316
410
  organization_physical_address?: PhysicalAddress;
@@ -318,19 +412,27 @@ export interface EnterprisePublic {
318
412
  organization_type?: string;
319
413
 
320
414
  /**
321
- * Optional SIC code for the primary line of business.
415
+ * The 4-digit Standard Industrial Classification code for your main line of
416
+ * business, which tells us what industry you operate in. Look it up in the SIC
417
+ * code directory if you are unsure.
322
418
  */
323
419
  primary_business_domain_sic_code?: string | null;
324
420
 
325
421
  /**
326
- * Optional professional-license number for regulated industries.
422
+ * If your business operates under a professional license (for example legal,
423
+ * medical, or financial services), enter the license number issued by the
424
+ * licensing authority. Leave blank if it does not apply.
327
425
  */
328
426
  professional_license_number?: string | null;
329
427
 
330
- role_type?: string;
428
+ role_type?: 'enterprise' | 'bpo';
331
429
 
332
430
  updated_at?: string;
333
431
 
432
+ /**
433
+ * Your business's public website address, including https://. Leave blank if your
434
+ * business has no website.
435
+ */
334
436
  website?: string;
335
437
  }
336
438
 
@@ -368,16 +470,30 @@ export interface NumberReputationPaginationMeta {
368
470
  }
369
471
 
370
472
  export interface OrganizationContact {
473
+ /**
474
+ * The email address of the main person Telnyx should contact about this account.
475
+ * For a call center (BPO) account this is the email you will verify later, so use
476
+ * a mailbox you can access.
477
+ */
371
478
  email: string;
372
479
 
480
+ /**
481
+ * The first name of the main person Telnyx should contact about this account.
482
+ */
373
483
  first_name: string;
374
484
 
485
+ /**
486
+ * The job title of the main person Telnyx should contact about this account.
487
+ */
375
488
  job_title: string;
376
489
 
490
+ /**
491
+ * The last name of the main person Telnyx should contact about this account.
492
+ */
377
493
  last_name: string;
378
494
 
379
495
  /**
380
- * E.164 format with leading `+`.
496
+ * The phone number of the main contact, in E.164 format, for example +12125551234.
381
497
  */
382
498
  phone_number: string;
383
499
  }
@@ -388,6 +504,9 @@ export interface PhysicalAddress {
388
504
  */
389
505
  administrative_area: string;
390
506
 
507
+ /**
508
+ * The city of your registered business address.
509
+ */
391
510
  city: string;
392
511
 
393
512
  /**
@@ -395,10 +514,21 @@ export interface PhysicalAddress {
395
514
  */
396
515
  country: string;
397
516
 
517
+ /**
518
+ * The postal or ZIP code of your registered business address.
519
+ */
398
520
  postal_code: string;
399
521
 
522
+ /**
523
+ * The street address of your registered business, including the building number
524
+ * and street name.
525
+ */
400
526
  street_address: string;
401
527
 
528
+ /**
529
+ * An optional second address line, such as a suite, unit, or floor. Leave blank if
530
+ * it does not apply.
531
+ */
402
532
  extended_address?: string | null;
403
533
  }
404
534
 
@@ -408,6 +538,12 @@ export interface EnterpriseListParams extends DefaultFlatPaginationParams {
408
538
  */
409
539
  'filter[legal_name][contains]'?: string;
410
540
 
541
+ /**
542
+ * Only return enterprises of this type: `bpo` for call-center (BPO) enterprises,
543
+ * `enterprise` for normal enterprises. Omit to return both.
544
+ */
545
+ 'filter[role_type]'?: 'enterprise' | 'bpo';
546
+
411
547
  /**
412
548
  * Filter by legal name (partial match).
413
549
  */
@@ -424,6 +560,11 @@ export interface EnterpriseCreateParams {
424
560
  */
425
561
  country_code: string;
426
562
 
563
+ /**
564
+ * The trade name your business operates under if it is different from your legal
565
+ * name, also called a Doing Business As (DBA) name. Leave blank if you only use
566
+ * your legal name.
567
+ */
427
568
  doing_business_as: string;
428
569
 
429
570
  /**
@@ -432,7 +573,8 @@ export interface EnterpriseCreateParams {
432
573
  fein: string;
433
574
 
434
575
  /**
435
- * Industry classification.
576
+ * The industry your business operates in. Choose the closest match from the list;
577
+ * if your value is not accepted, pick the nearest category.
436
578
  */
437
579
  industry:
438
580
  | 'accounting'
@@ -479,10 +621,15 @@ export interface EnterpriseCreateParams {
479
621
  | 'hospitality'
480
622
  | 'hotel';
481
623
 
624
+ /**
625
+ * The state, province, or country where your business was legally incorporated,
626
+ * for example Delaware.
627
+ */
482
628
  jurisdiction_of_incorporation: string;
483
629
 
484
630
  /**
485
- * Legal name of the enterprise.
631
+ * Your business's full registered legal name, exactly as it appears on your
632
+ * incorporation or tax documents, 3 to 64 characters.
486
633
  */
487
634
  legal_name: string;
488
635
 
@@ -520,37 +667,54 @@ export interface EnterpriseCreateParams {
520
667
  */
521
668
  organization_type: 'commercial' | 'government' | 'non_profit';
522
669
 
670
+ /**
671
+ * Your business's public website address, including https://. Leave blank if your
672
+ * business has no website.
673
+ */
523
674
  website: string;
524
675
 
525
676
  /**
526
- * Optional corporate-registration / company-number identifier.
677
+ * The official number your company received when it was legally registered or
678
+ * incorporated (for example from your state or national business registry). It is
679
+ * on your certificate of incorporation.
527
680
  */
528
681
  corporate_registration_number?: string | null;
529
682
 
530
683
  /**
531
- * Optional free-form string the caller can attach for their own bookkeeping.
532
- * Telnyx does not interpret it.
684
+ * Your own label for this account. Enter any reference that helps you find it in
685
+ * your records. Telnyx does not use it during vetting.
533
686
  */
534
687
  customer_reference?: string;
535
688
 
536
689
  /**
537
- * Optional D-U-N-S Number.
690
+ * Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
691
+ * identifier for your business. Leave blank if you do not have one.
538
692
  */
539
693
  dun_bradstreet_number?: string | null;
540
694
 
541
695
  /**
542
- * Optional SIC code for the primary line of business.
696
+ * The 4-digit Standard Industrial Classification code for your main line of
697
+ * business, which tells us what industry you operate in. Look it up in the SIC
698
+ * code directory if you are unsure.
543
699
  */
544
700
  primary_business_domain_sic_code?: string | null;
545
701
 
546
702
  /**
547
- * Optional professional-license number for regulated industries.
703
+ * If your business operates under a professional license (for example legal,
704
+ * medical, or financial services), enter the license number issued by the
705
+ * licensing authority. Leave blank if it does not apply.
548
706
  */
549
707
  professional_license_number?: string | null;
550
708
 
551
709
  /**
552
- * `enterprise` for an organization registering its own DIRs; `bpo` for a Business
553
- * Process Outsourcer placing calls on behalf of one or more enterprises.
710
+ * `enterprise` for an organization registering its own DIRs (the default, and the
711
+ * right choice when the calls display your own brand). `bpo` for a Business
712
+ * Process Outsourcer: a call center that places calls on behalf of other
713
+ * enterprises and displays their brand. A `bpo` enterprise describes the call
714
+ * center itself and cannot own a DIR. Each client the call center calls for gets
715
+ * its own `enterprise` in the same account, with the client's DIR under it; that
716
+ * DIR is then linked to the `bpo` enterprise through `bpo_authorizations`. Fixed
717
+ * at creation.
554
718
  */
555
719
  role_type?: 'enterprise' | 'bpo';
556
720
  }
@@ -560,16 +724,41 @@ export interface EnterpriseUpdateParams {
560
724
 
561
725
  billing_contact?: BillingContact;
562
726
 
727
+ /**
728
+ * The official number your company received when it was legally registered or
729
+ * incorporated (for example from your state or national business registry). It is
730
+ * on your certificate of incorporation.
731
+ */
563
732
  corporate_registration_number?: string | null;
564
733
 
734
+ /**
735
+ * Your own label for this account. Enter any reference that helps you find it in
736
+ * your records. Telnyx does not use it during vetting.
737
+ */
565
738
  customer_reference?: string;
566
739
 
740
+ /**
741
+ * The trade name your business operates under if it is different from your legal
742
+ * name, also called a Doing Business As (DBA) name. Leave blank if you only use
743
+ * your legal name.
744
+ */
567
745
  doing_business_as?: string;
568
746
 
747
+ /**
748
+ * Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
749
+ * identifier for your business. Leave blank if you do not have one.
750
+ */
569
751
  dun_bradstreet_number?: string | null;
570
752
 
753
+ /**
754
+ * US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
755
+ */
571
756
  fein?: string;
572
757
 
758
+ /**
759
+ * The industry your business operates in. Choose the closest match from the list;
760
+ * if your value is not accepted, pick the nearest category.
761
+ */
573
762
  industry?:
574
763
  | 'accounting'
575
764
  | 'finance'
@@ -616,32 +805,64 @@ export interface EnterpriseUpdateParams {
616
805
  | 'hotel';
617
806
 
618
807
  /**
619
- * Updated state/province/country of incorporation. Optional on update.
808
+ * The state, province, or country where your business was legally incorporated,
809
+ * for example Delaware.
620
810
  */
621
811
  jurisdiction_of_incorporation?: string;
622
812
 
623
813
  /**
624
- * Legal name of the enterprise.
814
+ * Your business's full registered legal name, exactly as it appears on your
815
+ * incorporation or tax documents, 3 to 64 characters.
625
816
  */
626
817
  legal_name?: string;
627
818
 
819
+ /**
820
+ * Approximate headcount range. Used for vetting heuristics; pick the bucket that
821
+ * contains your current employee count.
822
+ */
628
823
  number_of_employees?: string;
629
824
 
630
825
  organization_contact?: OrganizationContact;
631
826
 
827
+ /**
828
+ * Legal-entity form. Pick the form that matches your incorporation documents:
829
+ *
830
+ * - `corporation` - C-corp or S-corp.
831
+ * - `llc` - limited liability company.
832
+ * - `partnership` - general/limited partnership.
833
+ * - `nonprofit` - non-profit corporation, charitable trust, or
834
+ * 501(c)(3)/equivalent.
835
+ * - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
836
+ * You may be asked for additional documents during vetting.
837
+ */
632
838
  organization_legal_type?: string;
633
839
 
634
840
  organization_physical_address?: PhysicalAddress;
635
841
 
842
+ /**
843
+ * The 4-digit Standard Industrial Classification code for your main line of
844
+ * business, which tells us what industry you operate in. Look it up in the SIC
845
+ * code directory if you are unsure.
846
+ */
636
847
  primary_business_domain_sic_code?: string | null;
637
848
 
849
+ /**
850
+ * If your business operates under a professional license (for example legal,
851
+ * medical, or financial services), enter the license number issued by the
852
+ * licensing authority. Leave blank if it does not apply.
853
+ */
638
854
  professional_license_number?: string | null;
639
855
 
856
+ /**
857
+ * Your business's public website address, including https://. Leave blank if your
858
+ * business has no website.
859
+ */
640
860
  website?: string;
641
861
  }
642
862
 
643
863
  Enterprises.Reputation = Reputation;
644
864
  Enterprises.Dir = Dir;
865
+ Enterprises.VerifyEmail = VerifyEmail;
645
866
 
646
867
  export declare namespace Enterprises {
647
868
  export {
@@ -667,4 +888,10 @@ export declare namespace Enterprises {
667
888
  };
668
889
 
669
890
  export { Dir as Dir, type DirListParams as DirListParams, type DirCreateParams as DirCreateParams };
891
+
892
+ export {
893
+ VerifyEmail as VerifyEmail,
894
+ type EnterpriseEmailVerificationStatusWrapped as EnterpriseEmailVerificationStatusWrapped,
895
+ type VerifyEmailConfirmParams as VerifyEmailConfirmParams,
896
+ };
670
897
  }
@@ -22,3 +22,8 @@ export {
22
22
  type ReputationEnableParams,
23
23
  type ReputationUpdateFrequencyParams,
24
24
  } from './reputation/index';
25
+ export {
26
+ VerifyEmail,
27
+ type EnterpriseEmailVerificationStatusWrapped,
28
+ type VerifyEmailConfirmParams,
29
+ } from './verify-email';
@@ -75,28 +75,70 @@ export class Loa extends APIResource {
75
75
  * when the enterprise works directly with Telnyx.
76
76
  */
77
77
  export interface AgentInput {
78
+ /**
79
+ * The state or province of the partner's address, as its code, for example IL or
80
+ * ON.
81
+ */
78
82
  administrative_area: string;
79
83
 
84
+ /**
85
+ * The city of the partner's address.
86
+ */
80
87
  city: string;
81
88
 
89
+ /**
90
+ * The email address of the contact person at the partner.
91
+ */
82
92
  contact_email: string;
83
93
 
94
+ /**
95
+ * The name of a contact person at the partner.
96
+ */
84
97
  contact_name: string;
85
98
 
99
+ /**
100
+ * The phone number of the contact person at the partner, in E.164 format, for
101
+ * example +13125550000.
102
+ */
86
103
  contact_phone: string;
87
104
 
105
+ /**
106
+ * The job title of the contact person at the partner.
107
+ */
88
108
  contact_title: string;
89
109
 
110
+ /**
111
+ * The two-letter country code of the partner's address, for example US.
112
+ */
90
113
  country: string;
91
114
 
115
+ /**
116
+ * The legal name of the third-party partner or reseller managing these numbers on
117
+ * your behalf.
118
+ */
92
119
  legal_name: string;
93
120
 
121
+ /**
122
+ * The postal or ZIP code of the partner's address.
123
+ */
94
124
  postal_code: string;
95
125
 
126
+ /**
127
+ * The street address of the partner, including the building number and street
128
+ * name.
129
+ */
96
130
  street_address: string;
97
131
 
132
+ /**
133
+ * The trade name (Doing Business As) the partner operates under, if different from
134
+ * its legal name. Leave blank if it does not apply.
135
+ */
98
136
  dba?: string | null;
99
137
 
138
+ /**
139
+ * An optional second address line for the partner, such as a suite, unit, or
140
+ * floor. Leave blank if it does not apply.
141
+ */
100
142
  extended_address?: string | null;
101
143
  }
102
144
 
@@ -114,7 +156,7 @@ export interface LoaRenderParams {
114
156
  * Third-party reseller / partner managing the enterprise's phone numbers. Omit
115
157
  * when the enterprise works directly with Telnyx.
116
158
  */
117
- agent?: AgentInput;
159
+ agent?: LoaRenderParams.Agent;
118
160
 
119
161
  /**
120
162
  * Optional signature embedded in the rendered PDF. When omitted the PDF is
@@ -124,6 +166,36 @@ export interface LoaRenderParams {
124
166
  }
125
167
 
126
168
  export namespace LoaRenderParams {
169
+ /**
170
+ * Third-party reseller / partner managing the enterprise's phone numbers. Omit
171
+ * when the enterprise works directly with Telnyx.
172
+ */
173
+ export interface Agent {
174
+ administrative_area: string;
175
+
176
+ city: string;
177
+
178
+ contact_email: string;
179
+
180
+ contact_name: string;
181
+
182
+ contact_phone: string;
183
+
184
+ contact_title: string;
185
+
186
+ country: string;
187
+
188
+ legal_name: string;
189
+
190
+ postal_code: string;
191
+
192
+ street_address: string;
193
+
194
+ dba?: string | null;
195
+
196
+ extended_address?: string | null;
197
+ }
198
+
127
199
  /**
128
200
  * Optional signature embedded in the rendered PDF. When omitted the PDF is
129
201
  * returned unsigned for the customer to sign and upload.