telnyx 7.24.0 → 7.26.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 (536) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +27 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +27 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +21 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +16 -6
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +16 -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 +551 -33
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +551 -33
  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 +48 -0
  44. package/resources/ai/assistants/versions.d.mts.map +1 -1
  45. package/resources/ai/assistants/versions.d.ts +48 -0
  46. package/resources/ai/assistants/versions.d.ts.map +1 -1
  47. package/resources/ai/avatars.d.mts +187 -0
  48. package/resources/ai/avatars.d.mts.map +1 -0
  49. package/resources/ai/avatars.d.ts +187 -0
  50. package/resources/ai/avatars.d.ts.map +1 -0
  51. package/resources/ai/avatars.js +93 -0
  52. package/resources/ai/avatars.js.map +1 -0
  53. package/resources/ai/avatars.mjs +89 -0
  54. package/resources/ai/avatars.mjs.map +1 -0
  55. package/resources/ai/chat.d.mts +21 -2
  56. package/resources/ai/chat.d.mts.map +1 -1
  57. package/resources/ai/chat.d.ts +21 -2
  58. package/resources/ai/chat.d.ts.map +1 -1
  59. package/resources/ai/conversations/conversations.d.mts +8 -0
  60. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  61. package/resources/ai/conversations/conversations.d.ts +8 -0
  62. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  63. package/resources/ai/conversations/conversations.js.map +1 -1
  64. package/resources/ai/conversations/conversations.mjs.map +1 -1
  65. package/resources/ai/embeddings/embeddings.d.mts +1 -1
  66. package/resources/ai/embeddings/embeddings.d.ts +1 -1
  67. package/resources/ai/embeddings/embeddings.js +1 -1
  68. package/resources/ai/embeddings/embeddings.mjs +1 -1
  69. package/resources/ai/index.d.mts +3 -2
  70. package/resources/ai/index.d.mts.map +1 -1
  71. package/resources/ai/index.d.ts +3 -2
  72. package/resources/ai/index.d.ts.map +1 -1
  73. package/resources/ai/index.js +3 -1
  74. package/resources/ai/index.js.map +1 -1
  75. package/resources/ai/index.mjs +1 -0
  76. package/resources/ai/index.mjs.map +1 -1
  77. package/resources/ai/memory/index.d.mts +1 -1
  78. package/resources/ai/memory/index.d.mts.map +1 -1
  79. package/resources/ai/memory/index.d.ts +1 -1
  80. package/resources/ai/memory/index.d.ts.map +1 -1
  81. package/resources/ai/memory/index.js.map +1 -1
  82. package/resources/ai/memory/index.mjs +1 -1
  83. package/resources/ai/memory/index.mjs.map +1 -1
  84. package/resources/ai/memory/memory.d.mts +2 -2
  85. package/resources/ai/memory/memory.d.mts.map +1 -1
  86. package/resources/ai/memory/memory.d.ts +2 -2
  87. package/resources/ai/memory/memory.d.ts.map +1 -1
  88. package/resources/ai/memory/memory.js.map +1 -1
  89. package/resources/ai/memory/memory.mjs +1 -1
  90. package/resources/ai/memory/memory.mjs.map +1 -1
  91. package/resources/ai/memory/namespaces/index.d.mts +2 -2
  92. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  93. package/resources/ai/memory/namespaces/index.d.ts +2 -2
  94. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  95. package/resources/ai/memory/namespaces/index.js.map +1 -1
  96. package/resources/ai/memory/namespaces/index.mjs +1 -1
  97. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  98. package/resources/ai/memory/namespaces/namespaces.d.mts +62 -6
  99. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  100. package/resources/ai/memory/namespaces/namespaces.d.ts +62 -6
  101. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  102. package/resources/ai/memory/namespaces/namespaces.js +41 -3
  103. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  104. package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
  105. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  106. package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
  107. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
  108. package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
  109. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
  110. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
  111. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
  112. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
  113. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  114. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
  115. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  116. package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
  117. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  118. package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
  119. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  120. package/resources/ai/openai/chat.d.mts +21 -2
  121. package/resources/ai/openai/chat.d.mts.map +1 -1
  122. package/resources/ai/openai/chat.d.ts +21 -2
  123. package/resources/ai/openai/chat.d.ts.map +1 -1
  124. package/resources/ai/tools.d.mts +20 -5
  125. package/resources/ai/tools.d.mts.map +1 -1
  126. package/resources/ai/tools.d.ts +20 -5
  127. package/resources/ai/tools.d.ts.map +1 -1
  128. package/resources/ai/tools.js +5 -2
  129. package/resources/ai/tools.js.map +1 -1
  130. package/resources/ai/tools.mjs +5 -2
  131. package/resources/ai/tools.mjs.map +1 -1
  132. package/resources/calls/actions.d.mts +135 -30
  133. package/resources/calls/actions.d.mts.map +1 -1
  134. package/resources/calls/actions.d.ts +135 -30
  135. package/resources/calls/actions.d.ts.map +1 -1
  136. package/resources/calls/actions.js +31 -0
  137. package/resources/calls/actions.js.map +1 -1
  138. package/resources/calls/actions.mjs +31 -0
  139. package/resources/calls/actions.mjs.map +1 -1
  140. package/resources/calls/calls.d.mts +72 -25
  141. package/resources/calls/calls.d.mts.map +1 -1
  142. package/resources/calls/calls.d.ts +72 -25
  143. package/resources/calls/calls.d.ts.map +1 -1
  144. package/resources/calls/calls.js +11 -0
  145. package/resources/calls/calls.js.map +1 -1
  146. package/resources/calls/calls.mjs +11 -0
  147. package/resources/calls/calls.mjs.map +1 -1
  148. package/resources/calls/index.d.mts +1 -1
  149. package/resources/calls/index.d.mts.map +1 -1
  150. package/resources/calls/index.d.ts +1 -1
  151. package/resources/calls/index.d.ts.map +1 -1
  152. package/resources/calls/index.js.map +1 -1
  153. package/resources/calls/index.mjs.map +1 -1
  154. package/resources/dir/dir.d.mts +226 -31
  155. package/resources/dir/dir.d.mts.map +1 -1
  156. package/resources/dir/dir.d.ts +226 -31
  157. package/resources/dir/dir.d.ts.map +1 -1
  158. package/resources/dir/dir.js +78 -14
  159. package/resources/dir/dir.js.map +1 -1
  160. package/resources/dir/dir.mjs +78 -14
  161. package/resources/dir/dir.mjs.map +1 -1
  162. package/resources/dir/index.d.mts +1 -1
  163. package/resources/dir/index.d.mts.map +1 -1
  164. package/resources/dir/index.d.ts +1 -1
  165. package/resources/dir/index.d.ts.map +1 -1
  166. package/resources/dir/index.js.map +1 -1
  167. package/resources/dir/index.mjs.map +1 -1
  168. package/resources/dir/phone-numbers.d.mts +8 -8
  169. package/resources/dir/phone-numbers.d.mts.map +1 -1
  170. package/resources/dir/phone-numbers.d.ts +8 -8
  171. package/resources/dir/phone-numbers.d.ts.map +1 -1
  172. package/resources/dir/phone-numbers.js +4 -4
  173. package/resources/dir/phone-numbers.mjs +4 -4
  174. package/resources/dir/references.d.mts +9 -6
  175. package/resources/dir/references.d.mts.map +1 -1
  176. package/resources/dir/references.d.ts +9 -6
  177. package/resources/dir/references.d.ts.map +1 -1
  178. package/resources/email-templates.d.mts +109 -18
  179. package/resources/email-templates.d.mts.map +1 -1
  180. package/resources/email-templates.d.ts +109 -18
  181. package/resources/email-templates.d.ts.map +1 -1
  182. package/resources/email-templates.js +5 -1
  183. package/resources/email-templates.js.map +1 -1
  184. package/resources/email-templates.mjs +5 -1
  185. package/resources/email-templates.mjs.map +1 -1
  186. package/resources/enterprises/dir.d.mts +25 -3
  187. package/resources/enterprises/dir.d.mts.map +1 -1
  188. package/resources/enterprises/dir.d.ts +25 -3
  189. package/resources/enterprises/dir.d.ts.map +1 -1
  190. package/resources/enterprises/dir.js +8 -2
  191. package/resources/enterprises/dir.js.map +1 -1
  192. package/resources/enterprises/dir.mjs +8 -2
  193. package/resources/enterprises/dir.mjs.map +1 -1
  194. package/resources/enterprises/enterprises.d.mts +244 -28
  195. package/resources/enterprises/enterprises.d.mts.map +1 -1
  196. package/resources/enterprises/enterprises.d.ts +244 -28
  197. package/resources/enterprises/enterprises.d.ts.map +1 -1
  198. package/resources/enterprises/enterprises.js +31 -7
  199. package/resources/enterprises/enterprises.js.map +1 -1
  200. package/resources/enterprises/enterprises.mjs +31 -7
  201. package/resources/enterprises/enterprises.mjs.map +1 -1
  202. package/resources/enterprises/index.d.mts +2 -1
  203. package/resources/enterprises/index.d.mts.map +1 -1
  204. package/resources/enterprises/index.d.ts +2 -1
  205. package/resources/enterprises/index.d.ts.map +1 -1
  206. package/resources/enterprises/index.js +3 -1
  207. package/resources/enterprises/index.js.map +1 -1
  208. package/resources/enterprises/index.mjs +1 -0
  209. package/resources/enterprises/index.mjs.map +1 -1
  210. package/resources/enterprises/reputation/external-verification.d.mts +94 -0
  211. package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
  212. package/resources/enterprises/reputation/external-verification.d.ts +94 -0
  213. package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
  214. package/resources/enterprises/reputation/external-verification.js +54 -0
  215. package/resources/enterprises/reputation/external-verification.js.map +1 -0
  216. package/resources/enterprises/reputation/external-verification.mjs +50 -0
  217. package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
  218. package/resources/enterprises/reputation/index.d.mts +3 -2
  219. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  220. package/resources/enterprises/reputation/index.d.ts +3 -2
  221. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  222. package/resources/enterprises/reputation/index.js +3 -1
  223. package/resources/enterprises/reputation/index.js.map +1 -1
  224. package/resources/enterprises/reputation/index.mjs +1 -0
  225. package/resources/enterprises/reputation/index.mjs.map +1 -1
  226. package/resources/enterprises/reputation/loa.d.mts +64 -3
  227. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  228. package/resources/enterprises/reputation/loa.d.ts +64 -3
  229. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  230. package/resources/enterprises/reputation/numbers.d.mts +197 -4
  231. package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
  232. package/resources/enterprises/reputation/numbers.d.ts +197 -4
  233. package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
  234. package/resources/enterprises/reputation/numbers.js +58 -2
  235. package/resources/enterprises/reputation/numbers.js.map +1 -1
  236. package/resources/enterprises/reputation/numbers.mjs +58 -2
  237. package/resources/enterprises/reputation/numbers.mjs.map +1 -1
  238. package/resources/enterprises/reputation/remediation.d.mts +3 -2
  239. package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
  240. package/resources/enterprises/reputation/remediation.d.ts +3 -2
  241. package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
  242. package/resources/enterprises/reputation/reputation.d.mts +39 -3
  243. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  244. package/resources/enterprises/reputation/reputation.d.ts +39 -3
  245. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  246. package/resources/enterprises/reputation/reputation.js +22 -0
  247. package/resources/enterprises/reputation/reputation.js.map +1 -1
  248. package/resources/enterprises/reputation/reputation.mjs +22 -0
  249. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  250. package/resources/enterprises/verify-email.d.mts +91 -0
  251. package/resources/enterprises/verify-email.d.mts.map +1 -0
  252. package/resources/enterprises/verify-email.d.ts +91 -0
  253. package/resources/enterprises/verify-email.d.ts.map +1 -0
  254. package/resources/enterprises/verify-email.js +55 -0
  255. package/resources/enterprises/verify-email.js.map +1 -0
  256. package/resources/enterprises/verify-email.mjs +51 -0
  257. package/resources/enterprises/verify-email.mjs.map +1 -0
  258. package/resources/global-ip-assignment-health.d.mts +4 -4
  259. package/resources/global-ip-assignment-health.d.mts.map +1 -1
  260. package/resources/global-ip-assignment-health.d.ts +4 -4
  261. package/resources/global-ip-assignment-health.d.ts.map +1 -1
  262. package/resources/global-ip-assignments-usage.d.mts +4 -4
  263. package/resources/global-ip-assignments-usage.d.mts.map +1 -1
  264. package/resources/global-ip-assignments-usage.d.ts +4 -4
  265. package/resources/global-ip-assignments-usage.d.ts.map +1 -1
  266. package/resources/index.d.mts +6 -3
  267. package/resources/index.d.mts.map +1 -1
  268. package/resources/index.d.ts +6 -3
  269. package/resources/index.d.ts.map +1 -1
  270. package/resources/index.js +9 -3
  271. package/resources/index.js.map +1 -1
  272. package/resources/index.mjs +3 -0
  273. package/resources/index.mjs.map +1 -1
  274. package/resources/infringement-claims.d.mts +4 -0
  275. package/resources/infringement-claims.d.mts.map +1 -1
  276. package/resources/infringement-claims.d.ts +4 -0
  277. package/resources/infringement-claims.d.ts.map +1 -1
  278. package/resources/llm-token-gateway/index.d.mts +6 -0
  279. package/resources/llm-token-gateway/index.d.mts.map +1 -0
  280. package/resources/llm-token-gateway/index.d.ts +6 -0
  281. package/resources/llm-token-gateway/index.d.ts.map +1 -0
  282. package/resources/llm-token-gateway/index.js +15 -0
  283. package/resources/llm-token-gateway/index.js.map +1 -0
  284. package/resources/llm-token-gateway/index.mjs +7 -0
  285. package/resources/llm-token-gateway/index.mjs.map +1 -0
  286. package/resources/llm-token-gateway/llm-token-gateway.d.mts +22 -0
  287. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
  288. package/resources/llm-token-gateway/llm-token-gateway.d.ts +22 -0
  289. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
  290. package/resources/llm-token-gateway/llm-token-gateway.js +29 -0
  291. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
  292. package/resources/llm-token-gateway/llm-token-gateway.mjs +24 -0
  293. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
  294. package/resources/llm-token-gateway/spend.d.mts +223 -0
  295. package/resources/llm-token-gateway/spend.d.mts.map +1 -0
  296. package/resources/llm-token-gateway/spend.d.ts +223 -0
  297. package/resources/llm-token-gateway/spend.d.ts.map +1 -0
  298. package/resources/llm-token-gateway/spend.js +56 -0
  299. package/resources/llm-token-gateway/spend.js.map +1 -0
  300. package/resources/llm-token-gateway/spend.mjs +52 -0
  301. package/resources/llm-token-gateway/spend.mjs.map +1 -0
  302. package/resources/llm-token-gateway/token-groups.d.mts +577 -0
  303. package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
  304. package/resources/llm-token-gateway/token-groups.d.ts +577 -0
  305. package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
  306. package/resources/llm-token-gateway/token-groups.js +139 -0
  307. package/resources/llm-token-gateway/token-groups.js.map +1 -0
  308. package/resources/llm-token-gateway/token-groups.mjs +135 -0
  309. package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
  310. package/resources/llm-token-gateway/token-keys.d.mts +318 -0
  311. package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
  312. package/resources/llm-token-gateway/token-keys.d.ts +318 -0
  313. package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
  314. package/resources/llm-token-gateway/token-keys.js +127 -0
  315. package/resources/llm-token-gateway/token-keys.js.map +1 -0
  316. package/resources/llm-token-gateway/token-keys.mjs +123 -0
  317. package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
  318. package/resources/llm-token-gateway/usage.d.mts +319 -0
  319. package/resources/llm-token-gateway/usage.d.mts.map +1 -0
  320. package/resources/llm-token-gateway/usage.d.ts +319 -0
  321. package/resources/llm-token-gateway/usage.d.ts.map +1 -0
  322. package/resources/llm-token-gateway/usage.js +63 -0
  323. package/resources/llm-token-gateway/usage.js.map +1 -0
  324. package/resources/llm-token-gateway/usage.mjs +59 -0
  325. package/resources/llm-token-gateway/usage.mjs.map +1 -0
  326. package/resources/llm-token-gateway.d.mts +2 -0
  327. package/resources/llm-token-gateway.d.mts.map +1 -0
  328. package/resources/llm-token-gateway.d.ts +2 -0
  329. package/resources/llm-token-gateway.d.ts.map +1 -0
  330. package/resources/llm-token-gateway.js +6 -0
  331. package/resources/llm-token-gateway.js.map +1 -0
  332. package/resources/llm-token-gateway.mjs +3 -0
  333. package/resources/llm-token-gateway.mjs.map +1 -0
  334. package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
  335. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  336. package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
  337. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  338. package/resources/meeting-sessions/meeting-sessions.js +6 -6
  339. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  340. package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
  341. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  342. package/resources/phone-numbers/jobs.d.mts +17 -5
  343. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  344. package/resources/phone-numbers/jobs.d.ts +17 -5
  345. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  346. package/resources/phone-numbers/jobs.js +4 -3
  347. package/resources/phone-numbers/jobs.js.map +1 -1
  348. package/resources/phone-numbers/jobs.mjs +4 -3
  349. package/resources/phone-numbers/jobs.mjs.map +1 -1
  350. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  351. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  352. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  353. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  354. package/resources/porting-orders/porting-orders.d.mts +1 -1
  355. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  356. package/resources/porting-orders/porting-orders.d.ts +1 -1
  357. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  358. package/resources/porting-orders/porting-orders.js.map +1 -1
  359. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  360. package/resources/porting-phone-numbers.d.mts +1 -1
  361. package/resources/porting-phone-numbers.d.mts.map +1 -1
  362. package/resources/porting-phone-numbers.d.ts +1 -1
  363. package/resources/porting-phone-numbers.d.ts.map +1 -1
  364. package/resources/reputation/numbers.d.mts +10 -0
  365. package/resources/reputation/numbers.d.mts.map +1 -1
  366. package/resources/reputation/numbers.d.ts +10 -0
  367. package/resources/reputation/numbers.d.ts.map +1 -1
  368. package/resources/requirements.d.mts +2 -2
  369. package/resources/requirements.d.mts.map +1 -1
  370. package/resources/requirements.d.ts +2 -2
  371. package/resources/requirements.d.ts.map +1 -1
  372. package/resources/sip-registration-status.d.mts +149 -0
  373. package/resources/sip-registration-status.d.mts.map +1 -0
  374. package/resources/sip-registration-status.d.ts +149 -0
  375. package/resources/sip-registration-status.d.ts.map +1 -0
  376. package/resources/sip-registration-status.js +32 -0
  377. package/resources/sip-registration-status.js.map +1 -0
  378. package/resources/sip-registration-status.mjs +28 -0
  379. package/resources/sip-registration-status.mjs.map +1 -0
  380. package/resources/spend-limits.d.mts +335 -0
  381. package/resources/spend-limits.d.mts.map +1 -0
  382. package/resources/spend-limits.d.ts +335 -0
  383. package/resources/spend-limits.d.ts.map +1 -0
  384. package/resources/spend-limits.js +91 -0
  385. package/resources/spend-limits.js.map +1 -0
  386. package/resources/spend-limits.mjs +87 -0
  387. package/resources/spend-limits.mjs.map +1 -0
  388. package/resources/terms-of-service/agreements.d.mts +12 -0
  389. package/resources/terms-of-service/agreements.d.mts.map +1 -1
  390. package/resources/terms-of-service/agreements.d.ts +12 -0
  391. package/resources/terms-of-service/agreements.d.ts.map +1 -1
  392. package/resources/terms-of-service/terms-of-service.d.mts +15 -0
  393. package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
  394. package/resources/terms-of-service/terms-of-service.d.ts +15 -0
  395. package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
  396. package/resources/terms-of-service/terms-of-service.js.map +1 -1
  397. package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
  398. package/resources/texml/texml.d.mts +7 -3
  399. package/resources/texml/texml.d.mts.map +1 -1
  400. package/resources/texml/texml.d.ts +7 -3
  401. package/resources/texml/texml.d.ts.map +1 -1
  402. package/resources/texml/texml.js +4 -2
  403. package/resources/texml/texml.js.map +1 -1
  404. package/resources/texml/texml.mjs +4 -2
  405. package/resources/texml/texml.mjs.map +1 -1
  406. package/resources/text-to-speech/text-to-speech.d.mts +4 -2
  407. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  408. package/resources/text-to-speech/text-to-speech.d.ts +4 -2
  409. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  410. package/resources/webhooks.d.mts +967 -6
  411. package/resources/webhooks.d.mts.map +1 -1
  412. package/resources/webhooks.d.ts +967 -6
  413. package/resources/webhooks.d.ts.map +1 -1
  414. package/resources/webhooks.js.map +1 -1
  415. package/resources/webhooks.mjs.map +1 -1
  416. package/resources/whatsapp/index.d.mts +1 -0
  417. package/resources/whatsapp/index.d.mts.map +1 -1
  418. package/resources/whatsapp/index.d.ts +1 -0
  419. package/resources/whatsapp/index.d.ts.map +1 -1
  420. package/resources/whatsapp/index.js +3 -1
  421. package/resources/whatsapp/index.js.map +1 -1
  422. package/resources/whatsapp/index.mjs +1 -0
  423. package/resources/whatsapp/index.mjs.map +1 -1
  424. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +90 -0
  425. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
  426. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +90 -0
  427. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
  428. package/resources/whatsapp/phone-numbers/calling-routing.js +66 -0
  429. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
  430. package/resources/whatsapp/phone-numbers/calling-routing.mjs +62 -0
  431. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
  432. package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
  433. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  434. package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
  435. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  436. package/resources/whatsapp/phone-numbers/index.js +3 -1
  437. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  438. package/resources/whatsapp/phone-numbers/index.mjs +1 -0
  439. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  440. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
  441. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  442. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
  443. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  444. package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
  445. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  446. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
  447. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  448. package/resources/whatsapp/signup.d.mts +128 -0
  449. package/resources/whatsapp/signup.d.mts.map +1 -0
  450. package/resources/whatsapp/signup.d.ts +128 -0
  451. package/resources/whatsapp/signup.d.ts.map +1 -0
  452. package/resources/whatsapp/signup.js +42 -0
  453. package/resources/whatsapp/signup.js.map +1 -0
  454. package/resources/whatsapp/signup.mjs +38 -0
  455. package/resources/whatsapp/signup.mjs.map +1 -0
  456. package/resources/whatsapp/whatsapp.d.mts +4 -0
  457. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  458. package/resources/whatsapp/whatsapp.d.ts +4 -0
  459. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  460. package/resources/whatsapp/whatsapp.js +4 -0
  461. package/resources/whatsapp/whatsapp.js.map +1 -1
  462. package/resources/whatsapp/whatsapp.mjs +4 -0
  463. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  464. package/src/client.ts +83 -0
  465. package/src/resources/ai/ai.ts +48 -4
  466. package/src/resources/ai/assistants/assistants.ts +676 -33
  467. package/src/resources/ai/assistants/deleted.ts +86 -0
  468. package/src/resources/ai/assistants/index.ts +13 -0
  469. package/src/resources/ai/assistants/versions.ts +54 -0
  470. package/src/resources/ai/avatars.ts +238 -0
  471. package/src/resources/ai/chat.ts +21 -2
  472. package/src/resources/ai/conversations/conversations.ts +9 -0
  473. package/src/resources/ai/embeddings/embeddings.ts +1 -1
  474. package/src/resources/ai/index.ts +18 -1
  475. package/src/resources/ai/memory/index.ts +9 -1
  476. package/src/resources/ai/memory/memory.ts +13 -1
  477. package/src/resources/ai/memory/namespaces/index.ts +11 -1
  478. package/src/resources/ai/memory/namespaces/namespaces.ts +85 -3
  479. package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
  480. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
  481. package/src/resources/ai/openai/chat.ts +21 -2
  482. package/src/resources/ai/tools.ts +25 -7
  483. package/src/resources/calls/actions.ts +141 -25
  484. package/src/resources/calls/calls.ts +73 -17
  485. package/src/resources/calls/index.ts +1 -0
  486. package/src/resources/dir/dir.ts +269 -35
  487. package/src/resources/dir/index.ts +6 -0
  488. package/src/resources/dir/phone-numbers.ts +9 -10
  489. package/src/resources/dir/references.ts +9 -6
  490. package/src/resources/email-templates.ts +121 -19
  491. package/src/resources/enterprises/dir.ts +27 -3
  492. package/src/resources/enterprises/enterprises.ts +257 -26
  493. package/src/resources/enterprises/index.ts +6 -0
  494. package/src/resources/enterprises/reputation/external-verification.ts +125 -0
  495. package/src/resources/enterprises/reputation/index.ts +12 -0
  496. package/src/resources/enterprises/reputation/loa.ts +76 -3
  497. package/src/resources/enterprises/reputation/numbers.ts +256 -3
  498. package/src/resources/enterprises/reputation/remediation.ts +3 -2
  499. package/src/resources/enterprises/reputation/reputation.ts +70 -0
  500. package/src/resources/enterprises/verify-email.ts +117 -0
  501. package/src/resources/global-ip-assignment-health.ts +4 -4
  502. package/src/resources/global-ip-assignments-usage.ts +4 -4
  503. package/src/resources/index.ts +31 -0
  504. package/src/resources/infringement-claims.ts +4 -0
  505. package/src/resources/llm-token-gateway/index.ts +41 -0
  506. package/src/resources/llm-token-gateway/llm-token-gateway.ts +101 -0
  507. package/src/resources/llm-token-gateway/spend.ts +309 -0
  508. package/src/resources/llm-token-gateway/token-groups.ts +724 -0
  509. package/src/resources/llm-token-gateway/token-keys.ts +422 -0
  510. package/src/resources/llm-token-gateway/usage.ts +460 -0
  511. package/src/resources/llm-token-gateway.ts +3 -0
  512. package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
  513. package/src/resources/phone-numbers/jobs.ts +18 -5
  514. package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
  515. package/src/resources/porting-orders/porting-orders.ts +9 -1
  516. package/src/resources/porting-phone-numbers.ts +9 -1
  517. package/src/resources/reputation/numbers.ts +12 -0
  518. package/src/resources/requirements.ts +2 -2
  519. package/src/resources/sip-registration-status.ts +188 -0
  520. package/src/resources/spend-limits.ts +428 -0
  521. package/src/resources/terms-of-service/agreements.ts +12 -0
  522. package/src/resources/terms-of-service/terms-of-service.ts +15 -0
  523. package/src/resources/texml/texml.ts +7 -3
  524. package/src/resources/text-to-speech/text-to-speech.ts +4 -2
  525. package/src/resources/webhooks.ts +1460 -228
  526. package/src/resources/whatsapp/index.ts +7 -0
  527. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +114 -0
  528. package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
  529. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
  530. package/src/resources/whatsapp/signup.ts +188 -0
  531. package/src/resources/whatsapp/whatsapp.ts +18 -0
  532. package/src/version.ts +1 -1
  533. package/version.d.mts +1 -1
  534. package/version.d.ts +1 -1
  535. package/version.js +1 -1
  536. package/version.mjs +1 -1
@@ -1,4 +1,5 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
+ import * as NumbersAPI from "./numbers.js";
2
3
  import * as Shared from "../../shared.js";
3
4
  import * as EnterprisesAPI from "../enterprises.js";
4
5
  import { APIPromise } from "../../../core/api-promise.js";
@@ -26,8 +27,9 @@ export declare class Numbers extends APIResource {
26
27
  list(enterpriseID: string, query?: NumberListParams | null | undefined, options?: RequestOptions): PagePromise<ReputationPhoneNumbersDefaultFlatPagination, ReputationPhoneNumber>;
27
28
  /**
28
29
  * Add up to 100 phone numbers to reputation monitoring on this enterprise. Each
29
- * must be in E.164 format (`+1NPANXXXXXX` for US/CA) and belong to your Telnyx
30
- * phone-number inventory.
30
+ * must be in E.164 format (`+1NPANXXXXXX` for US/CA). A number in your Telnyx
31
+ * phone-number inventory is accepted as `source: telnyx`; a number that is not is
32
+ * treated as hosted with another provider and must meet the requirements below.
31
33
  *
32
34
  * **Prerequisite**: reputation must already be enabled on this enterprise (see
33
35
  * `POST .../reputation`).
@@ -35,6 +37,14 @@ export declare class Numbers extends APIResource {
35
37
  * **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
36
38
  * for current pricing.
37
39
  *
40
+ * A phone number that is not in your Telnyx inventory is treated as a number
41
+ * hosted with another provider (`source: external`). It must be a US local number,
42
+ * and the enterprise's ownership proof must be approved first
43
+ * (`POST /enterprises/{enterprise_id}/reputation/external_verification`);
44
+ * otherwise the request fails with a 400 whose `detail` contains
45
+ * `external_verification_required`. Ownership of such numbers is checked every
46
+ * day.
47
+ *
38
48
  * @example
39
49
  * ```ts
40
50
  * const reputationPhoneNumberList =
@@ -94,20 +104,118 @@ export declare class Numbers extends APIResource {
94
104
  * ```
95
105
  */
96
106
  refresh(enterpriseID: string, body: NumberRefreshParams, options?: RequestOptions): APIPromise<NumberRefreshResponse>;
107
+ /**
108
+ * Get the ownership status of a phone number, when it was last checked, the
109
+ * carrier recorded as its baseline, and the history of ownership events.
110
+ *
111
+ * @example
112
+ * ```ts
113
+ * const response =
114
+ * await client.enterprises.reputation.numbers.retrieveOwnership(
115
+ * '+19493253498',
116
+ * {
117
+ * enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
118
+ * },
119
+ * );
120
+ * ```
121
+ */
122
+ retrieveOwnership(phoneNumber: string, params: NumberRetrieveOwnershipParams, options?: RequestOptions): APIPromise<NumberRetrieveOwnershipResponse>;
123
+ /**
124
+ * Answer an ownership question about a phone number hosted with another provider.
125
+ *
126
+ * Send `still_own: true` to confirm you still own a number whose
127
+ * `ownership_status` is `pending_confirmation` or `flagged`; its status returns to
128
+ * `verified` and, after a carrier change, the new carrier becomes the one on
129
+ * record.
130
+ *
131
+ * Send `still_own: false` to report that you no longer own the number. It is
132
+ * removed from Number Reputation immediately, whatever its current status, and the
133
+ * response shows it with `ownership_status: removed`.
134
+ *
135
+ * @example
136
+ * ```ts
137
+ * const reputationPhoneNumberWithReputation =
138
+ * await client.enterprises.reputation.numbers.ownershipConfirm(
139
+ * '+19493253498',
140
+ * {
141
+ * enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
142
+ * still_own: true,
143
+ * },
144
+ * );
145
+ * ```
146
+ */
147
+ ownershipConfirm(phoneNumber: string, params: NumberOwnershipConfirmParams, options?: RequestOptions): APIPromise<ReputationPhoneNumberWithReputation>;
97
148
  }
98
149
  export type ReputationPhoneNumbersDefaultFlatPagination = DefaultFlatPagination<ReputationPhoneNumber>;
150
+ /**
151
+ * Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
152
+ * `external`: a number you own that is hosted with another provider.
153
+ */
154
+ export type ReputationNumberSource = 'telnyx' | 'external';
155
+ /**
156
+ * Result of ongoing ownership checks. `verified`: the number is with the carrier
157
+ * on record. `pending_confirmation`: the number's carrier changed, or a periodic
158
+ * ownership re-verification is due; confirm you still own it before `confirm_by`.
159
+ * `flagged`: a periodic re-verification went unanswered; the number stays
160
+ * monitored and is not removed, but confirm ownership
161
+ * (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
162
+ * is no longer monitored; returned by `POST .../ownership_confirm` with
163
+ * `still_own: false`, and when listing numbers with
164
+ * `filter[ownership_status]=removed`.
165
+ */
166
+ export type ReputationOwnershipStatus = 'verified' | 'flagged' | 'pending_confirmation' | 'removed';
99
167
  export interface ReputationPhoneNumber {
100
168
  id?: string;
169
+ /**
170
+ * Deadline to confirm you still own the number. Set only while `ownership_status`
171
+ * is `pending_confirmation`.
172
+ */
173
+ confirm_by?: string | null;
101
174
  created_at?: string;
102
175
  enterprise_id?: string;
176
+ /**
177
+ * Why the number's ownership was flagged. `carrier_changed` when an ownership
178
+ * check found the number with a different carrier.
179
+ */
180
+ flag_reason?: string | null;
181
+ /**
182
+ * Result of ongoing ownership checks. `verified`: the number is with the carrier
183
+ * on record. `pending_confirmation`: the number's carrier changed, or a periodic
184
+ * ownership re-verification is due; confirm you still own it before `confirm_by`.
185
+ * `flagged`: a periodic re-verification went unanswered; the number stays
186
+ * monitored and is not removed, but confirm ownership
187
+ * (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
188
+ * is no longer monitored; returned by `POST .../ownership_confirm` with
189
+ * `still_own: false`, and when listing numbers with
190
+ * `filter[ownership_status]=removed`.
191
+ */
192
+ ownership_status?: ReputationOwnershipStatus;
103
193
  /**
104
194
  * E.164 with leading `+`.
105
195
  */
106
196
  phone_number?: string;
107
197
  /**
108
- * `null` until the first refresh has been collected for this number.
198
+ * Why a number was removed. `ported_away`: you confirmed the number left your
199
+ * control after a carrier change. `unconfirmed_ownership`: a carrier change was
200
+ * not confirmed before the deadline. `reassigned`: the number was reported as
201
+ * permanently disconnected. `customer_reported`: you reported that you no longer
202
+ * own the number. `customer_removed`: you removed the number.
203
+ */
204
+ removal_reason?: 'ported_away' | 'unconfirmed_ownership' | 'reassigned' | 'customer_reported' | 'customer_removed' | null;
205
+ /**
206
+ * When the number was removed. Set only for removed numbers.
207
+ */
208
+ removed_at?: string | null;
209
+ /**
210
+ * Reputation snapshot for a phone number. Each metric is a 0–100 score;
211
+ * `spam_risk` is a coarse bucket. Field set may grow over time - read by key.
109
212
  */
110
213
  reputation_data?: Shared.ReputationData | null;
214
+ /**
215
+ * Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
216
+ * `external`: a number you own that is hosted with another provider.
217
+ */
218
+ source?: ReputationNumberSource;
111
219
  updated_at?: string;
112
220
  }
113
221
  export interface ReputationPhoneNumberList {
@@ -161,7 +269,67 @@ export declare namespace NumberRefreshResponse {
161
269
  }
162
270
  }
163
271
  }
272
+ export interface NumberRetrieveOwnershipResponse {
273
+ data: NumberRetrieveOwnershipResponse.Data;
274
+ }
275
+ export declare namespace NumberRetrieveOwnershipResponse {
276
+ interface Data {
277
+ /**
278
+ * Service provider ID (SPID) of the carrier that held the number when its
279
+ * ownership was last established.
280
+ */
281
+ baseline_carrier?: string | null;
282
+ baseline_recorded_at?: string | null;
283
+ confirm_by?: string | null;
284
+ flag_reason?: string | null;
285
+ /**
286
+ * Ownership events, most recent first.
287
+ */
288
+ history?: Array<Data.History>;
289
+ /**
290
+ * When ownership of the number was last checked.
291
+ */
292
+ last_checked_at?: string | null;
293
+ /**
294
+ * Result of ongoing ownership checks. `verified`: the number is with the carrier
295
+ * on record. `pending_confirmation`: the number's carrier changed, or a periodic
296
+ * ownership re-verification is due; confirm you still own it before `confirm_by`.
297
+ * `flagged`: a periodic re-verification went unanswered; the number stays
298
+ * monitored and is not removed, but confirm ownership
299
+ * (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
300
+ * is no longer monitored; returned by `POST .../ownership_confirm` with
301
+ * `still_own: false`, and when listing numbers with
302
+ * `filter[ownership_status]=removed`.
303
+ */
304
+ ownership_status?: NumbersAPI.ReputationOwnershipStatus;
305
+ phone_number?: string;
306
+ /**
307
+ * Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
308
+ * `external`: a number you own that is hosted with another provider.
309
+ */
310
+ source?: NumbersAPI.ReputationNumberSource;
311
+ }
312
+ namespace Data {
313
+ interface History {
314
+ /**
315
+ * `added`, `check`, `flag`, `confirm` or `removed`.
316
+ */
317
+ event_type?: string;
318
+ occurred_at?: string;
319
+ /**
320
+ * What the event found or did, for example `unchanged` or `carrier_changed`.
321
+ */
322
+ outcome?: string | null;
323
+ }
324
+ }
325
+ }
164
326
  export interface NumberListParams extends DefaultFlatPaginationParams {
327
+ /**
328
+ * Only numbers with this ownership status. `removed` lists the numbers that were
329
+ * removed, each with its `removal_reason` and `removed_at`; removed numbers are
330
+ * not returned otherwise.
331
+ */
332
+ 'filter[ownership_status]'?: ReputationOwnershipStatus;
165
333
  /**
166
334
  * Partial match on phone number. Must contain at least 5 digits.
167
335
  */
@@ -170,6 +338,10 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
170
338
  * Exact phone-number match (E.164).
171
339
  */
172
340
  'filter[phone_number][eq]'?: string;
341
+ /**
342
+ * Only numbers with this source.
343
+ */
344
+ 'filter[source]'?: ReputationNumberSource;
173
345
  }
174
346
  export interface NumberAssociateParams {
175
347
  /**
@@ -201,7 +373,28 @@ export interface NumberRefreshParams {
201
373
  */
202
374
  phone_numbers: Array<string>;
203
375
  }
376
+ export interface NumberRetrieveOwnershipParams {
377
+ /**
378
+ * The enterprise id. Lowercase UUID.
379
+ */
380
+ enterprise_id: string;
381
+ }
382
+ export interface NumberOwnershipConfirmParams {
383
+ /**
384
+ * Path param: The enterprise id. Lowercase UUID.
385
+ */
386
+ enterprise_id: string;
387
+ /**
388
+ * Body param: `true` confirms you still own the number. `false` reports that you
389
+ * no longer own it and removes it from Number Reputation.
390
+ */
391
+ still_own: boolean;
392
+ /**
393
+ * Body param: Optional id of an uploaded document supporting the confirmation.
394
+ */
395
+ evidence_document_id?: string;
396
+ }
204
397
  export declare namespace Numbers {
205
- export { type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, };
398
+ export { type ReputationNumberSource as ReputationNumberSource, type ReputationOwnershipStatus as ReputationOwnershipStatus, type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type NumberRetrieveOwnershipResponse as NumberRetrieveOwnershipResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, type NumberRetrieveOwnershipParams as NumberRetrieveOwnershipParams, type NumberOwnershipConfirmParams as NumberOwnershipConfirmParams, };
206
399
  }
207
400
  //# sourceMappingURL=numbers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,cAAc,0BAAuB;AACjD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,qBAAqB,CAAC;IAQlF;;;;;;;;;;;;;;;;;;;OA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3D,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,cAAc,0BAAuB;AACjD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,qBAAqB,CAAC;IAQlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,SAAS,CACP,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;OAWG;IACH,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACv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  /**
32
32
  * Add up to 100 phone numbers to reputation monitoring on this enterprise. Each
33
- * must be in E.164 format (`+1NPANXXXXXX` for US/CA) and belong to your Telnyx
34
- * phone-number inventory.
33
+ * must be in E.164 format (`+1NPANXXXXXX` for US/CA). A number in your Telnyx
34
+ * phone-number inventory is accepted as `source: telnyx`; a number that is not is
35
+ * treated as hosted with another provider and must meet the requirements below.
35
36
  *
36
37
  * **Prerequisite**: reputation must already be enabled on this enterprise (see
37
38
  * `POST .../reputation`).
@@ -39,6 +40,14 @@ class Numbers extends resource_1.APIResource {
39
40
  * **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
40
41
  * for current pricing.
41
42
  *
43
+ * A phone number that is not in your Telnyx inventory is treated as a number
44
+ * hosted with another provider (`source: external`). It must be a US local number,
45
+ * and the enterprise's ownership proof must be approved first
46
+ * (`POST /enterprises/{enterprise_id}/reputation/external_verification`);
47
+ * otherwise the request fails with a 400 whose `detail` contains
48
+ * `external_verification_required`. Ownership of such numbers is checked every
49
+ * day.
50
+ *
42
51
  * @example
43
52
  * ```ts
44
53
  * const reputationPhoneNumberList =
@@ -117,6 +126,53 @@ class Numbers extends resource_1.APIResource {
117
126
  ...options,
118
127
  });
119
128
  }
129
+ /**
130
+ * Get the ownership status of a phone number, when it was last checked, the
131
+ * carrier recorded as its baseline, and the history of ownership events.
132
+ *
133
+ * @example
134
+ * ```ts
135
+ * const response =
136
+ * await client.enterprises.reputation.numbers.retrieveOwnership(
137
+ * '+19493253498',
138
+ * {
139
+ * enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
140
+ * },
141
+ * );
142
+ * ```
143
+ */
144
+ retrieveOwnership(phoneNumber, params, options) {
145
+ const { enterprise_id } = params;
146
+ return this._client.get((0, path_1.path) `/enterprises/${enterprise_id}/reputation/numbers/${phoneNumber}/ownership`, options);
147
+ }
148
+ /**
149
+ * Answer an ownership question about a phone number hosted with another provider.
150
+ *
151
+ * Send `still_own: true` to confirm you still own a number whose
152
+ * `ownership_status` is `pending_confirmation` or `flagged`; its status returns to
153
+ * `verified` and, after a carrier change, the new carrier becomes the one on
154
+ * record.
155
+ *
156
+ * Send `still_own: false` to report that you no longer own the number. It is
157
+ * removed from Number Reputation immediately, whatever its current status, and the
158
+ * response shows it with `ownership_status: removed`.
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * const reputationPhoneNumberWithReputation =
163
+ * await client.enterprises.reputation.numbers.ownershipConfirm(
164
+ * '+19493253498',
165
+ * {
166
+ * enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
167
+ * still_own: true,
168
+ * },
169
+ * );
170
+ * ```
171
+ */
172
+ ownershipConfirm(phoneNumber, params, options) {
173
+ const { enterprise_id, ...body } = params;
174
+ return this._client.post((0, path_1.path) `/enterprises/${enterprise_id}/reputation/numbers/${phoneNumber}/ownership_confirm`, { body, ...options });
175
+ }
120
176
  }
121
177
  exports.Numbers = Numbers;
122
178
  //# sourceMappingURL=numbers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAIkC;AAClC,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,YAAoB,EACpB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,gBAAgB,YAAY,qBAAqB,EACrD,CAAA,kCAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAS,CACP,YAAoB,EACpB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CACV,WAAmB,EACnB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,aAAa,uBAAuB,WAAW,EAAE,EAAE;YAChG,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,aAAa,uBAAuB,WAAW,EAAE,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CACL,YAAoB,EACpB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,6BAA6B,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAxID,0BAwIC"}
1
+ {"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,4DAIkC;AAClC,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MA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,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CACL,YAAoB,EACpB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,6BAA6B,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CACf,WAAmB,EACnB,MAAqC,EACrC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,gBAAgB,aAAa,uBAAuB,WAAW,YAAY,EAC/E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,gBAAgB,CACd,WAAmB,EACnB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,gBAAgB,aAAa,uBAAuB,WAAW,oBAAoB,EACvF,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CACrB,CAAC;IACJ,CAAC;CACF;AAhND,0BAgNC"}
@@ -27,8 +27,9 @@ export class Numbers extends APIResource {
27
27
  }
28
28
  /**
29
29
  * Add up to 100 phone numbers to reputation monitoring on this enterprise. Each
30
- * must be in E.164 format (`+1NPANXXXXXX` for US/CA) and belong to your Telnyx
31
- * phone-number inventory.
30
+ * must be in E.164 format (`+1NPANXXXXXX` for US/CA). A number in your Telnyx
31
+ * phone-number inventory is accepted as `source: telnyx`; a number that is not is
32
+ * treated as hosted with another provider and must meet the requirements below.
32
33
  *
33
34
  * **Prerequisite**: reputation must already be enabled on this enterprise (see
34
35
  * `POST .../reputation`).
@@ -36,6 +37,14 @@ export class Numbers extends APIResource {
36
37
  * **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
37
38
  * for current pricing.
38
39
  *
40
+ * A phone number that is not in your Telnyx inventory is treated as a number
41
+ * hosted with another provider (`source: external`). It must be a US local number,
42
+ * and the enterprise's ownership proof must be approved first
43
+ * (`POST /enterprises/{enterprise_id}/reputation/external_verification`);
44
+ * otherwise the request fails with a 400 whose `detail` contains
45
+ * `external_verification_required`. Ownership of such numbers is checked every
46
+ * day.
47
+ *
39
48
  * @example
40
49
  * ```ts
41
50
  * const reputationPhoneNumberList =
@@ -114,5 +123,52 @@ export class Numbers extends APIResource {
114
123
  ...options,
115
124
  });
116
125
  }
126
+ /**
127
+ * Get the ownership status of a phone number, when it was last checked, the
128
+ * carrier recorded as its baseline, and the history of ownership events.
129
+ *
130
+ * @example
131
+ * ```ts
132
+ * const response =
133
+ * await client.enterprises.reputation.numbers.retrieveOwnership(
134
+ * '+19493253498',
135
+ * {
136
+ * enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
137
+ * },
138
+ * );
139
+ * ```
140
+ */
141
+ retrieveOwnership(phoneNumber, params, options) {
142
+ const { enterprise_id } = params;
143
+ return this._client.get(path `/enterprises/${enterprise_id}/reputation/numbers/${phoneNumber}/ownership`, options);
144
+ }
145
+ /**
146
+ * Answer an ownership question about a phone number hosted with another provider.
147
+ *
148
+ * Send `still_own: true` to confirm you still own a number whose
149
+ * `ownership_status` is `pending_confirmation` or `flagged`; its status returns to
150
+ * `verified` and, after a carrier change, the new carrier becomes the one on
151
+ * record.
152
+ *
153
+ * Send `still_own: false` to report that you no longer own the number. It is
154
+ * removed from Number Reputation immediately, whatever its current status, and the
155
+ * response shows it with `ownership_status: removed`.
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * const reputationPhoneNumberWithReputation =
160
+ * await client.enterprises.reputation.numbers.ownershipConfirm(
161
+ * '+19493253498',
162
+ * {
163
+ * enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
164
+ * still_own: true,
165
+ * },
166
+ * );
167
+ * ```
168
+ */
169
+ ownershipConfirm(phoneNumber, params, options) {
170
+ const { enterprise_id, ...body } = params;
171
+ return this._client.post(path `/enterprises/${enterprise_id}/reputation/numbers/${phoneNumber}/ownership_confirm`, { body, ...options });
172
+ }
117
173
  }
118
174
  //# sourceMappingURL=numbers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"numbers.mjs","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EACL,qBAAqB,GAGtB,qCAAiC;AAClC,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,YAAoB,EACpB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,gBAAgB,YAAY,qBAAqB,EACrD,CAAA,qBAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAS,CACP,YAAoB,EACpB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,YAAY,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CACV,WAAmB,EACnB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,aAAa,uBAAuB,WAAW,EAAE,EAAE;YAChG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,aAAa,uBAAuB,WAAW,EAAE,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CACL,YAAoB,EACpB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,YAAY,6BAA6B,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"numbers.mjs","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAKrD,OAAO,EACL,qBAAqB,GAGtB,qCAAiC;AAClC,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,YAAoB,EACpB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,gBAAgB,YAAY,qBAAqB,EACrD,CAAA,qBAA4C,CAAA,E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;;OAcG;IACH,iBAAiB,CACf,WAAmB,EACnB,MAAqC,EACrC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,gBAAgB,aAAa,uBAAuB,WAAW,YAAY,EAC/E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,gBAAgB,CACd,WAAmB,EACnB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,gBAAgB,aAAa,uBAAuB,WAAW,oBAAoB,EACvF,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CACrB,CAAC;IACJ,CAAC;CACF"}
@@ -108,8 +108,9 @@ export interface RemediationRequest {
108
108
  updated_at: string;
109
109
  contact_email?: string | null;
110
110
  /**
111
- * Per-category buckets. Populated once results are available. Null while the
112
- * request is still pending.
111
+ * Per-category buckets of phone numbers, populated once results are available.
112
+ * Empty lists are kept (not omitted) so consumers can iterate without
113
+ * null-checking each key.
113
114
  */
114
115
  results?: RemediationPerNumberResults | null;
115
116
  tier1_completed_at?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"remediation.d.mts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/remediation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAClC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EAC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OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
1
+ {"version":3,"file":"remediation.d.mts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/remediation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAClC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6CAA6C,EAAE,uBAAuB,CAAC;IAQtF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,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AC5D,CAAC;CACH"}
@@ -108,8 +108,9 @@ export interface RemediationRequest {
108
108
  updated_at: string;
109
109
  contact_email?: string | null;
110
110
  /**
111
- * Per-category buckets. Populated once results are available. Null while the
112
- * request is still pending.
111
+ * Per-category buckets of phone numbers, populated once results are available.
112
+ * Empty lists are kept (not omitted) so consumers can iterate without
113
+ * null-checking each key.
113
114
  */
114
115
  results?: RemediationPerNumberResults | null;
115
116
  tier1_completed_at?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"remediation.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/remediation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,oCAAiC;AAClC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6CAA6C,EAAE,uBAAuB,CAAC;IAQtF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAOzC;AAED,MAAM,MAAM,6CAA6C,GAAG,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;AAE3G;;;;GAIG;AACH,MAAM,W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,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B,UAAU,EAAE,MAAM,CAAC;IAEnB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,qBAAsB,SAAQ,2BAA2B;IACxE;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
1
+ {"version":3,"file":"remediation.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/remediation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,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ACtC;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -1,8 +1,10 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
+ import * as ExternalVerificationAPI from "./external-verification.mjs";
3
+ import { ExternalVerification, ExternalVerificationCreateParams, ExternalVerificationStatus, ExternalVerificationWrapped } from "./external-verification.mjs";
2
4
  import * as LoaAPI from "./loa.mjs";
3
5
  import { AgentInput, Loa, LoaRenderParams, LoaUpdateParams } from "./loa.mjs";
4
6
  import * as NumbersAPI from "./numbers.mjs";
5
- import { NumberAssociateParams, NumberDisassociateParams, NumberListParams, NumberRefreshParams, NumberRefreshResponse, NumberRetrieveParams, Numbers, ReputationPhoneNumber, ReputationPhoneNumberList, ReputationPhoneNumberListWithReputation, ReputationPhoneNumberWithReputation, ReputationPhoneNumbersDefaultFlatPagination } from "./numbers.mjs";
7
+ import { NumberAssociateParams, NumberDisassociateParams, NumberListParams, NumberOwnershipConfirmParams, NumberRefreshParams, NumberRefreshResponse, NumberRetrieveOwnershipParams, NumberRetrieveOwnershipResponse, NumberRetrieveParams, Numbers, ReputationNumberSource, ReputationOwnershipStatus, ReputationPhoneNumber, ReputationPhoneNumberList, ReputationPhoneNumberListWithReputation, ReputationPhoneNumberWithReputation, ReputationPhoneNumbersDefaultFlatPagination } from "./numbers.mjs";
6
8
  import * as RemediationAPI from "./remediation.mjs";
7
9
  import { Remediation, RemediationCreateParams, RemediationListParams, RemediationListResponse, RemediationListResponsesDefaultFlatPagination, RemediationPerNumberResults, RemediationRequest, RemediationRequestWrapped, RemediationRetrieveParams, RemediationStatus } from "./remediation.mjs";
8
10
  import { APIPromise } from "../../../core/api-promise.mjs";
@@ -14,6 +16,7 @@ export declare class Reputation extends APIResource {
14
16
  numbers: NumbersAPI.Numbers;
15
17
  loa: LoaAPI.Loa;
16
18
  remediation: RemediationAPI.Remediation;
19
+ externalVerification: ExternalVerificationAPI.ExternalVerification;
17
20
  /**
18
21
  * Disable Phone Number Reputation. All registered numbers are de-registered as a
19
22
  * cascade. The enterprise itself is unaffected. Returns `204` on success, `404` if
@@ -95,6 +98,22 @@ export declare class Reputation extends APIResource {
95
98
  * ```
96
99
  */
97
100
  updateFrequency(enterpriseID: string, body: ReputationUpdateFrequencyParams, options?: RequestOptions): APIPromise<EnterpriseReputationPublicWrapped>;
101
+ /**
102
+ * Set the HTTPS URL that receives number-ownership events for this enterprise:
103
+ * `number_reputation.number.flagged`, `number_reputation.number.removed` and
104
+ * `number_reputation.external_verification.status_changed`. Send
105
+ * `webhook_url: null` to stop receiving them.
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * const enterpriseReputationPublicWrapped =
110
+ * await client.enterprises.reputation.updateWebhook(
111
+ * '4a6192a4-573d-446d-b3ce-aff9117272a6',
112
+ * { webhook_url: 'https://example.com/webhooks/telnyx' },
113
+ * );
114
+ * ```
115
+ */
116
+ updateWebhook(enterpriseID: string, body: ReputationUpdateWebhookParams, options?: RequestOptions): APIPromise<EnterpriseReputationPublicWrapped>;
98
117
  }
99
118
  export interface EnterpriseReputationPublic {
100
119
  /**
@@ -104,6 +123,11 @@ export interface EnterpriseReputationPublic {
104
123
  check_frequency?: ReputationCheckFrequency;
105
124
  created_at?: string;
106
125
  enterprise_id?: string;
126
+ /**
127
+ * Review state of the ownership proof that allows adding phone numbers hosted with
128
+ * another provider.
129
+ */
130
+ external_verification_status?: ExternalVerificationAPI.ExternalVerificationStatus | null;
107
131
  /**
108
132
  * Id of the signed LOA document.
109
133
  */
@@ -122,6 +146,10 @@ export interface EnterpriseReputationPublic {
122
146
  */
123
147
  status?: 'pending' | 'approved' | 'deleted' | 'rejected';
124
148
  updated_at?: string;
149
+ /**
150
+ * HTTPS URL that receives number-ownership webhook events for this enterprise.
151
+ */
152
+ webhook_url?: string | null;
125
153
  }
126
154
  export interface EnterpriseReputationPublicWrapped {
127
155
  data: EnterpriseReputationPublic;
@@ -151,10 +179,18 @@ export interface ReputationUpdateFrequencyParams {
151
179
  */
152
180
  check_frequency: ReputationCheckFrequency;
153
181
  }
182
+ export interface ReputationUpdateWebhookParams {
183
+ /**
184
+ * HTTPS URL on a publicly routable host. Send `null` to stop receiving
185
+ * number-ownership events.
186
+ */
187
+ webhook_url: string | null;
188
+ }
154
189
  export declare namespace Reputation {
155
- export { type EnterpriseReputationPublic as EnterpriseReputationPublic, type EnterpriseReputationPublicWrapped as EnterpriseReputationPublicWrapped, type ReputationCheckFrequency as ReputationCheckFrequency, type ReputationEnableParams as ReputationEnableParams, type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams, };
156
- export { Numbers as Numbers, type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, };
190
+ export { type EnterpriseReputationPublic as EnterpriseReputationPublic, type EnterpriseReputationPublicWrapped as EnterpriseReputationPublicWrapped, type ReputationCheckFrequency as ReputationCheckFrequency, type ReputationEnableParams as ReputationEnableParams, type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams, type ReputationUpdateWebhookParams as ReputationUpdateWebhookParams, };
191
+ export { Numbers as Numbers, type ReputationNumberSource as ReputationNumberSource, type ReputationOwnershipStatus as ReputationOwnershipStatus, type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type NumberRetrieveOwnershipResponse as NumberRetrieveOwnershipResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, type NumberRetrieveOwnershipParams as NumberRetrieveOwnershipParams, type NumberOwnershipConfirmParams as NumberOwnershipConfirmParams, };
157
192
  export { Loa as Loa, type AgentInput as AgentInput, type LoaUpdateParams as LoaUpdateParams, type LoaRenderParams as LoaRenderParams, };
158
193
  export { Remediation as Remediation, type RemediationPerNumberResults as RemediationPerNumberResults, type RemediationRequest as RemediationRequest, type RemediationRequestWrapped as RemediationRequestWrapped, type RemediationStatus as RemediationStatus, type RemediationListResponse as RemediationListResponse, type RemediationListResponsesDefaultFlatPagination as RemediationListResponsesDefaultFlatPagination, type RemediationListParams as RemediationListParams, type RemediationCreateParams as RemediationCreateParams, type RemediationRetrieveParams as RemediationRetrieveParams, };
194
+ export { ExternalVerification as ExternalVerification, type ExternalVerificationStatus as ExternalVerificationStatus, type ExternalVerificationWrapped as ExternalVerificationWrapped, type ExternalVerificationCreateParams as ExternalVerificationCreateParams, };
159
195
  }
160
196
  //# sourceMappingURL=reputation.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reputation.d.mts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/reputation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,kBAAc;AAChC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAc;AAC1E,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,OAAO,EACP,qBAAqB,EACrB,yBAAyB,EACzB,uCAAuC,EACvC,mCAAmC,EACnC,2CAA2C,EAC5C,sBAAkB;AACnB,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,6CAA6C,EAC7C,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EAClB,0BAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAA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,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
1
+ {"version":3,"file":"reputation.d.mts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/reputation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,uBAAuB,oCAAgC;AACnE,OAAO,EACL,oBAAoB,EACpB,gCAAgC,EAChC,0BAA0B,EAC1B,2BAA2B,EAC5B,oCAAgC;AACjC,OAAO,KAAK,MAAM,kBAAc;AAChC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAc;AAC1E,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACrB,6BAA6B,EAC7B,+BAA+B,EAC/B,oBAAoB,EACpB,OAAO,EACP,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,uCAAuC,EACvC,mCAAmC,EACnC,2CAA2C,EAC5C,sBAAkB;AACnB,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,6CAA6C,EAC7C,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EAClB,0BAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,oBAAoB,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