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
|
@@ -15,6 +15,7 @@ import * as AssistantsToolsAPI from "./tools.js";
|
|
|
15
15
|
import { ToolAddParams, ToolAddResponse, ToolRemoveParams, ToolRemoveResponse, ToolTestParams, ToolTestResponse, Tools } from "./tools.js";
|
|
16
16
|
import * as VersionsAPI from "./versions.js";
|
|
17
17
|
import { UpdateAssistant, VersionDeleteParams, VersionPromoteParams, VersionRetrieveParams, VersionUpdateParams, Versions } from "./versions.js";
|
|
18
|
+
import * as OpenAIChatAPI from "../openai/chat.js";
|
|
18
19
|
import * as TestsAPI from "./tests/tests.js";
|
|
19
20
|
import { AssistantTest, AssistantTestsDefaultFlatPagination, TelnyxConversationChannel, TestCreateParams, TestListParams, TestUpdateParams, Tests } from "./tests/tests.js";
|
|
20
21
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
@@ -371,11 +372,35 @@ export interface AssistantMcpServer {
|
|
|
371
372
|
* another AI assistant. By default, this will happen transparently to the end
|
|
372
373
|
* user.
|
|
373
374
|
*/
|
|
374
|
-
export type AssistantTool = InferenceEmbeddingWebhookToolParams | AssistantTool.ClientSideTool | RetrievalTool | AssistantTool.Handoff |
|
|
375
|
+
export type AssistantTool = AssistantTool.Function | InferenceEmbeddingWebhookToolParams | AssistantTool.ClientSideTool | RetrievalTool | AssistantTool.Handoff | AssistantTool.Hangup | AssistantTool.Transfer | AssistantTool.Invite | AssistantTool.Refer | AssistantTool.SendDtmf | AssistantTool.SendMessage | AssistantTool.SkipTurn | AssistantTool.Pay | AssistantTool.UpdateDynamicVariables;
|
|
375
376
|
export declare namespace AssistantTool {
|
|
377
|
+
interface Function {
|
|
378
|
+
function: OpenAIChatAPI.FunctionDefinition;
|
|
379
|
+
type: 'function';
|
|
380
|
+
/**
|
|
381
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
382
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
383
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
384
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
385
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
386
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
387
|
+
* per assistant).
|
|
388
|
+
*/
|
|
389
|
+
shared?: boolean;
|
|
390
|
+
}
|
|
376
391
|
interface ClientSideTool {
|
|
377
392
|
client_side_tool: ClientSideTool.ClientSideTool;
|
|
378
393
|
type: 'client_side_tool';
|
|
394
|
+
/**
|
|
395
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
396
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
397
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
398
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
399
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
400
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
401
|
+
* per assistant).
|
|
402
|
+
*/
|
|
403
|
+
shared?: boolean;
|
|
379
404
|
}
|
|
380
405
|
namespace ClientSideTool {
|
|
381
406
|
interface ClientSideTool {
|
|
@@ -423,6 +448,16 @@ export declare namespace AssistantTool {
|
|
|
423
448
|
interface Handoff {
|
|
424
449
|
handoff: Handoff.Handoff;
|
|
425
450
|
type: 'handoff';
|
|
451
|
+
/**
|
|
452
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
453
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
454
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
455
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
456
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
457
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
458
|
+
* per assistant).
|
|
459
|
+
*/
|
|
460
|
+
shared?: boolean;
|
|
426
461
|
}
|
|
427
462
|
namespace Handoff {
|
|
428
463
|
interface Handoff {
|
|
@@ -451,9 +486,33 @@ export declare namespace AssistantTool {
|
|
|
451
486
|
}
|
|
452
487
|
}
|
|
453
488
|
}
|
|
489
|
+
interface Hangup {
|
|
490
|
+
hangup: AssistantsAPI.HangupToolParams;
|
|
491
|
+
type: 'hangup';
|
|
492
|
+
/**
|
|
493
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
494
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
495
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
496
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
497
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
498
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
499
|
+
* per assistant).
|
|
500
|
+
*/
|
|
501
|
+
shared?: boolean;
|
|
502
|
+
}
|
|
454
503
|
interface Transfer {
|
|
455
504
|
transfer: Transfer.Transfer;
|
|
456
505
|
type: 'transfer';
|
|
506
|
+
/**
|
|
507
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
508
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
509
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
510
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
511
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
512
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
513
|
+
* per assistant).
|
|
514
|
+
*/
|
|
515
|
+
shared?: boolean;
|
|
457
516
|
}
|
|
458
517
|
namespace Transfer {
|
|
459
518
|
interface Transfer {
|
|
@@ -528,6 +587,14 @@ export declare namespace AssistantTool {
|
|
|
528
587
|
* The destination number or SIP URI of the call.
|
|
529
588
|
*/
|
|
530
589
|
to: string;
|
|
590
|
+
/**
|
|
591
|
+
* DTMF digits to send automatically after the transfer destination answers. Useful
|
|
592
|
+
* for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
|
|
593
|
+
* the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
|
|
594
|
+
* `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
|
|
595
|
+
* is sent.
|
|
596
|
+
*/
|
|
597
|
+
extension?: string;
|
|
531
598
|
/**
|
|
532
599
|
* The warm transfer message to deliver to this specific target. When set, it takes
|
|
533
600
|
* precedence over the message the assistant composes from
|
|
@@ -538,6 +605,16 @@ export declare namespace AssistantTool {
|
|
|
538
605
|
* The name of the target.
|
|
539
606
|
*/
|
|
540
607
|
name?: string;
|
|
608
|
+
/**
|
|
609
|
+
* SIP Authentication password used for SIP challenges. Applies when `to` is a SIP
|
|
610
|
+
* URI.
|
|
611
|
+
*/
|
|
612
|
+
sip_auth_password?: string;
|
|
613
|
+
/**
|
|
614
|
+
* SIP Authentication username used for SIP challenges. Applies when `to` is a SIP
|
|
615
|
+
* URI.
|
|
616
|
+
*/
|
|
617
|
+
sip_auth_username?: string;
|
|
541
618
|
}
|
|
542
619
|
interface CustomHeader {
|
|
543
620
|
name?: string;
|
|
@@ -688,6 +765,16 @@ export declare namespace AssistantTool {
|
|
|
688
765
|
interface Invite {
|
|
689
766
|
invite: Invite.Invite;
|
|
690
767
|
type: 'invite';
|
|
768
|
+
/**
|
|
769
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
770
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
771
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
772
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
773
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
774
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
775
|
+
* per assistant).
|
|
776
|
+
*/
|
|
777
|
+
shared?: boolean;
|
|
691
778
|
}
|
|
692
779
|
namespace Invite {
|
|
693
780
|
interface Invite {
|
|
@@ -766,6 +853,16 @@ export declare namespace AssistantTool {
|
|
|
766
853
|
interface Refer {
|
|
767
854
|
refer: Refer.Refer;
|
|
768
855
|
type: 'refer';
|
|
856
|
+
/**
|
|
857
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
858
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
859
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
860
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
861
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
862
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
863
|
+
* per assistant).
|
|
864
|
+
*/
|
|
865
|
+
shared?: boolean;
|
|
769
866
|
}
|
|
770
867
|
namespace Refer {
|
|
771
868
|
interface Refer {
|
|
@@ -830,6 +927,16 @@ export declare namespace AssistantTool {
|
|
|
830
927
|
[key: string]: unknown;
|
|
831
928
|
};
|
|
832
929
|
type: 'send_dtmf';
|
|
930
|
+
/**
|
|
931
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
932
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
933
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
934
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
935
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
936
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
937
|
+
* per assistant).
|
|
938
|
+
*/
|
|
939
|
+
shared?: boolean;
|
|
833
940
|
}
|
|
834
941
|
/**
|
|
835
942
|
* The send_message tool allows the assistant to send SMS or MMS messages to the
|
|
@@ -840,6 +947,16 @@ export declare namespace AssistantTool {
|
|
|
840
947
|
interface SendMessage {
|
|
841
948
|
send_message: SendMessage.SendMessage;
|
|
842
949
|
type: 'send_message';
|
|
950
|
+
/**
|
|
951
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
952
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
953
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
954
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
955
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
956
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
957
|
+
* per assistant).
|
|
958
|
+
*/
|
|
959
|
+
shared?: boolean;
|
|
843
960
|
}
|
|
844
961
|
namespace SendMessage {
|
|
845
962
|
interface SendMessage {
|
|
@@ -857,6 +974,16 @@ export declare namespace AssistantTool {
|
|
|
857
974
|
interface SkipTurn {
|
|
858
975
|
skip_turn: SkipTurn.SkipTurn;
|
|
859
976
|
type: 'skip_turn';
|
|
977
|
+
/**
|
|
978
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
979
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
980
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
981
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
982
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
983
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
984
|
+
* per assistant).
|
|
985
|
+
*/
|
|
986
|
+
shared?: boolean;
|
|
860
987
|
}
|
|
861
988
|
namespace SkipTurn {
|
|
862
989
|
interface SkipTurn {
|
|
@@ -875,6 +1002,16 @@ export declare namespace AssistantTool {
|
|
|
875
1002
|
interface Pay {
|
|
876
1003
|
pay: ToolsAPI.PayToolParams;
|
|
877
1004
|
type: 'pay';
|
|
1005
|
+
/**
|
|
1006
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1007
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1008
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1009
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1010
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1011
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1012
|
+
* per assistant).
|
|
1013
|
+
*/
|
|
1014
|
+
shared?: boolean;
|
|
878
1015
|
}
|
|
879
1016
|
/**
|
|
880
1017
|
* The update_dynamic_variables tool lets the assistant write values into the
|
|
@@ -889,6 +1026,16 @@ export declare namespace AssistantTool {
|
|
|
889
1026
|
* Configuration for an update_dynamic_variables tool.
|
|
890
1027
|
*/
|
|
891
1028
|
update_dynamic_variables: ToolsAPI.UpdateDynamicVariablesToolParams;
|
|
1029
|
+
/**
|
|
1030
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1031
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1032
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1033
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1034
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1035
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1036
|
+
* per assistant).
|
|
1037
|
+
*/
|
|
1038
|
+
shared?: boolean;
|
|
892
1039
|
}
|
|
893
1040
|
}
|
|
894
1041
|
export interface AssistantsList {
|
|
@@ -1345,7 +1492,7 @@ export interface FlowNode {
|
|
|
1345
1492
|
/**
|
|
1346
1493
|
* Per-node voice override (response form).
|
|
1347
1494
|
*/
|
|
1348
|
-
voice_settings?:
|
|
1495
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
1349
1496
|
}
|
|
1350
1497
|
/**
|
|
1351
1498
|
* One step in a conversation flow, as supplied by API clients.
|
|
@@ -1424,7 +1571,7 @@ export interface FlowNodeReq {
|
|
|
1424
1571
|
* Per-node voice override. Only fields set here override the assistant-level voice
|
|
1425
1572
|
* settings; unset fields cascade.
|
|
1426
1573
|
*/
|
|
1427
|
-
voice_settings?:
|
|
1574
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
1428
1575
|
}
|
|
1429
1576
|
export interface HangupTool {
|
|
1430
1577
|
hangup: HangupToolParams;
|
|
@@ -1552,10 +1699,10 @@ export interface InferenceEmbedding {
|
|
|
1552
1699
|
/**
|
|
1553
1700
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
1554
1701
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
1555
|
-
* execute tool calls such as
|
|
1556
|
-
*
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1702
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
1703
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
1704
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
1705
|
+
* unavailable. Beta feature.
|
|
1559
1706
|
*/
|
|
1560
1707
|
post_conversation_settings?: PostConversationSettings;
|
|
1561
1708
|
privacy_settings?: PrivacySettings;
|
|
@@ -1570,9 +1717,12 @@ export interface InferenceEmbedding {
|
|
|
1570
1717
|
tags?: Array<string>;
|
|
1571
1718
|
telephony_settings?: TelephonySettings;
|
|
1572
1719
|
/**
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
*
|
|
1720
|
+
* The assistant's tools. Responses merge the assistant's shared Tools Library
|
|
1721
|
+
* tools into this array alongside inline tools, each flagged `shared: true`;
|
|
1722
|
+
* inline tools carry `shared: false`. On update, a sent `tools` array fully
|
|
1723
|
+
* replaces the inline tools only — shared tools stay attached unless `tool_ids`
|
|
1724
|
+
* changes. Each tool type except `function`, `webhook`, and `client_side_tool`
|
|
1725
|
+
* allows at most one instance per assistant across both sources.
|
|
1576
1726
|
*/
|
|
1577
1727
|
tools?: Array<AssistantTool>;
|
|
1578
1728
|
transcription?: TranscriptionSettings;
|
|
@@ -1589,7 +1739,7 @@ export interface InferenceEmbedding {
|
|
|
1589
1739
|
* Human-readable name for the assistant version.
|
|
1590
1740
|
*/
|
|
1591
1741
|
version_name?: string;
|
|
1592
|
-
voice_settings?:
|
|
1742
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
1593
1743
|
/**
|
|
1594
1744
|
* Configuration settings for the assistant's web widget.
|
|
1595
1745
|
*/
|
|
@@ -1612,6 +1762,11 @@ export interface InferenceEmbeddingInterruptionSettings {
|
|
|
1612
1762
|
* Whether users can interrupt the assistant while it is speaking.
|
|
1613
1763
|
*/
|
|
1614
1764
|
enable?: boolean;
|
|
1765
|
+
/**
|
|
1766
|
+
* Interrupt-prediction sensitivity, from 0.0 to 1.0. Set to null or 0.0 to disable
|
|
1767
|
+
* interrupt prediction.
|
|
1768
|
+
*/
|
|
1769
|
+
interrupt_prediction_threshold?: number | null;
|
|
1615
1770
|
/**
|
|
1616
1771
|
* Controls when the assistant starts speaking after the user stops. These
|
|
1617
1772
|
* thresholds primarily apply to non turn-taking transcription models. For
|
|
@@ -1620,9 +1775,141 @@ export interface InferenceEmbeddingInterruptionSettings {
|
|
|
1620
1775
|
*/
|
|
1621
1776
|
start_speaking_plan?: StartSpeakingPlan;
|
|
1622
1777
|
}
|
|
1778
|
+
export interface InferenceEmbeddingVoiceSettings {
|
|
1779
|
+
/**
|
|
1780
|
+
* The voice to be used by the voice assistant. Check the full list of
|
|
1781
|
+
* [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
|
|
1782
|
+
* via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
|
|
1783
|
+
* key as an integration secret under the `api_key_ref` field. See
|
|
1784
|
+
* [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
1785
|
+
* for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
|
|
1786
|
+
* Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
|
|
1787
|
+
* (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
|
|
1788
|
+
* The voice portion of the identifier supports
|
|
1789
|
+
* [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
1790
|
+
* using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
|
|
1791
|
+
* resolved at call time from your dynamic variables webhook, allowing you to
|
|
1792
|
+
* select the voice dynamically per call.
|
|
1793
|
+
*/
|
|
1794
|
+
voice: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* The `identifier` for an integration secret
|
|
1797
|
+
* [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
1798
|
+
* that refers to your ElevenLabs API key. Warning: Free plans are unlikely to work
|
|
1799
|
+
* with this integration.
|
|
1800
|
+
*/
|
|
1801
|
+
api_key_ref?: string;
|
|
1802
|
+
/**
|
|
1803
|
+
* Optional background audio to play on the call. Use a predefined media bed, or
|
|
1804
|
+
* supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
|
|
1805
|
+
* preview it before saving.
|
|
1806
|
+
*/
|
|
1807
|
+
background_audio?: InferenceEmbeddingVoiceSettings.UnionMember0 | InferenceEmbeddingVoiceSettings.UnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
|
|
1808
|
+
/**
|
|
1809
|
+
* Enables emotionally expressive speech using SSML emotion tags. When enabled, the
|
|
1810
|
+
* assistant uses audio tags like angry, excited, content, and sad to add emotional
|
|
1811
|
+
* nuance. Only supported for Telnyx Ultra voices.
|
|
1812
|
+
*/
|
|
1813
|
+
expressive_mode?: boolean;
|
|
1814
|
+
/**
|
|
1815
|
+
* Enhances recognition for specific languages and dialects during MiniMax TTS
|
|
1816
|
+
* synthesis. Default is null (no boost). Set to 'auto' for automatic language
|
|
1817
|
+
* detection. Only applicable when using MiniMax voices.
|
|
1818
|
+
*/
|
|
1819
|
+
language_boost?: 'auto' | 'Chinese' | 'Chinese,Yue' | 'English' | 'Arabic' | 'Russian' | 'Spanish' | 'French' | 'Portuguese' | 'German' | 'Turkish' | 'Dutch' | 'Ukrainian' | 'Vietnamese' | 'Indonesian' | 'Japanese' | 'Italian' | 'Korean' | 'Thai' | 'Polish' | 'Romanian' | 'Greek' | 'Czech' | 'Finnish' | 'Hindi' | 'Bulgarian' | 'Danish' | 'Hebrew' | 'Malay' | 'Persian' | 'Slovak' | 'Swedish' | 'Croatian' | 'Filipino' | 'Hungarian' | 'Norwegian' | 'Slovenian' | 'Catalan' | 'Nynorsk' | 'Tamil' | 'Afrikaans' | null;
|
|
1820
|
+
/**
|
|
1821
|
+
* Determines how closely the AI should adhere to the original voice when
|
|
1822
|
+
* attempting to replicate it. Only applicable when using ElevenLabs.
|
|
1823
|
+
*/
|
|
1824
|
+
similarity_boost?: number;
|
|
1825
|
+
/**
|
|
1826
|
+
* Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
|
|
1827
|
+
* values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
|
|
1828
|
+
*/
|
|
1829
|
+
speed?: number;
|
|
1830
|
+
/**
|
|
1831
|
+
* Determines the style exaggeration of the voice. Amplifies speaker style but
|
|
1832
|
+
* consumes additional resources when set above 0. Only applicable when using
|
|
1833
|
+
* ElevenLabs.
|
|
1834
|
+
*/
|
|
1835
|
+
style?: number;
|
|
1836
|
+
/**
|
|
1837
|
+
* Determines how stable the voice is and the randomness between each generation.
|
|
1838
|
+
* Lower values create a broader emotional range; higher values produce more
|
|
1839
|
+
* consistent, monotonous output. Only applicable when using ElevenLabs.
|
|
1840
|
+
*/
|
|
1841
|
+
temperature?: number;
|
|
1842
|
+
/**
|
|
1843
|
+
* Amplifies similarity to the original speaker voice. Increases computational load
|
|
1844
|
+
* and latency slightly. Only applicable when using ElevenLabs.
|
|
1845
|
+
*/
|
|
1846
|
+
use_speaker_boost?: boolean;
|
|
1847
|
+
/**
|
|
1848
|
+
* The speed of the voice in the range [0.25, 2.0]. 1.0 is deafult speed. Larger
|
|
1849
|
+
* numbers make the voice faster, smaller numbers make it slower. This is only
|
|
1850
|
+
* applicable for Telnyx Natural voices and Soniox voices (0.7 to 1.3 for Soniox).
|
|
1851
|
+
*/
|
|
1852
|
+
voice_speed?: number;
|
|
1853
|
+
}
|
|
1854
|
+
export declare namespace InferenceEmbeddingVoiceSettings {
|
|
1855
|
+
interface UnionMember0 {
|
|
1856
|
+
/**
|
|
1857
|
+
* Select from predefined media options.
|
|
1858
|
+
*/
|
|
1859
|
+
type: 'predefined_media';
|
|
1860
|
+
/**
|
|
1861
|
+
* The predefined media to use. `silence` disables background audio.
|
|
1862
|
+
*/
|
|
1863
|
+
value: 'silence' | 'office';
|
|
1864
|
+
/**
|
|
1865
|
+
* Volume level for the predefined background audio. Supports values from 0.1 to
|
|
1866
|
+
* 1.0 in 0.1 increments.
|
|
1867
|
+
*/
|
|
1868
|
+
volume?: number;
|
|
1869
|
+
}
|
|
1870
|
+
interface UnionMember1 {
|
|
1871
|
+
/**
|
|
1872
|
+
* Provide a direct URL to an MP3 file. The audio will loop during the call.
|
|
1873
|
+
*/
|
|
1874
|
+
type: 'media_url';
|
|
1875
|
+
/**
|
|
1876
|
+
* HTTPS URL to an MP3 file.
|
|
1877
|
+
*/
|
|
1878
|
+
value: string;
|
|
1879
|
+
}
|
|
1880
|
+
interface UnionMember2 {
|
|
1881
|
+
/**
|
|
1882
|
+
* Reference a previously uploaded media by its name from Telnyx Media Storage.
|
|
1883
|
+
*/
|
|
1884
|
+
type: 'media_name';
|
|
1885
|
+
/**
|
|
1886
|
+
* The `name` of a media asset created via
|
|
1887
|
+
* [Media Storage API](https://developers.telnyx.com/api/media-storage/create-media-storage).
|
|
1888
|
+
* The audio will loop during the call.
|
|
1889
|
+
*/
|
|
1890
|
+
value: string;
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1623
1893
|
export interface InferenceEmbeddingWebhookToolParams {
|
|
1624
1894
|
type: 'webhook';
|
|
1625
1895
|
webhook: InferenceEmbeddingWebhookToolParams.Webhook;
|
|
1896
|
+
/**
|
|
1897
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1898
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1899
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1900
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1901
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1902
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1903
|
+
* per assistant).
|
|
1904
|
+
*/
|
|
1905
|
+
shared?: boolean;
|
|
1906
|
+
/**
|
|
1907
|
+
* The maximum number of milliseconds to wait for the webhook to respond before the
|
|
1908
|
+
* tool call is aborted. Set this at the tool level, as a sibling of `type` — a
|
|
1909
|
+
* `timeout_ms` nested inside the `webhook` object is stored but not applied, and
|
|
1910
|
+
* the tool runs at this default instead. Applies when `webhook.async` is false.
|
|
1911
|
+
*/
|
|
1912
|
+
timeout_ms?: number;
|
|
1626
1913
|
}
|
|
1627
1914
|
export declare namespace InferenceEmbeddingWebhookToolParams {
|
|
1628
1915
|
interface Webhook {
|
|
@@ -1722,11 +2009,6 @@ export declare namespace InferenceEmbeddingWebhookToolParams {
|
|
|
1722
2009
|
* dot-notation path to the value in the response body.
|
|
1723
2010
|
*/
|
|
1724
2011
|
store_fields_as_variables?: Array<Webhook.StoreFieldsAsVariable>;
|
|
1725
|
-
/**
|
|
1726
|
-
* The maximum number of milliseconds to wait for the webhook to respond. Only
|
|
1727
|
-
* applicable when async is false.
|
|
1728
|
-
*/
|
|
1729
|
-
timeout_ms?: number;
|
|
1730
2012
|
}
|
|
1731
2013
|
namespace Webhook {
|
|
1732
2014
|
/**
|
|
@@ -1921,10 +2203,10 @@ export type ObservabilityStatus = 'enabled' | 'disabled';
|
|
|
1921
2203
|
/**
|
|
1922
2204
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
1923
2205
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
1924
|
-
* execute tool calls such as
|
|
1925
|
-
*
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
2206
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
2207
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
2208
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
2209
|
+
* unavailable. Beta feature.
|
|
1928
2210
|
*/
|
|
1929
2211
|
export interface PostConversationSettings {
|
|
1930
2212
|
/**
|
|
@@ -1937,10 +2219,10 @@ export interface PostConversationSettings {
|
|
|
1937
2219
|
/**
|
|
1938
2220
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
1939
2221
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
1940
|
-
* execute tool calls such as
|
|
1941
|
-
*
|
|
1942
|
-
*
|
|
1943
|
-
*
|
|
2222
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
2223
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
2224
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
2225
|
+
* unavailable. Beta feature.
|
|
1944
2226
|
*/
|
|
1945
2227
|
export interface PostConversationSettingsReq {
|
|
1946
2228
|
/**
|
|
@@ -1960,6 +2242,21 @@ export interface PrivacySettings {
|
|
|
1960
2242
|
* force regardless of your selection here.
|
|
1961
2243
|
*/
|
|
1962
2244
|
data_retention?: boolean;
|
|
2245
|
+
/**
|
|
2246
|
+
* Requires every model call made for a web chat turn to be received and served
|
|
2247
|
+
* inside your organization's data-locality region, rather than only stored there.
|
|
2248
|
+
* Applies to web chat only — voice and messaging assistants are unaffected.
|
|
2249
|
+
* Enabling it requires a data-locality region with in-region inference (USA, EU,
|
|
2250
|
+
* AUS, UAE; see
|
|
2251
|
+
* [Inference regions](https://developers.telnyx.com/docs/inference/models/regions))
|
|
2252
|
+
* and Telnyx-hosted models for the assistant, its fallback, and any
|
|
2253
|
+
* conversation-flow node that overrides the model; the request is rejected
|
|
2254
|
+
* otherwise. Once enabled, send chat requests to your region's API hostname: a
|
|
2255
|
+
* request entering the platform in another region is rejected rather than
|
|
2256
|
+
* forwarded, because forwarding it would already have moved the content across the
|
|
2257
|
+
* border. Defaults to false.
|
|
2258
|
+
*/
|
|
2259
|
+
in_transit_data_locality?: boolean;
|
|
1963
2260
|
}
|
|
1964
2261
|
/**
|
|
1965
2262
|
* Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
@@ -1972,6 +2269,16 @@ export type PromptSyncStatus = 'enabled' | 'disabled';
|
|
|
1972
2269
|
export interface RetrievalTool {
|
|
1973
2270
|
retrieval: ChatAPI.BucketIDs;
|
|
1974
2271
|
type: 'retrieval';
|
|
2272
|
+
/**
|
|
2273
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2274
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2275
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
2276
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2277
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2278
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2279
|
+
* per assistant).
|
|
2280
|
+
*/
|
|
2281
|
+
shared?: boolean;
|
|
1975
2282
|
}
|
|
1976
2283
|
/**
|
|
1977
2284
|
* A standalone scripted-message step in a flow, as returned by the API.
|
|
@@ -2084,13 +2391,16 @@ export interface TelephonySettings {
|
|
|
2084
2391
|
*/
|
|
2085
2392
|
fallback_destination?: string;
|
|
2086
2393
|
/**
|
|
2087
|
-
* The noise suppression engine to use.
|
|
2088
|
-
*
|
|
2394
|
+
* The noise suppression engine to use. 'aicoustics' is STT-optimized and
|
|
2395
|
+
* recommended for AI assistants (configure through noise_suppression_config). Use
|
|
2396
|
+
* 'disabled' to turn off noise suppression.
|
|
2089
2397
|
*/
|
|
2090
|
-
noise_suppression?: 'krisp' | 'deepfilternet' | 'disabled';
|
|
2398
|
+
noise_suppression?: 'aicoustics' | 'krisp' | 'deepfilternet' | 'disabled';
|
|
2091
2399
|
/**
|
|
2092
|
-
* Configuration for noise suppression.
|
|
2093
|
-
* 'deepfilternet'
|
|
2400
|
+
* Configuration for noise suppression. Applicable fields depend on the engine:
|
|
2401
|
+
* 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
|
|
2402
|
+
* 'family', 'size' and 'enhancement_level' only when noise_suppression is
|
|
2403
|
+
* 'aicoustics'.
|
|
2094
2404
|
*/
|
|
2095
2405
|
noise_suppression_config?: TelephonySettings.NoiseSuppressionConfig;
|
|
2096
2406
|
/**
|
|
@@ -2146,18 +2456,38 @@ export interface TelephonySettings {
|
|
|
2146
2456
|
}
|
|
2147
2457
|
export declare namespace TelephonySettings {
|
|
2148
2458
|
/**
|
|
2149
|
-
* Configuration for noise suppression.
|
|
2150
|
-
* 'deepfilternet'
|
|
2459
|
+
* Configuration for noise suppression. Applicable fields depend on the engine:
|
|
2460
|
+
* 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
|
|
2461
|
+
* 'family', 'size' and 'enhancement_level' only when noise_suppression is
|
|
2462
|
+
* 'aicoustics'.
|
|
2151
2463
|
*/
|
|
2152
2464
|
interface NoiseSuppressionConfig {
|
|
2153
2465
|
/**
|
|
2154
|
-
* Attenuation limit for noise suppression. Range: 0-100.
|
|
2466
|
+
* Attenuation limit for noise suppression. Range: 0-100. Only applicable when
|
|
2467
|
+
* noise_suppression is 'deepfilternet'.
|
|
2155
2468
|
*/
|
|
2156
2469
|
attenuation_limit?: number;
|
|
2157
2470
|
/**
|
|
2158
|
-
*
|
|
2471
|
+
* AiCoustics enhancement intensity. Range: 0-1. Only applicable when
|
|
2472
|
+
* noise_suppression is 'aicoustics'.
|
|
2473
|
+
*/
|
|
2474
|
+
enhancement_level?: number;
|
|
2475
|
+
/**
|
|
2476
|
+
* AiCoustics model family optimized for Voice AI and STT. Only applicable when
|
|
2477
|
+
* noise_suppression is 'aicoustics'.
|
|
2478
|
+
*/
|
|
2479
|
+
family?: 'quail';
|
|
2480
|
+
/**
|
|
2481
|
+
* Mode for noise suppression configuration. Only applicable when noise_suppression
|
|
2482
|
+
* is 'deepfilternet'.
|
|
2159
2483
|
*/
|
|
2160
2484
|
mode?: 'advanced';
|
|
2485
|
+
/**
|
|
2486
|
+
* AiCoustics model size. 'vf' tracks the latest model release; 'vf_2_0_l' is
|
|
2487
|
+
* pinned to version 2.0 for consistent, predictable behavior. Only applicable when
|
|
2488
|
+
* noise_suppression is 'aicoustics'.
|
|
2489
|
+
*/
|
|
2490
|
+
size?: 'vf' | 'vf_2_0_l';
|
|
2161
2491
|
}
|
|
2162
2492
|
/**
|
|
2163
2493
|
* Configuration for call recording format and channel settings.
|
|
@@ -2366,21 +2696,24 @@ export interface TranscriptionSettings {
|
|
|
2366
2696
|
* - `deepgram/nova-3` is multilingual with automatic language detection.
|
|
2367
2697
|
* - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
|
|
2368
2698
|
* - `azure/fast` is a multilingual Azure transcription model.
|
|
2369
|
-
* - `assemblyai/universal-
|
|
2370
|
-
* configurable turn detection.
|
|
2699
|
+
* - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
|
|
2700
|
+
* configurable turn detection. The legacy alias `assemblyai/universal-streaming`
|
|
2701
|
+
* is still accepted and resolves to the same model.
|
|
2371
2702
|
* - `xai/grok-stt` is a multilingual Grok STT model.
|
|
2372
2703
|
* - `soniox/stt-rt-v4` and `soniox/stt-rt-v5` are multilingual streaming models
|
|
2373
2704
|
* with automatic language detection, configurable endpointing, term biasing
|
|
2374
2705
|
* (`context`), and `language_hints`.
|
|
2375
2706
|
* - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
|
|
2376
2707
|
* language detection.
|
|
2708
|
+
* - `omi-health/omi-med-stt-v1` is an English-only medical transcription model
|
|
2709
|
+
* (Parakeet-based).
|
|
2377
2710
|
* - `humain/realtime` is a streaming model with native Arabic and Arabic/English
|
|
2378
2711
|
* code-switching support.
|
|
2379
2712
|
* - `reson8/turns` is a turn-based streaming model covering 10 European languages
|
|
2380
2713
|
* with automatic language detection.
|
|
2381
2714
|
* - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
|
|
2382
2715
|
*/
|
|
2383
|
-
model?: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
|
|
2716
|
+
model?: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
|
|
2384
2717
|
/**
|
|
2385
2718
|
* Region on third party cloud providers (currently Azure) if using one of their
|
|
2386
2719
|
* models. Some regions require `api_key_ref`.
|
|
@@ -2412,9 +2745,9 @@ export interface TranscriptionSettingsConfig {
|
|
|
2412
2745
|
*/
|
|
2413
2746
|
enable_endpoint_detection?: boolean;
|
|
2414
2747
|
/**
|
|
2415
|
-
* Available only for assemblyai/universal-
|
|
2416
|
-
*
|
|
2417
|
-
* turn.
|
|
2748
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
2749
|
+
* assemblyai/universal-streaming). Confidence level required to trigger an end of
|
|
2750
|
+
* turn. Higher values require more certainty before ending a turn.
|
|
2418
2751
|
*/
|
|
2419
2752
|
end_of_turn_confidence_threshold?: number;
|
|
2420
2753
|
/**
|
|
@@ -2455,14 +2788,15 @@ export interface TranscriptionSettingsConfig {
|
|
|
2455
2788
|
*/
|
|
2456
2789
|
max_endpoint_delay_ms?: number;
|
|
2457
2790
|
/**
|
|
2458
|
-
* Available only for assemblyai/universal-
|
|
2459
|
-
*
|
|
2791
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
2792
|
+
* assemblyai/universal-streaming). Maximum duration of silence in milliseconds
|
|
2793
|
+
* before forcing an end of turn.
|
|
2460
2794
|
*/
|
|
2461
2795
|
max_turn_silence?: number;
|
|
2462
2796
|
/**
|
|
2463
|
-
* Available only for assemblyai/universal-
|
|
2464
|
-
*
|
|
2465
|
-
* max_turn_silence.
|
|
2797
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
2798
|
+
* assemblyai/universal-streaming). Minimum duration of silence in milliseconds
|
|
2799
|
+
* before a turn can end. Must be less than or equal to max_turn_silence.
|
|
2466
2800
|
*/
|
|
2467
2801
|
min_turn_silence?: number;
|
|
2468
2802
|
numerals?: boolean;
|
|
@@ -2615,6 +2949,13 @@ export declare namespace VoiceSettings {
|
|
|
2615
2949
|
export interface WebhookTool {
|
|
2616
2950
|
type: 'webhook';
|
|
2617
2951
|
webhook: WebhookTool.Webhook;
|
|
2952
|
+
/**
|
|
2953
|
+
* The maximum number of milliseconds to wait for the webhook to respond before the
|
|
2954
|
+
* tool call is aborted. Set this at the tool level, as a sibling of `type` — a
|
|
2955
|
+
* `timeout_ms` nested inside the `webhook` object is not applied, and the tool
|
|
2956
|
+
* runs at this default instead.
|
|
2957
|
+
*/
|
|
2958
|
+
timeout_ms?: number;
|
|
2618
2959
|
}
|
|
2619
2960
|
export declare namespace WebhookTool {
|
|
2620
2961
|
interface Webhook {
|
|
@@ -2934,10 +3275,10 @@ export interface AssistantCreateParams {
|
|
|
2934
3275
|
/**
|
|
2935
3276
|
* Body param: Configuration for post-conversation processing. When enabled, the
|
|
2936
3277
|
* assistant receives one additional LLM turn after the conversation ends, allowing
|
|
2937
|
-
* it to execute tool calls such as
|
|
2938
|
-
*
|
|
2939
|
-
*
|
|
2940
|
-
*
|
|
3278
|
+
* it to execute final tool calls such as sending a summary or updating a record
|
|
3279
|
+
* via webhook or function tools. Integration and MCP server tools are not
|
|
3280
|
+
* available post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
3281
|
+
* unavailable. Beta feature.
|
|
2941
3282
|
*/
|
|
2942
3283
|
post_conversation_settings?: PostConversationSettingsReq;
|
|
2943
3284
|
/**
|
|
@@ -2971,7 +3312,7 @@ export interface AssistantCreateParams {
|
|
|
2971
3312
|
/**
|
|
2972
3313
|
* Body param
|
|
2973
3314
|
*/
|
|
2974
|
-
voice_settings?:
|
|
3315
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
2975
3316
|
/**
|
|
2976
3317
|
* Body param: Configuration settings for the assistant's web widget.
|
|
2977
3318
|
*/
|
|
@@ -3142,10 +3483,10 @@ export interface AssistantUpdateParams {
|
|
|
3142
3483
|
/**
|
|
3143
3484
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
3144
3485
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
3145
|
-
* execute tool calls such as
|
|
3146
|
-
*
|
|
3147
|
-
*
|
|
3148
|
-
*
|
|
3486
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
3487
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
3488
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
3489
|
+
* unavailable. Beta feature.
|
|
3149
3490
|
*/
|
|
3150
3491
|
post_conversation_settings?: PostConversationSettingsReq;
|
|
3151
3492
|
privacy_settings?: PrivacySettings;
|
|
@@ -3162,13 +3503,24 @@ export interface AssistantUpdateParams {
|
|
|
3162
3503
|
telephony_settings?: TelephonySettings;
|
|
3163
3504
|
/**
|
|
3164
3505
|
* IDs of shared tools to attach to the assistant. New integrations should prefer
|
|
3165
|
-
* `tool_ids` over inline `tools`.
|
|
3506
|
+
* `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
|
|
3507
|
+
* replaces the assistant's attached shared tools; omit the field to leave them
|
|
3508
|
+
* unchanged. Single-instance tool types are counted across inline `tools` and
|
|
3509
|
+
* `tool_ids` combined, so attaching a shared tool of such a type when an instance
|
|
3510
|
+
* already exists returns HTTP 400 with error code 10015.
|
|
3166
3511
|
*/
|
|
3167
3512
|
tool_ids?: Array<string>;
|
|
3168
3513
|
/**
|
|
3169
3514
|
* Deprecated for new integrations. Inline tool definitions available to the
|
|
3170
3515
|
* assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
|
|
3171
|
-
* endpoints.
|
|
3516
|
+
* endpoints. On update, a sent `tools` array fully replaces the assistant's inline
|
|
3517
|
+
* tools; omit the field to leave the inline tools unchanged. Each tool type except
|
|
3518
|
+
* `function`, `webhook`, and `client_side_tool` allows at most one instance per
|
|
3519
|
+
* assistant, counted across inline `tools` and shared `tool_ids` combined —
|
|
3520
|
+
* sending a duplicate of such a type returns HTTP 400 with error code 10015.
|
|
3521
|
+
* Responses merge shared tools into `tools` with `shared: true`; when updating,
|
|
3522
|
+
* omit those tools from the `tools` array and manage them through `tool_ids`
|
|
3523
|
+
* instead.
|
|
3172
3524
|
*/
|
|
3173
3525
|
tools?: Array<AssistantTool>;
|
|
3174
3526
|
transcription?: TranscriptionSettings;
|
|
@@ -3176,7 +3528,7 @@ export interface AssistantUpdateParams {
|
|
|
3176
3528
|
* Human-readable name for the assistant version.
|
|
3177
3529
|
*/
|
|
3178
3530
|
version_name?: string;
|
|
3179
|
-
voice_settings?:
|
|
3531
|
+
voice_settings?: InferenceEmbeddingVoiceSettings;
|
|
3180
3532
|
/**
|
|
3181
3533
|
* Configuration settings for the assistant's web widget.
|
|
3182
3534
|
*/
|
|
@@ -3253,7 +3605,7 @@ export interface AssistantSendSMSParams {
|
|
|
3253
3605
|
'Idempotency-Key'?: string;
|
|
3254
3606
|
}
|
|
3255
3607
|
export declare namespace Assistants {
|
|
3256
|
-
export { type ArithmeticExpression as ArithmeticExpression, type Assistant as Assistant, type AssistantA2AAgent as AssistantA2AAgent, type AssistantIntegration as AssistantIntegration, type AssistantMcpServer as AssistantMcpServer, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type AuthenticationMethod as AuthenticationMethod, type BooleanOpExpression as BooleanOpExpression, type ComparisonExpression as ComparisonExpression, type ConversationFlow as ConversationFlow, type ConversationFlowReq as ConversationFlowReq, type EnabledFeatures as EnabledFeatures, type Expression as Expression, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type FlowEdge as FlowEdge, type FlowNode as FlowNode, type FlowNodeReq as FlowNodeReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type NodePosition as NodePosition, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type ObservabilityStatus as ObservabilityStatus, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type PromptSyncStatus as PromptSyncStatus, type RetrievalTool as RetrievalTool, type SpeakNode as SpeakNode, type SpeakNodeReq as SpeakNodeReq, type StartSpeakingPlan as StartSpeakingPlan, type TelephonySettings as TelephonySettings, type ToolNode as ToolNode, type ToolNodeReq as ToolNodeReq, type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantImportsParams as AssistantImportsParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantCloneParams as AssistantCloneParams, type AssistantSendSMSParams as AssistantSendSMSParams, };
|
|
3608
|
+
export { type ArithmeticExpression as ArithmeticExpression, type Assistant as Assistant, type AssistantA2AAgent as AssistantA2AAgent, type AssistantIntegration as AssistantIntegration, type AssistantMcpServer as AssistantMcpServer, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type AuthenticationMethod as AuthenticationMethod, type BooleanOpExpression as BooleanOpExpression, type ComparisonExpression as ComparisonExpression, type ConversationFlow as ConversationFlow, type ConversationFlowReq as ConversationFlowReq, type EnabledFeatures as EnabledFeatures, type Expression as Expression, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type FlowEdge as FlowEdge, type FlowNode as FlowNode, type FlowNodeReq as FlowNodeReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings as InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type NodePosition as NodePosition, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type ObservabilityStatus as ObservabilityStatus, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type PromptSyncStatus as PromptSyncStatus, type RetrievalTool as RetrievalTool, type SpeakNode as SpeakNode, type SpeakNodeReq as SpeakNodeReq, type StartSpeakingPlan as StartSpeakingPlan, type TelephonySettings as TelephonySettings, type ToolNode as ToolNode, type ToolNodeReq as ToolNodeReq, type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantImportsParams as AssistantImportsParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantCloneParams as AssistantCloneParams, type AssistantSendSMSParams as AssistantSendSMSParams, };
|
|
3257
3609
|
export { Tests as Tests, type AssistantTest as AssistantTest, type TelnyxConversationChannel as TelnyxConversationChannel, type AssistantTestsDefaultFlatPagination as AssistantTestsDefaultFlatPagination, type TestListParams as TestListParams, type TestCreateParams as TestCreateParams, type TestUpdateParams as TestUpdateParams, };
|
|
3258
3610
|
export { CanaryDeploys as CanaryDeploys, type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type Clause as Clause, type RolloutSlot as RolloutSlot, type RuleInput as RuleInput, type RuleOutput as RuleOutput, type Serve as Serve, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
|
|
3259
3611
|
export { ScheduledEvents as ScheduledEvents, type ConversationChannelType as ConversationChannelType, type EventStatus as EventStatus, type ScheduledCallSettings as ScheduledCallSettings, type ScheduledEventResponse as ScheduledEventResponse, type ScheduledPhoneCallEventResponse as ScheduledPhoneCallEventResponse, type ScheduledSMSEventResponse as ScheduledSMSEventResponse, type ScheduledEventListResponse as ScheduledEventListResponse, type ScheduledEventListResponsesDefaultFlatPagination as ScheduledEventListResponsesDefaultFlatPagination, type ScheduledEventListParams as ScheduledEventListParams, type ScheduledEventCreateParams as ScheduledEventCreateParams, type ScheduledEventDeleteParams as ScheduledEventDeleteParams, type ScheduledEventRetrieveParams as ScheduledEventRetrieveParams, };
|