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
package/resources/ai/chat.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as ChatAPI from "./chat.js";
|
|
3
|
+
import * as OpenAIChatAPI from "./openai/chat.js";
|
|
3
4
|
export declare class Chat extends APIResource {
|
|
4
5
|
}
|
|
5
6
|
export interface BucketIDs {
|
|
@@ -47,21 +48,6 @@ export interface ChatCompletionRequest {
|
|
|
47
48
|
* Higher values will penalize the model from repeating the same output tokens.
|
|
48
49
|
*/
|
|
49
50
|
frequency_penalty?: number;
|
|
50
|
-
/**
|
|
51
|
-
* If specified, the output will be exactly one of the choices.
|
|
52
|
-
*/
|
|
53
|
-
guided_choice?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Must be a valid JSON schema. If specified, the output will follow the JSON
|
|
56
|
-
* schema.
|
|
57
|
-
*/
|
|
58
|
-
guided_json?: {
|
|
59
|
-
[key: string]: unknown;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* If specified, the output will follow the regex pattern.
|
|
63
|
-
*/
|
|
64
|
-
guided_regex?: string;
|
|
65
51
|
/**
|
|
66
52
|
* This is used with `use_beam_search` to prefer shorter or longer completions.
|
|
67
53
|
*/
|
|
@@ -119,10 +105,12 @@ export interface ChatCompletionRequest {
|
|
|
119
105
|
*/
|
|
120
106
|
region?: 'USA' | 'EU' | 'AUS' | 'UAE';
|
|
121
107
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
108
|
+
* Controls the format of the model output. `json_object` guarantees valid JSON
|
|
109
|
+
* output without defining a schema; `json_schema` constrains the output to the
|
|
110
|
+
* JSON schema you supply via the `json_schema` property and is the supported way
|
|
111
|
+
* to get guaranteed structured output on Telnyx-hosted models.
|
|
124
112
|
*/
|
|
125
|
-
response_format?: ChatCompletionRequest.
|
|
113
|
+
response_format?: ChatCompletionRequest.ResponseFormatText | ChatCompletionRequest.ResponseFormatJsonObject | ChatCompletionRequest.ResponseFormatJsonSchemaParam;
|
|
126
114
|
/**
|
|
127
115
|
* If specified, the system will make a best effort to sample deterministically,
|
|
128
116
|
* such that repeated requests with the same `seed` and parameters should return
|
|
@@ -190,25 +178,68 @@ export declare namespace ChatCompletionRequest {
|
|
|
190
178
|
}
|
|
191
179
|
}
|
|
192
180
|
/**
|
|
193
|
-
*
|
|
194
|
-
* control over the schema, use `guided_json`.
|
|
181
|
+
* Plain text output.
|
|
195
182
|
*/
|
|
196
|
-
interface
|
|
197
|
-
type: 'text'
|
|
183
|
+
interface ResponseFormatText {
|
|
184
|
+
type: 'text';
|
|
198
185
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
186
|
+
/**
|
|
187
|
+
* JSON mode: the model output is valid JSON, without a schema.
|
|
188
|
+
*/
|
|
189
|
+
interface ResponseFormatJsonObject {
|
|
190
|
+
type: 'json_object';
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Structured output: the model output is constrained to the JSON schema supplied
|
|
194
|
+
* in `json_schema`.
|
|
195
|
+
*/
|
|
196
|
+
interface ResponseFormatJsonSchemaParam {
|
|
197
|
+
/**
|
|
198
|
+
* The JSON schema configuration, required when `type` is `json_schema`. Matches
|
|
199
|
+
* the
|
|
200
|
+
* [OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
201
|
+
* `json_schema` response format.
|
|
202
|
+
*/
|
|
203
|
+
json_schema: ResponseFormatJsonSchemaParam.JsonSchema;
|
|
204
|
+
type: 'json_schema';
|
|
202
205
|
}
|
|
203
|
-
namespace
|
|
204
|
-
|
|
206
|
+
namespace ResponseFormatJsonSchemaParam {
|
|
207
|
+
/**
|
|
208
|
+
* The JSON schema configuration, required when `type` is `json_schema`. Matches
|
|
209
|
+
* the
|
|
210
|
+
* [OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
211
|
+
* `json_schema` response format.
|
|
212
|
+
*/
|
|
213
|
+
interface JsonSchema {
|
|
214
|
+
/**
|
|
215
|
+
* The name of the response format. Used for clarity only.
|
|
216
|
+
*/
|
|
205
217
|
name: string;
|
|
218
|
+
/**
|
|
219
|
+
* A description of what the response format is for, typically used to guide the
|
|
220
|
+
* model.
|
|
221
|
+
*/
|
|
206
222
|
description?: string;
|
|
207
|
-
|
|
223
|
+
/**
|
|
224
|
+
* The JSON schema the model output must conform to. A valid
|
|
225
|
+
* [JSON Schema](https://json-schema.org) object, e.g. a Pydantic
|
|
226
|
+
* `model_json_schema()` export.
|
|
227
|
+
*/
|
|
228
|
+
schema?: {
|
|
208
229
|
[key: string]: unknown;
|
|
209
230
|
};
|
|
231
|
+
/**
|
|
232
|
+
* Enables strict schema adherence when supported by the model. If the generated
|
|
233
|
+
* output does not match the provided schema, the request fails instead of
|
|
234
|
+
* returning non-conformant output.
|
|
235
|
+
*/
|
|
236
|
+
strict?: boolean;
|
|
210
237
|
}
|
|
211
238
|
}
|
|
239
|
+
interface Function {
|
|
240
|
+
function: OpenAIChatAPI.FunctionDefinition;
|
|
241
|
+
type: 'function';
|
|
242
|
+
}
|
|
212
243
|
interface Retrieval {
|
|
213
244
|
retrieval: ChatAPI.BucketIDs;
|
|
214
245
|
type: 'retrieval';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,OAAO,kBAAe;
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,KAAK,aAAa,yBAAsB;AAE/C,qBAAa,IAAK,SAAQ,WAAW;CAAG;AAExC,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,UAAU,CA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,EAAE,KAAK,SAAS,IAAI,SAAS,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAC7F"}
|
package/resources/ai/chat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,IAAK,SAAQ,sBAAW;CAAG;AAAxC,oBAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;
|
|
1
|
+
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,MAAM,OAAO,IAAK,SAAQ,WAAW;CAAG"}
|
package/resources/ai/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AI, type ModelMetadata, type ModelsResponse, type AIRetrieveConversationHistoriesResponse, type AISummarizeResponse, type AISummarizeParams, type AIRetrieveConversationHistoriesParams, type AIRetrieveConversationHistoriesResponsesDefaultFlatPagination, } from "./ai.mjs";
|
|
2
2
|
export { Anthropic } from "./anthropic/index.mjs";
|
|
3
|
-
export { Assistants, type ArithmeticExpression, type Assistant, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, } from "./assistants/index.mjs";
|
|
4
|
-
export { Audio, type AudioTranscribeResponse, type AudioTranscribeParams } from "./audio.mjs";
|
|
3
|
+
export { Assistants, type ArithmeticExpression, type Assistant, type AssistantA2AAgent, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, } from "./assistants/index.mjs";
|
|
4
|
+
export { Audio, type AudioTranscriptionResponseWord, type AudioTranscribeResponse, type AudioTranscribeParams, } from "./audio.mjs";
|
|
5
5
|
export { Chat, type BucketIDs, type ChatCompletionRequest } from "./chat.mjs";
|
|
6
6
|
export { Clusters, type RecursiveCluster, type ClusterRetrieveResponse, type ClusterListResponse, type ClusterComputeResponse, type ClusterListParams, type ClusterComputeParams, type ClusterRetrieveParams, type ClusterFetchGraphParams, type ClusterListResponsesDefaultFlatPagination, } from "./clusters.mjs";
|
|
7
7
|
export { Collections, type Collection, type CollectionEnvelope, type CollectionListParams, type CollectionCreateParams, type CollectionUpdateParams, type CollectionsDefaultFlatPagination, } from "./collections/index.mjs";
|
|
@@ -14,4 +14,5 @@ export { McpServers, type McpServer, type McpServerListParams, type McpServerCre
|
|
|
14
14
|
export { Missions, type EventsListResponse, type ExecutionMode, type MissionData, type MissionResponse, type MissionCloneMissionResponse, type MissionListParams, type MissionCreateParams, type MissionListEventsParams, type MissionUpdateMissionParams, type MissionDataDefaultFlatPagination, } from "./missions/index.mjs";
|
|
15
15
|
export { OpenAI, type OpenAICreateResponseResponse, type OpenAICreateResponseParams } from "./openai/index.mjs";
|
|
16
16
|
export { Tools, type PayToolParams, type SharedToolResponse, type UpdateDynamicVariablesToolParams, type ToolDeleteResponse, type ToolListParams, type ToolCreateParams, type ToolUpdateParams, type SharedToolResponsesDefaultFlatPagination, } from "./tools.mjs";
|
|
17
|
+
export { Typesafe } from "./typesafe/index.mjs";
|
|
17
18
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,uCAAuC,EAC5C,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,EAC1C,KAAK,6DAA6D,GACnE,iBAAa;AACd,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,+BAA2B;AAC5B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,uCAAuC,EAC5C,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,EAC1C,KAAK,6DAA6D,GACnE,iBAAa;AACd,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,Y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,GAC9C,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,6BAAyB"}
|
package/resources/ai/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AI, type ModelMetadata, type ModelsResponse, type AIRetrieveConversationHistoriesResponse, type AISummarizeResponse, type AISummarizeParams, type AIRetrieveConversationHistoriesParams, type AIRetrieveConversationHistoriesResponsesDefaultFlatPagination, } from "./ai.js";
|
|
2
2
|
export { Anthropic } from "./anthropic/index.js";
|
|
3
|
-
export { Assistants, type ArithmeticExpression, type Assistant, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, } from "./assistants/index.js";
|
|
4
|
-
export { Audio, type AudioTranscribeResponse, type AudioTranscribeParams } from "./audio.js";
|
|
3
|
+
export { Assistants, type ArithmeticExpression, type Assistant, type AssistantA2AAgent, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, } from "./assistants/index.js";
|
|
4
|
+
export { Audio, type AudioTranscriptionResponseWord, type AudioTranscribeResponse, type AudioTranscribeParams, } from "./audio.js";
|
|
5
5
|
export { Chat, type BucketIDs, type ChatCompletionRequest } from "./chat.js";
|
|
6
6
|
export { Clusters, type RecursiveCluster, type ClusterRetrieveResponse, type ClusterListResponse, type ClusterComputeResponse, type ClusterListParams, type ClusterComputeParams, type ClusterRetrieveParams, type ClusterFetchGraphParams, type ClusterListResponsesDefaultFlatPagination, } from "./clusters.js";
|
|
7
7
|
export { Collections, type Collection, type CollectionEnvelope, type CollectionListParams, type CollectionCreateParams, type CollectionUpdateParams, type CollectionsDefaultFlatPagination, } from "./collections/index.js";
|
|
@@ -14,4 +14,5 @@ export { McpServers, type McpServer, type McpServerListParams, type McpServerCre
|
|
|
14
14
|
export { Missions, type EventsListResponse, type ExecutionMode, type MissionData, type MissionResponse, type MissionCloneMissionResponse, type MissionListParams, type MissionCreateParams, type MissionListEventsParams, type MissionUpdateMissionParams, type MissionDataDefaultFlatPagination, } from "./missions/index.js";
|
|
15
15
|
export { OpenAI, type OpenAICreateResponseResponse, type OpenAICreateResponseParams } from "./openai/index.js";
|
|
16
16
|
export { Tools, type PayToolParams, type SharedToolResponse, type UpdateDynamicVariablesToolParams, type ToolDeleteResponse, type ToolListParams, type ToolCreateParams, type ToolUpdateParams, type SharedToolResponsesDefaultFlatPagination, } from "./tools.js";
|
|
17
|
+
export { Typesafe } from "./typesafe/index.js";
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,uCAAuC,EAC5C,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,EAC1C,KAAK,6DAA6D,GACnE,gBAAa;AACd,OAAO,EAAE,SAAS,EAAE,6BAA0B;AAC9C,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,8BAA2B;AAC5B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,uCAAuC,EAC5C,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,EAC1C,KAAK,6DAA6D,GACnE,gBAAa;AACd,OAAO,EAAE,SAAS,EAAE,6BAA0B;AAC9C,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,k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B;AACvB,OAAO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,GACtC,4BAAyB;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE,0BAAuB;AAC5G,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,mBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,4BAAyB"}
|
package/resources/ai/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Tools = exports.OpenAI = exports.Missions = exports.McpServers = exports.Knowledge = exports.Integrations = exports.FineTuning = exports.Embeddings = exports.Conversations = exports.Collections = exports.Clusters = exports.Chat = exports.Audio = exports.Assistants = exports.Anthropic = exports.AI = void 0;
|
|
4
|
+
exports.Typesafe = exports.Tools = exports.OpenAI = exports.Missions = exports.McpServers = exports.Knowledge = exports.Integrations = exports.FineTuning = exports.Embeddings = exports.Conversations = exports.Collections = exports.Clusters = exports.Chat = exports.Audio = exports.Assistants = exports.Anthropic = exports.AI = void 0;
|
|
5
5
|
var ai_1 = require("./ai.js");
|
|
6
6
|
Object.defineProperty(exports, "AI", { enumerable: true, get: function () { return ai_1.AI; } });
|
|
7
7
|
var index_1 = require("./anthropic/index.js");
|
|
@@ -34,4 +34,6 @@ var index_10 = require("./openai/index.js");
|
|
|
34
34
|
Object.defineProperty(exports, "OpenAI", { enumerable: true, get: function () { return index_10.OpenAI; } });
|
|
35
35
|
var tools_1 = require("./tools.js");
|
|
36
36
|
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
37
|
+
var index_11 = require("./typesafe/index.js");
|
|
38
|
+
Object.defineProperty(exports, "Typesafe", { enumerable: true, get: function () { return index_11.Typesafe; } });
|
|
37
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8BASc;AARZ,wFAAA,EAAE,OAAA;AASJ,8CAA8C;AAArC,kGAAA,SAAS,OAAA;AAClB,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8BASc;AARZ,wFAAA,EAAE,OAAA;AASJ,8CAA8C;AAArC,kGAAA,SAAS,OAAA;AAClB,+CAiE4B;AAhE1B,mGAAA,UAAU,OAAA;AAiEZ,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,kCAA0E;AAAjE,4FAAA,IAAI,OAAA;AACb,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,gDAQ6B;AAP3B,oGAAA,WAAW,OAAA;AAQb,kDAW+B;AAV7B,sGAAA,aAAa,OAAA;AAWf,+CAW4B;AAV1B,mGAAA,UAAU,OAAA;AAWZ,gDAAiD;AAAxC,mGAAA,UAAU,OAAA;AACnB,iDAAoG;AAA3F,qGAAA,YAAY,OAAA;AACrB,8CAA8C;AAArC,kGAAA,SAAS,OAAA;AAClB,gDAOuB;AANrB,yGAAA,UAAU,OAAA;AAOZ,6CAY0B;AAXxB,iGAAA,QAAQ,OAAA;AAYV,4CAA4G;AAAnG,gGAAA,MAAM,OAAA;AACf,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,8CAA4C;AAAnC,kGAAA,QAAQ,OAAA"}
|
package/resources/ai/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export { AI, } from "./ai.mjs";
|
|
3
3
|
export { Anthropic } from "./anthropic/index.mjs";
|
|
4
4
|
export { Assistants, } from "./assistants/index.mjs";
|
|
5
|
-
export { Audio } from "./audio.mjs";
|
|
5
|
+
export { Audio, } from "./audio.mjs";
|
|
6
6
|
export { Chat } from "./chat.mjs";
|
|
7
7
|
export { Clusters, } from "./clusters.mjs";
|
|
8
8
|
export { Collections, } from "./collections/index.mjs";
|
|
@@ -15,4 +15,5 @@ export { McpServers, } from "./mcp-servers.mjs";
|
|
|
15
15
|
export { Missions, } from "./missions/index.mjs";
|
|
16
16
|
export { OpenAI } from "./openai/index.mjs";
|
|
17
17
|
export { Tools, } from "./tools.mjs";
|
|
18
|
+
export { Typesafe } from "./typesafe/index.mjs";
|
|
18
19
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,EAAE,GAQH,iBAAa;AACd,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,UAAU,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/ai/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,EAAE,GAQH,iBAAa;AACd,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,UAAU,GAgEX,+BAA2B;AAC5B,OAAO,EACL,KAAK,GAIN,oBAAgB;AACjB,OAAO,EAAE,IAAI,EAA8C,mBAAe;AAC1E,OAAO,EACL,QAAQ,GAUT,uBAAmB;AACpB,OAAO,EACL,WAAW,GAOZ,gCAA4B;AAC7B,OAAO,EACL,aAAa,GAUd,kCAA8B;AAC/B,OAAO,EACL,UAAU,GAUX,+BAA2B;AAC5B,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,YAAY,EAAkD,iCAA6B;AACpG,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,UAAU,GAMX,0BAAsB;AACvB,OAAO,EACL,QAAQ,GAWT,6BAAyB;AAC1B,OAAO,EAAE,MAAM,EAAsE,2BAAuB;AAC5G,OAAO,EACL,KAAK,GASN,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,6BAAyB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as OpenAIChatAPI from "./chat.mjs";
|
|
2
3
|
import * as ChatAPI from "../chat.mjs";
|
|
3
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
@@ -25,6 +26,13 @@ export declare class Chat extends APIResource {
|
|
|
25
26
|
*/
|
|
26
27
|
createCompletion(body: ChatCreateCompletionParams, options?: RequestOptions): APIPromise<ChatCreateCompletionResponse>;
|
|
27
28
|
}
|
|
29
|
+
export interface FunctionDefinition {
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
parameters?: {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
28
36
|
export type ChatCreateCompletionResponse = {
|
|
29
37
|
[key: string]: unknown;
|
|
30
38
|
};
|
|
@@ -61,21 +69,6 @@ export interface ChatCreateCompletionParams {
|
|
|
61
69
|
* Higher values will penalize the model from repeating the same output tokens.
|
|
62
70
|
*/
|
|
63
71
|
frequency_penalty?: number;
|
|
64
|
-
/**
|
|
65
|
-
* If specified, the output will be exactly one of the choices.
|
|
66
|
-
*/
|
|
67
|
-
guided_choice?: Array<string>;
|
|
68
|
-
/**
|
|
69
|
-
* Must be a valid JSON schema. If specified, the output will follow the JSON
|
|
70
|
-
* schema.
|
|
71
|
-
*/
|
|
72
|
-
guided_json?: {
|
|
73
|
-
[key: string]: unknown;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* If specified, the output will follow the regex pattern.
|
|
77
|
-
*/
|
|
78
|
-
guided_regex?: string;
|
|
79
72
|
/**
|
|
80
73
|
* This is used with `use_beam_search` to prefer shorter or longer completions.
|
|
81
74
|
*/
|
|
@@ -133,10 +126,12 @@ export interface ChatCreateCompletionParams {
|
|
|
133
126
|
*/
|
|
134
127
|
region?: 'USA' | 'EU' | 'AUS' | 'UAE';
|
|
135
128
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
129
|
+
* Controls the format of the model output. `json_object` guarantees valid JSON
|
|
130
|
+
* output without defining a schema; `json_schema` constrains the output to the
|
|
131
|
+
* JSON schema you supply via the `json_schema` property and is the supported way
|
|
132
|
+
* to get guaranteed structured output on Telnyx-hosted models.
|
|
138
133
|
*/
|
|
139
|
-
response_format?: ChatCreateCompletionParams.
|
|
134
|
+
response_format?: ChatCreateCompletionParams.ResponseFormatText | ChatCreateCompletionParams.ResponseFormatJsonObject | ChatCreateCompletionParams.ResponseFormatJsonSchemaParam;
|
|
140
135
|
/**
|
|
141
136
|
* If specified, the system will make a best effort to sample deterministically,
|
|
142
137
|
* such that repeated requests with the same `seed` and parameters should return
|
|
@@ -204,31 +199,74 @@ export declare namespace ChatCreateCompletionParams {
|
|
|
204
199
|
}
|
|
205
200
|
}
|
|
206
201
|
/**
|
|
207
|
-
*
|
|
208
|
-
* control over the schema, use `guided_json`.
|
|
202
|
+
* Plain text output.
|
|
209
203
|
*/
|
|
210
|
-
interface
|
|
211
|
-
type: 'text'
|
|
204
|
+
interface ResponseFormatText {
|
|
205
|
+
type: 'text';
|
|
212
206
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
/**
|
|
208
|
+
* JSON mode: the model output is valid JSON, without a schema.
|
|
209
|
+
*/
|
|
210
|
+
interface ResponseFormatJsonObject {
|
|
211
|
+
type: 'json_object';
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Structured output: the model output is constrained to the JSON schema supplied
|
|
215
|
+
* in `json_schema`.
|
|
216
|
+
*/
|
|
217
|
+
interface ResponseFormatJsonSchemaParam {
|
|
218
|
+
/**
|
|
219
|
+
* The JSON schema configuration, required when `type` is `json_schema`. Matches
|
|
220
|
+
* the
|
|
221
|
+
* [OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
222
|
+
* `json_schema` response format.
|
|
223
|
+
*/
|
|
224
|
+
json_schema: ResponseFormatJsonSchemaParam.JsonSchema;
|
|
225
|
+
type: 'json_schema';
|
|
216
226
|
}
|
|
217
|
-
namespace
|
|
218
|
-
|
|
227
|
+
namespace ResponseFormatJsonSchemaParam {
|
|
228
|
+
/**
|
|
229
|
+
* The JSON schema configuration, required when `type` is `json_schema`. Matches
|
|
230
|
+
* the
|
|
231
|
+
* [OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
232
|
+
* `json_schema` response format.
|
|
233
|
+
*/
|
|
234
|
+
interface JsonSchema {
|
|
235
|
+
/**
|
|
236
|
+
* The name of the response format. Used for clarity only.
|
|
237
|
+
*/
|
|
219
238
|
name: string;
|
|
239
|
+
/**
|
|
240
|
+
* A description of what the response format is for, typically used to guide the
|
|
241
|
+
* model.
|
|
242
|
+
*/
|
|
220
243
|
description?: string;
|
|
221
|
-
|
|
244
|
+
/**
|
|
245
|
+
* The JSON schema the model output must conform to. A valid
|
|
246
|
+
* [JSON Schema](https://json-schema.org) object, e.g. a Pydantic
|
|
247
|
+
* `model_json_schema()` export.
|
|
248
|
+
*/
|
|
249
|
+
schema?: {
|
|
222
250
|
[key: string]: unknown;
|
|
223
251
|
};
|
|
252
|
+
/**
|
|
253
|
+
* Enables strict schema adherence when supported by the model. If the generated
|
|
254
|
+
* output does not match the provided schema, the request fails instead of
|
|
255
|
+
* returning non-conformant output.
|
|
256
|
+
*/
|
|
257
|
+
strict?: boolean;
|
|
224
258
|
}
|
|
225
259
|
}
|
|
260
|
+
interface Function {
|
|
261
|
+
function: OpenAIChatAPI.FunctionDefinition;
|
|
262
|
+
type: 'function';
|
|
263
|
+
}
|
|
226
264
|
interface Retrieval {
|
|
227
265
|
retrieval: ChatAPI.BucketIDs;
|
|
228
266
|
type: 'retrieval';
|
|
229
267
|
}
|
|
230
268
|
}
|
|
231
269
|
export declare namespace Chat {
|
|
232
|
-
export { type ChatCreateCompletionResponse as ChatCreateCompletionResponse, type ChatCreateCompletionParams as ChatCreateCompletionParams, };
|
|
270
|
+
export { type FunctionDefinition as FunctionDefinition, type ChatCreateCompletionResponse as ChatCreateCompletionResponse, type ChatCreateCompletionParams as ChatCreateCompletionParams, };
|
|
233
271
|
}
|
|
234
272
|
//# sourceMappingURL=chat.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,OAAO,oBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,MAAM,4BAA4B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,M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CAAC,kBAAkB,CAAC;QAE3C,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as OpenAIChatAPI from "./chat.js";
|
|
2
3
|
import * as ChatAPI from "../chat.js";
|
|
3
4
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
@@ -25,6 +26,13 @@ export declare class Chat extends APIResource {
|
|
|
25
26
|
*/
|
|
26
27
|
createCompletion(body: ChatCreateCompletionParams, options?: RequestOptions): APIPromise<ChatCreateCompletionResponse>;
|
|
27
28
|
}
|
|
29
|
+
export interface FunctionDefinition {
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
parameters?: {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
28
36
|
export type ChatCreateCompletionResponse = {
|
|
29
37
|
[key: string]: unknown;
|
|
30
38
|
};
|
|
@@ -61,21 +69,6 @@ export interface ChatCreateCompletionParams {
|
|
|
61
69
|
* Higher values will penalize the model from repeating the same output tokens.
|
|
62
70
|
*/
|
|
63
71
|
frequency_penalty?: number;
|
|
64
|
-
/**
|
|
65
|
-
* If specified, the output will be exactly one of the choices.
|
|
66
|
-
*/
|
|
67
|
-
guided_choice?: Array<string>;
|
|
68
|
-
/**
|
|
69
|
-
* Must be a valid JSON schema. If specified, the output will follow the JSON
|
|
70
|
-
* schema.
|
|
71
|
-
*/
|
|
72
|
-
guided_json?: {
|
|
73
|
-
[key: string]: unknown;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* If specified, the output will follow the regex pattern.
|
|
77
|
-
*/
|
|
78
|
-
guided_regex?: string;
|
|
79
72
|
/**
|
|
80
73
|
* This is used with `use_beam_search` to prefer shorter or longer completions.
|
|
81
74
|
*/
|
|
@@ -133,10 +126,12 @@ export interface ChatCreateCompletionParams {
|
|
|
133
126
|
*/
|
|
134
127
|
region?: 'USA' | 'EU' | 'AUS' | 'UAE';
|
|
135
128
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
129
|
+
* Controls the format of the model output. `json_object` guarantees valid JSON
|
|
130
|
+
* output without defining a schema; `json_schema` constrains the output to the
|
|
131
|
+
* JSON schema you supply via the `json_schema` property and is the supported way
|
|
132
|
+
* to get guaranteed structured output on Telnyx-hosted models.
|
|
138
133
|
*/
|
|
139
|
-
response_format?: ChatCreateCompletionParams.
|
|
134
|
+
response_format?: ChatCreateCompletionParams.ResponseFormatText | ChatCreateCompletionParams.ResponseFormatJsonObject | ChatCreateCompletionParams.ResponseFormatJsonSchemaParam;
|
|
140
135
|
/**
|
|
141
136
|
* If specified, the system will make a best effort to sample deterministically,
|
|
142
137
|
* such that repeated requests with the same `seed` and parameters should return
|
|
@@ -204,31 +199,74 @@ export declare namespace ChatCreateCompletionParams {
|
|
|
204
199
|
}
|
|
205
200
|
}
|
|
206
201
|
/**
|
|
207
|
-
*
|
|
208
|
-
* control over the schema, use `guided_json`.
|
|
202
|
+
* Plain text output.
|
|
209
203
|
*/
|
|
210
|
-
interface
|
|
211
|
-
type: 'text'
|
|
204
|
+
interface ResponseFormatText {
|
|
205
|
+
type: 'text';
|
|
212
206
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
/**
|
|
208
|
+
* JSON mode: the model output is valid JSON, without a schema.
|
|
209
|
+
*/
|
|
210
|
+
interface ResponseFormatJsonObject {
|
|
211
|
+
type: 'json_object';
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Structured output: the model output is constrained to the JSON schema supplied
|
|
215
|
+
* in `json_schema`.
|
|
216
|
+
*/
|
|
217
|
+
interface ResponseFormatJsonSchemaParam {
|
|
218
|
+
/**
|
|
219
|
+
* The JSON schema configuration, required when `type` is `json_schema`. Matches
|
|
220
|
+
* the
|
|
221
|
+
* [OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
222
|
+
* `json_schema` response format.
|
|
223
|
+
*/
|
|
224
|
+
json_schema: ResponseFormatJsonSchemaParam.JsonSchema;
|
|
225
|
+
type: 'json_schema';
|
|
216
226
|
}
|
|
217
|
-
namespace
|
|
218
|
-
|
|
227
|
+
namespace ResponseFormatJsonSchemaParam {
|
|
228
|
+
/**
|
|
229
|
+
* The JSON schema configuration, required when `type` is `json_schema`. Matches
|
|
230
|
+
* the
|
|
231
|
+
* [OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
232
|
+
* `json_schema` response format.
|
|
233
|
+
*/
|
|
234
|
+
interface JsonSchema {
|
|
235
|
+
/**
|
|
236
|
+
* The name of the response format. Used for clarity only.
|
|
237
|
+
*/
|
|
219
238
|
name: string;
|
|
239
|
+
/**
|
|
240
|
+
* A description of what the response format is for, typically used to guide the
|
|
241
|
+
* model.
|
|
242
|
+
*/
|
|
220
243
|
description?: string;
|
|
221
|
-
|
|
244
|
+
/**
|
|
245
|
+
* The JSON schema the model output must conform to. A valid
|
|
246
|
+
* [JSON Schema](https://json-schema.org) object, e.g. a Pydantic
|
|
247
|
+
* `model_json_schema()` export.
|
|
248
|
+
*/
|
|
249
|
+
schema?: {
|
|
222
250
|
[key: string]: unknown;
|
|
223
251
|
};
|
|
252
|
+
/**
|
|
253
|
+
* Enables strict schema adherence when supported by the model. If the generated
|
|
254
|
+
* output does not match the provided schema, the request fails instead of
|
|
255
|
+
* returning non-conformant output.
|
|
256
|
+
*/
|
|
257
|
+
strict?: boolean;
|
|
224
258
|
}
|
|
225
259
|
}
|
|
260
|
+
interface Function {
|
|
261
|
+
function: OpenAIChatAPI.FunctionDefinition;
|
|
262
|
+
type: 'function';
|
|
263
|
+
}
|
|
226
264
|
interface Retrieval {
|
|
227
265
|
retrieval: ChatAPI.BucketIDs;
|
|
228
266
|
type: 'retrieval';
|
|
229
267
|
}
|
|
230
268
|
}
|
|
231
269
|
export declare namespace Chat {
|
|
232
|
-
export { type ChatCreateCompletionResponse as ChatCreateCompletionResponse, type ChatCreateCompletionParams as ChatCreateCompletionParams, };
|
|
270
|
+
export { type FunctionDefinition as FunctionDefinition, type ChatCreateCompletionResponse as ChatCreateCompletionResponse, type ChatCreateCompletionParams as ChatCreateCompletionParams, };
|
|
233
271
|
}
|
|
234
272
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,OAAO,mBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,MAAM,4BAA4B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,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ClB;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAMrD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AA3BD,oBA2BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;
|
|
1
|
+
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAMrD,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Chat, type ChatCreateCompletionResponse, type ChatCreateCompletionParams } from "./chat.mjs";
|
|
1
|
+
export { Chat, type FunctionDefinition, type ChatCreateCompletionResponse, type ChatCreateCompletionParams, } from "./chat.mjs";
|
|
2
2
|
export { Embeddings, type EmbeddingCreateEmbeddingsResponse, type EmbeddingListEmbeddingModelsResponse, type EmbeddingCreateEmbeddingsParams, } from "./embeddings.mjs";
|
|
3
3
|
export { OpenAI, type OpenAICreateResponseResponse, type OpenAICreateResponseParams } from "./openai.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/openai/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/openai/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,mBAAe;AAChB,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,GACrC,yBAAqB;AACtB,OAAO,EAAE,MAAM,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE,qBAAiB"}
|