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
|
@@ -120,6 +120,31 @@ export declare class Profiles extends APIResource {
|
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
122
|
retrieveSummary(profileID: string, params: ProfileRetrieveSummaryParams, options?: RequestOptions): APIPromise<ProfileRetrieveSummaryResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Try a candidate note on one profile and see how that profile's summary would
|
|
125
|
+
* read under it, without saving the note and without touching the stored summary.
|
|
126
|
+
* Composes the same source query the apply path
|
|
127
|
+
* (`PATCH /ai/memory/namespaces/{namespace}/settings`) would use, so a preview
|
|
128
|
+
* cannot drift from what saving the note would produce. Reads the candidate alone
|
|
129
|
+
* -- the namespace's current instructions and the profile's stored summary are
|
|
130
|
+
* neither read nor replaced. Bounded at 120 seconds: the summary is generated on
|
|
131
|
+
* the spot rather than read from a stored one. Nothing about the request is
|
|
132
|
+
* stored.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const response =
|
|
137
|
+
* await client.ai.memory.namespaces.profiles.preview(
|
|
138
|
+
* 'profile_id',
|
|
139
|
+
* {
|
|
140
|
+
* namespace: 'namespace',
|
|
141
|
+
* instructions:
|
|
142
|
+
* 'Lead with billing status. Prefer plain language over jargon.',
|
|
143
|
+
* },
|
|
144
|
+
* );
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
preview(profileID: string, params: ProfilePreviewParams, options?: RequestOptions): APIPromise<ProfilePreviewResponse>;
|
|
123
148
|
}
|
|
124
149
|
export type ProfileListResponsesDefaultFlatPagination = DefaultFlatPagination<ProfileListResponse>;
|
|
125
150
|
/**
|
|
@@ -188,6 +213,20 @@ export declare namespace ProfileIngestResponse {
|
|
|
188
213
|
source_id: string;
|
|
189
214
|
}
|
|
190
215
|
}
|
|
216
|
+
export interface ProfilePreviewResponse {
|
|
217
|
+
data: ProfilePreviewResponse.Data;
|
|
218
|
+
}
|
|
219
|
+
export declare namespace ProfilePreviewResponse {
|
|
220
|
+
interface Data {
|
|
221
|
+
profile_id: string;
|
|
222
|
+
/**
|
|
223
|
+
* The summary this profile would carry under the candidate note. Null when nothing
|
|
224
|
+
* was generated -- the same signal `GET /summary` uses for a profile with no card
|
|
225
|
+
* yet.
|
|
226
|
+
*/
|
|
227
|
+
text: string | null;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
191
230
|
export interface ProfileRecallResponse {
|
|
192
231
|
data: Array<ProfileRecallResponse.Data>;
|
|
193
232
|
}
|
|
@@ -316,8 +355,22 @@ export interface ProfileRetrieveSummaryParams {
|
|
|
316
355
|
*/
|
|
317
356
|
namespace: string;
|
|
318
357
|
}
|
|
358
|
+
export interface ProfilePreviewParams {
|
|
359
|
+
/**
|
|
360
|
+
* Path param: The namespace. `default` exists for every organization.
|
|
361
|
+
*/
|
|
362
|
+
namespace: string;
|
|
363
|
+
/**
|
|
364
|
+
* Body param: The candidate note to try. `null`, empty, or whitespace-only
|
|
365
|
+
* previews the neutral default -- the summary a profile returns to when
|
|
366
|
+
* instructions are cleared. Capped at 2000 characters, the same cap
|
|
367
|
+
* `PATCH /settings` applies on save; a longer note is refused with `422` before
|
|
368
|
+
* anything is generated.
|
|
369
|
+
*/
|
|
370
|
+
instructions?: string | null;
|
|
371
|
+
}
|
|
319
372
|
export declare namespace Profiles {
|
|
320
|
-
export { type PageMeta as PageMeta, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileIngestResponse as ProfileIngestResponse, type ProfileRecallResponse as ProfileRecallResponse, type ProfileRememberResponse as ProfileRememberResponse, type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse, type ProfileListResponsesDefaultFlatPagination as ProfileListResponsesDefaultFlatPagination, type ProfileListParams as ProfileListParams, type ProfileDeleteParams as ProfileDeleteParams, type ProfileIngestParams as ProfileIngestParams, type ProfileRecallParams as ProfileRecallParams, type ProfileRememberParams as ProfileRememberParams, type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams, };
|
|
373
|
+
export { type PageMeta as PageMeta, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileIngestResponse as ProfileIngestResponse, type ProfilePreviewResponse as ProfilePreviewResponse, type ProfileRecallResponse as ProfileRecallResponse, type ProfileRememberResponse as ProfileRememberResponse, type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse, type ProfileListResponsesDefaultFlatPagination as ProfileListResponsesDefaultFlatPagination, type ProfileListParams as ProfileListParams, type ProfileDeleteParams as ProfileDeleteParams, type ProfileIngestParams as ProfileIngestParams, type ProfileRecallParams as ProfileRecallParams, type ProfileRememberParams as ProfileRememberParams, type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams, type ProfilePreviewParams as ProfilePreviewParams, };
|
|
321
374
|
export { Memories as Memories, type MemoryRetrieveResponse as MemoryRetrieveResponse, type MemoryListResponse as MemoryListResponse, type MemoryListResponsesDefaultFlatPagination as MemoryListResponsesDefaultFlatPagination, type MemoryListParams as MemoryListParams, type MemoryRetrieveParams as MemoryRetrieveParams, };
|
|
322
375
|
export { Sources as Sources, type SourceRetrieveResponse as SourceRetrieveResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceListParams as SourceListParams, type SourceDeleteParams as SourceDeleteParams, type SourceRetrieveParams as SourceRetrieveParams, };
|
|
323
376
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,wCAAwC,EACxC,oBAAoB,EACpB,sBAAsB,EACvB,uBAAmB;AACpB,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,EACR,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,2CAAuC;AACxC,OAAO,EAAE,cAAc,EAAE,oDAAgD;AAGzE,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yCAAyC,EAAE,mBAAmB,CAAC;IAQ9E;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAKpC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IASpC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAQpC;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAQtC;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,wCAAwC,EACxC,oBAAoB,EACpB,sBAAsB,EACvB,uBAAmB;AACpB,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,EACR,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,2CAAuC;AACxC,OAAO,EAAE,cAAc,EAAE,oDAAgD;AAGzE,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;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AI,4BAA4B,EACjE,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -120,6 +120,31 @@ export declare class Profiles extends APIResource {
|
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
122
|
retrieveSummary(profileID: string, params: ProfileRetrieveSummaryParams, options?: RequestOptions): APIPromise<ProfileRetrieveSummaryResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Try a candidate note on one profile and see how that profile's summary would
|
|
125
|
+
* read under it, without saving the note and without touching the stored summary.
|
|
126
|
+
* Composes the same source query the apply path
|
|
127
|
+
* (`PATCH /ai/memory/namespaces/{namespace}/settings`) would use, so a preview
|
|
128
|
+
* cannot drift from what saving the note would produce. Reads the candidate alone
|
|
129
|
+
* -- the namespace's current instructions and the profile's stored summary are
|
|
130
|
+
* neither read nor replaced. Bounded at 120 seconds: the summary is generated on
|
|
131
|
+
* the spot rather than read from a stored one. Nothing about the request is
|
|
132
|
+
* stored.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const response =
|
|
137
|
+
* await client.ai.memory.namespaces.profiles.preview(
|
|
138
|
+
* 'profile_id',
|
|
139
|
+
* {
|
|
140
|
+
* namespace: 'namespace',
|
|
141
|
+
* instructions:
|
|
142
|
+
* 'Lead with billing status. Prefer plain language over jargon.',
|
|
143
|
+
* },
|
|
144
|
+
* );
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
preview(profileID: string, params: ProfilePreviewParams, options?: RequestOptions): APIPromise<ProfilePreviewResponse>;
|
|
123
148
|
}
|
|
124
149
|
export type ProfileListResponsesDefaultFlatPagination = DefaultFlatPagination<ProfileListResponse>;
|
|
125
150
|
/**
|
|
@@ -188,6 +213,20 @@ export declare namespace ProfileIngestResponse {
|
|
|
188
213
|
source_id: string;
|
|
189
214
|
}
|
|
190
215
|
}
|
|
216
|
+
export interface ProfilePreviewResponse {
|
|
217
|
+
data: ProfilePreviewResponse.Data;
|
|
218
|
+
}
|
|
219
|
+
export declare namespace ProfilePreviewResponse {
|
|
220
|
+
interface Data {
|
|
221
|
+
profile_id: string;
|
|
222
|
+
/**
|
|
223
|
+
* The summary this profile would carry under the candidate note. Null when nothing
|
|
224
|
+
* was generated -- the same signal `GET /summary` uses for a profile with no card
|
|
225
|
+
* yet.
|
|
226
|
+
*/
|
|
227
|
+
text: string | null;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
191
230
|
export interface ProfileRecallResponse {
|
|
192
231
|
data: Array<ProfileRecallResponse.Data>;
|
|
193
232
|
}
|
|
@@ -316,8 +355,22 @@ export interface ProfileRetrieveSummaryParams {
|
|
|
316
355
|
*/
|
|
317
356
|
namespace: string;
|
|
318
357
|
}
|
|
358
|
+
export interface ProfilePreviewParams {
|
|
359
|
+
/**
|
|
360
|
+
* Path param: The namespace. `default` exists for every organization.
|
|
361
|
+
*/
|
|
362
|
+
namespace: string;
|
|
363
|
+
/**
|
|
364
|
+
* Body param: The candidate note to try. `null`, empty, or whitespace-only
|
|
365
|
+
* previews the neutral default -- the summary a profile returns to when
|
|
366
|
+
* instructions are cleared. Capped at 2000 characters, the same cap
|
|
367
|
+
* `PATCH /settings` applies on save; a longer note is refused with `422` before
|
|
368
|
+
* anything is generated.
|
|
369
|
+
*/
|
|
370
|
+
instructions?: string | null;
|
|
371
|
+
}
|
|
319
372
|
export declare namespace Profiles {
|
|
320
|
-
export { type PageMeta as PageMeta, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileIngestResponse as ProfileIngestResponse, type ProfileRecallResponse as ProfileRecallResponse, type ProfileRememberResponse as ProfileRememberResponse, type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse, type ProfileListResponsesDefaultFlatPagination as ProfileListResponsesDefaultFlatPagination, type ProfileListParams as ProfileListParams, type ProfileDeleteParams as ProfileDeleteParams, type ProfileIngestParams as ProfileIngestParams, type ProfileRecallParams as ProfileRecallParams, type ProfileRememberParams as ProfileRememberParams, type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams, };
|
|
373
|
+
export { type PageMeta as PageMeta, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileIngestResponse as ProfileIngestResponse, type ProfilePreviewResponse as ProfilePreviewResponse, type ProfileRecallResponse as ProfileRecallResponse, type ProfileRememberResponse as ProfileRememberResponse, type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse, type ProfileListResponsesDefaultFlatPagination as ProfileListResponsesDefaultFlatPagination, type ProfileListParams as ProfileListParams, type ProfileDeleteParams as ProfileDeleteParams, type ProfileIngestParams as ProfileIngestParams, type ProfileRecallParams as ProfileRecallParams, type ProfileRememberParams as ProfileRememberParams, type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams, type ProfilePreviewParams as ProfilePreviewParams, };
|
|
321
374
|
export { Memories as Memories, type MemoryRetrieveResponse as MemoryRetrieveResponse, type MemoryListResponse as MemoryListResponse, type MemoryListResponsesDefaultFlatPagination as MemoryListResponsesDefaultFlatPagination, type MemoryListParams as MemoryListParams, type MemoryRetrieveParams as MemoryRetrieveParams, };
|
|
322
375
|
export { Sources as Sources, type SourceRetrieveResponse as SourceRetrieveResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceListParams as SourceListParams, type SourceDeleteParams as SourceDeleteParams, type SourceRetrieveParams as SourceRetrieveParams, };
|
|
323
376
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,wCAAwC,EACxC,oBAAoB,EACpB,sBAAsB,EACvB,sBAAmB;AACpB,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,EACR,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAC7D,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,0CAAuC;AACxC,OAAO,EAAE,cAAc,EAAE,mDAAgD;AAGzE,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yCAAyC,EAAE,mBAAmB,CAAC;IAQ9E;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAKpC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IASpC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAQpC;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAQtC;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,wCAAwC,EACxC,oBAAoB,EACpB,sBAAsB,EACvB,sBAAmB;AACpB,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,EACR,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAC7D,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,0CAAuC;AACxC,OAAO,EAAE,cAAc,EAAE,mDAAgD;AAGzE,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0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/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -154,6 +154,37 @@ class Profiles extends resource_1.APIResource {
|
|
|
154
154
|
const { namespace } = params;
|
|
155
155
|
return this._client.get((0, path_1.path) `/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary`, options);
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Try a candidate note on one profile and see how that profile's summary would
|
|
159
|
+
* read under it, without saving the note and without touching the stored summary.
|
|
160
|
+
* Composes the same source query the apply path
|
|
161
|
+
* (`PATCH /ai/memory/namespaces/{namespace}/settings`) would use, so a preview
|
|
162
|
+
* cannot drift from what saving the note would produce. Reads the candidate alone
|
|
163
|
+
* -- the namespace's current instructions and the profile's stored summary are
|
|
164
|
+
* neither read nor replaced. Bounded at 120 seconds: the summary is generated on
|
|
165
|
+
* the spot rather than read from a stored one. Nothing about the request is
|
|
166
|
+
* stored.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```ts
|
|
170
|
+
* const response =
|
|
171
|
+
* await client.ai.memory.namespaces.profiles.preview(
|
|
172
|
+
* 'profile_id',
|
|
173
|
+
* {
|
|
174
|
+
* namespace: 'namespace',
|
|
175
|
+
* instructions:
|
|
176
|
+
* 'Lead with billing status. Prefer plain language over jargon.',
|
|
177
|
+
* },
|
|
178
|
+
* );
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
preview(profileID, params, options) {
|
|
182
|
+
const { namespace, ...body } = params;
|
|
183
|
+
return this._client.post((0, path_1.path) `/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary/preview`, {
|
|
184
|
+
body,
|
|
185
|
+
...options,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
157
188
|
}
|
|
158
189
|
exports.Profiles = Profiles;
|
|
159
190
|
Profiles.Memories = memories_1.Memories;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,8DAA2D;AAC3D,mEAA0C;AAC1C,4CAOoB;AACpB,iEAAwC;AACxC,0CAOmB;AAEnB,kEAIwC;AAExC,gEAA0D;AAE1D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,8DAA2D;AAC3D,mEAA0C;AAC1C,4CAOoB;AACpB,iEAAwC;AACxC,0CAOmB;AAEnB,kEAIwC;AAExC,gEAA0D;AAE1D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACx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SAAS,EAAE;YAC9F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CACN,SAAiB,EACjB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,aAAa,SAAS,WAAW,EAAE;YAChG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAAe,CACb,SAAiB,EACjB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,aAAa,SAAS,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CACL,SAAiB,EACjB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,SAAS,aAAa,SAAS,kBAAkB,EAAE;YACvG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAnND,4BAmNC;AA+QD,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -150,6 +150,37 @@ export class Profiles extends APIResource {
|
|
|
150
150
|
const { namespace } = params;
|
|
151
151
|
return this._client.get(path `/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary`, options);
|
|
152
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Try a candidate note on one profile and see how that profile's summary would
|
|
155
|
+
* read under it, without saving the note and without touching the stored summary.
|
|
156
|
+
* Composes the same source query the apply path
|
|
157
|
+
* (`PATCH /ai/memory/namespaces/{namespace}/settings`) would use, so a preview
|
|
158
|
+
* cannot drift from what saving the note would produce. Reads the candidate alone
|
|
159
|
+
* -- the namespace's current instructions and the profile's stored summary are
|
|
160
|
+
* neither read nor replaced. Bounded at 120 seconds: the summary is generated on
|
|
161
|
+
* the spot rather than read from a stored one. Nothing about the request is
|
|
162
|
+
* stored.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* const response =
|
|
167
|
+
* await client.ai.memory.namespaces.profiles.preview(
|
|
168
|
+
* 'profile_id',
|
|
169
|
+
* {
|
|
170
|
+
* namespace: 'namespace',
|
|
171
|
+
* instructions:
|
|
172
|
+
* 'Lead with billing status. Prefer plain language over jargon.',
|
|
173
|
+
* },
|
|
174
|
+
* );
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
preview(profileID, params, options) {
|
|
178
|
+
const { namespace, ...body } = params;
|
|
179
|
+
return this._client.post(path `/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary/preview`, {
|
|
180
|
+
body,
|
|
181
|
+
...options,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
153
184
|
}
|
|
154
185
|
Profiles.Memories = Memories;
|
|
155
186
|
Profiles.Sources = Sources;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.mjs","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,QAAQ,GAMT,uBAAmB;AACpB,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAML,OAAO,GACR,s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AAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,SAAS,aAAa,SAAS,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CACL,SAAiB,EACjB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,yBAAyB,SAAS,aAAa,SAAS,kBAAkB,EAAE;YACvG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA+QD,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -80,12 +80,26 @@ export interface ChatCreateCompletionParams {
|
|
|
80
80
|
*/
|
|
81
81
|
logprobs?: boolean;
|
|
82
82
|
/**
|
|
83
|
-
* Maximum number of completion (output) tokens
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
83
|
+
* Maximum number of completion (output) tokens, including reasoning and answer
|
|
84
|
+
* tokens combined. An omitted or null limit defaults to 8192 unless the model is
|
|
85
|
+
* excluded from that default; excluded models leave the limit to the serving
|
|
86
|
+
* engine. Explicit values and applied defaults are clamped to the model's
|
|
87
|
+
* max_completion_tokens metadata when that ceiling is set (see GET
|
|
88
|
+
* /v2/ai/openai/models). An omitted limit on an excluded model remains unset even
|
|
89
|
+
* when metadata declares a ceiling. Input and output together must fit the model's
|
|
90
|
+
* context window. Set an explicit limit when a bounded generation budget is
|
|
91
|
+
* required. For current Telnyx-hosted models, omitted or null limits default to
|
|
92
|
+
* 8192 for `zai-org/GLM-5.3`, `zai-org/GLM-5.3-Flash` and
|
|
93
|
+
* `deepseek-ai/DeepSeek-V4.1-Flash`. The hosted exclusions are
|
|
94
|
+
* `moonshotai/Kimi-K3`, `moonshotai/Kimi-K2.6`, `moonshotai/Kimi-K2.5`,
|
|
95
|
+
* `zai-org/GLM-5.2`, `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M3-MXFP8`,
|
|
96
|
+
* `MiniMaxAI/MiniMax-M2.7`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3-235B-A22B`,
|
|
97
|
+
* `deepseek-ai/DeepSeek-V4-Flash-0731`, `meta-llama/Llama-3.3-70B-Instruct`,
|
|
98
|
+
* `meta-llama/Meta-Llama-3.1-70B-Instruct`,
|
|
99
|
+
* `meta-llama/Meta-Llama-3.1-8B-Instruct` and `google/gemma-2b-it`. Legacy
|
|
100
|
+
* external and fine-tuned model IDs can also bypass the default; model discovery
|
|
101
|
+
* reports completion ceilings, not whether this default applies. Set an explicit
|
|
102
|
+
* limit for predictable behavior across models.
|
|
89
103
|
*/
|
|
90
104
|
max_tokens?: number | null;
|
|
91
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,mBAAe;AACxC,OAAO,KAAK,OAAO,oBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EA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BAA6B;QAC5C;;;;;WAKG;QACH,WAAW,EAAE,6BAA6B,CAAC,UAAU,CAAC;QAEtD,IAAI,EAAE,aAAa,CAAC;KACrB;IAED,UAAiB,6BAA6B,CAAC;QAC7C;;;;;WAKG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;;eAGG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;;;eAIG;YACH,MAAM,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;YAEpC;;;;eAIG;YACH,MAAM,CAAC,EAAE,OAAO,CAAC;SAClB;KACF;IAED,UAAiB,QAAQ;QACvB,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC;QAE3C,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -80,12 +80,26 @@ export interface ChatCreateCompletionParams {
|
|
|
80
80
|
*/
|
|
81
81
|
logprobs?: boolean;
|
|
82
82
|
/**
|
|
83
|
-
* Maximum number of completion (output) tokens
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
83
|
+
* Maximum number of completion (output) tokens, including reasoning and answer
|
|
84
|
+
* tokens combined. An omitted or null limit defaults to 8192 unless the model is
|
|
85
|
+
* excluded from that default; excluded models leave the limit to the serving
|
|
86
|
+
* engine. Explicit values and applied defaults are clamped to the model's
|
|
87
|
+
* max_completion_tokens metadata when that ceiling is set (see GET
|
|
88
|
+
* /v2/ai/openai/models). An omitted limit on an excluded model remains unset even
|
|
89
|
+
* when metadata declares a ceiling. Input and output together must fit the model's
|
|
90
|
+
* context window. Set an explicit limit when a bounded generation budget is
|
|
91
|
+
* required. For current Telnyx-hosted models, omitted or null limits default to
|
|
92
|
+
* 8192 for `zai-org/GLM-5.3`, `zai-org/GLM-5.3-Flash` and
|
|
93
|
+
* `deepseek-ai/DeepSeek-V4.1-Flash`. The hosted exclusions are
|
|
94
|
+
* `moonshotai/Kimi-K3`, `moonshotai/Kimi-K2.6`, `moonshotai/Kimi-K2.5`,
|
|
95
|
+
* `zai-org/GLM-5.2`, `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M3-MXFP8`,
|
|
96
|
+
* `MiniMaxAI/MiniMax-M2.7`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3-235B-A22B`,
|
|
97
|
+
* `deepseek-ai/DeepSeek-V4-Flash-0731`, `meta-llama/Llama-3.3-70B-Instruct`,
|
|
98
|
+
* `meta-llama/Meta-Llama-3.1-70B-Instruct`,
|
|
99
|
+
* `meta-llama/Meta-Llama-3.1-8B-Instruct` and `google/gemma-2b-it`. Legacy
|
|
100
|
+
* external and fine-tuned model IDs can also bypass the default; model discovery
|
|
101
|
+
* reports completion ceilings, not whether this default applies. Set an explicit
|
|
102
|
+
* limit for predictable behavior across models.
|
|
89
103
|
*/
|
|
90
104
|
max_tokens?: number | null;
|
|
91
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,kBAAe;AACxC,OAAO,KAAK,OAAO,mBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;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AEnB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;KACF;IAED;;OAEG;IACH,UAAiB,kBAAkB;QACjC,IAAI,EAAE,MAAM,CAAC;KACd;IAED;;OAEG;IACH,UAAiB,wBAAwB;QACvC,IAAI,EAAE,aAAa,CAAC;KACrB;IAED;;;OAGG;IACH,UAAiB,6BAA6B;QAC5C;;;;;WAKG;QACH,WAAW,EAAE,6BAA6B,CAAC,UAAU,CAAC;QAEtD,IAAI,EAAE,aAAa,CAAC;KACrB;IAED,UAAiB,6BAA6B,CAAC;QAC7C;;;;;WAKG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;;eAGG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;;;eAIG;YACH,MAAM,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;YAEpC;;;;eAIG;YACH,MAAM,CAAC,EAAE,OAAO,CAAC;SAClB;KACF;IAED,UAAiB,QAAQ;QACvB,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC;QAE3C,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/ai/tools.d.mts
CHANGED
|
@@ -69,18 +69,34 @@ export interface PayToolParams {
|
|
|
69
69
|
* existing pay connector for this organization.
|
|
70
70
|
*/
|
|
71
71
|
connector_name: string;
|
|
72
|
+
/**
|
|
73
|
+
* Custom key/value parameters forwarded to the pay connector as `parameters` in
|
|
74
|
+
* the processor request. String values may use `{{dynamic_variable}}` templating,
|
|
75
|
+
* resolved per call.
|
|
76
|
+
*/
|
|
77
|
+
connector_parameters?: {
|
|
78
|
+
[key: string]: unknown;
|
|
79
|
+
};
|
|
72
80
|
/**
|
|
73
81
|
* Default currency for payments processed by this tool.
|
|
74
82
|
*/
|
|
75
83
|
currency?: string;
|
|
76
84
|
/**
|
|
77
|
-
*
|
|
85
|
+
* Description of the pay tool shown to the assistant so it knows when to call the
|
|
86
|
+
* tool. Not sent to the payment connector — the per-call `description` argument
|
|
87
|
+
* the assistant passes is what reaches the processor.
|
|
78
88
|
*/
|
|
79
89
|
description?: string | null;
|
|
80
90
|
/**
|
|
81
91
|
* Default payment method for payments processed by this tool.
|
|
82
92
|
*/
|
|
83
93
|
payment_method?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Restricts accepted card numbers to the listed card types. When the caller enters
|
|
96
|
+
* a card number that does not match one of the listed types, Pay treats the input
|
|
97
|
+
* as invalid and re-prompts for the card number.
|
|
98
|
+
*/
|
|
99
|
+
valid_card_types?: Array<'visa' | 'mastercard' | 'amex' | 'maestro' | 'discover' | 'optima' | 'jcb' | 'diners-club' | 'enroute'>;
|
|
84
100
|
}
|
|
85
101
|
export interface SharedToolResponse {
|
|
86
102
|
id: string;
|
|
@@ -132,6 +148,13 @@ export declare namespace UpdateDynamicVariablesToolParams {
|
|
|
132
148
|
type?: string;
|
|
133
149
|
}
|
|
134
150
|
}
|
|
151
|
+
export interface VisionToolParams {
|
|
152
|
+
/**
|
|
153
|
+
* Frames received longer ago than this many seconds are not shown to the
|
|
154
|
+
* assistant, so it never describes a frozen or disconnected camera as live.
|
|
155
|
+
*/
|
|
156
|
+
max_frame_age_secs?: number;
|
|
157
|
+
}
|
|
135
158
|
export interface ToolListParams extends DefaultFlatPaginationParams {
|
|
136
159
|
/**
|
|
137
160
|
* Filter results by filter name.
|
|
@@ -193,6 +216,10 @@ export interface ToolCreateParams {
|
|
|
193
216
|
* Body param: Configuration for an update_dynamic_variables tool.
|
|
194
217
|
*/
|
|
195
218
|
update_dynamic_variables?: UpdateDynamicVariablesToolParams;
|
|
219
|
+
/**
|
|
220
|
+
* Body param
|
|
221
|
+
*/
|
|
222
|
+
vision?: VisionToolParams;
|
|
196
223
|
/**
|
|
197
224
|
* Body param
|
|
198
225
|
*/
|
|
@@ -236,12 +263,13 @@ export interface ToolUpdateParams {
|
|
|
236
263
|
* Configuration for an update_dynamic_variables tool.
|
|
237
264
|
*/
|
|
238
265
|
update_dynamic_variables?: UpdateDynamicVariablesToolParams;
|
|
266
|
+
vision?: VisionToolParams;
|
|
239
267
|
webhook?: {
|
|
240
268
|
[key: string]: unknown;
|
|
241
269
|
};
|
|
242
270
|
[k: string]: unknown;
|
|
243
271
|
}
|
|
244
272
|
export declare namespace Tools {
|
|
245
|
-
export { type PayToolParams as PayToolParams, type SharedToolResponse as SharedToolResponse, type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams, type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination, type ToolListParams as ToolListParams, type ToolCreateParams as ToolCreateParams, type ToolUpdateParams as ToolUpdateParams, };
|
|
273
|
+
export { type PayToolParams as PayToolParams, type SharedToolResponse as SharedToolResponse, type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams, type VisionToolParams as VisionToolParams, type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination, type ToolListParams as ToolListParams, type ToolCreateParams as ToolCreateParams, type ToolUpdateParams as ToolUpdateParams, };
|
|
246
274
|
}
|
|
247
275
|
//# sourceMappingURL=tools.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../src/resources/ai/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAA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;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEvC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,wBAAwB,CAAC,EAAE,gCAAgC,CAAC;IAE5D,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAErC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/ai/tools.d.ts
CHANGED
|
@@ -69,18 +69,34 @@ export interface PayToolParams {
|
|
|
69
69
|
* existing pay connector for this organization.
|
|
70
70
|
*/
|
|
71
71
|
connector_name: string;
|
|
72
|
+
/**
|
|
73
|
+
* Custom key/value parameters forwarded to the pay connector as `parameters` in
|
|
74
|
+
* the processor request. String values may use `{{dynamic_variable}}` templating,
|
|
75
|
+
* resolved per call.
|
|
76
|
+
*/
|
|
77
|
+
connector_parameters?: {
|
|
78
|
+
[key: string]: unknown;
|
|
79
|
+
};
|
|
72
80
|
/**
|
|
73
81
|
* Default currency for payments processed by this tool.
|
|
74
82
|
*/
|
|
75
83
|
currency?: string;
|
|
76
84
|
/**
|
|
77
|
-
*
|
|
85
|
+
* Description of the pay tool shown to the assistant so it knows when to call the
|
|
86
|
+
* tool. Not sent to the payment connector — the per-call `description` argument
|
|
87
|
+
* the assistant passes is what reaches the processor.
|
|
78
88
|
*/
|
|
79
89
|
description?: string | null;
|
|
80
90
|
/**
|
|
81
91
|
* Default payment method for payments processed by this tool.
|
|
82
92
|
*/
|
|
83
93
|
payment_method?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Restricts accepted card numbers to the listed card types. When the caller enters
|
|
96
|
+
* a card number that does not match one of the listed types, Pay treats the input
|
|
97
|
+
* as invalid and re-prompts for the card number.
|
|
98
|
+
*/
|
|
99
|
+
valid_card_types?: Array<'visa' | 'mastercard' | 'amex' | 'maestro' | 'discover' | 'optima' | 'jcb' | 'diners-club' | 'enroute'>;
|
|
84
100
|
}
|
|
85
101
|
export interface SharedToolResponse {
|
|
86
102
|
id: string;
|
|
@@ -132,6 +148,13 @@ export declare namespace UpdateDynamicVariablesToolParams {
|
|
|
132
148
|
type?: string;
|
|
133
149
|
}
|
|
134
150
|
}
|
|
151
|
+
export interface VisionToolParams {
|
|
152
|
+
/**
|
|
153
|
+
* Frames received longer ago than this many seconds are not shown to the
|
|
154
|
+
* assistant, so it never describes a frozen or disconnected camera as live.
|
|
155
|
+
*/
|
|
156
|
+
max_frame_age_secs?: number;
|
|
157
|
+
}
|
|
135
158
|
export interface ToolListParams extends DefaultFlatPaginationParams {
|
|
136
159
|
/**
|
|
137
160
|
* Filter results by filter name.
|
|
@@ -193,6 +216,10 @@ export interface ToolCreateParams {
|
|
|
193
216
|
* Body param: Configuration for an update_dynamic_variables tool.
|
|
194
217
|
*/
|
|
195
218
|
update_dynamic_variables?: UpdateDynamicVariablesToolParams;
|
|
219
|
+
/**
|
|
220
|
+
* Body param
|
|
221
|
+
*/
|
|
222
|
+
vision?: VisionToolParams;
|
|
196
223
|
/**
|
|
197
224
|
* Body param
|
|
198
225
|
*/
|
|
@@ -236,12 +263,13 @@ export interface ToolUpdateParams {
|
|
|
236
263
|
* Configuration for an update_dynamic_variables tool.
|
|
237
264
|
*/
|
|
238
265
|
update_dynamic_variables?: UpdateDynamicVariablesToolParams;
|
|
266
|
+
vision?: VisionToolParams;
|
|
239
267
|
webhook?: {
|
|
240
268
|
[key: string]: unknown;
|
|
241
269
|
};
|
|
242
270
|
[k: string]: unknown;
|
|
243
271
|
}
|
|
244
272
|
export declare namespace Tools {
|
|
245
|
-
export { type PayToolParams as PayToolParams, type SharedToolResponse as SharedToolResponse, type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams, type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination, type ToolListParams as ToolListParams, type ToolCreateParams as ToolCreateParams, type ToolUpdateParams as ToolUpdateParams, };
|
|
273
|
+
export { type PayToolParams as PayToolParams, type SharedToolResponse as SharedToolResponse, type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams, type VisionToolParams as VisionToolParams, type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination, type ToolListParams as ToolListParams, type ToolCreateParams as ToolCreateParams, type ToolUpdateParams as ToolUpdateParams, };
|
|
246
274
|
}
|
|
247
275
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/ai/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAE7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAO5E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,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