telnyx 7.26.0 → 7.28.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 +28 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -10
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses/addresses.d.mts +22 -2
- package/resources/addresses/addresses.d.mts.map +1 -1
- package/resources/addresses/addresses.d.ts +22 -2
- package/resources/addresses/addresses.d.ts.map +1 -1
- package/resources/addresses/addresses.js +12 -0
- package/resources/addresses/addresses.js.map +1 -1
- package/resources/addresses/addresses.mjs +12 -0
- package/resources/addresses/addresses.mjs.map +1 -1
- package/resources/ai/ai.d.mts +2 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +2 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +179 -33
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +179 -33
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +4 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +4 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +11 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +11 -6
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/assistants/versions.js +4 -1
- package/resources/ai/assistants/versions.js.map +1 -1
- package/resources/ai/assistants/versions.mjs +4 -1
- package/resources/ai/assistants/versions.mjs.map +1 -1
- package/resources/ai/audio.d.mts +33 -10
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +33 -10
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +21 -8
- package/resources/ai/avatars.d.mts.map +1 -1
- package/resources/ai/avatars.d.ts +21 -8
- package/resources/ai/avatars.d.ts.map +1 -1
- package/resources/ai/avatars.js +3 -1
- package/resources/ai/avatars.js.map +1 -1
- package/resources/ai/avatars.mjs +3 -1
- package/resources/ai/avatars.mjs.map +1 -1
- package/resources/ai/index.d.mts +1 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tools.d.mts +13 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +13 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +202 -13
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +202 -13
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/compute/compute.d.mts +75 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +75 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +17 -0
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/funcs/export.d.mts +3 -0
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +3 -0
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/export.js +3 -0
- package/resources/compute/funcs/export.js.map +1 -1
- package/resources/compute/funcs/export.mjs +3 -0
- package/resources/compute/funcs/export.mjs.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +60 -1
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +60 -1
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js +24 -0
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs +24 -0
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs.map +1 -1
- package/resources/compute/index.d.mts +2 -2
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +2 -2
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/credential-connections/credential-connections.d.mts +38 -8
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +38 -8
- 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/dial-metrics.d.mts +151 -0
- package/resources/dial-metrics.d.mts.map +1 -0
- package/resources/dial-metrics.d.ts +151 -0
- package/resources/dial-metrics.d.ts.map +1 -0
- package/resources/dial-metrics.js +44 -0
- package/resources/dial-metrics.js.map +1 -0
- package/resources/dial-metrics.mjs +40 -0
- package/resources/dial-metrics.mjs.map +1 -0
- package/resources/dir/dir.d.mts +2 -3
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +2 -3
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -2
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -2
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/references.d.mts +15 -9
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +15 -9
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/dir/references.js +15 -9
- package/resources/dir/references.js.map +1 -1
- package/resources/dir/references.mjs +15 -9
- package/resources/dir/references.mjs.map +1 -1
- package/resources/dir/verify-email.d.mts +17 -5
- package/resources/dir/verify-email.d.mts.map +1 -1
- package/resources/dir/verify-email.d.ts +17 -5
- package/resources/dir/verify-email.d.ts.map +1 -1
- package/resources/dir/verify-email.js +17 -5
- package/resources/dir/verify-email.js.map +1 -1
- package/resources/dir/verify-email.mjs +17 -5
- package/resources/dir/verify-email.mjs.map +1 -1
- package/resources/email-domains/email-domains.d.mts +1 -1
- package/resources/email-domains/email-domains.d.mts.map +1 -1
- package/resources/email-domains/email-domains.d.ts +1 -1
- package/resources/email-domains/email-domains.d.ts.map +1 -1
- package/resources/enterprises/verify-email.d.mts +1 -1
- package/resources/enterprises/verify-email.d.ts +1 -1
- package/resources/enterprises/verify-email.js +1 -1
- package/resources/enterprises/verify-email.mjs +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
- 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 +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +36 -6
- package/resources/ip-connections.d.mts.map +1 -1
- package/resources/ip-connections.d.ts +36 -6
- package/resources/ip-connections.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.d.mts +13 -7
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +13 -7
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +13 -7
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +13 -7
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +14 -23
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/messages/messages.d.mts +581 -118
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +581 -118
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +71 -14
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +71 -14
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messages/rcs.d.mts +26 -6
- package/resources/messages/rcs.d.mts.map +1 -1
- package/resources/messages/rcs.d.ts +26 -6
- package/resources/messages/rcs.d.ts.map +1 -1
- package/resources/messages/rcs.js +11 -2
- package/resources/messages/rcs.js.map +1 -1
- package/resources/messages/rcs.mjs +11 -2
- package/resources/messages/rcs.mjs.map +1 -1
- package/resources/network-coverage.d.mts +1 -1
- package/resources/network-coverage.d.mts.map +1 -1
- package/resources/network-coverage.d.ts +1 -1
- package/resources/network-coverage.d.ts.map +1 -1
- package/resources/number-lookup.d.mts +122 -4
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +122 -4
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.mts +9 -0
- package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.ts +9 -0
- package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
- package/resources/phone-numbers/csv-downloads.js +5 -2
- package/resources/phone-numbers/csv-downloads.js.map +1 -1
- package/resources/phone-numbers/csv-downloads.mjs +5 -2
- package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
- package/resources/phone-numbers/index.d.mts +2 -2
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +2 -2
- package/resources/phone-numbers/index.d.ts.map +1 -1
- package/resources/phone-numbers/index.js.map +1 -1
- package/resources/phone-numbers/index.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +266 -15
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +266 -15
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +1 -1
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +1 -1
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +28 -3
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +28 -3
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +12 -5
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +12 -5
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/tailscale-subnet-routers.d.mts +233 -0
- package/resources/tailscale-subnet-routers.d.mts.map +1 -0
- package/resources/tailscale-subnet-routers.d.ts +233 -0
- package/resources/tailscale-subnet-routers.d.ts.map +1 -0
- package/resources/tailscale-subnet-routers.js +105 -0
- package/resources/tailscale-subnet-routers.js.map +1 -0
- package/resources/tailscale-subnet-routers.mjs +101 -0
- package/resources/tailscale-subnet-routers.mjs.map +1 -0
- package/resources/telephony-credentials.d.mts +11 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +11 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +9 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +9 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/texml/accounts/accounts.d.mts +2 -2
- package/resources/texml/accounts/accounts.d.ts +2 -2
- package/resources/texml/accounts/accounts.js +2 -2
- package/resources/texml/accounts/accounts.mjs +2 -2
- package/resources/texml/accounts/calls/calls.d.mts +49 -14
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +49 -14
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +7 -7
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +7 -7
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.js +2 -2
- package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
- package/resources/texml/accounts/calls/recordings.d.mts +10 -2
- package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings.d.ts +10 -2
- package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings.js +4 -1
- package/resources/texml/accounts/calls/recordings.js.map +1 -1
- package/resources/texml/accounts/calls/recordings.mjs +4 -1
- package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.mts +10 -2
- package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.ts +10 -2
- package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
- package/resources/texml/accounts/calls/siprec.js +4 -1
- package/resources/texml/accounts/calls/siprec.js.map +1 -1
- package/resources/texml/accounts/calls/siprec.mjs +4 -1
- package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
- package/resources/texml/accounts/calls/streams.d.mts +10 -2
- package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
- package/resources/texml/accounts/calls/streams.d.ts +10 -2
- package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
- package/resources/texml/accounts/calls/streams.js +4 -1
- package/resources/texml/accounts/calls/streams.js.map +1 -1
- package/resources/texml/accounts/calls/streams.mjs +4 -1
- package/resources/texml/accounts/calls/streams.mjs.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.js +5 -5
- package/resources/texml/accounts/conferences/conferences.js.map +1 -1
- package/resources/texml/accounts/conferences/conferences.mjs +5 -5
- package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +35 -10
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +35 -10
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/participants.js +5 -5
- package/resources/texml/accounts/conferences/participants.mjs +5 -5
- package/resources/texml/accounts/queues.d.mts +25 -8
- package/resources/texml/accounts/queues.d.mts.map +1 -1
- package/resources/texml/accounts/queues.d.ts +25 -8
- package/resources/texml/accounts/queues.d.ts.map +1 -1
- package/resources/texml/accounts/queues.js +7 -5
- package/resources/texml/accounts/queues.js.map +1 -1
- package/resources/texml/accounts/queues.mjs +7 -5
- package/resources/texml/accounts/queues.mjs.map +1 -1
- package/resources/texml/accounts/recordings/json.d.mts +14 -4
- package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
- package/resources/texml/accounts/recordings/json.d.ts +14 -4
- package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
- package/resources/texml/accounts/recordings/json.js +2 -2
- package/resources/texml/accounts/recordings/json.mjs +2 -2
- package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.js +2 -2
- package/resources/texml/accounts/transcriptions/json.mjs +2 -2
- package/resources/text-to-speech/text-to-speech.d.mts +15 -6
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +15 -6
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/tts-integrations/actions.d.mts +4 -0
- package/resources/tts-integrations/actions.d.mts.map +1 -0
- package/resources/tts-integrations/actions.d.ts +4 -0
- package/resources/tts-integrations/actions.d.ts.map +1 -0
- package/resources/tts-integrations/actions.js +9 -0
- package/resources/tts-integrations/actions.js.map +1 -0
- package/resources/tts-integrations/actions.mjs +5 -0
- package/resources/tts-integrations/actions.mjs.map +1 -0
- package/resources/tts-integrations/index.d.mts +3 -0
- package/resources/tts-integrations/index.d.mts.map +1 -0
- package/resources/tts-integrations/index.d.ts +3 -0
- package/resources/tts-integrations/index.d.ts.map +1 -0
- package/resources/tts-integrations/index.js +9 -0
- package/resources/tts-integrations/index.js.map +1 -0
- package/resources/tts-integrations/index.mjs +4 -0
- package/resources/tts-integrations/index.mjs.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.mts +10 -0
- package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.ts +10 -0
- package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations/tts-integrations.js +17 -0
- package/resources/tts-integrations/tts-integrations.js.map +1 -0
- package/resources/tts-integrations/tts-integrations.mjs +12 -0
- package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
- package/resources/tts-integrations.d.mts +2 -0
- package/resources/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations.d.ts +2 -0
- package/resources/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations.js +6 -0
- package/resources/tts-integrations.js.map +1 -0
- package/resources/tts-integrations.mjs +3 -0
- package/resources/tts-integrations.mjs.map +1 -0
- package/resources/uac-connections/uac-connections.d.mts +36 -6
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +36 -6
- 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 +57 -10
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +57 -10
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +6 -4
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +6 -4
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/webhooks.d.mts +433 -81
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +433 -81
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +165 -0
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
- package/resources/whatsapp/hosted-signups.d.ts +165 -0
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
- package/resources/whatsapp/hosted-signups.js +56 -0
- package/resources/whatsapp/hosted-signups.js.map +1 -0
- package/resources/whatsapp/hosted-signups.mjs +52 -0
- package/resources/whatsapp/hosted-signups.mjs.map +1 -0
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +64 -6
- package/src/resources/addresses/addresses.ts +22 -2
- package/src/resources/ai/ai.ts +2 -0
- package/src/resources/ai/assistants/assistants.ts +191 -31
- package/src/resources/ai/assistants/versions.ts +11 -6
- package/src/resources/ai/audio.ts +35 -10
- package/src/resources/ai/avatars.ts +22 -8
- package/src/resources/ai/index.ts +1 -0
- package/src/resources/ai/tools.ts +16 -0
- package/src/resources/calls/actions.ts +281 -10
- package/src/resources/calls/calls.ts +2 -0
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/compute/compute.ts +105 -0
- package/src/resources/compute/funcs/export.ts +3 -0
- package/src/resources/compute/funcs/funcs.ts +99 -0
- package/src/resources/compute/funcs/index.ts +3 -0
- package/src/resources/compute/index.ts +4 -1
- package/src/resources/credential-connections/credential-connections.ts +41 -8
- package/src/resources/dial-metrics.ts +185 -0
- package/src/resources/dir/dir.ts +4 -2
- package/src/resources/dir/references.ts +15 -9
- package/src/resources/dir/verify-email.ts +17 -5
- package/src/resources/email-domains/email-domains.ts +1 -1
- package/src/resources/enterprises/verify-email.ts +1 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
- package/src/resources/index.ts +23 -3
- package/src/resources/ip-connections.ts +39 -6
- package/src/resources/meeting-sessions/actions.ts +13 -7
- package/src/resources/meeting-sessions/index.ts +0 -1
- package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
- package/src/resources/messages/messages.ts +786 -125
- package/src/resources/messages/rcs.ts +37 -7
- package/src/resources/network-coverage.ts +5 -1
- package/src/resources/number-lookup.ts +154 -4
- package/src/resources/phone-numbers/csv-downloads.ts +15 -2
- package/src/resources/phone-numbers/index.ts +3 -1
- package/src/resources/phone-numbers/jobs.ts +320 -16
- package/src/resources/phone-numbers/phone-numbers.ts +38 -2
- package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
- package/src/resources/porting-orders/porting-orders.ts +1 -0
- package/src/resources/porting-phone-numbers.ts +1 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/speech-to-text/speech-to-text.ts +12 -4
- package/src/resources/tailscale-subnet-routers.ts +303 -0
- package/src/resources/telephony-credentials.ts +24 -2
- package/src/resources/texml/accounts/accounts.ts +2 -2
- package/src/resources/texml/accounts/calls/calls.ts +49 -14
- package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
- package/src/resources/texml/accounts/calls/recordings.ts +10 -2
- package/src/resources/texml/accounts/calls/siprec.ts +10 -2
- package/src/resources/texml/accounts/calls/streams.ts +10 -2
- package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
- package/src/resources/texml/accounts/conferences/participants.ts +35 -10
- package/src/resources/texml/accounts/queues.ts +25 -8
- package/src/resources/texml/accounts/recordings/json.ts +14 -4
- package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
- package/src/resources/text-to-speech/text-to-speech.ts +15 -6
- package/src/resources/tts-integrations/actions.ts +5 -0
- package/src/resources/tts-integrations/index.ts +4 -0
- package/src/resources/tts-integrations/tts-integrations.ts +15 -0
- package/src/resources/tts-integrations.ts +3 -0
- package/src/resources/uac-connections/uac-connections.ts +39 -6
- package/src/resources/voice-clones.ts +65 -9
- package/src/resources/webhooks.ts +517 -95
- package/src/resources/whatsapp/hosted-signups.ts +221 -0
- package/src/resources/whatsapp/index.ts +9 -0
- package/src/resources/whatsapp/whatsapp.ts +22 -0
- 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
|
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ions } from "../../../internal/request-options.mjs";
|
|
|
8
8
|
export declare class Versions extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Retrieves all versions of a specific assistant with complete configuration and
|
|
11
|
-
* metadata
|
|
11
|
+
* metadata. An assistant keeps at most 10 versions, including the main version.
|
|
12
|
+
* When an update takes it past that limit, the oldest versions are permanently
|
|
13
|
+
* deleted. The main version and any version referenced by a traffic distribution
|
|
14
|
+
* rule are never deleted this way.
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* ```ts
|
|
@@ -85,9 +88,10 @@ export interface UpdateAssistant {
|
|
|
85
88
|
*/
|
|
86
89
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
87
90
|
/**
|
|
88
|
-
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
|
|
92
|
+
* avatar or an organization-owned custom avatar returned by the Avatars API.
|
|
93
|
+
* Discover the available stock catalog with GET /v2/ai/avatars and
|
|
94
|
+
* filter[avatar_type]=stock; follow meta.total_pages to load every page.
|
|
91
95
|
*/
|
|
92
96
|
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
93
97
|
/**
|
|
@@ -285,8 +289,9 @@ export interface VersionUpdateParams {
|
|
|
285
289
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
286
290
|
/**
|
|
287
291
|
* Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
|
|
288
|
-
* Use
|
|
289
|
-
*
|
|
292
|
+
* Use a stock avatar or an organization-owned custom avatar returned by the
|
|
293
|
+
* Avatars API. Discover the available stock catalog with GET /v2/ai/avatars and
|
|
294
|
+
* filter[avatar_type]=stock; follow meta.total_pages to load every page.
|
|
290
295
|
*/
|
|
291
296
|
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
292
297
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"versions.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC;IAI7F;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQlG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,kBAAkB,CAAC;IAQ/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,kBAAkB,CAAC;IAQ/C;;;;;;;;;;;;;OAaG;IACH,OAAO,CACL,SA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BAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -8,7 +8,10 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
8
8
|
export declare class Versions extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Retrieves all versions of a specific assistant with complete configuration and
|
|
11
|
-
* metadata
|
|
11
|
+
* metadata. An assistant keeps at most 10 versions, including the main version.
|
|
12
|
+
* When an update takes it past that limit, the oldest versions are permanently
|
|
13
|
+
* deleted. The main version and any version referenced by a traffic distribution
|
|
14
|
+
* rule are never deleted this way.
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* ```ts
|
|
@@ -85,9 +88,10 @@ export interface UpdateAssistant {
|
|
|
85
88
|
*/
|
|
86
89
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
87
90
|
/**
|
|
88
|
-
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
+
* **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
|
|
92
|
+
* avatar or an organization-owned custom avatar returned by the Avatars API.
|
|
93
|
+
* Discover the available stock catalog with GET /v2/ai/avatars and
|
|
94
|
+
* filter[avatar_type]=stock; follow meta.total_pages to load every page.
|
|
91
95
|
*/
|
|
92
96
|
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
93
97
|
/**
|
|
@@ -285,8 +289,9 @@ export interface VersionUpdateParams {
|
|
|
285
289
|
a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
|
|
286
290
|
/**
|
|
287
291
|
* Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
|
|
288
|
-
* Use
|
|
289
|
-
*
|
|
292
|
+
* Use a stock avatar or an organization-owned custom avatar returned by the
|
|
293
|
+
* Avatars API. Discover the available stock catalog with GET /v2/ai/avatars and
|
|
294
|
+
* filter[avatar_type]=stock; follow meta.total_pages to load every page.
|
|
290
295
|
*/
|
|
291
296
|
avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
|
|
292
297
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC;IAI7F;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQlG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,kBAAkB,CAAC;IAQ/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,M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AC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -11,7 +11,10 @@ const path_1 = require("../../../internal/utils/path.js");
|
|
|
11
11
|
class Versions extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves all versions of a specific assistant with complete configuration and
|
|
14
|
-
* metadata
|
|
14
|
+
* metadata. An assistant keeps at most 10 versions, including the main version.
|
|
15
|
+
* When an update takes it past that limit, the oldest versions are permanently
|
|
16
|
+
* deleted. The main version and any version referenced by a traffic distribution
|
|
17
|
+
* rule are never deleted this way.
|
|
15
18
|
*
|
|
16
19
|
* @example
|
|
17
20
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,WAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,WAAW,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;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CACF;AA3GD,4BA2GC"}
|
|
@@ -8,7 +8,10 @@ import { path } from "../../../internal/utils/path.mjs";
|
|
|
8
8
|
export class Versions extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Retrieves all versions of a specific assistant with complete configuration and
|
|
11
|
-
* metadata
|
|
11
|
+
* metadata. An assistant keeps at most 10 versions, including the main version.
|
|
12
|
+
* When an update takes it past that limit, the oldest versions are permanently
|
|
13
|
+
* deleted. The main version and any version referenced by a traffic distribution
|
|
14
|
+
* rule are never deleted this way.
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,WAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,WAAW,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAiB,EAAE,MAA2B,EAAE,OAAwB;QAC7E,MAAM,EAAE,YAAY,EAAE,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
* Word-level timing detail. Only present when using a `deepgram/*` model with
|
|
23
|
-
* `model_config` options that enable word timestamps
|
|
23
|
+
* `model_config` options that enable word timestamps, or `reson8/prerecorded`.
|
|
24
24
|
*/
|
|
25
25
|
export interface AudioTranscriptionResponseWord {
|
|
26
26
|
/**
|
|
@@ -61,6 +61,9 @@ export interface AudioTranscriptionResponseWord {
|
|
|
61
61
|
* return `text` and, depending on `model_config`, may include `words` with
|
|
62
62
|
* per-word timestamps and speaker labels. The Parakeet models
|
|
63
63
|
* (`nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`) return `text` only.
|
|
64
|
+
* `reson8/prerecorded` returns `text` and, in `verbose_json` mode, `duration` and
|
|
65
|
+
* `segments` with `words`; with `diarize`, one segment per speaker turn with
|
|
66
|
+
* speaker labels.
|
|
64
67
|
*/
|
|
65
68
|
export interface AudioTranscribeResponse {
|
|
66
69
|
/**
|
|
@@ -106,13 +109,23 @@ export declare namespace AudioTranscribeResponse {
|
|
|
106
109
|
*/
|
|
107
110
|
text: string;
|
|
108
111
|
/**
|
|
109
|
-
*
|
|
110
|
-
* `
|
|
112
|
+
* Zero-indexed audio channel of this segment. Returned by the `deepgram/*` models
|
|
113
|
+
* when `multichannel` is enabled via `model_config` and the file has more than one
|
|
114
|
+
* channel. Segments from all channels are merged in one list ordered by start
|
|
115
|
+
* time.
|
|
116
|
+
*/
|
|
117
|
+
channel?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Speaker indices heard in this segment. Returned by the `deepgram/*` models and
|
|
120
|
+
* `reson8/prerecorded` when `diarize` is enabled via `model_config`. With
|
|
121
|
+
* `multichannel`, speakers are numbered per channel from 0, so identify a speaker
|
|
122
|
+
* by (`channel`, speaker).
|
|
111
123
|
*/
|
|
112
124
|
speakers?: Array<number>;
|
|
113
125
|
/**
|
|
114
126
|
* Word-level timing detail for this segment. Returned by the `deepgram/*` models
|
|
115
|
-
* when word-level output is enabled via `model_config
|
|
127
|
+
* when word-level output is enabled via `model_config`, and by
|
|
128
|
+
* `reson8/prerecorded`.
|
|
116
129
|
*/
|
|
117
130
|
words?: Array<AudioAPI.AudioTranscriptionResponseWord>;
|
|
118
131
|
}
|
|
@@ -127,8 +140,10 @@ export interface AudioTranscribeParams {
|
|
|
127
140
|
* English only (`en` and its regional variants, e.g. `en-US`, `en-GB`).
|
|
128
141
|
* `nvidia/parakeet-v3` is multilingual with automatic language detection;
|
|
129
142
|
* `omi-health/omi-med-stt-v1` is a medical model, English only.
|
|
143
|
+
* `reson8/prerecorded` covers 10 languages, returns word timestamps, and labels
|
|
144
|
+
* speakers via `model_config`.
|
|
130
145
|
*/
|
|
131
|
-
model: 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo' | 'deepgram/nova-2' | 'deepgram/nova-2-medical' | 'deepgram/nova-3' | 'deepgram/nova-3-medical' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1';
|
|
146
|
+
model: 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo' | 'deepgram/nova-2' | 'deepgram/nova-2-medical' | 'deepgram/nova-3' | 'deepgram/nova-3-medical' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'reson8/prerecorded';
|
|
132
147
|
/**
|
|
133
148
|
* The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
|
|
134
149
|
* mpeg, mpga, m4a, ogg, wav, or webm. File uploads are limited to 100 MB. Cannot
|
|
@@ -153,15 +168,23 @@ export interface AudioTranscribeParams {
|
|
|
153
168
|
* `openai/whisper-large-v3-turbo`, supports multiple languages.
|
|
154
169
|
* `distil-whisper/distil-large-v2` does not support language parameter.
|
|
155
170
|
* `nvidia/parakeet-v3` detects the language automatically;
|
|
156
|
-
* `omi-health/omi-med-stt-v1` is English only.
|
|
171
|
+
* `omi-health/omi-med-stt-v1` is English only. `reson8/prerecorded` accepts `nl`,
|
|
172
|
+
* `en`, `fr`, `fy`, `de`, `it`, `pl`, `pt`, `es` and `sv` (regional variants are
|
|
173
|
+
* transcribed as the base language) and detects the language when it is omitted.
|
|
157
174
|
*/
|
|
158
175
|
language?: string;
|
|
159
176
|
/**
|
|
160
177
|
* Additional model-specific configuration parameters. Only allowed with the
|
|
161
|
-
* `deepgram/*` models
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
178
|
+
* `deepgram/*` models and `reson8/prerecorded`. Sent as a JSON string in multipart
|
|
179
|
+
* requests; for the `deepgram/*` models it is passed through to Deepgram as query
|
|
180
|
+
* parameters, while `reson8/prerecorded` accepts only `diarize` (speaker labels)
|
|
181
|
+
* and `max_speakers` (1 to 8). Any other model with `model_config` returns 400.
|
|
182
|
+
* Can include Deepgram-specific options such as `smart_format`, `punctuate`,
|
|
183
|
+
* `diarize` (speaker labels), `multichannel` (transcribe each channel
|
|
184
|
+
* independently; billed duration is file duration multiplied by the number of
|
|
185
|
+
* channels), `utterances`, `numerals`, and `language`. If `language` is provided
|
|
186
|
+
* both as a top-level parameter and in `model_config`, the top-level parameter
|
|
187
|
+
* takes precedence.
|
|
165
188
|
*/
|
|
166
189
|
model_config?: {
|
|
167
190
|
[key: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.d.mts","sourceRoot":"","sources":["../../src/resources/ai/audio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,+BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAMvG;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,GAAG,EAAE,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;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/ai/audio.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class Audio extends APIResource {
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Word-level timing detail. Only present when using a `deepgram/*` model with
|
|
23
|
-
* `model_config` options that enable word timestamps
|
|
23
|
+
* `model_config` options that enable word timestamps, or `reson8/prerecorded`.
|
|
24
24
|
*/
|
|
25
25
|
export interface AudioTranscriptionResponseWord {
|
|
26
26
|
/**
|
|
@@ -61,6 +61,9 @@ export interface AudioTranscriptionResponseWord {
|
|
|
61
61
|
* return `text` and, depending on `model_config`, may include `words` with
|
|
62
62
|
* per-word timestamps and speaker labels. The Parakeet models
|
|
63
63
|
* (`nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`) return `text` only.
|
|
64
|
+
* `reson8/prerecorded` returns `text` and, in `verbose_json` mode, `duration` and
|
|
65
|
+
* `segments` with `words`; with `diarize`, one segment per speaker turn with
|
|
66
|
+
* speaker labels.
|
|
64
67
|
*/
|
|
65
68
|
export interface AudioTranscribeResponse {
|
|
66
69
|
/**
|
|
@@ -106,13 +109,23 @@ export declare namespace AudioTranscribeResponse {
|
|
|
106
109
|
*/
|
|
107
110
|
text: string;
|
|
108
111
|
/**
|
|
109
|
-
*
|
|
110
|
-
* `
|
|
112
|
+
* Zero-indexed audio channel of this segment. Returned by the `deepgram/*` models
|
|
113
|
+
* when `multichannel` is enabled via `model_config` and the file has more than one
|
|
114
|
+
* channel. Segments from all channels are merged in one list ordered by start
|
|
115
|
+
* time.
|
|
116
|
+
*/
|
|
117
|
+
channel?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Speaker indices heard in this segment. Returned by the `deepgram/*` models and
|
|
120
|
+
* `reson8/prerecorded` when `diarize` is enabled via `model_config`. With
|
|
121
|
+
* `multichannel`, speakers are numbered per channel from 0, so identify a speaker
|
|
122
|
+
* by (`channel`, speaker).
|
|
111
123
|
*/
|
|
112
124
|
speakers?: Array<number>;
|
|
113
125
|
/**
|
|
114
126
|
* Word-level timing detail for this segment. Returned by the `deepgram/*` models
|
|
115
|
-
* when word-level output is enabled via `model_config
|
|
127
|
+
* when word-level output is enabled via `model_config`, and by
|
|
128
|
+
* `reson8/prerecorded`.
|
|
116
129
|
*/
|
|
117
130
|
words?: Array<AudioAPI.AudioTranscriptionResponseWord>;
|
|
118
131
|
}
|
|
@@ -127,8 +140,10 @@ export interface AudioTranscribeParams {
|
|
|
127
140
|
* English only (`en` and its regional variants, e.g. `en-US`, `en-GB`).
|
|
128
141
|
* `nvidia/parakeet-v3` is multilingual with automatic language detection;
|
|
129
142
|
* `omi-health/omi-med-stt-v1` is a medical model, English only.
|
|
143
|
+
* `reson8/prerecorded` covers 10 languages, returns word timestamps, and labels
|
|
144
|
+
* speakers via `model_config`.
|
|
130
145
|
*/
|
|
131
|
-
model: 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo' | 'deepgram/nova-2' | 'deepgram/nova-2-medical' | 'deepgram/nova-3' | 'deepgram/nova-3-medical' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1';
|
|
146
|
+
model: 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo' | 'deepgram/nova-2' | 'deepgram/nova-2-medical' | 'deepgram/nova-3' | 'deepgram/nova-3-medical' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'reson8/prerecorded';
|
|
132
147
|
/**
|
|
133
148
|
* The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
|
|
134
149
|
* mpeg, mpga, m4a, ogg, wav, or webm. File uploads are limited to 100 MB. Cannot
|
|
@@ -153,15 +168,23 @@ export interface AudioTranscribeParams {
|
|
|
153
168
|
* `openai/whisper-large-v3-turbo`, supports multiple languages.
|
|
154
169
|
* `distil-whisper/distil-large-v2` does not support language parameter.
|
|
155
170
|
* `nvidia/parakeet-v3` detects the language automatically;
|
|
156
|
-
* `omi-health/omi-med-stt-v1` is English only.
|
|
171
|
+
* `omi-health/omi-med-stt-v1` is English only. `reson8/prerecorded` accepts `nl`,
|
|
172
|
+
* `en`, `fr`, `fy`, `de`, `it`, `pl`, `pt`, `es` and `sv` (regional variants are
|
|
173
|
+
* transcribed as the base language) and detects the language when it is omitted.
|
|
157
174
|
*/
|
|
158
175
|
language?: string;
|
|
159
176
|
/**
|
|
160
177
|
* Additional model-specific configuration parameters. Only allowed with the
|
|
161
|
-
* `deepgram/*` models
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
178
|
+
* `deepgram/*` models and `reson8/prerecorded`. Sent as a JSON string in multipart
|
|
179
|
+
* requests; for the `deepgram/*` models it is passed through to Deepgram as query
|
|
180
|
+
* parameters, while `reson8/prerecorded` accepts only `diarize` (speaker labels)
|
|
181
|
+
* and `max_speakers` (1 to 8). Any other model with `model_config` returns 400.
|
|
182
|
+
* Can include Deepgram-specific options such as `smart_format`, `punctuate`,
|
|
183
|
+
* `diarize` (speaker labels), `multichannel` (transcribe each channel
|
|
184
|
+
* independently; billed duration is file duration multiplied by the number of
|
|
185
|
+
* channels), `utterances`, `numerals`, and `language`. If `language` is provided
|
|
186
|
+
* both as a top-level parameter and in `model_config`, the top-level parameter
|
|
187
|
+
* takes precedence.
|
|
165
188
|
*/
|
|
166
189
|
model_config?: {
|
|
167
190
|
[key: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/resources/ai/audio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAA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ElB;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE1C;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAE1C;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,SAAS,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -12,7 +12,9 @@ export declare class Avatars extends APIResource {
|
|
|
12
12
|
* available to the authenticated organization. Custom avatars owned by other
|
|
13
13
|
* organizations are never returned. The `image_url` value is suitable for
|
|
14
14
|
* displaying a thumbnail and may be refreshed by listing or retrieving the avatar
|
|
15
|
-
* again.
|
|
15
|
+
* again. `suggested_voice_id` recommends a compatible Telnyx voice for stock
|
|
16
|
+
* avatars and is an empty string for custom avatars; it does not change an AI
|
|
17
|
+
* Assistant's voice automatically.
|
|
16
18
|
*
|
|
17
19
|
* @example
|
|
18
20
|
* ```ts
|
|
@@ -81,9 +83,11 @@ export declare class Avatars extends APIResource {
|
|
|
81
83
|
export type AvatarsDefaultFlatPagination = DefaultFlatPagination<Avatar>;
|
|
82
84
|
export interface Avatar {
|
|
83
85
|
/**
|
|
84
|
-
* Stable identifier
|
|
85
|
-
*
|
|
86
|
-
* prefix
|
|
86
|
+
* Stable identifier returned by the Avatars API. Discover available stock IDs with
|
|
87
|
+
* GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
|
|
88
|
+
* list. Custom avatar IDs use the `avatar_` prefix and must belong to the
|
|
89
|
+
* authenticated organization. The service validates that the selected avatar is
|
|
90
|
+
* available.
|
|
87
91
|
*/
|
|
88
92
|
id: AvatarID;
|
|
89
93
|
/**
|
|
@@ -128,6 +132,13 @@ export interface Avatar {
|
|
|
128
132
|
* Size of a custom avatar image in bytes.
|
|
129
133
|
*/
|
|
130
134
|
size_bytes?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Optional recommended Telnyx text-to-speech voice for this avatar. An omitted
|
|
137
|
+
* field or empty string means no recommendation is available. Custom avatars have
|
|
138
|
+
* no suggested voice. It is informational and selecting the avatar does not
|
|
139
|
+
* automatically change the AI Assistant's configured voice.
|
|
140
|
+
*/
|
|
141
|
+
suggested_voice_id?: string;
|
|
131
142
|
/**
|
|
132
143
|
* Time when the custom avatar was last updated.
|
|
133
144
|
*/
|
|
@@ -138,11 +149,13 @@ export interface Avatar {
|
|
|
138
149
|
width_px?: number;
|
|
139
150
|
}
|
|
140
151
|
/**
|
|
141
|
-
* Stable identifier
|
|
142
|
-
*
|
|
143
|
-
* prefix
|
|
152
|
+
* Stable identifier returned by the Avatars API. Discover available stock IDs with
|
|
153
|
+
* GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
|
|
154
|
+
* list. Custom avatar IDs use the `avatar_` prefix and must belong to the
|
|
155
|
+
* authenticated organization. The service validates that the selected avatar is
|
|
156
|
+
* available.
|
|
144
157
|
*/
|
|
145
|
-
export type AvatarID =
|
|
158
|
+
export type AvatarID = string;
|
|
146
159
|
export interface AvatarResponse {
|
|
147
160
|
data: Avatar;
|
|
148
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatars.d.mts","sourceRoot":"","sources":["../../src/resources/ai/avatars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAC7G,OAAO,EAAE,KAAK,UAAU,EAAE,+BAA2B;AACrD,OAAO,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M,IAAI,MAAM,EACrB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -12,7 +12,9 @@ export declare class Avatars extends APIResource {
|
|
|
12
12
|
* available to the authenticated organization. Custom avatars owned by other
|
|
13
13
|
* organizations are never returned. The `image_url` value is suitable for
|
|
14
14
|
* displaying a thumbnail and may be refreshed by listing or retrieving the avatar
|
|
15
|
-
* again.
|
|
15
|
+
* again. `suggested_voice_id` recommends a compatible Telnyx voice for stock
|
|
16
|
+
* avatars and is an empty string for custom avatars; it does not change an AI
|
|
17
|
+
* Assistant's voice automatically.
|
|
16
18
|
*
|
|
17
19
|
* @example
|
|
18
20
|
* ```ts
|
|
@@ -81,9 +83,11 @@ export declare class Avatars extends APIResource {
|
|
|
81
83
|
export type AvatarsDefaultFlatPagination = DefaultFlatPagination<Avatar>;
|
|
82
84
|
export interface Avatar {
|
|
83
85
|
/**
|
|
84
|
-
* Stable identifier
|
|
85
|
-
*
|
|
86
|
-
* prefix
|
|
86
|
+
* Stable identifier returned by the Avatars API. Discover available stock IDs with
|
|
87
|
+
* GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
|
|
88
|
+
* list. Custom avatar IDs use the `avatar_` prefix and must belong to the
|
|
89
|
+
* authenticated organization. The service validates that the selected avatar is
|
|
90
|
+
* available.
|
|
87
91
|
*/
|
|
88
92
|
id: AvatarID;
|
|
89
93
|
/**
|
|
@@ -128,6 +132,13 @@ export interface Avatar {
|
|
|
128
132
|
* Size of a custom avatar image in bytes.
|
|
129
133
|
*/
|
|
130
134
|
size_bytes?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Optional recommended Telnyx text-to-speech voice for this avatar. An omitted
|
|
137
|
+
* field or empty string means no recommendation is available. Custom avatars have
|
|
138
|
+
* no suggested voice. It is informational and selecting the avatar does not
|
|
139
|
+
* automatically change the AI Assistant's configured voice.
|
|
140
|
+
*/
|
|
141
|
+
suggested_voice_id?: string;
|
|
131
142
|
/**
|
|
132
143
|
* Time when the custom avatar was last updated.
|
|
133
144
|
*/
|
|
@@ -138,11 +149,13 @@ export interface Avatar {
|
|
|
138
149
|
width_px?: number;
|
|
139
150
|
}
|
|
140
151
|
/**
|
|
141
|
-
* Stable identifier
|
|
142
|
-
*
|
|
143
|
-
* prefix
|
|
152
|
+
* Stable identifier returned by the Avatars API. Discover available stock IDs with
|
|
153
|
+
* GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
|
|
154
|
+
* list. Custom avatar IDs use the `avatar_` prefix and must belong to the
|
|
155
|
+
* authenticated organization. The service validates that the selected avatar is
|
|
156
|
+
* available.
|
|
144
157
|
*/
|
|
145
|
-
export type AvatarID =
|
|
158
|
+
export type AvatarID = string;
|
|
146
159
|
export interface AvatarResponse {
|
|
147
160
|
data: Avatar;
|
|
148
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatars.d.ts","sourceRoot":"","sources":["../../src/resources/ai/avatars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAIhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"avatars.d.ts","sourceRoot":"","sources":["../../src/resources/ai/avatars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BA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IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/ai/avatars.js
CHANGED
|
@@ -15,7 +15,9 @@ class Avatars extends resource_1.APIResource {
|
|
|
15
15
|
* available to the authenticated organization. Custom avatars owned by other
|
|
16
16
|
* organizations are never returned. The `image_url` value is suitable for
|
|
17
17
|
* displaying a thumbnail and may be refreshed by listing or retrieving the avatar
|
|
18
|
-
* again.
|
|
18
|
+
* again. `suggested_voice_id` recommends a compatible Telnyx voice for stock
|
|
19
|
+
* avatars and is an empty string for custom avatars; it does not change an AI
|
|
20
|
+
* Assistant's voice automatically.
|
|
19
21
|
*
|
|
20
22
|
* @example
|
|
21
23
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatars.js","sourceRoot":"","sources":["../../src/resources/ai/avatars.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAG7G,uDAAqE;AACrE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"avatars.js","sourceRoot":"","sources":["../../src/resources/ai/avatars.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAG7G,uDAAqE;AACrE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,kCAA6B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,QAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,QAAkB,EAAE,IAAwB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAvFD,0BAuFC"}
|
package/resources/ai/avatars.mjs
CHANGED
|
@@ -12,7 +12,9 @@ export class Avatars extends APIResource {
|
|
|
12
12
|
* available to the authenticated organization. Custom avatars owned by other
|
|
13
13
|
* organizations are never returned. The `image_url` value is suitable for
|
|
14
14
|
* displaying a thumbnail and may be refreshed by listing or retrieving the avatar
|
|
15
|
-
* again.
|
|
15
|
+
* again. `suggested_voice_id` recommends a compatible Telnyx voice for stock
|
|
16
|
+
* avatars and is an empty string for custom avatars; it does not change an AI
|
|
17
|
+
* Assistant's voice automatically.
|
|
16
18
|
*
|
|
17
19
|
* @example
|
|
18
20
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatars.mjs","sourceRoot":"","sources":["../../src/resources/ai/avatars.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAG7G,OAAO,EAAE,2BAA2B,EAAE,mCAA+B;AACrE,OAAO,EAAE,IAAI,EAAE,sCAAkC;A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;CACF"}
|
package/resources/ai/index.d.mts
CHANGED
|
@@ -15,6 +15,6 @@ export { McpServers, type McpServer, type McpServerListParams, type McpServerCre
|
|
|
15
15
|
export { Memory } from "./memory/index.mjs";
|
|
16
16
|
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";
|
|
17
17
|
export { OpenAI, type OpenAICreateResponseResponse, type OpenAICreateResponseParams } from "./openai/index.mjs";
|
|
18
|
-
export { Tools, type PayToolParams, type SharedToolResponse, type UpdateDynamicVariablesToolParams, type ToolListParams, type ToolCreateParams, type ToolUpdateParams, type SharedToolResponsesDefaultFlatPagination, } from "./tools.mjs";
|
|
18
|
+
export { Tools, type PayToolParams, type SharedToolResponse, type UpdateDynamicVariablesToolParams, type VisionToolParams, type ToolListParams, type ToolCreateParams, type ToolUpdateParams, type SharedToolResponsesDefaultFlatPagination, } from "./tools.mjs";
|
|
19
19
|
export { Typesafe } from "./typesafe/index.mjs";
|
|
20
20
|
//# sourceMappingURL=index.d.mts.map
|