telnyx 7.25.0 → 7.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +25 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -10
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses/addresses.d.mts +22 -2
- package/resources/addresses/addresses.d.mts.map +1 -1
- package/resources/addresses/addresses.d.ts +22 -2
- package/resources/addresses/addresses.d.ts.map +1 -1
- package/resources/addresses/addresses.js +12 -0
- package/resources/addresses/addresses.js.map +1 -1
- package/resources/addresses/addresses.mjs +12 -0
- package/resources/addresses/addresses.mjs.map +1 -1
- package/resources/ai/ai.d.mts +16 -7
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +16 -7
- 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 +383 -22
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +383 -22
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +4 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +4 -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 +18 -1
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +18 -1
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/assistants/versions.js +4 -1
- package/resources/ai/assistants/versions.js.map +1 -1
- package/resources/ai/assistants/versions.mjs +4 -1
- package/resources/ai/assistants/versions.mjs.map +1 -1
- package/resources/ai/audio.d.mts +17 -5
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +17 -5
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +200 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +200 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +95 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +91 -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 +3 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +3 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/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 +30 -2
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +30 -2
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +260 -25
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +260 -25
- 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/credential-connections/credential-connections.d.mts +38 -8
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +38 -8
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/dial-metrics.d.mts +151 -0
- package/resources/dial-metrics.d.mts.map +1 -0
- package/resources/dial-metrics.d.ts +151 -0
- package/resources/dial-metrics.d.ts.map +1 -0
- package/resources/dial-metrics.js +44 -0
- package/resources/dial-metrics.js.map +1 -0
- package/resources/dial-metrics.mjs +40 -0
- package/resources/dial-metrics.mjs.map +1 -0
- package/resources/dir/dir.d.mts +11 -9
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +11 -9
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -2
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -2
- 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/dir/references.d.mts +15 -9
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +15 -9
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/dir/references.js +15 -9
- package/resources/dir/references.js.map +1 -1
- package/resources/dir/references.mjs +15 -9
- package/resources/dir/references.mjs.map +1 -1
- package/resources/dir/verify-email.d.mts +17 -5
- package/resources/dir/verify-email.d.mts.map +1 -1
- package/resources/dir/verify-email.d.ts +17 -5
- package/resources/dir/verify-email.d.ts.map +1 -1
- package/resources/dir/verify-email.js +17 -5
- package/resources/dir/verify-email.js.map +1 -1
- package/resources/dir/verify-email.mjs +17 -5
- package/resources/dir/verify-email.mjs.map +1 -1
- package/resources/email-domains/email-domains.d.mts +1 -1
- package/resources/email-domains/email-domains.d.mts.map +1 -1
- package/resources/email-domains/email-domains.d.ts +1 -1
- package/resources/email-domains/email-domains.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/enterprises/verify-email.d.mts +1 -1
- package/resources/enterprises/verify-email.d.ts +1 -1
- package/resources/enterprises/verify-email.js +1 -1
- package/resources/enterprises/verify-email.mjs +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.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 +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +36 -6
- package/resources/ip-connections.d.mts.map +1 -1
- package/resources/ip-connections.d.ts +36 -6
- package/resources/ip-connections.d.ts.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/meeting-sessions/actions.d.mts +13 -7
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +13 -7
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +13 -7
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +13 -7
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +14 -23
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/messages/messages.d.mts +581 -118
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +581 -118
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +71 -14
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +71 -14
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messages/rcs.d.mts +26 -6
- package/resources/messages/rcs.d.mts.map +1 -1
- package/resources/messages/rcs.d.ts +26 -6
- package/resources/messages/rcs.d.ts.map +1 -1
- package/resources/messages/rcs.js +11 -2
- package/resources/messages/rcs.js.map +1 -1
- package/resources/messages/rcs.mjs +11 -2
- package/resources/messages/rcs.mjs.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.mts +9 -0
- package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.ts +9 -0
- package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
- package/resources/phone-numbers/csv-downloads.js +5 -2
- package/resources/phone-numbers/csv-downloads.js.map +1 -1
- package/resources/phone-numbers/csv-downloads.mjs +5 -2
- package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
- package/resources/phone-numbers/index.d.mts +2 -2
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +2 -2
- 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 +277 -14
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +277 -14
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +5 -4
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +5 -4
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +28 -3
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +28 -3
- 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/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/reputation/numbers.d.mts +10 -0
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +10 -0
- package/resources/reputation/numbers.d.ts.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.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/speech-to-text/speech-to-text.d.mts +12 -5
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +12 -5
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/telephony-credentials.d.mts +11 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +11 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +9 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +9 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/texml/accounts/accounts.d.mts +2 -2
- package/resources/texml/accounts/accounts.d.ts +2 -2
- package/resources/texml/accounts/accounts.js +2 -2
- package/resources/texml/accounts/accounts.mjs +2 -2
- package/resources/texml/accounts/calls/calls.d.mts +49 -14
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +49 -14
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +7 -7
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +7 -7
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.js +2 -2
- package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
- package/resources/texml/accounts/calls/recordings.d.mts +10 -2
- package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings.d.ts +10 -2
- package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings.js +4 -1
- package/resources/texml/accounts/calls/recordings.js.map +1 -1
- package/resources/texml/accounts/calls/recordings.mjs +4 -1
- package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.mts +10 -2
- package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.ts +10 -2
- package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
- package/resources/texml/accounts/calls/siprec.js +4 -1
- package/resources/texml/accounts/calls/siprec.js.map +1 -1
- package/resources/texml/accounts/calls/siprec.mjs +4 -1
- package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
- package/resources/texml/accounts/calls/streams.d.mts +10 -2
- package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
- package/resources/texml/accounts/calls/streams.d.ts +10 -2
- package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
- package/resources/texml/accounts/calls/streams.js +4 -1
- package/resources/texml/accounts/calls/streams.js.map +1 -1
- package/resources/texml/accounts/calls/streams.mjs +4 -1
- package/resources/texml/accounts/calls/streams.mjs.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.js +5 -5
- package/resources/texml/accounts/conferences/conferences.js.map +1 -1
- package/resources/texml/accounts/conferences/conferences.mjs +5 -5
- package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +35 -10
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +35 -10
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/participants.js +5 -5
- package/resources/texml/accounts/conferences/participants.mjs +5 -5
- package/resources/texml/accounts/queues.d.mts +25 -8
- package/resources/texml/accounts/queues.d.mts.map +1 -1
- package/resources/texml/accounts/queues.d.ts +25 -8
- package/resources/texml/accounts/queues.d.ts.map +1 -1
- package/resources/texml/accounts/queues.js +7 -5
- package/resources/texml/accounts/queues.js.map +1 -1
- package/resources/texml/accounts/queues.mjs +7 -5
- package/resources/texml/accounts/queues.mjs.map +1 -1
- package/resources/texml/accounts/recordings/json.d.mts +14 -4
- package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
- package/resources/texml/accounts/recordings/json.d.ts +14 -4
- package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
- package/resources/texml/accounts/recordings/json.js +2 -2
- package/resources/texml/accounts/recordings/json.mjs +2 -2
- package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.js +2 -2
- package/resources/texml/accounts/transcriptions/json.mjs +2 -2
- package/resources/texml/texml.d.mts +7 -3
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +7 -3
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -2
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -2
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +15 -6
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +15 -6
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/tts-integrations/actions.d.mts +4 -0
- package/resources/tts-integrations/actions.d.mts.map +1 -0
- package/resources/tts-integrations/actions.d.ts +4 -0
- package/resources/tts-integrations/actions.d.ts.map +1 -0
- package/resources/tts-integrations/actions.js +9 -0
- package/resources/tts-integrations/actions.js.map +1 -0
- package/resources/tts-integrations/actions.mjs +5 -0
- package/resources/tts-integrations/actions.mjs.map +1 -0
- package/resources/tts-integrations/index.d.mts +3 -0
- package/resources/tts-integrations/index.d.mts.map +1 -0
- package/resources/tts-integrations/index.d.ts +3 -0
- package/resources/tts-integrations/index.d.ts.map +1 -0
- package/resources/tts-integrations/index.js +9 -0
- package/resources/tts-integrations/index.js.map +1 -0
- package/resources/tts-integrations/index.mjs +4 -0
- package/resources/tts-integrations/index.mjs.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.mts +10 -0
- package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.ts +10 -0
- package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations/tts-integrations.js +17 -0
- package/resources/tts-integrations/tts-integrations.js.map +1 -0
- package/resources/tts-integrations/tts-integrations.mjs +12 -0
- package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
- package/resources/tts-integrations.d.mts +2 -0
- package/resources/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations.d.ts +2 -0
- package/resources/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations.js +6 -0
- package/resources/tts-integrations.js.map +1 -0
- package/resources/tts-integrations.mjs +3 -0
- package/resources/tts-integrations.mjs.map +1 -0
- package/resources/uac-connections/uac-connections.d.mts +36 -6
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +36 -6
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/voice-clones.d.mts +57 -10
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +57 -10
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +6 -4
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +6 -4
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/webhooks.d.mts +986 -71
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +986 -71
- 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/hosted-signups.d.mts +165 -0
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
- package/resources/whatsapp/hosted-signups.d.ts +165 -0
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
- package/resources/whatsapp/hosted-signups.js +56 -0
- package/resources/whatsapp/hosted-signups.js.map +1 -0
- package/resources/whatsapp/hosted-signups.mjs +52 -0
- package/resources/whatsapp/hosted-signups.mjs.map +1 -0
- package/resources/whatsapp/index.d.mts +2 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +2 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +5 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +2 -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 +8 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +8 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +8 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +8 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +57 -4
- package/src/resources/addresses/addresses.ts +22 -2
- package/src/resources/ai/ai.ts +40 -3
- package/src/resources/ai/assistants/assistants.ts +455 -20
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/assistants/versions.ts +20 -1
- package/src/resources/ai/audio.ts +18 -5
- package/src/resources/ai/avatars.ts +252 -0
- package/src/resources/ai/chat.ts +20 -6
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/index.ts +14 -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 +35 -1
- package/src/resources/calls/actions.ts +346 -20
- package/src/resources/calls/calls.ts +26 -8
- package/src/resources/calls/index.ts +2 -0
- package/src/resources/credential-connections/credential-connections.ts +41 -8
- package/src/resources/dial-metrics.ts +185 -0
- package/src/resources/dir/dir.ts +13 -8
- package/src/resources/dir/phone-numbers.ts +1 -6
- package/src/resources/dir/references.ts +15 -9
- package/src/resources/dir/verify-email.ts +17 -5
- package/src/resources/email-domains/email-domains.ts +1 -1
- 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/enterprises/verify-email.ts +1 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
- 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 +21 -2
- package/src/resources/ip-connections.ts +39 -6
- 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/meeting-sessions/actions.ts +13 -7
- package/src/resources/meeting-sessions/index.ts +0 -1
- package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
- package/src/resources/messages/messages.ts +786 -125
- package/src/resources/messages/rcs.ts +37 -7
- package/src/resources/phone-numbers/csv-downloads.ts +15 -2
- package/src/resources/phone-numbers/index.ts +3 -1
- package/src/resources/phone-numbers/jobs.ts +332 -15
- package/src/resources/phone-numbers/phone-numbers.ts +38 -2
- package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
- package/src/resources/porting-orders/porting-orders.ts +1 -0
- package/src/resources/porting-phone-numbers.ts +1 -0
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/speech-to-text/speech-to-text.ts +12 -4
- package/src/resources/telephony-credentials.ts +24 -2
- package/src/resources/texml/accounts/accounts.ts +2 -2
- package/src/resources/texml/accounts/calls/calls.ts +49 -14
- package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
- package/src/resources/texml/accounts/calls/recordings.ts +10 -2
- package/src/resources/texml/accounts/calls/siprec.ts +10 -2
- package/src/resources/texml/accounts/calls/streams.ts +10 -2
- package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
- package/src/resources/texml/accounts/conferences/participants.ts +35 -10
- package/src/resources/texml/accounts/queues.ts +25 -8
- package/src/resources/texml/accounts/recordings/json.ts +14 -4
- package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/text-to-speech/text-to-speech.ts +15 -6
- package/src/resources/tts-integrations/actions.ts +5 -0
- package/src/resources/tts-integrations/index.ts +4 -0
- package/src/resources/tts-integrations/tts-integrations.ts +15 -0
- package/src/resources/tts-integrations.ts +3 -0
- package/src/resources/uac-connections/uac-connections.ts +39 -6
- package/src/resources/voice-clones.ts +65 -9
- package/src/resources/webhooks.ts +1257 -96
- package/src/resources/whatsapp/hosted-signups.ts +221 -0
- package/src/resources/whatsapp/index.ts +16 -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 +40 -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
|
@@ -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,
|
|
@@ -13,7 +13,10 @@ import { path } from '../../../internal/utils/path';
|
|
|
13
13
|
export class Versions extends APIResource {
|
|
14
14
|
/**
|
|
15
15
|
* Retrieves all versions of a specific assistant with complete configuration and
|
|
16
|
-
* metadata
|
|
16
|
+
* metadata. An assistant keeps at most 10 versions, including the main version.
|
|
17
|
+
* When an update takes it past that limit, the oldest versions are permanently
|
|
18
|
+
* deleted. The main version and any version referenced by a traffic distribution
|
|
19
|
+
* rule are never deleted this way.
|
|
17
20
|
*
|
|
18
21
|
* @example
|
|
19
22
|
* ```ts
|
|
@@ -130,6 +133,14 @@ export interface UpdateAssistant {
|
|
|
130
133
|
*/
|
|
131
134
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
132
135
|
|
|
136
|
+
/**
|
|
137
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
|
|
138
|
+
* avatar or an organization-owned custom avatar returned by the Avatars API.
|
|
139
|
+
* Discover the available stock catalog with GET /v2/ai/avatars and
|
|
140
|
+
* filter[avatar_type]=stock; follow meta.total_pages to load every page.
|
|
141
|
+
*/
|
|
142
|
+
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
143
|
+
|
|
133
144
|
/**
|
|
134
145
|
* Conversation flow as supplied by API clients (create / update).
|
|
135
146
|
*
|
|
@@ -357,6 +368,14 @@ export interface VersionUpdateParams {
|
|
|
357
368
|
*/
|
|
358
369
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
359
370
|
|
|
371
|
+
/**
|
|
372
|
+
* Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
|
|
373
|
+
* Use a stock avatar or an organization-owned custom avatar returned by the
|
|
374
|
+
* Avatars API. Discover the available stock catalog with GET /v2/ai/avatars and
|
|
375
|
+
* filter[avatar_type]=stock; follow meta.total_pages to load every page.
|
|
376
|
+
*/
|
|
377
|
+
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
378
|
+
|
|
360
379
|
/**
|
|
361
380
|
* Body param: Conversation flow as supplied by API clients (create / update).
|
|
362
381
|
*
|
|
@@ -130,9 +130,18 @@ export namespace AudioTranscribeResponse {
|
|
|
130
130
|
*/
|
|
131
131
|
text: string;
|
|
132
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Zero-indexed audio channel of this segment. Returned by the `deepgram/*` models
|
|
135
|
+
* when `multichannel` is enabled via `model_config` and the file has more than one
|
|
136
|
+
* channel. Segments from all channels are merged in one list ordered by start
|
|
137
|
+
* time.
|
|
138
|
+
*/
|
|
139
|
+
channel?: number;
|
|
140
|
+
|
|
133
141
|
/**
|
|
134
142
|
* Speaker indices heard in this segment. Returned by the `deepgram/*` models when
|
|
135
|
-
* `diarize` is enabled via `model_config`.
|
|
143
|
+
* `diarize` is enabled via `model_config`. With `multichannel`, speakers are
|
|
144
|
+
* numbered per channel from 0, so identify a speaker by (`channel`, speaker).
|
|
136
145
|
*/
|
|
137
146
|
speakers?: Array<number>;
|
|
138
147
|
|
|
@@ -197,10 +206,14 @@ export interface AudioTranscribeParams {
|
|
|
197
206
|
|
|
198
207
|
/**
|
|
199
208
|
* Additional model-specific configuration parameters. Only allowed with the
|
|
200
|
-
* `deepgram/*` models.
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
209
|
+
* `deepgram/*` models. Sent as a JSON string in multipart requests and passed
|
|
210
|
+
* through to Deepgram as query parameters. Any other model with `model_config`
|
|
211
|
+
* returns 422. Can include Deepgram-specific options such as `smart_format`,
|
|
212
|
+
* `punctuate`, `diarize` (speaker labels), `multichannel` (transcribe each channel
|
|
213
|
+
* independently; billed duration is file duration multiplied by the number of
|
|
214
|
+
* channels), `utterances`, `numerals`, and `language`. If `language` is provided
|
|
215
|
+
* both as a top-level parameter and in `model_config`, the top-level parameter
|
|
216
|
+
* takes precedence.
|
|
204
217
|
*/
|
|
205
218
|
model_config?: { [key: string]: unknown };
|
|
206
219
|
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../../core/pagination';
|
|
6
|
+
import { type Uploadable } from '../../core/uploads';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
9
|
+
import { path } from '../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Create and manage real-time AI avatars
|
|
13
|
+
*/
|
|
14
|
+
export class Avatars extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns a paginated list of the Telnyx stock avatars and custom avatars
|
|
17
|
+
* available to the authenticated organization. Custom avatars owned by other
|
|
18
|
+
* organizations are never returned. The `image_url` value is suitable for
|
|
19
|
+
* displaying a thumbnail and may be refreshed by listing or retrieving the avatar
|
|
20
|
+
* again. `suggested_voice_id` recommends a compatible Telnyx voice for stock
|
|
21
|
+
* avatars and is an empty string for custom avatars; it does not change an AI
|
|
22
|
+
* Assistant's voice automatically.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* // Automatically fetches more pages as needed.
|
|
27
|
+
* for await (const avatar of client.ai.avatars.list()) {
|
|
28
|
+
* // ...
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
list(
|
|
33
|
+
query: AvatarListParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): PagePromise<AvatarsDefaultFlatPagination, Avatar> {
|
|
36
|
+
return this._client.getAPIList('/ai/avatars', DefaultFlatPagination<Avatar>, { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Uploads an image, validates its file type, size, safe decoding, and resolution,
|
|
41
|
+
* stores it in Telnyx-managed private storage, and creates an avatar owned by the
|
|
42
|
+
* authenticated organization. Creating an avatar does not update an AI Assistant;
|
|
43
|
+
* use the returned ID separately wherever the avatar is consumed. The avatar image
|
|
44
|
+
* is stored independently from the rendering model and background, which are
|
|
45
|
+
* selected where the avatar is consumed. Supported image types are JPEG, PNG, and
|
|
46
|
+
* WebP. Images may be up to 10 MiB, must be between 256 and 8192 pixels on each
|
|
47
|
+
* side, and may contain at most 40 megapixels. Each organization may have up to 20
|
|
48
|
+
* custom avatars. For best results, use a 16:9 landscape image, preferably 1920 by
|
|
49
|
+
* 1080 pixels and at least 1280 by 720 pixels. Show one centered, front-facing
|
|
50
|
+
* person from the shoulders up, keep the full head and hair visible with space
|
|
51
|
+
* around it, and use a sharp, evenly lit image with unobstructed eyes and mouth.
|
|
52
|
+
* Use a transparent PNG or WebP when the avatar will be combined with a selectable
|
|
53
|
+
* background. These composition recommendations are not enforced in the first
|
|
54
|
+
* release; the first release does not validate the number of faces, pose, or image
|
|
55
|
+
* content.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const avatarResponse = await client.ai.avatars.create({
|
|
60
|
+
* image_file: fs.createReadStream('path/to/file'),
|
|
61
|
+
* name: 'Customer portrait',
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
create(body: AvatarCreateParams, options?: RequestOptions): APIPromise<AvatarResponse> {
|
|
66
|
+
return this._client.post('/ai/avatars', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Returns a Telnyx stock avatar or a custom avatar owned by the authenticated
|
|
71
|
+
* organization. A custom avatar belonging to another organization is returned as
|
|
72
|
+
* not found.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const avatarResponse = await client.ai.avatars.retrieve(
|
|
77
|
+
* 'avatar_0123456789abcdef0123456789abcdef',
|
|
78
|
+
* );
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
retrieve(avatarID: AvatarID, options?: RequestOptions): APIPromise<AvatarResponse> {
|
|
82
|
+
return this._client.get(path`/ai/avatars/${avatarID}`, options);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Updates the customer-facing name of a custom avatar owned by the authenticated
|
|
87
|
+
* organization. Stock avatars cannot be modified. To replace the image, create a
|
|
88
|
+
* new custom avatar so existing references keep their original content.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const avatarResponse = await client.ai.avatars.update(
|
|
93
|
+
* 'avatar_0123456789abcdef0123456789abcdef',
|
|
94
|
+
* { name: 'Updated portrait' },
|
|
95
|
+
* );
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
update(avatarID: AvatarID, body: AvatarUpdateParams, options?: RequestOptions): APIPromise<AvatarResponse> {
|
|
99
|
+
return this._client.patch(path`/ai/avatars/${avatarID}`, { body, ...options });
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type AvatarsDefaultFlatPagination = DefaultFlatPagination<Avatar>;
|
|
104
|
+
|
|
105
|
+
export interface Avatar {
|
|
106
|
+
/**
|
|
107
|
+
* Stable identifier returned by the Avatars API. Discover available stock IDs with
|
|
108
|
+
* GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
|
|
109
|
+
* list. Custom avatar IDs use the `avatar_` prefix and must belong to the
|
|
110
|
+
* authenticated organization. The service validates that the selected avatar is
|
|
111
|
+
* available.
|
|
112
|
+
*/
|
|
113
|
+
id: AvatarID;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Whether the avatar is provided by Telnyx or was uploaded by the authenticated
|
|
117
|
+
* organization.
|
|
118
|
+
*/
|
|
119
|
+
avatar_type: AvatarType;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Indicates that avatar rendering runs on Telnyx-operated infrastructure.
|
|
123
|
+
*/
|
|
124
|
+
hosted: true;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* HTTPS image URL suitable for an avatar selection thumbnail. If the URL expires,
|
|
128
|
+
* list or retrieve the avatar again to refresh it.
|
|
129
|
+
*/
|
|
130
|
+
image_url: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Customer-facing avatar name.
|
|
134
|
+
*/
|
|
135
|
+
name: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Avatar provider. The first release supports Telnyx avatars.
|
|
139
|
+
*/
|
|
140
|
+
provider: 'telnyx';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* MIME type of a custom avatar image.
|
|
144
|
+
*/
|
|
145
|
+
content_type?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Time when the custom avatar was created.
|
|
149
|
+
*/
|
|
150
|
+
created_at?: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Decoded height of a custom avatar image.
|
|
154
|
+
*/
|
|
155
|
+
height_px?: number;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Expiration time of `image_url`. Omitted when the URL does not expire.
|
|
159
|
+
*/
|
|
160
|
+
image_url_expires_at?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Size of a custom avatar image in bytes.
|
|
164
|
+
*/
|
|
165
|
+
size_bytes?: number;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Optional recommended Telnyx text-to-speech voice for this avatar. An omitted
|
|
169
|
+
* field or empty string means no recommendation is available. Custom avatars have
|
|
170
|
+
* no suggested voice. It is informational and selecting the avatar does not
|
|
171
|
+
* automatically change the AI Assistant's configured voice.
|
|
172
|
+
*/
|
|
173
|
+
suggested_voice_id?: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Time when the custom avatar was last updated.
|
|
177
|
+
*/
|
|
178
|
+
updated_at?: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Decoded width of a custom avatar image.
|
|
182
|
+
*/
|
|
183
|
+
width_px?: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Stable identifier returned by the Avatars API. Discover available stock IDs with
|
|
188
|
+
* GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
|
|
189
|
+
* list. Custom avatar IDs use the `avatar_` prefix and must belong to the
|
|
190
|
+
* authenticated organization. The service validates that the selected avatar is
|
|
191
|
+
* available.
|
|
192
|
+
*/
|
|
193
|
+
export type AvatarID = string;
|
|
194
|
+
|
|
195
|
+
export interface AvatarResponse {
|
|
196
|
+
data: Avatar;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Whether the avatar is provided by Telnyx or was uploaded by the authenticated
|
|
201
|
+
* organization.
|
|
202
|
+
*/
|
|
203
|
+
export type AvatarType = 'stock' | 'custom';
|
|
204
|
+
|
|
205
|
+
export interface AvatarListParams extends DefaultFlatPaginationParams {
|
|
206
|
+
/**
|
|
207
|
+
* Return only stock or custom avatars.
|
|
208
|
+
*/
|
|
209
|
+
'filter[avatar_type]'?: AvatarType;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Return the avatar with this exact ID.
|
|
213
|
+
*/
|
|
214
|
+
'filter[id]'?: AvatarID;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Return avatars whose names contain this value, using case-insensitive matching.
|
|
218
|
+
*/
|
|
219
|
+
'filter[name]'?: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface AvatarCreateParams {
|
|
223
|
+
/**
|
|
224
|
+
* JPEG, PNG, or WebP image file. The maximum file size is 10 MiB.
|
|
225
|
+
*/
|
|
226
|
+
image_file: Uploadable;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Customer-facing name of the custom avatar.
|
|
230
|
+
*/
|
|
231
|
+
name: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface AvatarUpdateParams {
|
|
235
|
+
/**
|
|
236
|
+
* New customer-facing name of the custom avatar.
|
|
237
|
+
*/
|
|
238
|
+
name: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export declare namespace Avatars {
|
|
242
|
+
export {
|
|
243
|
+
type Avatar as Avatar,
|
|
244
|
+
type AvatarID as AvatarID,
|
|
245
|
+
type AvatarResponse as AvatarResponse,
|
|
246
|
+
type AvatarType as AvatarType,
|
|
247
|
+
type AvatarsDefaultFlatPagination as AvatarsDefaultFlatPagination,
|
|
248
|
+
type AvatarListParams as AvatarListParams,
|
|
249
|
+
type AvatarCreateParams as AvatarCreateParams,
|
|
250
|
+
type AvatarUpdateParams as AvatarUpdateParams,
|
|
251
|
+
};
|
|
252
|
+
}
|
package/src/resources/ai/chat.ts
CHANGED
|
@@ -72,12 +72,26 @@ export interface ChatCompletionRequest {
|
|
|
72
72
|
logprobs?: boolean;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Maximum number of completion (output) tokens
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
75
|
+
* Maximum number of completion (output) tokens, including reasoning and answer
|
|
76
|
+
* tokens combined. An omitted or null limit defaults to 8192 unless the model is
|
|
77
|
+
* excluded from that default; excluded models leave the limit to the serving
|
|
78
|
+
* engine. Explicit values and applied defaults are clamped to the model's
|
|
79
|
+
* max_completion_tokens metadata when that ceiling is set (see GET
|
|
80
|
+
* /v2/ai/openai/models). An omitted limit on an excluded model remains unset even
|
|
81
|
+
* when metadata declares a ceiling. Input and output together must fit the model's
|
|
82
|
+
* context window. Set an explicit limit when a bounded generation budget is
|
|
83
|
+
* required. For current Telnyx-hosted models, omitted or null limits default to
|
|
84
|
+
* 8192 for `zai-org/GLM-5.3`, `zai-org/GLM-5.3-Flash` and
|
|
85
|
+
* `deepseek-ai/DeepSeek-V4.1-Flash`. The hosted exclusions are
|
|
86
|
+
* `moonshotai/Kimi-K3`, `moonshotai/Kimi-K2.6`, `moonshotai/Kimi-K2.5`,
|
|
87
|
+
* `zai-org/GLM-5.2`, `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M3-MXFP8`,
|
|
88
|
+
* `MiniMaxAI/MiniMax-M2.7`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3-235B-A22B`,
|
|
89
|
+
* `deepseek-ai/DeepSeek-V4-Flash-0731`, `meta-llama/Llama-3.3-70B-Instruct`,
|
|
90
|
+
* `meta-llama/Meta-Llama-3.1-70B-Instruct`,
|
|
91
|
+
* `meta-llama/Meta-Llama-3.1-8B-Instruct` and `google/gemma-2b-it`. Legacy
|
|
92
|
+
* external and fine-tuned model IDs can also bypass the default; model discovery
|
|
93
|
+
* reports completion ceilings, not whether this default applies. Set an explicit
|
|
94
|
+
* limit for predictable behavior across models.
|
|
81
95
|
*/
|
|
82
96
|
max_tokens?: number | null;
|
|
83
97
|
|
|
@@ -304,6 +304,15 @@ export interface ConversationListParams {
|
|
|
304
304
|
*/
|
|
305
305
|
'metadata->assistant_id'?: string;
|
|
306
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Filter by assistant version ID (e.g.,
|
|
309
|
+
* `metadata->assistant_version_id=eq.20250812T114318034399`). The version that
|
|
310
|
+
* handled the conversation is stored in metadata when the conversation starts;
|
|
311
|
+
* conversations created before this field was tracked, or that never resolved a
|
|
312
|
+
* version, have no `assistant_version_id` and do not match this filter.
|
|
313
|
+
*/
|
|
314
|
+
'metadata->assistant_version_id'?: string;
|
|
315
|
+
|
|
307
316
|
/**
|
|
308
317
|
* Filter by call control ID (e.g., `metadata->call_control_id=eq.v3:123`)
|
|
309
318
|
*/
|
|
@@ -22,6 +22,7 @@ export {
|
|
|
22
22
|
type AssistantsList,
|
|
23
23
|
type AudioVisualizerConfig,
|
|
24
24
|
type AuthenticationMethod,
|
|
25
|
+
type AvatarSettingsRequest,
|
|
25
26
|
type BooleanOpExpression,
|
|
26
27
|
type ComparisonExpression,
|
|
27
28
|
type ConversationFlow,
|
|
@@ -58,6 +59,7 @@ export {
|
|
|
58
59
|
type SpeakNodeReq,
|
|
59
60
|
type StartSpeakingPlan,
|
|
60
61
|
type TelephonySettings,
|
|
62
|
+
type TelnyxAvatarSettings,
|
|
61
63
|
type ToolNode,
|
|
62
64
|
type ToolNodeReq,
|
|
63
65
|
type TranscriptionEndpointingPlan,
|
|
@@ -89,6 +91,17 @@ export {
|
|
|
89
91
|
type AudioTranscribeResponse,
|
|
90
92
|
type AudioTranscribeParams,
|
|
91
93
|
} from './audio';
|
|
94
|
+
export {
|
|
95
|
+
Avatars,
|
|
96
|
+
type Avatar,
|
|
97
|
+
type AvatarID,
|
|
98
|
+
type AvatarResponse,
|
|
99
|
+
type AvatarType,
|
|
100
|
+
type AvatarListParams,
|
|
101
|
+
type AvatarCreateParams,
|
|
102
|
+
type AvatarUpdateParams,
|
|
103
|
+
type AvatarsDefaultFlatPagination,
|
|
104
|
+
} from './avatars';
|
|
92
105
|
export { Chat, type BucketIDs, type ChatCompletionRequest } from './chat';
|
|
93
106
|
export {
|
|
94
107
|
Clusters,
|
|
@@ -166,6 +179,7 @@ export {
|
|
|
166
179
|
type PayToolParams,
|
|
167
180
|
type SharedToolResponse,
|
|
168
181
|
type UpdateDynamicVariablesToolParams,
|
|
182
|
+
type VisionToolParams,
|
|
169
183
|
type ToolListParams,
|
|
170
184
|
type ToolCreateParams,
|
|
171
185
|
type ToolUpdateParams,
|
|
@@ -15,6 +15,7 @@ export {
|
|
|
15
15
|
type ProfileListResponse,
|
|
16
16
|
type ProfileDeleteResponse,
|
|
17
17
|
type ProfileIngestResponse,
|
|
18
|
+
type ProfilePreviewResponse,
|
|
18
19
|
type ProfileRecallResponse,
|
|
19
20
|
type ProfileRememberResponse,
|
|
20
21
|
type ProfileRetrieveSummaryResponse,
|
|
@@ -24,6 +25,7 @@ export {
|
|
|
24
25
|
type ProfileRecallParams,
|
|
25
26
|
type ProfileRememberParams,
|
|
26
27
|
type ProfileRetrieveSummaryParams,
|
|
28
|
+
type ProfilePreviewParams,
|
|
27
29
|
type ProfileListResponsesDefaultFlatPagination,
|
|
28
30
|
} from './profiles/index';
|
|
29
31
|
export { Settings, type NamespaceSettingsResponse, type SettingPatchAllParams } from './settings';
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
ProfileListParams,
|
|
14
14
|
ProfileListResponse,
|
|
15
15
|
ProfileListResponsesDefaultFlatPagination,
|
|
16
|
+
ProfilePreviewParams,
|
|
17
|
+
ProfilePreviewResponse,
|
|
16
18
|
ProfileRecallParams,
|
|
17
19
|
ProfileRecallResponse,
|
|
18
20
|
ProfileRememberParams,
|
|
@@ -174,6 +176,7 @@ export declare namespace Namespaces {
|
|
|
174
176
|
type ProfileListResponse as ProfileListResponse,
|
|
175
177
|
type ProfileDeleteResponse as ProfileDeleteResponse,
|
|
176
178
|
type ProfileIngestResponse as ProfileIngestResponse,
|
|
179
|
+
type ProfilePreviewResponse as ProfilePreviewResponse,
|
|
177
180
|
type ProfileRecallResponse as ProfileRecallResponse,
|
|
178
181
|
type ProfileRememberResponse as ProfileRememberResponse,
|
|
179
182
|
type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse,
|
|
@@ -184,6 +187,7 @@ export declare namespace Namespaces {
|
|
|
184
187
|
type ProfileRecallParams as ProfileRecallParams,
|
|
185
188
|
type ProfileRememberParams as ProfileRememberParams,
|
|
186
189
|
type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams,
|
|
190
|
+
type ProfilePreviewParams as ProfilePreviewParams,
|
|
187
191
|
};
|
|
188
192
|
|
|
189
193
|
export {
|
|
@@ -14,6 +14,7 @@ export {
|
|
|
14
14
|
type ProfileListResponse,
|
|
15
15
|
type ProfileDeleteResponse,
|
|
16
16
|
type ProfileIngestResponse,
|
|
17
|
+
type ProfilePreviewResponse,
|
|
17
18
|
type ProfileRecallResponse,
|
|
18
19
|
type ProfileRememberResponse,
|
|
19
20
|
type ProfileRetrieveSummaryResponse,
|
|
@@ -23,6 +24,7 @@ export {
|
|
|
23
24
|
type ProfileRecallParams,
|
|
24
25
|
type ProfileRememberParams,
|
|
25
26
|
type ProfileRetrieveSummaryParams,
|
|
27
|
+
type ProfilePreviewParams,
|
|
26
28
|
type ProfileListResponsesDefaultFlatPagination,
|
|
27
29
|
} from './profiles';
|
|
28
30
|
export {
|
|
@@ -203,6 +203,42 @@ export class Profiles extends APIResource {
|
|
|
203
203
|
const { namespace } = params;
|
|
204
204
|
return this._client.get(path`/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary`, options);
|
|
205
205
|
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Try a candidate note on one profile and see how that profile's summary would
|
|
209
|
+
* read under it, without saving the note and without touching the stored summary.
|
|
210
|
+
* Composes the same source query the apply path
|
|
211
|
+
* (`PATCH /ai/memory/namespaces/{namespace}/settings`) would use, so a preview
|
|
212
|
+
* cannot drift from what saving the note would produce. Reads the candidate alone
|
|
213
|
+
* -- the namespace's current instructions and the profile's stored summary are
|
|
214
|
+
* neither read nor replaced. Bounded at 120 seconds: the summary is generated on
|
|
215
|
+
* the spot rather than read from a stored one. Nothing about the request is
|
|
216
|
+
* stored.
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```ts
|
|
220
|
+
* const response =
|
|
221
|
+
* await client.ai.memory.namespaces.profiles.preview(
|
|
222
|
+
* 'profile_id',
|
|
223
|
+
* {
|
|
224
|
+
* namespace: 'namespace',
|
|
225
|
+
* instructions:
|
|
226
|
+
* 'Lead with billing status. Prefer plain language over jargon.',
|
|
227
|
+
* },
|
|
228
|
+
* );
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
preview(
|
|
232
|
+
profileID: string,
|
|
233
|
+
params: ProfilePreviewParams,
|
|
234
|
+
options?: RequestOptions,
|
|
235
|
+
): APIPromise<ProfilePreviewResponse> {
|
|
236
|
+
const { namespace, ...body } = params;
|
|
237
|
+
return this._client.post(path`/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary/preview`, {
|
|
238
|
+
body,
|
|
239
|
+
...options,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
206
242
|
}
|
|
207
243
|
|
|
208
244
|
export type ProfileListResponsesDefaultFlatPagination = DefaultFlatPagination<ProfileListResponse>;
|
|
@@ -287,6 +323,23 @@ export namespace ProfileIngestResponse {
|
|
|
287
323
|
}
|
|
288
324
|
}
|
|
289
325
|
|
|
326
|
+
export interface ProfilePreviewResponse {
|
|
327
|
+
data: ProfilePreviewResponse.Data;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export namespace ProfilePreviewResponse {
|
|
331
|
+
export interface Data {
|
|
332
|
+
profile_id: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The summary this profile would carry under the candidate note. Null when nothing
|
|
336
|
+
* was generated -- the same signal `GET /summary` uses for a profile with no card
|
|
337
|
+
* yet.
|
|
338
|
+
*/
|
|
339
|
+
text: string | null;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
290
343
|
export interface ProfileRecallResponse {
|
|
291
344
|
data: Array<ProfileRecallResponse.Data>;
|
|
292
345
|
}
|
|
@@ -441,6 +494,22 @@ export interface ProfileRetrieveSummaryParams {
|
|
|
441
494
|
namespace: string;
|
|
442
495
|
}
|
|
443
496
|
|
|
497
|
+
export interface ProfilePreviewParams {
|
|
498
|
+
/**
|
|
499
|
+
* Path param: The namespace. `default` exists for every organization.
|
|
500
|
+
*/
|
|
501
|
+
namespace: string;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Body param: The candidate note to try. `null`, empty, or whitespace-only
|
|
505
|
+
* previews the neutral default -- the summary a profile returns to when
|
|
506
|
+
* instructions are cleared. Capped at 2000 characters, the same cap
|
|
507
|
+
* `PATCH /settings` applies on save; a longer note is refused with `422` before
|
|
508
|
+
* anything is generated.
|
|
509
|
+
*/
|
|
510
|
+
instructions?: string | null;
|
|
511
|
+
}
|
|
512
|
+
|
|
444
513
|
Profiles.Memories = Memories;
|
|
445
514
|
Profiles.Sources = Sources;
|
|
446
515
|
|
|
@@ -450,6 +519,7 @@ export declare namespace Profiles {
|
|
|
450
519
|
type ProfileListResponse as ProfileListResponse,
|
|
451
520
|
type ProfileDeleteResponse as ProfileDeleteResponse,
|
|
452
521
|
type ProfileIngestResponse as ProfileIngestResponse,
|
|
522
|
+
type ProfilePreviewResponse as ProfilePreviewResponse,
|
|
453
523
|
type ProfileRecallResponse as ProfileRecallResponse,
|
|
454
524
|
type ProfileRememberResponse as ProfileRememberResponse,
|
|
455
525
|
type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse,
|
|
@@ -460,6 +530,7 @@ export declare namespace Profiles {
|
|
|
460
530
|
type ProfileRecallParams as ProfileRecallParams,
|
|
461
531
|
type ProfileRememberParams as ProfileRememberParams,
|
|
462
532
|
type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams,
|
|
533
|
+
type ProfilePreviewParams as ProfilePreviewParams,
|
|
463
534
|
};
|
|
464
535
|
|
|
465
536
|
export {
|
|
@@ -97,12 +97,26 @@ export interface ChatCreateCompletionParams {
|
|
|
97
97
|
logprobs?: boolean;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
* Maximum number of completion (output) tokens
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
100
|
+
* Maximum number of completion (output) tokens, including reasoning and answer
|
|
101
|
+
* tokens combined. An omitted or null limit defaults to 8192 unless the model is
|
|
102
|
+
* excluded from that default; excluded models leave the limit to the serving
|
|
103
|
+
* engine. Explicit values and applied defaults are clamped to the model's
|
|
104
|
+
* max_completion_tokens metadata when that ceiling is set (see GET
|
|
105
|
+
* /v2/ai/openai/models). An omitted limit on an excluded model remains unset even
|
|
106
|
+
* when metadata declares a ceiling. Input and output together must fit the model's
|
|
107
|
+
* context window. Set an explicit limit when a bounded generation budget is
|
|
108
|
+
* required. For current Telnyx-hosted models, omitted or null limits default to
|
|
109
|
+
* 8192 for `zai-org/GLM-5.3`, `zai-org/GLM-5.3-Flash` and
|
|
110
|
+
* `deepseek-ai/DeepSeek-V4.1-Flash`. The hosted exclusions are
|
|
111
|
+
* `moonshotai/Kimi-K3`, `moonshotai/Kimi-K2.6`, `moonshotai/Kimi-K2.5`,
|
|
112
|
+
* `zai-org/GLM-5.2`, `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M3-MXFP8`,
|
|
113
|
+
* `MiniMaxAI/MiniMax-M2.7`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3-235B-A22B`,
|
|
114
|
+
* `deepseek-ai/DeepSeek-V4-Flash-0731`, `meta-llama/Llama-3.3-70B-Instruct`,
|
|
115
|
+
* `meta-llama/Meta-Llama-3.1-70B-Instruct`,
|
|
116
|
+
* `meta-llama/Meta-Llama-3.1-8B-Instruct` and `google/gemma-2b-it`. Legacy
|
|
117
|
+
* external and fine-tuned model IDs can also bypass the default; model discovery
|
|
118
|
+
* reports completion ceilings, not whether this default applies. Set an explicit
|
|
119
|
+
* limit for predictable behavior across models.
|
|
106
120
|
*/
|
|
107
121
|
max_tokens?: number | null;
|
|
108
122
|
|