telnyx 7.21.0 → 7.23.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 +39 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -6
- package/client.d.ts.map +1 -1
- package/client.js +33 -0
- package/client.js.map +1 -1
- package/client.mjs +33 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +8 -4
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +8 -4
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +5 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +408 -47
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +408 -47
- 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 +59 -12
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +59 -12
- 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 +59 -28
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +59 -28
- 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/index.d.mts +3 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +3 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +2 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +67 -29
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +67 -29
- 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 +274 -0
- package/resources/ai/typesafe/v1.d.mts.map +1 -0
- package/resources/ai/typesafe/v1.d.ts +274 -0
- package/resources/ai/typesafe/v1.d.ts.map +1 -0
- package/resources/ai/typesafe/v1.js +67 -0
- package/resources/ai/typesafe/v1.js.map +1 -0
- package/resources/ai/typesafe/v1.mjs +63 -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 +57 -11
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +57 -11
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +45 -5
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +45 -5
- 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/compute/compute.d.mts +10 -0
- package/resources/compute/compute.d.mts.map +1 -0
- package/resources/compute/compute.d.ts +10 -0
- package/resources/compute/compute.d.ts.map +1 -0
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -0
- package/resources/compute/compute.mjs +12 -0
- package/resources/compute/compute.mjs.map +1 -0
- 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 +2 -0
- package/resources/compute/funcs.d.mts.map +1 -0
- package/resources/compute/funcs.d.ts +2 -0
- package/resources/compute/funcs.d.ts.map +1 -0
- package/resources/compute/funcs.js +6 -0
- package/resources/compute/funcs.js.map +1 -0
- package/resources/compute/funcs.mjs +3 -0
- package/resources/compute/funcs.mjs.map +1 -0
- package/resources/compute/index.d.mts +3 -0
- package/resources/compute/index.d.mts.map +1 -0
- package/resources/compute/index.d.ts +3 -0
- package/resources/compute/index.d.ts.map +1 -0
- package/resources/compute/index.js +9 -0
- package/resources/compute/index.js.map +1 -0
- package/resources/compute/index.mjs +4 -0
- package/resources/compute/index.mjs.map +1 -0
- package/resources/compute.d.mts +2 -0
- package/resources/compute.d.mts.map +1 -0
- package/resources/compute.d.ts +2 -0
- package/resources/compute.d.ts.map +1 -0
- package/resources/compute.js +6 -0
- package/resources/compute.js.map +1 -0
- package/resources/compute.mjs +3 -0
- package/resources/compute.mjs.map +1 -0
- 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/credential-connections/credential-connections.d.mts +4 -1
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +4 -1
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/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-inboxes/drafts.d.mts +7 -0
- package/resources/email-inboxes/drafts.d.mts.map +1 -1
- package/resources/email-inboxes/drafts.d.ts +7 -0
- package/resources/email-inboxes/drafts.d.ts.map +1 -1
- package/resources/email-messages/email-messages.d.mts +9 -3
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +9 -3
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js +5 -1
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs +5 -1
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/fqdn-connections/fqdn-authentication.d.mts +4 -1
- package/resources/fqdn-connections/fqdn-authentication.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-authentication.d.ts +4 -1
- package/resources/fqdn-connections/fqdn-authentication.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +4 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +4 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
- package/resources/index.d.mts +9 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +16 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -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/messages/messages.d.mts +207 -22
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +207 -22
- 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/messaging-profiles/index.d.mts +1 -1
- package/resources/messaging-profiles/index.d.mts.map +1 -1
- package/resources/messaging-profiles/index.d.ts +1 -1
- package/resources/messaging-profiles/index.d.ts.map +1 -1
- package/resources/messaging-profiles/index.js.map +1 -1
- package/resources/messaging-profiles/index.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +34 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +34 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.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/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 +117 -0
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +117 -0
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- 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/uac-connections/uac-connections.d.mts +9 -2
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +9 -2
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/voice-clones.d.mts +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 +154 -51
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +154 -51
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts +33 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts +33 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -1
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -1
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +147 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +147 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +16 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +16 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +2 -2
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +2 -2
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/resources/x402/credit-account/credit-account.d.mts +226 -0
- package/resources/x402/credit-account/credit-account.d.mts.map +1 -0
- package/resources/x402/credit-account/credit-account.d.ts +226 -0
- package/resources/x402/credit-account/credit-account.d.ts.map +1 -0
- package/resources/x402/credit-account/credit-account.js +66 -0
- package/resources/x402/credit-account/credit-account.js.map +1 -0
- package/resources/x402/credit-account/credit-account.mjs +61 -0
- package/resources/x402/credit-account/credit-account.mjs.map +1 -0
- package/resources/x402/credit-account/index.d.mts +3 -0
- package/resources/x402/credit-account/index.d.mts.map +1 -0
- package/resources/x402/credit-account/index.d.ts +3 -0
- package/resources/x402/credit-account/index.d.ts.map +1 -0
- package/resources/x402/credit-account/index.js +9 -0
- package/resources/x402/credit-account/index.js.map +1 -0
- package/resources/x402/credit-account/index.mjs +4 -0
- package/resources/x402/credit-account/index.mjs.map +1 -0
- package/resources/x402/credit-account/payments.d.mts +90 -0
- package/resources/x402/credit-account/payments.d.mts.map +1 -0
- package/resources/x402/credit-account/payments.d.ts +90 -0
- package/resources/x402/credit-account/payments.d.ts.map +1 -0
- package/resources/x402/credit-account/payments.js +47 -0
- package/resources/x402/credit-account/payments.js.map +1 -0
- package/resources/x402/credit-account/payments.mjs +43 -0
- package/resources/x402/credit-account/payments.mjs.map +1 -0
- package/resources/x402/credit-account.d.mts +1 -221
- package/resources/x402/credit-account.d.mts.map +1 -1
- package/resources/x402/credit-account.d.ts +1 -221
- package/resources/x402/credit-account.d.ts.map +1 -1
- package/resources/x402/credit-account.js +2 -54
- package/resources/x402/credit-account.js.map +1 -1
- package/resources/x402/credit-account.mjs +1 -52
- package/resources/x402/credit-account.mjs.map +1 -1
- package/resources/x402/index.d.mts +1 -1
- package/resources/x402/index.d.mts.map +1 -1
- package/resources/x402/index.d.ts +1 -1
- package/resources/x402/index.d.ts.map +1 -1
- package/resources/x402/index.js +2 -2
- package/resources/x402/index.js.map +1 -1
- package/resources/x402/index.mjs +1 -1
- package/resources/x402/index.mjs.map +1 -1
- package/resources/x402/x402.d.mts +2 -2
- package/resources/x402/x402.d.mts.map +1 -1
- package/resources/x402/x402.d.ts +2 -2
- package/resources/x402/x402.d.ts.map +1 -1
- package/resources/x402/x402.js +2 -2
- package/resources/x402/x402.js.map +1 -1
- package/resources/x402/x402.mjs +2 -2
- package/resources/x402/x402.mjs.map +1 -1
- package/src/client.ts +91 -0
- package/src/resources/ai/ai.ts +15 -1
- package/src/resources/ai/assistants/assistants.ts +454 -45
- package/src/resources/ai/assistants/index.ts +1 -0
- package/src/resources/ai/assistants/versions.ts +61 -12
- package/src/resources/ai/audio.ts +93 -45
- package/src/resources/ai/chat.ts +66 -29
- package/src/resources/ai/index.ts +8 -1
- package/src/resources/ai/openai/chat.ts +75 -29
- 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 +298 -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 +65 -10
- package/src/resources/calls/calls.ts +52 -5
- package/src/resources/compute/compute.ts +37 -0
- 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 +3 -0
- package/src/resources/compute/index.ts +15 -0
- package/src/resources/compute.ts +3 -0
- package/src/resources/connections.ts +133 -0
- package/src/resources/credential-connections/credential-connections.ts +4 -1
- package/src/resources/detail-records.ts +18 -1
- package/src/resources/email-inboxes/drafts.ts +8 -0
- package/src/resources/email-messages/email-messages.ts +9 -2
- package/src/resources/fqdn-connections/fqdn-authentication.ts +4 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +4 -1
- package/src/resources/index.ts +27 -0
- package/src/resources/machine-payments.ts +169 -0
- package/src/resources/messages/messages.ts +250 -22
- package/src/resources/messaging-profiles/index.ts +1 -0
- package/src/resources/messaging-profiles/messaging-profiles.ts +39 -0
- package/src/resources/noise-suppression-engines.ts +51 -0
- package/src/resources/speech-to-text/speech-to-text.ts +1 -0
- package/src/resources/texml/accounts/calls/calls.ts +138 -0
- 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/uac-connections/uac-connections.ts +9 -2
- package/src/resources/voice-clones.ts +6 -4
- package/src/resources/webhooks.ts +208 -60
- package/src/resources/whatsapp/business-accounts/phone-numbers.ts +52 -0
- package/src/resources/whatsapp/index.ts +1 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +1 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +222 -0
- package/src/resources/whatsapp/whatsapp.ts +2 -0
- package/src/resources/x402/credit-account/credit-account.ts +312 -0
- package/src/resources/x402/credit-account/index.ts +16 -0
- package/src/resources/x402/credit-account/payments.ts +126 -0
- package/src/resources/x402/credit-account.ts +1 -290
- package/src/resources/x402/index.ts +1 -1
- package/src/resources/x402/x402.ts +2 -2
- 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.mjs";
|
|
|
15
15
|
import { ToolAddParams, ToolAddResponse, ToolRemoveParams, ToolRemoveResponse, ToolTestParams, ToolTestResponse, Tools } from "./tools.mjs";
|
|
16
16
|
import * as VersionsAPI from "./versions.mjs";
|
|
17
17
|
import { UpdateAssistant, VersionDeleteParams, VersionPromoteParams, VersionRetrieveParams, VersionUpdateParams, Versions } from "./versions.mjs";
|
|
18
|
+
import * as OpenAIChatAPI from "../openai/chat.mjs";
|
|
18
19
|
import * as TestsAPI from "./tests/tests.mjs";
|
|
19
20
|
import { AssistantTest, AssistantTestsDefaultFlatPagination, TelnyxConversationChannel, TestCreateParams, TestListParams, TestUpdateParams, Tests } from "./tests/tests.mjs";
|
|
20
21
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
@@ -222,6 +223,113 @@ export interface Assistant {
|
|
|
222
223
|
*/
|
|
223
224
|
tools?: Array<Shared.BookAppointmentTool | Shared.CheckAvailabilityTool | WebhookTool | HangupTool | TransferTool | Shared.CallControlRetrievalTool>;
|
|
224
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* A remote agent, reachable over the A2A (Agent2Agent) protocol, that an assistant
|
|
228
|
+
* can delegate to. Tools are not configured here: at the start of every
|
|
229
|
+
* conversation the agent's card is fetched and one tool is derived per skill the
|
|
230
|
+
* card advertises.
|
|
231
|
+
*/
|
|
232
|
+
export interface AssistantA2AAgent {
|
|
233
|
+
/**
|
|
234
|
+
* Identifies the agent and seeds the names of the tools derived from its card
|
|
235
|
+
* (`a2a_<name>_<skill_id>`). Characters outside `[A-Za-z0-9_]` are replaced with
|
|
236
|
+
* `_` before the tool name is built, so two agents whose names differ only in
|
|
237
|
+
* punctuation collide and are rejected.
|
|
238
|
+
*/
|
|
239
|
+
name: string;
|
|
240
|
+
/**
|
|
241
|
+
* The agent's base URL, or the URL of its agent card. At most 2,048 bytes once
|
|
242
|
+
* UTF-8 encoded. `/.well-known/agent-card.json` is appended to the path unless it
|
|
243
|
+
* already ends in `.json`. Must be an `http://` or `https://` URL for an
|
|
244
|
+
* externally reachable host: internal destinations (`localhost`, private and
|
|
245
|
+
* reserved IP ranges, `.local` domains) are rejected, and the hostname may not
|
|
246
|
+
* contain a `{{...}}` placeholder. Placeholders in the path are allowed.
|
|
247
|
+
*/
|
|
248
|
+
url: string;
|
|
249
|
+
/**
|
|
250
|
+
* When `true`, the assistant hands the turn straight back to the model and the
|
|
251
|
+
* agent's answer is delivered into the conversation once it arrives, instead of
|
|
252
|
+
* the caller waiting for it in silence.
|
|
253
|
+
*/
|
|
254
|
+
async?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Headers sent when fetching this agent's card and on every call made to it. Use
|
|
257
|
+
* them to authenticate to the agent.
|
|
258
|
+
*/
|
|
259
|
+
headers?: Array<AssistantA2AAgent.Header>;
|
|
260
|
+
/**
|
|
261
|
+
* Filler messages spoken while a call to this agent is in progress.
|
|
262
|
+
* `request_start` messages are spoken immediately when the call begins.
|
|
263
|
+
* `request_response_delayed` messages are spoken after `timing_ms` has elapsed
|
|
264
|
+
* only if the agent has not answered yet. Filler messages are not used when
|
|
265
|
+
* `async` is `true`.
|
|
266
|
+
*/
|
|
267
|
+
messages?: Array<AssistantA2AAgent.A2AAgentRequestStartMessage | AssistantA2AAgent.A2AAgentRequestResponseDelayedMessage>;
|
|
268
|
+
/**
|
|
269
|
+
* How often, in milliseconds, to poll an agent task that has not finished yet.
|
|
270
|
+
* Defaults to 500.
|
|
271
|
+
*/
|
|
272
|
+
poll_interval_ms?: number;
|
|
273
|
+
/**
|
|
274
|
+
* Total budget, in milliseconds, for one call to this agent, including any time
|
|
275
|
+
* spent polling a task that is still running. Omit to inherit the assistant's tool
|
|
276
|
+
* timeout.
|
|
277
|
+
*/
|
|
278
|
+
timeout_ms?: number;
|
|
279
|
+
}
|
|
280
|
+
export declare namespace AssistantA2AAgent {
|
|
281
|
+
/**
|
|
282
|
+
* A header sent when fetching an A2A agent's card and on every call made to that
|
|
283
|
+
* agent.
|
|
284
|
+
*/
|
|
285
|
+
interface Header {
|
|
286
|
+
/**
|
|
287
|
+
* HTTP header name. May only contain alphanumeric characters, hyphens, and
|
|
288
|
+
* underscores, or a `{{dynamic_variable}}` placeholder surrounded by those
|
|
289
|
+
* characters.
|
|
290
|
+
*/
|
|
291
|
+
name: string;
|
|
292
|
+
/**
|
|
293
|
+
* Header value, stored exactly as written. It may be a literal, a
|
|
294
|
+
* `{{dynamic_variable}}`, or an
|
|
295
|
+
* `{{#integration_secret}}identifier{{/integration_secret}}` section that resolves
|
|
296
|
+
* to a stored integration secret when the conversation starts. Control characters
|
|
297
|
+
* are not allowed. The encrypted `{{variable | encryption_secret_ref}}` form used
|
|
298
|
+
* for per-caller credentials is not resolved here and is rejected when the
|
|
299
|
+
* assistant is saved.
|
|
300
|
+
*/
|
|
301
|
+
value: string;
|
|
302
|
+
}
|
|
303
|
+
interface A2AAgentRequestStartMessage {
|
|
304
|
+
/**
|
|
305
|
+
* The text the assistant speaks.
|
|
306
|
+
*/
|
|
307
|
+
content: string;
|
|
308
|
+
/**
|
|
309
|
+
* Speak the filler message immediately when the call to the agent begins.
|
|
310
|
+
*/
|
|
311
|
+
type: 'request_start';
|
|
312
|
+
/**
|
|
313
|
+
* An optional delay value. This value is ignored for `request_start` messages.
|
|
314
|
+
*/
|
|
315
|
+
timing_ms?: number;
|
|
316
|
+
}
|
|
317
|
+
interface A2AAgentRequestResponseDelayedMessage {
|
|
318
|
+
/**
|
|
319
|
+
* The text the assistant speaks.
|
|
320
|
+
*/
|
|
321
|
+
content: string;
|
|
322
|
+
/**
|
|
323
|
+
* How long to wait, in milliseconds, before speaking this message.
|
|
324
|
+
*/
|
|
325
|
+
timing_ms: number;
|
|
326
|
+
/**
|
|
327
|
+
* Speak the filler message only if the agent has not answered yet after
|
|
328
|
+
* `timing_ms`.
|
|
329
|
+
*/
|
|
330
|
+
type: 'request_response_delayed';
|
|
331
|
+
}
|
|
332
|
+
}
|
|
225
333
|
/**
|
|
226
334
|
* Reference to a connected integration attached to an assistant. Discover
|
|
227
335
|
* available integrations with `/ai/integrations` and connected integrations with
|
|
@@ -264,11 +372,35 @@ export interface AssistantMcpServer {
|
|
|
264
372
|
* another AI assistant. By default, this will happen transparently to the end
|
|
265
373
|
* user.
|
|
266
374
|
*/
|
|
267
|
-
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;
|
|
268
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
|
+
}
|
|
269
391
|
interface ClientSideTool {
|
|
270
392
|
client_side_tool: ClientSideTool.ClientSideTool;
|
|
271
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;
|
|
272
404
|
}
|
|
273
405
|
namespace ClientSideTool {
|
|
274
406
|
interface ClientSideTool {
|
|
@@ -316,6 +448,16 @@ export declare namespace AssistantTool {
|
|
|
316
448
|
interface Handoff {
|
|
317
449
|
handoff: Handoff.Handoff;
|
|
318
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;
|
|
319
461
|
}
|
|
320
462
|
namespace Handoff {
|
|
321
463
|
interface Handoff {
|
|
@@ -344,9 +486,33 @@ export declare namespace AssistantTool {
|
|
|
344
486
|
}
|
|
345
487
|
}
|
|
346
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
|
+
}
|
|
347
503
|
interface Transfer {
|
|
348
504
|
transfer: Transfer.Transfer;
|
|
349
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;
|
|
350
516
|
}
|
|
351
517
|
namespace Transfer {
|
|
352
518
|
interface Transfer {
|
|
@@ -581,6 +747,16 @@ export declare namespace AssistantTool {
|
|
|
581
747
|
interface Invite {
|
|
582
748
|
invite: Invite.Invite;
|
|
583
749
|
type: 'invite';
|
|
750
|
+
/**
|
|
751
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
752
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
753
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
754
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
755
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
756
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
757
|
+
* per assistant).
|
|
758
|
+
*/
|
|
759
|
+
shared?: boolean;
|
|
584
760
|
}
|
|
585
761
|
namespace Invite {
|
|
586
762
|
interface Invite {
|
|
@@ -659,6 +835,16 @@ export declare namespace AssistantTool {
|
|
|
659
835
|
interface Refer {
|
|
660
836
|
refer: Refer.Refer;
|
|
661
837
|
type: 'refer';
|
|
838
|
+
/**
|
|
839
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
840
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
841
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
842
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
843
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
844
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
845
|
+
* per assistant).
|
|
846
|
+
*/
|
|
847
|
+
shared?: boolean;
|
|
662
848
|
}
|
|
663
849
|
namespace Refer {
|
|
664
850
|
interface Refer {
|
|
@@ -723,6 +909,16 @@ export declare namespace AssistantTool {
|
|
|
723
909
|
[key: string]: unknown;
|
|
724
910
|
};
|
|
725
911
|
type: 'send_dtmf';
|
|
912
|
+
/**
|
|
913
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
914
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
915
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
916
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
917
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
918
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
919
|
+
* per assistant).
|
|
920
|
+
*/
|
|
921
|
+
shared?: boolean;
|
|
726
922
|
}
|
|
727
923
|
/**
|
|
728
924
|
* The send_message tool allows the assistant to send SMS or MMS messages to the
|
|
@@ -733,6 +929,16 @@ export declare namespace AssistantTool {
|
|
|
733
929
|
interface SendMessage {
|
|
734
930
|
send_message: SendMessage.SendMessage;
|
|
735
931
|
type: 'send_message';
|
|
932
|
+
/**
|
|
933
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
934
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
935
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
936
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
937
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
938
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
939
|
+
* per assistant).
|
|
940
|
+
*/
|
|
941
|
+
shared?: boolean;
|
|
736
942
|
}
|
|
737
943
|
namespace SendMessage {
|
|
738
944
|
interface SendMessage {
|
|
@@ -750,6 +956,16 @@ export declare namespace AssistantTool {
|
|
|
750
956
|
interface SkipTurn {
|
|
751
957
|
skip_turn: SkipTurn.SkipTurn;
|
|
752
958
|
type: 'skip_turn';
|
|
959
|
+
/**
|
|
960
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
961
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
962
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
963
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
964
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
965
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
966
|
+
* per assistant).
|
|
967
|
+
*/
|
|
968
|
+
shared?: boolean;
|
|
753
969
|
}
|
|
754
970
|
namespace SkipTurn {
|
|
755
971
|
interface SkipTurn {
|
|
@@ -768,6 +984,16 @@ export declare namespace AssistantTool {
|
|
|
768
984
|
interface Pay {
|
|
769
985
|
pay: ToolsAPI.PayToolParams;
|
|
770
986
|
type: 'pay';
|
|
987
|
+
/**
|
|
988
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
989
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
990
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
991
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
992
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
993
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
994
|
+
* per assistant).
|
|
995
|
+
*/
|
|
996
|
+
shared?: boolean;
|
|
771
997
|
}
|
|
772
998
|
/**
|
|
773
999
|
* The update_dynamic_variables tool lets the assistant write values into the
|
|
@@ -782,6 +1008,16 @@ export declare namespace AssistantTool {
|
|
|
782
1008
|
* Configuration for an update_dynamic_variables tool.
|
|
783
1009
|
*/
|
|
784
1010
|
update_dynamic_variables: ToolsAPI.UpdateDynamicVariablesToolParams;
|
|
1011
|
+
/**
|
|
1012
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1013
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1014
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1015
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1016
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1017
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1018
|
+
* per assistant).
|
|
1019
|
+
*/
|
|
1020
|
+
shared?: boolean;
|
|
785
1021
|
}
|
|
786
1022
|
}
|
|
787
1023
|
export interface AssistantsList {
|
|
@@ -1356,6 +1592,17 @@ export interface InferenceEmbedding {
|
|
|
1356
1592
|
*/
|
|
1357
1593
|
model: string;
|
|
1358
1594
|
name: string;
|
|
1595
|
+
/**
|
|
1596
|
+
* A2A agents this assistant can delegate to. Tools are not stored here: at the
|
|
1597
|
+
* start of every conversation each agent's card is fetched and one tool is derived
|
|
1598
|
+
* per skill the card advertises, named `a2a_<name>_<skill_id>`. The following
|
|
1599
|
+
* limits are not enforced when the assistant is saved, and anything past them is
|
|
1600
|
+
* dropped when the conversation starts: 64 agents per assistant, 64 skills per
|
|
1601
|
+
* card, 128 derived tools per assistant, and a 6 second budget for all card
|
|
1602
|
+
* fetches combined. An agent whose card cannot be fetched costs the assistant that
|
|
1603
|
+
* capability for the conversation; it does not fail the call.
|
|
1604
|
+
*/
|
|
1605
|
+
a2a_agents?: Array<AssistantA2AAgent>;
|
|
1359
1606
|
/**
|
|
1360
1607
|
* Conversation flow as returned by the API.
|
|
1361
1608
|
*/
|
|
@@ -1434,10 +1681,10 @@ export interface InferenceEmbedding {
|
|
|
1434
1681
|
/**
|
|
1435
1682
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
1436
1683
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
1437
|
-
* execute tool calls such as
|
|
1438
|
-
*
|
|
1439
|
-
*
|
|
1440
|
-
*
|
|
1684
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
1685
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
1686
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
1687
|
+
* unavailable. Beta feature.
|
|
1441
1688
|
*/
|
|
1442
1689
|
post_conversation_settings?: PostConversationSettings;
|
|
1443
1690
|
privacy_settings?: PrivacySettings;
|
|
@@ -1452,9 +1699,12 @@ export interface InferenceEmbedding {
|
|
|
1452
1699
|
tags?: Array<string>;
|
|
1453
1700
|
telephony_settings?: TelephonySettings;
|
|
1454
1701
|
/**
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1457
|
-
*
|
|
1702
|
+
* The assistant's tools. Responses merge the assistant's shared Tools Library
|
|
1703
|
+
* tools into this array alongside inline tools, each flagged `shared: true`;
|
|
1704
|
+
* inline tools carry `shared: false`. On update, a sent `tools` array fully
|
|
1705
|
+
* replaces the inline tools only — shared tools stay attached unless `tool_ids`
|
|
1706
|
+
* changes. Each tool type except `function`, `webhook`, and `client_side_tool`
|
|
1707
|
+
* allows at most one instance per assistant across both sources.
|
|
1458
1708
|
*/
|
|
1459
1709
|
tools?: Array<AssistantTool>;
|
|
1460
1710
|
transcription?: TranscriptionSettings;
|
|
@@ -1494,6 +1744,11 @@ export interface InferenceEmbeddingInterruptionSettings {
|
|
|
1494
1744
|
* Whether users can interrupt the assistant while it is speaking.
|
|
1495
1745
|
*/
|
|
1496
1746
|
enable?: boolean;
|
|
1747
|
+
/**
|
|
1748
|
+
* Interrupt-prediction sensitivity, from 0.0 to 1.0. Set to null or 0.0 to disable
|
|
1749
|
+
* interrupt prediction.
|
|
1750
|
+
*/
|
|
1751
|
+
interrupt_prediction_threshold?: number | null;
|
|
1497
1752
|
/**
|
|
1498
1753
|
* Controls when the assistant starts speaking after the user stops. These
|
|
1499
1754
|
* thresholds primarily apply to non turn-taking transcription models. For
|
|
@@ -1505,6 +1760,16 @@ export interface InferenceEmbeddingInterruptionSettings {
|
|
|
1505
1760
|
export interface InferenceEmbeddingWebhookToolParams {
|
|
1506
1761
|
type: 'webhook';
|
|
1507
1762
|
webhook: InferenceEmbeddingWebhookToolParams.Webhook;
|
|
1763
|
+
/**
|
|
1764
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1765
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1766
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
1767
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1768
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1769
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1770
|
+
* per assistant).
|
|
1771
|
+
*/
|
|
1772
|
+
shared?: boolean;
|
|
1508
1773
|
}
|
|
1509
1774
|
export declare namespace InferenceEmbeddingWebhookToolParams {
|
|
1510
1775
|
interface Webhook {
|
|
@@ -1803,10 +2068,10 @@ export type ObservabilityStatus = 'enabled' | 'disabled';
|
|
|
1803
2068
|
/**
|
|
1804
2069
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
1805
2070
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
1806
|
-
* execute tool calls such as
|
|
1807
|
-
*
|
|
1808
|
-
*
|
|
1809
|
-
*
|
|
2071
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
2072
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
2073
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
2074
|
+
* unavailable. Beta feature.
|
|
1810
2075
|
*/
|
|
1811
2076
|
export interface PostConversationSettings {
|
|
1812
2077
|
/**
|
|
@@ -1819,10 +2084,10 @@ export interface PostConversationSettings {
|
|
|
1819
2084
|
/**
|
|
1820
2085
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
1821
2086
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
1822
|
-
* execute tool calls such as
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
2087
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
2088
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
2089
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
2090
|
+
* unavailable. Beta feature.
|
|
1826
2091
|
*/
|
|
1827
2092
|
export interface PostConversationSettingsReq {
|
|
1828
2093
|
/**
|
|
@@ -1842,6 +2107,21 @@ export interface PrivacySettings {
|
|
|
1842
2107
|
* force regardless of your selection here.
|
|
1843
2108
|
*/
|
|
1844
2109
|
data_retention?: boolean;
|
|
2110
|
+
/**
|
|
2111
|
+
* Requires every model call made for a web chat turn to be received and served
|
|
2112
|
+
* inside your organization's data-locality region, rather than only stored there.
|
|
2113
|
+
* Applies to web chat only — voice and messaging assistants are unaffected.
|
|
2114
|
+
* Enabling it requires a data-locality region with in-region inference (USA, EU,
|
|
2115
|
+
* AUS, UAE; see
|
|
2116
|
+
* [Inference regions](https://developers.telnyx.com/docs/inference/models/regions))
|
|
2117
|
+
* and Telnyx-hosted models for the assistant, its fallback, and any
|
|
2118
|
+
* conversation-flow node that overrides the model; the request is rejected
|
|
2119
|
+
* otherwise. Once enabled, send chat requests to your region's API hostname: a
|
|
2120
|
+
* request entering the platform in another region is rejected rather than
|
|
2121
|
+
* forwarded, because forwarding it would already have moved the content across the
|
|
2122
|
+
* border. Defaults to false.
|
|
2123
|
+
*/
|
|
2124
|
+
in_transit_data_locality?: boolean;
|
|
1845
2125
|
}
|
|
1846
2126
|
/**
|
|
1847
2127
|
* Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
@@ -1854,6 +2134,16 @@ export type PromptSyncStatus = 'enabled' | 'disabled';
|
|
|
1854
2134
|
export interface RetrievalTool {
|
|
1855
2135
|
retrieval: ChatAPI.BucketIDs;
|
|
1856
2136
|
type: 'retrieval';
|
|
2137
|
+
/**
|
|
2138
|
+
* Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2139
|
+
* tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2140
|
+
* Read-only: set by the server, not accepted in requests. When updating an
|
|
2141
|
+
* assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2142
|
+
* them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2143
|
+
* duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2144
|
+
* per assistant).
|
|
2145
|
+
*/
|
|
2146
|
+
shared?: boolean;
|
|
1857
2147
|
}
|
|
1858
2148
|
/**
|
|
1859
2149
|
* A standalone scripted-message step in a flow, as returned by the API.
|
|
@@ -1956,13 +2246,26 @@ export interface TelephonySettings {
|
|
|
1956
2246
|
*/
|
|
1957
2247
|
disable_dtmf?: boolean;
|
|
1958
2248
|
/**
|
|
1959
|
-
*
|
|
1960
|
-
*
|
|
2249
|
+
* Destination number or SIP URI to transfer the caller to when the AI conversation
|
|
2250
|
+
* ends abnormally, for example because of an assistant-side error, so the caller
|
|
2251
|
+
* is not left in dead air. This only fires for abnormal ends: it does not fire
|
|
2252
|
+
* when the conversation ends on purpose (the caller hung up, the assistant
|
|
2253
|
+
* completed normally, the caller hung up after a relay handoff, or voicemail was
|
|
2254
|
+
* detected), and it does not fire when the assistant already transferred or
|
|
2255
|
+
* bridged the call.
|
|
2256
|
+
*/
|
|
2257
|
+
fallback_destination?: string;
|
|
2258
|
+
/**
|
|
2259
|
+
* The noise suppression engine to use. 'aicoustics' is STT-optimized and
|
|
2260
|
+
* recommended for AI assistants (configure through noise_suppression_config). Use
|
|
2261
|
+
* 'disabled' to turn off noise suppression.
|
|
1961
2262
|
*/
|
|
1962
|
-
noise_suppression?: 'krisp' | 'deepfilternet' | 'disabled';
|
|
2263
|
+
noise_suppression?: 'aicoustics' | 'krisp' | 'deepfilternet' | 'disabled';
|
|
1963
2264
|
/**
|
|
1964
|
-
* Configuration for noise suppression.
|
|
1965
|
-
* 'deepfilternet'
|
|
2265
|
+
* Configuration for noise suppression. Applicable fields depend on the engine:
|
|
2266
|
+
* 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
|
|
2267
|
+
* 'family', 'size' and 'enhancement_level' only when noise_suppression is
|
|
2268
|
+
* 'aicoustics'.
|
|
1966
2269
|
*/
|
|
1967
2270
|
noise_suppression_config?: TelephonySettings.NoiseSuppressionConfig;
|
|
1968
2271
|
/**
|
|
@@ -2018,18 +2321,38 @@ export interface TelephonySettings {
|
|
|
2018
2321
|
}
|
|
2019
2322
|
export declare namespace TelephonySettings {
|
|
2020
2323
|
/**
|
|
2021
|
-
* Configuration for noise suppression.
|
|
2022
|
-
* 'deepfilternet'
|
|
2324
|
+
* Configuration for noise suppression. Applicable fields depend on the engine:
|
|
2325
|
+
* 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
|
|
2326
|
+
* 'family', 'size' and 'enhancement_level' only when noise_suppression is
|
|
2327
|
+
* 'aicoustics'.
|
|
2023
2328
|
*/
|
|
2024
2329
|
interface NoiseSuppressionConfig {
|
|
2025
2330
|
/**
|
|
2026
|
-
* Attenuation limit for noise suppression. Range: 0-100.
|
|
2331
|
+
* Attenuation limit for noise suppression. Range: 0-100. Only applicable when
|
|
2332
|
+
* noise_suppression is 'deepfilternet'.
|
|
2027
2333
|
*/
|
|
2028
2334
|
attenuation_limit?: number;
|
|
2029
2335
|
/**
|
|
2030
|
-
*
|
|
2336
|
+
* AiCoustics enhancement intensity. Range: 0-1. Only applicable when
|
|
2337
|
+
* noise_suppression is 'aicoustics'.
|
|
2338
|
+
*/
|
|
2339
|
+
enhancement_level?: number;
|
|
2340
|
+
/**
|
|
2341
|
+
* AiCoustics model family optimized for Voice AI and STT. Only applicable when
|
|
2342
|
+
* noise_suppression is 'aicoustics'.
|
|
2343
|
+
*/
|
|
2344
|
+
family?: 'quail';
|
|
2345
|
+
/**
|
|
2346
|
+
* Mode for noise suppression configuration. Only applicable when noise_suppression
|
|
2347
|
+
* is 'deepfilternet'.
|
|
2031
2348
|
*/
|
|
2032
2349
|
mode?: 'advanced';
|
|
2350
|
+
/**
|
|
2351
|
+
* AiCoustics model size. 'vf' tracks the latest model release; 'vf_2_0_l' is
|
|
2352
|
+
* pinned to version 2.0 for consistent, predictable behavior. Only applicable when
|
|
2353
|
+
* noise_suppression is 'aicoustics'.
|
|
2354
|
+
*/
|
|
2355
|
+
size?: 'vf' | 'vf_2_0_l';
|
|
2033
2356
|
}
|
|
2034
2357
|
/**
|
|
2035
2358
|
* Configuration for call recording format and channel settings.
|
|
@@ -2238,21 +2561,24 @@ export interface TranscriptionSettings {
|
|
|
2238
2561
|
* - `deepgram/nova-3` is multilingual with automatic language detection.
|
|
2239
2562
|
* - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
|
|
2240
2563
|
* - `azure/fast` is a multilingual Azure transcription model.
|
|
2241
|
-
* - `assemblyai/universal-
|
|
2242
|
-
* configurable turn detection.
|
|
2564
|
+
* - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
|
|
2565
|
+
* configurable turn detection. The legacy alias `assemblyai/universal-streaming`
|
|
2566
|
+
* is still accepted and resolves to the same model.
|
|
2243
2567
|
* - `xai/grok-stt` is a multilingual Grok STT model.
|
|
2244
2568
|
* - `soniox/stt-rt-v4` and `soniox/stt-rt-v5` are multilingual streaming models
|
|
2245
2569
|
* with automatic language detection, configurable endpointing, term biasing
|
|
2246
2570
|
* (`context`), and `language_hints`.
|
|
2247
2571
|
* - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
|
|
2248
2572
|
* language detection.
|
|
2573
|
+
* - `omi-health/omi-med-stt-v1` is an English-only medical transcription model
|
|
2574
|
+
* (Parakeet-based).
|
|
2249
2575
|
* - `humain/realtime` is a streaming model with native Arabic and Arabic/English
|
|
2250
2576
|
* code-switching support.
|
|
2251
2577
|
* - `reson8/turns` is a turn-based streaming model covering 10 European languages
|
|
2252
2578
|
* with automatic language detection.
|
|
2253
2579
|
* - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
|
|
2254
2580
|
*/
|
|
2255
|
-
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';
|
|
2581
|
+
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';
|
|
2256
2582
|
/**
|
|
2257
2583
|
* Region on third party cloud providers (currently Azure) if using one of their
|
|
2258
2584
|
* models. Some regions require `api_key_ref`.
|
|
@@ -2284,9 +2610,9 @@ export interface TranscriptionSettingsConfig {
|
|
|
2284
2610
|
*/
|
|
2285
2611
|
enable_endpoint_detection?: boolean;
|
|
2286
2612
|
/**
|
|
2287
|
-
* Available only for assemblyai/universal-
|
|
2288
|
-
*
|
|
2289
|
-
* turn.
|
|
2613
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
2614
|
+
* assemblyai/universal-streaming). Confidence level required to trigger an end of
|
|
2615
|
+
* turn. Higher values require more certainty before ending a turn.
|
|
2290
2616
|
*/
|
|
2291
2617
|
end_of_turn_confidence_threshold?: number;
|
|
2292
2618
|
/**
|
|
@@ -2327,14 +2653,15 @@ export interface TranscriptionSettingsConfig {
|
|
|
2327
2653
|
*/
|
|
2328
2654
|
max_endpoint_delay_ms?: number;
|
|
2329
2655
|
/**
|
|
2330
|
-
* Available only for assemblyai/universal-
|
|
2331
|
-
*
|
|
2656
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
2657
|
+
* assemblyai/universal-streaming). Maximum duration of silence in milliseconds
|
|
2658
|
+
* before forcing an end of turn.
|
|
2332
2659
|
*/
|
|
2333
2660
|
max_turn_silence?: number;
|
|
2334
2661
|
/**
|
|
2335
|
-
* Available only for assemblyai/universal-
|
|
2336
|
-
*
|
|
2337
|
-
* max_turn_silence.
|
|
2662
|
+
* Available only for assemblyai/universal-3-5-pro (and its legacy alias
|
|
2663
|
+
* assemblyai/universal-streaming). Minimum duration of silence in milliseconds
|
|
2664
|
+
* before a turn can end. Must be less than or equal to max_turn_silence.
|
|
2338
2665
|
*/
|
|
2339
2666
|
min_turn_silence?: number;
|
|
2340
2667
|
numerals?: boolean;
|
|
@@ -2684,6 +3011,17 @@ export interface AssistantCreateParams {
|
|
|
2684
3011
|
* Body param
|
|
2685
3012
|
*/
|
|
2686
3013
|
name: string;
|
|
3014
|
+
/**
|
|
3015
|
+
* Body param: A2A agents this assistant can delegate to. Tools are not stored
|
|
3016
|
+
* here: at the start of every conversation each agent's card is fetched and one
|
|
3017
|
+
* tool is derived per skill the card advertises, named `a2a_<name>_<skill_id>`.
|
|
3018
|
+
* The following limits are not enforced when the assistant is saved, and anything
|
|
3019
|
+
* past them is dropped when the conversation starts: 64 agents per assistant, 64
|
|
3020
|
+
* skills per card, 128 derived tools per assistant, and a 6 second budget for all
|
|
3021
|
+
* card fetches combined. An agent whose card cannot be fetched costs the assistant
|
|
3022
|
+
* that capability for the conversation; it does not fail the call.
|
|
3023
|
+
*/
|
|
3024
|
+
a2a_agents?: Array<AssistantA2AAgent>;
|
|
2687
3025
|
/**
|
|
2688
3026
|
* Body param: Conversation flow as supplied by API clients (create / update).
|
|
2689
3027
|
*
|
|
@@ -2795,10 +3133,10 @@ export interface AssistantCreateParams {
|
|
|
2795
3133
|
/**
|
|
2796
3134
|
* Body param: Configuration for post-conversation processing. When enabled, the
|
|
2797
3135
|
* assistant receives one additional LLM turn after the conversation ends, allowing
|
|
2798
|
-
* it to execute tool calls such as
|
|
2799
|
-
*
|
|
2800
|
-
*
|
|
2801
|
-
*
|
|
3136
|
+
* it to execute final tool calls such as sending a summary or updating a record
|
|
3137
|
+
* via webhook or function tools. Integration and MCP server tools are not
|
|
3138
|
+
* available post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
3139
|
+
* unavailable. Beta feature.
|
|
2802
3140
|
*/
|
|
2803
3141
|
post_conversation_settings?: PostConversationSettingsReq;
|
|
2804
3142
|
/**
|
|
@@ -2896,6 +3234,18 @@ export interface AssistantRetrieveParams {
|
|
|
2896
3234
|
to?: string;
|
|
2897
3235
|
}
|
|
2898
3236
|
export interface AssistantUpdateParams {
|
|
3237
|
+
/**
|
|
3238
|
+
* A2A agents this assistant can delegate to. Tools are not stored here: at the
|
|
3239
|
+
* start of every conversation each agent's card is fetched and one tool is derived
|
|
3240
|
+
* per skill the card advertises, named `a2a_<name>_<skill_id>`. The following
|
|
3241
|
+
* limits are not enforced when the assistant is saved, and anything past them is
|
|
3242
|
+
* dropped when the conversation starts: 64 agents per assistant, 64 skills per
|
|
3243
|
+
* card, 128 derived tools per assistant, and a 6 second budget for all card
|
|
3244
|
+
* fetches combined. An agent whose card cannot be fetched costs the assistant that
|
|
3245
|
+
* capability for the conversation; it does not fail the call. Omit this field to
|
|
3246
|
+
* leave the assistant's agents unchanged; send an empty array to remove them all.
|
|
3247
|
+
*/
|
|
3248
|
+
a2a_agents?: Array<AssistantA2AAgent>;
|
|
2899
3249
|
/**
|
|
2900
3250
|
* Conversation flow as supplied by API clients (create / update).
|
|
2901
3251
|
*
|
|
@@ -2991,10 +3341,10 @@ export interface AssistantUpdateParams {
|
|
|
2991
3341
|
/**
|
|
2992
3342
|
* Configuration for post-conversation processing. When enabled, the assistant
|
|
2993
3343
|
* receives one additional LLM turn after the conversation ends, allowing it to
|
|
2994
|
-
* execute tool calls such as
|
|
2995
|
-
*
|
|
2996
|
-
*
|
|
2997
|
-
*
|
|
3344
|
+
* execute final tool calls such as sending a summary or updating a record via
|
|
3345
|
+
* webhook or function tools. Integration and MCP server tools are not available
|
|
3346
|
+
* post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
3347
|
+
* unavailable. Beta feature.
|
|
2998
3348
|
*/
|
|
2999
3349
|
post_conversation_settings?: PostConversationSettingsReq;
|
|
3000
3350
|
privacy_settings?: PrivacySettings;
|
|
@@ -3011,13 +3361,24 @@ export interface AssistantUpdateParams {
|
|
|
3011
3361
|
telephony_settings?: TelephonySettings;
|
|
3012
3362
|
/**
|
|
3013
3363
|
* IDs of shared tools to attach to the assistant. New integrations should prefer
|
|
3014
|
-
* `tool_ids` over inline `tools`.
|
|
3364
|
+
* `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
|
|
3365
|
+
* replaces the assistant's attached shared tools; omit the field to leave them
|
|
3366
|
+
* unchanged. Single-instance tool types are counted across inline `tools` and
|
|
3367
|
+
* `tool_ids` combined, so attaching a shared tool of such a type when an instance
|
|
3368
|
+
* already exists returns HTTP 400 with error code 10015.
|
|
3015
3369
|
*/
|
|
3016
3370
|
tool_ids?: Array<string>;
|
|
3017
3371
|
/**
|
|
3018
3372
|
* Deprecated for new integrations. Inline tool definitions available to the
|
|
3019
3373
|
* assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
|
|
3020
|
-
* endpoints.
|
|
3374
|
+
* endpoints. On update, a sent `tools` array fully replaces the assistant's inline
|
|
3375
|
+
* tools; omit the field to leave the inline tools unchanged. Each tool type except
|
|
3376
|
+
* `function`, `webhook`, and `client_side_tool` allows at most one instance per
|
|
3377
|
+
* assistant, counted across inline `tools` and shared `tool_ids` combined —
|
|
3378
|
+
* sending a duplicate of such a type returns HTTP 400 with error code 10015.
|
|
3379
|
+
* Responses merge shared tools into `tools` with `shared: true`; when updating,
|
|
3380
|
+
* omit those tools from the `tools` array and manage them through `tool_ids`
|
|
3381
|
+
* instead.
|
|
3021
3382
|
*/
|
|
3022
3383
|
tools?: Array<AssistantTool>;
|
|
3023
3384
|
transcription?: TranscriptionSettings;
|
|
@@ -3102,7 +3463,7 @@ export interface AssistantSendSMSParams {
|
|
|
3102
3463
|
'Idempotency-Key'?: string;
|
|
3103
3464
|
}
|
|
3104
3465
|
export declare namespace Assistants {
|
|
3105
|
-
export { type ArithmeticExpression as ArithmeticExpression, type Assistant as Assistant, 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, };
|
|
3466
|
+
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, };
|
|
3106
3467
|
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, };
|
|
3107
3468
|
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, };
|
|
3108
3469
|
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, };
|