telnyx 7.25.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 +7 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +14 -5
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +14 -5
- 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 +232 -6
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +232 -6
- 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/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +12 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +12 -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 +20 -6
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +20 -6
- 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/index.d.mts +2 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -1
- 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/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- 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.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- 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 +20 -6
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +20 -6
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +17 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +17 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +59 -13
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +59 -13
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +24 -14
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +24 -14
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +8 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +8 -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 +10 -7
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +10 -7
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -1
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -1
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +0 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +0 -4
- package/resources/dir/phone-numbers.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 +8 -2
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +8 -2
- 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 +7 -5
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +7 -5
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +5 -3
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +5 -3
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js.map +1 -1
- 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 +3 -2
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +3 -2
- 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/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 +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +4 -1
- package/resources/llm-token-gateway/index.d.mts.map +1 -1
- package/resources/llm-token-gateway/index.d.ts +4 -1
- package/resources/llm-token-gateway/index.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.js +7 -1
- package/resources/llm-token-gateway/index.js.map +1 -1
- package/resources/llm-token-gateway/index.mjs +4 -1
- package/resources/llm-token-gateway/index.mjs.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.js +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs +13 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -1
- 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 +205 -146
- package/resources/llm-token-gateway/usage.d.mts.map +1 -1
- package/resources/llm-token-gateway/usage.d.ts +205 -146
- package/resources/llm-token-gateway/usage.d.ts.map +1 -1
- package/resources/llm-token-gateway/usage.js +47 -15
- package/resources/llm-token-gateway/usage.js.map +1 -1
- package/resources/llm-token-gateway/usage.mjs +47 -15
- package/resources/llm-token-gateway/usage.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/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/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/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/webhooks.d.mts +566 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +566 -3
- 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 +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.js +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.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 +28 -0
- package/src/resources/ai/ai.ts +38 -3
- package/src/resources/ai/assistants/assistants.ts +292 -5
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/assistants/versions.ts +14 -0
- package/src/resources/ai/avatars.ts +238 -0
- package/src/resources/ai/chat.ts +20 -6
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/index.ts +13 -0
- package/src/resources/ai/memory/namespaces/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +4 -0
- 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 +20 -6
- package/src/resources/ai/tools.ts +19 -1
- package/src/resources/calls/actions.ts +65 -10
- package/src/resources/calls/calls.ts +24 -8
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/dir/dir.ts +10 -7
- package/src/resources/dir/phone-numbers.ts +1 -6
- package/src/resources/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +8 -2
- package/src/resources/enterprises/enterprises.ts +7 -3
- package/src/resources/enterprises/index.ts +1 -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 +3 -2
- 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/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +11 -0
- package/src/resources/llm-token-gateway/index.ts +38 -1
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +83 -1
- 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 +273 -149
- package/src/resources/phone-numbers/jobs.ts +18 -5
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/webhooks.ts +754 -15
- package/src/resources/whatsapp/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +6 -5
- 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
package/src/client.ts
CHANGED
|
@@ -305,6 +305,7 @@ import {
|
|
|
305
305
|
} from './resources/email-events';
|
|
306
306
|
import {
|
|
307
307
|
EmailTemplate,
|
|
308
|
+
EmailTemplateCommon,
|
|
308
309
|
EmailTemplateCreateParams,
|
|
309
310
|
EmailTemplateListParams,
|
|
310
311
|
EmailTemplateRenderParams,
|
|
@@ -872,6 +873,11 @@ import {
|
|
|
872
873
|
SimCardOrders,
|
|
873
874
|
SimCardOrdersDefaultFlatPagination,
|
|
874
875
|
} from './resources/sim-card-orders';
|
|
876
|
+
import {
|
|
877
|
+
SipRegistrationStatus,
|
|
878
|
+
SipRegistrationStatusListParams,
|
|
879
|
+
SipRegistrationStatusListResponse,
|
|
880
|
+
} from './resources/sip-registration-status';
|
|
875
881
|
import {
|
|
876
882
|
SiprecConnectorCreateParams,
|
|
877
883
|
SiprecConnectorResponse,
|
|
@@ -1065,6 +1071,7 @@ import {
|
|
|
1065
1071
|
CallConversationEndedWebhookEvent,
|
|
1066
1072
|
CallConversationInsightsGenerated,
|
|
1067
1073
|
CallConversationInsightsGeneratedWebhookEvent,
|
|
1074
|
+
CallConversationStartFailedWebhookEvent,
|
|
1068
1075
|
CallCostWebhookEvent,
|
|
1069
1076
|
CallDeepfakeDetectionErrorWebhookEvent,
|
|
1070
1077
|
CallDeepfakeDetectionResultWebhookEvent,
|
|
@@ -1171,6 +1178,9 @@ import {
|
|
|
1171
1178
|
MessagingInboundMessage,
|
|
1172
1179
|
NumberOrderStatusUpdate,
|
|
1173
1180
|
NumberOrderStatusUpdateWebhookEvent,
|
|
1181
|
+
NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
1182
|
+
NumberReputationNumberFlaggedWebhookEvent,
|
|
1183
|
+
NumberReputationNumberRemovedWebhookEvent,
|
|
1174
1184
|
OutboundMessage,
|
|
1175
1185
|
RecordingAvailableWebhookEvent,
|
|
1176
1186
|
ReplacedLinkClick,
|
|
@@ -1184,6 +1194,7 @@ import {
|
|
|
1184
1194
|
Webhooks,
|
|
1185
1195
|
WhatsappAccountUpdate,
|
|
1186
1196
|
WhatsappMessageEcho,
|
|
1197
|
+
WhatsappWabaAddedWebhookEvent,
|
|
1187
1198
|
} from './resources/webhooks';
|
|
1188
1199
|
import {
|
|
1189
1200
|
WellKnown,
|
|
@@ -3323,6 +3334,10 @@ export class Telnyx {
|
|
|
3323
3334
|
*/
|
|
3324
3335
|
spendLimits: API.SpendLimits = new API.SpendLimits(this);
|
|
3325
3336
|
llmTokenGateway: API.LlmTokenGateway = new API.LlmTokenGateway(this);
|
|
3337
|
+
/**
|
|
3338
|
+
* UAC connection operations
|
|
3339
|
+
*/
|
|
3340
|
+
sipRegistrationStatus: API.SipRegistrationStatus = new API.SipRegistrationStatus(this);
|
|
3326
3341
|
}
|
|
3327
3342
|
|
|
3328
3343
|
Telnyx.Legacy = Legacy;
|
|
@@ -3515,6 +3530,7 @@ Telnyx.BotSignup = BotSignup;
|
|
|
3515
3530
|
Telnyx.MachinePayments = MachinePayments;
|
|
3516
3531
|
Telnyx.SpendLimits = SpendLimits;
|
|
3517
3532
|
Telnyx.LlmTokenGateway = LlmTokenGateway;
|
|
3533
|
+
Telnyx.SipRegistrationStatus = SipRegistrationStatus;
|
|
3518
3534
|
|
|
3519
3535
|
export declare namespace Telnyx {
|
|
3520
3536
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -3708,6 +3724,7 @@ export declare namespace Telnyx {
|
|
|
3708
3724
|
type CallConversationCreatedWebhookEvent as CallConversationCreatedWebhookEvent,
|
|
3709
3725
|
type CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent,
|
|
3710
3726
|
type CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent,
|
|
3727
|
+
type CallConversationStartFailedWebhookEvent as CallConversationStartFailedWebhookEvent,
|
|
3711
3728
|
type CallCostWebhookEvent as CallCostWebhookEvent,
|
|
3712
3729
|
type CallDeepfakeDetectionErrorWebhookEvent as CallDeepfakeDetectionErrorWebhookEvent,
|
|
3713
3730
|
type CallDeepfakeDetectionResultWebhookEvent as CallDeepfakeDetectionResultWebhookEvent,
|
|
@@ -3762,11 +3779,15 @@ export declare namespace Telnyx {
|
|
|
3762
3779
|
type HostedNumberOrderEventWebhookEvent as HostedNumberOrderEventWebhookEvent,
|
|
3763
3780
|
type InboundMessageWebhookEvent as InboundMessageWebhookEvent,
|
|
3764
3781
|
type NumberOrderStatusUpdateWebhookEvent as NumberOrderStatusUpdateWebhookEvent,
|
|
3782
|
+
type NumberReputationExternalVerificationStatusChangedWebhookEvent as NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
3783
|
+
type NumberReputationNumberFlaggedWebhookEvent as NumberReputationNumberFlaggedWebhookEvent,
|
|
3784
|
+
type NumberReputationNumberRemovedWebhookEvent as NumberReputationNumberRemovedWebhookEvent,
|
|
3765
3785
|
type RecordingAvailableWebhookEvent as RecordingAvailableWebhookEvent,
|
|
3766
3786
|
type ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent,
|
|
3767
3787
|
type SessionStatusChangedWebhookEvent as SessionStatusChangedWebhookEvent,
|
|
3768
3788
|
type TranscriptCompletedWebhookEvent as TranscriptCompletedWebhookEvent,
|
|
3769
3789
|
type TranscriptionWebhookEvent as TranscriptionWebhookEvent,
|
|
3790
|
+
type WhatsappWabaAddedWebhookEvent as WhatsappWabaAddedWebhookEvent,
|
|
3770
3791
|
type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent,
|
|
3771
3792
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
3772
3793
|
};
|
|
@@ -5491,6 +5512,7 @@ export declare namespace Telnyx {
|
|
|
5491
5512
|
export {
|
|
5492
5513
|
EmailTemplates as EmailTemplates,
|
|
5493
5514
|
type EmailTemplate as EmailTemplate,
|
|
5515
|
+
type EmailTemplateCommon as EmailTemplateCommon,
|
|
5494
5516
|
type EmailTemplateResponse as EmailTemplateResponse,
|
|
5495
5517
|
type UpdateEmailTemplateRequest as UpdateEmailTemplateRequest,
|
|
5496
5518
|
type EmailTemplateRenderResponse as EmailTemplateRenderResponse,
|
|
@@ -5603,6 +5625,12 @@ export declare namespace Telnyx {
|
|
|
5603
5625
|
|
|
5604
5626
|
export { LlmTokenGateway as LlmTokenGateway };
|
|
5605
5627
|
|
|
5628
|
+
export {
|
|
5629
|
+
SipRegistrationStatus as SipRegistrationStatus,
|
|
5630
|
+
type SipRegistrationStatusListResponse as SipRegistrationStatusListResponse,
|
|
5631
|
+
type SipRegistrationStatusListParams as SipRegistrationStatusListParams,
|
|
5632
|
+
};
|
|
5633
|
+
|
|
5606
5634
|
export type APIError = API.APIError;
|
|
5607
5635
|
export type AvailablePhoneNumbersMetadata = API.AvailablePhoneNumbersMetadata;
|
|
5608
5636
|
export type AzureVoiceSettings = API.AzureVoiceSettings;
|
package/src/resources/ai/ai.ts
CHANGED
|
@@ -8,6 +8,18 @@ import {
|
|
|
8
8
|
AudioTranscribeResponse,
|
|
9
9
|
AudioTranscriptionResponseWord,
|
|
10
10
|
} from './audio';
|
|
11
|
+
import * as AvatarsAPI from './avatars';
|
|
12
|
+
import {
|
|
13
|
+
Avatar,
|
|
14
|
+
AvatarCreateParams,
|
|
15
|
+
AvatarID,
|
|
16
|
+
AvatarListParams,
|
|
17
|
+
AvatarResponse,
|
|
18
|
+
AvatarType,
|
|
19
|
+
AvatarUpdateParams,
|
|
20
|
+
Avatars,
|
|
21
|
+
AvatarsDefaultFlatPagination,
|
|
22
|
+
} from './avatars';
|
|
11
23
|
import * as ChatAPI from './chat';
|
|
12
24
|
import { BucketIDs, Chat, ChatCompletionRequest } from './chat';
|
|
13
25
|
import * as ClustersAPI from './clusters';
|
|
@@ -71,6 +83,7 @@ import {
|
|
|
71
83
|
AssistantsList,
|
|
72
84
|
AudioVisualizerConfig,
|
|
73
85
|
AuthenticationMethod,
|
|
86
|
+
AvatarSettingsRequest,
|
|
74
87
|
BooleanOpExpression,
|
|
75
88
|
ComparisonExpression,
|
|
76
89
|
ConversationFlow,
|
|
@@ -107,6 +120,7 @@ import {
|
|
|
107
120
|
SpeakNodeReq,
|
|
108
121
|
StartSpeakingPlan,
|
|
109
122
|
TelephonySettings,
|
|
123
|
+
TelnyxAvatarSettings,
|
|
110
124
|
ToolNode,
|
|
111
125
|
ToolNodeReq,
|
|
112
126
|
TranscriptionEndpointingPlan,
|
|
@@ -203,6 +217,7 @@ export class AI extends APIResource {
|
|
|
203
217
|
knowledge: KnowledgeAPI.Knowledge = new KnowledgeAPI.Knowledge(this._client);
|
|
204
218
|
typesafe: TypesafeAPI.Typesafe = new TypesafeAPI.Typesafe(this._client);
|
|
205
219
|
memory: MemoryAPI.Memory = new MemoryAPI.Memory(this._client);
|
|
220
|
+
avatars: AvatarsAPI.Avatars = new AvatarsAPI.Avatars(this._client);
|
|
206
221
|
|
|
207
222
|
/**
|
|
208
223
|
* Generate a summary of a file's contents.
|
|
@@ -402,9 +417,14 @@ export interface ModelMetadata {
|
|
|
402
417
|
is_vision_supported?: boolean;
|
|
403
418
|
|
|
404
419
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
420
|
+
* Model-specific completion-token ceiling. For Chat Completions, this value clamps
|
|
421
|
+
* explicit output limits and the 8192 default when that default applies. Models
|
|
422
|
+
* excluded from the default leave an omitted or null output limit unset for the
|
|
423
|
+
* serving engine, even when this metadata declares a ceiling; see
|
|
424
|
+
* `ChatCompletionRequest.max_tokens` for the hosted default and exclusion lists.
|
|
425
|
+
* This field does not report the effective default. `null` means no separate
|
|
426
|
+
* completion ceiling is declared; input and output together must still fit
|
|
427
|
+
* `context_length`.
|
|
408
428
|
*/
|
|
409
429
|
max_completion_tokens?: number | null;
|
|
410
430
|
|
|
@@ -652,6 +672,7 @@ AI.Anthropic = Anthropic;
|
|
|
652
672
|
AI.Knowledge = Knowledge;
|
|
653
673
|
AI.Typesafe = Typesafe;
|
|
654
674
|
AI.Memory = Memory;
|
|
675
|
+
AI.Avatars = Avatars;
|
|
655
676
|
|
|
656
677
|
export declare namespace AI {
|
|
657
678
|
export {
|
|
@@ -675,6 +696,7 @@ export declare namespace AI {
|
|
|
675
696
|
type AssistantsList as AssistantsList,
|
|
676
697
|
type AudioVisualizerConfig as AudioVisualizerConfig,
|
|
677
698
|
type AuthenticationMethod as AuthenticationMethod,
|
|
699
|
+
type AvatarSettingsRequest as AvatarSettingsRequest,
|
|
678
700
|
type BooleanOpExpression as BooleanOpExpression,
|
|
679
701
|
type ComparisonExpression as ComparisonExpression,
|
|
680
702
|
type ConversationFlow as ConversationFlow,
|
|
@@ -711,6 +733,7 @@ export declare namespace AI {
|
|
|
711
733
|
type SpeakNodeReq as SpeakNodeReq,
|
|
712
734
|
type StartSpeakingPlan as StartSpeakingPlan,
|
|
713
735
|
type TelephonySettings as TelephonySettings,
|
|
736
|
+
type TelnyxAvatarSettings as TelnyxAvatarSettings,
|
|
714
737
|
type ToolNode as ToolNode,
|
|
715
738
|
type ToolNodeReq as ToolNodeReq,
|
|
716
739
|
type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan,
|
|
@@ -850,4 +873,16 @@ export declare namespace AI {
|
|
|
850
873
|
export { Typesafe as Typesafe };
|
|
851
874
|
|
|
852
875
|
export { Memory as Memory };
|
|
876
|
+
|
|
877
|
+
export {
|
|
878
|
+
Avatars as Avatars,
|
|
879
|
+
type Avatar as Avatar,
|
|
880
|
+
type AvatarID as AvatarID,
|
|
881
|
+
type AvatarResponse as AvatarResponse,
|
|
882
|
+
type AvatarType as AvatarType,
|
|
883
|
+
type AvatarsDefaultFlatPagination as AvatarsDefaultFlatPagination,
|
|
884
|
+
type AvatarListParams as AvatarListParams,
|
|
885
|
+
type AvatarCreateParams as AvatarCreateParams,
|
|
886
|
+
type AvatarUpdateParams as AvatarUpdateParams,
|
|
887
|
+
};
|
|
853
888
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as AssistantsAPI from './assistants';
|
|
5
5
|
import * as Shared from '../../shared';
|
|
6
|
+
import * as AvatarsAPI from '../avatars';
|
|
6
7
|
import * as ChatAPI from '../chat';
|
|
7
8
|
import * as ToolsAPI from '../tools';
|
|
8
9
|
import * as CanaryDeploysAPI from './canary-deploys';
|
|
@@ -1095,6 +1096,20 @@ export namespace AssistantTool {
|
|
|
1095
1096
|
* `shared` the exchange stays in the conversation like any other messages.
|
|
1096
1097
|
*/
|
|
1097
1098
|
end_user_target_context_mode?: 'private' | 'shared';
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Fail closed when the acceptance consult cannot run. Off by default: if the
|
|
1102
|
+
* consult cannot be set up for any reason — including where acceptance is
|
|
1103
|
+
* unavailable at all (`gather_using_ai`, Conversation Relay or web calls, a
|
|
1104
|
+
* conference, or additional invited participants) — the transfer degrades to a
|
|
1105
|
+
* plain warm transfer (the warm transfer message is played to the destination as
|
|
1106
|
+
* audio and the calls are bridged anyway). Set to true to treat those paths as a
|
|
1107
|
+
* decline instead: the destination is disconnected without being asked, the
|
|
1108
|
+
* assistant returns to the caller, and no bridge happens without an acceptance.
|
|
1109
|
+
* Only consult-setup failures are affected; the destination must still explicitly
|
|
1110
|
+
* accept on every consult that does run.
|
|
1111
|
+
*/
|
|
1112
|
+
require_acceptance?: boolean;
|
|
1098
1113
|
}
|
|
1099
1114
|
}
|
|
1100
1115
|
}
|
|
@@ -1440,6 +1455,34 @@ export interface AudioVisualizerConfig {
|
|
|
1440
1455
|
*/
|
|
1441
1456
|
export type AuthenticationMethod = 'token' | 'certificate';
|
|
1442
1457
|
|
|
1458
|
+
/**
|
|
1459
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
1460
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
1461
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
1462
|
+
*/
|
|
1463
|
+
export interface AvatarSettingsRequest {
|
|
1464
|
+
/**
|
|
1465
|
+
* The Telnyx stock avatar or organization-owned custom avatar to render.
|
|
1466
|
+
*/
|
|
1467
|
+
avatar_id: AvatarsAPI.AvatarID;
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* The background to render.
|
|
1471
|
+
*/
|
|
1472
|
+
background_id: 'office' | 'studio' | 'reception';
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Required avatar model identifier, separate from `avatar_id`. The supported value
|
|
1476
|
+
* is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
|
|
1477
|
+
*/
|
|
1478
|
+
model: 'foxtrot-1';
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Selects the Telnyx open-source avatar provider.
|
|
1482
|
+
*/
|
|
1483
|
+
provider: 'telnyx';
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1443
1486
|
/**
|
|
1444
1487
|
* Combine sub-expressions with a logical operator (`and` / `or` / `not`).
|
|
1445
1488
|
*
|
|
@@ -2112,7 +2155,11 @@ export interface FlowNodeReq {
|
|
|
2112
2155
|
|
|
2113
2156
|
/**
|
|
2114
2157
|
* Per-node transcription override (model/language/region). Unset fields cascade
|
|
2115
|
-
* from the assistant-level transcription.
|
|
2158
|
+
* from the assistant-level transcription. A node that sets `model`,
|
|
2159
|
+
* `fallback_models`, or `challenger` doesn't inherit the assistant's
|
|
2160
|
+
* `fallback_models` or `challenger`; it uses only the ones it sets. Otherwise it
|
|
2161
|
+
* inherits them, and they must fit the model and language the node runs; a change
|
|
2162
|
+
* they no longer fit is rejected.
|
|
2116
2163
|
*/
|
|
2117
2164
|
transcription?: TranscriptionSettings;
|
|
2118
2165
|
|
|
@@ -2189,6 +2236,13 @@ export interface InferenceEmbedding {
|
|
|
2189
2236
|
*/
|
|
2190
2237
|
a2a_agents?: Array<AssistantA2AAgent>;
|
|
2191
2238
|
|
|
2239
|
+
/**
|
|
2240
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
2241
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
2242
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
2243
|
+
*/
|
|
2244
|
+
avatar_settings?: TelnyxAvatarSettings | null;
|
|
2245
|
+
|
|
2192
2246
|
/**
|
|
2193
2247
|
* Conversation flow as returned by the API.
|
|
2194
2248
|
*/
|
|
@@ -2426,8 +2480,8 @@ export interface InferenceEmbeddingVoiceSettings {
|
|
|
2426
2480
|
* preview it before saving.
|
|
2427
2481
|
*/
|
|
2428
2482
|
background_audio?:
|
|
2429
|
-
| InferenceEmbeddingVoiceSettings.
|
|
2430
|
-
| InferenceEmbeddingVoiceSettings.
|
|
2483
|
+
| InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember0
|
|
2484
|
+
| InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember1
|
|
2431
2485
|
| InferenceEmbeddingVoiceSettings.UnionMember2;
|
|
2432
2486
|
|
|
2433
2487
|
/**
|
|
@@ -2512,6 +2566,17 @@ export interface InferenceEmbeddingVoiceSettings {
|
|
|
2512
2566
|
*/
|
|
2513
2567
|
temperature?: number;
|
|
2514
2568
|
|
|
2569
|
+
/**
|
|
2570
|
+
* Optional sound played to the caller while the assistant runs a tool (for example
|
|
2571
|
+
* a webhook or MCP tool). It replaces the background audio until the tool
|
|
2572
|
+
* responds, then the background audio resumes. Defaults to null, which plays no
|
|
2573
|
+
* sound; send `null` on update to clear it. Not played in conference calls.
|
|
2574
|
+
*/
|
|
2575
|
+
tool_call_audio?:
|
|
2576
|
+
| InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember0
|
|
2577
|
+
| InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember1
|
|
2578
|
+
| null;
|
|
2579
|
+
|
|
2515
2580
|
/**
|
|
2516
2581
|
* Amplifies similarity to the original speaker voice. Increases computational load
|
|
2517
2582
|
* and latency slightly. Only applicable when using ElevenLabs.
|
|
@@ -2528,7 +2593,7 @@ export interface InferenceEmbeddingVoiceSettings {
|
|
|
2528
2593
|
}
|
|
2529
2594
|
|
|
2530
2595
|
export namespace InferenceEmbeddingVoiceSettings {
|
|
2531
|
-
export interface
|
|
2596
|
+
export interface BackgroundAudioUnionMember0 {
|
|
2532
2597
|
/**
|
|
2533
2598
|
* Select from predefined media options.
|
|
2534
2599
|
*/
|
|
@@ -2546,7 +2611,7 @@ export namespace InferenceEmbeddingVoiceSettings {
|
|
|
2546
2611
|
volume?: number;
|
|
2547
2612
|
}
|
|
2548
2613
|
|
|
2549
|
-
export interface
|
|
2614
|
+
export interface BackgroundAudioUnionMember1 {
|
|
2550
2615
|
/**
|
|
2551
2616
|
* Provide a direct URL to an MP3 file. The audio will loop during the call.
|
|
2552
2617
|
*/
|
|
@@ -2571,6 +2636,36 @@ export namespace InferenceEmbeddingVoiceSettings {
|
|
|
2571
2636
|
*/
|
|
2572
2637
|
value: string;
|
|
2573
2638
|
}
|
|
2639
|
+
|
|
2640
|
+
export interface ToolCallAudioUnionMember0 {
|
|
2641
|
+
/**
|
|
2642
|
+
* Select from predefined media options.
|
|
2643
|
+
*/
|
|
2644
|
+
type: 'predefined_media';
|
|
2645
|
+
|
|
2646
|
+
/**
|
|
2647
|
+
* The predefined media to use. `typing` plays a keyboard typing sound.
|
|
2648
|
+
*/
|
|
2649
|
+
value: 'typing';
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* Volume level for the predefined media. Supports values from 0.0 to 1.0 in 0.1
|
|
2653
|
+
* increments. `0.0` plays no sound.
|
|
2654
|
+
*/
|
|
2655
|
+
volume?: number;
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
export interface ToolCallAudioUnionMember1 {
|
|
2659
|
+
/**
|
|
2660
|
+
* Provide a direct URL to an MP3 file. The audio loops while the tool runs.
|
|
2661
|
+
*/
|
|
2662
|
+
type: 'media_url';
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* HTTPS URL to an MP3 file.
|
|
2666
|
+
*/
|
|
2667
|
+
value: string;
|
|
2668
|
+
}
|
|
2574
2669
|
}
|
|
2575
2670
|
|
|
2576
2671
|
export interface InferenceEmbeddingWebhookToolParams {
|
|
@@ -3124,6 +3219,16 @@ export interface StartSpeakingPlan {
|
|
|
3124
3219
|
}
|
|
3125
3220
|
|
|
3126
3221
|
export interface TelephonySettings {
|
|
3222
|
+
/**
|
|
3223
|
+
* When enabled, the `messages` array of the `call.conversation.ended` webhook
|
|
3224
|
+
* contains the full conversation history in order: user and assistant turns,
|
|
3225
|
+
* assistant tool calls (`tool_calls`), tool results (`role: tool` with
|
|
3226
|
+
* `tool_call_id`), and informational `system` and `developer` entries. The
|
|
3227
|
+
* assistant's instructions are never included. When disabled, `messages` contains
|
|
3228
|
+
* only user and assistant text turns.
|
|
3229
|
+
*/
|
|
3230
|
+
conversation_ended_full_history?: boolean;
|
|
3231
|
+
|
|
3127
3232
|
/**
|
|
3128
3233
|
* Default Texml App used for voice calls with your assistant. This will be created
|
|
3129
3234
|
* automatically on assistant creation.
|
|
@@ -3349,6 +3454,34 @@ export namespace TelephonySettings {
|
|
|
3349
3454
|
}
|
|
3350
3455
|
}
|
|
3351
3456
|
|
|
3457
|
+
/**
|
|
3458
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
3459
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
3460
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
3461
|
+
*/
|
|
3462
|
+
export interface TelnyxAvatarSettings {
|
|
3463
|
+
/**
|
|
3464
|
+
* The Telnyx stock avatar or organization-owned custom avatar to render.
|
|
3465
|
+
*/
|
|
3466
|
+
avatar_id: AvatarsAPI.AvatarID;
|
|
3467
|
+
|
|
3468
|
+
/**
|
|
3469
|
+
* The background to render.
|
|
3470
|
+
*/
|
|
3471
|
+
background_id: 'office' | 'studio' | 'reception';
|
|
3472
|
+
|
|
3473
|
+
/**
|
|
3474
|
+
* Required avatar model identifier, separate from `avatar_id`. The supported value
|
|
3475
|
+
* is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
|
|
3476
|
+
*/
|
|
3477
|
+
model: 'foxtrot-1';
|
|
3478
|
+
|
|
3479
|
+
/**
|
|
3480
|
+
* Selects the Telnyx open-source avatar provider.
|
|
3481
|
+
*/
|
|
3482
|
+
provider: 'telnyx';
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3352
3485
|
/**
|
|
3353
3486
|
* A standalone tool step in a conversation flow, as returned by the API.
|
|
3354
3487
|
*/
|
|
@@ -3489,6 +3622,24 @@ export interface TranscriptionSettings {
|
|
|
3489
3622
|
*/
|
|
3490
3623
|
api_key_ref?: string;
|
|
3491
3624
|
|
|
3625
|
+
/**
|
|
3626
|
+
* A second speech-to-text model that transcribes alongside `transcription.model`,
|
|
3627
|
+
* and the rule that decides which transcript the assistant uses.
|
|
3628
|
+
*/
|
|
3629
|
+
challenger?: TranscriptionSettings.Challenger | null;
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* Up to 3 streaming models that take over transcription, in this order, when the
|
|
3633
|
+
* model in use fails, at the start of a call or mid-call. `model` must be a
|
|
3634
|
+
* streaming model too, and must support `language` alongside other models. On
|
|
3635
|
+
* update, a list replaces the stored one: omit the field to keep the stored list,
|
|
3636
|
+
* or send `null` or `[]` to remove it. When an update changes `model` or
|
|
3637
|
+
* `language`, stored fallbacks that no longer fit are removed without an error.
|
|
3638
|
+
* Can't be combined with `challenger`, the language booster; to replace a stored
|
|
3639
|
+
* language booster, send `challenger: null` in the same request.
|
|
3640
|
+
*/
|
|
3641
|
+
fallback_models?: Array<TranscriptionSettings.FallbackModel> | null;
|
|
3642
|
+
|
|
3492
3643
|
/**
|
|
3493
3644
|
* The language of the audio to be transcribed. If not set, or if set to `auto`,
|
|
3494
3645
|
* supported models will automatically detect the language. For `deepgram/flux`,
|
|
@@ -3534,6 +3685,7 @@ export interface TranscriptionSettings {
|
|
|
3534
3685
|
* - `reson8/turns` is a turn-based streaming model covering 10 European languages
|
|
3535
3686
|
* with automatic language detection.
|
|
3536
3687
|
* - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
|
|
3688
|
+
* - `telnyx/basira` is a non-streaming Arabic transcription model.
|
|
3537
3689
|
*/
|
|
3538
3690
|
model?:
|
|
3539
3691
|
| 'deepgram/flux'
|
|
@@ -3550,6 +3702,7 @@ export interface TranscriptionSettings {
|
|
|
3550
3702
|
| 'humain/realtime'
|
|
3551
3703
|
| 'reson8/turns'
|
|
3552
3704
|
| 'cohere/ar-stt'
|
|
3705
|
+
| 'telnyx/basira'
|
|
3553
3706
|
| 'distil-whisper/distil-large-v2'
|
|
3554
3707
|
| 'openai/whisper-large-v3-turbo';
|
|
3555
3708
|
|
|
@@ -3562,6 +3715,124 @@ export interface TranscriptionSettings {
|
|
|
3562
3715
|
settings?: TranscriptionSettingsConfig;
|
|
3563
3716
|
}
|
|
3564
3717
|
|
|
3718
|
+
export namespace TranscriptionSettings {
|
|
3719
|
+
/**
|
|
3720
|
+
* A second speech-to-text model that transcribes alongside `transcription.model`,
|
|
3721
|
+
* and the rule that decides which transcript the assistant uses.
|
|
3722
|
+
*/
|
|
3723
|
+
export interface Challenger {
|
|
3724
|
+
/**
|
|
3725
|
+
* The language booster's model. It must be the same kind of model as
|
|
3726
|
+
* `transcription.model`: both streaming (`deepgram/flux`, `deepgram/nova-3`,
|
|
3727
|
+
* `deepgram/nova-2`, `assemblyai/universal-3-5-pro` or its legacy alias
|
|
3728
|
+
* `assemblyai/universal-streaming`, `xai/grok-stt`, `soniox/stt-rt-v4`,
|
|
3729
|
+
* `soniox/stt-rt-v5`, `humain/realtime`, `reson8/turns`) or both non-streaming
|
|
3730
|
+
* (`azure/fast`, `nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`,
|
|
3731
|
+
* `cohere/ar-stt`, `distil-whisper/distil-large-v2`,
|
|
3732
|
+
* `openai/whisper-large-v3-turbo`, `telnyx/basira`). It can be the same model as
|
|
3733
|
+
* `transcription.model` on a different `language`.
|
|
3734
|
+
*/
|
|
3735
|
+
model:
|
|
3736
|
+
| 'deepgram/flux'
|
|
3737
|
+
| 'deepgram/nova-3'
|
|
3738
|
+
| 'deepgram/nova-2'
|
|
3739
|
+
| 'azure/fast'
|
|
3740
|
+
| 'assemblyai/universal-3-5-pro'
|
|
3741
|
+
| 'assemblyai/universal-streaming'
|
|
3742
|
+
| 'xai/grok-stt'
|
|
3743
|
+
| 'soniox/stt-rt-v4'
|
|
3744
|
+
| 'soniox/stt-rt-v5'
|
|
3745
|
+
| 'nvidia/parakeet-v3'
|
|
3746
|
+
| 'omi-health/omi-med-stt-v1'
|
|
3747
|
+
| 'humain/realtime'
|
|
3748
|
+
| 'reson8/turns'
|
|
3749
|
+
| 'cohere/ar-stt'
|
|
3750
|
+
| 'telnyx/basira'
|
|
3751
|
+
| 'distil-whisper/distil-large-v2'
|
|
3752
|
+
| 'openai/whisper-large-v3-turbo';
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* The language this model transcribes. Omit it or set it to `null` to use the
|
|
3756
|
+
* language of `transcription.model`. The request is rejected when this model
|
|
3757
|
+
* doesn't support the language it would run. It is also rejected when it would run
|
|
3758
|
+
* the same model on the same language as `transcription.model`.
|
|
3759
|
+
*/
|
|
3760
|
+
language?: string | null;
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* How the assistant picks the transcript it uses. The models are compared on how
|
|
3764
|
+
* complete and confident their transcripts are, not on language, so the rules work
|
|
3765
|
+
* best when both models understand the callers' language.
|
|
3766
|
+
*
|
|
3767
|
+
* - `best_turn` (default): both models transcribe the whole call. Each turn uses
|
|
3768
|
+
* the language booster's transcript only when it scores higher than the
|
|
3769
|
+
* transcript of `transcription.model` (clearly higher with non-streaming
|
|
3770
|
+
* models). With streaming models, `transcription.model` also decides when each
|
|
3771
|
+
* turn ends. Available for every pair.
|
|
3772
|
+
* - `best_engine`: both models transcribe the first turns, then the call continues
|
|
3773
|
+
* alone on the model whose transcripts scored higher. If neither clearly leads,
|
|
3774
|
+
* `transcription.model` continues. Streaming models only.
|
|
3775
|
+
* - `merge_words`: both models transcribe each utterance and their words are
|
|
3776
|
+
* merged, keeping Arabic and English spoken in the same sentence. Available only
|
|
3777
|
+
* for `telnyx/basira` with `cohere/ar-stt`, in either order. The pair runs on
|
|
3778
|
+
* the language that applies to `telnyx/basira` (its own, or that of
|
|
3779
|
+
* `transcription.model`), which must be Arabic (`ar` or an `ar-` locale),
|
|
3780
|
+
* `multi`, or `auto`.
|
|
3781
|
+
*/
|
|
3782
|
+
rule?: 'best_turn' | 'best_engine' | 'merge_words';
|
|
3783
|
+
|
|
3784
|
+
/**
|
|
3785
|
+
* Settings for the language booster, with the same fields and limits as
|
|
3786
|
+
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3787
|
+
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3788
|
+
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3789
|
+
* model.
|
|
3790
|
+
*/
|
|
3791
|
+
settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
/**
|
|
3795
|
+
* A streaming speech-to-text model that takes over transcription when the model in
|
|
3796
|
+
* use fails.
|
|
3797
|
+
*/
|
|
3798
|
+
export interface FallbackModel {
|
|
3799
|
+
/**
|
|
3800
|
+
* The fallback model. It must be a streaming model other than
|
|
3801
|
+
* `transcription.model` and the other fallbacks: `deepgram/flux`,
|
|
3802
|
+
* `deepgram/nova-3`, `deepgram/nova-2`, `assemblyai/universal-3-5-pro` (or its
|
|
3803
|
+
* legacy alias `assemblyai/universal-streaming`), `xai/grok-stt`,
|
|
3804
|
+
* `soniox/stt-rt-v4`, `soniox/stt-rt-v5`, `humain/realtime`, or `reson8/turns`.
|
|
3805
|
+
*/
|
|
3806
|
+
model:
|
|
3807
|
+
| 'deepgram/flux'
|
|
3808
|
+
| 'deepgram/nova-3'
|
|
3809
|
+
| 'deepgram/nova-2'
|
|
3810
|
+
| 'assemblyai/universal-3-5-pro'
|
|
3811
|
+
| 'assemblyai/universal-streaming'
|
|
3812
|
+
| 'xai/grok-stt'
|
|
3813
|
+
| 'soniox/stt-rt-v4'
|
|
3814
|
+
| 'soniox/stt-rt-v5'
|
|
3815
|
+
| 'humain/realtime'
|
|
3816
|
+
| 'reson8/turns';
|
|
3817
|
+
|
|
3818
|
+
/**
|
|
3819
|
+
* The language the fallback transcribes. Omit it or set it to `null` to use the
|
|
3820
|
+
* language of `transcription.model`. The request is rejected when the fallback
|
|
3821
|
+
* model doesn't support the language it would run.
|
|
3822
|
+
*/
|
|
3823
|
+
language?: string | null;
|
|
3824
|
+
|
|
3825
|
+
/**
|
|
3826
|
+
* Settings for the fallback, with the same fields and limits as
|
|
3827
|
+
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3828
|
+
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3829
|
+
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3830
|
+
* model.
|
|
3831
|
+
*/
|
|
3832
|
+
settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3565
3836
|
export interface TranscriptionSettingsConfig {
|
|
3566
3837
|
/**
|
|
3567
3838
|
* Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. A comma-separated list
|
|
@@ -4162,6 +4433,13 @@ export interface AssistantCreateParams {
|
|
|
4162
4433
|
*/
|
|
4163
4434
|
a2a_agents?: Array<AssistantA2AAgent>;
|
|
4164
4435
|
|
|
4436
|
+
/**
|
|
4437
|
+
* Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
|
|
4438
|
+
* Use one of the six stock avatars or an organization-owned custom avatar returned
|
|
4439
|
+
* by the Avatars API. Supported backgrounds are office, studio, and reception.
|
|
4440
|
+
*/
|
|
4441
|
+
avatar_settings?: AvatarSettingsRequest | null;
|
|
4442
|
+
|
|
4165
4443
|
/**
|
|
4166
4444
|
* Body param: Conversation flow as supplied by API clients (create / update).
|
|
4167
4445
|
*
|
|
@@ -4448,6 +4726,13 @@ export interface AssistantUpdateParams {
|
|
|
4448
4726
|
*/
|
|
4449
4727
|
a2a_agents?: Array<AssistantA2AAgent>;
|
|
4450
4728
|
|
|
4729
|
+
/**
|
|
4730
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
4731
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
4732
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
4733
|
+
*/
|
|
4734
|
+
avatar_settings?: AvatarSettingsRequest | null;
|
|
4735
|
+
|
|
4451
4736
|
/**
|
|
4452
4737
|
* Conversation flow as supplied by API clients (create / update).
|
|
4453
4738
|
*
|
|
@@ -4779,6 +5064,7 @@ export declare namespace Assistants {
|
|
|
4779
5064
|
type AssistantsList as AssistantsList,
|
|
4780
5065
|
type AudioVisualizerConfig as AudioVisualizerConfig,
|
|
4781
5066
|
type AuthenticationMethod as AuthenticationMethod,
|
|
5067
|
+
type AvatarSettingsRequest as AvatarSettingsRequest,
|
|
4782
5068
|
type BooleanOpExpression as BooleanOpExpression,
|
|
4783
5069
|
type ComparisonExpression as ComparisonExpression,
|
|
4784
5070
|
type ConversationFlow as ConversationFlow,
|
|
@@ -4815,6 +5101,7 @@ export declare namespace Assistants {
|
|
|
4815
5101
|
type SpeakNodeReq as SpeakNodeReq,
|
|
4816
5102
|
type StartSpeakingPlan as StartSpeakingPlan,
|
|
4817
5103
|
type TelephonySettings as TelephonySettings,
|
|
5104
|
+
type TelnyxAvatarSettings as TelnyxAvatarSettings,
|
|
4818
5105
|
type ToolNode as ToolNode,
|
|
4819
5106
|
type ToolNodeReq as ToolNodeReq,
|
|
4820
5107
|
type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan,
|
|
@@ -11,6 +11,7 @@ export {
|
|
|
11
11
|
type AssistantsList,
|
|
12
12
|
type AudioVisualizerConfig,
|
|
13
13
|
type AuthenticationMethod,
|
|
14
|
+
type AvatarSettingsRequest,
|
|
14
15
|
type BooleanOpExpression,
|
|
15
16
|
type ComparisonExpression,
|
|
16
17
|
type ConversationFlow,
|
|
@@ -47,6 +48,7 @@ export {
|
|
|
47
48
|
type SpeakNodeReq,
|
|
48
49
|
type StartSpeakingPlan,
|
|
49
50
|
type TelephonySettings,
|
|
51
|
+
type TelnyxAvatarSettings,
|
|
50
52
|
type ToolNode,
|
|
51
53
|
type ToolNodeReq,
|
|
52
54
|
type TranscriptionEndpointingPlan,
|
|
@@ -130,6 +130,13 @@ export interface UpdateAssistant {
|
|
|
130
130
|
*/
|
|
131
131
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
132
132
|
|
|
133
|
+
/**
|
|
134
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
135
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
136
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
137
|
+
*/
|
|
138
|
+
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
139
|
+
|
|
133
140
|
/**
|
|
134
141
|
* Conversation flow as supplied by API clients (create / update).
|
|
135
142
|
*
|
|
@@ -357,6 +364,13 @@ export interface VersionUpdateParams {
|
|
|
357
364
|
*/
|
|
358
365
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
359
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
|
|
369
|
+
* Use one of the six stock avatars or an organization-owned custom avatar returned
|
|
370
|
+
* by the Avatars API. Supported backgrounds are office, studio, and reception.
|
|
371
|
+
*/
|
|
372
|
+
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
373
|
+
|
|
360
374
|
/**
|
|
361
375
|
* Body param: Conversation flow as supplied by API clients (create / update).
|
|
362
376
|
*
|