telnyx 7.22.0 → 7.24.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 +42 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +42 -12
- package/client.d.ts.map +1 -1
- package/client.js +30 -0
- package/client.js.map +1 -1
- package/client.mjs +30 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +12 -4
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +12 -4
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +8 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +9 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +409 -57
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +409 -57
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +36 -14
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +36 -14
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/audio.d.mts +78 -43
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +78 -43
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/audio.js.map +1 -1
- package/resources/ai/audio.mjs.map +1 -1
- package/resources/ai/chat.d.mts +2 -10
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +2 -10
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/chat.js.map +1 -1
- package/resources/ai/chat.mjs.map +1 -1
- package/resources/ai/collections/collections.d.mts +3 -3
- package/resources/ai/collections/collections.d.mts.map +1 -1
- package/resources/ai/collections/collections.d.ts +3 -3
- package/resources/ai/collections/collections.d.ts.map +1 -1
- package/resources/ai/collections/collections.js.map +1 -1
- package/resources/ai/collections/collections.mjs.map +1 -1
- package/resources/ai/collections/index.d.mts +1 -1
- package/resources/ai/collections/index.d.mts.map +1 -1
- package/resources/ai/collections/index.d.ts +1 -1
- package/resources/ai/collections/index.d.ts.map +1 -1
- package/resources/ai/collections/index.js.map +1 -1
- package/resources/ai/collections/index.mjs.map +1 -1
- package/resources/ai/collections/sources.d.mts +32 -5
- package/resources/ai/collections/sources.d.mts.map +1 -1
- package/resources/ai/collections/sources.d.ts +32 -5
- package/resources/ai/collections/sources.d.ts.map +1 -1
- package/resources/ai/collections/sources.js.map +1 -1
- package/resources/ai/collections/sources.mjs.map +1 -1
- package/resources/ai/index.d.mts +4 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +4 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +9 -5
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +3 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/index.d.mts +3 -0
- package/resources/ai/memory/index.d.mts.map +1 -0
- package/resources/ai/memory/index.d.ts +3 -0
- package/resources/ai/memory/index.d.ts.map +1 -0
- package/resources/ai/memory/index.js +9 -0
- package/resources/ai/memory/index.js.map +1 -0
- package/resources/ai/memory/index.mjs +4 -0
- package/resources/ai/memory/index.mjs.map +1 -0
- package/resources/ai/memory/memory.d.mts +10 -0
- package/resources/ai/memory/memory.d.mts.map +1 -0
- package/resources/ai/memory/memory.d.ts +10 -0
- package/resources/ai/memory/memory.d.ts.map +1 -0
- package/resources/ai/memory/memory.js +17 -0
- package/resources/ai/memory/memory.js.map +1 -0
- package/resources/ai/memory/memory.mjs +12 -0
- package/resources/ai/memory/memory.mjs.map +1 -0
- package/resources/ai/memory/namespaces/index.d.mts +4 -0
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/index.d.ts +4 -0
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/index.js +11 -0
- package/resources/ai/memory/namespaces/index.js.map +1 -0
- package/resources/ai/memory/namespaces/index.mjs +5 -0
- package/resources/ai/memory/namespaces/index.mjs.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.d.mts +54 -0
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.d.ts +54 -0
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.js +43 -0
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.mjs +38 -0
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.d.mts +4 -0
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.d.ts +4 -0
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.js +11 -0
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.mjs +5 -0
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.mts +118 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.ts +118 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.js +63 -0
- package/resources/ai/memory/namespaces/profiles/memories.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.mjs +59 -0
- package/resources/ai/memory/namespaces/profiles/memories.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +324 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +324 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js +161 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +156 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.mts +163 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.ts +163 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.js +80 -0
- package/resources/ai/memory/namespaces/profiles/sources.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.mjs +76 -0
- package/resources/ai/memory/namespaces/profiles/sources.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles.d.mts +2 -0
- package/resources/ai/memory/namespaces/profiles.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles.d.ts +2 -0
- package/resources/ai/memory/namespaces/profiles.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles.js +6 -0
- package/resources/ai/memory/namespaces/profiles.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles.mjs +3 -0
- package/resources/ai/memory/namespaces/profiles.mjs.map +1 -0
- package/resources/ai/memory/namespaces/settings.d.mts +108 -0
- package/resources/ai/memory/namespaces/settings.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/settings.d.ts +108 -0
- package/resources/ai/memory/namespaces/settings.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/settings.js +54 -0
- package/resources/ai/memory/namespaces/settings.js.map +1 -0
- package/resources/ai/memory/namespaces/settings.mjs +50 -0
- package/resources/ai/memory/namespaces/settings.mjs.map +1 -0
- package/resources/ai/memory/namespaces.d.mts +2 -0
- package/resources/ai/memory/namespaces.d.mts.map +1 -0
- package/resources/ai/memory/namespaces.d.ts +2 -0
- package/resources/ai/memory/namespaces.d.ts.map +1 -0
- package/resources/ai/memory/namespaces.js +6 -0
- package/resources/ai/memory/namespaces.js.map +1 -0
- package/resources/ai/memory/namespaces.mjs +3 -0
- package/resources/ai/memory/namespaces.mjs.map +1 -0
- package/resources/ai/memory.d.mts +2 -0
- package/resources/ai/memory.d.mts.map +1 -0
- package/resources/ai/memory.d.ts +2 -0
- package/resources/ai/memory.d.ts.map +1 -0
- package/resources/ai/memory.js +6 -0
- package/resources/ai/memory.js.map +1 -0
- package/resources/ai/memory.mjs +3 -0
- package/resources/ai/memory.mjs.map +1 -0
- package/resources/ai/openai/chat.d.mts +10 -11
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +10 -11
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/openai/chat.js.map +1 -1
- package/resources/ai/openai/chat.mjs.map +1 -1
- package/resources/ai/openai/index.d.mts +1 -1
- package/resources/ai/openai/index.d.mts.map +1 -1
- package/resources/ai/openai/index.d.ts +1 -1
- package/resources/ai/openai/index.d.ts.map +1 -1
- package/resources/ai/openai/index.js.map +1 -1
- package/resources/ai/openai/index.mjs +1 -1
- package/resources/ai/openai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +2 -2
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +2 -2
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/ai/typesafe/index.d.mts +3 -0
- package/resources/ai/typesafe/index.d.mts.map +1 -0
- package/resources/ai/typesafe/index.d.ts +3 -0
- package/resources/ai/typesafe/index.d.ts.map +1 -0
- package/resources/ai/typesafe/index.js +9 -0
- package/resources/ai/typesafe/index.js.map +1 -0
- package/resources/ai/typesafe/index.mjs +4 -0
- package/resources/ai/typesafe/index.mjs.map +1 -0
- package/resources/ai/typesafe/typesafe.d.mts +10 -0
- package/resources/ai/typesafe/typesafe.d.mts.map +1 -0
- package/resources/ai/typesafe/typesafe.d.ts +10 -0
- package/resources/ai/typesafe/typesafe.d.ts.map +1 -0
- package/resources/ai/typesafe/typesafe.js +17 -0
- package/resources/ai/typesafe/typesafe.js.map +1 -0
- package/resources/ai/typesafe/typesafe.mjs +12 -0
- package/resources/ai/typesafe/typesafe.mjs.map +1 -0
- package/resources/ai/typesafe/v1.d.mts +285 -0
- package/resources/ai/typesafe/v1.d.mts.map +1 -0
- package/resources/ai/typesafe/v1.d.ts +285 -0
- package/resources/ai/typesafe/v1.d.ts.map +1 -0
- package/resources/ai/typesafe/v1.js +72 -0
- package/resources/ai/typesafe/v1.js.map +1 -0
- package/resources/ai/typesafe/v1.mjs +68 -0
- package/resources/ai/typesafe/v1.mjs.map +1 -0
- package/resources/ai/typesafe.d.mts +2 -0
- package/resources/ai/typesafe.d.mts.map +1 -0
- package/resources/ai/typesafe.d.ts +2 -0
- package/resources/ai/typesafe.d.ts.map +1 -0
- package/resources/ai/typesafe.js +6 -0
- package/resources/ai/typesafe.js.map +1 -0
- package/resources/ai/typesafe.mjs +3 -0
- package/resources/ai/typesafe.mjs.map +1 -0
- package/resources/bot-challenge.d.mts +80 -0
- package/resources/bot-challenge.d.mts.map +1 -0
- package/resources/bot-challenge.d.ts +80 -0
- package/resources/bot-challenge.d.ts.map +1 -0
- package/resources/bot-challenge.js +35 -0
- package/resources/bot-challenge.js.map +1 -0
- package/resources/bot-challenge.mjs +31 -0
- package/resources/bot-challenge.mjs.map +1 -0
- package/resources/bot-sessions.d.mts +49 -0
- package/resources/bot-sessions.d.mts.map +1 -0
- package/resources/bot-sessions.d.ts +49 -0
- package/resources/bot-sessions.d.ts.map +1 -0
- package/resources/bot-sessions.js +28 -0
- package/resources/bot-sessions.js.map +1 -0
- package/resources/bot-sessions.mjs +24 -0
- package/resources/bot-sessions.mjs.map +1 -0
- package/resources/bot-signup.d.mts +114 -0
- package/resources/bot-signup.d.mts.map +1 -0
- package/resources/bot-signup.d.ts +114 -0
- package/resources/bot-signup.d.ts.map +1 -0
- package/resources/bot-signup.js +63 -0
- package/resources/bot-signup.js.map +1 -0
- package/resources/bot-signup.mjs +59 -0
- package/resources/bot-signup.mjs.map +1 -0
- package/resources/calls/actions.d.mts +100 -16
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +100 -16
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +55 -9
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +55 -9
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- 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/compute/compute.d.mts +2 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +2 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +2 -2
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +2 -2
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/funcs/export.d.mts +121 -0
- package/resources/compute/funcs/export.d.mts.map +1 -0
- package/resources/compute/funcs/export.d.ts +121 -0
- package/resources/compute/funcs/export.d.ts.map +1 -0
- package/resources/compute/funcs/export.js +68 -0
- package/resources/compute/funcs/export.js.map +1 -0
- package/resources/compute/funcs/export.mjs +64 -0
- package/resources/compute/funcs/export.mjs.map +1 -0
- package/resources/compute/funcs/funcs.d.mts +214 -0
- package/resources/compute/funcs/funcs.d.mts.map +1 -0
- package/resources/compute/funcs/funcs.d.ts +214 -0
- package/resources/compute/funcs/funcs.d.ts.map +1 -0
- package/resources/compute/funcs/funcs.js +80 -0
- package/resources/compute/funcs/funcs.js.map +1 -0
- package/resources/compute/funcs/funcs.mjs +75 -0
- package/resources/compute/funcs/funcs.mjs.map +1 -0
- package/resources/compute/funcs/index.d.mts +3 -0
- package/resources/compute/funcs/index.d.mts.map +1 -0
- package/resources/compute/funcs/index.d.ts +3 -0
- package/resources/compute/funcs/index.d.ts.map +1 -0
- package/resources/compute/funcs/index.js +9 -0
- package/resources/compute/funcs/index.js.map +1 -0
- package/resources/compute/funcs/index.mjs +4 -0
- package/resources/compute/funcs/index.mjs.map +1 -0
- package/resources/compute/funcs.d.mts +1 -178
- package/resources/compute/funcs.d.mts.map +1 -1
- package/resources/compute/funcs.d.ts +1 -178
- package/resources/compute/funcs.d.ts.map +1 -1
- package/resources/compute/funcs.js +2 -37
- package/resources/compute/funcs.js.map +1 -1
- package/resources/compute/funcs.mjs +1 -35
- package/resources/compute/funcs.mjs.map +1 -1
- package/resources/compute/index.d.mts +1 -1
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +1 -1
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js +2 -2
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +7 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +7 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/connections.d.mts +109 -1
- package/resources/connections.d.mts.map +1 -1
- package/resources/connections.d.ts +109 -1
- package/resources/connections.d.ts.map +1 -1
- package/resources/connections.js +8 -0
- package/resources/connections.js.map +1 -1
- package/resources/connections.mjs +8 -0
- package/resources/connections.mjs.map +1 -1
- package/resources/detail-records.d.mts +18 -1
- package/resources/detail-records.d.mts.map +1 -1
- package/resources/detail-records.d.ts +18 -1
- package/resources/detail-records.d.ts.map +1 -1
- package/resources/email-blocks/email-blocks.d.mts +12 -4
- package/resources/email-blocks/email-blocks.d.mts.map +1 -1
- package/resources/email-blocks/email-blocks.d.ts +12 -4
- package/resources/email-blocks/email-blocks.d.ts.map +1 -1
- package/resources/email-blocks/email-blocks.js +5 -3
- package/resources/email-blocks/email-blocks.js.map +1 -1
- package/resources/email-blocks/email-blocks.mjs +5 -3
- package/resources/email-blocks/email-blocks.mjs.map +1 -1
- package/resources/email-blocks/imports.d.mts +20 -4
- package/resources/email-blocks/imports.d.mts.map +1 -1
- package/resources/email-blocks/imports.d.ts +20 -4
- package/resources/email-blocks/imports.d.ts.map +1 -1
- package/resources/email-blocks/imports.js +17 -3
- package/resources/email-blocks/imports.js.map +1 -1
- package/resources/email-blocks/imports.mjs +17 -3
- package/resources/email-blocks/imports.mjs.map +1 -1
- package/resources/email-domains/email-domains.d.mts +98 -1
- package/resources/email-domains/email-domains.d.mts.map +1 -1
- package/resources/email-domains/email-domains.d.ts +98 -1
- package/resources/email-domains/email-domains.d.ts.map +1 -1
- package/resources/email-domains/email-domains.js +21 -0
- package/resources/email-domains/email-domains.js.map +1 -1
- package/resources/email-domains/email-domains.mjs +21 -0
- package/resources/email-domains/email-domains.mjs.map +1 -1
- package/resources/email-domains/index.d.mts +1 -1
- package/resources/email-domains/index.d.mts.map +1 -1
- package/resources/email-domains/index.d.ts +1 -1
- package/resources/email-domains/index.d.ts.map +1 -1
- package/resources/email-domains/index.js.map +1 -1
- package/resources/email-domains/index.mjs.map +1 -1
- package/resources/email-domains/webhooks.d.mts +6 -4
- package/resources/email-domains/webhooks.d.mts.map +1 -1
- package/resources/email-domains/webhooks.d.ts +6 -4
- package/resources/email-domains/webhooks.d.ts.map +1 -1
- package/resources/email-events.d.mts +162 -28
- package/resources/email-events.d.mts.map +1 -1
- package/resources/email-events.d.ts +162 -28
- package/resources/email-events.d.ts.map +1 -1
- package/resources/email-events.js +15 -6
- package/resources/email-events.js.map +1 -1
- package/resources/email-events.mjs +15 -6
- package/resources/email-events.mjs.map +1 -1
- package/resources/email-inboxes/drafts.d.mts +31 -1
- package/resources/email-inboxes/drafts.d.mts.map +1 -1
- package/resources/email-inboxes/drafts.d.ts +31 -1
- package/resources/email-inboxes/drafts.d.ts.map +1 -1
- package/resources/email-inboxes/drafts.js.map +1 -1
- package/resources/email-inboxes/drafts.mjs.map +1 -1
- package/resources/email-messages/email-messages.d.mts +178 -45
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +178 -45
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js +43 -9
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs +43 -9
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/email-messages/index.d.mts +1 -1
- package/resources/email-messages/index.d.mts.map +1 -1
- package/resources/email-messages/index.d.ts +1 -1
- package/resources/email-messages/index.d.ts.map +1 -1
- package/resources/email-messages/index.js.map +1 -1
- package/resources/email-messages/index.mjs.map +1 -1
- package/resources/email-messages/recipients.d.mts +2 -2
- package/resources/email-messages/recipients.d.mts.map +1 -1
- package/resources/email-messages/recipients.d.ts +2 -2
- package/resources/email-messages/recipients.d.ts.map +1 -1
- package/resources/email-templates.d.mts +170 -0
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +170 -0
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +6 -0
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +6 -0
- package/resources/email-templates.mjs.map +1 -1
- package/resources/index.d.mts +11 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +14 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/machine-payments.d.mts +142 -0
- package/resources/machine-payments.d.mts.map +1 -0
- package/resources/machine-payments.d.ts +142 -0
- package/resources/machine-payments.d.ts.map +1 -0
- package/resources/machine-payments.js +56 -0
- package/resources/machine-payments.js.map +1 -0
- package/resources/machine-payments.mjs +52 -0
- package/resources/machine-payments.mjs.map +1 -0
- package/resources/meeting-sessions/actions.d.mts +7 -1
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +7 -1
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +7 -1
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +7 -1
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/artifacts.d.mts +38 -11
- package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
- package/resources/meeting-sessions/artifacts.d.ts +38 -11
- package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
- package/resources/meeting-sessions/artifacts.js +11 -5
- package/resources/meeting-sessions/artifacts.js.map +1 -1
- package/resources/meeting-sessions/artifacts.mjs +11 -5
- package/resources/meeting-sessions/artifacts.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +63 -23
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +63 -23
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +0 -2
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +0 -2
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/messages/messages.d.mts +135 -23
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +135 -23
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/noise-suppression-engines.d.mts +42 -0
- package/resources/noise-suppression-engines.d.mts.map +1 -0
- package/resources/noise-suppression-engines.d.ts +42 -0
- package/resources/noise-suppression-engines.d.ts.map +1 -0
- package/resources/noise-suppression-engines.js +21 -0
- package/resources/noise-suppression-engines.js.map +1 -0
- package/resources/noise-suppression-engines.mjs +17 -0
- package/resources/noise-suppression-engines.mjs.map +1 -0
- package/resources/phone-numbers/phone-numbers.d.mts +12 -2
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +12 -2
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/private-wireless-gateways.d.mts +61 -7
- package/resources/private-wireless-gateways.d.mts.map +1 -1
- package/resources/private-wireless-gateways.d.ts +61 -7
- package/resources/private-wireless-gateways.d.ts.map +1 -1
- package/resources/private-wireless-gateways.js +1 -1
- package/resources/private-wireless-gateways.js.map +1 -1
- package/resources/private-wireless-gateways.mjs +1 -1
- package/resources/private-wireless-gateways.mjs.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.mts +126 -9
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +126 -9
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +12 -2
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +12 -2
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +39 -0
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +39 -0
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/calls.d.mts +71 -0
- package/resources/texml/calls.d.mts.map +1 -0
- package/resources/texml/calls.d.ts +71 -0
- package/resources/texml/calls.d.ts.map +1 -0
- package/resources/texml/calls.js +33 -0
- package/resources/texml/calls.js.map +1 -0
- package/resources/texml/calls.mjs +29 -0
- package/resources/texml/calls.mjs.map +1 -0
- package/resources/texml/index.d.mts +1 -0
- package/resources/texml/index.d.mts.map +1 -1
- package/resources/texml/index.d.ts +1 -0
- package/resources/texml/index.d.ts.map +1 -1
- package/resources/texml/index.js +3 -1
- package/resources/texml/index.js.map +1 -1
- package/resources/texml/index.mjs +1 -0
- package/resources/texml/index.mjs.map +1 -1
- package/resources/texml/texml.d.mts +43 -0
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +43 -0
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -0
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -0
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +61 -9
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +61 -9
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +10 -3
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +10 -3
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/voice-clones.d.mts +6 -4
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +6 -4
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +4 -2
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +4 -2
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/webhooks.d.mts +40 -53
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +40 -53
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +92 -6
- package/src/resources/ai/ai.ts +21 -1
- package/src/resources/ai/assistants/assistants.ts +502 -56
- package/src/resources/ai/assistants/index.ts +1 -0
- package/src/resources/ai/assistants/versions.ts +36 -14
- package/src/resources/ai/audio.ts +93 -45
- package/src/resources/ai/chat.ts +2 -11
- package/src/resources/ai/collections/collections.ts +3 -1
- package/src/resources/ai/collections/index.ts +2 -0
- package/src/resources/ai/collections/sources.ts +38 -4
- package/src/resources/ai/index.ts +9 -1
- package/src/resources/ai/memory/index.ts +4 -0
- package/src/resources/ai/memory/memory.ts +19 -0
- package/src/resources/ai/memory/namespaces/index.ts +21 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +116 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +35 -0
- package/src/resources/ai/memory/namespaces/profiles/memories.ts +170 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +482 -0
- package/src/resources/ai/memory/namespaces/profiles/sources.ts +226 -0
- package/src/resources/ai/memory/namespaces/profiles.ts +3 -0
- package/src/resources/ai/memory/namespaces/settings.ts +129 -0
- package/src/resources/ai/memory/namespaces.ts +3 -0
- package/src/resources/ai/memory.ts +3 -0
- package/src/resources/ai/openai/chat.ts +11 -11
- package/src/resources/ai/openai/index.ts +6 -1
- package/src/resources/ai/openai/openai.ts +2 -1
- package/src/resources/ai/typesafe/index.ts +4 -0
- package/src/resources/ai/typesafe/typesafe.ts +19 -0
- package/src/resources/ai/typesafe/v1.ts +310 -0
- package/src/resources/ai/typesafe.ts +3 -0
- package/src/resources/bot-challenge.ts +101 -0
- package/src/resources/bot-sessions.ts +61 -0
- package/src/resources/bot-signup.ts +140 -0
- package/src/resources/calls/actions.ts +115 -14
- package/src/resources/calls/calls.ts +64 -7
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/compute/compute.ts +2 -2
- package/src/resources/compute/funcs/export.ts +156 -0
- package/src/resources/compute/funcs/funcs.ts +341 -0
- package/src/resources/compute/funcs/index.ts +15 -0
- package/src/resources/compute/funcs.ts +1 -296
- package/src/resources/compute/index.ts +1 -1
- package/src/resources/conferences/actions.ts +8 -1
- package/src/resources/connections.ts +133 -0
- package/src/resources/detail-records.ts +18 -1
- package/src/resources/email-blocks/email-blocks.ts +12 -4
- package/src/resources/email-blocks/imports.ts +20 -4
- package/src/resources/email-domains/email-domains.ts +120 -0
- package/src/resources/email-domains/index.ts +1 -0
- package/src/resources/email-domains/webhooks.ts +9 -4
- package/src/resources/email-events.ts +220 -35
- package/src/resources/email-inboxes/drafts.ts +32 -1
- package/src/resources/email-messages/email-messages.ts +195 -49
- package/src/resources/email-messages/index.ts +2 -1
- package/src/resources/email-messages/recipients.ts +6 -2
- package/src/resources/email-templates.ts +185 -0
- package/src/resources/index.ts +29 -3
- package/src/resources/machine-payments.ts +169 -0
- package/src/resources/meeting-sessions/actions.ts +7 -1
- package/src/resources/meeting-sessions/artifacts.ts +42 -11
- package/src/resources/meeting-sessions/meeting-sessions.ts +63 -24
- package/src/resources/messages/messages.ts +168 -23
- package/src/resources/noise-suppression-engines.ts +51 -0
- package/src/resources/phone-numbers/phone-numbers.ts +13 -2
- package/src/resources/private-wireless-gateways.ts +76 -8
- package/src/resources/speech-to-text/speech-to-text.ts +1 -0
- package/src/resources/texml/accounts/calls/calls.ts +158 -10
- package/src/resources/texml/accounts/conferences/participants.ts +46 -0
- package/src/resources/texml/calls.ts +90 -0
- package/src/resources/texml/index.ts +1 -0
- package/src/resources/texml/texml.ts +56 -0
- package/src/resources/text-to-speech/text-to-speech.ts +69 -9
- package/src/resources/voice-clones.ts +6 -4
- package/src/resources/webhooks.ts +47 -62
- 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
|
@@ -57,6 +57,7 @@ import {
|
|
|
57
57
|
VersionUpdateParams,
|
|
58
58
|
Versions,
|
|
59
59
|
} from './versions';
|
|
60
|
+
import * as OpenAIChatAPI from '../openai/chat';
|
|
60
61
|
import * as TestsAPI from './tests/tests';
|
|
61
62
|
import {
|
|
62
63
|
AssistantTest,
|
|
@@ -543,11 +544,12 @@ export interface AssistantMcpServer {
|
|
|
543
544
|
* user.
|
|
544
545
|
*/
|
|
545
546
|
export type AssistantTool =
|
|
547
|
+
| AssistantTool.Function
|
|
546
548
|
| InferenceEmbeddingWebhookToolParams
|
|
547
549
|
| AssistantTool.ClientSideTool
|
|
548
550
|
| RetrievalTool
|
|
549
551
|
| AssistantTool.Handoff
|
|
550
|
-
|
|
|
552
|
+
| AssistantTool.Hangup
|
|
551
553
|
| AssistantTool.Transfer
|
|
552
554
|
| AssistantTool.Invite
|
|
553
555
|
| AssistantTool.Refer
|
|
@@ -558,10 +560,38 @@ export type AssistantTool =
|
|
|
558
560
|
| AssistantTool.UpdateDynamicVariables;
|
|
559
561
|
|
|
560
562
|
export namespace AssistantTool {
|
|
563
|
+
export interface Function {
|
|
564
|
+
function: OpenAIChatAPI.FunctionDefinition;
|
|
565
|
+
|
|
566
|
+
type: 'function';
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
570
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
571
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
572
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
573
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
574
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
575
|
+
* per assistant).
|
|
576
|
+
*/
|
|
577
|
+
shared?: boolean;
|
|
578
|
+
}
|
|
579
|
+
|
|
561
580
|
export interface ClientSideTool {
|
|
562
581
|
client_side_tool: ClientSideTool.ClientSideTool;
|
|
563
582
|
|
|
564
583
|
type: 'client_side_tool';
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
587
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
588
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
589
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
590
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
591
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
592
|
+
* per assistant).
|
|
593
|
+
*/
|
|
594
|
+
shared?: boolean;
|
|
565
595
|
}
|
|
566
596
|
|
|
567
597
|
export namespace ClientSideTool {
|
|
@@ -615,6 +645,17 @@ export namespace AssistantTool {
|
|
|
615
645
|
handoff: Handoff.Handoff;
|
|
616
646
|
|
|
617
647
|
type: 'handoff';
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
651
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
652
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
653
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
654
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
655
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
656
|
+
* per assistant).
|
|
657
|
+
*/
|
|
658
|
+
shared?: boolean;
|
|
618
659
|
}
|
|
619
660
|
|
|
620
661
|
export namespace Handoff {
|
|
@@ -648,10 +689,38 @@ export namespace AssistantTool {
|
|
|
648
689
|
}
|
|
649
690
|
}
|
|
650
691
|
|
|
692
|
+
export interface Hangup {
|
|
693
|
+
hangup: AssistantsAPI.HangupToolParams;
|
|
694
|
+
|
|
695
|
+
type: 'hangup';
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
699
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
700
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
701
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
702
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
703
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
704
|
+
* per assistant).
|
|
705
|
+
*/
|
|
706
|
+
shared?: boolean;
|
|
707
|
+
}
|
|
708
|
+
|
|
651
709
|
export interface Transfer {
|
|
652
710
|
transfer: Transfer.Transfer;
|
|
653
711
|
|
|
654
712
|
type: 'transfer';
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
716
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
717
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
718
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
719
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
720
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
721
|
+
* per assistant).
|
|
722
|
+
*/
|
|
723
|
+
shared?: boolean;
|
|
655
724
|
}
|
|
656
725
|
|
|
657
726
|
export namespace Transfer {
|
|
@@ -737,6 +806,15 @@ export namespace AssistantTool {
|
|
|
737
806
|
*/
|
|
738
807
|
to: string;
|
|
739
808
|
|
|
809
|
+
/**
|
|
810
|
+
* DTMF digits to send automatically after the transfer destination answers. Useful
|
|
811
|
+
* for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
|
|
812
|
+
* the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
|
|
813
|
+
* `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
|
|
814
|
+
* is sent.
|
|
815
|
+
*/
|
|
816
|
+
extension?: string;
|
|
817
|
+
|
|
740
818
|
/**
|
|
741
819
|
* The warm transfer message to deliver to this specific target. When set, it takes
|
|
742
820
|
* precedence over the message the assistant composes from
|
|
@@ -748,6 +826,18 @@ export namespace AssistantTool {
|
|
|
748
826
|
* The name of the target.
|
|
749
827
|
*/
|
|
750
828
|
name?: string;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* SIP Authentication password used for SIP challenges. Applies when `to` is a SIP
|
|
832
|
+
* URI.
|
|
833
|
+
*/
|
|
834
|
+
sip_auth_password?: string;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* SIP Authentication username used for SIP challenges. Applies when `to` is a SIP
|
|
838
|
+
* URI.
|
|
839
|
+
*/
|
|
840
|
+
sip_auth_username?: string;
|
|
751
841
|
}
|
|
752
842
|
|
|
753
843
|
export interface CustomHeader {
|
|
@@ -922,6 +1012,17 @@ export namespace AssistantTool {
|
|
|
922
1012
|
invite: Invite.Invite;
|
|
923
1013
|
|
|
924
1014
|
type: 'invite';
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1018
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1019
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1020
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1021
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1022
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1023
|
+
* per assistant).
|
|
1024
|
+
*/
|
|
1025
|
+
shared?: boolean;
|
|
925
1026
|
}
|
|
926
1027
|
|
|
927
1028
|
export namespace Invite {
|
|
@@ -1013,6 +1114,17 @@ export namespace AssistantTool {
|
|
|
1013
1114
|
refer: Refer.Refer;
|
|
1014
1115
|
|
|
1015
1116
|
type: 'refer';
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1120
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1121
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1122
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1123
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1124
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1125
|
+
* per assistant).
|
|
1126
|
+
*/
|
|
1127
|
+
shared?: boolean;
|
|
1016
1128
|
}
|
|
1017
1129
|
|
|
1018
1130
|
export namespace Refer {
|
|
@@ -1088,6 +1200,17 @@ export namespace AssistantTool {
|
|
|
1088
1200
|
send_dtmf: { [key: string]: unknown };
|
|
1089
1201
|
|
|
1090
1202
|
type: 'send_dtmf';
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1206
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1207
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1208
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1209
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1210
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1211
|
+
* per assistant).
|
|
1212
|
+
*/
|
|
1213
|
+
shared?: boolean;
|
|
1091
1214
|
}
|
|
1092
1215
|
|
|
1093
1216
|
/**
|
|
@@ -1100,6 +1223,17 @@ export namespace AssistantTool {
|
|
|
1100
1223
|
send_message: SendMessage.SendMessage;
|
|
1101
1224
|
|
|
1102
1225
|
type: 'send_message';
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1229
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1230
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1231
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1232
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1233
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1234
|
+
* per assistant).
|
|
1235
|
+
*/
|
|
1236
|
+
shared?: boolean;
|
|
1103
1237
|
}
|
|
1104
1238
|
|
|
1105
1239
|
export namespace SendMessage {
|
|
@@ -1121,6 +1255,17 @@ export namespace AssistantTool {
|
|
|
1121
1255
|
skip_turn: SkipTurn.SkipTurn;
|
|
1122
1256
|
|
|
1123
1257
|
type: 'skip_turn';
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1261
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1262
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1263
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1264
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1265
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1266
|
+
* per assistant).
|
|
1267
|
+
*/
|
|
1268
|
+
shared?: boolean;
|
|
1124
1269
|
}
|
|
1125
1270
|
|
|
1126
1271
|
export namespace SkipTurn {
|
|
@@ -1142,6 +1287,17 @@ export namespace AssistantTool {
|
|
|
1142
1287
|
pay: ToolsAPI.PayToolParams;
|
|
1143
1288
|
|
|
1144
1289
|
type: 'pay';
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1293
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1294
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1295
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1296
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1297
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1298
|
+
* per assistant).
|
|
1299
|
+
*/
|
|
1300
|
+
shared?: boolean;
|
|
1145
1301
|
}
|
|
1146
1302
|
|
|
1147
1303
|
/**
|
|
@@ -1158,6 +1314,17 @@ export namespace AssistantTool {
|
|
|
1158
1314
|
* Configuration for an update_dynamic_variables tool.
|
|
1159
1315
|
*/
|
|
1160
1316
|
update_dynamic_variables: ToolsAPI.UpdateDynamicVariablesToolParams;
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1320
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1321
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1322
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1323
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1324
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1325
|
+
* per assistant).
|
|
1326
|
+
*/
|
|
1327
|
+
shared?: boolean;
|
|
1161
1328
|
}
|
|
1162
1329
|
}
|
|
1163
1330
|
|
|
@@ -1697,7 +1864,7 @@ export interface FlowNode {
|
|
|
1697
1864
|
/**
|
|
1698
1865
|
* Per-node voice override (response form).
|
|
1699
1866
|
*/
|
|
1700
|
-
voice_settings?:
|
|
1867
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
1701
1868
|
}
|
|
1702
1869
|
|
|
1703
1870
|
/**
|
|
@@ -1789,7 +1956,7 @@ export interface FlowNodeReq {
|
|
|
1789
1956
|
* Per-node voice override. Only fields set here override the assistant-level voice
|
|
1790
1957
|
* settings; unset fields cascade.
|
|
1791
1958
|
*/
|
|
1792
|
-
voice_settings?:
|
|
1959
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
1793
1960
|
}
|
|
1794
1961
|
|
|
1795
1962
|
export interface HangupTool {
|
|
@@ -1944,10 +2111,10 @@ export interface InferenceEmbedding {
|
|
|
1944
2111
|
/**
|
|
1945
2112
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
1946
2113
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
1947
|
-
* execute tool calls such as
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
2114
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
2115
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
2116
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
2117
|
+
* unavailable. Beta feature.
|
|
1951
2118
|
*/
|
|
1952
2119
|
post_conversation_settings?: PostConversationSettings;
|
|
1953
2120
|
|
|
@@ -1967,9 +2134,12 @@ export interface InferenceEmbedding {
|
|
|
1967
2134
|
telephony_settings?: TelephonySettings;
|
|
1968
2135
|
|
|
1969
2136
|
/**
|
|
1970
|
-
*
|
|
1971
|
-
*
|
|
1972
|
-
*
|
|
2137
|
+
* The assistant's tools. Responses merge the assistant's shared Tools Library
|
|
2138
|
+
* tools into this array alongside inline tools, each flagged `shared: true`;
|
|
2139
|
+
* inline tools carry `shared: false`. On update, a sent `tools` array fully
|
|
2140
|
+
* replaces the inline tools only — shared tools stay attached unless `tool_ids`
|
|
2141
|
+
* changes. Each tool type except `function`, `webhook`, and `client_side_tool`
|
|
2142
|
+
* allows at most one instance per assistant across both sources.
|
|
1973
2143
|
*/
|
|
1974
2144
|
tools?: Array<AssistantTool>;
|
|
1975
2145
|
|
|
@@ -1991,7 +2161,7 @@ export interface InferenceEmbedding {
|
|
|
1991
2161
|
*/
|
|
1992
2162
|
version_name?: string;
|
|
1993
2163
|
|
|
1994
|
-
voice_settings?:
|
|
2164
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
1995
2165
|
|
|
1996
2166
|
/**
|
|
1997
2167
|
* Configuration settings for the assistant's web widget.
|
|
@@ -2018,6 +2188,12 @@ export interface InferenceEmbeddingInterruptionSettings {
|
|
|
2018
2188
|
*/
|
|
2019
2189
|
enable?: boolean;
|
|
2020
2190
|
|
|
2191
|
+
/**
|
|
2192
|
+
* Interrupt-prediction sensitivity, from 0.0 to 1.0. Set to null or 0.0 to disable
|
|
2193
|
+
* interrupt prediction.
|
|
2194
|
+
*/
|
|
2195
|
+
interrupt_prediction_threshold?: number | null;
|
|
2196
|
+
|
|
2021
2197
|
/**
|
|
2022
2198
|
* Controls when the assistant starts speaking after the user stops. These
|
|
2023
2199
|
* thresholds primarily apply to non turn-taking transcription models. For
|
|
@@ -2027,10 +2203,207 @@ export interface InferenceEmbeddingInterruptionSettings {
|
|
|
2027
2203
|
start_speaking_plan?: StartSpeakingPlan;
|
|
2028
2204
|
}
|
|
2029
2205
|
|
|
2206
|
+
export interface InferenceEmbeddingVoiceSettings {
|
|
2207
|
+
/**
|
|
2208
|
+
* The voice to be used by the voice assistant. Check the full list of
|
|
2209
|
+
* [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
|
|
2210
|
+
* via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
|
|
2211
|
+
* key as an integration secret under the `api_key_ref` field. See
|
|
2212
|
+
* [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
2213
|
+
* for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
|
|
2214
|
+
* Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
|
|
2215
|
+
* (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
|
|
2216
|
+
* The voice portion of the identifier supports
|
|
2217
|
+
* [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
2218
|
+
* using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
|
|
2219
|
+
* resolved at call time from your dynamic variables webhook, allowing you to
|
|
2220
|
+
* select the voice dynamically per call.
|
|
2221
|
+
*/
|
|
2222
|
+
voice: string;
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* The `identifier` for an integration secret
|
|
2226
|
+
* [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
2227
|
+
* that refers to your ElevenLabs API key. Warning: Free plans are unlikely to work
|
|
2228
|
+
* with this integration.
|
|
2229
|
+
*/
|
|
2230
|
+
api_key_ref?: string;
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Optional background audio to play on the call. Use a predefined media bed, or
|
|
2234
|
+
* supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
|
|
2235
|
+
* preview it before saving.
|
|
2236
|
+
*/
|
|
2237
|
+
background_audio?:
|
|
2238
|
+
| InferenceEmbeddingVoiceSettings.UnionMember0
|
|
2239
|
+
| InferenceEmbeddingVoiceSettings.UnionMember1
|
|
2240
|
+
| InferenceEmbeddingVoiceSettings.UnionMember2;
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Enables emotionally expressive speech using SSML emotion tags. When enabled, the
|
|
2244
|
+
* assistant uses audio tags like angry, excited, content, and sad to add emotional
|
|
2245
|
+
* nuance. Only supported for Telnyx Ultra voices.
|
|
2246
|
+
*/
|
|
2247
|
+
expressive_mode?: boolean;
|
|
2248
|
+
|
|
2249
|
+
/**
|
|
2250
|
+
* Enhances recognition for specific languages and dialects during MiniMax TTS
|
|
2251
|
+
* synthesis. Default is null (no boost). Set to 'auto' for automatic language
|
|
2252
|
+
* detection. Only applicable when using MiniMax voices.
|
|
2253
|
+
*/
|
|
2254
|
+
language_boost?:
|
|
2255
|
+
| 'auto'
|
|
2256
|
+
| 'Chinese'
|
|
2257
|
+
| 'Chinese,Yue'
|
|
2258
|
+
| 'English'
|
|
2259
|
+
| 'Arabic'
|
|
2260
|
+
| 'Russian'
|
|
2261
|
+
| 'Spanish'
|
|
2262
|
+
| 'French'
|
|
2263
|
+
| 'Portuguese'
|
|
2264
|
+
| 'German'
|
|
2265
|
+
| 'Turkish'
|
|
2266
|
+
| 'Dutch'
|
|
2267
|
+
| 'Ukrainian'
|
|
2268
|
+
| 'Vietnamese'
|
|
2269
|
+
| 'Indonesian'
|
|
2270
|
+
| 'Japanese'
|
|
2271
|
+
| 'Italian'
|
|
2272
|
+
| 'Korean'
|
|
2273
|
+
| 'Thai'
|
|
2274
|
+
| 'Polish'
|
|
2275
|
+
| 'Romanian'
|
|
2276
|
+
| 'Greek'
|
|
2277
|
+
| 'Czech'
|
|
2278
|
+
| 'Finnish'
|
|
2279
|
+
| 'Hindi'
|
|
2280
|
+
| 'Bulgarian'
|
|
2281
|
+
| 'Danish'
|
|
2282
|
+
| 'Hebrew'
|
|
2283
|
+
| 'Malay'
|
|
2284
|
+
| 'Persian'
|
|
2285
|
+
| 'Slovak'
|
|
2286
|
+
| 'Swedish'
|
|
2287
|
+
| 'Croatian'
|
|
2288
|
+
| 'Filipino'
|
|
2289
|
+
| 'Hungarian'
|
|
2290
|
+
| 'Norwegian'
|
|
2291
|
+
| 'Slovenian'
|
|
2292
|
+
| 'Catalan'
|
|
2293
|
+
| 'Nynorsk'
|
|
2294
|
+
| 'Tamil'
|
|
2295
|
+
| 'Afrikaans'
|
|
2296
|
+
| null;
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* Determines how closely the AI should adhere to the original voice when
|
|
2300
|
+
* attempting to replicate it. Only applicable when using ElevenLabs.
|
|
2301
|
+
*/
|
|
2302
|
+
similarity_boost?: number;
|
|
2303
|
+
|
|
2304
|
+
/**
|
|
2305
|
+
* Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
|
|
2306
|
+
* values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
|
|
2307
|
+
*/
|
|
2308
|
+
speed?: number;
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* Determines the style exaggeration of the voice. Amplifies speaker style but
|
|
2312
|
+
* consumes additional resources when set above 0. Only applicable when using
|
|
2313
|
+
* ElevenLabs.
|
|
2314
|
+
*/
|
|
2315
|
+
style?: number;
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* Determines how stable the voice is and the randomness between each generation.
|
|
2319
|
+
* Lower values create a broader emotional range; higher values produce more
|
|
2320
|
+
* consistent, monotonous output. Only applicable when using ElevenLabs.
|
|
2321
|
+
*/
|
|
2322
|
+
temperature?: number;
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Amplifies similarity to the original speaker voice. Increases computational load
|
|
2326
|
+
* and latency slightly. Only applicable when using ElevenLabs.
|
|
2327
|
+
*/
|
|
2328
|
+
use_speaker_boost?: boolean;
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* The speed of the voice in the range [0.25, 2.0]. 1.0 is deafult speed. Larger
|
|
2332
|
+
* numbers make the voice faster, smaller numbers make it slower. This is only
|
|
2333
|
+
* applicable for Telnyx Natural voices and Soniox voices (0.7 to 1.3 for Soniox).
|
|
2334
|
+
*/
|
|
2335
|
+
voice_speed?: number;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
export namespace InferenceEmbeddingVoiceSettings {
|
|
2339
|
+
export interface UnionMember0 {
|
|
2340
|
+
/**
|
|
2341
|
+
* Select from predefined media options.
|
|
2342
|
+
*/
|
|
2343
|
+
type: 'predefined_media';
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* The predefined media to use. `silence` disables background audio.
|
|
2347
|
+
*/
|
|
2348
|
+
value: 'silence' | 'office';
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* Volume level for the predefined background audio. Supports values from 0.1 to
|
|
2352
|
+
* 1.0 in 0.1 increments.
|
|
2353
|
+
*/
|
|
2354
|
+
volume?: number;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
export interface UnionMember1 {
|
|
2358
|
+
/**
|
|
2359
|
+
* Provide a direct URL to an MP3 file. The audio will loop during the call.
|
|
2360
|
+
*/
|
|
2361
|
+
type: 'media_url';
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* HTTPS URL to an MP3 file.
|
|
2365
|
+
*/
|
|
2366
|
+
value: string;
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
export interface UnionMember2 {
|
|
2370
|
+
/**
|
|
2371
|
+
* Reference a previously uploaded media by its name from Telnyx Media Storage.
|
|
2372
|
+
*/
|
|
2373
|
+
type: 'media_name';
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* The `name` of a media asset created via
|
|
2377
|
+
* [Media Storage API](https://developers.telnyx.com/api/media-storage/create-media-storage).
|
|
2378
|
+
* The audio will loop during the call.
|
|
2379
|
+
*/
|
|
2380
|
+
value: string;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2030
2384
|
export interface InferenceEmbeddingWebhookToolParams {
|
|
2031
2385
|
type: 'webhook';
|
|
2032
2386
|
|
|
2033
2387
|
webhook: InferenceEmbeddingWebhookToolParams.Webhook;
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2391
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2392
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
2393
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2394
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2395
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2396
|
+
* per assistant).
|
|
2397
|
+
*/
|
|
2398
|
+
shared?: boolean;
|
|
2399
|
+
|
|
2400
|
+
/**
|
|
2401
|
+
* The maximum number of milliseconds to wait for the webhook to respond before the
|
|
2402
|
+
* tool call is aborted. Set this at the tool level, as a sibling of `type` — a
|
|
2403
|
+
* `timeout_ms` nested inside the `webhook` object is stored but not applied, and
|
|
2404
|
+
* the tool runs at this default instead. Applies when `webhook.async` is false.
|
|
2405
|
+
*/
|
|
2406
|
+
timeout_ms?: number;
|
|
2034
2407
|
}
|
|
2035
2408
|
|
|
2036
2409
|
export namespace InferenceEmbeddingWebhookToolParams {
|
|
@@ -2142,12 +2515,6 @@ export namespace InferenceEmbeddingWebhookToolParams {
|
|
|
2142
2515
|
* dot-notation path to the value in the response body.
|
|
2143
2516
|
*/
|
|
2144
2517
|
store_fields_as_variables?: Array<Webhook.StoreFieldsAsVariable>;
|
|
2145
|
-
|
|
2146
|
-
/**
|
|
2147
|
-
* The maximum number of milliseconds to wait for the webhook to respond. Only
|
|
2148
|
-
* applicable when async is false.
|
|
2149
|
-
*/
|
|
2150
|
-
timeout_ms?: number;
|
|
2151
2518
|
}
|
|
2152
2519
|
|
|
2153
2520
|
export namespace Webhook {
|
|
@@ -2379,10 +2746,10 @@ export type ObservabilityStatus = 'enabled' | 'disabled';
|
|
|
2379
2746
|
/**
|
|
2380
2747
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
2381
2748
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
2382
|
-
* execute tool calls such as
|
|
2383
|
-
*
|
|
2384
|
-
*
|
|
2385
|
-
*
|
|
2749
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
2750
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
2751
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
2752
|
+
* unavailable. Beta feature.
|
|
2386
2753
|
*/
|
|
2387
2754
|
export interface PostConversationSettings {
|
|
2388
2755
|
/**
|
|
@@ -2396,10 +2763,10 @@ export interface PostConversationSettings {
|
|
|
2396
2763
|
/**
|
|
2397
2764
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
2398
2765
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
2399
|
-
* execute tool calls such as
|
|
2400
|
-
*
|
|
2401
|
-
*
|
|
2402
|
-
*
|
|
2766
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
2767
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
2768
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
2769
|
+
* unavailable. Beta feature.
|
|
2403
2770
|
*/
|
|
2404
2771
|
export interface PostConversationSettingsReq {
|
|
2405
2772
|
/**
|
|
@@ -2420,6 +2787,22 @@ export interface PrivacySettings {
|
|
|
2420
2787
|
* force regardless of your selection here.
|
|
2421
2788
|
*/
|
|
2422
2789
|
data_retention?: boolean;
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* Requires every model call made for a web chat turn to be received and served
|
|
2793
|
+
* inside your organization's data-locality region, rather than only stored there.
|
|
2794
|
+
* Applies to web chat only — voice and messaging assistants are unaffected.
|
|
2795
|
+
* Enabling it requires a data-locality region with in-region inference (USA, EU,
|
|
2796
|
+
* AUS, UAE; see
|
|
2797
|
+
* [Inference regions](https://developers.telnyx.com/docs/inference/models/regions))
|
|
2798
|
+
* and Telnyx-hosted models for the assistant, its fallback, and any
|
|
2799
|
+
* conversation-flow node that overrides the model; the request is rejected
|
|
2800
|
+
* otherwise. Once enabled, send chat requests to your region's API hostname: a
|
|
2801
|
+
* request entering the platform in another region is rejected rather than
|
|
2802
|
+
* forwarded, because forwarding it would already have moved the content across the
|
|
2803
|
+
* border. Defaults to false.
|
|
2804
|
+
*/
|
|
2805
|
+
in_transit_data_locality?: boolean;
|
|
2423
2806
|
}
|
|
2424
2807
|
|
|
2425
2808
|
/**
|
|
@@ -2435,6 +2818,17 @@ export interface RetrievalTool {
|
|
|
2435
2818
|
retrieval: ChatAPI.BucketIDs;
|
|
2436
2819
|
|
|
2437
2820
|
type: 'retrieval';
|
|
2821
|
+
|
|
2822
|
+
/**
|
|
2823
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2824
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2825
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
2826
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2827
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2828
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2829
|
+
* per assistant).
|
|
2830
|
+
*/
|
|
2831
|
+
shared?: boolean;
|
|
2438
2832
|
}
|
|
2439
2833
|
|
|
2440
2834
|
/**
|
|
@@ -2563,14 +2957,17 @@ export interface TelephonySettings {
|
|
|
2563
2957
|
fallback_destination?: string;
|
|
2564
2958
|
|
|
2565
2959
|
/**
|
|
2566
|
-
* The noise suppression engine to use.
|
|
2567
|
-
*
|
|
2960
|
+
* The noise suppression engine to use. 'aicoustics' is STT-optimized and
|
|
2961
|
+
* recommended for AI assistants (configure through noise_suppression_config). Use
|
|
2962
|
+
* 'disabled' to turn off noise suppression.
|
|
2568
2963
|
*/
|
|
2569
|
-
noise_suppression?: 'krisp' | 'deepfilternet' | 'disabled';
|
|
2964
|
+
noise_suppression?: 'aicoustics' | 'krisp' | 'deepfilternet' | 'disabled';
|
|
2570
2965
|
|
|
2571
2966
|
/**
|
|
2572
|
-
* Configuration for noise suppression.
|
|
2573
|
-
* 'deepfilternet'
|
|
2967
|
+
* Configuration for noise suppression. Applicable fields depend on the engine:
|
|
2968
|
+
* 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
|
|
2969
|
+
* 'family', 'size' and 'enhancement_level' only when noise_suppression is
|
|
2970
|
+
* 'aicoustics'.
|
|
2574
2971
|
*/
|
|
2575
2972
|
noise_suppression_config?: TelephonySettings.NoiseSuppressionConfig;
|
|
2576
2973
|
|
|
@@ -2634,19 +3031,42 @@ export interface TelephonySettings {
|
|
|
2634
3031
|
|
|
2635
3032
|
export namespace TelephonySettings {
|
|
2636
3033
|
/**
|
|
2637
|
-
* Configuration for noise suppression.
|
|
2638
|
-
* 'deepfilternet'
|
|
3034
|
+
* Configuration for noise suppression. Applicable fields depend on the engine:
|
|
3035
|
+
* 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
|
|
3036
|
+
* 'family', 'size' and 'enhancement_level' only when noise_suppression is
|
|
3037
|
+
* 'aicoustics'.
|
|
2639
3038
|
*/
|
|
2640
3039
|
export interface NoiseSuppressionConfig {
|
|
2641
3040
|
/**
|
|
2642
|
-
* Attenuation limit for noise suppression. Range: 0-100.
|
|
3041
|
+
* Attenuation limit for noise suppression. Range: 0-100. Only applicable when
|
|
3042
|
+
* noise_suppression is 'deepfilternet'.
|
|
2643
3043
|
*/
|
|
2644
3044
|
attenuation_limit?: number;
|
|
2645
3045
|
|
|
2646
3046
|
/**
|
|
2647
|
-
*
|
|
3047
|
+
* AiCoustics enhancement intensity. Range: 0-1. Only applicable when
|
|
3048
|
+
* noise_suppression is 'aicoustics'.
|
|
3049
|
+
*/
|
|
3050
|
+
enhancement_level?: number;
|
|
3051
|
+
|
|
3052
|
+
/**
|
|
3053
|
+
* AiCoustics model family optimized for Voice AI and STT. Only applicable when
|
|
3054
|
+
* noise_suppression is 'aicoustics'.
|
|
3055
|
+
*/
|
|
3056
|
+
family?: 'quail';
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Mode for noise suppression configuration. Only applicable when noise_suppression
|
|
3060
|
+
* is 'deepfilternet'.
|
|
2648
3061
|
*/
|
|
2649
3062
|
mode?: 'advanced';
|
|
3063
|
+
|
|
3064
|
+
/**
|
|
3065
|
+
* AiCoustics model size. 'vf' tracks the latest model release; 'vf_2_0_l' is
|
|
3066
|
+
* pinned to version 2.0 for consistent, predictable behavior. Only applicable when
|
|
3067
|
+
* noise_suppression is 'aicoustics'.
|
|
3068
|
+
*/
|
|
3069
|
+
size?: 'vf' | 'vf_2_0_l';
|
|
2650
3070
|
}
|
|
2651
3071
|
|
|
2652
3072
|
/**
|
|
@@ -2882,14 +3302,17 @@ export interface TranscriptionSettings {
|
|
|
2882
3302
|
* - `deepgram/nova-3` is multilingual with automatic language detection.
|
|
2883
3303
|
* - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
|
|
2884
3304
|
* - `azure/fast` is a multilingual Azure transcription model.
|
|
2885
|
-
* - `assemblyai/universal-
|
|
2886
|
-
* configurable turn detection.
|
|
3305
|
+
* - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
|
|
3306
|
+
* configurable turn detection. The legacy alias `assemblyai/universal-streaming`
|
|
3307
|
+
* is still accepted and resolves to the same model.
|
|
2887
3308
|
* - `xai/grok-stt` is a multilingual Grok STT model.
|
|
2888
3309
|
* - `soniox/stt-rt-v4` and `soniox/stt-rt-v5` are multilingual streaming models
|
|
2889
3310
|
* with automatic language detection, configurable endpointing, term biasing
|
|
2890
3311
|
* (`context`), and `language_hints`.
|
|
2891
3312
|
* - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
|
|
2892
3313
|
* language detection.
|
|
3314
|
+
* - `omi-health/omi-med-stt-v1` is an English-only medical transcription model
|
|
3315
|
+
* (Parakeet-based).
|
|
2893
3316
|
* - `humain/realtime` is a streaming model with native Arabic and Arabic/English
|
|
2894
3317
|
* code-switching support.
|
|
2895
3318
|
* - `reson8/turns` is a turn-based streaming model covering 10 European languages
|
|
@@ -2901,11 +3324,13 @@ export interface TranscriptionSettings {
|
|
|
2901
3324
|
| 'deepgram/nova-3'
|
|
2902
3325
|
| 'deepgram/nova-2'
|
|
2903
3326
|
| 'azure/fast'
|
|
3327
|
+
| 'assemblyai/universal-3-5-pro'
|
|
2904
3328
|
| 'assemblyai/universal-streaming'
|
|
2905
3329
|
| 'xai/grok-stt'
|
|
2906
3330
|
| 'soniox/stt-rt-v4'
|
|
2907
3331
|
| 'soniox/stt-rt-v5'
|
|
2908
3332
|
| 'nvidia/parakeet-v3'
|
|
3333
|
+
| 'omi-health/omi-med-stt-v1'
|
|
2909
3334
|
| 'humain/realtime'
|
|
2910
3335
|
| 'reson8/turns'
|
|
2911
3336
|
| 'cohere/ar-stt'
|
|
@@ -2948,9 +3373,9 @@ export interface TranscriptionSettingsConfig {
|
|
|
2948
3373
|
enable_endpoint_detection?: boolean;
|
|
2949
3374
|
|
|
2950
3375
|
/**
|
|
2951
|
-
* Available only for assemblyai/universal-
|
|
2952
|
-
*
|
|
2953
|
-
* turn.
|
|
3376
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
3377
|
+
* assemblyai/universal-streaming). Confidence level required to trigger an end of
|
|
3378
|
+
* turn. Higher values require more certainty before ending a turn.
|
|
2954
3379
|
*/
|
|
2955
3380
|
end_of_turn_confidence_threshold?: number;
|
|
2956
3381
|
|
|
@@ -2998,15 +3423,16 @@ export interface TranscriptionSettingsConfig {
|
|
|
2998
3423
|
max_endpoint_delay_ms?: number;
|
|
2999
3424
|
|
|
3000
3425
|
/**
|
|
3001
|
-
* Available only for assemblyai/universal-
|
|
3002
|
-
*
|
|
3426
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
3427
|
+
* assemblyai/universal-streaming). Maximum duration of silence in milliseconds
|
|
3428
|
+
* before forcing an end of turn.
|
|
3003
3429
|
*/
|
|
3004
3430
|
max_turn_silence?: number;
|
|
3005
3431
|
|
|
3006
3432
|
/**
|
|
3007
|
-
* Available only for assemblyai/universal-
|
|
3008
|
-
*
|
|
3009
|
-
* max_turn_silence.
|
|
3433
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
3434
|
+
* assemblyai/universal-streaming). Minimum duration of silence in milliseconds
|
|
3435
|
+
* before a turn can end. Must be less than or equal to max_turn_silence.
|
|
3010
3436
|
*/
|
|
3011
3437
|
min_turn_silence?: number;
|
|
3012
3438
|
|
|
@@ -3229,6 +3655,14 @@ export interface WebhookTool {
|
|
|
3229
3655
|
type: 'webhook';
|
|
3230
3656
|
|
|
3231
3657
|
webhook: WebhookTool.Webhook;
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
* The maximum number of milliseconds to wait for the webhook to respond before the
|
|
3661
|
+
* tool call is aborted. Set this at the tool level, as a sibling of `type` — a
|
|
3662
|
+
* `timeout_ms` nested inside the `webhook` object is not applied, and the tool
|
|
3663
|
+
* runs at this default instead.
|
|
3664
|
+
*/
|
|
3665
|
+
timeout_ms?: number;
|
|
3232
3666
|
}
|
|
3233
3667
|
|
|
3234
3668
|
export namespace WebhookTool {
|
|
@@ -3597,10 +4031,10 @@ export interface AssistantCreateParams {
|
|
|
3597
4031
|
/**
|
|
3598
4032
|
* Body param: Configuration for post-conversation processing. When enabled, the
|
|
3599
4033
|
* assistant receives one additional LLM turn after the conversation ends, allowing
|
|
3600
|
-
* it to execute tool calls such as
|
|
3601
|
-
*
|
|
3602
|
-
*
|
|
3603
|
-
*
|
|
4034
|
+
* it to execute final tool calls such as sending a summary or updating a record
|
|
4035
|
+
* via webhook or function tools. Integration and MCP server tools are not
|
|
4036
|
+
* available post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
4037
|
+
* unavailable. Beta feature.
|
|
3604
4038
|
*/
|
|
3605
4039
|
post_conversation_settings?: PostConversationSettingsReq;
|
|
3606
4040
|
|
|
@@ -3641,7 +4075,7 @@ export interface AssistantCreateParams {
|
|
|
3641
4075
|
/**
|
|
3642
4076
|
* Body param
|
|
3643
4077
|
*/
|
|
3644
|
-
voice_settings?:
|
|
4078
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
3645
4079
|
|
|
3646
4080
|
/**
|
|
3647
4081
|
* Body param: Configuration settings for the assistant's web widget.
|
|
@@ -3841,10 +4275,10 @@ export interface AssistantUpdateParams {
|
|
|
3841
4275
|
/**
|
|
3842
4276
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
3843
4277
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
3844
|
-
* execute tool calls such as
|
|
3845
|
-
*
|
|
3846
|
-
*
|
|
3847
|
-
*
|
|
4278
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
4279
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
4280
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
4281
|
+
* unavailable. Beta feature.
|
|
3848
4282
|
*/
|
|
3849
4283
|
post_conversation_settings?: PostConversationSettingsReq;
|
|
3850
4284
|
|
|
@@ -3866,14 +4300,25 @@ export interface AssistantUpdateParams {
|
|
|
3866
4300
|
|
|
3867
4301
|
/**
|
|
3868
4302
|
* IDs of shared tools to attach to the assistant. New integrations should prefer
|
|
3869
|
-
* `tool_ids` over inline `tools`.
|
|
4303
|
+
* `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
|
|
4304
|
+
* replaces the assistant's attached shared tools; omit the field to leave them
|
|
4305
|
+
* unchanged. Single-instance tool types are counted across inline `tools` and
|
|
4306
|
+
* `tool_ids` combined, so attaching a shared tool of such a type when an instance
|
|
4307
|
+
* already exists returns HTTP 400 with error code 10015.
|
|
3870
4308
|
*/
|
|
3871
4309
|
tool_ids?: Array<string>;
|
|
3872
4310
|
|
|
3873
4311
|
/**
|
|
3874
4312
|
* Deprecated for new integrations. Inline tool definitions available to the
|
|
3875
4313
|
* assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
|
|
3876
|
-
* endpoints.
|
|
4314
|
+
* endpoints. On update, a sent `tools` array fully replaces the assistant's inline
|
|
4315
|
+
* tools; omit the field to leave the inline tools unchanged. Each tool type except
|
|
4316
|
+
* `function`, `webhook`, and `client_side_tool` allows at most one instance per
|
|
4317
|
+
* assistant, counted across inline `tools` and shared `tool_ids` combined —
|
|
4318
|
+
* sending a duplicate of such a type returns HTTP 400 with error code 10015.
|
|
4319
|
+
* Responses merge shared tools into `tools` with `shared: true`; when updating,
|
|
4320
|
+
* omit those tools from the `tools` array and manage them through `tool_ids`
|
|
4321
|
+
* instead.
|
|
3877
4322
|
*/
|
|
3878
4323
|
tools?: Array<AssistantTool>;
|
|
3879
4324
|
|
|
@@ -3884,7 +4329,7 @@ export interface AssistantUpdateParams {
|
|
|
3884
4329
|
*/
|
|
3885
4330
|
version_name?: string;
|
|
3886
4331
|
|
|
3887
|
-
voice_settings?:
|
|
4332
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
3888
4333
|
|
|
3889
4334
|
/**
|
|
3890
4335
|
* Configuration settings for the assistant's web widget.
|
|
@@ -4008,6 +4453,7 @@ export declare namespace Assistants {
|
|
|
4008
4453
|
type ImportMetadata as ImportMetadata,
|
|
4009
4454
|
type InferenceEmbedding as InferenceEmbedding,
|
|
4010
4455
|
type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings,
|
|
4456
|
+
type InferenceEmbeddingVoiceSettings as InferenceEmbeddingVoiceSettings,
|
|
4011
4457
|
type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams,
|
|
4012
4458
|
type InsightSettings as InsightSettings,
|
|
4013
4459
|
type MessagingSettings as MessagingSettings,
|