telnyx 7.24.0 → 7.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +27 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +27 -6
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +21 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +16 -6
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +16 -6
- 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 +551 -33
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +551 -33
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +79 -2
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +79 -2
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/deleted.d.mts +60 -0
- package/resources/ai/assistants/deleted.d.mts.map +1 -0
- package/resources/ai/assistants/deleted.d.ts +60 -0
- package/resources/ai/assistants/deleted.d.ts.map +1 -0
- package/resources/ai/assistants/deleted.js +49 -0
- package/resources/ai/assistants/deleted.js.map +1 -0
- package/resources/ai/assistants/deleted.mjs +45 -0
- package/resources/ai/assistants/deleted.mjs.map +1 -0
- package/resources/ai/assistants/index.d.mts +2 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js +3 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs +1 -0
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +48 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +48 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +187 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +187 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +93 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +89 -0
- package/resources/ai/avatars.mjs.map +1 -0
- package/resources/ai/chat.d.mts +21 -2
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +21 -2
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +8 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +8 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/embeddings/embeddings.d.mts +1 -1
- package/resources/ai/embeddings/embeddings.d.ts +1 -1
- package/resources/ai/embeddings/embeddings.js +1 -1
- package/resources/ai/embeddings/embeddings.mjs +1 -1
- package/resources/ai/index.d.mts +3 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +3 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- 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/memory/index.d.mts +1 -1
- package/resources/ai/memory/index.d.mts.map +1 -1
- package/resources/ai/memory/index.d.ts +1 -1
- package/resources/ai/memory/index.d.ts.map +1 -1
- package/resources/ai/memory/index.js.map +1 -1
- package/resources/ai/memory/index.mjs +1 -1
- package/resources/ai/memory/index.mjs.map +1 -1
- package/resources/ai/memory/memory.d.mts +2 -2
- package/resources/ai/memory/memory.d.mts.map +1 -1
- package/resources/ai/memory/memory.d.ts +2 -2
- package/resources/ai/memory/memory.d.ts.map +1 -1
- package/resources/ai/memory/memory.js.map +1 -1
- package/resources/ai/memory/memory.mjs +1 -1
- package/resources/ai/memory/memory.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +2 -2
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +2 -2
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +62 -6
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +62 -6
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js +41 -3
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +21 -2
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +21 -2
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +20 -5
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +20 -5
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/ai/tools.js +5 -2
- package/resources/ai/tools.js.map +1 -1
- package/resources/ai/tools.mjs +5 -2
- package/resources/ai/tools.mjs.map +1 -1
- package/resources/calls/actions.d.mts +135 -30
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +135 -30
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +31 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +31 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +72 -25
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +72 -25
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +11 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +11 -0
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/dir/dir.d.mts +226 -31
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +226 -31
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +78 -14
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +78 -14
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/index.d.mts +1 -1
- package/resources/dir/index.d.mts.map +1 -1
- package/resources/dir/index.d.ts +1 -1
- package/resources/dir/index.d.ts.map +1 -1
- package/resources/dir/index.js.map +1 -1
- package/resources/dir/index.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +8 -8
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +8 -8
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/dir/phone-numbers.js +4 -4
- package/resources/dir/phone-numbers.mjs +4 -4
- package/resources/dir/references.d.mts +9 -6
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +9 -6
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/email-templates.d.mts +109 -18
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +109 -18
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +5 -1
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +5 -1
- package/resources/email-templates.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +25 -3
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +25 -3
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/dir.js +8 -2
- package/resources/enterprises/dir.js.map +1 -1
- package/resources/enterprises/dir.mjs +8 -2
- package/resources/enterprises/dir.mjs.map +1 -1
- package/resources/enterprises/enterprises.d.mts +244 -28
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +244 -28
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +31 -7
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +31 -7
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +2 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +2 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js +3 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs +1 -0
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.mts +94 -0
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
- package/resources/enterprises/reputation/external-verification.d.ts +94 -0
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
- package/resources/enterprises/reputation/external-verification.js +54 -0
- package/resources/enterprises/reputation/external-verification.js.map +1 -0
- package/resources/enterprises/reputation/external-verification.mjs +50 -0
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
- package/resources/enterprises/reputation/index.d.mts +3 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +3 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +3 -1
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -0
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +64 -3
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +64 -3
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.mts +197 -4
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +197 -4
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +58 -2
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +58 -2
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/remediation.d.mts +3 -2
- package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
- package/resources/enterprises/reputation/remediation.d.ts +3 -2
- package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +39 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +39 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +22 -0
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +22 -0
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/enterprises/verify-email.d.mts +91 -0
- package/resources/enterprises/verify-email.d.mts.map +1 -0
- package/resources/enterprises/verify-email.d.ts +91 -0
- package/resources/enterprises/verify-email.d.ts.map +1 -0
- package/resources/enterprises/verify-email.js +55 -0
- package/resources/enterprises/verify-email.js.map +1 -0
- package/resources/enterprises/verify-email.mjs +51 -0
- package/resources/enterprises/verify-email.mjs.map +1 -0
- package/resources/global-ip-assignment-health.d.mts +4 -4
- package/resources/global-ip-assignment-health.d.mts.map +1 -1
- package/resources/global-ip-assignment-health.d.ts +4 -4
- package/resources/global-ip-assignment-health.d.ts.map +1 -1
- package/resources/global-ip-assignments-usage.d.mts +4 -4
- package/resources/global-ip-assignments-usage.d.mts.map +1 -1
- package/resources/global-ip-assignments-usage.d.ts +4 -4
- package/resources/global-ip-assignments-usage.d.ts.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/infringement-claims.d.mts +4 -0
- package/resources/infringement-claims.d.mts.map +1 -1
- package/resources/infringement-claims.d.ts +4 -0
- package/resources/infringement-claims.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +6 -0
- package/resources/llm-token-gateway/index.d.mts.map +1 -0
- package/resources/llm-token-gateway/index.d.ts +6 -0
- package/resources/llm-token-gateway/index.d.ts.map +1 -0
- package/resources/llm-token-gateway/index.js +15 -0
- package/resources/llm-token-gateway/index.js.map +1 -0
- package/resources/llm-token-gateway/index.mjs +7 -0
- package/resources/llm-token-gateway/index.mjs.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +22 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +22 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.js +29 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs +24 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
- package/resources/llm-token-gateway/spend.d.mts +223 -0
- package/resources/llm-token-gateway/spend.d.mts.map +1 -0
- package/resources/llm-token-gateway/spend.d.ts +223 -0
- package/resources/llm-token-gateway/spend.d.ts.map +1 -0
- package/resources/llm-token-gateway/spend.js +56 -0
- package/resources/llm-token-gateway/spend.js.map +1 -0
- package/resources/llm-token-gateway/spend.mjs +52 -0
- package/resources/llm-token-gateway/spend.mjs.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.mts +577 -0
- package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.ts +577 -0
- package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-groups.js +139 -0
- package/resources/llm-token-gateway/token-groups.js.map +1 -0
- package/resources/llm-token-gateway/token-groups.mjs +135 -0
- package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.mts +318 -0
- package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.ts +318 -0
- package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-keys.js +127 -0
- package/resources/llm-token-gateway/token-keys.js.map +1 -0
- package/resources/llm-token-gateway/token-keys.mjs +123 -0
- package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +319 -0
- package/resources/llm-token-gateway/usage.d.mts.map +1 -0
- package/resources/llm-token-gateway/usage.d.ts +319 -0
- package/resources/llm-token-gateway/usage.d.ts.map +1 -0
- package/resources/llm-token-gateway/usage.js +63 -0
- package/resources/llm-token-gateway/usage.js.map +1 -0
- package/resources/llm-token-gateway/usage.mjs +59 -0
- package/resources/llm-token-gateway/usage.mjs.map +1 -0
- package/resources/llm-token-gateway.d.mts +2 -0
- package/resources/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway.d.ts +2 -0
- package/resources/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway.js +6 -0
- package/resources/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway.mjs +3 -0
- package/resources/llm-token-gateway.mjs.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +6 -6
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +17 -5
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +17 -5
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +4 -3
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +4 -3
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/reputation/numbers.d.mts +10 -0
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +10 -0
- package/resources/reputation/numbers.d.ts.map +1 -1
- package/resources/requirements.d.mts +2 -2
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +2 -2
- package/resources/requirements.d.ts.map +1 -1
- package/resources/sip-registration-status.d.mts +149 -0
- package/resources/sip-registration-status.d.mts.map +1 -0
- package/resources/sip-registration-status.d.ts +149 -0
- package/resources/sip-registration-status.d.ts.map +1 -0
- package/resources/sip-registration-status.js +32 -0
- package/resources/sip-registration-status.js.map +1 -0
- package/resources/sip-registration-status.mjs +28 -0
- package/resources/sip-registration-status.mjs.map +1 -0
- package/resources/spend-limits.d.mts +335 -0
- package/resources/spend-limits.d.mts.map +1 -0
- package/resources/spend-limits.d.ts +335 -0
- package/resources/spend-limits.d.ts.map +1 -0
- package/resources/spend-limits.js +91 -0
- package/resources/spend-limits.js.map +1 -0
- package/resources/spend-limits.mjs +87 -0
- package/resources/spend-limits.mjs.map +1 -0
- package/resources/terms-of-service/agreements.d.mts +12 -0
- package/resources/terms-of-service/agreements.d.mts.map +1 -1
- package/resources/terms-of-service/agreements.d.ts +12 -0
- package/resources/terms-of-service/agreements.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.mts +15 -0
- package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.ts +15 -0
- package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.js.map +1 -1
- package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
- package/resources/texml/texml.d.mts +7 -3
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +7 -3
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -2
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -2
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +4 -2
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +4 -2
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/webhooks.d.mts +967 -6
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +967 -6
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +90 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +90 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js +66 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +62 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js +3 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs +1 -0
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/signup.d.mts +128 -0
- package/resources/whatsapp/signup.d.mts.map +1 -0
- package/resources/whatsapp/signup.d.ts +128 -0
- package/resources/whatsapp/signup.d.ts.map +1 -0
- package/resources/whatsapp/signup.js +42 -0
- package/resources/whatsapp/signup.js.map +1 -0
- package/resources/whatsapp/signup.mjs +38 -0
- package/resources/whatsapp/signup.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +83 -0
- package/src/resources/ai/ai.ts +48 -4
- package/src/resources/ai/assistants/assistants.ts +676 -33
- package/src/resources/ai/assistants/deleted.ts +86 -0
- package/src/resources/ai/assistants/index.ts +13 -0
- package/src/resources/ai/assistants/versions.ts +54 -0
- package/src/resources/ai/avatars.ts +238 -0
- package/src/resources/ai/chat.ts +21 -2
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/embeddings/embeddings.ts +1 -1
- package/src/resources/ai/index.ts +18 -1
- package/src/resources/ai/memory/index.ts +9 -1
- package/src/resources/ai/memory/memory.ts +13 -1
- package/src/resources/ai/memory/namespaces/index.ts +11 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +85 -3
- package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
- package/src/resources/ai/openai/chat.ts +21 -2
- package/src/resources/ai/tools.ts +25 -7
- package/src/resources/calls/actions.ts +141 -25
- package/src/resources/calls/calls.ts +73 -17
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/dir/dir.ts +269 -35
- package/src/resources/dir/index.ts +6 -0
- package/src/resources/dir/phone-numbers.ts +9 -10
- package/src/resources/dir/references.ts +9 -6
- package/src/resources/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +27 -3
- package/src/resources/enterprises/enterprises.ts +257 -26
- package/src/resources/enterprises/index.ts +6 -0
- package/src/resources/enterprises/reputation/external-verification.ts +125 -0
- package/src/resources/enterprises/reputation/index.ts +12 -0
- package/src/resources/enterprises/reputation/loa.ts +76 -3
- package/src/resources/enterprises/reputation/numbers.ts +256 -3
- package/src/resources/enterprises/reputation/remediation.ts +3 -2
- package/src/resources/enterprises/reputation/reputation.ts +70 -0
- package/src/resources/enterprises/verify-email.ts +117 -0
- package/src/resources/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +31 -0
- package/src/resources/infringement-claims.ts +4 -0
- package/src/resources/llm-token-gateway/index.ts +41 -0
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +101 -0
- package/src/resources/llm-token-gateway/spend.ts +309 -0
- package/src/resources/llm-token-gateway/token-groups.ts +724 -0
- package/src/resources/llm-token-gateway/token-keys.ts +422 -0
- package/src/resources/llm-token-gateway/usage.ts +460 -0
- package/src/resources/llm-token-gateway.ts +3 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
- package/src/resources/phone-numbers/jobs.ts +18 -5
- package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
- package/src/resources/porting-orders/porting-orders.ts +9 -1
- package/src/resources/porting-phone-numbers.ts +9 -1
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/requirements.ts +2 -2
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/spend-limits.ts +428 -0
- package/src/resources/terms-of-service/agreements.ts +12 -0
- package/src/resources/terms-of-service/terms-of-service.ts +15 -0
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/text-to-speech/text-to-speech.ts +4 -2
- package/src/resources/webhooks.ts +1460 -228
- package/src/resources/whatsapp/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +114 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
- package/src/resources/whatsapp/signup.ts +188 -0
- package/src/resources/whatsapp/whatsapp.ts +18 -0
- 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,10 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as AssistantsAPI from "./assistants.mjs";
|
|
3
3
|
import * as Shared from "../../shared.mjs";
|
|
4
|
+
import * as AvatarsAPI from "../avatars.mjs";
|
|
4
5
|
import * as ChatAPI from "../chat.mjs";
|
|
5
6
|
import * as ToolsAPI from "../tools.mjs";
|
|
6
7
|
import * as CanaryDeploysAPI from "./canary-deploys.mjs";
|
|
7
8
|
import { CanaryDeploy, CanaryDeployCreateParams, CanaryDeployResponse, CanaryDeployUpdateParams, CanaryDeploys, Clause, RolloutSlot, RuleInput, RuleOutput, Serve } from "./canary-deploys.mjs";
|
|
9
|
+
import * as DeletedAPI from "./deleted.mjs";
|
|
10
|
+
import { Deleted, DeletedAssistant, DeletedAssistantsDefaultFlatPagination, DeletedListParams } from "./deleted.mjs";
|
|
8
11
|
import * as InstructionsAPI from "./instructions.mjs";
|
|
9
12
|
import { InstructionEnhanceParams, InstructionEnhanceResponse, Instructions } from "./instructions.mjs";
|
|
10
13
|
import * as ScheduledEventsAPI from "./scheduled-events.mjs";
|
|
@@ -31,6 +34,7 @@ export declare class Assistants extends APIResource {
|
|
|
31
34
|
versions: VersionsAPI.Versions;
|
|
32
35
|
tags: TagsAPI.Tags;
|
|
33
36
|
instructions: InstructionsAPI.Instructions;
|
|
37
|
+
deleted: DeletedAPI.Deleted;
|
|
34
38
|
/**
|
|
35
39
|
* Retrieve a list of all AI Assistants configured by the user.
|
|
36
40
|
*
|
|
@@ -72,6 +76,20 @@ export declare class Assistants extends APIResource {
|
|
|
72
76
|
/**
|
|
73
77
|
* Delete an AI Assistant by `assistant_id`.
|
|
74
78
|
*
|
|
79
|
+
* By default this performs a soft delete: the assistant moves to the Recently
|
|
80
|
+
* Deleted list and stays restorable for 30 days, after which it is permanently
|
|
81
|
+
* deleted automatically. The assistant's versions and TeXML application are
|
|
82
|
+
* preserved during the retention window.
|
|
83
|
+
*
|
|
84
|
+
* Pass `hard_delete=true` to skip the retention window and permanently delete the
|
|
85
|
+
* assistant immediately. A hard delete erases the assistant and all of its
|
|
86
|
+
* versions, and deletes its TeXML application unless phone numbers are still
|
|
87
|
+
* assigned to it. It does not delete conversations, recordings, shared tools the
|
|
88
|
+
* assistant referenced, or knowledge-base embeddings.
|
|
89
|
+
*
|
|
90
|
+
* Deletion fails with `400` if other assistants reference this one through a
|
|
91
|
+
* handoff tool or a conversation-flow edge — remove those references first.
|
|
92
|
+
*
|
|
75
93
|
* @example
|
|
76
94
|
* ```ts
|
|
77
95
|
* const assistant = await client.ai.assistants.delete(
|
|
@@ -79,7 +97,7 @@ export declare class Assistants extends APIResource {
|
|
|
79
97
|
* );
|
|
80
98
|
* ```
|
|
81
99
|
*/
|
|
82
|
-
delete(assistantID: string, options?: RequestOptions): APIPromise<AssistantDeleteResponse>;
|
|
100
|
+
delete(assistantID: string, params?: AssistantDeleteParams | null | undefined, options?: RequestOptions): APIPromise<AssistantDeleteResponse>;
|
|
83
101
|
/**
|
|
84
102
|
* Retrieve an AI Assistant configuration by `assistant_id`.
|
|
85
103
|
*
|
|
@@ -172,6 +190,52 @@ export declare class Assistants extends APIResource {
|
|
|
172
190
|
* ```
|
|
173
191
|
*/
|
|
174
192
|
sendSMS(assistantID: string, params: AssistantSendSMSParams, options?: RequestOptions): APIPromise<AssistantSendSMSResponse>;
|
|
193
|
+
/**
|
|
194
|
+
* Start a WhatsApp conversation with a customer from the business side. This
|
|
195
|
+
* endpoint:
|
|
196
|
+
*
|
|
197
|
+
* 1. Validates that `from` is a WhatsApp number on your account whose messaging
|
|
198
|
+
* profile has this assistant configured
|
|
199
|
+
* 2. Creates a new `whatsapp_chat` conversation with the provided metadata
|
|
200
|
+
* 3. Asks the assistant to pick one of its approved WhatsApp templates and fill
|
|
201
|
+
* its variables from `content`
|
|
202
|
+
* 4. Sends the template from `from` to `to`
|
|
203
|
+
* 5. Returns the conversation ID and the message ID
|
|
204
|
+
*
|
|
205
|
+
* When the customer replies, the reply is routed to the same conversation and the
|
|
206
|
+
* assistant answers within the 24-hour customer service window. The assistant
|
|
207
|
+
* needs a `whatsapp_template` tool with at least one approved template, data
|
|
208
|
+
* retention enabled and PII redaction disabled.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```ts
|
|
212
|
+
* const response = await client.ai.assistants.whatsapp(
|
|
213
|
+
* 'assistant_id',
|
|
214
|
+
* {
|
|
215
|
+
* content:
|
|
216
|
+
* 'Send the login verification code 482913 to the customer.',
|
|
217
|
+
* from: '+13125550001',
|
|
218
|
+
* to: '+13125550002',
|
|
219
|
+
* conversation_metadata: { order_id: 'A1' },
|
|
220
|
+
* },
|
|
221
|
+
* );
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
whatsapp(assistantID: string, params: AssistantWhatsappParams, options?: RequestOptions): APIPromise<AssistantWhatsappResponse>;
|
|
225
|
+
/**
|
|
226
|
+
* Restore a soft-deleted assistant from the Recently Deleted list.
|
|
227
|
+
*
|
|
228
|
+
* The assistant becomes fully active again with its versions and TeXML application
|
|
229
|
+
* as they were at deletion time. Restoring does not re-enable numbers or
|
|
230
|
+
* connections that were released separately after the deletion.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* const inferenceEmbedding =
|
|
235
|
+
* await client.ai.assistants.restore('assistant_id');
|
|
236
|
+
* ```
|
|
237
|
+
*/
|
|
238
|
+
restore(assistantID: string, options?: RequestOptions): APIPromise<InferenceEmbedding>;
|
|
175
239
|
}
|
|
176
240
|
/**
|
|
177
241
|
* Numeric expression: applies an arithmetic operator to two sub-expressions.
|
|
@@ -759,6 +823,19 @@ export declare namespace AssistantTool {
|
|
|
759
823
|
* `shared` the exchange stays in the conversation like any other messages.
|
|
760
824
|
*/
|
|
761
825
|
end_user_target_context_mode?: 'private' | 'shared';
|
|
826
|
+
/**
|
|
827
|
+
* Fail closed when the acceptance consult cannot run. Off by default: if the
|
|
828
|
+
* consult cannot be set up for any reason — including where acceptance is
|
|
829
|
+
* unavailable at all (`gather_using_ai`, Conversation Relay or web calls, a
|
|
830
|
+
* conference, or additional invited participants) — the transfer degrades to a
|
|
831
|
+
* plain warm transfer (the warm transfer message is played to the destination as
|
|
832
|
+
* audio and the calls are bridged anyway). Set to true to treat those paths as a
|
|
833
|
+
* decline instead: the destination is disconnected without being asked, the
|
|
834
|
+
* assistant returns to the caller, and no bridge happens without an acceptance.
|
|
835
|
+
* Only consult-setup failures are affected; the destination must still explicitly
|
|
836
|
+
* accept on every consult that does run.
|
|
837
|
+
*/
|
|
838
|
+
require_acceptance?: boolean;
|
|
762
839
|
}
|
|
763
840
|
}
|
|
764
841
|
}
|
|
@@ -1055,6 +1132,30 @@ export interface AudioVisualizerConfig {
|
|
|
1055
1132
|
* Authentication method used when connecting to the external LLM endpoint.
|
|
1056
1133
|
*/
|
|
1057
1134
|
export type AuthenticationMethod = 'token' | 'certificate';
|
|
1135
|
+
/**
|
|
1136
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
1137
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
1138
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
1139
|
+
*/
|
|
1140
|
+
export interface AvatarSettingsRequest {
|
|
1141
|
+
/**
|
|
1142
|
+
* The Telnyx stock avatar or organization-owned custom avatar to render.
|
|
1143
|
+
*/
|
|
1144
|
+
avatar_id: AvatarsAPI.AvatarID;
|
|
1145
|
+
/**
|
|
1146
|
+
* The background to render.
|
|
1147
|
+
*/
|
|
1148
|
+
background_id: 'office' | 'studio' | 'reception';
|
|
1149
|
+
/**
|
|
1150
|
+
* Required avatar model identifier, separate from `avatar_id`. The supported value
|
|
1151
|
+
* is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
|
|
1152
|
+
*/
|
|
1153
|
+
model: 'foxtrot-1';
|
|
1154
|
+
/**
|
|
1155
|
+
* Selects the Telnyx open-source avatar provider.
|
|
1156
|
+
*/
|
|
1157
|
+
provider: 'telnyx';
|
|
1158
|
+
}
|
|
1058
1159
|
/**
|
|
1059
1160
|
* Combine sub-expressions with a logical operator (`and` / `or` / `not`).
|
|
1060
1161
|
*
|
|
@@ -1125,7 +1226,7 @@ export interface ConversationFlow {
|
|
|
1125
1226
|
export interface ConversationFlowReq {
|
|
1126
1227
|
/**
|
|
1127
1228
|
* All nodes in the flow. Must contain `start_node_id`. Each node is a prompt node
|
|
1128
|
-
* (`type: prompt`)
|
|
1229
|
+
* (`type: prompt`), a tool node (`type: tool`), or a speak node (`type: speak`).
|
|
1129
1230
|
*/
|
|
1130
1231
|
nodes: Array<FlowNodeReq | ToolNodeReq | SpeakNodeReq>;
|
|
1131
1232
|
/**
|
|
@@ -1137,6 +1238,66 @@ export interface ConversationFlowReq {
|
|
|
1137
1238
|
*/
|
|
1138
1239
|
edges?: Array<FlowEdge>;
|
|
1139
1240
|
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Splits the conversation between a frontend model that talks to the caller and a
|
|
1243
|
+
* backend model that does the work. On the GPT-Live route the frontend model
|
|
1244
|
+
* cannot call tools at all — when it needs something done it raises a delegation
|
|
1245
|
+
* and waits. On the chat completion route the frontend keeps a single `delegate`
|
|
1246
|
+
* tool that returns immediately, so the conversation carries on while the backend
|
|
1247
|
+
* works. Either way the backend's answer is spoken as commentary or kept as silent
|
|
1248
|
+
* context, depending on `speak_results`. Beta feature.
|
|
1249
|
+
*/
|
|
1250
|
+
export interface DelegationSettings {
|
|
1251
|
+
/**
|
|
1252
|
+
* Whether the assistant delegates work to a backend model. Defaults to `true`: a
|
|
1253
|
+
* GPT-Live assistant with delegation disabled can hold a conversation but can
|
|
1254
|
+
* never look anything up or run a tool.
|
|
1255
|
+
*/
|
|
1256
|
+
enabled?: boolean;
|
|
1257
|
+
/**
|
|
1258
|
+
* Run the backend on your own OpenAI-compatible endpoint instead of a
|
|
1259
|
+
* Telnyx-hosted model. As above, a raw `api_key` here is rejected — reference an
|
|
1260
|
+
* integration secret with `external_llm.llm_api_key_ref` instead.
|
|
1261
|
+
*/
|
|
1262
|
+
external_llm?: ExternalLlm;
|
|
1263
|
+
/**
|
|
1264
|
+
* Extra instructions for the backend model, in addition to the assistant's own.
|
|
1265
|
+
* Use this for the business rules the backend needs and the talking model does
|
|
1266
|
+
* not.
|
|
1267
|
+
*/
|
|
1268
|
+
instructions?: string;
|
|
1269
|
+
/**
|
|
1270
|
+
* Integration secret identifier for the backend model's API key. Required for
|
|
1271
|
+
* models from providers other than Telnyx, OpenAI and Anthropic. A raw `api_key`
|
|
1272
|
+
* is rejected rather than ignored, so that no plaintext credential is stored on
|
|
1273
|
+
* the assistant.
|
|
1274
|
+
*/
|
|
1275
|
+
llm_api_key_ref?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* Who answers a delegation. `telnyx` runs the backend model on Telnyx with the
|
|
1278
|
+
* assistant's own tools, MCP servers and observability. `client` relays the
|
|
1279
|
+
* delegation to a server you host over the WebSocket configured in
|
|
1280
|
+
* `websocket_settings`: Telnyx sends a `session.delegation.created` frame and
|
|
1281
|
+
* waits for your `session.delegation.completed` answer. That answer is text only,
|
|
1282
|
+
* since the socket offers no tool vocabulary. If no socket is connected the
|
|
1283
|
+
* delegation is refused and the assistant tells the caller it cannot look things
|
|
1284
|
+
* up right now. Defaults to `telnyx`.
|
|
1285
|
+
*/
|
|
1286
|
+
mode?: 'telnyx' | 'client';
|
|
1287
|
+
/**
|
|
1288
|
+
* The backend model that answers delegations. Must be a model available for AI
|
|
1289
|
+
* Assistants. When enabling `telnyx` delegation, explicitly set this field or
|
|
1290
|
+
* `external_llm.model`; a configuration without either backend model is rejected.
|
|
1291
|
+
* Only applies when `mode` is `telnyx`.
|
|
1292
|
+
*/
|
|
1293
|
+
model?: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* Whether the backend's answer is spoken to the caller. When `true` the result is
|
|
1296
|
+
* appended as commentary and paraphrased aloud; when `false` it is kept as silent
|
|
1297
|
+
* context that informs later answers without being read out. Defaults to `true`.
|
|
1298
|
+
*/
|
|
1299
|
+
speak_results?: boolean;
|
|
1300
|
+
}
|
|
1140
1301
|
/**
|
|
1141
1302
|
* If `telephony` is enabled, the assistant will be able to make and receive calls.
|
|
1142
1303
|
* If `messaging` is enabled, the assistant will be able to send and receive
|
|
@@ -1300,9 +1461,14 @@ export interface FallbackConfigReq {
|
|
|
1300
1461
|
* Directed transition from one node to a target, gated by a condition.
|
|
1301
1462
|
*
|
|
1302
1463
|
* The target is either another node in the same flow (`NodeTarget`) or a different
|
|
1303
|
-
* assistant (`AssistantTarget`). Multiple edges may share a `start_node_id
|
|
1304
|
-
*
|
|
1305
|
-
*
|
|
1464
|
+
* assistant (`AssistantTarget`). Multiple edges may share a `start_node_id`. On
|
|
1465
|
+
* calls, `expression` conditions are evaluated before the model turn and take
|
|
1466
|
+
* precedence over `llm` conditions regardless of declaration order, while `llm`
|
|
1467
|
+
* conditions are offered to the assistant's model as transition tools and fire
|
|
1468
|
+
* when the model selects one. On chat channels, an `expression` condition that is
|
|
1469
|
+
* true when the turn begins routes before the reply is generated; all conditioned
|
|
1470
|
+
* edges that remain are considered together in declaration order after the reply,
|
|
1471
|
+
* and the first true one wins.
|
|
1306
1472
|
*/
|
|
1307
1473
|
export interface FlowEdge {
|
|
1308
1474
|
/**
|
|
@@ -1326,15 +1492,22 @@ export interface FlowEdge {
|
|
|
1326
1492
|
}
|
|
1327
1493
|
export declare namespace FlowEdge {
|
|
1328
1494
|
/**
|
|
1329
|
-
* Edge condition
|
|
1495
|
+
* Edge condition routed by the assistant's LLM from a natural-language prompt.
|
|
1330
1496
|
*
|
|
1331
|
-
*
|
|
1332
|
-
*
|
|
1333
|
-
*
|
|
1497
|
+
* How the edge is decided depends on the channel. On calls, each outgoing `llm`
|
|
1498
|
+
* condition is offered to the assistant's model as a transition tool alongside the
|
|
1499
|
+
* assistant's tools, and the edge fires when the model selects it; the platform
|
|
1500
|
+
* does not evaluate the prompt itself, and instructions that forbid or discourage
|
|
1501
|
+
* tool calls can stop these edges from firing. On chat channels, the edge prompts
|
|
1502
|
+
* are evaluated in a separate model call after the reply, which does not use the
|
|
1503
|
+
* assistant's instructions. Use this for fuzzy intents that aren't expressible as
|
|
1504
|
+
* a deterministic expression (e.g. 'user wants to escalate to a human').
|
|
1334
1505
|
*/
|
|
1335
1506
|
interface LlmCondition {
|
|
1336
1507
|
/**
|
|
1337
|
-
* Natural-language criterion the
|
|
1508
|
+
* Natural-language criterion the model routes on. On calls this is offered to the
|
|
1509
|
+
* model as the transition tool's description; on chat channels it is judged as a
|
|
1510
|
+
* statement in the post-reply evaluation call.
|
|
1338
1511
|
*/
|
|
1339
1512
|
prompt: string;
|
|
1340
1513
|
type: 'llm';
|
|
@@ -1559,12 +1732,17 @@ export interface FlowNodeReq {
|
|
|
1559
1732
|
tools_mode?: 'replace' | 'append';
|
|
1560
1733
|
/**
|
|
1561
1734
|
* Per-node transcription override (model/language/region). Unset fields cascade
|
|
1562
|
-
* from the assistant-level transcription.
|
|
1735
|
+
* from the assistant-level transcription. A node that sets `model`,
|
|
1736
|
+
* `fallback_models`, or `challenger` doesn't inherit the assistant's
|
|
1737
|
+
* `fallback_models` or `challenger`; it uses only the ones it sets. Otherwise it
|
|
1738
|
+
* inherits them, and they must fit the model and language the node runs; a change
|
|
1739
|
+
* they no longer fit is rejected.
|
|
1563
1740
|
*/
|
|
1564
1741
|
transcription?: TranscriptionSettings;
|
|
1565
1742
|
/**
|
|
1566
1743
|
* Node kind discriminator. `prompt` (default) is an LLM-driven step; `tool` is a
|
|
1567
|
-
* standalone tool execution (see `ToolNodeReq`
|
|
1744
|
+
* standalone tool execution and `speak` a scripted message (see `ToolNodeReq` /
|
|
1745
|
+
* `SpeakNodeReq`).
|
|
1568
1746
|
*/
|
|
1569
1747
|
type?: 'prompt';
|
|
1570
1748
|
/**
|
|
@@ -1621,10 +1799,26 @@ export interface InferenceEmbedding {
|
|
|
1621
1799
|
* capability for the conversation; it does not fail the call.
|
|
1622
1800
|
*/
|
|
1623
1801
|
a2a_agents?: Array<AssistantA2AAgent>;
|
|
1802
|
+
/**
|
|
1803
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
1804
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
1805
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
1806
|
+
*/
|
|
1807
|
+
avatar_settings?: TelnyxAvatarSettings | null;
|
|
1624
1808
|
/**
|
|
1625
1809
|
* Conversation flow as returned by the API.
|
|
1626
1810
|
*/
|
|
1627
1811
|
conversation_flow?: ConversationFlow;
|
|
1812
|
+
/**
|
|
1813
|
+
* Splits the conversation between a frontend model that talks to the caller and a
|
|
1814
|
+
* backend model that does the work. On the GPT-Live route the frontend model
|
|
1815
|
+
* cannot call tools at all — when it needs something done it raises a delegation
|
|
1816
|
+
* and waits. On the chat completion route the frontend keeps a single `delegate`
|
|
1817
|
+
* tool that returns immediately, so the conversation carries on while the backend
|
|
1818
|
+
* works. Either way the backend's answer is spoken as commentary or kept as silent
|
|
1819
|
+
* context, depending on `speak_results`. Beta feature.
|
|
1820
|
+
*/
|
|
1821
|
+
delegation_settings?: DelegationSettings;
|
|
1628
1822
|
description?: string;
|
|
1629
1823
|
/**
|
|
1630
1824
|
* Map of dynamic variables and their values
|
|
@@ -1740,6 +1934,14 @@ export interface InferenceEmbedding {
|
|
|
1740
1934
|
*/
|
|
1741
1935
|
version_name?: string;
|
|
1742
1936
|
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
1937
|
+
/**
|
|
1938
|
+
* Streams conversation and telephony events to a WebSocket server you host, and
|
|
1939
|
+
* accepts messages injected back into the conversation. Telnyx opens the
|
|
1940
|
+
* connection as a client, once per conversation. Delivery is best effort
|
|
1941
|
+
* throughout: while the connection is down events are dropped rather than queued,
|
|
1942
|
+
* and no socket failure is ever allowed to affect the call. Beta feature.
|
|
1943
|
+
*/
|
|
1944
|
+
websocket_settings?: WebsocketSettings;
|
|
1743
1945
|
/**
|
|
1744
1946
|
* Configuration settings for the assistant's web widget.
|
|
1745
1947
|
*/
|
|
@@ -1804,7 +2006,7 @@ export interface InferenceEmbeddingVoiceSettings {
|
|
|
1804
2006
|
* supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
|
|
1805
2007
|
* preview it before saving.
|
|
1806
2008
|
*/
|
|
1807
|
-
background_audio?: InferenceEmbeddingVoiceSettings.
|
|
2009
|
+
background_audio?: InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember0 | InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
|
|
1808
2010
|
/**
|
|
1809
2011
|
* Enables emotionally expressive speech using SSML emotion tags. When enabled, the
|
|
1810
2012
|
* assistant uses audio tags like angry, excited, content, and sad to add emotional
|
|
@@ -1839,20 +2041,28 @@ export interface InferenceEmbeddingVoiceSettings {
|
|
|
1839
2041
|
* consistent, monotonous output. Only applicable when using ElevenLabs.
|
|
1840
2042
|
*/
|
|
1841
2043
|
temperature?: number;
|
|
2044
|
+
/**
|
|
2045
|
+
* Optional sound played to the caller while the assistant runs a tool (for example
|
|
2046
|
+
* a webhook or MCP tool). It replaces the background audio until the tool
|
|
2047
|
+
* responds, then the background audio resumes. Defaults to null, which plays no
|
|
2048
|
+
* sound; send `null` on update to clear it. Not played in conference calls.
|
|
2049
|
+
*/
|
|
2050
|
+
tool_call_audio?: InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember0 | InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember1 | null;
|
|
1842
2051
|
/**
|
|
1843
2052
|
* Amplifies similarity to the original speaker voice. Increases computational load
|
|
1844
2053
|
* and latency slightly. Only applicable when using ElevenLabs.
|
|
1845
2054
|
*/
|
|
1846
2055
|
use_speaker_boost?: boolean;
|
|
1847
2056
|
/**
|
|
1848
|
-
* The speed of the voice in the range [0.
|
|
1849
|
-
* numbers make the voice faster, smaller numbers make it slower.
|
|
1850
|
-
*
|
|
2057
|
+
* The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
|
|
2058
|
+
* numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
|
|
2059
|
+
* `Ultra` voices; values outside this range are rejected by the synthesis engine.
|
|
2060
|
+
* Soniox voices support a speed range of 0.7 to 1.3.
|
|
1851
2061
|
*/
|
|
1852
2062
|
voice_speed?: number;
|
|
1853
2063
|
}
|
|
1854
2064
|
export declare namespace InferenceEmbeddingVoiceSettings {
|
|
1855
|
-
interface
|
|
2065
|
+
interface BackgroundAudioUnionMember0 {
|
|
1856
2066
|
/**
|
|
1857
2067
|
* Select from predefined media options.
|
|
1858
2068
|
*/
|
|
@@ -1867,7 +2077,7 @@ export declare namespace InferenceEmbeddingVoiceSettings {
|
|
|
1867
2077
|
*/
|
|
1868
2078
|
volume?: number;
|
|
1869
2079
|
}
|
|
1870
|
-
interface
|
|
2080
|
+
interface BackgroundAudioUnionMember1 {
|
|
1871
2081
|
/**
|
|
1872
2082
|
* Provide a direct URL to an MP3 file. The audio will loop during the call.
|
|
1873
2083
|
*/
|
|
@@ -1889,6 +2099,31 @@ export declare namespace InferenceEmbeddingVoiceSettings {
|
|
|
1889
2099
|
*/
|
|
1890
2100
|
value: string;
|
|
1891
2101
|
}
|
|
2102
|
+
interface ToolCallAudioUnionMember0 {
|
|
2103
|
+
/**
|
|
2104
|
+
* Select from predefined media options.
|
|
2105
|
+
*/
|
|
2106
|
+
type: 'predefined_media';
|
|
2107
|
+
/**
|
|
2108
|
+
* The predefined media to use. `typing` plays a keyboard typing sound.
|
|
2109
|
+
*/
|
|
2110
|
+
value: 'typing';
|
|
2111
|
+
/**
|
|
2112
|
+
* Volume level for the predefined media. Supports values from 0.0 to 1.0 in 0.1
|
|
2113
|
+
* increments. `0.0` plays no sound.
|
|
2114
|
+
*/
|
|
2115
|
+
volume?: number;
|
|
2116
|
+
}
|
|
2117
|
+
interface ToolCallAudioUnionMember1 {
|
|
2118
|
+
/**
|
|
2119
|
+
* Provide a direct URL to an MP3 file. The audio loops while the tool runs.
|
|
2120
|
+
*/
|
|
2121
|
+
type: 'media_url';
|
|
2122
|
+
/**
|
|
2123
|
+
* HTTPS URL to an MP3 file.
|
|
2124
|
+
*/
|
|
2125
|
+
value: string;
|
|
2126
|
+
}
|
|
1892
2127
|
}
|
|
1893
2128
|
export interface InferenceEmbeddingWebhookToolParams {
|
|
1894
2129
|
type: 'webhook';
|
|
@@ -2369,6 +2604,15 @@ export interface StartSpeakingPlan {
|
|
|
2369
2604
|
wait_seconds?: number;
|
|
2370
2605
|
}
|
|
2371
2606
|
export interface TelephonySettings {
|
|
2607
|
+
/**
|
|
2608
|
+
* When enabled, the `messages` array of the `call.conversation.ended` webhook
|
|
2609
|
+
* contains the full conversation history in order: user and assistant turns,
|
|
2610
|
+
* assistant tool calls (`tool_calls`), tool results (`role: tool` with
|
|
2611
|
+
* `tool_call_id`), and informational `system` and `developer` entries. The
|
|
2612
|
+
* assistant's instructions are never included. When disabled, `messages` contains
|
|
2613
|
+
* only user and assistant text turns.
|
|
2614
|
+
*/
|
|
2615
|
+
conversation_ended_full_history?: boolean;
|
|
2372
2616
|
/**
|
|
2373
2617
|
* Default Texml App used for voice calls with your assistant. This will be created
|
|
2374
2618
|
* automatically on assistant creation.
|
|
@@ -2567,6 +2811,30 @@ export declare namespace TelephonySettings {
|
|
|
2567
2811
|
}
|
|
2568
2812
|
}
|
|
2569
2813
|
}
|
|
2814
|
+
/**
|
|
2815
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
2816
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
2817
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
2818
|
+
*/
|
|
2819
|
+
export interface TelnyxAvatarSettings {
|
|
2820
|
+
/**
|
|
2821
|
+
* The Telnyx stock avatar or organization-owned custom avatar to render.
|
|
2822
|
+
*/
|
|
2823
|
+
avatar_id: AvatarsAPI.AvatarID;
|
|
2824
|
+
/**
|
|
2825
|
+
* The background to render.
|
|
2826
|
+
*/
|
|
2827
|
+
background_id: 'office' | 'studio' | 'reception';
|
|
2828
|
+
/**
|
|
2829
|
+
* Required avatar model identifier, separate from `avatar_id`. The supported value
|
|
2830
|
+
* is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
|
|
2831
|
+
*/
|
|
2832
|
+
model: 'foxtrot-1';
|
|
2833
|
+
/**
|
|
2834
|
+
* Selects the Telnyx open-source avatar provider.
|
|
2835
|
+
*/
|
|
2836
|
+
provider: 'telnyx';
|
|
2837
|
+
}
|
|
2570
2838
|
/**
|
|
2571
2839
|
* A standalone tool step in a conversation flow, as returned by the API.
|
|
2572
2840
|
*/
|
|
@@ -2578,12 +2846,22 @@ export interface ToolNode {
|
|
|
2578
2846
|
/**
|
|
2579
2847
|
* ID of the single shared (org-level) tool this node executes. When the flow
|
|
2580
2848
|
* reaches this node the tool runs as a deliberate step (no LLM turn); its outgoing
|
|
2581
|
-
* `
|
|
2582
|
-
* conversation's dynamic variables by name — a dynamic variable
|
|
2583
|
-
* one of the tool's parameters supplies that argument.
|
|
2584
|
-
* org's shared tools on write.
|
|
2849
|
+
* `llm` / `expression` edges route the flow on the tool's outcome. Arguments are
|
|
2850
|
+
* filled from the conversation's dynamic variables by name — a dynamic variable
|
|
2851
|
+
* whose name matches one of the tool's parameters supplies that argument.
|
|
2852
|
+
* Cross-validated against the org's shared tools on write.
|
|
2585
2853
|
*/
|
|
2586
2854
|
shared_tool_id: string;
|
|
2855
|
+
/**
|
|
2856
|
+
* Optional message delivered to the user verbatim immediately before the tool
|
|
2857
|
+
* executes — an announcement such as 'One moment while I look that up.' No LLM
|
|
2858
|
+
* turn and no customer turn: the message is spoken/sent, then the tool runs, in
|
|
2859
|
+
* the same deterministic step. `{{variable}}` placeholders are interpolated from
|
|
2860
|
+
* the conversation's dynamic variables (unresolved → empty string); the tool's own
|
|
2861
|
+
* result is not yet available when the message is rendered. Omit for a silent tool
|
|
2862
|
+
* step.
|
|
2863
|
+
*/
|
|
2864
|
+
message?: string;
|
|
2587
2865
|
/**
|
|
2588
2866
|
* Optional human-readable label, displayed in authoring UIs.
|
|
2589
2867
|
*/
|
|
@@ -2610,8 +2888,10 @@ export interface ToolNode {
|
|
|
2610
2888
|
*
|
|
2611
2889
|
* Unlike a prompt node, a tool node has no instructions or model — it isn't an LLM
|
|
2612
2890
|
* turn. Reaching it deterministically runs one shared tool (arguments filled from
|
|
2613
|
-
* matching dynamic variables by name), then routes
|
|
2614
|
-
* `
|
|
2891
|
+
* matching dynamic variables by name), then routes via outgoing `llm` /
|
|
2892
|
+
* `expression` edges, with exactly one `default` fallback edge required when the
|
|
2893
|
+
* node has any outgoing edges (the tool's outcome is readable as
|
|
2894
|
+
* `telnyx_last_tool_status_code` in `expression` conditions).
|
|
2615
2895
|
*/
|
|
2616
2896
|
export interface ToolNodeReq {
|
|
2617
2897
|
/**
|
|
@@ -2621,12 +2901,22 @@ export interface ToolNodeReq {
|
|
|
2621
2901
|
/**
|
|
2622
2902
|
* ID of the single shared (org-level) tool this node executes. When the flow
|
|
2623
2903
|
* reaches this node the tool runs as a deliberate step (no LLM turn); its outgoing
|
|
2624
|
-
* `
|
|
2625
|
-
* conversation's dynamic variables by name — a dynamic variable
|
|
2626
|
-
* one of the tool's parameters supplies that argument.
|
|
2627
|
-
* org's shared tools on write.
|
|
2904
|
+
* `llm` / `expression` edges route the flow on the tool's outcome. Arguments are
|
|
2905
|
+
* filled from the conversation's dynamic variables by name — a dynamic variable
|
|
2906
|
+
* whose name matches one of the tool's parameters supplies that argument.
|
|
2907
|
+
* Cross-validated against the org's shared tools on write.
|
|
2628
2908
|
*/
|
|
2629
2909
|
shared_tool_id: string;
|
|
2910
|
+
/**
|
|
2911
|
+
* Optional message delivered to the user verbatim immediately before the tool
|
|
2912
|
+
* executes — an announcement such as 'One moment while I look that up.' No LLM
|
|
2913
|
+
* turn and no customer turn: the message is spoken/sent, then the tool runs, in
|
|
2914
|
+
* the same deterministic step. `{{variable}}` placeholders are interpolated from
|
|
2915
|
+
* the conversation's dynamic variables (unresolved → empty string); the tool's own
|
|
2916
|
+
* result is not yet available when the message is rendered. Omit for a silent tool
|
|
2917
|
+
* step.
|
|
2918
|
+
*/
|
|
2919
|
+
message?: string;
|
|
2630
2920
|
/**
|
|
2631
2921
|
* Optional human-readable label, displayed in authoring UIs.
|
|
2632
2922
|
*/
|
|
@@ -2668,6 +2958,22 @@ export interface TranscriptionSettings {
|
|
|
2668
2958
|
* used for Azure transcription regions that require a customer-provided API key.
|
|
2669
2959
|
*/
|
|
2670
2960
|
api_key_ref?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* A second speech-to-text model that transcribes alongside `transcription.model`,
|
|
2963
|
+
* and the rule that decides which transcript the assistant uses.
|
|
2964
|
+
*/
|
|
2965
|
+
challenger?: TranscriptionSettings.Challenger | null;
|
|
2966
|
+
/**
|
|
2967
|
+
* Up to 3 streaming models that take over transcription, in this order, when the
|
|
2968
|
+
* model in use fails, at the start of a call or mid-call. `model` must be a
|
|
2969
|
+
* streaming model too, and must support `language` alongside other models. On
|
|
2970
|
+
* update, a list replaces the stored one: omit the field to keep the stored list,
|
|
2971
|
+
* or send `null` or `[]` to remove it. When an update changes `model` or
|
|
2972
|
+
* `language`, stored fallbacks that no longer fit are removed without an error.
|
|
2973
|
+
* Can't be combined with `challenger`, the language booster; to replace a stored
|
|
2974
|
+
* language booster, send `challenger: null` in the same request.
|
|
2975
|
+
*/
|
|
2976
|
+
fallback_models?: Array<TranscriptionSettings.FallbackModel> | null;
|
|
2671
2977
|
/**
|
|
2672
2978
|
* The language of the audio to be transcribed. If not set, or if set to `auto`,
|
|
2673
2979
|
* supported models will automatically detect the language. For `deepgram/flux`,
|
|
@@ -2712,8 +3018,9 @@ export interface TranscriptionSettings {
|
|
|
2712
3018
|
* - `reson8/turns` is a turn-based streaming model covering 10 European languages
|
|
2713
3019
|
* with automatic language detection.
|
|
2714
3020
|
* - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
|
|
3021
|
+
* - `telnyx/basira` is a non-streaming Arabic transcription model.
|
|
2715
3022
|
*/
|
|
2716
|
-
model?: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
|
|
3023
|
+
model?: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'telnyx/basira' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
|
|
2717
3024
|
/**
|
|
2718
3025
|
* Region on third party cloud providers (currently Azure) if using one of their
|
|
2719
3026
|
* models. Some regions require `api_key_ref`.
|
|
@@ -2721,6 +3028,90 @@ export interface TranscriptionSettings {
|
|
|
2721
3028
|
region?: string;
|
|
2722
3029
|
settings?: TranscriptionSettingsConfig;
|
|
2723
3030
|
}
|
|
3031
|
+
export declare namespace TranscriptionSettings {
|
|
3032
|
+
/**
|
|
3033
|
+
* A second speech-to-text model that transcribes alongside `transcription.model`,
|
|
3034
|
+
* and the rule that decides which transcript the assistant uses.
|
|
3035
|
+
*/
|
|
3036
|
+
interface Challenger {
|
|
3037
|
+
/**
|
|
3038
|
+
* The language booster's model. It must be the same kind of model as
|
|
3039
|
+
* `transcription.model`: both streaming (`deepgram/flux`, `deepgram/nova-3`,
|
|
3040
|
+
* `deepgram/nova-2`, `assemblyai/universal-3-5-pro` or its legacy alias
|
|
3041
|
+
* `assemblyai/universal-streaming`, `xai/grok-stt`, `soniox/stt-rt-v4`,
|
|
3042
|
+
* `soniox/stt-rt-v5`, `humain/realtime`, `reson8/turns`) or both non-streaming
|
|
3043
|
+
* (`azure/fast`, `nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`,
|
|
3044
|
+
* `cohere/ar-stt`, `distil-whisper/distil-large-v2`,
|
|
3045
|
+
* `openai/whisper-large-v3-turbo`, `telnyx/basira`). It can be the same model as
|
|
3046
|
+
* `transcription.model` on a different `language`.
|
|
3047
|
+
*/
|
|
3048
|
+
model: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'telnyx/basira' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
|
|
3049
|
+
/**
|
|
3050
|
+
* The language this model transcribes. Omit it or set it to `null` to use the
|
|
3051
|
+
* language of `transcription.model`. The request is rejected when this model
|
|
3052
|
+
* doesn't support the language it would run. It is also rejected when it would run
|
|
3053
|
+
* the same model on the same language as `transcription.model`.
|
|
3054
|
+
*/
|
|
3055
|
+
language?: string | null;
|
|
3056
|
+
/**
|
|
3057
|
+
* How the assistant picks the transcript it uses. The models are compared on how
|
|
3058
|
+
* complete and confident their transcripts are, not on language, so the rules work
|
|
3059
|
+
* best when both models understand the callers' language.
|
|
3060
|
+
*
|
|
3061
|
+
* - `best_turn` (default): both models transcribe the whole call. Each turn uses
|
|
3062
|
+
* the language booster's transcript only when it scores higher than the
|
|
3063
|
+
* transcript of `transcription.model` (clearly higher with non-streaming
|
|
3064
|
+
* models). With streaming models, `transcription.model` also decides when each
|
|
3065
|
+
* turn ends. Available for every pair.
|
|
3066
|
+
* - `best_engine`: both models transcribe the first turns, then the call continues
|
|
3067
|
+
* alone on the model whose transcripts scored higher. If neither clearly leads,
|
|
3068
|
+
* `transcription.model` continues. Streaming models only.
|
|
3069
|
+
* - `merge_words`: both models transcribe each utterance and their words are
|
|
3070
|
+
* merged, keeping Arabic and English spoken in the same sentence. Available only
|
|
3071
|
+
* for `telnyx/basira` with `cohere/ar-stt`, in either order. The pair runs on
|
|
3072
|
+
* the language that applies to `telnyx/basira` (its own, or that of
|
|
3073
|
+
* `transcription.model`), which must be Arabic (`ar` or an `ar-` locale),
|
|
3074
|
+
* `multi`, or `auto`.
|
|
3075
|
+
*/
|
|
3076
|
+
rule?: 'best_turn' | 'best_engine' | 'merge_words';
|
|
3077
|
+
/**
|
|
3078
|
+
* Settings for the language booster, with the same fields and limits as
|
|
3079
|
+
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3080
|
+
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3081
|
+
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3082
|
+
* model.
|
|
3083
|
+
*/
|
|
3084
|
+
settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
|
|
3085
|
+
}
|
|
3086
|
+
/**
|
|
3087
|
+
* A streaming speech-to-text model that takes over transcription when the model in
|
|
3088
|
+
* use fails.
|
|
3089
|
+
*/
|
|
3090
|
+
interface FallbackModel {
|
|
3091
|
+
/**
|
|
3092
|
+
* The fallback model. It must be a streaming model other than
|
|
3093
|
+
* `transcription.model` and the other fallbacks: `deepgram/flux`,
|
|
3094
|
+
* `deepgram/nova-3`, `deepgram/nova-2`, `assemblyai/universal-3-5-pro` (or its
|
|
3095
|
+
* legacy alias `assemblyai/universal-streaming`), `xai/grok-stt`,
|
|
3096
|
+
* `soniox/stt-rt-v4`, `soniox/stt-rt-v5`, `humain/realtime`, or `reson8/turns`.
|
|
3097
|
+
*/
|
|
3098
|
+
model: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'humain/realtime' | 'reson8/turns';
|
|
3099
|
+
/**
|
|
3100
|
+
* The language the fallback transcribes. Omit it or set it to `null` to use the
|
|
3101
|
+
* language of `transcription.model`. The request is rejected when the fallback
|
|
3102
|
+
* model doesn't support the language it would run.
|
|
3103
|
+
*/
|
|
3104
|
+
language?: string | null;
|
|
3105
|
+
/**
|
|
3106
|
+
* Settings for the fallback, with the same fields and limits as
|
|
3107
|
+
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3108
|
+
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3109
|
+
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3110
|
+
* model.
|
|
3111
|
+
*/
|
|
3112
|
+
settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
2724
3115
|
export interface TranscriptionSettingsConfig {
|
|
2725
3116
|
/**
|
|
2726
3117
|
* Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. A comma-separated list
|
|
@@ -2901,9 +3292,9 @@ export interface VoiceSettings {
|
|
|
2901
3292
|
*/
|
|
2902
3293
|
use_speaker_boost?: boolean;
|
|
2903
3294
|
/**
|
|
2904
|
-
* The speed of the voice in the range [0.
|
|
2905
|
-
* numbers make the voice faster, smaller numbers make it slower.
|
|
2906
|
-
*
|
|
3295
|
+
* The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
|
|
3296
|
+
* numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
|
|
3297
|
+
* `Ultra` voices; values outside this range are rejected by the synthesis engine.
|
|
2907
3298
|
*/
|
|
2908
3299
|
voice_speed?: number;
|
|
2909
3300
|
}
|
|
@@ -3078,6 +3469,32 @@ export declare namespace WebhookTool {
|
|
|
3078
3469
|
}
|
|
3079
3470
|
}
|
|
3080
3471
|
}
|
|
3472
|
+
/**
|
|
3473
|
+
* Streams conversation and telephony events to a WebSocket server you host, and
|
|
3474
|
+
* accepts messages injected back into the conversation. Telnyx opens the
|
|
3475
|
+
* connection as a client, once per conversation. Delivery is best effort
|
|
3476
|
+
* throughout: while the connection is down events are dropped rather than queued,
|
|
3477
|
+
* and no socket failure is ever allowed to affect the call. Beta feature.
|
|
3478
|
+
*/
|
|
3479
|
+
export interface WebsocketSettings {
|
|
3480
|
+
/**
|
|
3481
|
+
* Integration secret identifier whose value Telnyx sends as an
|
|
3482
|
+
* `Authorization: Bearer <value>` header on the upgrade request. Resolved on every
|
|
3483
|
+
* connection attempt, so a rotated secret is picked up by the next reconnect.
|
|
3484
|
+
*/
|
|
3485
|
+
auth_ref?: string;
|
|
3486
|
+
/**
|
|
3487
|
+
* Whether Telnyx opens a WebSocket to `url` for each of this assistant's
|
|
3488
|
+
* conversations. Defaults to `false`.
|
|
3489
|
+
*/
|
|
3490
|
+
enabled?: boolean;
|
|
3491
|
+
/**
|
|
3492
|
+
* The `ws://` or `wss://` endpoint Telnyx connects to. Required when `enabled` is
|
|
3493
|
+
* `true`. Must be externally reachable — localhost, private IP ranges and `.local`
|
|
3494
|
+
* domains are rejected.
|
|
3495
|
+
*/
|
|
3496
|
+
url?: string;
|
|
3497
|
+
}
|
|
3081
3498
|
/**
|
|
3082
3499
|
* Configuration settings for the assistant's web widget.
|
|
3083
3500
|
*/
|
|
@@ -3143,6 +3560,16 @@ export type AssistantGetTexmlResponse = string;
|
|
|
3143
3560
|
export interface AssistantSendSMSResponse {
|
|
3144
3561
|
conversation_id?: string;
|
|
3145
3562
|
}
|
|
3563
|
+
export interface AssistantWhatsappResponse {
|
|
3564
|
+
/**
|
|
3565
|
+
* ID of the conversation created for this WhatsApp chat.
|
|
3566
|
+
*/
|
|
3567
|
+
conversation_id: string;
|
|
3568
|
+
/**
|
|
3569
|
+
* ID of the WhatsApp template message that was sent.
|
|
3570
|
+
*/
|
|
3571
|
+
message_id: string;
|
|
3572
|
+
}
|
|
3146
3573
|
export interface AssistantCreateParams {
|
|
3147
3574
|
/**
|
|
3148
3575
|
* Body param: System instructions for the assistant. These may be templated with
|
|
@@ -3164,6 +3591,12 @@ export interface AssistantCreateParams {
|
|
|
3164
3591
|
* that capability for the conversation; it does not fail the call.
|
|
3165
3592
|
*/
|
|
3166
3593
|
a2a_agents?: Array<AssistantA2AAgent>;
|
|
3594
|
+
/**
|
|
3595
|
+
* Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
|
|
3596
|
+
* Use one of the six stock avatars or an organization-owned custom avatar returned
|
|
3597
|
+
* by the Avatars API. Supported backgrounds are office, studio, and reception.
|
|
3598
|
+
*/
|
|
3599
|
+
avatar_settings?: AvatarSettingsRequest | null;
|
|
3167
3600
|
/**
|
|
3168
3601
|
* Body param: Conversation flow as supplied by API clients (create / update).
|
|
3169
3602
|
*
|
|
@@ -3172,6 +3605,16 @@ export interface AssistantCreateParams {
|
|
|
3172
3605
|
* every edge's endpoints reference real nodes.
|
|
3173
3606
|
*/
|
|
3174
3607
|
conversation_flow?: ConversationFlowReq;
|
|
3608
|
+
/**
|
|
3609
|
+
* Body param: Splits the conversation between a frontend model that talks to the
|
|
3610
|
+
* caller and a backend model that does the work. On the GPT-Live route the
|
|
3611
|
+
* frontend model cannot call tools at all — when it needs something done it raises
|
|
3612
|
+
* a delegation and waits. On the chat completion route the frontend keeps a single
|
|
3613
|
+
* `delegate` tool that returns immediately, so the conversation carries on while
|
|
3614
|
+
* the backend works. Either way the backend's answer is spoken as commentary or
|
|
3615
|
+
* kept as silent context, depending on `speak_results`. Beta feature.
|
|
3616
|
+
*/
|
|
3617
|
+
delegation_settings?: DelegationSettings;
|
|
3175
3618
|
/**
|
|
3176
3619
|
* Body param
|
|
3177
3620
|
*/
|
|
@@ -3313,6 +3756,14 @@ export interface AssistantCreateParams {
|
|
|
3313
3756
|
* Body param
|
|
3314
3757
|
*/
|
|
3315
3758
|
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
3759
|
+
/**
|
|
3760
|
+
* Body param: Streams conversation and telephony events to a WebSocket server you
|
|
3761
|
+
* host, and accepts messages injected back into the conversation. Telnyx opens the
|
|
3762
|
+
* connection as a client, once per conversation. Delivery is best effort
|
|
3763
|
+
* throughout: while the connection is down events are dropped rather than queued,
|
|
3764
|
+
* and no socket failure is ever allowed to affect the call. Beta feature.
|
|
3765
|
+
*/
|
|
3766
|
+
websocket_settings?: WebsocketSettings;
|
|
3316
3767
|
/**
|
|
3317
3768
|
* Body param: Configuration settings for the assistant's web widget.
|
|
3318
3769
|
*/
|
|
@@ -3357,6 +3808,13 @@ export interface AssistantImportsParams {
|
|
|
3357
3808
|
*/
|
|
3358
3809
|
'Idempotency-Key'?: string;
|
|
3359
3810
|
}
|
|
3811
|
+
export interface AssistantDeleteParams {
|
|
3812
|
+
/**
|
|
3813
|
+
* Permanently delete the assistant immediately instead of soft-deleting it to the
|
|
3814
|
+
* Recently Deleted list, where it stays restorable for 30 days.
|
|
3815
|
+
*/
|
|
3816
|
+
hard_delete?: boolean;
|
|
3817
|
+
}
|
|
3360
3818
|
export interface AssistantRetrieveParams {
|
|
3361
3819
|
/**
|
|
3362
3820
|
* Filter results by call control id.
|
|
@@ -3388,6 +3846,12 @@ export interface AssistantUpdateParams {
|
|
|
3388
3846
|
* leave the assistant's agents unchanged; send an empty array to remove them all.
|
|
3389
3847
|
*/
|
|
3390
3848
|
a2a_agents?: Array<AssistantA2AAgent>;
|
|
3849
|
+
/**
|
|
3850
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
3851
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
3852
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
3853
|
+
*/
|
|
3854
|
+
avatar_settings?: AvatarSettingsRequest | null;
|
|
3391
3855
|
/**
|
|
3392
3856
|
* Conversation flow as supplied by API clients (create / update).
|
|
3393
3857
|
*
|
|
@@ -3396,6 +3860,16 @@ export interface AssistantUpdateParams {
|
|
|
3396
3860
|
* every edge's endpoints reference real nodes.
|
|
3397
3861
|
*/
|
|
3398
3862
|
conversation_flow?: ConversationFlowReq;
|
|
3863
|
+
/**
|
|
3864
|
+
* Splits the conversation between a frontend model that talks to the caller and a
|
|
3865
|
+
* backend model that does the work. On the GPT-Live route the frontend model
|
|
3866
|
+
* cannot call tools at all — when it needs something done it raises a delegation
|
|
3867
|
+
* and waits. On the chat completion route the frontend keeps a single `delegate`
|
|
3868
|
+
* tool that returns immediately, so the conversation carries on while the backend
|
|
3869
|
+
* works. Either way the backend's answer is spoken as commentary or kept as silent
|
|
3870
|
+
* context, depending on `speak_results`. Beta feature.
|
|
3871
|
+
*/
|
|
3872
|
+
delegation_settings?: DelegationSettings;
|
|
3399
3873
|
description?: string;
|
|
3400
3874
|
/**
|
|
3401
3875
|
* Map of dynamic variables and their default values
|
|
@@ -3529,6 +4003,14 @@ export interface AssistantUpdateParams {
|
|
|
3529
4003
|
*/
|
|
3530
4004
|
version_name?: string;
|
|
3531
4005
|
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
4006
|
+
/**
|
|
4007
|
+
* Streams conversation and telephony events to a WebSocket server you host, and
|
|
4008
|
+
* accepts messages injected back into the conversation. Telnyx opens the
|
|
4009
|
+
* connection as a client, once per conversation. Delivery is best effort
|
|
4010
|
+
* throughout: while the connection is down events are dropped rather than queued,
|
|
4011
|
+
* and no socket failure is ever allowed to affect the call. Beta feature.
|
|
4012
|
+
*/
|
|
4013
|
+
websocket_settings?: WebsocketSettings;
|
|
3532
4014
|
/**
|
|
3533
4015
|
* Configuration settings for the assistant's web widget.
|
|
3534
4016
|
*/
|
|
@@ -3604,8 +4086,43 @@ export interface AssistantSendSMSParams {
|
|
|
3604
4086
|
*/
|
|
3605
4087
|
'Idempotency-Key'?: string;
|
|
3606
4088
|
}
|
|
4089
|
+
export interface AssistantWhatsappParams {
|
|
4090
|
+
/**
|
|
4091
|
+
* Body param: Instruction for the assistant, including the values for the template
|
|
4092
|
+
* variables, e.g. `Send the login verification code 482913 to the customer.`
|
|
4093
|
+
*/
|
|
4094
|
+
content: string;
|
|
4095
|
+
/**
|
|
4096
|
+
* Body param: WhatsApp number on your account to send from, in E.164 format. Its
|
|
4097
|
+
* messaging profile must have this assistant configured.
|
|
4098
|
+
*/
|
|
4099
|
+
from: string;
|
|
4100
|
+
/**
|
|
4101
|
+
* Body param: Customer to message, as an E.164 phone number or a WhatsApp
|
|
4102
|
+
* business-scoped user ID (BSUID).
|
|
4103
|
+
*/
|
|
4104
|
+
to: string;
|
|
4105
|
+
/**
|
|
4106
|
+
* Body param: Metadata stored on the conversation. Keys starting with `telnyx_`
|
|
4107
|
+
* and the `assistant_id` key are reserved.
|
|
4108
|
+
*/
|
|
4109
|
+
conversation_metadata?: {
|
|
4110
|
+
[key: string]: string | number | boolean;
|
|
4111
|
+
};
|
|
4112
|
+
/**
|
|
4113
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
4114
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
4115
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
4116
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
4117
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
4118
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
4119
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
4120
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
4121
|
+
*/
|
|
4122
|
+
'Idempotency-Key'?: string;
|
|
4123
|
+
}
|
|
3607
4124
|
export declare namespace Assistants {
|
|
3608
|
-
export { type ArithmeticExpression as ArithmeticExpression, type Assistant as Assistant, type AssistantA2AAgent as AssistantA2AAgent, type AssistantIntegration as AssistantIntegration, type AssistantMcpServer as AssistantMcpServer, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type AuthenticationMethod as AuthenticationMethod, type BooleanOpExpression as BooleanOpExpression, type ComparisonExpression as ComparisonExpression, type ConversationFlow as ConversationFlow, type ConversationFlowReq as ConversationFlowReq, type EnabledFeatures as EnabledFeatures, type Expression as Expression, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type FlowEdge as FlowEdge, type FlowNode as FlowNode, type FlowNodeReq as FlowNodeReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings as InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type NodePosition as NodePosition, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type ObservabilityStatus as ObservabilityStatus, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type PromptSyncStatus as PromptSyncStatus, type RetrievalTool as RetrievalTool, type SpeakNode as SpeakNode, type SpeakNodeReq as SpeakNodeReq, type StartSpeakingPlan as StartSpeakingPlan, type TelephonySettings as TelephonySettings, type ToolNode as ToolNode, type ToolNodeReq as ToolNodeReq, type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantImportsParams as AssistantImportsParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantCloneParams as AssistantCloneParams, type AssistantSendSMSParams as AssistantSendSMSParams, };
|
|
4125
|
+
export { type ArithmeticExpression as ArithmeticExpression, type Assistant as Assistant, type AssistantA2AAgent as AssistantA2AAgent, type AssistantIntegration as AssistantIntegration, type AssistantMcpServer as AssistantMcpServer, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type AuthenticationMethod as AuthenticationMethod, type AvatarSettingsRequest as AvatarSettingsRequest, type BooleanOpExpression as BooleanOpExpression, type ComparisonExpression as ComparisonExpression, type ConversationFlow as ConversationFlow, type ConversationFlowReq as ConversationFlowReq, type DelegationSettings as DelegationSettings, type EnabledFeatures as EnabledFeatures, type Expression as Expression, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type FlowEdge as FlowEdge, type FlowNode as FlowNode, type FlowNodeReq as FlowNodeReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings as InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type NodePosition as NodePosition, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type ObservabilityStatus as ObservabilityStatus, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type PromptSyncStatus as PromptSyncStatus, type RetrievalTool as RetrievalTool, type SpeakNode as SpeakNode, type SpeakNodeReq as SpeakNodeReq, type StartSpeakingPlan as StartSpeakingPlan, type TelephonySettings as TelephonySettings, type TelnyxAvatarSettings as TelnyxAvatarSettings, type ToolNode as ToolNode, type ToolNodeReq as ToolNodeReq, type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WebsocketSettings as WebsocketSettings, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantWhatsappResponse as AssistantWhatsappResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantImportsParams as AssistantImportsParams, type AssistantDeleteParams as AssistantDeleteParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantCloneParams as AssistantCloneParams, type AssistantSendSMSParams as AssistantSendSMSParams, type AssistantWhatsappParams as AssistantWhatsappParams, };
|
|
3609
4126
|
export { Tests as Tests, type AssistantTest as AssistantTest, type TelnyxConversationChannel as TelnyxConversationChannel, type AssistantTestsDefaultFlatPagination as AssistantTestsDefaultFlatPagination, type TestListParams as TestListParams, type TestCreateParams as TestCreateParams, type TestUpdateParams as TestUpdateParams, };
|
|
3610
4127
|
export { CanaryDeploys as CanaryDeploys, type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type Clause as Clause, type RolloutSlot as RolloutSlot, type RuleInput as RuleInput, type RuleOutput as RuleOutput, type Serve as Serve, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
|
|
3611
4128
|
export { ScheduledEvents as ScheduledEvents, type ConversationChannelType as ConversationChannelType, type EventStatus as EventStatus, type ScheduledCallSettings as ScheduledCallSettings, type ScheduledEventResponse as ScheduledEventResponse, type ScheduledPhoneCallEventResponse as ScheduledPhoneCallEventResponse, type ScheduledSMSEventResponse as ScheduledSMSEventResponse, type ScheduledEventListResponse as ScheduledEventListResponse, type ScheduledEventListResponsesDefaultFlatPagination as ScheduledEventListResponsesDefaultFlatPagination, type ScheduledEventListParams as ScheduledEventListParams, type ScheduledEventCreateParams as ScheduledEventCreateParams, type ScheduledEventDeleteParams as ScheduledEventDeleteParams, type ScheduledEventRetrieveParams as ScheduledEventRetrieveParams, };
|
|
@@ -3613,5 +4130,6 @@ export declare namespace Assistants {
|
|
|
3613
4130
|
export { Versions as Versions, type UpdateAssistant as UpdateAssistant, type VersionDeleteParams as VersionDeleteParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionUpdateParams as VersionUpdateParams, type VersionPromoteParams as VersionPromoteParams, };
|
|
3614
4131
|
export { Tags as Tags, type TagsResponse as TagsResponse, type TagAddParams as TagAddParams, type TagRemoveParams as TagRemoveParams, };
|
|
3615
4132
|
export { Instructions as Instructions, type InstructionEnhanceResponse as InstructionEnhanceResponse, type InstructionEnhanceParams as InstructionEnhanceParams, };
|
|
4133
|
+
export { Deleted as Deleted, type DeletedAssistant as DeletedAssistant, type DeletedAssistantsDefaultFlatPagination as DeletedAssistantsDefaultFlatPagination, type DeletedListParams as DeletedListParams, };
|
|
3616
4134
|
}
|
|
3617
4135
|
//# sourceMappingURL=assistants.d.mts.map
|