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
|
@@ -273,6 +273,13 @@ export interface MessagingMessagingProfile {
|
|
|
273
273
|
*/
|
|
274
274
|
enabled?: boolean;
|
|
275
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Telnyx product features the messaging customer can enable on the messaging
|
|
278
|
+
* profile. Keys map to individual feature flags; unknown keys are accepted and
|
|
279
|
+
* preserved for forward compatibility with rolling deployments.
|
|
280
|
+
*/
|
|
281
|
+
features?: MessagingProfileFeatures | null;
|
|
282
|
+
|
|
276
283
|
/**
|
|
277
284
|
* DEPRECATED: health check url service checking
|
|
278
285
|
*/
|
|
@@ -543,6 +550,23 @@ export interface MessagingProfile {
|
|
|
543
550
|
whitelisted_destinations?: Array<string>;
|
|
544
551
|
}
|
|
545
552
|
|
|
553
|
+
/**
|
|
554
|
+
* Telnyx product features the messaging customer can enable on the messaging
|
|
555
|
+
* profile. Keys map to individual feature flags; unknown keys are accepted and
|
|
556
|
+
* preserved for forward compatibility with rolling deployments.
|
|
557
|
+
*/
|
|
558
|
+
export interface MessagingProfileFeatures {
|
|
559
|
+
/**
|
|
560
|
+
* Enables AI detection of inbound opt-out messages that do not follow the standard
|
|
561
|
+
* STOP/UNSTOP/HELP opt-out keyword pattern. When enabled, the messaging platform
|
|
562
|
+
* applies an AI model to identify non-standard opt-out requests (e.g.
|
|
563
|
+
* natural-language phrases) and treats them as opt-outs.
|
|
564
|
+
*/
|
|
565
|
+
ai_opt_out_detection_enabled?: boolean;
|
|
566
|
+
|
|
567
|
+
[k: string]: unknown;
|
|
568
|
+
}
|
|
569
|
+
|
|
546
570
|
/**
|
|
547
571
|
* Number Pool allows you to send messages from a pool of numbers of different
|
|
548
572
|
* types, assigning weights to each type. The pool consists of all the long code
|
|
@@ -720,6 +744,13 @@ export interface MessagingProfileCreateParams {
|
|
|
720
744
|
*/
|
|
721
745
|
enabled?: boolean;
|
|
722
746
|
|
|
747
|
+
/**
|
|
748
|
+
* Telnyx product features the messaging customer can enable on the messaging
|
|
749
|
+
* profile. Keys map to individual feature flags; unknown keys are accepted and
|
|
750
|
+
* preserved for forward compatibility with rolling deployments.
|
|
751
|
+
*/
|
|
752
|
+
features?: MessagingProfileFeatures | null;
|
|
753
|
+
|
|
723
754
|
/**
|
|
724
755
|
* A URL to receive health check webhooks for numbers in this profile.
|
|
725
756
|
*/
|
|
@@ -818,6 +849,13 @@ export interface MessagingProfileUpdateParams {
|
|
|
818
849
|
*/
|
|
819
850
|
enabled?: boolean;
|
|
820
851
|
|
|
852
|
+
/**
|
|
853
|
+
* Telnyx product features the messaging customer can enable on the messaging
|
|
854
|
+
* profile. Keys map to individual feature flags; unknown keys are accepted and
|
|
855
|
+
* preserved for forward compatibility with rolling deployments.
|
|
856
|
+
*/
|
|
857
|
+
features?: MessagingProfileFeatures | null;
|
|
858
|
+
|
|
821
859
|
/**
|
|
822
860
|
* enables SMS fallback for MMS messages.
|
|
823
861
|
*/
|
|
@@ -932,6 +970,7 @@ export declare namespace MessagingProfiles {
|
|
|
932
970
|
export {
|
|
933
971
|
type MessagingMessagingProfile as MessagingMessagingProfile,
|
|
934
972
|
type MessagingProfile as MessagingProfile,
|
|
973
|
+
type MessagingProfileFeatures as MessagingProfileFeatures,
|
|
935
974
|
type NumberPoolSettings as NumberPoolSettings,
|
|
936
975
|
type URLShortenerSettings as URLShortenerSettings,
|
|
937
976
|
type MessagingProfileCreateResponse as MessagingProfileCreateResponse,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Noise suppression engines that can be selected when configuring noise suppression on voice connections.
|
|
9
|
+
*/
|
|
10
|
+
export class NoiseSuppressionEngines extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns all noise suppression engines available to the authenticated user.
|
|
13
|
+
* Engines gated behind a feature flag are included only when the flag is enabled
|
|
14
|
+
* for the user's account. Results are not paginated; the number of engines is
|
|
15
|
+
* expected to remain small.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: RequestOptions): APIPromise<NoiseSuppressionEngineListResponse> {
|
|
18
|
+
return this._client.get('/noise_suppression_engines', options);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface NoiseSuppressionEngineListResponse {
|
|
23
|
+
data: Array<NoiseSuppressionEngineListResponse.Data>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace NoiseSuppressionEngineListResponse {
|
|
27
|
+
/**
|
|
28
|
+
* A noise suppression engine available to the authenticated user.
|
|
29
|
+
*/
|
|
30
|
+
export interface Data {
|
|
31
|
+
/**
|
|
32
|
+
* Default attenuation level of the engine (0-100, in multiples of ten).
|
|
33
|
+
*/
|
|
34
|
+
default_attenuation_level: number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Human-readable name of the engine.
|
|
38
|
+
*/
|
|
39
|
+
label: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Machine-readable identifier of the engine, used when configuring noise
|
|
43
|
+
* suppression.
|
|
44
|
+
*/
|
|
45
|
+
value: string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare namespace NoiseSuppressionEngines {
|
|
50
|
+
export { type NoiseSuppressionEngineListResponse as NoiseSuppressionEngineListResponse };
|
|
51
|
+
}
|
|
@@ -590,6 +590,27 @@ export namespace CallCallsParams {
|
|
|
590
590
|
*/
|
|
591
591
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
592
592
|
|
|
593
|
+
/**
|
|
594
|
+
* Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
595
|
+
* Only used when MachineDetection is enabled.
|
|
596
|
+
*/
|
|
597
|
+
MachineDetectionBeepMaxFrequency?: number;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
601
|
+
* it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
602
|
+
* otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
603
|
+
* used when MachineDetection is enabled.
|
|
604
|
+
*/
|
|
605
|
+
MachineDetectionBeepMinFrequency?: number;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
609
|
+
* rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
610
|
+
* is enabled.
|
|
611
|
+
*/
|
|
612
|
+
MachineDetectionBeepMinToneDuration?: number;
|
|
613
|
+
|
|
593
614
|
/**
|
|
594
615
|
* Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
595
616
|
* frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -598,6 +619,31 @@ export namespace CallCallsParams {
|
|
|
598
619
|
*/
|
|
599
620
|
MachineDetectionBeepProfile?: 'both' | 'freq_only';
|
|
600
621
|
|
|
622
|
+
/**
|
|
623
|
+
* When enabled, a candidate beep must pass an additional spectral check before it
|
|
624
|
+
* is reported. Only used when MachineDetection is enabled.
|
|
625
|
+
*/
|
|
626
|
+
MachineDetectionBeepSpectralConfirmation?: boolean;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
630
|
+
* Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
631
|
+
* Only used when MachineDetection is enabled.
|
|
632
|
+
*/
|
|
633
|
+
MachineDetectionBeepSpectralMinPurity?: number;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
637
|
+
* used when MachineDetection is enabled.
|
|
638
|
+
*/
|
|
639
|
+
MachineDetectionBeepSpectralRejectFaxCng?: boolean;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Length of the spectral confirmation window, in milliseconds. Only used when
|
|
643
|
+
* MachineDetection is enabled.
|
|
644
|
+
*/
|
|
645
|
+
MachineDetectionBeepSpectralWindow?: number;
|
|
646
|
+
|
|
601
647
|
/**
|
|
602
648
|
* Silence duration threshold after a call screening prompt before ending prompt
|
|
603
649
|
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
@@ -874,6 +920,27 @@ export namespace CallCallsParams {
|
|
|
874
920
|
*/
|
|
875
921
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
876
922
|
|
|
923
|
+
/**
|
|
924
|
+
* Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
925
|
+
* Only used when MachineDetection is enabled.
|
|
926
|
+
*/
|
|
927
|
+
MachineDetectionBeepMaxFrequency?: number;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
931
|
+
* it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
932
|
+
* otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
933
|
+
* used when MachineDetection is enabled.
|
|
934
|
+
*/
|
|
935
|
+
MachineDetectionBeepMinFrequency?: number;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
939
|
+
* rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
940
|
+
* is enabled.
|
|
941
|
+
*/
|
|
942
|
+
MachineDetectionBeepMinToneDuration?: number;
|
|
943
|
+
|
|
877
944
|
/**
|
|
878
945
|
* Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
879
946
|
* frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -882,6 +949,31 @@ export namespace CallCallsParams {
|
|
|
882
949
|
*/
|
|
883
950
|
MachineDetectionBeepProfile?: 'both' | 'freq_only';
|
|
884
951
|
|
|
952
|
+
/**
|
|
953
|
+
* When enabled, a candidate beep must pass an additional spectral check before it
|
|
954
|
+
* is reported. Only used when MachineDetection is enabled.
|
|
955
|
+
*/
|
|
956
|
+
MachineDetectionBeepSpectralConfirmation?: boolean;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
960
|
+
* Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
961
|
+
* Only used when MachineDetection is enabled.
|
|
962
|
+
*/
|
|
963
|
+
MachineDetectionBeepSpectralMinPurity?: number;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
967
|
+
* used when MachineDetection is enabled.
|
|
968
|
+
*/
|
|
969
|
+
MachineDetectionBeepSpectralRejectFaxCng?: boolean;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Length of the spectral confirmation window, in milliseconds. Only used when
|
|
973
|
+
* MachineDetection is enabled.
|
|
974
|
+
*/
|
|
975
|
+
MachineDetectionBeepSpectralWindow?: number;
|
|
976
|
+
|
|
885
977
|
/**
|
|
886
978
|
* Silence duration threshold after a call screening prompt before ending prompt
|
|
887
979
|
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
@@ -1152,6 +1244,27 @@ export namespace CallCallsParams {
|
|
|
1152
1244
|
*/
|
|
1153
1245
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
1154
1246
|
|
|
1247
|
+
/**
|
|
1248
|
+
* Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
1249
|
+
* Only used when MachineDetection is enabled.
|
|
1250
|
+
*/
|
|
1251
|
+
MachineDetectionBeepMaxFrequency?: number;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
1255
|
+
* it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
1256
|
+
* otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
1257
|
+
* used when MachineDetection is enabled.
|
|
1258
|
+
*/
|
|
1259
|
+
MachineDetectionBeepMinFrequency?: number;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
1263
|
+
* rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
1264
|
+
* is enabled.
|
|
1265
|
+
*/
|
|
1266
|
+
MachineDetectionBeepMinToneDuration?: number;
|
|
1267
|
+
|
|
1155
1268
|
/**
|
|
1156
1269
|
* Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
1157
1270
|
* frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -1160,6 +1273,31 @@ export namespace CallCallsParams {
|
|
|
1160
1273
|
*/
|
|
1161
1274
|
MachineDetectionBeepProfile?: 'both' | 'freq_only';
|
|
1162
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* When enabled, a candidate beep must pass an additional spectral check before it
|
|
1278
|
+
* is reported. Only used when MachineDetection is enabled.
|
|
1279
|
+
*/
|
|
1280
|
+
MachineDetectionBeepSpectralConfirmation?: boolean;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
1284
|
+
* Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
1285
|
+
* Only used when MachineDetection is enabled.
|
|
1286
|
+
*/
|
|
1287
|
+
MachineDetectionBeepSpectralMinPurity?: number;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
1291
|
+
* used when MachineDetection is enabled.
|
|
1292
|
+
*/
|
|
1293
|
+
MachineDetectionBeepSpectralRejectFaxCng?: boolean;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Length of the spectral confirmation window, in milliseconds. Only used when
|
|
1297
|
+
* MachineDetection is enabled.
|
|
1298
|
+
*/
|
|
1299
|
+
MachineDetectionBeepSpectralWindow?: number;
|
|
1300
|
+
|
|
1163
1301
|
/**
|
|
1164
1302
|
* Silence duration threshold after a call screening prompt before ending prompt
|
|
1165
1303
|
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
@@ -484,6 +484,27 @@ export interface ParticipantParticipantsParams {
|
|
|
484
484
|
*/
|
|
485
485
|
MachineDetection?: 'Enable' | 'DetectMessageEnd';
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Body param: Highest frequency, in Hz, that a tone can reach and still be treated
|
|
489
|
+
* as a beep. Only used when MachineDetection is enabled.
|
|
490
|
+
*/
|
|
491
|
+
MachineDetectionBeepMaxFrequency?: number;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Body param: Lowest frequency, in Hz, that a tone must reach to be treated as a
|
|
495
|
+
* beep. Raising it above 480 excludes North American ringback (440 + 480 Hz),
|
|
496
|
+
* which can otherwise be reported as a beep when the `freq_only` profile is in
|
|
497
|
+
* use. Only used when MachineDetection is enabled.
|
|
498
|
+
*/
|
|
499
|
+
MachineDetectionBeepMinFrequency?: number;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Body param: Shortest tone, in milliseconds, that can be treated as a beep.
|
|
503
|
+
* Raising it rejects brief tones such as call-progress blips. Only used when
|
|
504
|
+
* MachineDetection is enabled.
|
|
505
|
+
*/
|
|
506
|
+
MachineDetectionBeepMinToneDuration?: number;
|
|
507
|
+
|
|
487
508
|
/**
|
|
488
509
|
* Body param: Selects which detectors must validate a beep. `both` requires the
|
|
489
510
|
* amplitude and frequency detectors to agree. `freq_only` uses the frequency
|
|
@@ -492,6 +513,31 @@ export interface ParticipantParticipantsParams {
|
|
|
492
513
|
*/
|
|
493
514
|
MachineDetectionBeepProfile?: 'both' | 'freq_only';
|
|
494
515
|
|
|
516
|
+
/**
|
|
517
|
+
* Body param: When enabled, a candidate beep must pass an additional spectral
|
|
518
|
+
* check before it is reported. Only used when MachineDetection is enabled.
|
|
519
|
+
*/
|
|
520
|
+
MachineDetectionBeepSpectralConfirmation?: boolean;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Body param: Minimum spectral purity, from 0 to 1, for a tone to be treated as a
|
|
524
|
+
* beep. Raising it rejects mixed tones such as ringback, which combines two
|
|
525
|
+
* frequencies. Only used when MachineDetection is enabled.
|
|
526
|
+
*/
|
|
527
|
+
MachineDetectionBeepSpectralMinPurity?: number;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Body param: When enabled, the fax CNG tone is rejected rather than reported as a
|
|
531
|
+
* beep. Only used when MachineDetection is enabled.
|
|
532
|
+
*/
|
|
533
|
+
MachineDetectionBeepSpectralRejectFaxCng?: boolean;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Body param: Length of the spectral confirmation window, in milliseconds. Only
|
|
537
|
+
* used when MachineDetection is enabled.
|
|
538
|
+
*/
|
|
539
|
+
MachineDetectionBeepSpectralWindow?: number;
|
|
540
|
+
|
|
495
541
|
/**
|
|
496
542
|
* Body param: If initial silence duration is greater than this value, consider it
|
|
497
543
|
* a machine. Ignored when `premium` detection is used.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* TeXML REST Commands
|
|
10
|
+
*/
|
|
11
|
+
export class Calls extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Initiate an outbound TeXML call using a TeXML application connection ID, not an
|
|
14
|
+
* account SID. Request parameter names are case-sensitive. From and To are
|
|
15
|
+
* required; Texml supplies inline instructions and Url overrides the application
|
|
16
|
+
* XML request URL. When neither is supplied, the application configuration
|
|
17
|
+
* supplies the instructions. The response is a flat call object without a data
|
|
18
|
+
* wrapper.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const call = await client.texml.calls.create('1234567890', {
|
|
23
|
+
* From: '+13120001234',
|
|
24
|
+
* To: '+13121230000',
|
|
25
|
+
* Texml: '<Response><Say>Hello</Say></Response>',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(
|
|
30
|
+
connectionID: string,
|
|
31
|
+
body: CallCreateParams,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<CallCreateResponse> {
|
|
34
|
+
return this._client.post(path`/texml/calls/${connectionID}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface CallCreateResponse {
|
|
39
|
+
/**
|
|
40
|
+
* The call control ID of the created call.
|
|
41
|
+
*/
|
|
42
|
+
call_sid: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The caller address.
|
|
46
|
+
*/
|
|
47
|
+
from: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The initial status of the outbound call.
|
|
51
|
+
*/
|
|
52
|
+
status: 'queued';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The called address.
|
|
56
|
+
*/
|
|
57
|
+
to: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface CallCreateParams {
|
|
61
|
+
/**
|
|
62
|
+
* The E.164-formatted phone number or SIP URI to present as the caller.
|
|
63
|
+
*/
|
|
64
|
+
From: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The E.164-formatted phone number or SIP URI to call.
|
|
68
|
+
*/
|
|
69
|
+
To: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* HTTP method used to retrieve TeXML instructions from Url.
|
|
73
|
+
*/
|
|
74
|
+
Method?: 'GET' | 'POST';
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Inline TeXML instructions to execute when the call is answered.
|
|
78
|
+
*/
|
|
79
|
+
Texml?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The URL from which to retrieve TeXML instructions. Overrides the TeXML
|
|
83
|
+
* application XML request URL.
|
|
84
|
+
*/
|
|
85
|
+
Url?: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare namespace Calls {
|
|
89
|
+
export { type CallCreateResponse as CallCreateResponse, type CallCreateParams as CallCreateParams };
|
|
90
|
+
}
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
type AccountRetrieveRecordingsJsonParams,
|
|
9
9
|
type AccountRetrieveTranscriptionsJsonParams,
|
|
10
10
|
} from './accounts/index';
|
|
11
|
+
export { Calls, type CallCreateResponse, type CallCreateParams } from './calls';
|
|
11
12
|
export {
|
|
12
13
|
Texml,
|
|
13
14
|
type TexmlInitiateAICallResponse,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as CallsAPI from './calls';
|
|
5
|
+
import { CallCreateParams, CallCreateResponse, Calls } from './calls';
|
|
4
6
|
import * as AccountsAPI from './accounts/accounts';
|
|
5
7
|
import {
|
|
6
8
|
AccountRetrieveRecordingsJsonParams,
|
|
@@ -18,6 +20,7 @@ import { path } from '../../internal/utils/path';
|
|
|
18
20
|
* TeXML REST Commands
|
|
19
21
|
*/
|
|
20
22
|
export class Texml extends APIResource {
|
|
23
|
+
calls: CallsAPI.Calls = new CallsAPI.Calls(this._client);
|
|
21
24
|
accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
|
|
22
25
|
|
|
23
26
|
/**
|
|
@@ -203,6 +206,27 @@ export interface TexmlInitiateAICallParams {
|
|
|
203
206
|
*/
|
|
204
207
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
205
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
211
|
+
* Only used when MachineDetection is enabled.
|
|
212
|
+
*/
|
|
213
|
+
MachineDetectionBeepMaxFrequency?: number;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
217
|
+
* it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
218
|
+
* otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
219
|
+
* used when MachineDetection is enabled.
|
|
220
|
+
*/
|
|
221
|
+
MachineDetectionBeepMinFrequency?: number;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
225
|
+
* rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
226
|
+
* is enabled.
|
|
227
|
+
*/
|
|
228
|
+
MachineDetectionBeepMinToneDuration?: number;
|
|
229
|
+
|
|
206
230
|
/**
|
|
207
231
|
* Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
208
232
|
* frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -211,6 +235,31 @@ export interface TexmlInitiateAICallParams {
|
|
|
211
235
|
*/
|
|
212
236
|
MachineDetectionBeepProfile?: 'both' | 'freq_only';
|
|
213
237
|
|
|
238
|
+
/**
|
|
239
|
+
* When enabled, a candidate beep must pass an additional spectral check before it
|
|
240
|
+
* is reported. Only used when MachineDetection is enabled.
|
|
241
|
+
*/
|
|
242
|
+
MachineDetectionBeepSpectralConfirmation?: boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
246
|
+
* Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
247
|
+
* Only used when MachineDetection is enabled.
|
|
248
|
+
*/
|
|
249
|
+
MachineDetectionBeepSpectralMinPurity?: number;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
253
|
+
* used when MachineDetection is enabled.
|
|
254
|
+
*/
|
|
255
|
+
MachineDetectionBeepSpectralRejectFaxCng?: boolean;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Length of the spectral confirmation window, in milliseconds. Only used when
|
|
259
|
+
* MachineDetection is enabled.
|
|
260
|
+
*/
|
|
261
|
+
MachineDetectionBeepSpectralWindow?: number;
|
|
262
|
+
|
|
214
263
|
/**
|
|
215
264
|
* Silence duration threshold after a call screening prompt before ending prompt
|
|
216
265
|
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
@@ -373,6 +422,7 @@ export namespace TexmlInitiateAICallParams {
|
|
|
373
422
|
}
|
|
374
423
|
}
|
|
375
424
|
|
|
425
|
+
Texml.Calls = Calls;
|
|
376
426
|
Texml.Accounts = Accounts;
|
|
377
427
|
|
|
378
428
|
export declare namespace Texml {
|
|
@@ -383,6 +433,12 @@ export declare namespace Texml {
|
|
|
383
433
|
type TexmlInitiateAICallParams as TexmlInitiateAICallParams,
|
|
384
434
|
};
|
|
385
435
|
|
|
436
|
+
export {
|
|
437
|
+
Calls as Calls,
|
|
438
|
+
type CallCreateResponse as CallCreateResponse,
|
|
439
|
+
type CallCreateParams as CallCreateParams,
|
|
440
|
+
};
|
|
441
|
+
|
|
386
442
|
export {
|
|
387
443
|
Accounts as Accounts,
|
|
388
444
|
type TexmlGetCallRecordingResponseBody as TexmlGetCallRecordingResponseBody,
|
|
@@ -247,7 +247,10 @@ export interface UacConnection {
|
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* The password to be used as part of the credentials. Must be 8 to 128 characters
|
|
250
|
-
* long.
|
|
250
|
+
* long. For primary accounts created on or after September 8, 2026, this password
|
|
251
|
+
* is returned as `********`. The password is returned in full on create, and on
|
|
252
|
+
* update only when that update changed the password. Accounts created before
|
|
253
|
+
* September 8, 2026 are unaffected.
|
|
251
254
|
*/
|
|
252
255
|
password?: string;
|
|
253
256
|
|
|
@@ -348,7 +351,11 @@ export interface UacExternalSettings {
|
|
|
348
351
|
outbound_proxy?: string | null;
|
|
349
352
|
|
|
350
353
|
/**
|
|
351
|
-
* The SIP password used for digest authentication with the external SIP peer.
|
|
354
|
+
* The SIP password used for digest authentication with the external SIP peer. For
|
|
355
|
+
* primary accounts created on or after September 8, 2026, this password is
|
|
356
|
+
* returned as `********`. The password is returned in full on create, and on
|
|
357
|
+
* update only when that update changed the password. Accounts created before
|
|
358
|
+
* September 8, 2026 are unaffected.
|
|
352
359
|
*/
|
|
353
360
|
password?: string;
|
|
354
361
|
|
|
@@ -58,8 +58,10 @@ export class VoiceClones extends APIResource {
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Creates a new voice clone by uploading an audio file directly. Supported
|
|
61
|
-
* formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–
|
|
62
|
-
* clear speech
|
|
61
|
+
* formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–60 seconds of
|
|
62
|
+
* clear speech (Ultra accepts up to 60 seconds; Qwen3TTS auto-trims to 10 seconds;
|
|
63
|
+
* Minimax accepts up to 5 minutes). Maximum file size: 5MB for Telnyx, 20MB for
|
|
64
|
+
* Minimax.
|
|
63
65
|
*
|
|
64
66
|
* @example
|
|
65
67
|
* ```ts
|
|
@@ -412,8 +414,8 @@ export namespace VoiceCloneCreateFromUploadParams {
|
|
|
412
414
|
export interface TelnyxUltraClone {
|
|
413
415
|
/**
|
|
414
416
|
* Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
415
|
-
* For best quality, provide
|
|
416
|
-
* size: 5MB.
|
|
417
|
+
* For best quality, provide up to 60 seconds of clear, uninterrupted speech.
|
|
418
|
+
* Maximum size: 5MB.
|
|
417
419
|
*/
|
|
418
420
|
audio_file: Uploadable;
|
|
419
421
|
|