telnyx 7.28.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 +7 -0
- package/client.d.mts +35 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -4
- package/client.d.ts.map +1 -1
- package/client.js +31 -0
- package/client.js.map +1 -1
- package/client.mjs +31 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses/actions.d.mts +19 -4
- package/resources/addresses/actions.d.mts.map +1 -1
- package/resources/addresses/actions.d.ts +19 -4
- package/resources/addresses/actions.d.ts.map +1 -1
- package/resources/ai/ai.d.mts +4 -0
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +4 -0
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +31 -27
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +31 -27
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/avatars.d.mts +9 -9
- package/resources/ai/avatars.d.ts +9 -9
- package/resources/ai/avatars.js +9 -9
- package/resources/ai/avatars.mjs +9 -9
- package/resources/ai/index.d.mts +1 -0
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -0
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +5 -3
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tests/index.d.mts +4 -0
- package/resources/ai/tests/index.d.mts.map +1 -0
- package/resources/ai/tests/index.d.ts +4 -0
- package/resources/ai/tests/index.d.ts.map +1 -0
- package/resources/ai/tests/index.js +11 -0
- package/resources/ai/tests/index.js.map +1 -0
- package/resources/ai/tests/index.mjs +5 -0
- package/resources/ai/tests/index.mjs.map +1 -0
- package/resources/ai/tests/schedules/index.d.mts +3 -0
- package/resources/ai/tests/schedules/index.d.mts.map +1 -0
- package/resources/ai/tests/schedules/index.d.ts +3 -0
- package/resources/ai/tests/schedules/index.d.ts.map +1 -0
- package/resources/ai/tests/schedules/index.js +9 -0
- package/resources/ai/tests/schedules/index.js.map +1 -0
- package/resources/ai/tests/schedules/index.mjs +4 -0
- package/resources/ai/tests/schedules/index.mjs.map +1 -0
- package/resources/ai/tests/schedules/schedules.d.mts +10 -0
- package/resources/ai/tests/schedules/schedules.d.mts.map +1 -0
- package/resources/ai/tests/schedules/schedules.d.ts +10 -0
- package/resources/ai/tests/schedules/schedules.d.ts.map +1 -0
- package/resources/ai/tests/schedules/schedules.js +17 -0
- package/resources/ai/tests/schedules/schedules.js.map +1 -0
- package/resources/ai/tests/schedules/schedules.mjs +12 -0
- package/resources/ai/tests/schedules/schedules.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.mts +171 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.ts +171 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.js +88 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.js.map +1 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.mjs +84 -0
- package/resources/ai/tests/schedules/v1/cron-jobs.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1/index.d.mts +3 -0
- package/resources/ai/tests/schedules/v1/index.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1/index.d.ts +3 -0
- package/resources/ai/tests/schedules/v1/index.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1/index.js +9 -0
- package/resources/ai/tests/schedules/v1/index.js.map +1 -0
- package/resources/ai/tests/schedules/v1/index.mjs +4 -0
- package/resources/ai/tests/schedules/v1/index.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.d.mts +10 -0
- package/resources/ai/tests/schedules/v1/v1.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.d.ts +10 -0
- package/resources/ai/tests/schedules/v1/v1.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.js +17 -0
- package/resources/ai/tests/schedules/v1/v1.js.map +1 -0
- package/resources/ai/tests/schedules/v1/v1.mjs +12 -0
- package/resources/ai/tests/schedules/v1/v1.mjs.map +1 -0
- package/resources/ai/tests/schedules/v1.d.mts +2 -0
- package/resources/ai/tests/schedules/v1.d.mts.map +1 -0
- package/resources/ai/tests/schedules/v1.d.ts +2 -0
- package/resources/ai/tests/schedules/v1.d.ts.map +1 -0
- package/resources/ai/tests/schedules/v1.js +6 -0
- package/resources/ai/tests/schedules/v1.js.map +1 -0
- package/resources/ai/tests/schedules/v1.mjs +3 -0
- package/resources/ai/tests/schedules/v1.mjs.map +1 -0
- package/resources/ai/tests/schedules.d.mts +2 -0
- package/resources/ai/tests/schedules.d.mts.map +1 -0
- package/resources/ai/tests/schedules.d.ts +2 -0
- package/resources/ai/tests/schedules.d.ts.map +1 -0
- package/resources/ai/tests/schedules.js +6 -0
- package/resources/ai/tests/schedules.js.map +1 -0
- package/resources/ai/tests/schedules.mjs +3 -0
- package/resources/ai/tests/schedules.mjs.map +1 -0
- package/resources/ai/tests/test-framework/index.d.mts +3 -0
- package/resources/ai/tests/test-framework/index.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/index.d.ts +3 -0
- package/resources/ai/tests/test-framework/index.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/index.js +9 -0
- package/resources/ai/tests/test-framework/index.js.map +1 -0
- package/resources/ai/tests/test-framework/index.mjs +4 -0
- package/resources/ai/tests/test-framework/index.mjs.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.d.mts +10 -0
- package/resources/ai/tests/test-framework/test-framework.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.d.ts +10 -0
- package/resources/ai/tests/test-framework/test-framework.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.js +17 -0
- package/resources/ai/tests/test-framework/test-framework.js.map +1 -0
- package/resources/ai/tests/test-framework/test-framework.mjs +12 -0
- package/resources/ai/tests/test-framework/test-framework.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.mts +216 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.ts +216 -0
- package/resources/ai/tests/test-framework/v1/aiagents.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.js +93 -0
- package/resources/ai/tests/test-framework/v1/aiagents.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/aiagents.mjs +89 -0
- package/resources/ai/tests/test-framework/v1/aiagents.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.d.mts +6 -0
- package/resources/ai/tests/test-framework/v1/index.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.d.ts +6 -0
- package/resources/ai/tests/test-framework/v1/index.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.js +15 -0
- package/resources/ai/tests/test-framework/v1/index.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/index.mjs +7 -0
- package/resources/ai/tests/test-framework/v1/index.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.mts +339 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.ts +339 -0
- package/resources/ai/tests/test-framework/v1/metrics.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.js +145 -0
- package/resources/ai/tests/test-framework/v1/metrics.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/metrics.mjs +141 -0
- package/resources/ai/tests/test-framework/v1/metrics.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.d.mts +207 -0
- package/resources/ai/tests/test-framework/v1/results.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.d.ts +207 -0
- package/resources/ai/tests/test-framework/v1/results.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.js +65 -0
- package/resources/ai/tests/test-framework/v1/results.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/results.mjs +61 -0
- package/resources/ai/tests/test-framework/v1/results.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.mts +528 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.ts +528 -0
- package/resources/ai/tests/test-framework/v1/scenarios.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.js +222 -0
- package/resources/ai/tests/test-framework/v1/scenarios.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/scenarios.mjs +218 -0
- package/resources/ai/tests/test-framework/v1/scenarios.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.d.mts +83 -0
- package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.d.ts +83 -0
- package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.js +46 -0
- package/resources/ai/tests/test-framework/v1/v1.js.map +1 -0
- package/resources/ai/tests/test-framework/v1/v1.mjs +41 -0
- package/resources/ai/tests/test-framework/v1/v1.mjs.map +1 -0
- package/resources/ai/tests/test-framework/v1.d.mts +2 -0
- package/resources/ai/tests/test-framework/v1.d.mts.map +1 -0
- package/resources/ai/tests/test-framework/v1.d.ts +2 -0
- package/resources/ai/tests/test-framework/v1.d.ts.map +1 -0
- package/resources/ai/tests/test-framework/v1.js +6 -0
- package/resources/ai/tests/test-framework/v1.js.map +1 -0
- package/resources/ai/tests/test-framework/v1.mjs +3 -0
- package/resources/ai/tests/test-framework/v1.mjs.map +1 -0
- package/resources/ai/tests/test-framework.d.mts +2 -0
- package/resources/ai/tests/test-framework.d.mts.map +1 -0
- package/resources/ai/tests/test-framework.d.ts +2 -0
- package/resources/ai/tests/test-framework.d.ts.map +1 -0
- package/resources/ai/tests/test-framework.js +6 -0
- package/resources/ai/tests/test-framework.js.map +1 -0
- package/resources/ai/tests/test-framework.mjs +3 -0
- package/resources/ai/tests/test-framework.mjs.map +1 -0
- package/resources/ai/tests/tests.d.mts +14 -0
- package/resources/ai/tests/tests.d.mts.map +1 -0
- package/resources/ai/tests/tests.d.ts +14 -0
- package/resources/ai/tests/tests.d.ts.map +1 -0
- package/resources/ai/tests/tests.js +21 -0
- package/resources/ai/tests/tests.js.map +1 -0
- package/resources/ai/tests/tests.mjs +16 -0
- package/resources/ai/tests/tests.mjs.map +1 -0
- package/resources/ai/tests.d.mts +2 -0
- package/resources/ai/tests.d.mts.map +1 -0
- package/resources/ai/tests.d.ts +2 -0
- package/resources/ai/tests.d.ts.map +1 -0
- package/resources/ai/tests.js +6 -0
- package/resources/ai/tests.js.map +1 -0
- package/resources/ai/tests.mjs +3 -0
- package/resources/ai/tests.mjs.map +1 -0
- package/resources/artifact-downloads.d.mts +21 -0
- package/resources/artifact-downloads.d.mts.map +1 -0
- package/resources/artifact-downloads.d.ts +21 -0
- package/resources/artifact-downloads.d.ts.map +1 -0
- package/resources/artifact-downloads.js +26 -0
- package/resources/artifact-downloads.js.map +1 -0
- package/resources/artifact-downloads.mjs +22 -0
- package/resources/artifact-downloads.mjs.map +1 -0
- package/resources/bot-challenge.js +1 -1
- package/resources/bot-challenge.js.map +1 -1
- package/resources/bot-challenge.mjs +1 -1
- package/resources/bot-challenge.mjs.map +1 -1
- package/resources/bot-sessions.js +1 -1
- package/resources/bot-sessions.js.map +1 -1
- package/resources/bot-sessions.mjs +1 -1
- package/resources/bot-sessions.mjs.map +1 -1
- package/resources/bot-signup.js +2 -2
- package/resources/bot-signup.js.map +1 -1
- package/resources/bot-signup.mjs +2 -2
- package/resources/bot-signup.mjs.map +1 -1
- package/resources/browser-sessions/actions.d.mts +542 -0
- package/resources/browser-sessions/actions.d.mts.map +1 -0
- package/resources/browser-sessions/actions.d.ts +542 -0
- package/resources/browser-sessions/actions.d.ts.map +1 -0
- package/resources/browser-sessions/actions.js +55 -0
- package/resources/browser-sessions/actions.js.map +1 -0
- package/resources/browser-sessions/actions.mjs +51 -0
- package/resources/browser-sessions/actions.mjs.map +1 -0
- package/resources/browser-sessions/browser-sessions.d.mts +165 -0
- package/resources/browser-sessions/browser-sessions.d.mts.map +1 -0
- package/resources/browser-sessions/browser-sessions.d.ts +165 -0
- package/resources/browser-sessions/browser-sessions.d.ts.map +1 -0
- package/resources/browser-sessions/browser-sessions.js +87 -0
- package/resources/browser-sessions/browser-sessions.js.map +1 -0
- package/resources/browser-sessions/browser-sessions.mjs +82 -0
- package/resources/browser-sessions/browser-sessions.mjs.map +1 -0
- package/resources/browser-sessions/index.d.mts +3 -0
- package/resources/browser-sessions/index.d.mts.map +1 -0
- package/resources/browser-sessions/index.d.ts +3 -0
- package/resources/browser-sessions/index.d.ts.map +1 -0
- package/resources/browser-sessions/index.js +9 -0
- package/resources/browser-sessions/index.js.map +1 -0
- package/resources/browser-sessions/index.mjs +4 -0
- package/resources/browser-sessions/index.mjs.map +1 -0
- package/resources/browser-sessions.d.mts +2 -0
- package/resources/browser-sessions.d.mts.map +1 -0
- package/resources/browser-sessions.d.ts +2 -0
- package/resources/browser-sessions.d.ts.map +1 -0
- package/resources/browser-sessions.js +6 -0
- package/resources/browser-sessions.js.map +1 -0
- package/resources/browser-sessions.mjs +3 -0
- package/resources/browser-sessions.mjs.map +1 -0
- package/resources/call-control-applications.d.mts +2 -2
- package/resources/call-control-applications.d.ts +2 -2
- package/resources/calls/actions.d.mts +35 -28
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +35 -28
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/conferences/actions.d.mts +3 -2
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +3 -2
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/email/dedicated-ips/actions.d.mts +73 -0
- package/resources/email/dedicated-ips/actions.d.mts.map +1 -0
- package/resources/email/dedicated-ips/actions.d.ts +73 -0
- package/resources/email/dedicated-ips/actions.d.ts.map +1 -0
- package/resources/email/dedicated-ips/actions.js +84 -0
- package/resources/email/dedicated-ips/actions.js.map +1 -0
- package/resources/email/dedicated-ips/actions.mjs +80 -0
- package/resources/email/dedicated-ips/actions.mjs.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.mts +444 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.ts +444 -0
- package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.js +142 -0
- package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -0
- package/resources/email/dedicated-ips/dedicated-ips.mjs +137 -0
- package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -0
- package/resources/email/dedicated-ips/index.d.mts +3 -0
- package/resources/email/dedicated-ips/index.d.mts.map +1 -0
- package/resources/email/dedicated-ips/index.d.ts +3 -0
- package/resources/email/dedicated-ips/index.d.ts.map +1 -0
- package/resources/email/dedicated-ips/index.js +9 -0
- package/resources/email/dedicated-ips/index.js.map +1 -0
- package/resources/email/dedicated-ips/index.mjs +4 -0
- package/resources/email/dedicated-ips/index.mjs.map +1 -0
- package/resources/email/dedicated-ips.d.mts +2 -0
- package/resources/email/dedicated-ips.d.mts.map +1 -0
- package/resources/email/dedicated-ips.d.ts +2 -0
- package/resources/email/dedicated-ips.d.ts.map +1 -0
- package/resources/email/dedicated-ips.js +6 -0
- package/resources/email/dedicated-ips.js.map +1 -0
- package/resources/email/dedicated-ips.mjs +3 -0
- package/resources/email/dedicated-ips.mjs.map +1 -0
- package/resources/email/email.d.mts +14 -0
- package/resources/email/email.d.mts.map +1 -0
- package/resources/email/email.d.ts +14 -0
- package/resources/email/email.d.ts.map +1 -0
- package/resources/email/email.js +21 -0
- package/resources/email/email.js.map +1 -0
- package/resources/email/email.mjs +16 -0
- package/resources/email/email.mjs.map +1 -0
- package/resources/email/index.d.mts +4 -0
- package/resources/email/index.d.mts.map +1 -0
- package/resources/email/index.d.ts +4 -0
- package/resources/email/index.d.ts.map +1 -0
- package/resources/email/index.js +11 -0
- package/resources/email/index.js.map +1 -0
- package/resources/email/index.mjs +5 -0
- package/resources/email/index.mjs.map +1 -0
- package/resources/email/ip-pools/index.d.mts +3 -0
- package/resources/email/ip-pools/index.d.mts.map +1 -0
- package/resources/email/ip-pools/index.d.ts +3 -0
- package/resources/email/ip-pools/index.d.ts.map +1 -0
- package/resources/email/ip-pools/index.js +9 -0
- package/resources/email/ip-pools/index.js.map +1 -0
- package/resources/email/ip-pools/index.mjs +4 -0
- package/resources/email/ip-pools/index.mjs.map +1 -0
- package/resources/email/ip-pools/ip-pools.d.mts +184 -0
- package/resources/email/ip-pools/ip-pools.d.mts.map +1 -0
- package/resources/email/ip-pools/ip-pools.d.ts +184 -0
- package/resources/email/ip-pools/ip-pools.d.ts.map +1 -0
- package/resources/email/ip-pools/ip-pools.js +102 -0
- package/resources/email/ip-pools/ip-pools.js.map +1 -0
- package/resources/email/ip-pools/ip-pools.mjs +97 -0
- package/resources/email/ip-pools/ip-pools.mjs.map +1 -0
- package/resources/email/ip-pools/ips.d.mts +83 -0
- package/resources/email/ip-pools/ips.d.mts.map +1 -0
- package/resources/email/ip-pools/ips.d.ts +83 -0
- package/resources/email/ip-pools/ips.d.ts.map +1 -0
- package/resources/email/ip-pools/ips.js +54 -0
- package/resources/email/ip-pools/ips.js.map +1 -0
- package/resources/email/ip-pools/ips.mjs +50 -0
- package/resources/email/ip-pools/ips.mjs.map +1 -0
- package/resources/email/ip-pools.d.mts +2 -0
- package/resources/email/ip-pools.d.mts.map +1 -0
- package/resources/email/ip-pools.d.ts +2 -0
- package/resources/email/ip-pools.d.ts.map +1 -0
- package/resources/email/ip-pools.js +6 -0
- package/resources/email/ip-pools.js.map +1 -0
- package/resources/email/ip-pools.mjs +3 -0
- package/resources/email/ip-pools.mjs.map +1 -0
- package/resources/email.d.mts +2 -0
- package/resources/email.d.mts.map +1 -0
- package/resources/email.d.ts +2 -0
- package/resources/email.d.ts.map +1 -0
- package/resources/email.js +6 -0
- package/resources/email.js.map +1 -0
- package/resources/email.mjs +3 -0
- package/resources/email.mjs.map +1 -0
- package/resources/fax-applications.d.mts +6 -6
- package/resources/fax-applications.d.ts +6 -6
- package/resources/fqdn-connections/fqdn-connections.d.mts +2 -2
- package/resources/fqdn-connections/fqdn-connections.d.ts +2 -2
- package/resources/index.d.mts +8 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +16 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +4 -4
- package/resources/ip-connections.d.ts +4 -4
- package/resources/messaging-profiles/index.d.mts +1 -1
- package/resources/messaging-profiles/index.d.mts.map +1 -1
- package/resources/messaging-profiles/index.d.ts +1 -1
- package/resources/messaging-profiles/index.d.ts.map +1 -1
- package/resources/messaging-profiles/index.js.map +1 -1
- package/resources/messaging-profiles/index.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +26 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +26 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/network-routes.d.mts +257 -0
- package/resources/network-routes.d.mts.map +1 -0
- package/resources/network-routes.d.ts +257 -0
- package/resources/network-routes.d.ts.map +1 -0
- package/resources/network-routes.js +83 -0
- package/resources/network-routes.js.map +1 -0
- package/resources/network-routes.mjs +79 -0
- package/resources/network-routes.mjs.map +1 -0
- package/resources/pay-connectors.d.mts +378 -0
- package/resources/pay-connectors.d.mts.map +1 -0
- package/resources/pay-connectors.d.ts +378 -0
- package/resources/pay-connectors.d.ts.map +1 -0
- package/resources/pay-connectors.js +116 -0
- package/resources/pay-connectors.js.map +1 -0
- package/resources/pay-connectors.mjs +112 -0
- package/resources/pay-connectors.mjs.map +1 -0
- package/resources/public-internet-gateways.d.mts +0 -8
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +0 -8
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/spend-limits.d.mts +150 -32
- package/resources/spend-limits.d.mts.map +1 -1
- package/resources/spend-limits.d.ts +150 -32
- package/resources/spend-limits.d.ts.map +1 -1
- package/resources/spend-limits.js +26 -7
- package/resources/spend-limits.js.map +1 -1
- package/resources/spend-limits.mjs +26 -7
- package/resources/spend-limits.mjs.map +1 -1
- package/resources/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 +126 -0
- package/src/resources/addresses/actions.ts +23 -4
- package/src/resources/ai/ai.ts +6 -0
- package/src/resources/ai/assistants/assistants.ts +31 -24
- package/src/resources/ai/avatars.ts +9 -9
- package/src/resources/ai/index.ts +1 -0
- package/src/resources/ai/tests/index.ts +5 -0
- package/src/resources/ai/tests/schedules/index.ts +4 -0
- package/src/resources/ai/tests/schedules/schedules.ts +15 -0
- package/src/resources/ai/tests/schedules/v1/cron-jobs.ts +248 -0
- package/src/resources/ai/tests/schedules/v1/index.ts +12 -0
- package/src/resources/ai/tests/schedules/v1/v1.ts +31 -0
- package/src/resources/ai/tests/schedules/v1.ts +3 -0
- package/src/resources/ai/tests/schedules.ts +3 -0
- package/src/resources/ai/tests/test-framework/index.ts +4 -0
- package/src/resources/ai/tests/test-framework/test-framework.ts +15 -0
- package/src/resources/ai/tests/test-framework/v1/aiagents.ts +304 -0
- package/src/resources/ai/tests/test-framework/v1/index.ts +54 -0
- package/src/resources/ai/tests/test-framework/v1/metrics.ts +491 -0
- package/src/resources/ai/tests/test-framework/v1/results.ts +304 -0
- package/src/resources/ai/tests/test-framework/v1/scenarios.ts +774 -0
- package/src/resources/ai/tests/test-framework/v1/v1.ts +214 -0
- package/src/resources/ai/tests/test-framework/v1.ts +3 -0
- package/src/resources/ai/tests/test-framework.ts +3 -0
- package/src/resources/ai/tests/tests.ts +21 -0
- package/src/resources/ai/tests.ts +3 -0
- package/src/resources/artifact-downloads.ts +39 -0
- package/src/resources/bot-challenge.ts +1 -1
- package/src/resources/bot-sessions.ts +1 -1
- package/src/resources/bot-signup.ts +2 -2
- package/src/resources/browser-sessions/actions.ts +778 -0
- package/src/resources/browser-sessions/browser-sessions.ts +278 -0
- package/src/resources/browser-sessions/index.ts +31 -0
- package/src/resources/browser-sessions.ts +3 -0
- package/src/resources/call-control-applications.ts +2 -2
- package/src/resources/calls/actions.ts +38 -27
- package/src/resources/conferences/actions.ts +3 -2
- package/src/resources/email/dedicated-ips/actions.ts +87 -0
- package/src/resources/email/dedicated-ips/dedicated-ips.ts +563 -0
- package/src/resources/email/dedicated-ips/index.ts +13 -0
- package/src/resources/email/dedicated-ips.ts +3 -0
- package/src/resources/email/email.ts +55 -0
- package/src/resources/email/index.ts +22 -0
- package/src/resources/email/ip-pools/index.ts +12 -0
- package/src/resources/email/ip-pools/ip-pools.ts +247 -0
- package/src/resources/email/ip-pools/ips.ts +112 -0
- package/src/resources/email/ip-pools.ts +3 -0
- package/src/resources/email.ts +3 -0
- package/src/resources/fax-applications.ts +6 -6
- package/src/resources/fqdn-connections/fqdn-connections.ts +2 -2
- package/src/resources/index.ts +46 -0
- package/src/resources/ip-connections.ts +4 -4
- package/src/resources/messaging-profiles/index.ts +1 -0
- package/src/resources/messaging-profiles/messaging-profiles.ts +31 -0
- package/src/resources/network-routes.ts +332 -0
- package/src/resources/pay-connectors.ts +482 -0
- package/src/resources/public-internet-gateways.ts +0 -10
- package/src/resources/spend-limits.ts +179 -36
- package/src/resources/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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as SpendLimitsAPI from './spend-limits';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../internal/request-options';
|
|
6
7
|
import { path } from '../internal/utils/path';
|
|
@@ -12,6 +13,7 @@ import { path } from '../internal/utils/path';
|
|
|
12
13
|
* - **Blocking.** When spend in a period goes above the limit (strictly greater), the product is blocked until the period ends: 00:00 UTC the next day for `daily`, 00:00 UTC on the 1st of the next month for `monthly`. A block appears within about 2 minutes (daily) or 10 minutes (monthly) of the spend being recorded.
|
|
13
14
|
* - **Changes apply immediately.** Creating, updating or deleting a limit checks the period's spend in the same request: raising the limit above the spend, or removing it, lifts that period's block, and lowering it below the spend blocks the product at once. The `evaluation` object in the response says what happened.
|
|
14
15
|
* - **Supported products.** Today only `inference` supports spend limits. A blocked account gets HTTP 403 with the error title `Inference spend limit reached` (code `10039`) on new billable chat completions, Responses, Anthropic Messages and classification requests; requests already running finish normally. Take the list of products from the list operation.
|
|
16
|
+
* - **API key limits.** For `inference`, a limit can also apply to one API key, named by `credential_id`: the key's identifier as recorded on usage, never its secret. When the key's spend goes above its own limit, only that key is blocked, with the error title `API key spend limit reached` (code `10039`); the account's other keys keep working. The API key limits of a period cannot add up to more than the total limit when the total has an amount. Only language-model requests authenticated with an API key count toward its limit.
|
|
15
17
|
* - **Limits set by Telnyx.** Telnyx support can also set a limit on your account. It is listed with `origin: operator` and you can update or delete it like your own.
|
|
16
18
|
*/
|
|
17
19
|
export class SpendLimits extends APIResource {
|
|
@@ -20,7 +22,9 @@ export class SpendLimits extends APIResource {
|
|
|
20
22
|
* the spend so far in the period and whether the product is blocked. An entry
|
|
21
23
|
* without a limit is still listed (`limit: null`). When the spend cannot be read,
|
|
22
24
|
* the entry is returned with `spend_usd: null` and `spend_error` set. The list is
|
|
23
|
-
* not paginated.
|
|
25
|
+
* not paginated. Each entry also lists the API key limits of its product and
|
|
26
|
+
* period in `credential_limits`, with each key's spend and block. Each API key
|
|
27
|
+
* limit can be at most the total limit; together they may add up to more than it.
|
|
24
28
|
*
|
|
25
29
|
* @example
|
|
26
30
|
* ```ts
|
|
@@ -36,7 +40,9 @@ export class SpendLimits extends APIResource {
|
|
|
36
40
|
* `amount` and `unlimited: true`. The period's spend is checked at once: if it is
|
|
37
41
|
* already above the new limit, the product is blocked immediately
|
|
38
42
|
* (`evaluation.blocked_now`). Returns 409 when a limit already exists for the
|
|
39
|
-
* product and period; update it instead.
|
|
43
|
+
* product and period; update it instead. With `credential_id`, the limit applies
|
|
44
|
+
* to that API key only: it needs an `amount`, and the period's API key limits
|
|
45
|
+
* cannot add up to more than the total limit when the total has an amount.
|
|
40
46
|
*
|
|
41
47
|
* @example
|
|
42
48
|
* ```ts
|
|
@@ -57,7 +63,11 @@ export class SpendLimits extends APIResource {
|
|
|
57
63
|
* default limit, the product becomes unlimited for the period and the period's
|
|
58
64
|
* block is lifted (`evaluation.released`). The response carries `limit: null` and
|
|
59
65
|
* the `effective_limit_usd` that applies after the removal. Returns 404 when no
|
|
60
|
-
* limit is set.
|
|
66
|
+
* limit is set. With the `credential_id` query parameter, the request removes that
|
|
67
|
+
* API key's limit for the period and lifts the key's block in that period at once.
|
|
68
|
+
* A block under the key's limit in the other period stays
|
|
69
|
+
* (`evaluation.still_blocked_other_period`). Removing the total limit leaves the
|
|
70
|
+
* API key limits in place.
|
|
61
71
|
*
|
|
62
72
|
* @example
|
|
63
73
|
* ```ts
|
|
@@ -71,8 +81,11 @@ export class SpendLimits extends APIResource {
|
|
|
71
81
|
params: SpendLimitDeleteParams | null | undefined = {},
|
|
72
82
|
options?: RequestOptions,
|
|
73
83
|
): APIPromise<SpendLimitResponse> {
|
|
74
|
-
const { period, reason } = params ?? {};
|
|
75
|
-
return this._client.delete(path`/spend_limits/${product}`, {
|
|
84
|
+
const { credential_id, period, reason } = params ?? {};
|
|
85
|
+
return this._client.delete(path`/spend_limits/${product}`, {
|
|
86
|
+
query: { credential_id, period, reason },
|
|
87
|
+
...options,
|
|
88
|
+
});
|
|
76
89
|
}
|
|
77
90
|
|
|
78
91
|
/**
|
|
@@ -81,6 +94,9 @@ export class SpendLimits extends APIResource {
|
|
|
81
94
|
* once: raising the limit above the spend lifts the period's block
|
|
82
95
|
* (`evaluation.released`), and lowering it below the spend blocks the product
|
|
83
96
|
* (`evaluation.blocked_now`). Returns 404 when no limit is set; create it instead.
|
|
97
|
+
* With the `credential_id` query parameter, the request changes that API key's
|
|
98
|
+
* limit; it needs an `amount`, and it can be at most the period's total limit.
|
|
99
|
+
* Lowering the total limit below the period's highest API key limit is refused.
|
|
84
100
|
*
|
|
85
101
|
* @example
|
|
86
102
|
* ```ts
|
|
@@ -95,23 +111,30 @@ export class SpendLimits extends APIResource {
|
|
|
95
111
|
params: SpendLimitUpdateParams,
|
|
96
112
|
options?: RequestOptions,
|
|
97
113
|
): APIPromise<SpendLimitResponse> {
|
|
98
|
-
const { period, ...body } = params;
|
|
99
|
-
return this._client.patch(path`/spend_limits/${product}`, {
|
|
114
|
+
const { credential_id, period, ...body } = params;
|
|
115
|
+
return this._client.patch(path`/spend_limits/${product}`, {
|
|
116
|
+
query: { credential_id, period },
|
|
117
|
+
body,
|
|
118
|
+
...options,
|
|
119
|
+
});
|
|
100
120
|
}
|
|
101
121
|
}
|
|
102
122
|
|
|
103
123
|
/**
|
|
104
|
-
* The spend limit, spend and block state of one product and period.
|
|
124
|
+
* The spend limit, spend and block state of one product and period. The top-level
|
|
125
|
+
* fields describe the total limit of the account; API key limits are nested in
|
|
126
|
+
* `credential_limits`.
|
|
105
127
|
*/
|
|
106
128
|
export interface SpendLimit {
|
|
107
129
|
/**
|
|
108
130
|
* The active block of the period. `null` when the period is not blocked.
|
|
109
131
|
*/
|
|
110
|
-
block:
|
|
132
|
+
block: SpendLimitBlock | null;
|
|
111
133
|
|
|
112
134
|
/**
|
|
113
|
-
* The product is blocked for
|
|
114
|
-
*
|
|
135
|
+
* The product is blocked for the whole account in this period (total limit). An
|
|
136
|
+
* API key's own block appears only in `credential_limits`. Always `false` in write
|
|
137
|
+
* responses; list the limits to read the block state.
|
|
115
138
|
*/
|
|
116
139
|
blocked: boolean;
|
|
117
140
|
|
|
@@ -167,6 +190,19 @@ export interface SpendLimit {
|
|
|
167
190
|
*/
|
|
168
191
|
spend_usd: string | null;
|
|
169
192
|
|
|
193
|
+
/**
|
|
194
|
+
* In write responses, the API key the write was about; `null` for the total limit.
|
|
195
|
+
* Always `null` in list entries, which describe the total limit.
|
|
196
|
+
*/
|
|
197
|
+
credential_id?: string | null;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* List responses only. One item per API key limit of the product and period,
|
|
201
|
+
* sorted by `credential_id`, plus every API key that is still blocked. `[]` when
|
|
202
|
+
* there are none.
|
|
203
|
+
*/
|
|
204
|
+
credential_limits?: Array<SpendLimit.CredentialLimit>;
|
|
205
|
+
|
|
170
206
|
/**
|
|
171
207
|
* What a create, update or delete did to the period at once. Only present in write
|
|
172
208
|
* responses.
|
|
@@ -176,56 +212,99 @@ export interface SpendLimit {
|
|
|
176
212
|
|
|
177
213
|
export namespace SpendLimit {
|
|
178
214
|
/**
|
|
179
|
-
* The
|
|
215
|
+
* The limit set on the account for the product and period, whoever set it. `null`
|
|
216
|
+
* when none is set.
|
|
180
217
|
*/
|
|
181
|
-
export interface
|
|
218
|
+
export interface Limit {
|
|
182
219
|
/**
|
|
183
|
-
*
|
|
184
|
-
* latest.
|
|
220
|
+
* Limit in USD, as a decimal string. `null` when `unlimited` is true.
|
|
185
221
|
*/
|
|
186
|
-
|
|
222
|
+
amount: string | null;
|
|
187
223
|
|
|
188
224
|
/**
|
|
189
|
-
*
|
|
225
|
+
* `self_service` when a user of the account set it, `operator` when Telnyx support
|
|
226
|
+
* did.
|
|
190
227
|
*/
|
|
191
|
-
|
|
228
|
+
origin: 'self_service' | 'operator';
|
|
192
229
|
|
|
193
230
|
/**
|
|
194
|
-
*
|
|
231
|
+
* True when the limit was set to explicitly no cap.
|
|
195
232
|
*/
|
|
196
|
-
|
|
233
|
+
unlimited: boolean;
|
|
197
234
|
|
|
198
235
|
/**
|
|
199
|
-
*
|
|
236
|
+
* When the limit was last set or changed.
|
|
200
237
|
*/
|
|
201
|
-
|
|
238
|
+
updated_at: string;
|
|
202
239
|
}
|
|
203
240
|
|
|
204
241
|
/**
|
|
205
|
-
* The limit
|
|
206
|
-
* when none is set.
|
|
242
|
+
* The limit, spend and block state of one API key in the product and period.
|
|
207
243
|
*/
|
|
208
|
-
export interface
|
|
244
|
+
export interface CredentialLimit {
|
|
209
245
|
/**
|
|
210
|
-
*
|
|
246
|
+
* The active block of the period. `null` when the period is not blocked.
|
|
211
247
|
*/
|
|
212
|
-
|
|
248
|
+
block: SpendLimitsAPI.SpendLimitBlock | null;
|
|
213
249
|
|
|
214
250
|
/**
|
|
215
|
-
*
|
|
216
|
-
* did.
|
|
251
|
+
* This API key is blocked for the period.
|
|
217
252
|
*/
|
|
218
|
-
|
|
253
|
+
blocked: boolean;
|
|
219
254
|
|
|
220
255
|
/**
|
|
221
|
-
*
|
|
256
|
+
* Identifier of the API key as recorded on usage. Never the key's secret.
|
|
222
257
|
*/
|
|
223
|
-
|
|
258
|
+
credential_id: string;
|
|
224
259
|
|
|
225
260
|
/**
|
|
226
|
-
*
|
|
261
|
+
* The limit of one API key. It always has an amount. `null` for an API key that is
|
|
262
|
+
* still blocked after its limit was removed.
|
|
227
263
|
*/
|
|
228
|
-
|
|
264
|
+
limit: CredentialLimit.Limit | null;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Set when `spend_usd` is `null`.
|
|
268
|
+
*/
|
|
269
|
+
spend_error: string | null;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Spend in USD in the period made with exactly this API key, as a decimal string.
|
|
273
|
+
* Usage without an API key identifier, or with another one, counts only toward the
|
|
274
|
+
* total. `null` when it could not be read.
|
|
275
|
+
*/
|
|
276
|
+
spend_usd: string | null;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* The API key's limit is above the period's total limit. Only a change by Telnyx
|
|
280
|
+
* support can cause it; the total limit still applies to the whole account. Lower
|
|
281
|
+
* the API key limit or raise the total.
|
|
282
|
+
*/
|
|
283
|
+
exceeds_total?: boolean;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export namespace CredentialLimit {
|
|
287
|
+
/**
|
|
288
|
+
* The limit of one API key. It always has an amount. `null` for an API key that is
|
|
289
|
+
* still blocked after its limit was removed.
|
|
290
|
+
*/
|
|
291
|
+
export interface Limit {
|
|
292
|
+
/**
|
|
293
|
+
* Limit in USD, as a decimal string.
|
|
294
|
+
*/
|
|
295
|
+
amount: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* `self_service` when a user of the account set it, `operator` when Telnyx support
|
|
299
|
+
* did.
|
|
300
|
+
*/
|
|
301
|
+
origin: 'self_service' | 'operator';
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* When the limit was last set or changed.
|
|
305
|
+
*/
|
|
306
|
+
updated_at: string;
|
|
307
|
+
}
|
|
229
308
|
}
|
|
230
309
|
|
|
231
310
|
/**
|
|
@@ -257,7 +336,7 @@ export namespace SpendLimit {
|
|
|
257
336
|
|
|
258
337
|
/**
|
|
259
338
|
* The other period has an active block, so the product stays blocked whatever this
|
|
260
|
-
* period's result.
|
|
339
|
+
* period's result. For an API key write, the API key's limit in the other period.
|
|
261
340
|
*/
|
|
262
341
|
still_blocked_other_period: boolean;
|
|
263
342
|
|
|
@@ -266,6 +345,12 @@ export namespace SpendLimit {
|
|
|
266
345
|
*/
|
|
267
346
|
still_over_limit: boolean;
|
|
268
347
|
|
|
348
|
+
/**
|
|
349
|
+
* API key writes only: the account itself remains blocked for the product under a
|
|
350
|
+
* total limit. Absent for total limit writes.
|
|
351
|
+
*/
|
|
352
|
+
account_blocked?: boolean;
|
|
353
|
+
|
|
269
354
|
/**
|
|
270
355
|
* Additional information about the result, when there is any.
|
|
271
356
|
*/
|
|
@@ -273,6 +358,32 @@ export namespace SpendLimit {
|
|
|
273
358
|
}
|
|
274
359
|
}
|
|
275
360
|
|
|
361
|
+
/**
|
|
362
|
+
* The active block of the period. `null` when the period is not blocked.
|
|
363
|
+
*/
|
|
364
|
+
export interface SpendLimitBlock {
|
|
365
|
+
/**
|
|
366
|
+
* Exclusive end of the block: it is lifted at 00:00 UTC on this date at the
|
|
367
|
+
* latest.
|
|
368
|
+
*/
|
|
369
|
+
blocked_until: string;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* When the block started.
|
|
373
|
+
*/
|
|
374
|
+
detected_at: string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* The limit in USD that the spend went above, as a decimal string.
|
|
378
|
+
*/
|
|
379
|
+
limit_usd: string;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Spend in USD when the block started, as a decimal string.
|
|
383
|
+
*/
|
|
384
|
+
spend_usd: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
276
387
|
/**
|
|
277
388
|
* `daily` is the current UTC day; `monthly` is the current UTC calendar month.
|
|
278
389
|
*/
|
|
@@ -280,7 +391,9 @@ export type SpendLimitPeriod = 'daily' | 'monthly';
|
|
|
280
391
|
|
|
281
392
|
export interface SpendLimitResponse {
|
|
282
393
|
/**
|
|
283
|
-
* The spend limit, spend and block state of one product and period.
|
|
394
|
+
* The spend limit, spend and block state of one product and period. The top-level
|
|
395
|
+
* fields describe the total limit of the account; API key limits are nested in
|
|
396
|
+
* `credential_limits`.
|
|
284
397
|
*/
|
|
285
398
|
data: SpendLimit;
|
|
286
399
|
}
|
|
@@ -319,6 +432,14 @@ export declare namespace SpendLimitCreateParams {
|
|
|
319
432
|
*/
|
|
320
433
|
product: string;
|
|
321
434
|
|
|
435
|
+
/**
|
|
436
|
+
* Optional. Identifier of one API key as recorded on usage, never the key's
|
|
437
|
+
* secret: the limit then applies to that key only. Absent or `null` sets the total
|
|
438
|
+
* limit. A blank value, or one with control characters, is refused; it never means
|
|
439
|
+
* the total limit. An API key limit always has an `amount`.
|
|
440
|
+
*/
|
|
441
|
+
credential_id?: string | null;
|
|
442
|
+
|
|
322
443
|
/**
|
|
323
444
|
* `daily` is the current UTC day; `monthly` is the current UTC calendar month.
|
|
324
445
|
*/
|
|
@@ -359,6 +480,13 @@ export declare namespace SpendLimitCreateParams {
|
|
|
359
480
|
}
|
|
360
481
|
|
|
361
482
|
export interface SpendLimitDeleteParams {
|
|
483
|
+
/**
|
|
484
|
+
* Identifier of one API key as recorded on usage, never the key's secret,
|
|
485
|
+
* percent-encoded: the request is then about that key's limit. Absent means the
|
|
486
|
+
* total limit; present but blank is refused.
|
|
487
|
+
*/
|
|
488
|
+
credential_id?: string;
|
|
489
|
+
|
|
362
490
|
/**
|
|
363
491
|
* Limit period. Defaults to `daily`; send it explicitly.
|
|
364
492
|
*/
|
|
@@ -381,6 +509,13 @@ export declare namespace SpendLimitUpdateParams {
|
|
|
381
509
|
*/
|
|
382
510
|
amount: number;
|
|
383
511
|
|
|
512
|
+
/**
|
|
513
|
+
* Query param: Identifier of one API key as recorded on usage, never the key's
|
|
514
|
+
* secret, percent-encoded: the request is then about that key's limit. Absent
|
|
515
|
+
* means the total limit; present but blank is refused.
|
|
516
|
+
*/
|
|
517
|
+
credential_id?: string;
|
|
518
|
+
|
|
384
519
|
/**
|
|
385
520
|
* Query param: Limit period. Defaults to `daily`; send it explicitly.
|
|
386
521
|
*/
|
|
@@ -403,6 +538,13 @@ export declare namespace SpendLimitUpdateParams {
|
|
|
403
538
|
*/
|
|
404
539
|
unlimited: true;
|
|
405
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Query param: Identifier of one API key as recorded on usage, never the key's
|
|
543
|
+
* secret, percent-encoded: the request is then about that key's limit. Absent
|
|
544
|
+
* means the total limit; present but blank is refused.
|
|
545
|
+
*/
|
|
546
|
+
credential_id?: string;
|
|
547
|
+
|
|
406
548
|
/**
|
|
407
549
|
* Query param: Limit period. Defaults to `daily`; send it explicitly.
|
|
408
550
|
*/
|
|
@@ -418,6 +560,7 @@ export declare namespace SpendLimitUpdateParams {
|
|
|
418
560
|
export declare namespace SpendLimits {
|
|
419
561
|
export {
|
|
420
562
|
type SpendLimit as SpendLimit,
|
|
563
|
+
type SpendLimitBlock as SpendLimitBlock,
|
|
421
564
|
type SpendLimitPeriod as SpendLimitPeriod,
|
|
422
565
|
type SpendLimitResponse as SpendLimitResponse,
|
|
423
566
|
type SpendLimitListResponse as SpendLimitListResponse,
|
|
@@ -225,8 +225,8 @@ export namespace TexmlApplication {
|
|
|
225
225
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
226
226
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
227
227
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
228
|
-
* alphanumeric value.
|
|
229
|
-
*
|
|
228
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
229
|
+
* TLS transport.
|
|
230
230
|
*/
|
|
231
231
|
sip_subdomain?: string;
|
|
232
232
|
|
|
@@ -411,8 +411,8 @@ export namespace TexmlApplicationCreateParams {
|
|
|
411
411
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
412
412
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
413
413
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
414
|
-
* alphanumeric value.
|
|
415
|
-
*
|
|
414
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
415
|
+
* TLS transport.
|
|
416
416
|
*/
|
|
417
417
|
sip_subdomain?: string;
|
|
418
418
|
|
|
@@ -535,8 +535,8 @@ export namespace TexmlApplicationUpdateParams {
|
|
|
535
535
|
* in the same way a phone number is used, from a SIP endpoint. Example: the
|
|
536
536
|
* subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using
|
|
537
537
|
* the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any
|
|
538
|
-
* alphanumeric value.
|
|
539
|
-
*
|
|
538
|
+
* alphanumeric value. TLS signaling is supported. SRTP media encryption requires
|
|
539
|
+
* TLS transport.
|
|
540
540
|
*/
|
|
541
541
|
sip_subdomain?: string;
|
|
542
542
|
|
|
@@ -14,7 +14,7 @@ export class TextToSpeech extends APIResource {
|
|
|
14
14
|
* `provider` is specified, returns voices for that provider only. Otherwise,
|
|
15
15
|
* returns voices from all providers.
|
|
16
16
|
*
|
|
17
|
-
* Some providers (ElevenLabs
|
|
17
|
+
* Some providers (ElevenLabs) require an API key to list voices.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```ts
|
|
@@ -81,7 +81,6 @@ export class TextToSpeech extends APIResource {
|
|
|
81
81
|
* output_type: 'binary_output',
|
|
82
82
|
* provider: 'aws',
|
|
83
83
|
* resemble: {
|
|
84
|
-
* api_key: 'string',
|
|
85
84
|
* precision: 'string',
|
|
86
85
|
* sample_rate: 'string',
|
|
87
86
|
* format: 'string',
|
|
@@ -597,11 +596,6 @@ export namespace TextToSpeechGenerateSpeechParams {
|
|
|
597
596
|
* Resemble AI provider-specific parameters.
|
|
598
597
|
*/
|
|
599
598
|
export interface Resemble {
|
|
600
|
-
/**
|
|
601
|
-
* Custom Resemble API key.
|
|
602
|
-
*/
|
|
603
|
-
api_key?: string;
|
|
604
|
-
|
|
605
599
|
/**
|
|
606
600
|
* Audio output format.
|
|
607
601
|
*/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as TunnelsAPI from './tunnels';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Tunnels connect a Network to hosts behind a tunnel process within the user's network.
|
|
11
|
+
*/
|
|
12
|
+
export class Actions extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
|
|
15
|
+
* already connected stay connected until they reconnect, and are then refused
|
|
16
|
+
* until they use the new token.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const response = await client.tunnels.actions.rotateToken(
|
|
21
|
+
* '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
rotateToken(id: string, options?: RequestOptions): APIPromise<ActionRotateTokenResponse> {
|
|
26
|
+
return this._client.post(path`/tunnels/${id}/actions/rotate_token`, options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ActionRotateTokenResponse {
|
|
31
|
+
data?: TunnelsAPI.TunnelWithToken;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare namespace Actions {
|
|
35
|
+
export { type ActionRotateTokenResponse as ActionRotateTokenResponse };
|
|
36
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Actions, type ActionRotateTokenResponse } from './actions';
|
|
4
|
+
export {
|
|
5
|
+
Tunnels,
|
|
6
|
+
type Tunnel,
|
|
7
|
+
type TunnelWithToken,
|
|
8
|
+
type TunnelCreateResponse,
|
|
9
|
+
type TunnelRetrieveResponse,
|
|
10
|
+
type TunnelListResponse,
|
|
11
|
+
type TunnelListParams,
|
|
12
|
+
type TunnelCreateParams,
|
|
13
|
+
} from './tunnels';
|