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
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Test agents, evaluator scenarios, metrics, and run results for the AI test framework.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Results extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns a paginated list of test run batches in your organization, optionally
|
|
10
|
+
* filtered by test agent, search text, or scenarios.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const results =
|
|
15
|
+
* await client.ai.tests.testFramework.v1.results.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(query?: ResultListParams | null | undefined, options?: RequestOptions): APIPromise<ResultListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Deletes the specified test run batch.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const result =
|
|
25
|
+
* await client.ai.tests.testFramework.v1.results.delete(0);
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
delete(id: number, options?: RequestOptions): APIPromise<unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the specified test run batch, optionally with per-run detail.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const testRunResult =
|
|
35
|
+
* await client.ai.tests.testFramework.v1.results.retrieve(
|
|
36
|
+
* 0,
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
retrieve(id: number, options?: RequestOptions): APIPromise<TestRunResult>;
|
|
41
|
+
/**
|
|
42
|
+
* Re-executes the scenarios of the specified test run batch and creates a new run
|
|
43
|
+
* batch.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const testRunResult =
|
|
48
|
+
* await client.ai.tests.testFramework.v1.results.rerun(0);
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
rerun(id: number, options?: RequestOptions): APIPromise<TestRunResult>;
|
|
52
|
+
}
|
|
53
|
+
export interface TestRunResult {
|
|
54
|
+
id: number;
|
|
55
|
+
agent: number;
|
|
56
|
+
created_at: string;
|
|
57
|
+
name: string;
|
|
58
|
+
/**
|
|
59
|
+
* Run batch status: running, completed, failed, pending, in_progress, evaluating,
|
|
60
|
+
* in_queue, timeout, cancelled, or scaling_up.
|
|
61
|
+
*/
|
|
62
|
+
status: string;
|
|
63
|
+
updated_at: string;
|
|
64
|
+
agent_inbound?: boolean;
|
|
65
|
+
agent_name?: string;
|
|
66
|
+
completed_runs_count?: number | string;
|
|
67
|
+
failed_runs_count?: number | string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether this batch was started by a scheduled job.
|
|
70
|
+
*/
|
|
71
|
+
is_cronjob?: boolean;
|
|
72
|
+
met_expected_outcome_count?: number | string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the batch ran as text chat rather than voice calls.
|
|
75
|
+
*/
|
|
76
|
+
run_as_text?: boolean;
|
|
77
|
+
run_type?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Per-run detail keyed by run ID.
|
|
80
|
+
*/
|
|
81
|
+
runs?: {
|
|
82
|
+
[key: string]: TestRunResult.Runs;
|
|
83
|
+
} | null;
|
|
84
|
+
scenarios?: Array<TestRunResult.Scenario> | null;
|
|
85
|
+
/**
|
|
86
|
+
* Share of runs judged successful.
|
|
87
|
+
*/
|
|
88
|
+
success_rate?: number | string;
|
|
89
|
+
success_runs_count?: number | string;
|
|
90
|
+
total_expected_outcome_count?: number | string;
|
|
91
|
+
total_runs_count?: number | string;
|
|
92
|
+
}
|
|
93
|
+
export declare namespace TestRunResult {
|
|
94
|
+
interface Runs {
|
|
95
|
+
id?: number;
|
|
96
|
+
duration?: string;
|
|
97
|
+
error_message?: string;
|
|
98
|
+
evaluation_status?: string;
|
|
99
|
+
executed_at?: string;
|
|
100
|
+
personality_name?: string;
|
|
101
|
+
scenario?: Runs.Scenario;
|
|
102
|
+
scenario_name?: string;
|
|
103
|
+
status?: string;
|
|
104
|
+
success?: boolean | null;
|
|
105
|
+
test_profile_name?: string;
|
|
106
|
+
timestamp?: string;
|
|
107
|
+
}
|
|
108
|
+
namespace Runs {
|
|
109
|
+
interface Scenario {
|
|
110
|
+
id?: number;
|
|
111
|
+
expected_outcome_prompt?: string;
|
|
112
|
+
name?: string;
|
|
113
|
+
personality_name?: string;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
interface Scenario {
|
|
117
|
+
id?: number;
|
|
118
|
+
name?: string;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export interface ResultListResponse {
|
|
122
|
+
next: string | null;
|
|
123
|
+
previous: string | null;
|
|
124
|
+
results: Array<ResultListResponse.Result>;
|
|
125
|
+
count?: number;
|
|
126
|
+
}
|
|
127
|
+
export declare namespace ResultListResponse {
|
|
128
|
+
interface Result {
|
|
129
|
+
id: number;
|
|
130
|
+
agent: number;
|
|
131
|
+
created_at: string;
|
|
132
|
+
name: string;
|
|
133
|
+
/**
|
|
134
|
+
* Run batch status: running, completed, failed, pending, in_progress, evaluating,
|
|
135
|
+
* in_queue, timeout, cancelled, or scaling_up.
|
|
136
|
+
*/
|
|
137
|
+
status: string;
|
|
138
|
+
updated_at: string;
|
|
139
|
+
agent_inbound?: boolean;
|
|
140
|
+
agent_name?: string;
|
|
141
|
+
completed_runs_count?: number | string;
|
|
142
|
+
failed_runs_count?: number | string;
|
|
143
|
+
/**
|
|
144
|
+
* Whether this batch was started by a scheduled job.
|
|
145
|
+
*/
|
|
146
|
+
is_cronjob?: boolean;
|
|
147
|
+
met_expected_outcome_count?: number | string;
|
|
148
|
+
/**
|
|
149
|
+
* Whether the batch ran as text chat rather than voice calls.
|
|
150
|
+
*/
|
|
151
|
+
run_as_text?: boolean;
|
|
152
|
+
run_type?: string | null;
|
|
153
|
+
/**
|
|
154
|
+
* Run summaries in this batch. Retrieve the batch for detail keyed by run ID.
|
|
155
|
+
*/
|
|
156
|
+
runs?: Array<Result.Run> | null;
|
|
157
|
+
scenarios?: Array<Result.Scenario> | null;
|
|
158
|
+
/**
|
|
159
|
+
* Share of runs judged successful.
|
|
160
|
+
*/
|
|
161
|
+
success_rate?: number | string;
|
|
162
|
+
success_runs_count?: number | string;
|
|
163
|
+
total_expected_outcome_count?: number | string;
|
|
164
|
+
total_runs_count?: number | string;
|
|
165
|
+
}
|
|
166
|
+
namespace Result {
|
|
167
|
+
interface Run {
|
|
168
|
+
id?: number;
|
|
169
|
+
inbound_number?: string | null;
|
|
170
|
+
number?: string | null;
|
|
171
|
+
scenario?: number;
|
|
172
|
+
scenario_name?: string;
|
|
173
|
+
status?: string;
|
|
174
|
+
}
|
|
175
|
+
interface Scenario {
|
|
176
|
+
id?: number;
|
|
177
|
+
name?: string;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
export type ResultDeleteResponse = unknown;
|
|
182
|
+
export interface ResultListParams {
|
|
183
|
+
/**
|
|
184
|
+
* Filter results belonging to the specified test agent.
|
|
185
|
+
*/
|
|
186
|
+
agent_id?: number;
|
|
187
|
+
/**
|
|
188
|
+
* Page number (1-based).
|
|
189
|
+
*/
|
|
190
|
+
page?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Number of results per page.
|
|
193
|
+
*/
|
|
194
|
+
page_size?: number;
|
|
195
|
+
/**
|
|
196
|
+
* Filter results by a comma-separated list of scenario IDs.
|
|
197
|
+
*/
|
|
198
|
+
scenarios?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Filter results by a search string.
|
|
201
|
+
*/
|
|
202
|
+
search?: string;
|
|
203
|
+
}
|
|
204
|
+
export declare namespace Results {
|
|
205
|
+
export { type TestRunResult as TestRunResult, type ResultListResponse as ResultListResponse, type ResultDeleteResponse as ResultDeleteResponse, type ResultListParams as ResultListParams, };
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=results.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.d.mts","sourceRoot":"","sources":["../../../../../src/resources/ai/tests/test-framework/v1/results.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,oDAAgD;AAGzE;;GAEG;AAC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M,CAAC;YAEZ,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB,aAAa,CAAC,EAAE,MAAM,CAAC;YAEvB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;QAED,UAAiB,QAAQ;YACvB,EAAE,CAAC,EAAE,MAAM,CAAC;YAEZ,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;KACF;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Test agents, evaluator scenarios, metrics, and run results for the AI test framework.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Results extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns a paginated list of test run batches in your organization, optionally
|
|
10
|
+
* filtered by test agent, search text, or scenarios.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const results =
|
|
15
|
+
* await client.ai.tests.testFramework.v1.results.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(query?: ResultListParams | null | undefined, options?: RequestOptions): APIPromise<ResultListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Deletes the specified test run batch.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const result =
|
|
25
|
+
* await client.ai.tests.testFramework.v1.results.delete(0);
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
delete(id: number, options?: RequestOptions): APIPromise<unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the specified test run batch, optionally with per-run detail.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const testRunResult =
|
|
35
|
+
* await client.ai.tests.testFramework.v1.results.retrieve(
|
|
36
|
+
* 0,
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
retrieve(id: number, options?: RequestOptions): APIPromise<TestRunResult>;
|
|
41
|
+
/**
|
|
42
|
+
* Re-executes the scenarios of the specified test run batch and creates a new run
|
|
43
|
+
* batch.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const testRunResult =
|
|
48
|
+
* await client.ai.tests.testFramework.v1.results.rerun(0);
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
rerun(id: number, options?: RequestOptions): APIPromise<TestRunResult>;
|
|
52
|
+
}
|
|
53
|
+
export interface TestRunResult {
|
|
54
|
+
id: number;
|
|
55
|
+
agent: number;
|
|
56
|
+
created_at: string;
|
|
57
|
+
name: string;
|
|
58
|
+
/**
|
|
59
|
+
* Run batch status: running, completed, failed, pending, in_progress, evaluating,
|
|
60
|
+
* in_queue, timeout, cancelled, or scaling_up.
|
|
61
|
+
*/
|
|
62
|
+
status: string;
|
|
63
|
+
updated_at: string;
|
|
64
|
+
agent_inbound?: boolean;
|
|
65
|
+
agent_name?: string;
|
|
66
|
+
completed_runs_count?: number | string;
|
|
67
|
+
failed_runs_count?: number | string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether this batch was started by a scheduled job.
|
|
70
|
+
*/
|
|
71
|
+
is_cronjob?: boolean;
|
|
72
|
+
met_expected_outcome_count?: number | string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the batch ran as text chat rather than voice calls.
|
|
75
|
+
*/
|
|
76
|
+
run_as_text?: boolean;
|
|
77
|
+
run_type?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Per-run detail keyed by run ID.
|
|
80
|
+
*/
|
|
81
|
+
runs?: {
|
|
82
|
+
[key: string]: TestRunResult.Runs;
|
|
83
|
+
} | null;
|
|
84
|
+
scenarios?: Array<TestRunResult.Scenario> | null;
|
|
85
|
+
/**
|
|
86
|
+
* Share of runs judged successful.
|
|
87
|
+
*/
|
|
88
|
+
success_rate?: number | string;
|
|
89
|
+
success_runs_count?: number | string;
|
|
90
|
+
total_expected_outcome_count?: number | string;
|
|
91
|
+
total_runs_count?: number | string;
|
|
92
|
+
}
|
|
93
|
+
export declare namespace TestRunResult {
|
|
94
|
+
interface Runs {
|
|
95
|
+
id?: number;
|
|
96
|
+
duration?: string;
|
|
97
|
+
error_message?: string;
|
|
98
|
+
evaluation_status?: string;
|
|
99
|
+
executed_at?: string;
|
|
100
|
+
personality_name?: string;
|
|
101
|
+
scenario?: Runs.Scenario;
|
|
102
|
+
scenario_name?: string;
|
|
103
|
+
status?: string;
|
|
104
|
+
success?: boolean | null;
|
|
105
|
+
test_profile_name?: string;
|
|
106
|
+
timestamp?: string;
|
|
107
|
+
}
|
|
108
|
+
namespace Runs {
|
|
109
|
+
interface Scenario {
|
|
110
|
+
id?: number;
|
|
111
|
+
expected_outcome_prompt?: string;
|
|
112
|
+
name?: string;
|
|
113
|
+
personality_name?: string;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
interface Scenario {
|
|
117
|
+
id?: number;
|
|
118
|
+
name?: string;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export interface ResultListResponse {
|
|
122
|
+
next: string | null;
|
|
123
|
+
previous: string | null;
|
|
124
|
+
results: Array<ResultListResponse.Result>;
|
|
125
|
+
count?: number;
|
|
126
|
+
}
|
|
127
|
+
export declare namespace ResultListResponse {
|
|
128
|
+
interface Result {
|
|
129
|
+
id: number;
|
|
130
|
+
agent: number;
|
|
131
|
+
created_at: string;
|
|
132
|
+
name: string;
|
|
133
|
+
/**
|
|
134
|
+
* Run batch status: running, completed, failed, pending, in_progress, evaluating,
|
|
135
|
+
* in_queue, timeout, cancelled, or scaling_up.
|
|
136
|
+
*/
|
|
137
|
+
status: string;
|
|
138
|
+
updated_at: string;
|
|
139
|
+
agent_inbound?: boolean;
|
|
140
|
+
agent_name?: string;
|
|
141
|
+
completed_runs_count?: number | string;
|
|
142
|
+
failed_runs_count?: number | string;
|
|
143
|
+
/**
|
|
144
|
+
* Whether this batch was started by a scheduled job.
|
|
145
|
+
*/
|
|
146
|
+
is_cronjob?: boolean;
|
|
147
|
+
met_expected_outcome_count?: number | string;
|
|
148
|
+
/**
|
|
149
|
+
* Whether the batch ran as text chat rather than voice calls.
|
|
150
|
+
*/
|
|
151
|
+
run_as_text?: boolean;
|
|
152
|
+
run_type?: string | null;
|
|
153
|
+
/**
|
|
154
|
+
* Run summaries in this batch. Retrieve the batch for detail keyed by run ID.
|
|
155
|
+
*/
|
|
156
|
+
runs?: Array<Result.Run> | null;
|
|
157
|
+
scenarios?: Array<Result.Scenario> | null;
|
|
158
|
+
/**
|
|
159
|
+
* Share of runs judged successful.
|
|
160
|
+
*/
|
|
161
|
+
success_rate?: number | string;
|
|
162
|
+
success_runs_count?: number | string;
|
|
163
|
+
total_expected_outcome_count?: number | string;
|
|
164
|
+
total_runs_count?: number | string;
|
|
165
|
+
}
|
|
166
|
+
namespace Result {
|
|
167
|
+
interface Run {
|
|
168
|
+
id?: number;
|
|
169
|
+
inbound_number?: string | null;
|
|
170
|
+
number?: string | null;
|
|
171
|
+
scenario?: number;
|
|
172
|
+
scenario_name?: string;
|
|
173
|
+
status?: string;
|
|
174
|
+
}
|
|
175
|
+
interface Scenario {
|
|
176
|
+
id?: number;
|
|
177
|
+
name?: string;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
export type ResultDeleteResponse = unknown;
|
|
182
|
+
export interface ResultListParams {
|
|
183
|
+
/**
|
|
184
|
+
* Filter results belonging to the specified test agent.
|
|
185
|
+
*/
|
|
186
|
+
agent_id?: number;
|
|
187
|
+
/**
|
|
188
|
+
* Page number (1-based).
|
|
189
|
+
*/
|
|
190
|
+
page?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Number of results per page.
|
|
193
|
+
*/
|
|
194
|
+
page_size?: number;
|
|
195
|
+
/**
|
|
196
|
+
* Filter results by a comma-separated list of scenario IDs.
|
|
197
|
+
*/
|
|
198
|
+
scenarios?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Filter results by a search string.
|
|
201
|
+
*/
|
|
202
|
+
search?: string;
|
|
203
|
+
}
|
|
204
|
+
export declare namespace Results {
|
|
205
|
+
export { type TestRunResult as TestRunResult, type ResultListResponse as ResultListResponse, type ResultDeleteResponse as ResultDeleteResponse, type ResultListParams as ResultListParams, };
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../../../../src/resources/ai/tests/test-framework/v1/results.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,mDAAgD;AAGzE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;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G,IAAI,CAAC;YAE/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB,aAAa,CAAC,EAAE,MAAM,CAAC;YAEvB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;QAED,UAAiB,QAAQ;YACvB,EAAE,CAAC,EAAE,MAAM,CAAC;YAEZ,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;KACF;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.Results = void 0;
|
|
5
|
+
const resource_1 = require("../../../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Test agents, evaluator scenarios, metrics, and run results for the AI test framework.
|
|
9
|
+
*/
|
|
10
|
+
class Results extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns a paginated list of test run batches in your organization, optionally
|
|
13
|
+
* filtered by test agent, search text, or scenarios.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const results =
|
|
18
|
+
* await client.ai.tests.testFramework.v1.results.list();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
return this._client.get('/ai/tests/test_framework/v1/results', { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Deletes the specified test run batch.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const result =
|
|
30
|
+
* await client.ai.tests.testFramework.v1.results.delete(0);
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
delete(id, options) {
|
|
34
|
+
return this._client.delete((0, path_1.path) `/ai/tests/test_framework/v1/results/${id}`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns the specified test run batch, optionally with per-run detail.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const testRunResult =
|
|
42
|
+
* await client.ai.tests.testFramework.v1.results.retrieve(
|
|
43
|
+
* 0,
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
retrieve(id, options) {
|
|
48
|
+
return this._client.get((0, path_1.path) `/ai/tests/test_framework/v1/results/${id}`, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Re-executes the scenarios of the specified test run batch and creates a new run
|
|
52
|
+
* batch.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const testRunResult =
|
|
57
|
+
* await client.ai.tests.testFramework.v1.results.rerun(0);
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
rerun(id, options) {
|
|
61
|
+
return this._client.post((0, path_1.path) `/ai/tests/test_framework/v1/results/${id}/rerun`, options);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.Results = Results;
|
|
65
|
+
//# sourceMappingURL=results.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.js","sourceRoot":"","sources":["../../../../../src/resources/ai/tests/test-framework/v1/results.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAG3D,gEAA0D;AAE1D;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAU,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uCAAuC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF;AA3DD,0BA2DC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* Test agents, evaluator scenarios, metrics, and run results for the AI test framework.
|
|
6
|
+
*/
|
|
7
|
+
export class Results extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns a paginated list of test run batches in your organization, optionally
|
|
10
|
+
* filtered by test agent, search text, or scenarios.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const results =
|
|
15
|
+
* await client.ai.tests.testFramework.v1.results.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
return this._client.get('/ai/tests/test_framework/v1/results', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Deletes the specified test run batch.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const result =
|
|
27
|
+
* await client.ai.tests.testFramework.v1.results.delete(0);
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
delete(id, options) {
|
|
31
|
+
return this._client.delete(path `/ai/tests/test_framework/v1/results/${id}`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns the specified test run batch, optionally with per-run detail.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const testRunResult =
|
|
39
|
+
* await client.ai.tests.testFramework.v1.results.retrieve(
|
|
40
|
+
* 0,
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(id, options) {
|
|
45
|
+
return this._client.get(path `/ai/tests/test_framework/v1/results/${id}`, options);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Re-executes the scenarios of the specified test run batch and creates a new run
|
|
49
|
+
* batch.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const testRunResult =
|
|
54
|
+
* await client.ai.tests.testFramework.v1.results.rerun(0);
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
rerun(id, options) {
|
|
58
|
+
return this._client.post(path `/ai/tests/test_framework/v1/results/${id}/rerun`, options);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=results.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.mjs","sourceRoot":"","sources":["../../../../../src/resources/ai/tests/test-framework/v1/results.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAG3D,OAAO,EAAE,IAAI,EAAE,+CAA2C;AAE1D;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAU,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uCAAuC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
|