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
|
@@ -13,7 +13,7 @@ class TextToSpeech extends resource_1.APIResource {
|
|
|
13
13
|
* `provider` is specified, returns voices for that provider only. Otherwise,
|
|
14
14
|
* returns voices from all providers.
|
|
15
15
|
*
|
|
16
|
-
* Some providers (ElevenLabs
|
|
16
|
+
* Some providers (ElevenLabs) require an API key to list voices.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -76,7 +76,6 @@ class TextToSpeech extends resource_1.APIResource {
|
|
|
76
76
|
* output_type: 'binary_output',
|
|
77
77
|
* provider: 'aws',
|
|
78
78
|
* resemble: {
|
|
79
|
-
* api_key: 'string',
|
|
80
79
|
* precision: 'string',
|
|
81
80
|
* sample_rate: 'string',
|
|
82
81
|
* format: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.js","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"text-to-speech.js","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkFG;IACH,cAAc,CACZ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,cAAc,CACZ,QAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,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;CACF;AAtJD,oCAsJC"}
|
|
@@ -10,7 +10,7 @@ export 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
|
|
@@ -73,7 +73,6 @@ export class TextToSpeech extends APIResource {
|
|
|
73
73
|
* output_type: 'binary_output',
|
|
74
74
|
* provider: 'aws',
|
|
75
75
|
* resemble: {
|
|
76
|
-
* api_key: 'string',
|
|
77
76
|
* precision: 'string',
|
|
78
77
|
* sample_rate: 'string',
|
|
79
78
|
* format: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.mjs","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"text-to-speech.mjs","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkFG;IACH,cAAc,CACZ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,cAAc,CACZ,QAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as TunnelsAPI from "./tunnels.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
|
|
11
|
+
* already connected stay connected until they reconnect, and are then refused
|
|
12
|
+
* until they use the new token.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.tunnels.actions.rotateToken(
|
|
17
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
rotateToken(id: string, options?: RequestOptions): APIPromise<ActionRotateTokenResponse>;
|
|
22
|
+
}
|
|
23
|
+
export interface ActionRotateTokenResponse {
|
|
24
|
+
data?: TunnelsAPI.TunnelWithToken;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace Actions {
|
|
27
|
+
export { type ActionRotateTokenResponse as ActionRotateTokenResponse };
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGzF;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as TunnelsAPI from "./tunnels.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
|
|
11
|
+
* already connected stay connected until they reconnect, and are then refused
|
|
12
|
+
* until they use the new token.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.tunnels.actions.rotateToken(
|
|
17
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
rotateToken(id: string, options?: RequestOptions): APIPromise<ActionRotateTokenResponse>;
|
|
22
|
+
}
|
|
23
|
+
export interface ActionRotateTokenResponse {
|
|
24
|
+
data?: TunnelsAPI.TunnelWithToken;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace Actions {
|
|
27
|
+
export { type ActionRotateTokenResponse as ActionRotateTokenResponse };
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGzF;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.Actions = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
9
|
+
*/
|
|
10
|
+
class Actions extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
|
|
13
|
+
* already connected stay connected until they reconnect, and are then refused
|
|
14
|
+
* until they use the new token.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response = await client.tunnels.actions.rotateToken(
|
|
19
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
rotateToken(id, options) {
|
|
24
|
+
return this._client.post((0, path_1.path) `/tunnels/${id}/actions/rotate_token`, options);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Actions = Actions;
|
|
28
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAhBD,0BAgBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
6
|
+
*/
|
|
7
|
+
export class Actions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
|
|
10
|
+
* already connected stay connected until they reconnect, and are then refused
|
|
11
|
+
* until they use the new token.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response = await client.tunnels.actions.rotateToken(
|
|
16
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
rotateToken(id, options) {
|
|
21
|
+
return this._client.post(path `/tunnels/${id}/actions/rotate_token`, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=actions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Actions, type ActionRotateTokenResponse } from "./actions.mjs";
|
|
2
|
+
export { Tunnels, type Tunnel, type TunnelWithToken, type TunnelCreateResponse, type TunnelRetrieveResponse, type TunnelListResponse, type TunnelListParams, type TunnelCreateParams, } from "./tunnels.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,sBAAkB;AACpE,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,sBAAkB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Actions, type ActionRotateTokenResponse } from "./actions.js";
|
|
2
|
+
export { Tunnels, type Tunnel, type TunnelWithToken, type TunnelCreateResponse, type TunnelRetrieveResponse, type TunnelListResponse, type TunnelListParams, type TunnelCreateParams, } from "./tunnels.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,qBAAkB;AACpE,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,qBAAkB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Tunnels = exports.Actions = void 0;
|
|
5
|
+
var actions_1 = require("./actions.js");
|
|
6
|
+
Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return actions_1.Actions; } });
|
|
7
|
+
var tunnels_1 = require("./tunnels.js");
|
|
8
|
+
Object.defineProperty(exports, "Tunnels", { enumerable: true, get: function () { return tunnels_1.Tunnels; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoE;AAA3D,kGAAA,OAAO,OAAA;AAChB,wCASmB;AARjB,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAkC,sBAAkB;AACpE,OAAO,EACL,OAAO,GAQR,sBAAkB"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as NetworkRoutesAPI from "../network-routes.mjs";
|
|
3
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
4
|
+
import { ActionRotateTokenResponse, Actions } from "./actions.mjs";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnels.d.mts","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,8BAA0B;AACtD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,sBAAkB;AAC/D,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;OAQG;IACH,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EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CAC5F"}
|
|
@@ -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,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAA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