telnyx 7.29.0 → 7.30.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/README.md +27 -0
- package/client.d.mts +9 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -10
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +20 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +20 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/lib/login-token.d.mts +91 -0
- package/lib/login-token.d.mts.map +1 -0
- package/lib/login-token.d.ts +91 -0
- package/lib/login-token.d.ts.map +1 -0
- package/lib/login-token.js +190 -0
- package/lib/login-token.js.map +1 -0
- package/lib/login-token.mjs +151 -0
- package/lib/login-token.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +9 -4
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +9 -4
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +191 -109
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +191 -109
- 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/chat.d.mts +3 -5
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +3 -5
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +27 -2
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +27 -2
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js +23 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs +23 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/conversations/index.d.mts +1 -1
- package/resources/ai/conversations/index.d.mts.map +1 -1
- package/resources/ai/conversations/index.d.ts +1 -1
- package/resources/ai/conversations/index.d.ts.map +1 -1
- package/resources/ai/conversations/index.js.map +1 -1
- package/resources/ai/conversations/index.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- 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 +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 +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +3 -3
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +3 -3
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/memory/namespaces/settings.d.mts +23 -27
- package/resources/ai/memory/namespaces/settings.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/settings.d.ts +23 -27
- package/resources/ai/memory/namespaces/settings.d.ts.map +1 -1
- package/resources/ai/openai/chat.d.mts +3 -5
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +3 -5
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tests/test-framework/v1/v1.d.mts +15 -5
- package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -1
- package/resources/ai/tests/test-framework/v1/v1.d.ts +15 -5
- package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +222 -0
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +222 -0
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/browser-sessions/actions.d.mts +13 -7
- package/resources/browser-sessions/actions.d.mts.map +1 -1
- package/resources/browser-sessions/actions.d.ts +13 -7
- package/resources/browser-sessions/actions.d.ts.map +1 -1
- package/resources/browser-sessions/browser-sessions.d.mts +6 -2
- package/resources/browser-sessions/browser-sessions.d.mts.map +1 -1
- package/resources/browser-sessions/browser-sessions.d.ts +6 -2
- package/resources/browser-sessions/browser-sessions.d.ts.map +1 -1
- package/resources/compute/funcs/export.d.mts +33 -35
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +33 -35
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +2 -2
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +2 -2
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs +1 -1
- package/resources/compute/funcs/index.mjs.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.js +2 -2
- package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.mjs +2 -2
- package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -1
- package/resources/email-events.d.mts +84 -106
- package/resources/email-events.d.mts.map +1 -1
- package/resources/email-events.d.ts +84 -106
- package/resources/email-events.d.ts.map +1 -1
- package/resources/email-events.js +5 -1
- package/resources/email-events.js.map +1 -1
- package/resources/email-events.mjs +5 -1
- package/resources/email-events.mjs.map +1 -1
- package/resources/email-messages/email-messages.d.mts +1 -7
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +1 -7
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/email-templates.d.mts +16 -70
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +16 -70
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/enterprises/enterprises.d.mts +2 -2
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +2 -2
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js.map +1 -1
- 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 +26 -29
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.ts +26 -29
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -1
- package/resources/enterprises/reputation/external-verification.js +3 -3
- package/resources/enterprises/reputation/external-verification.js.map +1 -1
- package/resources/enterprises/reputation/external-verification.mjs +1 -1
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -1
- package/resources/enterprises/reputation/index.d.mts +1 -1
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +1 -1
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +2 -2
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -1
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +3 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +3 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +2 -2
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +3 -3
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/enterprises/verify-email.d.mts +27 -29
- package/resources/enterprises/verify-email.d.mts.map +1 -1
- package/resources/enterprises/verify-email.d.ts +27 -29
- package/resources/enterprises/verify-email.d.ts.map +1 -1
- package/resources/index.d.mts +3 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +32 -2
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +32 -2
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +11 -0
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +11 -0
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/number-lookup.d.mts +5 -0
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +5 -0
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/pay-connectors.d.mts +7 -7
- package/resources/pay-connectors.d.mts.map +1 -1
- package/resources/pay-connectors.d.ts +7 -7
- package/resources/pay-connectors.d.ts.map +1 -1
- package/resources/phone-numbers/index.d.mts +1 -1
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +1 -1
- package/resources/phone-numbers/index.d.ts.map +1 -1
- package/resources/phone-numbers/index.js.map +1 -1
- package/resources/phone-numbers/index.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +21 -57
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +21 -57
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +2 -2
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +2 -2
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/portouts/portouts.d.mts +2 -1
- package/resources/portouts/portouts.d.mts.map +1 -1
- package/resources/portouts/portouts.d.ts +2 -1
- package/resources/portouts/portouts.d.ts.map +1 -1
- package/resources/portouts/portouts.js +2 -1
- package/resources/portouts/portouts.js.map +1 -1
- package/resources/portouts/portouts.mjs +2 -1
- package/resources/portouts/portouts.mjs.map +1 -1
- package/resources/telephony-credentials.d.mts +78 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +78 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +50 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +50 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/voice-clones.d.mts +4 -4
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +4 -4
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/webhooks.d.mts +10 -20
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +10 -20
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.d.mts +2 -2
- package/resources/whatsapp/business-accounts/business-accounts.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.d.ts +2 -2
- package/resources/whatsapp/business-accounts/business-accounts.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.js.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.mjs.map +1 -1
- package/resources/whatsapp/business-accounts/index.d.mts +1 -1
- package/resources/whatsapp/business-accounts/index.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/index.d.ts +1 -1
- package/resources/whatsapp/business-accounts/index.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/index.js.map +1 -1
- package/resources/whatsapp/business-accounts/index.mjs.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts +7 -66
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts +7 -66
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.js +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.js.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.mjs +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +11 -73
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
- package/resources/whatsapp/hosted-signups.d.ts +11 -73
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
- package/resources/whatsapp/hosted-signups.js +5 -2
- package/resources/whatsapp/hosted-signups.js.map +1 -1
- package/resources/whatsapp/hosted-signups.mjs +5 -2
- package/resources/whatsapp/hosted-signups.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +2 -2
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +2 -2
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +9 -135
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +9 -135
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +4 -4
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -4
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +16 -5
- package/src/core/pagination.ts +58 -0
- package/src/lib/login-token.ts +223 -0
- package/src/resources/ai/ai.ts +12 -0
- package/src/resources/ai/assistants/assistants.ts +227 -144
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/chat.ts +3 -5
- package/src/resources/ai/conversations/conversations.ts +39 -1
- package/src/resources/ai/conversations/index.ts +1 -0
- package/src/resources/ai/index.ts +3 -0
- package/src/resources/ai/memory/namespaces/index.ts +7 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +9 -1
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +5 -3
- package/src/resources/ai/memory/namespaces/settings.ts +25 -27
- package/src/resources/ai/openai/chat.ts +3 -5
- package/src/resources/ai/tests/test-framework/v1/v1.ts +5 -5
- package/src/resources/ai/tools.ts +366 -0
- package/src/resources/browser-sessions/actions.ts +7 -7
- package/src/resources/browser-sessions/browser-sessions.ts +2 -2
- package/src/resources/compute/funcs/export.ts +41 -42
- package/src/resources/compute/funcs/funcs.ts +2 -1
- package/src/resources/compute/funcs/index.ts +6 -1
- package/src/resources/email/dedicated-ips/dedicated-ips.ts +3 -2
- package/src/resources/email-events.ts +128 -147
- package/src/resources/email-messages/email-messages.ts +1 -7
- package/src/resources/email-templates.ts +17 -78
- package/src/resources/enterprises/enterprises.ts +2 -0
- package/src/resources/enterprises/index.ts +1 -0
- package/src/resources/enterprises/reputation/external-verification.ts +32 -34
- package/src/resources/enterprises/reputation/index.ts +2 -1
- package/src/resources/enterprises/reputation/reputation.ts +6 -4
- package/src/resources/enterprises/verify-email.ts +29 -30
- package/src/resources/index.ts +4 -1
- package/src/resources/messages/messages.ts +32 -2
- package/src/resources/messaging-profiles/messaging-profiles.ts +12 -0
- package/src/resources/number-lookup.ts +6 -0
- package/src/resources/pay-connectors.ts +7 -7
- package/src/resources/phone-numbers/index.ts +2 -0
- package/src/resources/phone-numbers/jobs.ts +22 -60
- package/src/resources/phone-numbers/phone-numbers.ts +4 -0
- package/src/resources/portouts/portouts.ts +2 -1
- package/src/resources/telephony-credentials.ts +108 -2
- package/src/resources/voice-clones.ts +4 -4
- package/src/resources/webhooks.ts +10 -20
- package/src/resources/whatsapp/business-accounts/business-accounts.ts +0 -4
- package/src/resources/whatsapp/business-accounts/index.ts +0 -2
- package/src/resources/whatsapp/business-accounts/phone-numbers.ts +7 -98
- package/src/resources/whatsapp/hosted-signups.ts +18 -97
- package/src/resources/whatsapp/index.ts +4 -4
- package/src/resources/whatsapp/phone-numbers/index.ts +2 -2
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +11 -197
- package/src/resources/whatsapp/whatsapp.ts +8 -8
- 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/resources/tts-integrations/actions.d.mts +0 -4
- package/resources/tts-integrations/actions.d.mts.map +0 -1
- package/resources/tts-integrations/actions.d.ts +0 -4
- package/resources/tts-integrations/actions.d.ts.map +0 -1
- package/resources/tts-integrations/actions.js +0 -9
- package/resources/tts-integrations/actions.js.map +0 -1
- package/resources/tts-integrations/actions.mjs +0 -5
- package/resources/tts-integrations/actions.mjs.map +0 -1
- package/resources/tts-integrations/index.d.mts +0 -3
- package/resources/tts-integrations/index.d.mts.map +0 -1
- package/resources/tts-integrations/index.d.ts +0 -3
- package/resources/tts-integrations/index.d.ts.map +0 -1
- package/resources/tts-integrations/index.js +0 -9
- package/resources/tts-integrations/index.js.map +0 -1
- package/resources/tts-integrations/index.mjs +0 -4
- package/resources/tts-integrations/index.mjs.map +0 -1
- package/resources/tts-integrations/tts-integrations.d.mts +0 -10
- package/resources/tts-integrations/tts-integrations.d.mts.map +0 -1
- package/resources/tts-integrations/tts-integrations.d.ts +0 -10
- package/resources/tts-integrations/tts-integrations.d.ts.map +0 -1
- package/resources/tts-integrations/tts-integrations.js +0 -17
- package/resources/tts-integrations/tts-integrations.js.map +0 -1
- package/resources/tts-integrations/tts-integrations.mjs +0 -12
- package/resources/tts-integrations/tts-integrations.mjs.map +0 -1
- package/resources/tts-integrations.d.mts +0 -2
- package/resources/tts-integrations.d.mts.map +0 -1
- package/resources/tts-integrations.d.ts +0 -2
- package/resources/tts-integrations.d.ts.map +0 -1
- package/resources/tts-integrations.js +0 -6
- package/resources/tts-integrations.js.map +0 -1
- package/resources/tts-integrations.mjs +0 -3
- package/resources/tts-integrations.mjs.map +0 -1
- package/src/resources/tts-integrations/actions.ts +0 -5
- package/src/resources/tts-integrations/index.ts +0 -4
- package/src/resources/tts-integrations/tts-integrations.ts +0 -15
- package/src/resources/tts-integrations.ts +0 -3
|
@@ -1813,6 +1813,22 @@ export interface ExternalLlm {
|
|
|
1813
1813
|
*/
|
|
1814
1814
|
certificate_ref?: string;
|
|
1815
1815
|
|
|
1816
|
+
/**
|
|
1817
|
+
* Custom HTTP headers Telnyx sets on every request to the external LLM endpoint,
|
|
1818
|
+
* in addition to the authentication header. Keys are header names, values are
|
|
1819
|
+
* static strings. At most 32 headers. Reserved names are rejected:
|
|
1820
|
+
* accept-encoding, authorization, connection, content-encoding, content-length,
|
|
1821
|
+
* content-type, cookie, expect, host, keep-alive, proxy-authenticate,
|
|
1822
|
+
* proxy-authorization, proxy-connection, set-cookie, te, trailer,
|
|
1823
|
+
* transfer-encoding, upgrade, x-host-rewrite, x-request-id, x-trace-id, and any
|
|
1824
|
+
* x-telnyx-_ or x-stainless-_ header; '\_' counts as '-' when names are compared.
|
|
1825
|
+
* Names must be valid HTTP header names (RFC 7230 token, at most 128 characters)
|
|
1826
|
+
* and must not repeat (case-insensitive). Values must be printable ASCII, at most
|
|
1827
|
+
* 4096 characters, with no leading or trailing whitespace. Values are stored as
|
|
1828
|
+
* plain text and returned when the assistant is retrieved.
|
|
1829
|
+
*/
|
|
1830
|
+
extra_headers?: { [key: string]: string } | null;
|
|
1831
|
+
|
|
1816
1832
|
/**
|
|
1817
1833
|
* When `true`, Telnyx forwards the assistant's dynamic variables to the external
|
|
1818
1834
|
* LLM endpoint as a top-level `extra_metadata` object on the chat completion
|
|
@@ -1857,6 +1873,22 @@ export interface ExternalLlmReq {
|
|
|
1857
1873
|
*/
|
|
1858
1874
|
certificate_ref?: string;
|
|
1859
1875
|
|
|
1876
|
+
/**
|
|
1877
|
+
* Custom HTTP headers Telnyx sets on every request to the external LLM endpoint,
|
|
1878
|
+
* in addition to the authentication header. Keys are header names, values are
|
|
1879
|
+
* static strings. At most 32 headers. Reserved names are rejected:
|
|
1880
|
+
* accept-encoding, authorization, connection, content-encoding, content-length,
|
|
1881
|
+
* content-type, cookie, expect, host, keep-alive, proxy-authenticate,
|
|
1882
|
+
* proxy-authorization, proxy-connection, set-cookie, te, trailer,
|
|
1883
|
+
* transfer-encoding, upgrade, x-host-rewrite, x-request-id, x-trace-id, and any
|
|
1884
|
+
* x-telnyx-_ or x-stainless-_ header; '\_' counts as '-' when names are compared.
|
|
1885
|
+
* Names must be valid HTTP header names (RFC 7230 token, at most 128 characters)
|
|
1886
|
+
* and must not repeat (case-insensitive). Values must be printable ASCII, at most
|
|
1887
|
+
* 4096 characters, with no leading or trailing whitespace. Values are stored as
|
|
1888
|
+
* plain text and returned when the assistant is retrieved.
|
|
1889
|
+
*/
|
|
1890
|
+
extra_headers?: { [key: string]: string } | null;
|
|
1891
|
+
|
|
1860
1892
|
/**
|
|
1861
1893
|
* When `true`, Telnyx forwards the assistant's dynamic variables to the external
|
|
1862
1894
|
* LLM endpoint as a top-level `extra_metadata` object on the chat completion
|
|
@@ -2513,8 +2545,20 @@ export interface InferenceEmbeddingInterruptionSettings {
|
|
|
2513
2545
|
* thresholds primarily apply to non turn-taking transcription models. For
|
|
2514
2546
|
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
2515
2547
|
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
2516
|
-
|
|
2517
|
-
|
|
2548
|
+
*
|
|
2549
|
+
* Sending any `start_speaking_plan` object — an empty `{}` included (the stored
|
|
2550
|
+
* config fills in field defaults) — engages per-turn transcript matching: on each
|
|
2551
|
+
* turn the transcript tail is evaluated against the configured
|
|
2552
|
+
* `transcription_endpointing_plan` tiers, and the wait is set to the matching
|
|
2553
|
+
* tier's seconds. When the transcript ends without terminal punctuation or a
|
|
2554
|
+
* number and `transcription_endpointing_plan` is set, its
|
|
2555
|
+
* `on_no_punctuation_seconds` tier applies. Only when no tier matches
|
|
2556
|
+
* (`transcription_endpointing_plan` unset or null) does the wait stay on
|
|
2557
|
+
* `wait_seconds`. Setting `start_speaking_plan` to `null` (or omitting it) turns
|
|
2558
|
+
* per-turn matching off entirely, and the assistant starts speaking as soon as
|
|
2559
|
+
* silence is detected.
|
|
2560
|
+
*/
|
|
2561
|
+
start_speaking_plan?: StartSpeakingPlan | null;
|
|
2518
2562
|
}
|
|
2519
2563
|
|
|
2520
2564
|
export interface InferenceEmbeddingVoiceSettings {
|
|
@@ -3157,18 +3201,26 @@ export interface PrivacySettings {
|
|
|
3157
3201
|
data_retention?: boolean;
|
|
3158
3202
|
|
|
3159
3203
|
/**
|
|
3160
|
-
* Requires
|
|
3161
|
-
*
|
|
3162
|
-
*
|
|
3163
|
-
*
|
|
3164
|
-
*
|
|
3165
|
-
*
|
|
3166
|
-
*
|
|
3167
|
-
*
|
|
3168
|
-
*
|
|
3169
|
-
*
|
|
3170
|
-
*
|
|
3171
|
-
*
|
|
3204
|
+
* Requires this assistant's conversations to be processed inside your
|
|
3205
|
+
* organization's data-locality region, rather than only stored there, on every
|
|
3206
|
+
* channel: for web chat, every model call of a turn; for voice, the call's model
|
|
3207
|
+
* calls and the Telnyx-hosted speech services it uses; for SMS and WhatsApp, the
|
|
3208
|
+
* model calls of each turn (how messages travel through carriers is not covered).
|
|
3209
|
+
* Covered processing that cannot be handled in region fails rather than being
|
|
3210
|
+
* served elsewhere. Enabling it requires a data-locality region with in-region
|
|
3211
|
+
* inference (USA, EU, AUS, UAE; see
|
|
3212
|
+
* [Inference regions](https://developers.telnyx.com/docs/inference/models/regions)),
|
|
3213
|
+
* Telnyx-hosted models for the assistant, its fallback, and any conversation-flow
|
|
3214
|
+
* node that overrides the model, and, when `insight_settings.model` is set, an
|
|
3215
|
+
* insight model available in that region; the request is rejected otherwise. A
|
|
3216
|
+
* voice call fails when it starts if its STT model or TTS voice is not self-hosted
|
|
3217
|
+
* by Telnyx, if the assistant uses a speech-to-speech model, or if the call's
|
|
3218
|
+
* media is anchored outside the region. Once enabled, send web chat requests and
|
|
3219
|
+
* WebSocket or WebRTC conversations to your region's API hostname: one entering
|
|
3220
|
+
* the platform in another region is refused rather than forwarded, because
|
|
3221
|
+
* forwarding it would already have moved the content across the border. See
|
|
3222
|
+
* [Data residency](https://developers.telnyx.com/docs/inference/data-residency#in-region-processing-for-ai-assistants).
|
|
3223
|
+
* Defaults to false.
|
|
3172
3224
|
*/
|
|
3173
3225
|
in_transit_data_locality?: boolean;
|
|
3174
3226
|
|
|
@@ -3311,18 +3363,37 @@ export interface SpeakNodeReq {
|
|
|
3311
3363
|
* thresholds primarily apply to non turn-taking transcription models. For
|
|
3312
3364
|
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
3313
3365
|
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
3366
|
+
*
|
|
3367
|
+
* Sending any `start_speaking_plan` object — an empty `{}` included (the stored
|
|
3368
|
+
* config fills in field defaults) — engages per-turn transcript matching: on each
|
|
3369
|
+
* turn the transcript tail is evaluated against the configured
|
|
3370
|
+
* `transcription_endpointing_plan` tiers, and the wait is set to the matching
|
|
3371
|
+
* tier's seconds. When the transcript ends without terminal punctuation or a
|
|
3372
|
+
* number and `transcription_endpointing_plan` is set, its
|
|
3373
|
+
* `on_no_punctuation_seconds` tier applies. Only when no tier matches
|
|
3374
|
+
* (`transcription_endpointing_plan` unset or null) does the wait stay on
|
|
3375
|
+
* `wait_seconds`. Setting `start_speaking_plan` to `null` (or omitting it) turns
|
|
3376
|
+
* per-turn matching off entirely, and the assistant starts speaking as soon as
|
|
3377
|
+
* silence is detected.
|
|
3314
3378
|
*/
|
|
3315
3379
|
export interface StartSpeakingPlan {
|
|
3316
3380
|
/**
|
|
3317
3381
|
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
3318
3382
|
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
3319
3383
|
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
3320
|
-
* `eager_eot_threshold`.
|
|
3384
|
+
* `eager_eot_threshold`. Evaluated per turn, on each caller transcript, only while
|
|
3385
|
+
* `start_speaking_plan` is present: the tier whose suffix matches the transcript
|
|
3386
|
+
* tail is applied (a transcript with no terminal punctuation or number falls
|
|
3387
|
+
* through to `on_no_punctuation_seconds`); with no tiers configured (or a null
|
|
3388
|
+
* nested plan), the per-turn wait stays on `start_speaking_plan.wait_seconds`.
|
|
3321
3389
|
*/
|
|
3322
|
-
transcription_endpointing_plan?: TranscriptionEndpointingPlan;
|
|
3390
|
+
transcription_endpointing_plan?: TranscriptionEndpointingPlan | null;
|
|
3323
3391
|
|
|
3324
3392
|
/**
|
|
3325
|
-
*
|
|
3393
|
+
* Wait used when per-turn endpointing does not select a tier. While the plan is
|
|
3394
|
+
* present this applies on every turn without a matching tier (including when
|
|
3395
|
+
* `transcription_endpointing_plan` is unset); a matching tier replaces it for that
|
|
3396
|
+
* turn, and a tier may be shorter or longer than this value.
|
|
3326
3397
|
*/
|
|
3327
3398
|
wait_seconds?: number;
|
|
3328
3399
|
}
|
|
@@ -3362,6 +3433,15 @@ export interface TelephonySettings {
|
|
|
3362
3433
|
*/
|
|
3363
3434
|
fallback_destination?: string;
|
|
3364
3435
|
|
|
3436
|
+
/**
|
|
3437
|
+
* Milliseconds to wait after an inbound call is answered before the assistant
|
|
3438
|
+
* starts and speaks its greeting. Increase it if the beginning of the greeting is
|
|
3439
|
+
* cut off on some connections (for example, WebRTC calls). When unset (`null`),
|
|
3440
|
+
* the platform default of 250 ms is used. Set to `0` to start without a delay.
|
|
3441
|
+
* Maximum 2000.
|
|
3442
|
+
*/
|
|
3443
|
+
greeting_delay_ms?: number | null;
|
|
3444
|
+
|
|
3365
3445
|
/**
|
|
3366
3446
|
* The noise suppression engine to use. 'aicoustics' is STT-optimized and
|
|
3367
3447
|
* recommended for AI assistants (configure through noise_suppression_config). Use
|
|
@@ -3716,11 +3796,91 @@ export interface ToolNodeReq {
|
|
|
3716
3796
|
type?: 'tool';
|
|
3717
3797
|
}
|
|
3718
3798
|
|
|
3799
|
+
/**
|
|
3800
|
+
* A second speech-to-text model that transcribes alongside `transcription.model`,
|
|
3801
|
+
* and the rule that decides which transcript the assistant uses.
|
|
3802
|
+
*/
|
|
3803
|
+
export interface TranscriptionChallenger {
|
|
3804
|
+
/**
|
|
3805
|
+
* The language booster's model. It must be the same kind of model as
|
|
3806
|
+
* `transcription.model`: both streaming (`deepgram/flux`, `deepgram/nova-3`,
|
|
3807
|
+
* `deepgram/nova-2`, `assemblyai/universal-3-6-pro` or its legacy aliases
|
|
3808
|
+
* `assemblyai/universal-3-5-pro` and `assemblyai/universal-streaming`,
|
|
3809
|
+
* `xai/grok-stt`, `soniox/stt-rt-v4`, `soniox/stt-rt-v5`, `humain/realtime`,
|
|
3810
|
+
* `reson8/turns`) or both non-streaming (`azure/fast`, `nvidia/parakeet-v3`,
|
|
3811
|
+
* `omi-health/omi-med-stt-v1`, `cohere/ar-stt`, `distil-whisper/distil-large-v2`,
|
|
3812
|
+
* `openai/whisper-large-v3-turbo`, `telnyx/basira`). It can be the same model as
|
|
3813
|
+
* `transcription.model` on a different `language`.
|
|
3814
|
+
*/
|
|
3815
|
+
model:
|
|
3816
|
+
| 'deepgram/flux'
|
|
3817
|
+
| 'deepgram/nova-3'
|
|
3818
|
+
| 'deepgram/nova-2'
|
|
3819
|
+
| 'azure/fast'
|
|
3820
|
+
| 'assemblyai/universal-3-6-pro'
|
|
3821
|
+
| 'assemblyai/universal-3-5-pro'
|
|
3822
|
+
| 'assemblyai/universal-streaming'
|
|
3823
|
+
| 'xai/grok-stt'
|
|
3824
|
+
| 'soniox/stt-rt-v4'
|
|
3825
|
+
| 'soniox/stt-rt-v5'
|
|
3826
|
+
| 'nvidia/parakeet-v3'
|
|
3827
|
+
| 'omi-health/omi-med-stt-v1'
|
|
3828
|
+
| 'humain/realtime'
|
|
3829
|
+
| 'reson8/turns'
|
|
3830
|
+
| 'cohere/ar-stt'
|
|
3831
|
+
| 'telnyx/basira'
|
|
3832
|
+
| 'distil-whisper/distil-large-v2'
|
|
3833
|
+
| 'openai/whisper-large-v3-turbo';
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* The language this model transcribes. Omit it or set it to `null` to use the
|
|
3837
|
+
* language of `transcription.model`. The request is rejected when this model
|
|
3838
|
+
* doesn't support the language it would run. It is also rejected when it would run
|
|
3839
|
+
* the same model on the same language as `transcription.model`.
|
|
3840
|
+
*/
|
|
3841
|
+
language?: string | null;
|
|
3842
|
+
|
|
3843
|
+
/**
|
|
3844
|
+
* How the assistant picks the transcript it uses. The models are compared on how
|
|
3845
|
+
* complete and confident their transcripts are, not on language, so the rules work
|
|
3846
|
+
* best when both models understand the callers' language.
|
|
3847
|
+
*
|
|
3848
|
+
* - `best_turn` (default): both models transcribe the whole call. Each turn uses
|
|
3849
|
+
* the language booster's transcript only when it scores higher than the
|
|
3850
|
+
* transcript of `transcription.model` (clearly higher with non-streaming
|
|
3851
|
+
* models). With streaming models, `transcription.model` also decides when each
|
|
3852
|
+
* turn ends. Available for every pair.
|
|
3853
|
+
* - `best_engine`: both models transcribe the first turns, then the call continues
|
|
3854
|
+
* alone on the model whose transcripts scored higher. If neither clearly leads,
|
|
3855
|
+
* `transcription.model` continues. Streaming models only.
|
|
3856
|
+
* - `merge_words`: both models transcribe each utterance and their words are
|
|
3857
|
+
* merged, keeping Arabic and English spoken in the same sentence. Available only
|
|
3858
|
+
* for `telnyx/basira` with `cohere/ar-stt`, in either order. The pair runs on
|
|
3859
|
+
* the language that applies to `telnyx/basira` (its own, or that of
|
|
3860
|
+
* `transcription.model`), which must be Arabic (`ar` or an `ar-` locale),
|
|
3861
|
+
* `multi`, or `auto`.
|
|
3862
|
+
*/
|
|
3863
|
+
rule?: 'best_turn' | 'best_engine' | 'merge_words';
|
|
3864
|
+
|
|
3865
|
+
/**
|
|
3866
|
+
* Settings for the language booster, with the same fields and limits as
|
|
3867
|
+
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3868
|
+
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3869
|
+
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3870
|
+
* model.
|
|
3871
|
+
*/
|
|
3872
|
+
settings?: TranscriptionSettingsConfig | null;
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3719
3875
|
/**
|
|
3720
3876
|
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
3721
3877
|
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
3722
3878
|
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
3723
|
-
* `eager_eot_threshold`.
|
|
3879
|
+
* `eager_eot_threshold`. Evaluated per turn, on each caller transcript, only while
|
|
3880
|
+
* `start_speaking_plan` is present: the tier whose suffix matches the transcript
|
|
3881
|
+
* tail is applied (a transcript with no terminal punctuation or number falls
|
|
3882
|
+
* through to `on_no_punctuation_seconds`); with no tiers configured (or a null
|
|
3883
|
+
* nested plan), the per-turn wait stays on `start_speaking_plan.wait_seconds`.
|
|
3724
3884
|
*/
|
|
3725
3885
|
export interface TranscriptionEndpointingPlan {
|
|
3726
3886
|
/**
|
|
@@ -3739,6 +3899,49 @@ export interface TranscriptionEndpointingPlan {
|
|
|
3739
3899
|
on_punctuation_seconds?: number;
|
|
3740
3900
|
}
|
|
3741
3901
|
|
|
3902
|
+
/**
|
|
3903
|
+
* A streaming speech-to-text model that takes over transcription when the model in
|
|
3904
|
+
* use fails.
|
|
3905
|
+
*/
|
|
3906
|
+
export interface TranscriptionFallbackModel {
|
|
3907
|
+
/**
|
|
3908
|
+
* The fallback model. It must be a streaming model other than
|
|
3909
|
+
* `transcription.model` and the other fallbacks: `deepgram/flux`,
|
|
3910
|
+
* `deepgram/nova-3`, `deepgram/nova-2`, `assemblyai/universal-3-6-pro` (or its
|
|
3911
|
+
* legacy aliases `assemblyai/universal-3-5-pro` and
|
|
3912
|
+
* `assemblyai/universal-streaming`), `xai/grok-stt`, `soniox/stt-rt-v4`,
|
|
3913
|
+
* `soniox/stt-rt-v5`, `humain/realtime`, or `reson8/turns`.
|
|
3914
|
+
*/
|
|
3915
|
+
model:
|
|
3916
|
+
| 'deepgram/flux'
|
|
3917
|
+
| 'deepgram/nova-3'
|
|
3918
|
+
| 'deepgram/nova-2'
|
|
3919
|
+
| 'assemblyai/universal-3-6-pro'
|
|
3920
|
+
| 'assemblyai/universal-3-5-pro'
|
|
3921
|
+
| 'assemblyai/universal-streaming'
|
|
3922
|
+
| 'xai/grok-stt'
|
|
3923
|
+
| 'soniox/stt-rt-v4'
|
|
3924
|
+
| 'soniox/stt-rt-v5'
|
|
3925
|
+
| 'humain/realtime'
|
|
3926
|
+
| 'reson8/turns';
|
|
3927
|
+
|
|
3928
|
+
/**
|
|
3929
|
+
* The language the fallback transcribes. Omit it or set it to `null` to use the
|
|
3930
|
+
* language of `transcription.model`. The request is rejected when the fallback
|
|
3931
|
+
* model doesn't support the language it would run.
|
|
3932
|
+
*/
|
|
3933
|
+
language?: string | null;
|
|
3934
|
+
|
|
3935
|
+
/**
|
|
3936
|
+
* Settings for the fallback, with the same fields and limits as
|
|
3937
|
+
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3938
|
+
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3939
|
+
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3940
|
+
* model.
|
|
3941
|
+
*/
|
|
3942
|
+
settings?: TranscriptionSettingsConfig | null;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3742
3945
|
export interface TranscriptionSettings {
|
|
3743
3946
|
/**
|
|
3744
3947
|
* Integration secret identifier for the transcription provider API key. Currently
|
|
@@ -3750,7 +3953,7 @@ export interface TranscriptionSettings {
|
|
|
3750
3953
|
* A second speech-to-text model that transcribes alongside `transcription.model`,
|
|
3751
3954
|
* and the rule that decides which transcript the assistant uses.
|
|
3752
3955
|
*/
|
|
3753
|
-
challenger?:
|
|
3956
|
+
challenger?: TranscriptionChallenger | null;
|
|
3754
3957
|
|
|
3755
3958
|
/**
|
|
3756
3959
|
* Up to 3 streaming models that take over transcription, in this order, when the
|
|
@@ -3762,7 +3965,7 @@ export interface TranscriptionSettings {
|
|
|
3762
3965
|
* Can't be combined with `challenger`, the language booster; to replace a stored
|
|
3763
3966
|
* language booster, send `challenger: null` in the same request.
|
|
3764
3967
|
*/
|
|
3765
|
-
fallback_models?: Array<
|
|
3968
|
+
fallback_models?: Array<TranscriptionFallbackModel> | null;
|
|
3766
3969
|
|
|
3767
3970
|
/**
|
|
3768
3971
|
* The language of the audio to be transcribed. If not set, or if set to `auto`,
|
|
@@ -3854,127 +4057,6 @@ export interface TranscriptionSettings {
|
|
|
3854
4057
|
settings?: TranscriptionSettingsConfig;
|
|
3855
4058
|
}
|
|
3856
4059
|
|
|
3857
|
-
export namespace TranscriptionSettings {
|
|
3858
|
-
/**
|
|
3859
|
-
* A second speech-to-text model that transcribes alongside `transcription.model`,
|
|
3860
|
-
* and the rule that decides which transcript the assistant uses.
|
|
3861
|
-
*/
|
|
3862
|
-
export interface Challenger {
|
|
3863
|
-
/**
|
|
3864
|
-
* The language booster's model. It must be the same kind of model as
|
|
3865
|
-
* `transcription.model`: both streaming (`deepgram/flux`, `deepgram/nova-3`,
|
|
3866
|
-
* `deepgram/nova-2`, `assemblyai/universal-3-6-pro` or its legacy aliases
|
|
3867
|
-
* `assemblyai/universal-3-5-pro` and `assemblyai/universal-streaming`,
|
|
3868
|
-
* `xai/grok-stt`, `soniox/stt-rt-v4`, `soniox/stt-rt-v5`, `humain/realtime`,
|
|
3869
|
-
* `reson8/turns`) or both non-streaming (`azure/fast`, `nvidia/parakeet-v3`,
|
|
3870
|
-
* `omi-health/omi-med-stt-v1`, `cohere/ar-stt`, `distil-whisper/distil-large-v2`,
|
|
3871
|
-
* `openai/whisper-large-v3-turbo`, `telnyx/basira`). It can be the same model as
|
|
3872
|
-
* `transcription.model` on a different `language`.
|
|
3873
|
-
*/
|
|
3874
|
-
model:
|
|
3875
|
-
| 'deepgram/flux'
|
|
3876
|
-
| 'deepgram/nova-3'
|
|
3877
|
-
| 'deepgram/nova-2'
|
|
3878
|
-
| 'azure/fast'
|
|
3879
|
-
| 'assemblyai/universal-3-6-pro'
|
|
3880
|
-
| 'assemblyai/universal-3-5-pro'
|
|
3881
|
-
| 'assemblyai/universal-streaming'
|
|
3882
|
-
| 'xai/grok-stt'
|
|
3883
|
-
| 'soniox/stt-rt-v4'
|
|
3884
|
-
| 'soniox/stt-rt-v5'
|
|
3885
|
-
| 'nvidia/parakeet-v3'
|
|
3886
|
-
| 'omi-health/omi-med-stt-v1'
|
|
3887
|
-
| 'humain/realtime'
|
|
3888
|
-
| 'reson8/turns'
|
|
3889
|
-
| 'cohere/ar-stt'
|
|
3890
|
-
| 'telnyx/basira'
|
|
3891
|
-
| 'distil-whisper/distil-large-v2'
|
|
3892
|
-
| 'openai/whisper-large-v3-turbo';
|
|
3893
|
-
|
|
3894
|
-
/**
|
|
3895
|
-
* The language this model transcribes. Omit it or set it to `null` to use the
|
|
3896
|
-
* language of `transcription.model`. The request is rejected when this model
|
|
3897
|
-
* doesn't support the language it would run. It is also rejected when it would run
|
|
3898
|
-
* the same model on the same language as `transcription.model`.
|
|
3899
|
-
*/
|
|
3900
|
-
language?: string | null;
|
|
3901
|
-
|
|
3902
|
-
/**
|
|
3903
|
-
* How the assistant picks the transcript it uses. The models are compared on how
|
|
3904
|
-
* complete and confident their transcripts are, not on language, so the rules work
|
|
3905
|
-
* best when both models understand the callers' language.
|
|
3906
|
-
*
|
|
3907
|
-
* - `best_turn` (default): both models transcribe the whole call. Each turn uses
|
|
3908
|
-
* the language booster's transcript only when it scores higher than the
|
|
3909
|
-
* transcript of `transcription.model` (clearly higher with non-streaming
|
|
3910
|
-
* models). With streaming models, `transcription.model` also decides when each
|
|
3911
|
-
* turn ends. Available for every pair.
|
|
3912
|
-
* - `best_engine`: both models transcribe the first turns, then the call continues
|
|
3913
|
-
* alone on the model whose transcripts scored higher. If neither clearly leads,
|
|
3914
|
-
* `transcription.model` continues. Streaming models only.
|
|
3915
|
-
* - `merge_words`: both models transcribe each utterance and their words are
|
|
3916
|
-
* merged, keeping Arabic and English spoken in the same sentence. Available only
|
|
3917
|
-
* for `telnyx/basira` with `cohere/ar-stt`, in either order. The pair runs on
|
|
3918
|
-
* the language that applies to `telnyx/basira` (its own, or that of
|
|
3919
|
-
* `transcription.model`), which must be Arabic (`ar` or an `ar-` locale),
|
|
3920
|
-
* `multi`, or `auto`.
|
|
3921
|
-
*/
|
|
3922
|
-
rule?: 'best_turn' | 'best_engine' | 'merge_words';
|
|
3923
|
-
|
|
3924
|
-
/**
|
|
3925
|
-
* Settings for the language booster, with the same fields and limits as
|
|
3926
|
-
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3927
|
-
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3928
|
-
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3929
|
-
* model.
|
|
3930
|
-
*/
|
|
3931
|
-
settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
|
|
3932
|
-
}
|
|
3933
|
-
|
|
3934
|
-
/**
|
|
3935
|
-
* A streaming speech-to-text model that takes over transcription when the model in
|
|
3936
|
-
* use fails.
|
|
3937
|
-
*/
|
|
3938
|
-
export interface FallbackModel {
|
|
3939
|
-
/**
|
|
3940
|
-
* The fallback model. It must be a streaming model other than
|
|
3941
|
-
* `transcription.model` and the other fallbacks: `deepgram/flux`,
|
|
3942
|
-
* `deepgram/nova-3`, `deepgram/nova-2`, `assemblyai/universal-3-6-pro` (or its
|
|
3943
|
-
* legacy aliases `assemblyai/universal-3-5-pro` and
|
|
3944
|
-
* `assemblyai/universal-streaming`), `xai/grok-stt`, `soniox/stt-rt-v4`,
|
|
3945
|
-
* `soniox/stt-rt-v5`, `humain/realtime`, or `reson8/turns`.
|
|
3946
|
-
*/
|
|
3947
|
-
model:
|
|
3948
|
-
| 'deepgram/flux'
|
|
3949
|
-
| 'deepgram/nova-3'
|
|
3950
|
-
| 'deepgram/nova-2'
|
|
3951
|
-
| 'assemblyai/universal-3-6-pro'
|
|
3952
|
-
| 'assemblyai/universal-3-5-pro'
|
|
3953
|
-
| 'assemblyai/universal-streaming'
|
|
3954
|
-
| 'xai/grok-stt'
|
|
3955
|
-
| 'soniox/stt-rt-v4'
|
|
3956
|
-
| 'soniox/stt-rt-v5'
|
|
3957
|
-
| 'humain/realtime'
|
|
3958
|
-
| 'reson8/turns';
|
|
3959
|
-
|
|
3960
|
-
/**
|
|
3961
|
-
* The language the fallback transcribes. Omit it or set it to `null` to use the
|
|
3962
|
-
* language of `transcription.model`. The request is rejected when the fallback
|
|
3963
|
-
* model doesn't support the language it would run.
|
|
3964
|
-
*/
|
|
3965
|
-
language?: string | null;
|
|
3966
|
-
|
|
3967
|
-
/**
|
|
3968
|
-
* Settings for the fallback, with the same fields and limits as
|
|
3969
|
-
* `transcription.settings`. Fields that don't apply to this model's provider are
|
|
3970
|
-
* dropped, and the provider's defaults fill in the rest. Omit it or set it to
|
|
3971
|
-
* `null` to use the settings of `transcription.model` where they apply to this
|
|
3972
|
-
* model.
|
|
3973
|
-
*/
|
|
3974
|
-
settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
|
|
3975
|
-
}
|
|
3976
|
-
}
|
|
3977
|
-
|
|
3978
4060
|
export interface TranscriptionSettingsConfig {
|
|
3979
4061
|
/**
|
|
3980
4062
|
* Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. A comma-separated list
|
|
@@ -4002,9 +4084,8 @@ export interface TranscriptionSettingsConfig {
|
|
|
4002
4084
|
enable_endpoint_detection?: boolean;
|
|
4003
4085
|
|
|
4004
4086
|
/**
|
|
4005
|
-
* @deprecated
|
|
4006
|
-
*
|
|
4007
|
-
* max_turn_silence.
|
|
4087
|
+
* @deprecated Ignored. Configure AssemblyAI turn detection with min_turn_silence
|
|
4088
|
+
* and max_turn_silence instead.
|
|
4008
4089
|
*/
|
|
4009
4090
|
end_of_turn_confidence_threshold?: number;
|
|
4010
4091
|
|
|
@@ -5271,7 +5352,9 @@ export declare namespace Assistants {
|
|
|
5271
5352
|
type TelnyxAvatarSettings as TelnyxAvatarSettings,
|
|
5272
5353
|
type ToolNode as ToolNode,
|
|
5273
5354
|
type ToolNodeReq as ToolNodeReq,
|
|
5355
|
+
type TranscriptionChallenger as TranscriptionChallenger,
|
|
5274
5356
|
type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan,
|
|
5357
|
+
type TranscriptionFallbackModel as TranscriptionFallbackModel,
|
|
5275
5358
|
type TranscriptionSettings as TranscriptionSettings,
|
|
5276
5359
|
type TranscriptionSettingsConfig as TranscriptionSettingsConfig,
|
|
5277
5360
|
type TransferTool as TransferTool,
|
|
@@ -51,7 +51,9 @@ export {
|
|
|
51
51
|
type TelnyxAvatarSettings,
|
|
52
52
|
type ToolNode,
|
|
53
53
|
type ToolNodeReq,
|
|
54
|
+
type TranscriptionChallenger,
|
|
54
55
|
type TranscriptionEndpointingPlan,
|
|
56
|
+
type TranscriptionFallbackModel,
|
|
55
57
|
type TranscriptionSettings,
|
|
56
58
|
type TranscriptionSettingsConfig,
|
|
57
59
|
type TransferTool,
|
package/src/resources/ai/chat.ts
CHANGED
|
@@ -80,14 +80,12 @@ export interface ChatCompletionRequest {
|
|
|
80
80
|
* /v2/ai/openai/models). An omitted limit on an excluded model remains unset even
|
|
81
81
|
* when metadata declares a ceiling. Input and output together must fit the model's
|
|
82
82
|
* context window. Set an explicit limit when a bounded generation budget is
|
|
83
|
-
* required. For
|
|
84
|
-
*
|
|
85
|
-
* `deepseek-ai/DeepSeek-V4.1-Flash`. The hosted exclusions are
|
|
83
|
+
* required. For example, omitted or null limits default to 8192 for
|
|
84
|
+
* `zai-org/GLM-5.3` and `zai-org/GLM-5.3-Flash`. Hosted exclusions include
|
|
86
85
|
* `moonshotai/Kimi-K3`, `moonshotai/Kimi-K2.6`, `moonshotai/Kimi-K2.5`,
|
|
87
86
|
* `zai-org/GLM-5.2`, `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M3-MXFP8`,
|
|
88
87
|
* `MiniMaxAI/MiniMax-M2.7`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3-235B-A22B`,
|
|
89
|
-
* `
|
|
90
|
-
* `meta-llama/Meta-Llama-3.1-70B-Instruct`,
|
|
88
|
+
* `meta-llama/Llama-3.3-70B-Instruct`, `meta-llama/Meta-Llama-3.1-70B-Instruct`,
|
|
91
89
|
* `meta-llama/Meta-Llama-3.1-8B-Instruct` and `google/gemma-2b-it`. Legacy
|
|
92
90
|
* external and fine-tuned model IDs can also bypass the default; model discovery
|
|
93
91
|
* reports completion ceilings, not whether this default applies. Set an explicit
|
|
@@ -93,7 +93,11 @@ export class Conversations extends APIResource {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* Delete a specific conversation by its ID.
|
|
96
|
+
* Delete a specific conversation by its ID. Permanently deletes the conversation
|
|
97
|
+
* and its associated data: the conversation's messages, its insight generation
|
|
98
|
+
* results, any conversation memories, and its webhook request logs. Recordings are
|
|
99
|
+
* not deleted — recordings are managed separately through the /v2/recordings
|
|
100
|
+
* endpoints. This action cannot be undone.
|
|
97
101
|
*
|
|
98
102
|
* @example
|
|
99
103
|
* ```ts
|
|
@@ -192,6 +196,32 @@ export class Conversations extends APIResource {
|
|
|
192
196
|
]),
|
|
193
197
|
});
|
|
194
198
|
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Delete one insight generation request for a conversation. Generation results are
|
|
202
|
+
* stored per conversation and per insight template; deleting a request permanently
|
|
203
|
+
* removes the stored result but does not stop insight generation from running
|
|
204
|
+
* again. To remove every insight result for the conversation, delete the
|
|
205
|
+
* conversation itself. A successful delete returns an empty response.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```ts
|
|
209
|
+
* await client.ai.conversations.deleteDelete('insight_id', {
|
|
210
|
+
* conversation_id: 'conversation_id',
|
|
211
|
+
* });
|
|
212
|
+
* ```
|
|
213
|
+
*/
|
|
214
|
+
deleteDelete(
|
|
215
|
+
insightID: string,
|
|
216
|
+
params: ConversationDeleteDeleteParams,
|
|
217
|
+
options?: RequestOptions,
|
|
218
|
+
): APIPromise<void> {
|
|
219
|
+
const { conversation_id } = params;
|
|
220
|
+
return this._client.delete(
|
|
221
|
+
path`/ai/conversations/${conversation_id}/conversations-insights/${insightID}`,
|
|
222
|
+
{ ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) },
|
|
223
|
+
);
|
|
224
|
+
}
|
|
195
225
|
}
|
|
196
226
|
|
|
197
227
|
export interface Conversation {
|
|
@@ -442,6 +472,13 @@ export interface ConversationAddMessageParams {
|
|
|
442
472
|
'Idempotency-Key'?: string;
|
|
443
473
|
}
|
|
444
474
|
|
|
475
|
+
export interface ConversationDeleteDeleteParams {
|
|
476
|
+
/**
|
|
477
|
+
* Unique identifier of the conversation.
|
|
478
|
+
*/
|
|
479
|
+
conversation_id: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
445
482
|
Conversations.InsightGroups = InsightGroups;
|
|
446
483
|
Conversations.Insights = Insights;
|
|
447
484
|
Conversations.Messages = Messages;
|
|
@@ -458,6 +495,7 @@ export declare namespace Conversations {
|
|
|
458
495
|
type ConversationCreateParams as ConversationCreateParams,
|
|
459
496
|
type ConversationUpdateParams as ConversationUpdateParams,
|
|
460
497
|
type ConversationAddMessageParams as ConversationAddMessageParams,
|
|
498
|
+
type ConversationDeleteDeleteParams as ConversationDeleteDeleteParams,
|
|
461
499
|
};
|
|
462
500
|
|
|
463
501
|
export {
|
|
@@ -62,7 +62,9 @@ export {
|
|
|
62
62
|
type TelnyxAvatarSettings,
|
|
63
63
|
type ToolNode,
|
|
64
64
|
type ToolNodeReq,
|
|
65
|
+
type TranscriptionChallenger,
|
|
65
66
|
type TranscriptionEndpointingPlan,
|
|
67
|
+
type TranscriptionFallbackModel,
|
|
66
68
|
type TranscriptionSettings,
|
|
67
69
|
type TranscriptionSettingsConfig,
|
|
68
70
|
type TransferTool,
|
|
@@ -135,6 +137,7 @@ export {
|
|
|
135
137
|
type ConversationCreateParams,
|
|
136
138
|
type ConversationUpdateParams,
|
|
137
139
|
type ConversationAddMessageParams,
|
|
140
|
+
type ConversationDeleteDeleteParams,
|
|
138
141
|
} from './conversations/index';
|
|
139
142
|
export {
|
|
140
143
|
Embeddings,
|
|
@@ -28,4 +28,10 @@ export {
|
|
|
28
28
|
type ProfilePreviewParams,
|
|
29
29
|
type ProfileListResponsesDefaultFlatPagination,
|
|
30
30
|
} from './profiles/index';
|
|
31
|
-
export {
|
|
31
|
+
export {
|
|
32
|
+
Settings,
|
|
33
|
+
type NamespaceSettings,
|
|
34
|
+
type NamespaceSettingsResponse,
|
|
35
|
+
type SummarySettings,
|
|
36
|
+
type SettingPatchAllParams,
|
|
37
|
+
} from './settings';
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../../core/resource';
|
|
4
4
|
import * as SettingsAPI from './settings';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
NamespaceSettings,
|
|
7
|
+
NamespaceSettingsResponse,
|
|
8
|
+
SettingPatchAllParams,
|
|
9
|
+
Settings,
|
|
10
|
+
SummarySettings,
|
|
11
|
+
} from './settings';
|
|
6
12
|
import * as ProfilesAPI from './profiles/profiles';
|
|
7
13
|
import {
|
|
8
14
|
PageMeta,
|
|
@@ -192,7 +198,9 @@ export declare namespace Namespaces {
|
|
|
192
198
|
|
|
193
199
|
export {
|
|
194
200
|
Settings as Settings,
|
|
201
|
+
type NamespaceSettings as NamespaceSettings,
|
|
195
202
|
type NamespaceSettingsResponse as NamespaceSettingsResponse,
|
|
203
|
+
type SummarySettings as SummarySettings,
|
|
196
204
|
type SettingPatchAllParams as SettingPatchAllParams,
|
|
197
205
|
};
|
|
198
206
|
}
|
|
@@ -416,10 +416,12 @@ export interface ProfileDeleteParams {
|
|
|
416
416
|
namespace: string;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
export type ProfileIngestParams =
|
|
419
|
+
export type ProfileIngestParams =
|
|
420
|
+
| ProfileIngestParams.IngestPayloadObject
|
|
421
|
+
| ProfileIngestParams.IngestPayloadValue;
|
|
420
422
|
|
|
421
423
|
export declare namespace ProfileIngestParams {
|
|
422
|
-
export interface
|
|
424
|
+
export interface IngestPayloadObject {
|
|
423
425
|
/**
|
|
424
426
|
* Path param
|
|
425
427
|
*/
|
|
@@ -438,7 +440,7 @@ export declare namespace ProfileIngestParams {
|
|
|
438
440
|
session_id?: string | null;
|
|
439
441
|
}
|
|
440
442
|
|
|
441
|
-
export interface
|
|
443
|
+
export interface IngestPayloadValue {
|
|
442
444
|
/**
|
|
443
445
|
* Path param
|
|
444
446
|
*/
|