telnyx 7.24.0 → 7.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +27 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +27 -6
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +21 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +16 -6
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +16 -6
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +551 -33
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +551 -33
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +79 -2
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +79 -2
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/deleted.d.mts +60 -0
- package/resources/ai/assistants/deleted.d.mts.map +1 -0
- package/resources/ai/assistants/deleted.d.ts +60 -0
- package/resources/ai/assistants/deleted.d.ts.map +1 -0
- package/resources/ai/assistants/deleted.js +49 -0
- package/resources/ai/assistants/deleted.js.map +1 -0
- package/resources/ai/assistants/deleted.mjs +45 -0
- package/resources/ai/assistants/deleted.mjs.map +1 -0
- package/resources/ai/assistants/index.d.mts +2 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js +3 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs +1 -0
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +48 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +48 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +187 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +187 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +93 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +89 -0
- package/resources/ai/avatars.mjs.map +1 -0
- package/resources/ai/chat.d.mts +21 -2
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +21 -2
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +8 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +8 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/embeddings/embeddings.d.mts +1 -1
- package/resources/ai/embeddings/embeddings.d.ts +1 -1
- package/resources/ai/embeddings/embeddings.js +1 -1
- package/resources/ai/embeddings/embeddings.mjs +1 -1
- package/resources/ai/index.d.mts +3 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +3 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/index.d.mts +1 -1
- package/resources/ai/memory/index.d.mts.map +1 -1
- package/resources/ai/memory/index.d.ts +1 -1
- package/resources/ai/memory/index.d.ts.map +1 -1
- package/resources/ai/memory/index.js.map +1 -1
- package/resources/ai/memory/index.mjs +1 -1
- package/resources/ai/memory/index.mjs.map +1 -1
- package/resources/ai/memory/memory.d.mts +2 -2
- package/resources/ai/memory/memory.d.mts.map +1 -1
- package/resources/ai/memory/memory.d.ts +2 -2
- package/resources/ai/memory/memory.d.ts.map +1 -1
- package/resources/ai/memory/memory.js.map +1 -1
- package/resources/ai/memory/memory.mjs +1 -1
- package/resources/ai/memory/memory.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +2 -2
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +2 -2
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +62 -6
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +62 -6
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js +41 -3
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +21 -2
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +21 -2
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +20 -5
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +20 -5
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/ai/tools.js +5 -2
- package/resources/ai/tools.js.map +1 -1
- package/resources/ai/tools.mjs +5 -2
- package/resources/ai/tools.mjs.map +1 -1
- package/resources/calls/actions.d.mts +135 -30
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +135 -30
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +31 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +31 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +72 -25
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +72 -25
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +11 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +11 -0
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/dir/dir.d.mts +226 -31
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +226 -31
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +78 -14
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +78 -14
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/index.d.mts +1 -1
- package/resources/dir/index.d.mts.map +1 -1
- package/resources/dir/index.d.ts +1 -1
- package/resources/dir/index.d.ts.map +1 -1
- package/resources/dir/index.js.map +1 -1
- package/resources/dir/index.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +8 -8
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +8 -8
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/dir/phone-numbers.js +4 -4
- package/resources/dir/phone-numbers.mjs +4 -4
- package/resources/dir/references.d.mts +9 -6
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +9 -6
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/email-templates.d.mts +109 -18
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +109 -18
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +5 -1
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +5 -1
- package/resources/email-templates.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +25 -3
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +25 -3
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/dir.js +8 -2
- package/resources/enterprises/dir.js.map +1 -1
- package/resources/enterprises/dir.mjs +8 -2
- package/resources/enterprises/dir.mjs.map +1 -1
- package/resources/enterprises/enterprises.d.mts +244 -28
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +244 -28
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +31 -7
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +31 -7
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +2 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +2 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js +3 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs +1 -0
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.mts +94 -0
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
- package/resources/enterprises/reputation/external-verification.d.ts +94 -0
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
- package/resources/enterprises/reputation/external-verification.js +54 -0
- package/resources/enterprises/reputation/external-verification.js.map +1 -0
- package/resources/enterprises/reputation/external-verification.mjs +50 -0
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
- package/resources/enterprises/reputation/index.d.mts +3 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +3 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +3 -1
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -0
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +64 -3
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +64 -3
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.mts +197 -4
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +197 -4
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +58 -2
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +58 -2
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/remediation.d.mts +3 -2
- package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
- package/resources/enterprises/reputation/remediation.d.ts +3 -2
- package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +39 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +39 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +22 -0
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +22 -0
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/enterprises/verify-email.d.mts +91 -0
- package/resources/enterprises/verify-email.d.mts.map +1 -0
- package/resources/enterprises/verify-email.d.ts +91 -0
- package/resources/enterprises/verify-email.d.ts.map +1 -0
- package/resources/enterprises/verify-email.js +55 -0
- package/resources/enterprises/verify-email.js.map +1 -0
- package/resources/enterprises/verify-email.mjs +51 -0
- package/resources/enterprises/verify-email.mjs.map +1 -0
- package/resources/global-ip-assignment-health.d.mts +4 -4
- package/resources/global-ip-assignment-health.d.mts.map +1 -1
- package/resources/global-ip-assignment-health.d.ts +4 -4
- package/resources/global-ip-assignment-health.d.ts.map +1 -1
- package/resources/global-ip-assignments-usage.d.mts +4 -4
- package/resources/global-ip-assignments-usage.d.mts.map +1 -1
- package/resources/global-ip-assignments-usage.d.ts +4 -4
- package/resources/global-ip-assignments-usage.d.ts.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/infringement-claims.d.mts +4 -0
- package/resources/infringement-claims.d.mts.map +1 -1
- package/resources/infringement-claims.d.ts +4 -0
- package/resources/infringement-claims.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +6 -0
- package/resources/llm-token-gateway/index.d.mts.map +1 -0
- package/resources/llm-token-gateway/index.d.ts +6 -0
- package/resources/llm-token-gateway/index.d.ts.map +1 -0
- package/resources/llm-token-gateway/index.js +15 -0
- package/resources/llm-token-gateway/index.js.map +1 -0
- package/resources/llm-token-gateway/index.mjs +7 -0
- package/resources/llm-token-gateway/index.mjs.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +22 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +22 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.js +29 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs +24 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
- package/resources/llm-token-gateway/spend.d.mts +223 -0
- package/resources/llm-token-gateway/spend.d.mts.map +1 -0
- package/resources/llm-token-gateway/spend.d.ts +223 -0
- package/resources/llm-token-gateway/spend.d.ts.map +1 -0
- package/resources/llm-token-gateway/spend.js +56 -0
- package/resources/llm-token-gateway/spend.js.map +1 -0
- package/resources/llm-token-gateway/spend.mjs +52 -0
- package/resources/llm-token-gateway/spend.mjs.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.mts +577 -0
- package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.ts +577 -0
- package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-groups.js +139 -0
- package/resources/llm-token-gateway/token-groups.js.map +1 -0
- package/resources/llm-token-gateway/token-groups.mjs +135 -0
- package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.mts +318 -0
- package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.ts +318 -0
- package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-keys.js +127 -0
- package/resources/llm-token-gateway/token-keys.js.map +1 -0
- package/resources/llm-token-gateway/token-keys.mjs +123 -0
- package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +319 -0
- package/resources/llm-token-gateway/usage.d.mts.map +1 -0
- package/resources/llm-token-gateway/usage.d.ts +319 -0
- package/resources/llm-token-gateway/usage.d.ts.map +1 -0
- package/resources/llm-token-gateway/usage.js +63 -0
- package/resources/llm-token-gateway/usage.js.map +1 -0
- package/resources/llm-token-gateway/usage.mjs +59 -0
- package/resources/llm-token-gateway/usage.mjs.map +1 -0
- package/resources/llm-token-gateway.d.mts +2 -0
- package/resources/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway.d.ts +2 -0
- package/resources/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway.js +6 -0
- package/resources/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway.mjs +3 -0
- package/resources/llm-token-gateway.mjs.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +6 -6
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +17 -5
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +17 -5
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +4 -3
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +4 -3
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/reputation/numbers.d.mts +10 -0
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +10 -0
- package/resources/reputation/numbers.d.ts.map +1 -1
- package/resources/requirements.d.mts +2 -2
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +2 -2
- package/resources/requirements.d.ts.map +1 -1
- package/resources/sip-registration-status.d.mts +149 -0
- package/resources/sip-registration-status.d.mts.map +1 -0
- package/resources/sip-registration-status.d.ts +149 -0
- package/resources/sip-registration-status.d.ts.map +1 -0
- package/resources/sip-registration-status.js +32 -0
- package/resources/sip-registration-status.js.map +1 -0
- package/resources/sip-registration-status.mjs +28 -0
- package/resources/sip-registration-status.mjs.map +1 -0
- package/resources/spend-limits.d.mts +335 -0
- package/resources/spend-limits.d.mts.map +1 -0
- package/resources/spend-limits.d.ts +335 -0
- package/resources/spend-limits.d.ts.map +1 -0
- package/resources/spend-limits.js +91 -0
- package/resources/spend-limits.js.map +1 -0
- package/resources/spend-limits.mjs +87 -0
- package/resources/spend-limits.mjs.map +1 -0
- package/resources/terms-of-service/agreements.d.mts +12 -0
- package/resources/terms-of-service/agreements.d.mts.map +1 -1
- package/resources/terms-of-service/agreements.d.ts +12 -0
- package/resources/terms-of-service/agreements.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.mts +15 -0
- package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.ts +15 -0
- package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.js.map +1 -1
- package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
- package/resources/texml/texml.d.mts +7 -3
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +7 -3
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -2
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -2
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +4 -2
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +4 -2
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/webhooks.d.mts +967 -6
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +967 -6
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +90 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +90 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js +66 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +62 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js +3 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs +1 -0
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/signup.d.mts +128 -0
- package/resources/whatsapp/signup.d.mts.map +1 -0
- package/resources/whatsapp/signup.d.ts +128 -0
- package/resources/whatsapp/signup.d.ts.map +1 -0
- package/resources/whatsapp/signup.js +42 -0
- package/resources/whatsapp/signup.js.map +1 -0
- package/resources/whatsapp/signup.mjs +38 -0
- package/resources/whatsapp/signup.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +83 -0
- package/src/resources/ai/ai.ts +48 -4
- package/src/resources/ai/assistants/assistants.ts +676 -33
- package/src/resources/ai/assistants/deleted.ts +86 -0
- package/src/resources/ai/assistants/index.ts +13 -0
- package/src/resources/ai/assistants/versions.ts +54 -0
- package/src/resources/ai/avatars.ts +238 -0
- package/src/resources/ai/chat.ts +21 -2
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/embeddings/embeddings.ts +1 -1
- package/src/resources/ai/index.ts +18 -1
- package/src/resources/ai/memory/index.ts +9 -1
- package/src/resources/ai/memory/memory.ts +13 -1
- package/src/resources/ai/memory/namespaces/index.ts +11 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +85 -3
- package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
- package/src/resources/ai/openai/chat.ts +21 -2
- package/src/resources/ai/tools.ts +25 -7
- package/src/resources/calls/actions.ts +141 -25
- package/src/resources/calls/calls.ts +73 -17
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/dir/dir.ts +269 -35
- package/src/resources/dir/index.ts +6 -0
- package/src/resources/dir/phone-numbers.ts +9 -10
- package/src/resources/dir/references.ts +9 -6
- package/src/resources/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +27 -3
- package/src/resources/enterprises/enterprises.ts +257 -26
- package/src/resources/enterprises/index.ts +6 -0
- package/src/resources/enterprises/reputation/external-verification.ts +125 -0
- package/src/resources/enterprises/reputation/index.ts +12 -0
- package/src/resources/enterprises/reputation/loa.ts +76 -3
- package/src/resources/enterprises/reputation/numbers.ts +256 -3
- package/src/resources/enterprises/reputation/remediation.ts +3 -2
- package/src/resources/enterprises/reputation/reputation.ts +70 -0
- package/src/resources/enterprises/verify-email.ts +117 -0
- package/src/resources/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +31 -0
- package/src/resources/infringement-claims.ts +4 -0
- package/src/resources/llm-token-gateway/index.ts +41 -0
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +101 -0
- package/src/resources/llm-token-gateway/spend.ts +309 -0
- package/src/resources/llm-token-gateway/token-groups.ts +724 -0
- package/src/resources/llm-token-gateway/token-keys.ts +422 -0
- package/src/resources/llm-token-gateway/usage.ts +460 -0
- package/src/resources/llm-token-gateway.ts +3 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
- package/src/resources/phone-numbers/jobs.ts +18 -5
- package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
- package/src/resources/porting-orders/porting-orders.ts +9 -1
- package/src/resources/porting-phone-numbers.ts +9 -1
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/requirements.ts +2 -2
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/spend-limits.ts +428 -0
- package/src/resources/terms-of-service/agreements.ts +12 -0
- package/src/resources/terms-of-service/terms-of-service.ts +15 -0
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/text-to-speech/text-to-speech.ts +4 -2
- package/src/resources/webhooks.ts +1460 -228
- package/src/resources/whatsapp/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +114 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
- package/src/resources/whatsapp/signup.ts +188 -0
- package/src/resources/whatsapp/whatsapp.ts +18 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as AssistantsAPI from './assistants';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import {
|
|
7
|
+
DefaultFlatPagination,
|
|
8
|
+
type DefaultFlatPaginationParams,
|
|
9
|
+
PagePromise,
|
|
10
|
+
} from '../../../core/pagination';
|
|
11
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
12
|
+
import { path } from '../../../internal/utils/path';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Configure AI assistant specifications
|
|
16
|
+
*/
|
|
17
|
+
export class Deleted extends APIResource {
|
|
18
|
+
/**
|
|
19
|
+
* List the organization's soft-deleted assistants in the Recently Deleted list.
|
|
20
|
+
*
|
|
21
|
+
* Each entry includes `deleted_at` and `permanently_deleted_at`, the point after
|
|
22
|
+
* which the assistant is erased automatically and can no longer be restored.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* // Automatically fetches more pages as needed.
|
|
27
|
+
* for await (const deletedAssistant of client.ai.assistants.deleted.list()) {
|
|
28
|
+
* // ...
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
list(
|
|
33
|
+
query: DeletedListParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): PagePromise<DeletedAssistantsDefaultFlatPagination, DeletedAssistant> {
|
|
36
|
+
return this._client.getAPIList('/ai/assistants/deleted', DefaultFlatPagination<DeletedAssistant>, {
|
|
37
|
+
query,
|
|
38
|
+
...options,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Retrieve a soft-deleted assistant from the Recently Deleted list by
|
|
44
|
+
* `assistant_id`, including its `deleted_at` and `permanently_deleted_at`
|
|
45
|
+
* timestamps. This is a read-only view; the assistant cannot be modified while it
|
|
46
|
+
* remains deleted.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const deletedAssistant =
|
|
51
|
+
* await client.ai.assistants.deleted.get('assistant_id');
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
get(assistantID: string, options?: RequestOptions): APIPromise<DeletedAssistant> {
|
|
55
|
+
return this._client.get(path`/ai/assistants/${assistantID}/deleted`, options);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type DeletedAssistantsDefaultFlatPagination = DefaultFlatPagination<DeletedAssistant>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A soft-deleted assistant in the Recently Deleted list: the full assistant
|
|
63
|
+
* configuration plus deletion metadata.
|
|
64
|
+
*/
|
|
65
|
+
export interface DeletedAssistant extends AssistantsAPI.InferenceEmbedding {
|
|
66
|
+
/**
|
|
67
|
+
* Timestamp of the soft delete.
|
|
68
|
+
*/
|
|
69
|
+
deleted_at: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Point after which the assistant is permanently deleted automatically and can no
|
|
73
|
+
* longer be restored.
|
|
74
|
+
*/
|
|
75
|
+
permanently_deleted_at: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface DeletedListParams extends DefaultFlatPaginationParams {}
|
|
79
|
+
|
|
80
|
+
export declare namespace Deleted {
|
|
81
|
+
export {
|
|
82
|
+
type DeletedAssistant as DeletedAssistant,
|
|
83
|
+
type DeletedAssistantsDefaultFlatPagination as DeletedAssistantsDefaultFlatPagination,
|
|
84
|
+
type DeletedListParams as DeletedListParams,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -11,10 +11,12 @@ 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,
|
|
17
18
|
type ConversationFlowReq,
|
|
19
|
+
type DelegationSettings,
|
|
18
20
|
type EnabledFeatures,
|
|
19
21
|
type Expression,
|
|
20
22
|
type ExternalLlm,
|
|
@@ -46,6 +48,7 @@ export {
|
|
|
46
48
|
type SpeakNodeReq,
|
|
47
49
|
type StartSpeakingPlan,
|
|
48
50
|
type TelephonySettings,
|
|
51
|
+
type TelnyxAvatarSettings,
|
|
49
52
|
type ToolNode,
|
|
50
53
|
type ToolNodeReq,
|
|
51
54
|
type TranscriptionEndpointingPlan,
|
|
@@ -54,18 +57,22 @@ export {
|
|
|
54
57
|
type TransferTool,
|
|
55
58
|
type VoiceSettings,
|
|
56
59
|
type WebhookTool,
|
|
60
|
+
type WebsocketSettings,
|
|
57
61
|
type WidgetSettings,
|
|
58
62
|
type AssistantDeleteResponse,
|
|
59
63
|
type AssistantChatResponse,
|
|
60
64
|
type AssistantGetTexmlResponse,
|
|
61
65
|
type AssistantSendSMSResponse,
|
|
66
|
+
type AssistantWhatsappResponse,
|
|
62
67
|
type AssistantCreateParams,
|
|
63
68
|
type AssistantImportsParams,
|
|
69
|
+
type AssistantDeleteParams,
|
|
64
70
|
type AssistantRetrieveParams,
|
|
65
71
|
type AssistantUpdateParams,
|
|
66
72
|
type AssistantChatParams,
|
|
67
73
|
type AssistantCloneParams,
|
|
68
74
|
type AssistantSendSMSParams,
|
|
75
|
+
type AssistantWhatsappParams,
|
|
69
76
|
} from './assistants';
|
|
70
77
|
export {
|
|
71
78
|
CanaryDeploys,
|
|
@@ -79,6 +86,12 @@ export {
|
|
|
79
86
|
type CanaryDeployCreateParams,
|
|
80
87
|
type CanaryDeployUpdateParams,
|
|
81
88
|
} from './canary-deploys';
|
|
89
|
+
export {
|
|
90
|
+
Deleted,
|
|
91
|
+
type DeletedAssistant,
|
|
92
|
+
type DeletedListParams,
|
|
93
|
+
type DeletedAssistantsDefaultFlatPagination,
|
|
94
|
+
} from './deleted';
|
|
82
95
|
export { Instructions, type InstructionEnhanceResponse, type InstructionEnhanceParams } from './instructions';
|
|
83
96
|
export {
|
|
84
97
|
ScheduledEvents,
|
|
@@ -130,6 +130,13 @@ export interface UpdateAssistant {
|
|
|
130
130
|
*/
|
|
131
131
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
132
132
|
|
|
133
|
+
/**
|
|
134
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
|
|
135
|
+
* the six stock avatars or an organization-owned custom avatar returned by the
|
|
136
|
+
* Avatars API. Supported backgrounds are office, studio, and reception.
|
|
137
|
+
*/
|
|
138
|
+
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
139
|
+
|
|
133
140
|
/**
|
|
134
141
|
* Conversation flow as supplied by API clients (create / update).
|
|
135
142
|
*
|
|
@@ -139,6 +146,17 @@ export interface UpdateAssistant {
|
|
|
139
146
|
*/
|
|
140
147
|
conversation_flow?: AssistantsAPI.ConversationFlowReq;
|
|
141
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Splits the conversation between a frontend model that talks to the caller and a
|
|
151
|
+
* backend model that does the work. On the GPT-Live route the frontend model
|
|
152
|
+
* cannot call tools at all — when it needs something done it raises a delegation
|
|
153
|
+
* and waits. On the chat completion route the frontend keeps a single `delegate`
|
|
154
|
+
* tool that returns immediately, so the conversation carries on while the backend
|
|
155
|
+
* works. Either way the backend's answer is spoken as commentary or kept as silent
|
|
156
|
+
* context, depending on `speak_results`. Beta feature.
|
|
157
|
+
*/
|
|
158
|
+
delegation_settings?: AssistantsAPI.DelegationSettings;
|
|
159
|
+
|
|
142
160
|
description?: string;
|
|
143
161
|
|
|
144
162
|
/**
|
|
@@ -292,6 +310,15 @@ export interface UpdateAssistant {
|
|
|
292
310
|
|
|
293
311
|
voice_settings?: AssistantsAPI.InferenceEmbeddingVoiceSettings;
|
|
294
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Streams conversation and telephony events to a WebSocket server you host, and
|
|
315
|
+
* accepts messages injected back into the conversation. Telnyx opens the
|
|
316
|
+
* connection as a client, once per conversation. Delivery is best effort
|
|
317
|
+
* throughout: while the connection is down events are dropped rather than queued,
|
|
318
|
+
* and no socket failure is ever allowed to affect the call. Beta feature.
|
|
319
|
+
*/
|
|
320
|
+
websocket_settings?: AssistantsAPI.WebsocketSettings;
|
|
321
|
+
|
|
295
322
|
/**
|
|
296
323
|
* Configuration settings for the assistant's web widget.
|
|
297
324
|
*/
|
|
@@ -337,6 +364,13 @@ export interface VersionUpdateParams {
|
|
|
337
364
|
*/
|
|
338
365
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
339
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
|
|
369
|
+
* Use one of the six stock avatars or an organization-owned custom avatar returned
|
|
370
|
+
* by the Avatars API. Supported backgrounds are office, studio, and reception.
|
|
371
|
+
*/
|
|
372
|
+
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
373
|
+
|
|
340
374
|
/**
|
|
341
375
|
* Body param: Conversation flow as supplied by API clients (create / update).
|
|
342
376
|
*
|
|
@@ -346,6 +380,17 @@ export interface VersionUpdateParams {
|
|
|
346
380
|
*/
|
|
347
381
|
conversation_flow?: AssistantsAPI.ConversationFlowReq;
|
|
348
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Body param: Splits the conversation between a frontend model that talks to the
|
|
385
|
+
* caller and a backend model that does the work. On the GPT-Live route the
|
|
386
|
+
* frontend model cannot call tools at all — when it needs something done it raises
|
|
387
|
+
* a delegation and waits. On the chat completion route the frontend keeps a single
|
|
388
|
+
* `delegate` tool that returns immediately, so the conversation carries on while
|
|
389
|
+
* the backend works. Either way the backend's answer is spoken as commentary or
|
|
390
|
+
* kept as silent context, depending on `speak_results`. Beta feature.
|
|
391
|
+
*/
|
|
392
|
+
delegation_settings?: AssistantsAPI.DelegationSettings;
|
|
393
|
+
|
|
349
394
|
/**
|
|
350
395
|
* Body param
|
|
351
396
|
*/
|
|
@@ -536,6 +581,15 @@ export interface VersionUpdateParams {
|
|
|
536
581
|
*/
|
|
537
582
|
voice_settings?: AssistantsAPI.InferenceEmbeddingVoiceSettings;
|
|
538
583
|
|
|
584
|
+
/**
|
|
585
|
+
* Body param: Streams conversation and telephony events to a WebSocket server you
|
|
586
|
+
* host, and accepts messages injected back into the conversation. Telnyx opens the
|
|
587
|
+
* connection as a client, once per conversation. Delivery is best effort
|
|
588
|
+
* throughout: while the connection is down events are dropped rather than queued,
|
|
589
|
+
* and no socket failure is ever allowed to affect the call. Beta feature.
|
|
590
|
+
*/
|
|
591
|
+
websocket_settings?: AssistantsAPI.WebsocketSettings;
|
|
592
|
+
|
|
539
593
|
/**
|
|
540
594
|
* Body param: Configuration settings for the assistant's web widget.
|
|
541
595
|
*/
|
|
@@ -0,0 +1,238 @@
|
|
|
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.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* // Automatically fetches more pages as needed.
|
|
25
|
+
* for await (const avatar of client.ai.avatars.list()) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
query: AvatarListParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): PagePromise<AvatarsDefaultFlatPagination, Avatar> {
|
|
34
|
+
return this._client.getAPIList('/ai/avatars', DefaultFlatPagination<Avatar>, { query, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Uploads an image, validates its file type, size, safe decoding, and resolution,
|
|
39
|
+
* stores it in Telnyx-managed private storage, and creates an avatar owned by the
|
|
40
|
+
* authenticated organization. Creating an avatar does not update an AI Assistant;
|
|
41
|
+
* use the returned ID separately wherever the avatar is consumed. The avatar image
|
|
42
|
+
* is stored independently from the rendering model and background, which are
|
|
43
|
+
* selected where the avatar is consumed. Supported image types are JPEG, PNG, and
|
|
44
|
+
* WebP. Images may be up to 10 MiB, must be between 256 and 8192 pixels on each
|
|
45
|
+
* side, and may contain at most 40 megapixels. Each organization may have up to 20
|
|
46
|
+
* custom avatars. For best results, use a 16:9 landscape image, preferably 1920 by
|
|
47
|
+
* 1080 pixels and at least 1280 by 720 pixels. Show one centered, front-facing
|
|
48
|
+
* person from the shoulders up, keep the full head and hair visible with space
|
|
49
|
+
* around it, and use a sharp, evenly lit image with unobstructed eyes and mouth.
|
|
50
|
+
* Use a transparent PNG or WebP when the avatar will be combined with a selectable
|
|
51
|
+
* background. These composition recommendations are not enforced in the first
|
|
52
|
+
* release; the first release does not validate the number of faces, pose, or image
|
|
53
|
+
* content.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const avatarResponse = await client.ai.avatars.create({
|
|
58
|
+
* image_file: fs.createReadStream('path/to/file'),
|
|
59
|
+
* name: 'Customer portrait',
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
create(body: AvatarCreateParams, options?: RequestOptions): APIPromise<AvatarResponse> {
|
|
64
|
+
return this._client.post('/ai/avatars', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Returns a Telnyx stock avatar or a custom avatar owned by the authenticated
|
|
69
|
+
* organization. A custom avatar belonging to another organization is returned as
|
|
70
|
+
* not found.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const avatarResponse = await client.ai.avatars.retrieve(
|
|
75
|
+
* 'avatar_0123456789abcdef0123456789abcdef',
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
retrieve(avatarID: AvatarID, options?: RequestOptions): APIPromise<AvatarResponse> {
|
|
80
|
+
return this._client.get(path`/ai/avatars/${avatarID}`, options);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Updates the customer-facing name of a custom avatar owned by the authenticated
|
|
85
|
+
* organization. Stock avatars cannot be modified. To replace the image, create a
|
|
86
|
+
* new custom avatar so existing references keep their original content.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const avatarResponse = await client.ai.avatars.update(
|
|
91
|
+
* 'avatar_0123456789abcdef0123456789abcdef',
|
|
92
|
+
* { name: 'Updated portrait' },
|
|
93
|
+
* );
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
update(avatarID: AvatarID, body: AvatarUpdateParams, options?: RequestOptions): APIPromise<AvatarResponse> {
|
|
97
|
+
return this._client.patch(path`/ai/avatars/${avatarID}`, { body, ...options });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type AvatarsDefaultFlatPagination = DefaultFlatPagination<Avatar>;
|
|
102
|
+
|
|
103
|
+
export interface Avatar {
|
|
104
|
+
/**
|
|
105
|
+
* Stable identifier of a Telnyx stock avatar or an organization-owned custom
|
|
106
|
+
* avatar. Custom avatar IDs are returned by the Avatars API and use the `avatar_`
|
|
107
|
+
* prefix.
|
|
108
|
+
*/
|
|
109
|
+
id: AvatarID;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Whether the avatar is provided by Telnyx or was uploaded by the authenticated
|
|
113
|
+
* organization.
|
|
114
|
+
*/
|
|
115
|
+
avatar_type: AvatarType;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Indicates that avatar rendering runs on Telnyx-operated infrastructure.
|
|
119
|
+
*/
|
|
120
|
+
hosted: true;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* HTTPS image URL suitable for an avatar selection thumbnail. If the URL expires,
|
|
124
|
+
* list or retrieve the avatar again to refresh it.
|
|
125
|
+
*/
|
|
126
|
+
image_url: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Customer-facing avatar name.
|
|
130
|
+
*/
|
|
131
|
+
name: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Avatar provider. The first release supports Telnyx avatars.
|
|
135
|
+
*/
|
|
136
|
+
provider: 'telnyx';
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* MIME type of a custom avatar image.
|
|
140
|
+
*/
|
|
141
|
+
content_type?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Time when the custom avatar was created.
|
|
145
|
+
*/
|
|
146
|
+
created_at?: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Decoded height of a custom avatar image.
|
|
150
|
+
*/
|
|
151
|
+
height_px?: number;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Expiration time of `image_url`. Omitted when the URL does not expire.
|
|
155
|
+
*/
|
|
156
|
+
image_url_expires_at?: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Size of a custom avatar image in bytes.
|
|
160
|
+
*/
|
|
161
|
+
size_bytes?: number;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Time when the custom avatar was last updated.
|
|
165
|
+
*/
|
|
166
|
+
updated_at?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Decoded width of a custom avatar image.
|
|
170
|
+
*/
|
|
171
|
+
width_px?: number;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Stable identifier of a Telnyx stock avatar or an organization-owned custom
|
|
176
|
+
* avatar. Custom avatar IDs are returned by the Avatars API and use the `avatar_`
|
|
177
|
+
* prefix.
|
|
178
|
+
*/
|
|
179
|
+
export type AvatarID = 'elena' | 'ben' | 'jordan' | 'lin' | 'avery' | 'raphael' | (string & {});
|
|
180
|
+
|
|
181
|
+
export interface AvatarResponse {
|
|
182
|
+
data: Avatar;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Whether the avatar is provided by Telnyx or was uploaded by the authenticated
|
|
187
|
+
* organization.
|
|
188
|
+
*/
|
|
189
|
+
export type AvatarType = 'stock' | 'custom';
|
|
190
|
+
|
|
191
|
+
export interface AvatarListParams extends DefaultFlatPaginationParams {
|
|
192
|
+
/**
|
|
193
|
+
* Return only stock or custom avatars.
|
|
194
|
+
*/
|
|
195
|
+
'filter[avatar_type]'?: AvatarType;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Return the avatar with this exact ID.
|
|
199
|
+
*/
|
|
200
|
+
'filter[id]'?: AvatarID;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Return avatars whose names contain this value, using case-insensitive matching.
|
|
204
|
+
*/
|
|
205
|
+
'filter[name]'?: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface AvatarCreateParams {
|
|
209
|
+
/**
|
|
210
|
+
* JPEG, PNG, or WebP image file. The maximum file size is 10 MiB.
|
|
211
|
+
*/
|
|
212
|
+
image_file: Uploadable;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Customer-facing name of the custom avatar.
|
|
216
|
+
*/
|
|
217
|
+
name: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface AvatarUpdateParams {
|
|
221
|
+
/**
|
|
222
|
+
* New customer-facing name of the custom avatar.
|
|
223
|
+
*/
|
|
224
|
+
name: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export declare namespace Avatars {
|
|
228
|
+
export {
|
|
229
|
+
type Avatar as Avatar,
|
|
230
|
+
type AvatarID as AvatarID,
|
|
231
|
+
type AvatarResponse as AvatarResponse,
|
|
232
|
+
type AvatarType as AvatarType,
|
|
233
|
+
type AvatarsDefaultFlatPagination as AvatarsDefaultFlatPagination,
|
|
234
|
+
type AvatarListParams as AvatarListParams,
|
|
235
|
+
type AvatarCreateParams as AvatarCreateParams,
|
|
236
|
+
type AvatarUpdateParams as AvatarUpdateParams,
|
|
237
|
+
};
|
|
238
|
+
}
|
package/src/resources/ai/chat.ts
CHANGED
|
@@ -72,9 +72,28 @@ export interface ChatCompletionRequest {
|
|
|
72
72
|
logprobs?: boolean;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Maximum number of completion tokens
|
|
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.
|
|
76
95
|
*/
|
|
77
|
-
max_tokens?: number;
|
|
96
|
+
max_tokens?: number | null;
|
|
78
97
|
|
|
79
98
|
/**
|
|
80
99
|
* This is an alternative to `top_p` that
|
|
@@ -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
|
*/
|
|
@@ -70,7 +70,7 @@ export class Embeddings extends APIResource {
|
|
|
70
70
|
* bucket_name: 'Bucket Name',
|
|
71
71
|
* document_chunk_overlap_size: 512,
|
|
72
72
|
* document_chunk_size: 1024,
|
|
73
|
-
* embedding_model: '
|
|
73
|
+
* embedding_model: 'intfloat/multilingual-e5-large',
|
|
74
74
|
* loader: 'default',
|
|
75
75
|
* },
|
|
76
76
|
* );
|
|
@@ -22,10 +22,12 @@ 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,
|
|
28
29
|
type ConversationFlowReq,
|
|
30
|
+
type DelegationSettings,
|
|
29
31
|
type EnabledFeatures,
|
|
30
32
|
type Expression,
|
|
31
33
|
type ExternalLlm,
|
|
@@ -57,6 +59,7 @@ export {
|
|
|
57
59
|
type SpeakNodeReq,
|
|
58
60
|
type StartSpeakingPlan,
|
|
59
61
|
type TelephonySettings,
|
|
62
|
+
type TelnyxAvatarSettings,
|
|
60
63
|
type ToolNode,
|
|
61
64
|
type ToolNodeReq,
|
|
62
65
|
type TranscriptionEndpointingPlan,
|
|
@@ -65,18 +68,22 @@ export {
|
|
|
65
68
|
type TransferTool,
|
|
66
69
|
type VoiceSettings,
|
|
67
70
|
type WebhookTool,
|
|
71
|
+
type WebsocketSettings,
|
|
68
72
|
type WidgetSettings,
|
|
69
73
|
type AssistantDeleteResponse,
|
|
70
74
|
type AssistantChatResponse,
|
|
71
75
|
type AssistantGetTexmlResponse,
|
|
72
76
|
type AssistantSendSMSResponse,
|
|
77
|
+
type AssistantWhatsappResponse,
|
|
73
78
|
type AssistantCreateParams,
|
|
74
79
|
type AssistantImportsParams,
|
|
80
|
+
type AssistantDeleteParams,
|
|
75
81
|
type AssistantRetrieveParams,
|
|
76
82
|
type AssistantUpdateParams,
|
|
77
83
|
type AssistantChatParams,
|
|
78
84
|
type AssistantCloneParams,
|
|
79
85
|
type AssistantSendSMSParams,
|
|
86
|
+
type AssistantWhatsappParams,
|
|
80
87
|
} from './assistants/index';
|
|
81
88
|
export {
|
|
82
89
|
Audio,
|
|
@@ -84,6 +91,17 @@ export {
|
|
|
84
91
|
type AudioTranscribeResponse,
|
|
85
92
|
type AudioTranscribeParams,
|
|
86
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';
|
|
87
105
|
export { Chat, type BucketIDs, type ChatCompletionRequest } from './chat';
|
|
88
106
|
export {
|
|
89
107
|
Clusters,
|
|
@@ -161,7 +179,6 @@ export {
|
|
|
161
179
|
type PayToolParams,
|
|
162
180
|
type SharedToolResponse,
|
|
163
181
|
type UpdateDynamicVariablesToolParams,
|
|
164
|
-
type ToolDeleteResponse,
|
|
165
182
|
type ToolListParams,
|
|
166
183
|
type ToolCreateParams,
|
|
167
184
|
type ToolUpdateParams,
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Memory } from './memory';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
Namespaces,
|
|
6
|
+
type Namespace,
|
|
7
|
+
type NamespaceCreateResponse,
|
|
8
|
+
type NamespaceRetrieveResponse,
|
|
9
|
+
type NamespaceListResponse,
|
|
10
|
+
type NamespaceRetrieveParams,
|
|
11
|
+
type NamespaceCreateParams,
|
|
12
|
+
} from './namespaces/index';
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as NamespacesAPI from './namespaces/namespaces';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Namespace,
|
|
7
|
+
NamespaceCreateParams,
|
|
8
|
+
NamespaceCreateResponse,
|
|
9
|
+
NamespaceListResponse,
|
|
10
|
+
NamespaceRetrieveParams,
|
|
11
|
+
NamespaceRetrieveResponse,
|
|
12
|
+
Namespaces,
|
|
13
|
+
} from './namespaces/namespaces';
|
|
6
14
|
|
|
7
15
|
export class Memory extends APIResource {
|
|
8
16
|
namespaces: NamespacesAPI.Namespaces = new NamespacesAPI.Namespaces(this._client);
|
|
@@ -13,7 +21,11 @@ Memory.Namespaces = Namespaces;
|
|
|
13
21
|
export declare namespace Memory {
|
|
14
22
|
export {
|
|
15
23
|
Namespaces as Namespaces,
|
|
24
|
+
type Namespace as Namespace,
|
|
25
|
+
type NamespaceCreateResponse as NamespaceCreateResponse,
|
|
16
26
|
type NamespaceRetrieveResponse as NamespaceRetrieveResponse,
|
|
27
|
+
type NamespaceListResponse as NamespaceListResponse,
|
|
17
28
|
type NamespaceRetrieveParams as NamespaceRetrieveParams,
|
|
29
|
+
type NamespaceCreateParams as NamespaceCreateParams,
|
|
18
30
|
};
|
|
19
31
|
}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Namespaces,
|
|
5
|
+
type Namespace,
|
|
6
|
+
type NamespaceCreateResponse,
|
|
7
|
+
type NamespaceRetrieveResponse,
|
|
8
|
+
type NamespaceListResponse,
|
|
9
|
+
type NamespaceRetrieveParams,
|
|
10
|
+
type NamespaceCreateParams,
|
|
11
|
+
} from './namespaces';
|
|
4
12
|
export {
|
|
5
13
|
Profiles,
|
|
6
14
|
type PageMeta,
|
|
7
15
|
type ProfileListResponse,
|
|
8
16
|
type ProfileDeleteResponse,
|
|
9
17
|
type ProfileIngestResponse,
|
|
18
|
+
type ProfilePreviewResponse,
|
|
10
19
|
type ProfileRecallResponse,
|
|
11
20
|
type ProfileRememberResponse,
|
|
12
21
|
type ProfileRetrieveSummaryResponse,
|
|
@@ -16,6 +25,7 @@ export {
|
|
|
16
25
|
type ProfileRecallParams,
|
|
17
26
|
type ProfileRememberParams,
|
|
18
27
|
type ProfileRetrieveSummaryParams,
|
|
28
|
+
type ProfilePreviewParams,
|
|
19
29
|
type ProfileListResponsesDefaultFlatPagination,
|
|
20
30
|
} from './profiles/index';
|
|
21
31
|
export { Settings, type NamespaceSettingsResponse, type SettingPatchAllParams } from './settings';
|