telnyx 7.27.0 → 7.29.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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +46 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +46 -6
- package/client.d.ts.map +1 -1
- package/client.js +40 -0
- package/client.js.map +1 -1
- package/client.mjs +40 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses/actions.d.mts +19 -4
- package/resources/addresses/actions.d.mts.map +1 -1
- package/resources/addresses/actions.d.ts +19 -4
- package/resources/addresses/actions.d.ts.map +1 -1
- package/resources/ai/ai.d.mts +4 -0
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +4 -0
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +42 -27
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +42 -27
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/audio.d.mts +22 -11
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +22 -11
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +9 -9
- package/resources/ai/avatars.d.ts +9 -9
- package/resources/ai/avatars.js +9 -9
- package/resources/ai/avatars.mjs +9 -9
- package/resources/ai/index.d.mts +1 -0
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -0
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +5 -3
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tests/index.d.mts +4 -0
- package/resources/ai/tests/index.d.mts.map +1 -0
- package/resources/ai/tests/index.d.ts +4 -0
- package/resources/ai/tests/index.d.ts.map +1 -0
- package/resources/ai/tests/index.js +11 -0
- package/resources/ai/tests/index.js.map +1 -0
- package/resources/ai/tests/index.mjs +5 -0
- package/resources/ai/tests/index.mjs.map +1 -0
- package/resources/ai/tests/schedules/index.d.mts +3 -0
- package/resources/ai/tests/schedules/index.d.mts.map +1 -0
- package/resources/ai/tests/schedules/index.d.ts +3 -0
- package/resources/ai/tests/schedules/index.d.ts.map +1 -0
- package/resources/ai/tests/schedules/index.js +9 -0
- package/resources/ai/tests/schedules/index.js.map +1 -0
- package/resources/ai/tests/schedules/index.mjs +4 -0
- package/resources/ai/tests/schedules/index.mjs.map +1 -0
- package/resources/ai/tests/schedules/schedules.d.mts +10 -0
- package/resources/ai/tests/schedules/schedules.d.mts.map +1 -0
- package/resources/ai/tests/schedules/schedules.d.ts +10 -0
- package/resources/ai/tests/schedules/schedules.d.ts.map +1 -0
- package/resources/ai/tests/schedules/schedules.js +17 -0
- package/resources/ai/tests/schedules/schedules.js.map +1 -0
- package/resources/ai/tests/schedules/schedules.mjs +12 -0
- package/resources/ai/tests/schedules/schedules.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.mts +171 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.ts +171 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.js +88 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.js.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.mjs +84 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1/index.d.mts +3 -0
- package/resources/ai/tests/schedules/v1/index.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1/index.d.ts +3 -0
- package/resources/ai/tests/schedules/v1/index.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1/index.js +9 -0
- package/resources/ai/tests/schedules/v1/index.js.map +1 -0
- package/resources/ai/tests/schedules/v1/index.mjs +4 -0
- package/resources/ai/tests/schedules/v1/index.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.d.mts +10 -0
- package/resources/ai/tests/schedules/v1/v1.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.d.ts +10 -0
- package/resources/ai/tests/schedules/v1/v1.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.js +17 -0
- package/resources/ai/tests/schedules/v1/v1.js.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.mjs +12 -0
- package/resources/ai/tests/schedules/v1/v1.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1.d.mts +2 -0
- package/resources/ai/tests/schedules/v1.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1.d.ts +2 -0
- package/resources/ai/tests/schedules/v1.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1.js +6 -0
- package/resources/ai/tests/schedules/v1.js.map +1 -0
- package/resources/ai/tests/schedules/v1.mjs +3 -0
- package/resources/ai/tests/schedules/v1.mjs.map +1 -0
- package/resources/ai/tests/schedules.d.mts +2 -0
- package/resources/ai/tests/schedules.d.mts.map +1 -0
- package/resources/ai/tests/schedules.d.ts +2 -0
- package/resources/ai/tests/schedules.d.ts.map +1 -0
- package/resources/ai/tests/schedules.js +6 -0
- package/resources/ai/tests/schedules.js.map +1 -0
- package/resources/ai/tests/schedules.mjs +3 -0
- package/resources/ai/tests/schedules.mjs.map +1 -0
- package/resources/ai/tests/test-framework/index.d.mts +3 -0
- package/resources/ai/tests/test-framework/index.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/index.d.ts +3 -0
- package/resources/ai/tests/test-framework/index.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/index.js +9 -0
- package/resources/ai/tests/test-framework/index.js.map +1 -0
- package/resources/ai/tests/test-framework/index.mjs +4 -0
- package/resources/ai/tests/test-framework/index.mjs.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.d.mts +10 -0
- package/resources/ai/tests/test-framework/test-framework.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.d.ts +10 -0
- package/resources/ai/tests/test-framework/test-framework.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.js +17 -0
- package/resources/ai/tests/test-framework/test-framework.js.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.mjs +12 -0
- package/resources/ai/tests/test-framework/test-framework.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.mts +216 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.ts +216 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.js +93 -0
- package/resources/ai/tests/test-framework/v1/aiagents.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.mjs +89 -0
- package/resources/ai/tests/test-framework/v1/aiagents.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.d.mts +6 -0
- package/resources/ai/tests/test-framework/v1/index.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.d.ts +6 -0
- package/resources/ai/tests/test-framework/v1/index.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.js +15 -0
- package/resources/ai/tests/test-framework/v1/index.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.mjs +7 -0
- package/resources/ai/tests/test-framework/v1/index.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.mts +339 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.ts +339 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.js +145 -0
- package/resources/ai/tests/test-framework/v1/metrics.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.mjs +141 -0
- package/resources/ai/tests/test-framework/v1/metrics.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.d.mts +207 -0
- package/resources/ai/tests/test-framework/v1/results.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.d.ts +207 -0
- package/resources/ai/tests/test-framework/v1/results.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.js +65 -0
- package/resources/ai/tests/test-framework/v1/results.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.mjs +61 -0
- package/resources/ai/tests/test-framework/v1/results.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.mts +528 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.ts +528 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.js +222 -0
- package/resources/ai/tests/test-framework/v1/scenarios.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.mjs +218 -0
- package/resources/ai/tests/test-framework/v1/scenarios.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.d.mts +83 -0
- package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.d.ts +83 -0
- package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.js +46 -0
- package/resources/ai/tests/test-framework/v1/v1.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.mjs +41 -0
- package/resources/ai/tests/test-framework/v1/v1.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1.d.mts +2 -0
- package/resources/ai/tests/test-framework/v1.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1.d.ts +2 -0
- package/resources/ai/tests/test-framework/v1.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1.js +6 -0
- package/resources/ai/tests/test-framework/v1.js.map +1 -0
- package/resources/ai/tests/test-framework/v1.mjs +3 -0
- package/resources/ai/tests/test-framework/v1.mjs.map +1 -0
- package/resources/ai/tests/test-framework.d.mts +2 -0
- package/resources/ai/tests/test-framework.d.mts.map +1 -0
- package/resources/ai/tests/test-framework.d.ts +2 -0
- package/resources/ai/tests/test-framework.d.ts.map +1 -0
- package/resources/ai/tests/test-framework.js +6 -0
- package/resources/ai/tests/test-framework.js.map +1 -0
- package/resources/ai/tests/test-framework.mjs +3 -0
- package/resources/ai/tests/test-framework.mjs.map +1 -0
- package/resources/ai/tests/tests.d.mts +14 -0
- package/resources/ai/tests/tests.d.mts.map +1 -0
- package/resources/ai/tests/tests.d.ts +14 -0
- package/resources/ai/tests/tests.d.ts.map +1 -0
- package/resources/ai/tests/tests.js +21 -0
- package/resources/ai/tests/tests.js.map +1 -0
- package/resources/ai/tests/tests.mjs +16 -0
- package/resources/ai/tests/tests.mjs.map +1 -0
- package/resources/ai/tests.d.mts +2 -0
- package/resources/ai/tests.d.mts.map +1 -0
- package/resources/ai/tests.d.ts +2 -0
- package/resources/ai/tests.d.ts.map +1 -0
- package/resources/ai/tests.js +6 -0
- package/resources/ai/tests.js.map +1 -0
- package/resources/ai/tests.mjs +3 -0
- package/resources/ai/tests.mjs.map +1 -0
- package/resources/artifact-downloads.d.mts +21 -0
- package/resources/artifact-downloads.d.mts.map +1 -0
- package/resources/artifact-downloads.d.ts +21 -0
- package/resources/artifact-downloads.d.ts.map +1 -0
- package/resources/artifact-downloads.js +26 -0
- package/resources/artifact-downloads.js.map +1 -0
- package/resources/artifact-downloads.mjs +22 -0
- package/resources/artifact-downloads.mjs.map +1 -0
- package/resources/bot-challenge.js +1 -1
- package/resources/bot-challenge.js.map +1 -1
- package/resources/bot-challenge.mjs +1 -1
- package/resources/bot-challenge.mjs.map +1 -1
- package/resources/bot-sessions.js +1 -1
- package/resources/bot-sessions.js.map +1 -1
- package/resources/bot-sessions.mjs +1 -1
- package/resources/bot-sessions.mjs.map +1 -1
- package/resources/bot-signup.js +2 -2
- package/resources/bot-signup.js.map +1 -1
- package/resources/bot-signup.mjs +2 -2
- package/resources/bot-signup.mjs.map +1 -1
- package/resources/browser-sessions/actions.d.mts +542 -0
- package/resources/browser-sessions/actions.d.mts.map +1 -0
- package/resources/browser-sessions/actions.d.ts +542 -0
- package/resources/browser-sessions/actions.d.ts.map +1 -0
- package/resources/browser-sessions/actions.js +55 -0
- package/resources/browser-sessions/actions.js.map +1 -0
- package/resources/browser-sessions/actions.mjs +51 -0
- package/resources/browser-sessions/actions.mjs.map +1 -0
- package/resources/browser-sessions/browser-sessions.d.mts +165 -0
- package/resources/browser-sessions/browser-sessions.d.mts.map +1 -0
- package/resources/browser-sessions/browser-sessions.d.ts +165 -0
- package/resources/browser-sessions/browser-sessions.d.ts.map +1 -0
- package/resources/browser-sessions/browser-sessions.js +87 -0
- package/resources/browser-sessions/browser-sessions.js.map +1 -0
- package/resources/browser-sessions/browser-sessions.mjs +82 -0
- package/resources/browser-sessions/browser-sessions.mjs.map +1 -0
- package/resources/browser-sessions/index.d.mts +3 -0
- package/resources/browser-sessions/index.d.mts.map +1 -0
- package/resources/browser-sessions/index.d.ts +3 -0
- package/resources/browser-sessions/index.d.ts.map +1 -0
- package/resources/browser-sessions/index.js +9 -0
- package/resources/browser-sessions/index.js.map +1 -0
- package/resources/browser-sessions/index.mjs +4 -0
- package/resources/browser-sessions/index.mjs.map +1 -0
- package/resources/browser-sessions.d.mts +2 -0
- package/resources/browser-sessions.d.mts.map +1 -0
- package/resources/browser-sessions.d.ts +2 -0
- package/resources/browser-sessions.d.ts.map +1 -0
- package/resources/browser-sessions.js +6 -0
- package/resources/browser-sessions.js.map +1 -0
- package/resources/browser-sessions.mjs +3 -0
- package/resources/browser-sessions.mjs.map +1 -0
- package/resources/call-control-applications.d.mts +2 -2
- package/resources/call-control-applications.d.ts +2 -2
- package/resources/calls/actions.d.mts +35 -28
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +35 -28
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/compute/compute.d.mts +75 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +75 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +17 -0
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/funcs/export.d.mts +3 -0
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +3 -0
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/export.js +3 -0
- package/resources/compute/funcs/export.js.map +1 -1
- package/resources/compute/funcs/export.mjs +3 -0
- package/resources/compute/funcs/export.mjs.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +60 -1
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +60 -1
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js +24 -0
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs +24 -0
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs.map +1 -1
- package/resources/compute/index.d.mts +2 -2
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +2 -2
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +3 -2
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +3 -2
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/email/dedicated-ips/actions.d.mts +73 -0
- package/resources/email/dedicated-ips/actions.d.mts.map +1 -0
- package/resources/email/dedicated-ips/actions.d.ts +73 -0
- package/resources/email/dedicated-ips/actions.d.ts.map +1 -0
- package/resources/email/dedicated-ips/actions.js +84 -0
- package/resources/email/dedicated-ips/actions.js.map +1 -0
- package/resources/email/dedicated-ips/actions.mjs +80 -0
- package/resources/email/dedicated-ips/actions.mjs.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.mts +444 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.ts +444 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.js +142 -0
- package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.mjs +137 -0
- package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -0
- package/resources/email/dedicated-ips/index.d.mts +3 -0
- package/resources/email/dedicated-ips/index.d.mts.map +1 -0
- package/resources/email/dedicated-ips/index.d.ts +3 -0
- package/resources/email/dedicated-ips/index.d.ts.map +1 -0
- package/resources/email/dedicated-ips/index.js +9 -0
- package/resources/email/dedicated-ips/index.js.map +1 -0
- package/resources/email/dedicated-ips/index.mjs +4 -0
- package/resources/email/dedicated-ips/index.mjs.map +1 -0
- package/resources/email/dedicated-ips.d.mts +2 -0
- package/resources/email/dedicated-ips.d.mts.map +1 -0
- package/resources/email/dedicated-ips.d.ts +2 -0
- package/resources/email/dedicated-ips.d.ts.map +1 -0
- package/resources/email/dedicated-ips.js +6 -0
- package/resources/email/dedicated-ips.js.map +1 -0
- package/resources/email/dedicated-ips.mjs +3 -0
- package/resources/email/dedicated-ips.mjs.map +1 -0
- package/resources/email/email.d.mts +14 -0
- package/resources/email/email.d.mts.map +1 -0
- package/resources/email/email.d.ts +14 -0
- package/resources/email/email.d.ts.map +1 -0
- package/resources/email/email.js +21 -0
- package/resources/email/email.js.map +1 -0
- package/resources/email/email.mjs +16 -0
- package/resources/email/email.mjs.map +1 -0
- package/resources/email/index.d.mts +4 -0
- package/resources/email/index.d.mts.map +1 -0
- package/resources/email/index.d.ts +4 -0
- package/resources/email/index.d.ts.map +1 -0
- package/resources/email/index.js +11 -0
- package/resources/email/index.js.map +1 -0
- package/resources/email/index.mjs +5 -0
- package/resources/email/index.mjs.map +1 -0
- package/resources/email/ip-pools/index.d.mts +3 -0
- package/resources/email/ip-pools/index.d.mts.map +1 -0
- package/resources/email/ip-pools/index.d.ts +3 -0
- package/resources/email/ip-pools/index.d.ts.map +1 -0
- package/resources/email/ip-pools/index.js +9 -0
- package/resources/email/ip-pools/index.js.map +1 -0
- package/resources/email/ip-pools/index.mjs +4 -0
- package/resources/email/ip-pools/index.mjs.map +1 -0
- package/resources/email/ip-pools/ip-pools.d.mts +184 -0
- package/resources/email/ip-pools/ip-pools.d.mts.map +1 -0
- package/resources/email/ip-pools/ip-pools.d.ts +184 -0
- package/resources/email/ip-pools/ip-pools.d.ts.map +1 -0
- package/resources/email/ip-pools/ip-pools.js +102 -0
- package/resources/email/ip-pools/ip-pools.js.map +1 -0
- package/resources/email/ip-pools/ip-pools.mjs +97 -0
- package/resources/email/ip-pools/ip-pools.mjs.map +1 -0
- package/resources/email/ip-pools/ips.d.mts +83 -0
- package/resources/email/ip-pools/ips.d.mts.map +1 -0
- package/resources/email/ip-pools/ips.d.ts +83 -0
- package/resources/email/ip-pools/ips.d.ts.map +1 -0
- package/resources/email/ip-pools/ips.js +54 -0
- package/resources/email/ip-pools/ips.js.map +1 -0
- package/resources/email/ip-pools/ips.mjs +50 -0
- package/resources/email/ip-pools/ips.mjs.map +1 -0
- package/resources/email/ip-pools.d.mts +2 -0
- package/resources/email/ip-pools.d.mts.map +1 -0
- package/resources/email/ip-pools.d.ts +2 -0
- package/resources/email/ip-pools.d.ts.map +1 -0
- package/resources/email/ip-pools.js +6 -0
- package/resources/email/ip-pools.js.map +1 -0
- package/resources/email/ip-pools.mjs +3 -0
- package/resources/email/ip-pools.mjs.map +1 -0
- package/resources/email.d.mts +2 -0
- package/resources/email.d.mts.map +1 -0
- package/resources/email.d.ts +2 -0
- package/resources/email.d.ts.map +1 -0
- package/resources/email.js +6 -0
- package/resources/email.js.map +1 -0
- package/resources/email.mjs +3 -0
- package/resources/email.mjs.map +1 -0
- package/resources/fax-applications.d.mts +6 -6
- package/resources/fax-applications.d.ts +6 -6
- package/resources/fqdn-connections/fqdn-connections.d.mts +2 -2
- package/resources/fqdn-connections/fqdn-connections.d.ts +2 -2
- package/resources/index.d.mts +10 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +10 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +18 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +4 -4
- package/resources/ip-connections.d.ts +4 -4
- package/resources/messaging-profiles/index.d.mts +1 -1
- package/resources/messaging-profiles/index.d.mts.map +1 -1
- package/resources/messaging-profiles/index.d.ts +1 -1
- package/resources/messaging-profiles/index.d.ts.map +1 -1
- package/resources/messaging-profiles/index.js.map +1 -1
- package/resources/messaging-profiles/index.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +26 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +26 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/network-coverage.d.mts +1 -1
- package/resources/network-coverage.d.mts.map +1 -1
- package/resources/network-coverage.d.ts +1 -1
- package/resources/network-coverage.d.ts.map +1 -1
- package/resources/network-routes.d.mts +257 -0
- package/resources/network-routes.d.mts.map +1 -0
- package/resources/network-routes.d.ts +257 -0
- package/resources/network-routes.d.ts.map +1 -0
- package/resources/network-routes.js +83 -0
- package/resources/network-routes.js.map +1 -0
- package/resources/network-routes.mjs +79 -0
- package/resources/network-routes.mjs.map +1 -0
- package/resources/number-lookup.d.mts +122 -4
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +122 -4
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/pay-connectors.d.mts +378 -0
- package/resources/pay-connectors.d.mts.map +1 -0
- package/resources/pay-connectors.d.ts +378 -0
- package/resources/pay-connectors.d.ts.map +1 -0
- package/resources/pay-connectors.js +116 -0
- package/resources/pay-connectors.js.map +1 -0
- package/resources/pay-connectors.mjs +112 -0
- package/resources/pay-connectors.mjs.map +1 -0
- package/resources/public-internet-gateways.d.mts +0 -8
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +0 -8
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/spend-limits.d.mts +150 -32
- package/resources/spend-limits.d.mts.map +1 -1
- package/resources/spend-limits.d.ts +150 -32
- package/resources/spend-limits.d.ts.map +1 -1
- package/resources/spend-limits.js +26 -7
- package/resources/spend-limits.js.map +1 -1
- package/resources/spend-limits.mjs +26 -7
- package/resources/spend-limits.mjs.map +1 -1
- package/resources/tailscale-subnet-routers.d.mts +233 -0
- package/resources/tailscale-subnet-routers.d.mts.map +1 -0
- package/resources/tailscale-subnet-routers.d.ts +233 -0
- package/resources/tailscale-subnet-routers.d.ts.map +1 -0
- package/resources/tailscale-subnet-routers.js +105 -0
- package/resources/tailscale-subnet-routers.js.map +1 -0
- package/resources/tailscale-subnet-routers.mjs +101 -0
- package/resources/tailscale-subnet-routers.mjs.map +1 -0
- package/resources/texml-applications.d.mts +6 -6
- package/resources/texml-applications.d.ts +6 -6
- package/resources/text-to-speech/text-to-speech.d.mts +1 -6
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +1 -6
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +1 -2
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +1 -2
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/tunnels/actions.d.mts +29 -0
- package/resources/tunnels/actions.d.mts.map +1 -0
- package/resources/tunnels/actions.d.ts +29 -0
- package/resources/tunnels/actions.d.ts.map +1 -0
- package/resources/tunnels/actions.js +28 -0
- package/resources/tunnels/actions.js.map +1 -0
- package/resources/tunnels/actions.mjs +24 -0
- package/resources/tunnels/actions.mjs.map +1 -0
- package/resources/tunnels/index.d.mts +3 -0
- package/resources/tunnels/index.d.mts.map +1 -0
- package/resources/tunnels/index.d.ts +3 -0
- package/resources/tunnels/index.d.ts.map +1 -0
- package/resources/tunnels/index.js +9 -0
- package/resources/tunnels/index.js.map +1 -0
- package/resources/tunnels/index.mjs +4 -0
- package/resources/tunnels/index.mjs.map +1 -0
- package/resources/tunnels/tunnels.d.mts +194 -0
- package/resources/tunnels/tunnels.d.mts.map +1 -0
- package/resources/tunnels/tunnels.d.ts +194 -0
- package/resources/tunnels/tunnels.d.ts.map +1 -0
- package/resources/tunnels/tunnels.js +82 -0
- package/resources/tunnels/tunnels.js.map +1 -0
- package/resources/tunnels/tunnels.mjs +77 -0
- package/resources/tunnels/tunnels.mjs.map +1 -0
- package/resources/tunnels.d.mts +2 -0
- package/resources/tunnels.d.mts.map +1 -0
- package/resources/tunnels.d.ts +2 -0
- package/resources/tunnels.d.ts.map +1 -0
- package/resources/tunnels.js +6 -0
- package/resources/tunnels.js.map +1 -0
- package/resources/tunnels.mjs +3 -0
- package/resources/tunnels.mjs.map +1 -0
- package/resources/voice-clones.d.mts +54 -8
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +54 -8
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +6 -5
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +6 -5
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +2 -1
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
- package/resources/whatsapp/hosted-signups.d.ts +2 -1
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
- package/resources/wireguard-interfaces.d.mts +0 -8
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +0 -8
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/src/client.ts +161 -2
- package/src/resources/addresses/actions.ts +23 -4
- package/src/resources/ai/ai.ts +6 -0
- package/src/resources/ai/assistants/assistants.ts +43 -24
- package/src/resources/ai/audio.ts +23 -11
- package/src/resources/ai/avatars.ts +9 -9
- package/src/resources/ai/index.ts +1 -0
- package/src/resources/ai/tests/index.ts +5 -0
- package/src/resources/ai/tests/schedules/index.ts +4 -0
- package/src/resources/ai/tests/schedules/schedules.ts +15 -0
- package/src/resources/ai/tests/schedules/v1/cron-jobs.ts +248 -0
- package/src/resources/ai/tests/schedules/v1/index.ts +12 -0
- package/src/resources/ai/tests/schedules/v1/v1.ts +31 -0
- package/src/resources/ai/tests/schedules/v1.ts +3 -0
- package/src/resources/ai/tests/schedules.ts +3 -0
- package/src/resources/ai/tests/test-framework/index.ts +4 -0
- package/src/resources/ai/tests/test-framework/test-framework.ts +15 -0
- package/src/resources/ai/tests/test-framework/v1/aiagents.ts +304 -0
- package/src/resources/ai/tests/test-framework/v1/index.ts +54 -0
- package/src/resources/ai/tests/test-framework/v1/metrics.ts +491 -0
- package/src/resources/ai/tests/test-framework/v1/results.ts +304 -0
- package/src/resources/ai/tests/test-framework/v1/scenarios.ts +774 -0
- package/src/resources/ai/tests/test-framework/v1/v1.ts +214 -0
- package/src/resources/ai/tests/test-framework/v1.ts +3 -0
- package/src/resources/ai/tests/test-framework.ts +3 -0
- package/src/resources/ai/tests/tests.ts +21 -0
- package/src/resources/ai/tests.ts +3 -0
- package/src/resources/artifact-downloads.ts +39 -0
- package/src/resources/bot-challenge.ts +1 -1
- package/src/resources/bot-sessions.ts +1 -1
- package/src/resources/bot-signup.ts +2 -2
- package/src/resources/browser-sessions/actions.ts +778 -0
- package/src/resources/browser-sessions/browser-sessions.ts +278 -0
- package/src/resources/browser-sessions/index.ts +31 -0
- package/src/resources/browser-sessions.ts +3 -0
- package/src/resources/call-control-applications.ts +2 -2
- package/src/resources/calls/actions.ts +38 -27
- package/src/resources/compute/compute.ts +105 -0
- package/src/resources/compute/funcs/export.ts +3 -0
- package/src/resources/compute/funcs/funcs.ts +99 -0
- package/src/resources/compute/funcs/index.ts +3 -0
- package/src/resources/compute/index.ts +4 -1
- package/src/resources/conferences/actions.ts +3 -2
- package/src/resources/email/dedicated-ips/actions.ts +87 -0
- package/src/resources/email/dedicated-ips/dedicated-ips.ts +563 -0
- package/src/resources/email/dedicated-ips/index.ts +13 -0
- package/src/resources/email/dedicated-ips.ts +3 -0
- package/src/resources/email/email.ts +55 -0
- package/src/resources/email/index.ts +22 -0
- package/src/resources/email/ip-pools/index.ts +12 -0
- package/src/resources/email/ip-pools/ip-pools.ts +247 -0
- package/src/resources/email/ip-pools/ips.ts +112 -0
- package/src/resources/email/ip-pools.ts +3 -0
- package/src/resources/email.ts +3 -0
- package/src/resources/fax-applications.ts +6 -6
- package/src/resources/fqdn-connections/fqdn-connections.ts +2 -2
- package/src/resources/index.ts +59 -1
- package/src/resources/ip-connections.ts +4 -4
- package/src/resources/messaging-profiles/index.ts +1 -0
- package/src/resources/messaging-profiles/messaging-profiles.ts +31 -0
- package/src/resources/network-coverage.ts +5 -1
- package/src/resources/network-routes.ts +332 -0
- package/src/resources/number-lookup.ts +154 -4
- package/src/resources/pay-connectors.ts +482 -0
- package/src/resources/public-internet-gateways.ts +0 -10
- package/src/resources/spend-limits.ts +179 -36
- package/src/resources/tailscale-subnet-routers.ts +303 -0
- package/src/resources/texml-applications.ts +6 -6
- package/src/resources/text-to-speech/text-to-speech.ts +1 -7
- package/src/resources/tunnels/actions.ts +36 -0
- package/src/resources/tunnels/index.ts +13 -0
- package/src/resources/tunnels/tunnels.ts +260 -0
- package/src/resources/tunnels.ts +3 -0
- package/src/resources/voice-clones.ts +88 -8
- package/src/resources/whatsapp/hosted-signups.ts +2 -1
- package/src/resources/wireguard-interfaces.ts +0 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -15,12 +15,22 @@ export interface NumberLookupRetrieveResponse {
|
|
|
15
15
|
}
|
|
16
16
|
export declare namespace NumberLookupRetrieveResponse {
|
|
17
17
|
interface Data {
|
|
18
|
+
/**
|
|
19
|
+
* Identity information for the phone number's owner, including name and postal
|
|
20
|
+
* address. Populated when `type=caller-identity` is requested.
|
|
21
|
+
*/
|
|
22
|
+
caller_identity?: Data.CallerIdentity;
|
|
18
23
|
caller_name?: Data.CallerName;
|
|
19
24
|
carrier?: Data.Carrier;
|
|
20
25
|
/**
|
|
21
26
|
* Region code that matches the specific country calling code
|
|
22
27
|
*/
|
|
23
28
|
country_code?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Enhanced caller name for the phone number's owner. Populated when
|
|
31
|
+
* `type=enhanced-caller-name` is requested.
|
|
32
|
+
*/
|
|
33
|
+
enhanced_caller_name?: Data.EnhancedCallerName;
|
|
24
34
|
/**
|
|
25
35
|
* Unused
|
|
26
36
|
*/
|
|
@@ -30,6 +40,11 @@ export declare namespace NumberLookupRetrieveResponse {
|
|
|
30
40
|
* (NDC), with a 0 prefix, if an NDC is found
|
|
31
41
|
*/
|
|
32
42
|
national_format?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Network number ID (NNID) override for the phone number, when one applies
|
|
45
|
+
* (available only to accounts enabled for NNID); otherwise null.
|
|
46
|
+
*/
|
|
47
|
+
nnid_override?: Data.NnidOverride | null;
|
|
33
48
|
/**
|
|
34
49
|
* E164-formatted phone number
|
|
35
50
|
*/
|
|
@@ -39,8 +54,74 @@ export declare namespace NumberLookupRetrieveResponse {
|
|
|
39
54
|
* Identifies the type of record
|
|
40
55
|
*/
|
|
41
56
|
record_type?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates whether the phone number is valid.
|
|
59
|
+
*/
|
|
60
|
+
valid_number?: boolean;
|
|
42
61
|
}
|
|
43
62
|
namespace Data {
|
|
63
|
+
/**
|
|
64
|
+
* Identity information for the phone number's owner, including name and postal
|
|
65
|
+
* address. Populated when `type=caller-identity` is requested.
|
|
66
|
+
*/
|
|
67
|
+
interface CallerIdentity {
|
|
68
|
+
/**
|
|
69
|
+
* Postal address associated with the phone number's owner.
|
|
70
|
+
*/
|
|
71
|
+
address?: CallerIdentity.Address;
|
|
72
|
+
/**
|
|
73
|
+
* How strongly the phone number is linked to the returned name, on a scale of 50
|
|
74
|
+
* to 90 (higher means more supporting signals). Reflects signal strength, not
|
|
75
|
+
* probability: 70 indicates stronger, more consistent evidence than 60, not a 70%
|
|
76
|
+
* chance of being correct. As a guide, 70+ is high confidence, 60 moderate, and 50
|
|
77
|
+
* limited. Below 50 no name is returned, so scores under 50 are never present.
|
|
78
|
+
*/
|
|
79
|
+
confidence_score?: number | null;
|
|
80
|
+
/**
|
|
81
|
+
* A lookup-specific error code if the identity could not be resolved; otherwise
|
|
82
|
+
* null.
|
|
83
|
+
*/
|
|
84
|
+
error_code?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* The name associated with the phone number.
|
|
87
|
+
*/
|
|
88
|
+
name?: string | null;
|
|
89
|
+
}
|
|
90
|
+
namespace CallerIdentity {
|
|
91
|
+
/**
|
|
92
|
+
* Postal address associated with the phone number's owner.
|
|
93
|
+
*/
|
|
94
|
+
interface Address {
|
|
95
|
+
/**
|
|
96
|
+
* City.
|
|
97
|
+
*/
|
|
98
|
+
city?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Two-letter ISO 3166-1 country code.
|
|
101
|
+
*/
|
|
102
|
+
country_code?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Postal or ZIP code.
|
|
105
|
+
*/
|
|
106
|
+
postal_code?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Two-letter state or province code.
|
|
109
|
+
*/
|
|
110
|
+
state_code?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* First line of the street address.
|
|
113
|
+
*/
|
|
114
|
+
street_line_1?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Second line of the street address, if any.
|
|
117
|
+
*/
|
|
118
|
+
street_line_2?: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* ZIP+4 extension, if available.
|
|
121
|
+
*/
|
|
122
|
+
zip4?: string | null;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
44
125
|
interface CallerName {
|
|
45
126
|
/**
|
|
46
127
|
* The name of the requested phone number's owner as per the CNAM database
|
|
@@ -82,6 +163,39 @@ export declare namespace NumberLookupRetrieveResponse {
|
|
|
82
163
|
*/
|
|
83
164
|
type?: 'fixed line' | 'mobile' | 'voip' | 'fixed line or mobile' | 'toll free' | 'premium rate' | 'shared cost' | 'personal number' | 'pager' | 'uan' | 'voicemail' | 'unknown';
|
|
84
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Enhanced caller name for the phone number's owner. Populated when
|
|
168
|
+
* `type=enhanced-caller-name` is requested.
|
|
169
|
+
*/
|
|
170
|
+
interface EnhancedCallerName {
|
|
171
|
+
/**
|
|
172
|
+
* The name associated with the phone number.
|
|
173
|
+
*/
|
|
174
|
+
caller_name?: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* A lookup-specific error code if the enhanced caller name could not be resolved;
|
|
177
|
+
* otherwise null.
|
|
178
|
+
*/
|
|
179
|
+
error_code?: string | null;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Network number ID (NNID) override for the phone number, when one applies
|
|
183
|
+
* (available only to accounts enabled for NNID); otherwise null.
|
|
184
|
+
*/
|
|
185
|
+
interface NnidOverride {
|
|
186
|
+
/**
|
|
187
|
+
* Name associated with the NNID.
|
|
188
|
+
*/
|
|
189
|
+
name?: string;
|
|
190
|
+
/**
|
|
191
|
+
* The network number ID.
|
|
192
|
+
*/
|
|
193
|
+
nnid?: string;
|
|
194
|
+
/**
|
|
195
|
+
* The NNID type.
|
|
196
|
+
*/
|
|
197
|
+
type?: string;
|
|
198
|
+
}
|
|
85
199
|
interface Portability {
|
|
86
200
|
/**
|
|
87
201
|
* Alternative SPID (Service Provider ID). Often used when a carrier is using a
|
|
@@ -102,9 +216,10 @@ export declare namespace NumberLookupRetrieveResponse {
|
|
|
102
216
|
*/
|
|
103
217
|
city?: string;
|
|
104
218
|
/**
|
|
105
|
-
*
|
|
219
|
+
* The line type of the phone number. Uses the same value set as carrier.type; see
|
|
220
|
+
* the API reference for the full list.
|
|
106
221
|
*/
|
|
107
|
-
line_type?:
|
|
222
|
+
line_type?: 'fixed line' | 'mobile' | 'voip' | 'fixed line or mobile' | 'toll free' | 'premium rate' | 'shared cost' | 'personal number' | 'pager' | 'uan' | 'voicemail' | 'unknown';
|
|
108
223
|
/**
|
|
109
224
|
* Local Routing Number, if assigned to the requested phone number
|
|
110
225
|
*/
|
|
@@ -140,9 +255,12 @@ export declare namespace NumberLookupRetrieveResponse {
|
|
|
140
255
|
}
|
|
141
256
|
export interface NumberLookupRetrieveParams {
|
|
142
257
|
/**
|
|
143
|
-
* Specifies the type of number lookup to be performed
|
|
258
|
+
* Specifies the type of number lookup to be performed. May be supplied more than
|
|
259
|
+
* once to request several data sources in a single call (for example,
|
|
260
|
+
* `?type=carrier&type=enhanced-caller-name`). Each requested type populates the
|
|
261
|
+
* corresponding object in the response.
|
|
144
262
|
*/
|
|
145
|
-
type?: 'carrier' | 'caller-name';
|
|
263
|
+
type?: 'carrier' | 'caller-name' | 'caller-identity' | 'enhanced-caller-name';
|
|
146
264
|
}
|
|
147
265
|
export declare namespace NumberLookup {
|
|
148
266
|
export { type NumberLookupRetrieveResponse as NumberLookupRetrieveResponse, type NumberLookupRetrieveParams as NumberLookupRetrieveParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-lookup.d.ts","sourceRoot":"","sources":["../src/resources/number-lookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,4BAA4B,CAAC,IAAI,CAAC;CAC1C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,IAAI;QACnB,WAAW,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC;QAE9B,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;QAEvB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtB;;;WAGG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC;QAE/B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"number-lookup.d.ts","sourceRoot":"","sources":["../src/resources/number-lookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAA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AE,SAAS,GAAG,aAAa,GAAG,iBAAiB,GAAG,sBAAsB,CAAC;CAC/E;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { EmailBracketCursorPagination, type EmailBracketCursorPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Generic payment connector configuration.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PayConnectors extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List connectors belonging to the authenticated organization, including
|
|
11
|
+
* connectors created by other users in that organization. Set filter[type]=generic
|
|
12
|
+
* to restrict results to the type covered here. Results default to newest
|
|
13
|
+
* created_at first. Use meta.end_cursor as page[after] for the next page, or
|
|
14
|
+
* meta.start_cursor as page[before] for the preceding page. Omit both cursors for
|
|
15
|
+
* the first page; if both are supplied, page[after] takes precedence. Responses
|
|
16
|
+
* omit passwords and tokens.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const payConnector of client.payConnectors.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(query?: PayConnectorListParams | null | undefined, options?: RequestOptions): PagePromise<PayConnectorsEmailBracketCursorPagination, PayConnector>;
|
|
27
|
+
/**
|
|
28
|
+
* Create a generic payment connector in the authenticated organization. The name
|
|
29
|
+
* must be unique in that organization. Authentication supplies ownership; do not
|
|
30
|
+
* send user_id or organization_id. Config is encrypted at rest; passwords and
|
|
31
|
+
* tokens are omitted from responses. This operation stores configuration and does
|
|
32
|
+
* not initiate a payment. See the
|
|
33
|
+
* [processor contract](/docs/voice/programmable-voice/pay#request-sent-to-the-payment-processor).
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const payConnectorResponse =
|
|
38
|
+
* await client.payConnectors.create({
|
|
39
|
+
* config: {
|
|
40
|
+
* endpoint_url: 'https://processor.example.com/pay',
|
|
41
|
+
* auth_type: 'none',
|
|
42
|
+
* },
|
|
43
|
+
* name: 'my-payment-connector',
|
|
44
|
+
* mode: 'test',
|
|
45
|
+
* type: 'generic',
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
create(body: PayConnectorCreateParams, options?: RequestOptions): APIPromise<PayConnectorResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Delete a connector by name in the authenticated organization. Both test and live
|
|
52
|
+
* connectors can be deleted. Returns no response body on success; a missing name
|
|
53
|
+
* or a connector in another organization returns 404.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await client.payConnectors.delete('my-payment-connector');
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(name: string, options?: RequestOptions): APIPromise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieve a connector by name within the authenticated organization. Password and
|
|
63
|
+
* token are omitted. A missing name or a connector owned by another organization
|
|
64
|
+
* returns 404.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const payConnectorResponse =
|
|
69
|
+
* await client.payConnectors.retrieve(
|
|
70
|
+
* 'my-payment-connector',
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
retrieve(name: string, options?: RequestOptions): APIPromise<PayConnectorResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Update a generic connector by name in the authenticated organization. Both test
|
|
77
|
+
* and live connectors can be updated through the API. Omitted fields remain
|
|
78
|
+
* unchanged. Supplying config replaces the entire config; it does not merge keys.
|
|
79
|
+
* Include endpoint_url and the credentials required for the selected auth_type on
|
|
80
|
+
* every config replacement. Omitting config preserves existing credentials,
|
|
81
|
+
* allowing a mode-only update. The path name cannot be renamed. Public updates use
|
|
82
|
+
* PATCH.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const payConnectorResponse =
|
|
87
|
+
* await client.payConnectors.update(
|
|
88
|
+
* 'my-payment-connector',
|
|
89
|
+
* { mode: 'live' },
|
|
90
|
+
* );
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
update(name: string, body: PayConnectorUpdateParams, options?: RequestOptions): APIPromise<PayConnectorResponse>;
|
|
94
|
+
}
|
|
95
|
+
export type PayConnectorsEmailBracketCursorPagination = EmailBracketCursorPagination<PayConnector>;
|
|
96
|
+
/**
|
|
97
|
+
* Configuration for a generic connector. A config update replaces the complete
|
|
98
|
+
* object, not individual keys. Unknown config keys are discarded. Authentication
|
|
99
|
+
* credentials must be nonblank strings when required by the selected auth_type.
|
|
100
|
+
*/
|
|
101
|
+
export type GenericPayConnectorConfig = GenericPayConnectorConfig.BasicAuthenticationAlsoTheValidationDefault | GenericPayConnectorConfig.BearerAuthentication | GenericPayConnectorConfig.NoProcessorAuthentication;
|
|
102
|
+
export declare namespace GenericPayConnectorConfig {
|
|
103
|
+
interface BasicAuthenticationAlsoTheValidationDefault {
|
|
104
|
+
/**
|
|
105
|
+
* Basic password.
|
|
106
|
+
*/
|
|
107
|
+
password: string;
|
|
108
|
+
/**
|
|
109
|
+
* Basic username.
|
|
110
|
+
*/
|
|
111
|
+
username: string;
|
|
112
|
+
/**
|
|
113
|
+
* Nonblank string required for bearer authentication. Write-only; omitted from
|
|
114
|
+
* responses. Re-send when replacing a bearer-auth config.
|
|
115
|
+
*/
|
|
116
|
+
token?: unknown;
|
|
117
|
+
auth_type?: 'basic';
|
|
118
|
+
/**
|
|
119
|
+
* HTTP or HTTPS processor URL with a host. Use HTTPS to protect payment data in
|
|
120
|
+
* transit.
|
|
121
|
+
*/
|
|
122
|
+
endpoint_url?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Processor HTTP timeout in milliseconds. Omitted or null uses 10000; null is
|
|
125
|
+
* removed before storage. Not the IVR digit-gather timeout.
|
|
126
|
+
*/
|
|
127
|
+
timeout?: number | null;
|
|
128
|
+
}
|
|
129
|
+
interface BearerAuthentication {
|
|
130
|
+
/**
|
|
131
|
+
* Processor bearer token.
|
|
132
|
+
*/
|
|
133
|
+
token: string;
|
|
134
|
+
auth_type: 'bearer';
|
|
135
|
+
/**
|
|
136
|
+
* HTTP or HTTPS processor URL with a host. Use HTTPS to protect payment data in
|
|
137
|
+
* transit.
|
|
138
|
+
*/
|
|
139
|
+
endpoint_url?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Nonblank string required for basic authentication. Write-only; omitted from
|
|
142
|
+
* responses. Re-send when replacing a basic-auth config.
|
|
143
|
+
*/
|
|
144
|
+
password?: unknown;
|
|
145
|
+
/**
|
|
146
|
+
* Processor HTTP timeout in milliseconds. Omitted or null uses 10000; null is
|
|
147
|
+
* removed before storage. Not the IVR digit-gather timeout.
|
|
148
|
+
*/
|
|
149
|
+
timeout?: number | null;
|
|
150
|
+
/**
|
|
151
|
+
* Nonblank string required for basic authentication. Returned in connector
|
|
152
|
+
* responses.
|
|
153
|
+
*/
|
|
154
|
+
username?: unknown;
|
|
155
|
+
}
|
|
156
|
+
interface NoProcessorAuthentication {
|
|
157
|
+
auth_type: 'none';
|
|
158
|
+
/**
|
|
159
|
+
* Nonblank string required for bearer authentication. Write-only; omitted from
|
|
160
|
+
* responses. Re-send when replacing a bearer-auth config.
|
|
161
|
+
*/
|
|
162
|
+
token?: unknown;
|
|
163
|
+
/**
|
|
164
|
+
* HTTP or HTTPS processor URL with a host. Use HTTPS to protect payment data in
|
|
165
|
+
* transit.
|
|
166
|
+
*/
|
|
167
|
+
endpoint_url?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Nonblank string required for basic authentication. Write-only; omitted from
|
|
170
|
+
* responses. Re-send when replacing a basic-auth config.
|
|
171
|
+
*/
|
|
172
|
+
password?: unknown;
|
|
173
|
+
/**
|
|
174
|
+
* Processor HTTP timeout in milliseconds. Omitted or null uses 10000; null is
|
|
175
|
+
* removed before storage. Not the IVR digit-gather timeout.
|
|
176
|
+
*/
|
|
177
|
+
timeout?: number | null;
|
|
178
|
+
/**
|
|
179
|
+
* Nonblank string required for basic authentication. Returned in connector
|
|
180
|
+
* responses.
|
|
181
|
+
*/
|
|
182
|
+
username?: unknown;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Organization-owned connector. Examples and config properties here describe
|
|
187
|
+
* generic connectors; listing is not restricted to that type unless
|
|
188
|
+
* filter[type]=generic is supplied. Passwords and bearer tokens are omitted, not
|
|
189
|
+
* masked. Defaults for auth_type and timeout need not appear in stored config.
|
|
190
|
+
*/
|
|
191
|
+
export interface PayConnector {
|
|
192
|
+
/**
|
|
193
|
+
* Connector identifier.
|
|
194
|
+
*/
|
|
195
|
+
id?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Redacted stored configuration. Generic connector fields are shown here. Unknown
|
|
198
|
+
* config keys are discarded. Password and token are never returned.
|
|
199
|
+
*/
|
|
200
|
+
config?: PayConnector.Config;
|
|
201
|
+
/**
|
|
202
|
+
* Creation time.
|
|
203
|
+
*/
|
|
204
|
+
created_at?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Configured mode.
|
|
207
|
+
*/
|
|
208
|
+
mode?: 'test' | 'live';
|
|
209
|
+
/**
|
|
210
|
+
* Connector name used for retrieval, update, deletion and Pay.
|
|
211
|
+
*/
|
|
212
|
+
name?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Owning organization; assigned from authentication, not request input.
|
|
215
|
+
*/
|
|
216
|
+
organization_id?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Resource type.
|
|
219
|
+
*/
|
|
220
|
+
record_type?: 'pay_connector';
|
|
221
|
+
/**
|
|
222
|
+
* Connector type; generic is covered by this reference. Other types may appear in
|
|
223
|
+
* unfiltered lists.
|
|
224
|
+
*/
|
|
225
|
+
type?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Last update time.
|
|
228
|
+
*/
|
|
229
|
+
updated_at?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Creating user; assigned from authentication, not request input.
|
|
232
|
+
*/
|
|
233
|
+
user_id?: string;
|
|
234
|
+
}
|
|
235
|
+
export declare namespace PayConnector {
|
|
236
|
+
/**
|
|
237
|
+
* Redacted stored configuration. Generic connector fields are shown here. Unknown
|
|
238
|
+
* config keys are discarded. Password and token are never returned.
|
|
239
|
+
*/
|
|
240
|
+
interface Config {
|
|
241
|
+
/**
|
|
242
|
+
* Stored processor authentication selection. Omitted if it was not explicitly
|
|
243
|
+
* configured.
|
|
244
|
+
*/
|
|
245
|
+
auth_type?: 'none' | 'basic' | 'bearer';
|
|
246
|
+
/**
|
|
247
|
+
* HTTP or HTTPS processor URL with a host. Use HTTPS to protect payment data in
|
|
248
|
+
* transit.
|
|
249
|
+
*/
|
|
250
|
+
endpoint_url?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Stored processor HTTP timeout in milliseconds. Omitted when no timeout was
|
|
253
|
+
* configured; the effective runtime default is 10000.
|
|
254
|
+
*/
|
|
255
|
+
timeout?: number;
|
|
256
|
+
/**
|
|
257
|
+
* Stored username, when supplied. Required to be a nonblank string for basic
|
|
258
|
+
* authentication.
|
|
259
|
+
*/
|
|
260
|
+
username?: unknown;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
export interface PayConnectorResponse {
|
|
264
|
+
/**
|
|
265
|
+
* Organization-owned connector. Examples and config properties here describe
|
|
266
|
+
* generic connectors; listing is not restricted to that type unless
|
|
267
|
+
* filter[type]=generic is supplied. Passwords and bearer tokens are omitted, not
|
|
268
|
+
* masked. Defaults for auth_type and timeout need not appear in stored config.
|
|
269
|
+
*/
|
|
270
|
+
data?: PayConnector;
|
|
271
|
+
}
|
|
272
|
+
export interface PayConnectorListParams extends EmailBracketCursorPaginationParams {
|
|
273
|
+
/**
|
|
274
|
+
* Equal to this created_at timestamp.
|
|
275
|
+
*/
|
|
276
|
+
'filter[created_at][eq]'?: string;
|
|
277
|
+
/**
|
|
278
|
+
* After this created_at timestamp.
|
|
279
|
+
*/
|
|
280
|
+
'filter[created_at][gt]'?: string;
|
|
281
|
+
/**
|
|
282
|
+
* At or after this created_at timestamp.
|
|
283
|
+
*/
|
|
284
|
+
'filter[created_at][gte]'?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Before this created_at timestamp.
|
|
287
|
+
*/
|
|
288
|
+
'filter[created_at][lt]'?: string;
|
|
289
|
+
/**
|
|
290
|
+
* At or before this created_at timestamp.
|
|
291
|
+
*/
|
|
292
|
+
'filter[created_at][lte]'?: string;
|
|
293
|
+
/**
|
|
294
|
+
* Exact match on mode.
|
|
295
|
+
*/
|
|
296
|
+
'filter[mode]'?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Exact match on name.
|
|
299
|
+
*/
|
|
300
|
+
'filter[name]'?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Exact match on type.
|
|
303
|
+
*/
|
|
304
|
+
'filter[type]'?: string;
|
|
305
|
+
/**
|
|
306
|
+
* Equal to this updated_at timestamp.
|
|
307
|
+
*/
|
|
308
|
+
'filter[updated_at][eq]'?: string;
|
|
309
|
+
/**
|
|
310
|
+
* After this updated_at timestamp.
|
|
311
|
+
*/
|
|
312
|
+
'filter[updated_at][gt]'?: string;
|
|
313
|
+
/**
|
|
314
|
+
* At or after this updated_at timestamp.
|
|
315
|
+
*/
|
|
316
|
+
'filter[updated_at][gte]'?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Before this updated_at timestamp.
|
|
319
|
+
*/
|
|
320
|
+
'filter[updated_at][lt]'?: string;
|
|
321
|
+
/**
|
|
322
|
+
* At or before this updated_at timestamp.
|
|
323
|
+
*/
|
|
324
|
+
'filter[updated_at][lte]'?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Opaque cursor from meta.start_cursor.
|
|
327
|
+
*/
|
|
328
|
+
'page[before]'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Comma-separated created_at or updated_at fields, optionally prefixed with - for
|
|
331
|
+
* descending order.
|
|
332
|
+
*/
|
|
333
|
+
sort?: string;
|
|
334
|
+
}
|
|
335
|
+
export interface PayConnectorCreateParams {
|
|
336
|
+
/**
|
|
337
|
+
* Configuration for a generic connector. A config update replaces the complete
|
|
338
|
+
* object, not individual keys. Unknown config keys are discarded. Authentication
|
|
339
|
+
* credentials must be nonblank strings when required by the selected auth_type.
|
|
340
|
+
*/
|
|
341
|
+
config: GenericPayConnectorConfig;
|
|
342
|
+
/**
|
|
343
|
+
* Unique within the authenticated organization. Used in resource paths and as
|
|
344
|
+
* connector_name in the Call Control Pay request. Cannot be renamed by update.
|
|
345
|
+
*/
|
|
346
|
+
name: string;
|
|
347
|
+
/**
|
|
348
|
+
* Defaults to test on creation. Test restricts collected card numbers but still
|
|
349
|
+
* contacts the configured processor; use a processor sandbox URL and sandbox
|
|
350
|
+
* credentials. Live removes the test-card restriction. Neither mode locks API
|
|
351
|
+
* updates.
|
|
352
|
+
*/
|
|
353
|
+
mode?: 'test' | 'live';
|
|
354
|
+
/**
|
|
355
|
+
* Connector type covered by this reference.
|
|
356
|
+
*/
|
|
357
|
+
type?: 'generic';
|
|
358
|
+
}
|
|
359
|
+
export interface PayConnectorUpdateParams {
|
|
360
|
+
/**
|
|
361
|
+
* Configuration for a generic connector. A config update replaces the complete
|
|
362
|
+
* object, not individual keys. Unknown config keys are discarded. Authentication
|
|
363
|
+
* credentials must be nonblank strings when required by the selected auth_type.
|
|
364
|
+
*/
|
|
365
|
+
config?: GenericPayConnectorConfig;
|
|
366
|
+
/**
|
|
367
|
+
* Omit to preserve the existing mode. Use an explicit test or live value.
|
|
368
|
+
*/
|
|
369
|
+
mode?: 'test' | 'live';
|
|
370
|
+
/**
|
|
371
|
+
* Generic connector type. Omit to preserve the existing value.
|
|
372
|
+
*/
|
|
373
|
+
type?: 'generic';
|
|
374
|
+
}
|
|
375
|
+
export declare namespace PayConnectors {
|
|
376
|
+
export { type GenericPayConnectorConfig as GenericPayConnectorConfig, type PayConnector as PayConnector, type PayConnectorResponse as PayConnectorResponse, type PayConnectorsEmailBracketCursorPagination as PayConnectorsEmailBracketCursorPagination, type PayConnectorListParams as PayConnectorListParams, type PayConnectorCreateParams as PayConnectorCreateParams, type PayConnectorUpdateParams as PayConnectorUpdateParams, };
|
|
377
|
+
}
|
|
378
|
+
//# sourceMappingURL=pay-connectors.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pay-connectors.d.mts","sourceRoot":"","sources":["../src/resources/pay-connectors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,EACvC,WAAW,EACZ,+BAA2B;AAE5B,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yCAAyC,EAAE,YAAY,CAAC;IAOvE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIlG;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAA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