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
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Tailscale Subnet Router operations
|
|
7
|
+
*/
|
|
8
|
+
export declare class TailscaleSubnetRouters extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of the Tailscale Subnet Routers on the account, with
|
|
11
|
+
* support for filtering by Network.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const tailscaleSubnetRouter of client.tailscaleSubnetRouters.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(query?: TailscaleSubnetRouterListParams | null | undefined, options?: RequestOptions): PagePromise<TailscaleSubnetRoutersDefaultFlatPagination, TailscaleSubnetRouter>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a Tailscale Subnet Router on a Network and enrolls it in the user's
|
|
24
|
+
* tailnet with the auth key. The response returns the router with `status`
|
|
25
|
+
* `provisioning`. Poll `GET /tailscale_subnet_routers/{id}` until it is
|
|
26
|
+
* `provisioned`. Then approve its routes in the tailnet, unless an auto-approver
|
|
27
|
+
* covers them.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const tailscaleSubnetRouter =
|
|
32
|
+
* await client.tailscaleSubnetRouters.create({
|
|
33
|
+
* advertised_routes: ['172.27.0.0/24'],
|
|
34
|
+
* auth_key: 'tskey-auth-k1AbCdEfGh2IjKlMnOpQrStUv',
|
|
35
|
+
* name: 'tailnet-ashburn',
|
|
36
|
+
* network_id: '0de011ae-ee53-4df4-ba96-754728eb5aad',
|
|
37
|
+
* region_code: 'ashburn-va',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
create(body: TailscaleSubnetRouterCreateParams, options?: RequestOptions): APIPromise<TailscaleSubnetRouterCreateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Removes the router from the Network and logs it out of the tailnet. The response
|
|
44
|
+
* returns the router with `status` `deleting`. The record disappears once removal
|
|
45
|
+
* completes. A machine entry can remain in the tailnet's admin console until it is
|
|
46
|
+
* removed there.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const tailscaleSubnetRouter =
|
|
51
|
+
* await client.tailscaleSubnetRouters.delete(
|
|
52
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
53
|
+
* );
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
delete(id: string, options?: RequestOptions): APIPromise<TailscaleSubnetRouterDeleteResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the details of a single Tailscale Subnet Router by its identifier,
|
|
59
|
+
* including its enrollment state.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const tailscaleSubnetRouter =
|
|
64
|
+
* await client.tailscaleSubnetRouters.retrieve(
|
|
65
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TailscaleSubnetRouterRetrieveResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Renames the router, changes its advertised routes, or retries a failed
|
|
72
|
+
* enrollment. Any change queues a new provisioning run and returns the router with
|
|
73
|
+
* `status` `provisioning`. The router keeps its machine identity on the tailnet.
|
|
74
|
+
* Send an empty object to retry a `failed` router with its stored auth key.
|
|
75
|
+
* Include a new `auth_key` only while the router has never enrolled. The router's
|
|
76
|
+
* Network and region cannot change: create a new router instead.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const tailscaleSubnetRouter =
|
|
81
|
+
* await client.tailscaleSubnetRouters.update(
|
|
82
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
83
|
+
* {
|
|
84
|
+
* advertised_routes: ['172.27.0.0/24', '172.27.1.0/24'],
|
|
85
|
+
* },
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
update(id: string, body: TailscaleSubnetRouterUpdateParams, options?: RequestOptions): APIPromise<TailscaleSubnetRouterUpdateResponse>;
|
|
90
|
+
}
|
|
91
|
+
export type TailscaleSubnetRoutersDefaultFlatPagination = DefaultFlatPagination<TailscaleSubnetRouter>;
|
|
92
|
+
export interface TailscaleSubnetRouter {
|
|
93
|
+
/**
|
|
94
|
+
* Identifies the resource.
|
|
95
|
+
*/
|
|
96
|
+
id?: string;
|
|
97
|
+
/**
|
|
98
|
+
* IPv4 subnets of the Network that the router advertises to the tailnet. Each
|
|
99
|
+
* entry is a canonical CIDR that the Network routes. Default, loopback,
|
|
100
|
+
* link-local, multicast, and Tailscale (`100.64.0.0/10`) ranges are rejected. So
|
|
101
|
+
* are ranges that overlap the router's own, `172.27.254.0/24` and `198.18.0.0/20`.
|
|
102
|
+
*/
|
|
103
|
+
advertised_routes?: Array<string>;
|
|
104
|
+
/**
|
|
105
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
106
|
+
*/
|
|
107
|
+
created_at?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The router's address on the Network, from `172.27.254.0/24`. Tailnet traffic
|
|
110
|
+
* enters the Network from this address.
|
|
111
|
+
*/
|
|
112
|
+
customer_address?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The router's node id on the tailnet. Set once the router has enrolled.
|
|
115
|
+
*/
|
|
116
|
+
device_id?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* A user specified name for the router.
|
|
119
|
+
*/
|
|
120
|
+
name?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The id of the Network the router is attached to.
|
|
123
|
+
*/
|
|
124
|
+
network_id?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Identifies the type of the resource.
|
|
127
|
+
*/
|
|
128
|
+
record_type?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The code of the region the router is created in. `GET /network_coverage` lists
|
|
131
|
+
* the regions whose `available_services` include `tailscale_subnet_router`.
|
|
132
|
+
*/
|
|
133
|
+
region_code?: string;
|
|
134
|
+
/**
|
|
135
|
+
* `provisioning`: Telnyx is creating the router or applying a change.
|
|
136
|
+
* `provisioned`: the router is on the tailnet and advertises its routes; the
|
|
137
|
+
* tailnet still approves them. `failed`: enrollment did not complete, and `PATCH`
|
|
138
|
+
* retries it. `deleting`: the router is being removed.
|
|
139
|
+
*/
|
|
140
|
+
status?: 'provisioning' | 'provisioned' | 'failed' | 'deleting';
|
|
141
|
+
/**
|
|
142
|
+
* The name of the tailnet the router is enrolled in. Set once the router has
|
|
143
|
+
* enrolled.
|
|
144
|
+
*/
|
|
145
|
+
tailnet_name?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* The router's addresses on the tailnet. Empty until the router has enrolled.
|
|
148
|
+
*/
|
|
149
|
+
tailscale_ips?: Array<string>;
|
|
150
|
+
/**
|
|
151
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
152
|
+
*/
|
|
153
|
+
updated_at?: string;
|
|
154
|
+
}
|
|
155
|
+
export interface TailscaleSubnetRouterCreateResponse {
|
|
156
|
+
data?: TailscaleSubnetRouter;
|
|
157
|
+
}
|
|
158
|
+
export interface TailscaleSubnetRouterRetrieveResponse {
|
|
159
|
+
data?: TailscaleSubnetRouter;
|
|
160
|
+
}
|
|
161
|
+
export interface TailscaleSubnetRouterUpdateResponse {
|
|
162
|
+
data?: TailscaleSubnetRouter;
|
|
163
|
+
}
|
|
164
|
+
export interface TailscaleSubnetRouterDeleteResponse {
|
|
165
|
+
data?: TailscaleSubnetRouter;
|
|
166
|
+
}
|
|
167
|
+
export interface TailscaleSubnetRouterListParams extends DefaultFlatPaginationParams {
|
|
168
|
+
/**
|
|
169
|
+
* Consolidated filter parameter (deepObject style). Originally: filter[network_id]
|
|
170
|
+
*/
|
|
171
|
+
filter?: TailscaleSubnetRouterListParams.Filter;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace TailscaleSubnetRouterListParams {
|
|
174
|
+
/**
|
|
175
|
+
* Consolidated filter parameter (deepObject style). Originally: filter[network_id]
|
|
176
|
+
*/
|
|
177
|
+
interface Filter {
|
|
178
|
+
/**
|
|
179
|
+
* The id of the Network to filter on.
|
|
180
|
+
*/
|
|
181
|
+
network_id?: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export interface TailscaleSubnetRouterCreateParams {
|
|
185
|
+
/**
|
|
186
|
+
* IPv4 subnets of the Network that the router advertises to the tailnet. Each
|
|
187
|
+
* entry is a canonical CIDR that the Network routes. Default, loopback,
|
|
188
|
+
* link-local, multicast, and Tailscale (`100.64.0.0/10`) ranges are rejected. So
|
|
189
|
+
* are ranges that overlap the router's own, `172.27.254.0/24` and `198.18.0.0/20`.
|
|
190
|
+
*/
|
|
191
|
+
advertised_routes: Array<string>;
|
|
192
|
+
/**
|
|
193
|
+
* A Tailscale auth key that enrolls the router in the user's tailnet: reusable,
|
|
194
|
+
* pre-approved, tagged, and not ephemeral. Telnyx stores it encrypted until
|
|
195
|
+
* enrollment succeeds, then discards it. It is never returned.
|
|
196
|
+
*/
|
|
197
|
+
auth_key: string;
|
|
198
|
+
/**
|
|
199
|
+
* A user specified name for the router.
|
|
200
|
+
*/
|
|
201
|
+
name: string;
|
|
202
|
+
/**
|
|
203
|
+
* The id of the Network to attach the router to.
|
|
204
|
+
*/
|
|
205
|
+
network_id: string;
|
|
206
|
+
/**
|
|
207
|
+
* The code of the region to create the router in. `GET /network_coverage` lists
|
|
208
|
+
* the regions whose `available_services` include `tailscale_subnet_router`.
|
|
209
|
+
*/
|
|
210
|
+
region_code: string;
|
|
211
|
+
}
|
|
212
|
+
export interface TailscaleSubnetRouterUpdateParams {
|
|
213
|
+
/**
|
|
214
|
+
* IPv4 subnets of the Network that the router advertises to the tailnet. Each
|
|
215
|
+
* entry is a canonical CIDR that the Network routes. Default, loopback,
|
|
216
|
+
* link-local, multicast, and Tailscale (`100.64.0.0/10`) ranges are rejected. So
|
|
217
|
+
* are ranges that overlap the router's own, `172.27.254.0/24` and `198.18.0.0/20`.
|
|
218
|
+
*/
|
|
219
|
+
advertised_routes?: Array<string>;
|
|
220
|
+
/**
|
|
221
|
+
* A replacement Tailscale auth key. Accepted only while the router has never
|
|
222
|
+
* enrolled, for example after a `failed` enrollment. Never returned.
|
|
223
|
+
*/
|
|
224
|
+
auth_key?: string;
|
|
225
|
+
/**
|
|
226
|
+
* A user specified name for the router.
|
|
227
|
+
*/
|
|
228
|
+
name?: string;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace TailscaleSubnetRouters {
|
|
231
|
+
export { type TailscaleSubnetRouter as TailscaleSubnetRouter, type TailscaleSubnetRouterCreateResponse as TailscaleSubnetRouterCreateResponse, type TailscaleSubnetRouterRetrieveResponse as TailscaleSubnetRouterRetrieveResponse, type TailscaleSubnetRouterUpdateResponse as TailscaleSubnetRouterUpdateResponse, type TailscaleSubnetRouterDeleteResponse as TailscaleSubnetRouterDeleteResponse, type TailscaleSubnetRoutersDefaultFlatPagination as TailscaleSubnetRoutersDefaultFlatPagination, type TailscaleSubnetRouterListParams as TailscaleSubnetRouterListParams, type TailscaleSubnetRouterCreateParams as TailscaleSubnetRouterCreateParams, type TailscaleSubnetRouterUpdateParams as TailscaleSubnetRouterUpdateParams, };
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=tailscale-subnet-routers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailscale-subnet-routers.d.ts","sourceRoot":"","sources":["../src/resources/tailscale-subnet-routers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,8BAA2B;AAC1G,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,qBAAqB,CAAC;IAQlF;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mCAAmC,CAAC;IAI7F;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qCAAqC,CAAC;IAIjG;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,EAAE,EAAE,MA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AED,MAAM,WAAW,+BAAgC,SAAQ,2BAA2B;IAClF;;OAEG;IACH,MAAM,CAAC,EAAE,+BAA+B,CAAC,MAAM,CAAC;CACjD;AAED,yBAAiB,+BAA+B,CAAC;IAC/C;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,iCAAiC;IAChD;;;;;OAKG;IACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iCAAiC;IAChD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAElC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
exports.TailscaleSubnetRouters = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Tailscale Subnet Router operations
|
|
10
|
+
*/
|
|
11
|
+
class TailscaleSubnetRouters extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of the Tailscale Subnet Routers on the account, with
|
|
14
|
+
* support for filtering by Network.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const tailscaleSubnetRouter of client.tailscaleSubnetRouters.list()) {
|
|
20
|
+
* // ...
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
return this._client.getAPIList('/tailscale_subnet_routers', (pagination_1.DefaultFlatPagination), { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a Tailscale Subnet Router on a Network and enrolls it in the user's
|
|
29
|
+
* tailnet with the auth key. The response returns the router with `status`
|
|
30
|
+
* `provisioning`. Poll `GET /tailscale_subnet_routers/{id}` until it is
|
|
31
|
+
* `provisioned`. Then approve its routes in the tailnet, unless an auto-approver
|
|
32
|
+
* covers them.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const tailscaleSubnetRouter =
|
|
37
|
+
* await client.tailscaleSubnetRouters.create({
|
|
38
|
+
* advertised_routes: ['172.27.0.0/24'],
|
|
39
|
+
* auth_key: 'tskey-auth-k1AbCdEfGh2IjKlMnOpQrStUv',
|
|
40
|
+
* name: 'tailnet-ashburn',
|
|
41
|
+
* network_id: '0de011ae-ee53-4df4-ba96-754728eb5aad',
|
|
42
|
+
* region_code: 'ashburn-va',
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
create(body, options) {
|
|
47
|
+
return this._client.post('/tailscale_subnet_routers', { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Removes the router from the Network and logs it out of the tailnet. The response
|
|
51
|
+
* returns the router with `status` `deleting`. The record disappears once removal
|
|
52
|
+
* completes. A machine entry can remain in the tailnet's admin console until it is
|
|
53
|
+
* removed there.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const tailscaleSubnetRouter =
|
|
58
|
+
* await client.tailscaleSubnetRouters.delete(
|
|
59
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
delete(id, options) {
|
|
64
|
+
return this._client.delete((0, path_1.path) `/tailscale_subnet_routers/${id}`, options);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns the details of a single Tailscale Subnet Router by its identifier,
|
|
68
|
+
* including its enrollment state.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const tailscaleSubnetRouter =
|
|
73
|
+
* await client.tailscaleSubnetRouters.retrieve(
|
|
74
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
retrieve(id, options) {
|
|
79
|
+
return this._client.get((0, path_1.path) `/tailscale_subnet_routers/${id}`, options);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Renames the router, changes its advertised routes, or retries a failed
|
|
83
|
+
* enrollment. Any change queues a new provisioning run and returns the router with
|
|
84
|
+
* `status` `provisioning`. The router keeps its machine identity on the tailnet.
|
|
85
|
+
* Send an empty object to retry a `failed` router with its stored auth key.
|
|
86
|
+
* Include a new `auth_key` only while the router has never enrolled. The router's
|
|
87
|
+
* Network and region cannot change: create a new router instead.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const tailscaleSubnetRouter =
|
|
92
|
+
* await client.tailscaleSubnetRouters.update(
|
|
93
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
94
|
+
* {
|
|
95
|
+
* advertised_routes: ['172.27.0.0/24', '172.27.1.0/24'],
|
|
96
|
+
* },
|
|
97
|
+
* );
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
update(id, body, options) {
|
|
101
|
+
return this._client.patch((0, path_1.path) `/tailscale_subnet_routers/${id}`, { body, ...options });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.TailscaleSubnetRouters = TailscaleSubnetRouters;
|
|
105
|
+
//# sourceMappingURL=tailscale-subnet-routers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailscale-subnet-routers.js","sourceRoot":"","sources":["../src/resources/tailscale-subnet-routers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA0G;AAE1G,oDAA8C;AAE9C;;GAEG;AACH,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,2BAA2B,EAC3B,CAAA,kCAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,EAAU,EACV,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AA9GD,wDA8GC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { DefaultFlatPagination } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Tailscale Subnet Router operations
|
|
7
|
+
*/
|
|
8
|
+
export class TailscaleSubnetRouters extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of the Tailscale Subnet Routers on the account, with
|
|
11
|
+
* support for filtering by Network.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const tailscaleSubnetRouter of client.tailscaleSubnetRouters.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
return this._client.getAPIList('/tailscale_subnet_routers', (DefaultFlatPagination), { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates a Tailscale Subnet Router on a Network and enrolls it in the user's
|
|
26
|
+
* tailnet with the auth key. The response returns the router with `status`
|
|
27
|
+
* `provisioning`. Poll `GET /tailscale_subnet_routers/{id}` until it is
|
|
28
|
+
* `provisioned`. Then approve its routes in the tailnet, unless an auto-approver
|
|
29
|
+
* covers them.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const tailscaleSubnetRouter =
|
|
34
|
+
* await client.tailscaleSubnetRouters.create({
|
|
35
|
+
* advertised_routes: ['172.27.0.0/24'],
|
|
36
|
+
* auth_key: 'tskey-auth-k1AbCdEfGh2IjKlMnOpQrStUv',
|
|
37
|
+
* name: 'tailnet-ashburn',
|
|
38
|
+
* network_id: '0de011ae-ee53-4df4-ba96-754728eb5aad',
|
|
39
|
+
* region_code: 'ashburn-va',
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
create(body, options) {
|
|
44
|
+
return this._client.post('/tailscale_subnet_routers', { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Removes the router from the Network and logs it out of the tailnet. The response
|
|
48
|
+
* returns the router with `status` `deleting`. The record disappears once removal
|
|
49
|
+
* completes. A machine entry can remain in the tailnet's admin console until it is
|
|
50
|
+
* removed there.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const tailscaleSubnetRouter =
|
|
55
|
+
* await client.tailscaleSubnetRouters.delete(
|
|
56
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(id, options) {
|
|
61
|
+
return this._client.delete(path `/tailscale_subnet_routers/${id}`, options);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns the details of a single Tailscale Subnet Router by its identifier,
|
|
65
|
+
* including its enrollment state.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const tailscaleSubnetRouter =
|
|
70
|
+
* await client.tailscaleSubnetRouters.retrieve(
|
|
71
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
retrieve(id, options) {
|
|
76
|
+
return this._client.get(path `/tailscale_subnet_routers/${id}`, options);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Renames the router, changes its advertised routes, or retries a failed
|
|
80
|
+
* enrollment. Any change queues a new provisioning run and returns the router with
|
|
81
|
+
* `status` `provisioning`. The router keeps its machine identity on the tailnet.
|
|
82
|
+
* Send an empty object to retry a `failed` router with its stored auth key.
|
|
83
|
+
* Include a new `auth_key` only while the router has never enrolled. The router's
|
|
84
|
+
* Network and region cannot change: create a new router instead.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const tailscaleSubnetRouter =
|
|
89
|
+
* await client.tailscaleSubnetRouters.update(
|
|
90
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
91
|
+
* {
|
|
92
|
+
* advertised_routes: ['172.27.0.0/24', '172.27.1.0/24'],
|
|
93
|
+
* },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
update(id, body, options) {
|
|
98
|
+
return this._client.patch(path `/tailscale_subnet_routers/${id}`, { body, ...options });
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=tailscale-subnet-routers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailscale-subnet-routers.mjs","sourceRoot":"","sources":["../src/resources/tailscale-subnet-routers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,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int. Example: the
|
|
172
172
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
173
173
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
174
|
-
* alphanumeric value.
|
|
175
|
-
*
|
|
174
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
175
|
+
* TLS transport.
|
|
176
176
|
*/
|
|
177
177
|
sip_subdomain?: string;
|
|
178
178
|
/**
|
|
@@ -328,8 +328,8 @@ export declare namespace TexmlApplicationCreateParams {
|
|
|
328
328
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
329
329
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
330
330
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
331
|
-
* alphanumeric value.
|
|
332
|
-
*
|
|
331
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
332
|
+
* TLS transport.
|
|
333
333
|
*/
|
|
334
334
|
sip_subdomain?: string;
|
|
335
335
|
/**
|
|
@@ -431,8 +431,8 @@ export declare namespace TexmlApplicationUpdateParams {
|
|
|
431
431
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
432
432
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
433
433
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
434
|
-
* alphanumeric value.
|
|
435
|
-
*
|
|
434
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
435
|
+
* TLS transport.
|
|
436
436
|
*/
|
|
437
437
|
sip_subdomain?: string;
|
|
438
438
|
/**
|
|
@@ -171,8 +171,8 @@ export declare namespace TexmlApplication {
|
|
|
171
171
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
172
172
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
173
173
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
174
|
-
* alphanumeric value.
|
|
175
|
-
*
|
|
174
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
175
|
+
* TLS transport.
|
|
176
176
|
*/
|
|
177
177
|
sip_subdomain?: string;
|
|
178
178
|
/**
|
|
@@ -328,8 +328,8 @@ export declare namespace TexmlApplicationCreateParams {
|
|
|
328
328
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
329
329
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
330
330
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
331
|
-
* alphanumeric value.
|
|
332
|
-
*
|
|
331
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
332
|
+
* TLS transport.
|
|
333
333
|
*/
|
|
334
334
|
sip_subdomain?: string;
|
|
335
335
|
/**
|
|
@@ -431,8 +431,8 @@ export declare namespace TexmlApplicationUpdateParams {
|
|
|
431
431
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
432
432
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
433
433
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
434
|
-
* alphanumeric value.
|
|
435
|
-
*
|
|
434
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
435
|
+
* TLS transport.
|
|
436
436
|
*/
|
|
437
437
|
sip_subdomain?: string;
|
|
438
438
|
/**
|
|
@@ -10,7 +10,7 @@ export declare class TextToSpeech extends APIResource {
|
|
|
10
10
|
* `provider` is specified, returns voices for that provider only. Otherwise,
|
|
11
11
|
* returns voices from all providers.
|
|
12
12
|
*
|
|
13
|
-
* Some providers (ElevenLabs
|
|
13
|
+
* Some providers (ElevenLabs) require an API key to list voices.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
@@ -71,7 +71,6 @@ export declare class TextToSpeech extends APIResource {
|
|
|
71
71
|
* output_type: 'binary_output',
|
|
72
72
|
* provider: 'aws',
|
|
73
73
|
* resemble: {
|
|
74
|
-
* api_key: 'string',
|
|
75
74
|
* precision: 'string',
|
|
76
75
|
* sample_rate: 'string',
|
|
77
76
|
* format: 'string',
|
|
@@ -507,10 +506,6 @@ export declare namespace TextToSpeechGenerateSpeechParams {
|
|
|
507
506
|
* Resemble AI provider-specific parameters.
|
|
508
507
|
*/
|
|
509
508
|
interface Resemble {
|
|
510
|
-
/**
|
|
511
|
-
* Custom Resemble API key.
|
|
512
|
-
*/
|
|
513
|
-
api_key?: string;
|
|
514
509
|
/**
|
|
515
510
|
* Audio output format.
|
|
516
511
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C
|
|
1
|
+
{"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;;;;;;;;;;;;;;;;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,CAAC;QAEhD;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;QAEzD;;WAEG;QACH,WAAW,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;KAC5D;CACF;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAE5G;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -10,7 +10,7 @@ export declare class TextToSpeech extends APIResource {
|
|
|
10
10
|
* `provider` is specified, returns voices for that provider only. Otherwise,
|
|
11
11
|
* returns voices from all providers.
|
|
12
12
|
*
|
|
13
|
-
* Some providers (ElevenLabs
|
|
13
|
+
* Some providers (ElevenLabs) require an API key to list voices.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
@@ -71,7 +71,6 @@ export declare class TextToSpeech extends APIResource {
|
|
|
71
71
|
* output_type: 'binary_output',
|
|
72
72
|
* provider: 'aws',
|
|
73
73
|
* resemble: {
|
|
74
|
-
* api_key: 'string',
|
|
75
74
|
* precision: 'string',
|
|
76
75
|
* sample_rate: 'string',
|
|
77
76
|
* format: 'string',
|
|
@@ -507,10 +506,6 @@ export declare namespace TextToSpeechGenerateSpeechParams {
|
|
|
507
506
|
* Resemble AI provider-specific parameters.
|
|
508
507
|
*/
|
|
509
508
|
interface Resemble {
|
|
510
|
-
/**
|
|
511
|
-
* Custom Resemble API key.
|
|
512
|
-
*/
|
|
513
|
-
api_key?: string;
|
|
514
509
|
/**
|
|
515
510
|
* Audio output format.
|
|
516
511
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C
|
|
1
|
+
{"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE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