telnyx 7.28.0 → 7.30.0-beta.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 +7 -0
- package/README.md +27 -0
- package/client.d.mts +37 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -6
- package/client.d.ts.map +1 -1
- package/client.js +31 -0
- package/client.js.map +1 -1
- package/client.mjs +31 -0
- package/client.mjs.map +1 -1
- package/lib/login-token.d.mts +87 -0
- package/lib/login-token.d.mts.map +1 -0
- package/lib/login-token.d.ts +87 -0
- package/lib/login-token.d.ts.map +1 -0
- package/lib/login-token.js +190 -0
- package/lib/login-token.js.map +1 -0
- package/lib/login-token.mjs +151 -0
- package/lib/login-token.mjs.map +1 -0
- 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 +31 -27
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +31 -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/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/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 +8 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +16 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -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-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/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/telephony-credentials.d.mts +48 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +48 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +46 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +46 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- 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 +130 -0
- package/src/lib/login-token.ts +219 -0
- package/src/resources/addresses/actions.ts +23 -4
- package/src/resources/ai/ai.ts +6 -0
- package/src/resources/ai/assistants/assistants.ts +31 -24
- 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/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 +46 -0
- 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-routes.ts +332 -0
- 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/telephony-credentials.ts +75 -2
- 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.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as NetworkRoutesAPI from "../network-routes.js";
|
|
3
|
+
import * as ActionsAPI from "./actions.js";
|
|
4
|
+
import { ActionRotateTokenResponse, Actions } from "./actions.js";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
/**
|
|
8
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Tunnels extends APIResource {
|
|
11
|
+
actions: ActionsAPI.Actions;
|
|
12
|
+
/**
|
|
13
|
+
* Lists the tunnels on the account with their status and connected tunnel
|
|
14
|
+
* processes. Responses never include `tunnel_token`.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const tunnels = await client.tunnels.list();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(query?: TunnelListParams | null | undefined, options?: RequestOptions): APIPromise<TunnelListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a tunnel and returns its `tunnel_token`. The token is the only
|
|
24
|
+
* credential the tunnel process needs, and this response and
|
|
25
|
+
* `POST /tunnels/{id}/actions/rotate_token` are the only ones that return it. A
|
|
26
|
+
* new tunnel is `inactive` until a tunnel process connects with the token.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const tunnel = await client.tunnels.create({
|
|
31
|
+
* name: 'chicago-dc',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
create(body: TunnelCreateParams, options?: RequestOptions): APIPromise<TunnelCreateResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Deletes a tunnel. A tunnel that a route names as its next hop cannot be deleted;
|
|
38
|
+
* delete those routes first. Connected tunnel processes are disconnected and
|
|
39
|
+
* cannot reconnect with the tunnel's token.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* await client.tunnels.delete(
|
|
44
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves a tunnel with its status and the tunnel processes connected to it. The
|
|
51
|
+
* response never includes `tunnel_token`.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const tunnel = await client.tunnels.retrieve(
|
|
56
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TunnelRetrieveResponse>;
|
|
61
|
+
}
|
|
62
|
+
export interface Tunnel {
|
|
63
|
+
/**
|
|
64
|
+
* Identifies the resource.
|
|
65
|
+
*/
|
|
66
|
+
id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The number of tunnel processes connected with the tunnel's token.
|
|
69
|
+
*/
|
|
70
|
+
connection_count?: number;
|
|
71
|
+
/**
|
|
72
|
+
* The tunnel processes connected with the tunnel's token.
|
|
73
|
+
*/
|
|
74
|
+
connections?: Array<Tunnel.Connection>;
|
|
75
|
+
/**
|
|
76
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
77
|
+
*/
|
|
78
|
+
created_at?: string;
|
|
79
|
+
/**
|
|
80
|
+
* A user specified name for the tunnel.
|
|
81
|
+
*/
|
|
82
|
+
name?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Identifies the type of the resource.
|
|
85
|
+
*/
|
|
86
|
+
record_type?: string;
|
|
87
|
+
/**
|
|
88
|
+
* `inactive` when no tunnel process is connected, and `healthy` when one or more
|
|
89
|
+
* are. `degraded` (Preview, not reported yet) when a process is connected but
|
|
90
|
+
* fails to reach its destinations.
|
|
91
|
+
*/
|
|
92
|
+
status?: 'inactive' | 'healthy' | 'degraded';
|
|
93
|
+
}
|
|
94
|
+
export declare namespace Tunnel {
|
|
95
|
+
/**
|
|
96
|
+
* A tunnel process connected to the tunnel.
|
|
97
|
+
*/
|
|
98
|
+
interface Connection {
|
|
99
|
+
/**
|
|
100
|
+
* When the process connected.
|
|
101
|
+
*/
|
|
102
|
+
connected_at?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The name the host reports for itself. Preview: empty until the CLI reports it.
|
|
105
|
+
*/
|
|
106
|
+
hostname?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The Telnyx region the process is connected to. Preview: empty until the CLI
|
|
109
|
+
* reports it.
|
|
110
|
+
*/
|
|
111
|
+
region_code?: string;
|
|
112
|
+
/**
|
|
113
|
+
* The `telnyx-edge` CLI version of the process. Preview: empty until the CLI
|
|
114
|
+
* reports it.
|
|
115
|
+
*/
|
|
116
|
+
version?: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
export interface TunnelWithToken extends Tunnel {
|
|
120
|
+
/**
|
|
121
|
+
* The credential that a tunnel process presents with
|
|
122
|
+
* `telnyx-edge tunnel run --token`. Returned only by create and rotate_token.
|
|
123
|
+
* Telnyx stores only a hash of it.
|
|
124
|
+
*/
|
|
125
|
+
tunnel_token?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface TunnelCreateResponse {
|
|
128
|
+
data?: TunnelWithToken;
|
|
129
|
+
}
|
|
130
|
+
export interface TunnelRetrieveResponse {
|
|
131
|
+
data?: Tunnel;
|
|
132
|
+
}
|
|
133
|
+
export interface TunnelListResponse {
|
|
134
|
+
data?: Array<Tunnel>;
|
|
135
|
+
meta?: NetworkRoutesAPI.NetappsCursorPaginationMeta;
|
|
136
|
+
}
|
|
137
|
+
export interface TunnelListParams {
|
|
138
|
+
/**
|
|
139
|
+
* Consolidated filter parameter (deepObject style). Originally: filter[name],
|
|
140
|
+
* filter[status]
|
|
141
|
+
*/
|
|
142
|
+
filter?: TunnelListParams.Filter;
|
|
143
|
+
/**
|
|
144
|
+
* Consolidated page parameter (deepObject style). Originally: page[after],
|
|
145
|
+
* page[limit]
|
|
146
|
+
*/
|
|
147
|
+
page?: TunnelListParams.Page;
|
|
148
|
+
/**
|
|
149
|
+
* Sorts the results by a field, ascending, or descending with a leading `-`. The
|
|
150
|
+
* default is `-created_at`.
|
|
151
|
+
*/
|
|
152
|
+
sort?: 'name' | '-name' | 'status' | '-status' | 'created_at' | '-created_at' | 'updated_at' | '-updated_at';
|
|
153
|
+
}
|
|
154
|
+
export declare namespace TunnelListParams {
|
|
155
|
+
/**
|
|
156
|
+
* Consolidated filter parameter (deepObject style). Originally: filter[name],
|
|
157
|
+
* filter[status]
|
|
158
|
+
*/
|
|
159
|
+
interface Filter {
|
|
160
|
+
/**
|
|
161
|
+
* The name of the tunnel.
|
|
162
|
+
*/
|
|
163
|
+
name?: string;
|
|
164
|
+
/**
|
|
165
|
+
* The status of the tunnel.
|
|
166
|
+
*/
|
|
167
|
+
status?: 'inactive' | 'healthy' | 'degraded';
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Consolidated page parameter (deepObject style). Originally: page[after],
|
|
171
|
+
* page[limit]
|
|
172
|
+
*/
|
|
173
|
+
interface Page {
|
|
174
|
+
/**
|
|
175
|
+
* The cursor from `meta.cursors.after` of the previous page.
|
|
176
|
+
*/
|
|
177
|
+
after?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The number of results per page.
|
|
180
|
+
*/
|
|
181
|
+
limit?: number;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export interface TunnelCreateParams {
|
|
185
|
+
/**
|
|
186
|
+
* A user specified name for the tunnel.
|
|
187
|
+
*/
|
|
188
|
+
name: string;
|
|
189
|
+
}
|
|
190
|
+
export declare namespace Tunnels {
|
|
191
|
+
export { type Tunnel as Tunnel, type TunnelWithToken as TunnelWithToken, type TunnelCreateResponse as TunnelCreateResponse, type TunnelRetrieveResponse as TunnelRetrieveResponse, type TunnelListResponse as TunnelListResponse, type TunnelListParams as TunnelListParams, type TunnelCreateParams as TunnelCreateParams, };
|
|
192
|
+
export { Actions as Actions, type ActionRotateTokenResponse as ActionRotateTokenResponse };
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=tunnels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.d.ts","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAA0B;AACtD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,qBAAkB;AAC/D,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;;;;OAWG;IACH,MAAM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|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Tunnels = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
|
|
8
|
+
const actions_1 = require("./actions.js");
|
|
9
|
+
const headers_1 = require("../../internal/headers.js");
|
|
10
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
11
|
+
/**
|
|
12
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
13
|
+
*/
|
|
14
|
+
class Tunnels extends resource_1.APIResource {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Lists the tunnels on the account with their status and connected tunnel
|
|
21
|
+
* processes. Responses never include `tunnel_token`.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const tunnels = await client.tunnels.list();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
return this._client.get('/tunnels', { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Creates a tunnel and returns its `tunnel_token`. The token is the only
|
|
33
|
+
* credential the tunnel process needs, and this response and
|
|
34
|
+
* `POST /tunnels/{id}/actions/rotate_token` are the only ones that return it. A
|
|
35
|
+
* new tunnel is `inactive` until a tunnel process connects with the token.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const tunnel = await client.tunnels.create({
|
|
40
|
+
* name: 'chicago-dc',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
create(body, options) {
|
|
45
|
+
return this._client.post('/tunnels', { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Deletes a tunnel. A tunnel that a route names as its next hop cannot be deleted;
|
|
49
|
+
* delete those routes first. Connected tunnel processes are disconnected and
|
|
50
|
+
* cannot reconnect with the tunnel's token.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* await client.tunnels.delete(
|
|
55
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
delete(id, options) {
|
|
60
|
+
return this._client.delete((0, path_1.path) `/tunnels/${id}`, {
|
|
61
|
+
...options,
|
|
62
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves a tunnel with its status and the tunnel processes connected to it. The
|
|
67
|
+
* response never includes `tunnel_token`.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const tunnel = await client.tunnels.retrieve(
|
|
72
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
retrieve(id, options) {
|
|
77
|
+
return this._client.get((0, path_1.path) `/tunnels/${id}`, options);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Tunnels = Tunnels;
|
|
81
|
+
Tunnels.Actions = actions_1.Actions;
|
|
82
|
+
//# sourceMappingURL=tunnels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.js","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAA+D;AAE/D,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoErE,CAAC;IAlEC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE;YAC/C,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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AArED,0BAqEC;AAkKD,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
4
|
+
import { Actions } from "./actions.mjs";
|
|
5
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
6
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
9
|
+
*/
|
|
10
|
+
export class Tunnels extends APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Lists the tunnels on the account with their status and connected tunnel
|
|
17
|
+
* processes. Responses never include `tunnel_token`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const tunnels = await client.tunnels.list();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
return this._client.get('/tunnels', { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a tunnel and returns its `tunnel_token`. The token is the only
|
|
29
|
+
* credential the tunnel process needs, and this response and
|
|
30
|
+
* `POST /tunnels/{id}/actions/rotate_token` are the only ones that return it. A
|
|
31
|
+
* new tunnel is `inactive` until a tunnel process connects with the token.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const tunnel = await client.tunnels.create({
|
|
36
|
+
* name: 'chicago-dc',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
create(body, options) {
|
|
41
|
+
return this._client.post('/tunnels', { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Deletes a tunnel. A tunnel that a route names as its next hop cannot be deleted;
|
|
45
|
+
* delete those routes first. Connected tunnel processes are disconnected and
|
|
46
|
+
* cannot reconnect with the tunnel's token.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* await client.tunnels.delete(
|
|
51
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
delete(id, options) {
|
|
56
|
+
return this._client.delete(path `/tunnels/${id}`, {
|
|
57
|
+
...options,
|
|
58
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves a tunnel with its status and the tunnel processes connected to it. The
|
|
63
|
+
* response never includes `tunnel_token`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const tunnel = await client.tunnels.retrieve(
|
|
68
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
retrieve(id, options) {
|
|
73
|
+
return this._client.get(path `/tunnels/${id}`, options);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
Tunnels.Actions = Actions;
|
|
77
|
+
//# sourceMappingURL=tunnels.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.mjs","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAA6B,OAAO,EAAE,sBAAkB;AAE/D,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoErE,CAAC;IAlEC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE;YAC/C,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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AAkKD,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.d.mts","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.d.ts","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./tunnels/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=tunnels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.js","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.mjs","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|
|
@@ -40,11 +40,12 @@ export declare class VoiceClones extends APIResource {
|
|
|
40
40
|
/**
|
|
41
41
|
* Creates a new voice clone by uploading an audio file directly. Supported
|
|
42
42
|
* formats: WAV, MP3, FLAC, OGG, M4A. Maximum file size: 20MB. Reference audio is
|
|
43
|
-
* trimmed per model: Qwen3TTS and
|
|
44
|
-
* 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones
|
|
45
|
-
* `202` with status `pending`; all other models return `201` with status
|
|
46
|
-
* Bayan clones require `ref_text` (the exact transcript of the reference
|
|
47
|
-
* and support `ar` (default) and `en` only.
|
|
43
|
+
* trimmed per model: Qwen3TTS, Bayan, and Resemble use the first 10 seconds, Ultra
|
|
44
|
+
* uses up to 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones
|
|
45
|
+
* return `202` with status `pending`; all other models return `201` with status
|
|
46
|
+
* `active`. Bayan clones require `ref_text` (the exact transcript of the reference
|
|
47
|
+
* audio) and support `ar` (default) and `en` only. Resemble clones
|
|
48
|
+
* (`provider: resemble`) take `model_id` `Pro`, `Turbo`, or `Urdu`.
|
|
48
49
|
*
|
|
49
50
|
* @example
|
|
50
51
|
* ```ts
|
|
@@ -122,13 +123,14 @@ export interface VoiceCloneData {
|
|
|
122
123
|
*/
|
|
123
124
|
label?: string | null;
|
|
124
125
|
/**
|
|
125
|
-
* ISO 639-1
|
|
126
|
+
* Language code of the voice clone (ISO 639-1, or the Resemble catalogue code such
|
|
127
|
+
* as `en-US`).
|
|
126
128
|
*/
|
|
127
129
|
language?: string | null;
|
|
128
130
|
/**
|
|
129
131
|
* TTS model identifier for the voice clone.
|
|
130
132
|
*/
|
|
131
|
-
model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo';
|
|
133
|
+
model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
|
|
132
134
|
/**
|
|
133
135
|
* Name of the voice clone.
|
|
134
136
|
*/
|
|
@@ -199,6 +201,10 @@ export interface VoiceDesignsPaginationMeta {
|
|
|
199
201
|
total_results?: number;
|
|
200
202
|
}
|
|
201
203
|
export interface VoiceCloneListParams extends DefaultFlatPaginationParams {
|
|
204
|
+
/**
|
|
205
|
+
* Filter by TTS model. Case-insensitive.
|
|
206
|
+
*/
|
|
207
|
+
'filter[model_id]'?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
|
|
202
208
|
/**
|
|
203
209
|
* Case-insensitive substring filter on the name field.
|
|
204
210
|
*/
|
|
@@ -276,7 +282,7 @@ export interface VoiceCloneCreateFromUploadParams {
|
|
|
276
282
|
* Multipart form data for creating a voice clone from a direct audio upload.
|
|
277
283
|
* Maximum file size: 20MB.
|
|
278
284
|
*/
|
|
279
|
-
voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone;
|
|
285
|
+
voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone | VoiceCloneCreateFromUploadParams.ResembleClone;
|
|
280
286
|
}
|
|
281
287
|
export declare namespace VoiceCloneCreateFromUploadParams {
|
|
282
288
|
/**
|
|
@@ -441,6 +447,46 @@ export declare namespace VoiceCloneCreateFromUploadParams {
|
|
|
441
447
|
*/
|
|
442
448
|
ref_text?: string;
|
|
443
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* Upload-based voice clone using the Resemble provider. The clone is `active` on
|
|
452
|
+
* creation. Use it as voice `Resemble.<model_id>.<clone_id>`.
|
|
453
|
+
*/
|
|
454
|
+
interface ResembleClone {
|
|
455
|
+
/**
|
|
456
|
+
* Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
457
|
+
* Converted to WAV and trimmed to the first 10 seconds. For best quality, provide
|
|
458
|
+
* about 10 seconds of clean, single-speaker speech. Maximum size: 20MB.
|
|
459
|
+
*/
|
|
460
|
+
audio_file: Uploadable;
|
|
461
|
+
/**
|
|
462
|
+
* Gender of the voice clone.
|
|
463
|
+
*/
|
|
464
|
+
gender: 'male' | 'female' | 'neutral';
|
|
465
|
+
/**
|
|
466
|
+
* Resemble model: `Pro`, `Turbo` (English only), or `Urdu`. A clone works only
|
|
467
|
+
* with this model.
|
|
468
|
+
*/
|
|
469
|
+
model_id: 'Pro' | 'Turbo' | 'Urdu';
|
|
470
|
+
/**
|
|
471
|
+
* Name for the voice clone.
|
|
472
|
+
*/
|
|
473
|
+
name: string;
|
|
474
|
+
/**
|
|
475
|
+
* Voice synthesis provider. Must be `resemble`.
|
|
476
|
+
*/
|
|
477
|
+
provider: 'resemble' | 'Resemble';
|
|
478
|
+
/**
|
|
479
|
+
* Optional custom label describing the voice style.
|
|
480
|
+
*/
|
|
481
|
+
label?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Language of the reference audio, matched case-insensitively. Pro: required, one
|
|
484
|
+
* of `ar`, `da`, `de`, `el`, `en-US`, `es`, `fi`, `fr-fr`, `he`, `hi`, `it`, `ja`,
|
|
485
|
+
* `ko`, `ms`, `nl`, `no`, `pl`, `pt`, `ru`, `sv`, `sw`, `tr`, `zh`. Turbo: `en` or
|
|
486
|
+
* `en-US` (default `en-US`). Urdu: `ur` (default). Other values return `422`.
|
|
487
|
+
*/
|
|
488
|
+
language?: 'ar' | 'da' | 'de' | 'el' | 'en' | 'en-US' | 'es' | 'fi' | 'fr-fr' | 'he' | 'hi' | 'it' | 'ja' | 'ko' | 'ms' | 'nl' | 'no' | 'pl' | 'pt' | 'ru' | 'sv' | 'sw' | 'tr' | 'ur' | 'zh';
|
|
489
|
+
}
|
|
444
490
|
}
|
|
445
491
|
export interface VoiceCloneUpdateParams {
|
|
446
492
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-clones.d.mts","sourceRoot":"","sources":["../src/resources/voice-clones.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,+BAA2B;AAC1G,OAAO,EAAE,KAAK,UAAU,EAAE,4BAAwB;AAElD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAI7D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mCAAmC,EAAE,cAAc,CAAC;IAOnE;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAKhG
|
|
1
|
+
{"version":3,"file":"voice-clones.d.mts","sourceRoot":"","sources":["../src/resources/voice-clones.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gC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,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;KACV;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -40,11 +40,12 @@ export declare class VoiceClones extends APIResource {
|
|
|
40
40
|
/**
|
|
41
41
|
* Creates a new voice clone by uploading an audio file directly. Supported
|
|
42
42
|
* formats: WAV, MP3, FLAC, OGG, M4A. Maximum file size: 20MB. Reference audio is
|
|
43
|
-
* trimmed per model: Qwen3TTS and
|
|
44
|
-
* 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones
|
|
45
|
-
* `202` with status `pending`; all other models return `201` with status
|
|
46
|
-
* Bayan clones require `ref_text` (the exact transcript of the reference
|
|
47
|
-
* and support `ar` (default) and `en` only.
|
|
43
|
+
* trimmed per model: Qwen3TTS, Bayan, and Resemble use the first 10 seconds, Ultra
|
|
44
|
+
* uses up to 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones
|
|
45
|
+
* return `202` with status `pending`; all other models return `201` with status
|
|
46
|
+
* `active`. Bayan clones require `ref_text` (the exact transcript of the reference
|
|
47
|
+
* audio) and support `ar` (default) and `en` only. Resemble clones
|
|
48
|
+
* (`provider: resemble`) take `model_id` `Pro`, `Turbo`, or `Urdu`.
|
|
48
49
|
*
|
|
49
50
|
* @example
|
|
50
51
|
* ```ts
|
|
@@ -122,13 +123,14 @@ export interface VoiceCloneData {
|
|
|
122
123
|
*/
|
|
123
124
|
label?: string | null;
|
|
124
125
|
/**
|
|
125
|
-
* ISO 639-1
|
|
126
|
+
* Language code of the voice clone (ISO 639-1, or the Resemble catalogue code such
|
|
127
|
+
* as `en-US`).
|
|
126
128
|
*/
|
|
127
129
|
language?: string | null;
|
|
128
130
|
/**
|
|
129
131
|
* TTS model identifier for the voice clone.
|
|
130
132
|
*/
|
|
131
|
-
model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo';
|
|
133
|
+
model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
|
|
132
134
|
/**
|
|
133
135
|
* Name of the voice clone.
|
|
134
136
|
*/
|
|
@@ -199,6 +201,10 @@ export interface VoiceDesignsPaginationMeta {
|
|
|
199
201
|
total_results?: number;
|
|
200
202
|
}
|
|
201
203
|
export interface VoiceCloneListParams extends DefaultFlatPaginationParams {
|
|
204
|
+
/**
|
|
205
|
+
* Filter by TTS model. Case-insensitive.
|
|
206
|
+
*/
|
|
207
|
+
'filter[model_id]'?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
|
|
202
208
|
/**
|
|
203
209
|
* Case-insensitive substring filter on the name field.
|
|
204
210
|
*/
|
|
@@ -276,7 +282,7 @@ export interface VoiceCloneCreateFromUploadParams {
|
|
|
276
282
|
* Multipart form data for creating a voice clone from a direct audio upload.
|
|
277
283
|
* Maximum file size: 20MB.
|
|
278
284
|
*/
|
|
279
|
-
voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone;
|
|
285
|
+
voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone | VoiceCloneCreateFromUploadParams.ResembleClone;
|
|
280
286
|
}
|
|
281
287
|
export declare namespace VoiceCloneCreateFromUploadParams {
|
|
282
288
|
/**
|
|
@@ -441,6 +447,46 @@ export declare namespace VoiceCloneCreateFromUploadParams {
|
|
|
441
447
|
*/
|
|
442
448
|
ref_text?: string;
|
|
443
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* Upload-based voice clone using the Resemble provider. The clone is `active` on
|
|
452
|
+
* creation. Use it as voice `Resemble.<model_id>.<clone_id>`.
|
|
453
|
+
*/
|
|
454
|
+
interface ResembleClone {
|
|
455
|
+
/**
|
|
456
|
+
* Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
457
|
+
* Converted to WAV and trimmed to the first 10 seconds. For best quality, provide
|
|
458
|
+
* about 10 seconds of clean, single-speaker speech. Maximum size: 20MB.
|
|
459
|
+
*/
|
|
460
|
+
audio_file: Uploadable;
|
|
461
|
+
/**
|
|
462
|
+
* Gender of the voice clone.
|
|
463
|
+
*/
|
|
464
|
+
gender: 'male' | 'female' | 'neutral';
|
|
465
|
+
/**
|
|
466
|
+
* Resemble model: `Pro`, `Turbo` (English only), or `Urdu`. A clone works only
|
|
467
|
+
* with this model.
|
|
468
|
+
*/
|
|
469
|
+
model_id: 'Pro' | 'Turbo' | 'Urdu';
|
|
470
|
+
/**
|
|
471
|
+
* Name for the voice clone.
|
|
472
|
+
*/
|
|
473
|
+
name: string;
|
|
474
|
+
/**
|
|
475
|
+
* Voice synthesis provider. Must be `resemble`.
|
|
476
|
+
*/
|
|
477
|
+
provider: 'resemble' | 'Resemble';
|
|
478
|
+
/**
|
|
479
|
+
* Optional custom label describing the voice style.
|
|
480
|
+
*/
|
|
481
|
+
label?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Language of the reference audio, matched case-insensitively. Pro: required, one
|
|
484
|
+
* of `ar`, `da`, `de`, `el`, `en-US`, `es`, `fi`, `fr-fr`, `he`, `hi`, `it`, `ja`,
|
|
485
|
+
* `ko`, `ms`, `nl`, `no`, `pl`, `pt`, `ru`, `sv`, `sw`, `tr`, `zh`. Turbo: `en` or
|
|
486
|
+
* `en-US` (default `en-US`). Urdu: `ur` (default). Other values return `422`.
|
|
487
|
+
*/
|
|
488
|
+
language?: 'ar' | 'da' | 'de' | 'el' | 'en' | 'en-US' | 'es' | 'fi' | 'fr-fr' | 'he' | 'hi' | 'it' | 'ja' | 'ko' | 'ms' | 'nl' | 'no' | 'pl' | 'pt' | 'ru' | 'sv' | 'sw' | 'tr' | 'ur' | 'zh';
|
|
489
|
+
}
|
|
444
490
|
}
|
|
445
491
|
export interface VoiceCloneUpdateParams {
|
|
446
492
|
/**
|