telnyx 7.26.0 → 7.27.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 +7 -0
- package/client.d.mts +17 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -8
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -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 +168 -33
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +168 -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 +17 -5
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +17 -5
- 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/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 +6 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -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/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/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 +29 -4
- package/src/resources/addresses/addresses.ts +22 -2
- package/src/resources/ai/ai.ts +2 -0
- package/src/resources/ai/assistants/assistants.ts +179 -31
- package/src/resources/ai/assistants/versions.ts +11 -6
- package/src/resources/ai/audio.ts +18 -5
- 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/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 +10 -2
- 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/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/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
package/src/resources/dir/dir.ts
CHANGED
|
@@ -248,8 +248,7 @@ export class DirResource extends APIResource {
|
|
|
248
248
|
* existing registration stays live throughout the new vetting cycle.
|
|
249
249
|
*
|
|
250
250
|
* Returns `400` from `submitted`/`in_review`/`permanently_rejected`. Returns `400`
|
|
251
|
-
* if the DIR
|
|
252
|
-
* `400` if the DIR has an unresolved infringement claim.
|
|
251
|
+
* if the DIR has an unresolved infringement claim.
|
|
253
252
|
*
|
|
254
253
|
* @example
|
|
255
254
|
* ```ts
|
|
@@ -533,6 +532,7 @@ export interface Document {
|
|
|
533
532
|
| 'letter_of_authorization'
|
|
534
533
|
| 'business_registration'
|
|
535
534
|
| 'articles_of_incorporation'
|
|
535
|
+
| 'certificate_of_good_standing'
|
|
536
536
|
| 'tax_document'
|
|
537
537
|
| 'ein_letter'
|
|
538
538
|
| 'trademark_registration'
|
|
@@ -542,6 +542,8 @@ export interface Document {
|
|
|
542
542
|
| 'government_id'
|
|
543
543
|
| 'utility_bill'
|
|
544
544
|
| 'bank_statement'
|
|
545
|
+
| 'business_credit_report'
|
|
546
|
+
| 'bank_reference_letter'
|
|
545
547
|
| 'other';
|
|
546
548
|
|
|
547
549
|
/**
|
|
@@ -7,6 +7,8 @@ import { path } from '../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Submit and manage the two business references and one financial reference that vouch for a DIR. References are contacted to confirm the business identity during vetting.
|
|
10
|
+
*
|
|
11
|
+
* References (two business references and one financial reference) are needed only if the documents uploaded with the DIR don't already prove the business is legitimate and financially stable. Any one of these is enough proof: audited or certified financial statements (uploaded as `other`, with a description), a commercial credit report (uploaded as `business_credit_report`), or references. Telnyx reviewers decide during vetting whether your documents are enough.
|
|
10
12
|
*/
|
|
11
13
|
export class References extends APIResource {
|
|
12
14
|
/**
|
|
@@ -33,21 +35,25 @@ export class References extends APIResource {
|
|
|
33
35
|
/**
|
|
34
36
|
* Submit the two business references and one financial reference for a DIR.
|
|
35
37
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
+
* References (two business references and one financial reference) are needed only
|
|
39
|
+
* if the documents uploaded with the DIR don't already prove the business is
|
|
40
|
+
* legitimate and financially stable. Any one of these is enough proof: audited or
|
|
41
|
+
* certified financial statements (uploaded as `other`, with a description), a
|
|
42
|
+
* commercial credit report (uploaded as `business_credit_report`), or references.
|
|
43
|
+
* Telnyx reviewers decide during vetting whether your documents are enough.
|
|
44
|
+
*
|
|
45
|
+
* References can't be changed while the DIR is `verified`. Update the DIR first,
|
|
46
|
+
* which returns it to draft.
|
|
38
47
|
*
|
|
39
48
|
* The request body carries exactly two business references plus one financial
|
|
40
49
|
* reference. The first submission stores them and returns `201`. Resubmitting
|
|
41
50
|
* returns `200`: identical values are simply confirmed and nothing is written,
|
|
42
51
|
* while changed values replace those references.
|
|
43
52
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* replacement contact is emailed fresh scheduling details. References whose
|
|
49
|
-
* details did not change keep their existing call, code, and the notice already
|
|
50
|
-
* sent to them.
|
|
53
|
+
* A replaced reference's pending verification call is cancelled and its dial-in
|
|
54
|
+
* code stops working, and the replacement contact is emailed fresh scheduling
|
|
55
|
+
* details. References whose details did not change keep their existing call, code,
|
|
56
|
+
* and the notice already sent to them.
|
|
51
57
|
*
|
|
52
58
|
* The response always echoes the stored references in the same shape as the GET.
|
|
53
59
|
*
|
|
@@ -6,7 +6,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
6
6
|
import { path } from '../../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Verify ownership of a DIR's authorizer email. A short code is emailed and confirmed
|
|
9
|
+
* Verify ownership of a DIR's authorizer email. A short code is emailed and confirmed.
|
|
10
10
|
*/
|
|
11
11
|
export class VerifyEmail extends APIResource {
|
|
12
12
|
/**
|
|
@@ -26,11 +26,23 @@ export class VerifyEmail extends APIResource {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Email a 6-digit code to the DIR's authorizer email to confirm ownership of that
|
|
29
|
-
* address.
|
|
29
|
+
* address. The code goes to the authorizer, not to the caller. If the authorizer
|
|
30
|
+
* is someone else (for example a client's executive), that person has to share the
|
|
31
|
+
* code with whoever is completing setup.
|
|
30
32
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
33
|
+
* How long the code lasts: 15 minutes by default. 8 hours when the DIR has a call
|
|
34
|
+
* center (BPO) linked through `bpo_authorizations` whose authorization is pending
|
|
35
|
+
* review or approved (a rejected authorization does not count). Link the call
|
|
36
|
+
* center before you send the code: a code sent before the link keeps the 15-minute
|
|
37
|
+
* window, and a code sent after the link lasts 8 hours. The email states the
|
|
38
|
+
* window, and `expires_at` in the response always shows the exact expiry.
|
|
39
|
+
*
|
|
40
|
+
* To resend, call this endpoint again. Each send issues a fresh code and
|
|
41
|
+
* invalidates the previous one. Sends are limited to one every 60 seconds and 10
|
|
42
|
+
* per DIR per UTC day. A throttled send returns `429` with `retry_after_secs` and
|
|
43
|
+
* `sends_remaining_today` in the error `meta`.
|
|
44
|
+
*
|
|
45
|
+
* Submit the code to `POST /dir/{dir_id}/verify_email/confirm`.
|
|
34
46
|
*
|
|
35
47
|
* @example
|
|
36
48
|
* ```ts
|
|
@@ -565,7 +565,7 @@ export interface EmailDomainListParams extends DefaultFlatPaginationParams {
|
|
|
565
565
|
/**
|
|
566
566
|
* Field to sort by. Prefix with `-` for descending order.
|
|
567
567
|
*/
|
|
568
|
-
sort?: 'created_at' | '-created_at' | 'domain' | '-domain';
|
|
568
|
+
sort?: 'created_at' | '-created_at' | 'domain' | '-domain' | 'updated_at' | '-updated_at';
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
export interface EmailDomainCreateParams {
|
|
@@ -6,7 +6,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
6
6
|
import { path } from '../../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Verify ownership of a DIR's authorizer email. A short code is emailed and confirmed
|
|
9
|
+
* Verify ownership of a DIR's authorizer email. A short code is emailed and confirmed.
|
|
10
10
|
*/
|
|
11
11
|
export class VerifyEmail extends APIResource {
|
|
12
12
|
/**
|
|
@@ -145,6 +145,17 @@ export interface FqdnConnection {
|
|
|
145
145
|
*/
|
|
146
146
|
android_push_credential_id?: string | null;
|
|
147
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
150
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
151
|
+
* hold. Defaults to false and returns the saved value. Only JSON true and false
|
|
152
|
+
* are accepted; null and non-boolean values are rejected. This preference is
|
|
153
|
+
* independent of default_on_hold_comfort_noise_enabled and does not modify that
|
|
154
|
+
* setting. This API provisions the preference; call-processing behavior is
|
|
155
|
+
* implemented separately.
|
|
156
|
+
*/
|
|
157
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
158
|
+
|
|
148
159
|
/**
|
|
149
160
|
* Indicates whether call cost calculation is enabled.
|
|
150
161
|
*/
|
|
@@ -187,8 +198,8 @@ export interface FqdnConnection {
|
|
|
187
198
|
encode_contact_header_enabled?: boolean;
|
|
188
199
|
|
|
189
200
|
/**
|
|
190
|
-
* Enable use of SRTP for encryption.
|
|
191
|
-
* TLS.
|
|
201
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
202
|
+
* transport protocol is TLS.
|
|
192
203
|
*/
|
|
193
204
|
encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
|
|
194
205
|
|
|
@@ -476,8 +487,8 @@ export interface OutboundFqdn {
|
|
|
476
487
|
channel_limit?: number;
|
|
477
488
|
|
|
478
489
|
/**
|
|
479
|
-
* Enable use of SRTP for encryption.
|
|
480
|
-
* TLS.
|
|
490
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
491
|
+
* transport protocol is TLS.
|
|
481
492
|
*/
|
|
482
493
|
encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
|
|
483
494
|
|
|
@@ -655,6 +666,17 @@ export interface FqdnConnectionCreateParams {
|
|
|
655
666
|
*/
|
|
656
667
|
android_push_credential_id?: string | null;
|
|
657
668
|
|
|
669
|
+
/**
|
|
670
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
671
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
672
|
+
* hold. Optional; defaults to false when omitted on creation. Only JSON true and
|
|
673
|
+
* false are accepted; null and non-boolean values are rejected. This preference is
|
|
674
|
+
* independent of default_on_hold_comfort_noise_enabled and does not modify that
|
|
675
|
+
* setting. This API provisions the preference; call-processing behavior is
|
|
676
|
+
* implemented separately.
|
|
677
|
+
*/
|
|
678
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
679
|
+
|
|
658
680
|
/**
|
|
659
681
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
660
682
|
*/
|
|
@@ -680,8 +702,8 @@ export interface FqdnConnectionCreateParams {
|
|
|
680
702
|
encode_contact_header_enabled?: boolean;
|
|
681
703
|
|
|
682
704
|
/**
|
|
683
|
-
* Enable use of SRTP for encryption.
|
|
684
|
-
* TLS.
|
|
705
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
706
|
+
* transport protocol is TLS.
|
|
685
707
|
*/
|
|
686
708
|
encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
|
|
687
709
|
|
|
@@ -786,6 +808,17 @@ export interface FqdnConnectionUpdateParams {
|
|
|
786
808
|
*/
|
|
787
809
|
android_push_credential_id?: string | null;
|
|
788
810
|
|
|
811
|
+
/**
|
|
812
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
813
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
814
|
+
* hold. Optional; omitting this field preserves the saved value. Only JSON true
|
|
815
|
+
* and false are accepted; null and non-boolean values are rejected. This
|
|
816
|
+
* preference is independent of default_on_hold_comfort_noise_enabled and does not
|
|
817
|
+
* modify that setting. This API provisions the preference; call-processing
|
|
818
|
+
* behavior is implemented separately.
|
|
819
|
+
*/
|
|
820
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
821
|
+
|
|
789
822
|
/**
|
|
790
823
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
791
824
|
*/
|
|
@@ -823,8 +856,8 @@ export interface FqdnConnectionUpdateParams {
|
|
|
823
856
|
encode_contact_header_enabled?: boolean;
|
|
824
857
|
|
|
825
858
|
/**
|
|
826
|
-
* Enable use of SRTP for encryption.
|
|
827
|
-
* TLS.
|
|
859
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
860
|
+
* transport protocol is TLS.
|
|
828
861
|
*/
|
|
829
862
|
encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
|
|
830
863
|
|
package/src/resources/index.ts
CHANGED
|
@@ -279,6 +279,12 @@ export {
|
|
|
279
279
|
type DetailRecordListParams,
|
|
280
280
|
type DetailRecordListResponsesDefaultFlatPagination,
|
|
281
281
|
} from './detail-records';
|
|
282
|
+
export {
|
|
283
|
+
DialMetrics,
|
|
284
|
+
type DialMetricListResponse,
|
|
285
|
+
type DialMetricListParams,
|
|
286
|
+
type DialMetricListResponsesCloudfsCursorPagination,
|
|
287
|
+
} from './dial-metrics';
|
|
282
288
|
export {
|
|
283
289
|
DialogflowConnections,
|
|
284
290
|
type DialogflowConnectionResponse,
|
|
@@ -710,7 +716,6 @@ export {
|
|
|
710
716
|
type MeetingSessionListResponse,
|
|
711
717
|
type MeetingSessionDeleteRecordingMediaResponse,
|
|
712
718
|
type MeetingSessionRetrieveEventsResponse,
|
|
713
|
-
type MeetingSessionRetrieveRecordingsResponse,
|
|
714
719
|
type MeetingSessionRetrieveTranscriptResponse,
|
|
715
720
|
type MeetingSessionListParams,
|
|
716
721
|
type MeetingSessionCreateParams,
|
|
@@ -1060,6 +1065,7 @@ export {
|
|
|
1060
1065
|
export { PhoneNumberBlocks } from './phone-number-blocks/phone-number-blocks';
|
|
1061
1066
|
export {
|
|
1062
1067
|
PhoneNumbers,
|
|
1068
|
+
type NumbersError73c9788e53,
|
|
1063
1069
|
type NumbersPhoneNumberDetailed,
|
|
1064
1070
|
type PhoneNumberDetailed,
|
|
1065
1071
|
type PhoneNumberRetrieveResponse,
|
|
@@ -1416,6 +1422,7 @@ export {
|
|
|
1416
1422
|
type TelephonyCredentialListParams,
|
|
1417
1423
|
type TelephonyCredentialCreateParams,
|
|
1418
1424
|
type TelephonyCredentialUpdateParams,
|
|
1425
|
+
type TelephonyCredentialCreateTokenParams,
|
|
1419
1426
|
type TelephonyCredentialsDefaultFlatPagination,
|
|
1420
1427
|
} from './telephony-credentials';
|
|
1421
1428
|
export {
|
|
@@ -1469,6 +1476,7 @@ export {
|
|
|
1469
1476
|
type TrafficPolicyProfilesDefaultFlatPagination,
|
|
1470
1477
|
type TrafficPolicyProfileListServicesResponsesDefaultFlatPagination,
|
|
1471
1478
|
} from './traffic-policy-profiles';
|
|
1479
|
+
export { TtsIntegrations } from './tts-integrations/tts-integrations';
|
|
1472
1480
|
export {
|
|
1473
1481
|
UacConnections,
|
|
1474
1482
|
type UacConnection,
|
|
@@ -1681,6 +1689,7 @@ export {
|
|
|
1681
1689
|
type CallAIGatherPartialResultsWebhookEvent,
|
|
1682
1690
|
type ArtifactCompletedWebhookEvent,
|
|
1683
1691
|
type ArtifactFailedWebhookEvent,
|
|
1692
|
+
type CallAnalyzedWebhookEvent,
|
|
1684
1693
|
type CallAnsweredWebhookEvent,
|
|
1685
1694
|
type CallBridgedWebhookEvent,
|
|
1686
1695
|
type CallConversationCreatedWebhookEvent,
|
|
@@ -1744,7 +1753,6 @@ export {
|
|
|
1744
1753
|
type NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
1745
1754
|
type NumberReputationNumberFlaggedWebhookEvent,
|
|
1746
1755
|
type NumberReputationNumberRemovedWebhookEvent,
|
|
1747
|
-
type RecordingAvailableWebhookEvent,
|
|
1748
1756
|
type ReplacedLinkClickWebhookEvent,
|
|
1749
1757
|
type SessionStatusChangedWebhookEvent,
|
|
1750
1758
|
type TranscriptCompletedWebhookEvent,
|
|
@@ -232,6 +232,17 @@ export interface IPConnection {
|
|
|
232
232
|
*/
|
|
233
233
|
android_push_credential_id?: string | null;
|
|
234
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
237
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
238
|
+
* hold. Defaults to false and returns the saved value. Only JSON true and false
|
|
239
|
+
* are accepted; null and non-boolean values are rejected. This preference is
|
|
240
|
+
* independent of default_on_hold_comfort_noise_enabled and does not modify that
|
|
241
|
+
* setting. This API provisions the preference; call-processing behavior is
|
|
242
|
+
* implemented separately.
|
|
243
|
+
*/
|
|
244
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
245
|
+
|
|
235
246
|
/**
|
|
236
247
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
237
248
|
*/
|
|
@@ -271,8 +282,8 @@ export interface IPConnection {
|
|
|
271
282
|
encode_contact_header_enabled?: boolean;
|
|
272
283
|
|
|
273
284
|
/**
|
|
274
|
-
* Enable use of SRTP for encryption.
|
|
275
|
-
* TLS.
|
|
285
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
286
|
+
* transport protocol is TLS.
|
|
276
287
|
*/
|
|
277
288
|
encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
|
|
278
289
|
|
|
@@ -538,6 +549,17 @@ export interface IPConnectionCreateParams {
|
|
|
538
549
|
*/
|
|
539
550
|
android_push_credential_id?: string | null;
|
|
540
551
|
|
|
552
|
+
/**
|
|
553
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
554
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
555
|
+
* hold. Optional; defaults to false when omitted on creation. Only JSON true and
|
|
556
|
+
* false are accepted; null and non-boolean values are rejected. This preference is
|
|
557
|
+
* independent of default_on_hold_comfort_noise_enabled and does not modify that
|
|
558
|
+
* setting. This API provisions the preference; call-processing behavior is
|
|
559
|
+
* implemented separately.
|
|
560
|
+
*/
|
|
561
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
562
|
+
|
|
541
563
|
/**
|
|
542
564
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
543
565
|
*/
|
|
@@ -565,8 +587,8 @@ export interface IPConnectionCreateParams {
|
|
|
565
587
|
encode_contact_header_enabled?: boolean;
|
|
566
588
|
|
|
567
589
|
/**
|
|
568
|
-
* Enable use of SRTP for encryption.
|
|
569
|
-
* TLS.
|
|
590
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
591
|
+
* transport protocol is TLS.
|
|
570
592
|
*/
|
|
571
593
|
encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
|
|
572
594
|
|
|
@@ -759,6 +781,17 @@ export interface IPConnectionUpdateParams {
|
|
|
759
781
|
*/
|
|
760
782
|
android_push_credential_id?: string | null;
|
|
761
783
|
|
|
784
|
+
/**
|
|
785
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
786
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
787
|
+
* hold. Optional; omitting this field preserves the saved value. Only JSON true
|
|
788
|
+
* and false are accepted; null and non-boolean values are rejected. This
|
|
789
|
+
* preference is independent of default_on_hold_comfort_noise_enabled and does not
|
|
790
|
+
* modify that setting. This API provisions the preference; call-processing
|
|
791
|
+
* behavior is implemented separately.
|
|
792
|
+
*/
|
|
793
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
794
|
+
|
|
762
795
|
/**
|
|
763
796
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
764
797
|
*/
|
|
@@ -793,8 +826,8 @@ export interface IPConnectionUpdateParams {
|
|
|
793
826
|
encode_contact_header_enabled?: boolean;
|
|
794
827
|
|
|
795
828
|
/**
|
|
796
|
-
* Enable use of SRTP for encryption.
|
|
797
|
-
* TLS.
|
|
829
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
830
|
+
* transport protocol is TLS.
|
|
798
831
|
*/
|
|
799
832
|
encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
|
|
800
833
|
|
|
@@ -31,12 +31,15 @@ export class Actions extends APIResource {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Sends audio / text-to-speech into a meeting session. With a Telnyx AI Assistant
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
34
|
+
* attached, the bot is a webpage-output bot: the speak audio routes through the
|
|
35
|
+
* assistant's output page rather than the bot mic and plays once the assistant is
|
|
36
|
+
* connected -- it is not refused. If that page cannot be reached, delivery fails
|
|
37
|
+
* with the 502 below, which may arrive without an error envelope, so branch on the
|
|
38
|
+
* status code before parsing a body. The assistant is designed to own the
|
|
39
|
+
* conversation, so prefer letting it speak or use `send_chat`. With a digital
|
|
40
|
+
* avatar (`assistant.avatar: true`), speak is refused with 409 `invalid_state`
|
|
41
|
+
* (message prefix `avatar_requires_assistant_speech:`): the avatar renders only
|
|
42
|
+
* the assistant's own speech.
|
|
40
43
|
*
|
|
41
44
|
* @example
|
|
42
45
|
* ```ts
|
|
@@ -54,7 +57,10 @@ export class Actions extends APIResource {
|
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
/**
|
|
57
|
-
* Stops any active text-to-speech playback in a meeting session.
|
|
60
|
+
* Stops any active text-to-speech playback in a meeting session. Sessions with a
|
|
61
|
+
* digital avatar (`assistant.avatar: true`) return 409 `invalid_state` (message
|
|
62
|
+
* prefix `avatar_requires_assistant_speech:`): the avatar renders only the
|
|
63
|
+
* assistant's own speech.
|
|
58
64
|
*
|
|
59
65
|
* @example
|
|
60
66
|
* ```ts
|
|
@@ -21,7 +21,6 @@ export {
|
|
|
21
21
|
type MeetingSessionListResponse,
|
|
22
22
|
type MeetingSessionDeleteRecordingMediaResponse,
|
|
23
23
|
type MeetingSessionRetrieveEventsResponse,
|
|
24
|
-
type MeetingSessionRetrieveRecordingsResponse,
|
|
25
24
|
type MeetingSessionRetrieveTranscriptResponse,
|
|
26
25
|
type MeetingSessionListParams,
|
|
27
26
|
type MeetingSessionCreateParams,
|
|
@@ -40,13 +40,18 @@ export class MeetingSessions extends APIResource {
|
|
|
40
40
|
* request body, replay lookup is scoped to the authenticated account and compares
|
|
41
41
|
* only the key; the request payload is not fingerprinted or compared. If a session
|
|
42
42
|
* with that key already exists for the account, the existing session is replayed
|
|
43
|
-
* (200); otherwise a new session is created (201).
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
43
|
+
* (200); otherwise a new session is created (201). The session may enter
|
|
44
|
+
* asynchronous states (e.g. joining, waiting_for_admission) before becoming
|
|
45
|
+
* active. Optional `camera_image` input is write-only and applies only when no
|
|
46
|
+
* avatar or Assistant webpage output takes precedence. An ignored URL is not
|
|
47
|
+
* fetched. An effective URL source is resolved before bot creation; neither the
|
|
48
|
+
* source URL nor image bytes are persisted, returned, or logged. Treat signed URLs
|
|
49
|
+
* as credentials. With `assistant.avatar: true`, the assistant is read before the
|
|
50
|
+
* bot is created: an assistant without a Telnyx avatar configured is rejected with
|
|
51
|
+
* 400 `invalid_request` (message prefix `assistant_avatar_not_configured:`), an
|
|
52
|
+
* unknown assistant with 400 `invalid_request` (prefix `assistant_not_found:`),
|
|
53
|
+
* and a failed lookup with 503 `assistant_lookup_unavailable`; no bot is created
|
|
54
|
+
* in any of these cases.
|
|
50
55
|
*
|
|
51
56
|
* @example
|
|
52
57
|
* ```ts
|
|
@@ -143,8 +148,8 @@ export class MeetingSessions extends APIResource {
|
|
|
143
148
|
* The operation retains the Telnyx-local Meeting session, transcript segments,
|
|
144
149
|
* events, artifacts, and usage records. It is separate from
|
|
145
150
|
* `DELETE /meeting_sessions/{id}`, which stops or cancels participation without
|
|
146
|
-
* deleting the persisted session. A missing/foreign session returns 404;
|
|
147
|
-
* deletion
|
|
151
|
+
* deleting the persisted session. A missing/foreign session returns 404; a
|
|
152
|
+
* deletion request whose outcome is unknown returns 502.
|
|
148
153
|
*
|
|
149
154
|
* @example
|
|
150
155
|
* ```ts
|
|
@@ -161,24 +166,6 @@ export class MeetingSessions extends APIResource {
|
|
|
161
166
|
return this._client.delete(path`/meeting_sessions/${id}/recording_media`, options);
|
|
162
167
|
}
|
|
163
168
|
|
|
164
|
-
/**
|
|
165
|
-
* Returns recordings for a meeting session.
|
|
166
|
-
*
|
|
167
|
-
* @example
|
|
168
|
-
* ```ts
|
|
169
|
-
* const response =
|
|
170
|
-
* await client.meetingSessions.retrieveRecordings(
|
|
171
|
-
* 'mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890',
|
|
172
|
-
* );
|
|
173
|
-
* ```
|
|
174
|
-
*/
|
|
175
|
-
retrieveRecordings(
|
|
176
|
-
id: string,
|
|
177
|
-
options?: RequestOptions,
|
|
178
|
-
): APIPromise<MeetingSessionRetrieveRecordingsResponse> {
|
|
179
|
-
return this._client.get(path`/meeting_sessions/${id}/recordings`, options);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
169
|
/**
|
|
183
170
|
* Returns transcript segments ordered by ascending `seq`. Default `limit` is 100
|
|
184
171
|
* and maximum is 1,000. Continue with `after=meta.next_after`. A long-poll timeout
|
|
@@ -234,12 +221,16 @@ export interface MeetingSession {
|
|
|
234
221
|
assistant_state_changed_at: string | null;
|
|
235
222
|
|
|
236
223
|
/**
|
|
237
|
-
*
|
|
224
|
+
* The assistant's avatar, captured from its `avatar_settings` when the session was
|
|
225
|
+
* created. For display only; later changes to the assistant do not update it.
|
|
238
226
|
*/
|
|
239
227
|
avatar: MeetingSession.Avatar | null;
|
|
240
228
|
|
|
241
229
|
/**
|
|
242
|
-
* Current state of the avatar
|
|
230
|
+
* Current state of the avatar, or null if the session has no avatar. `starting`
|
|
231
|
+
* until the avatar's video is playing, then `connected`; `degraded` when the
|
|
232
|
+
* session has fallen back to voice-only (the `avatar.degraded` event carries the
|
|
233
|
+
* reason); `disconnected` when the avatar has ended.
|
|
243
234
|
*/
|
|
244
235
|
avatar_state: 'starting' | 'connected' | 'degraded' | 'disconnected' | null;
|
|
245
236
|
|
|
@@ -368,7 +359,8 @@ export namespace MeetingSession {
|
|
|
368
359
|
}
|
|
369
360
|
|
|
370
361
|
/**
|
|
371
|
-
*
|
|
362
|
+
* The assistant's avatar, captured from its `avatar_settings` when the session was
|
|
363
|
+
* created. For display only; later changes to the assistant do not update it.
|
|
372
364
|
*/
|
|
373
365
|
export interface Avatar {
|
|
374
366
|
/**
|
|
@@ -376,10 +368,20 @@ export namespace MeetingSession {
|
|
|
376
368
|
*/
|
|
377
369
|
avatar_id: string;
|
|
378
370
|
|
|
371
|
+
/**
|
|
372
|
+
* Identifier of the avatar's background.
|
|
373
|
+
*/
|
|
374
|
+
background_id: string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Avatar rendering model, for example `foxtrot-1`.
|
|
378
|
+
*/
|
|
379
|
+
model: string;
|
|
380
|
+
|
|
379
381
|
/**
|
|
380
382
|
* Avatar provider identifier.
|
|
381
383
|
*/
|
|
382
|
-
provider: '
|
|
384
|
+
provider: 'telnyx';
|
|
383
385
|
}
|
|
384
386
|
|
|
385
387
|
export interface Config {
|
|
@@ -460,27 +462,6 @@ export namespace MeetingSessionRetrieveEventsResponse {
|
|
|
460
462
|
}
|
|
461
463
|
}
|
|
462
464
|
|
|
463
|
-
export interface MeetingSessionRetrieveRecordingsResponse {
|
|
464
|
-
data: Array<MeetingSessionRetrieveRecordingsResponse.Data>;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export namespace MeetingSessionRetrieveRecordingsResponse {
|
|
468
|
-
export interface Data {
|
|
469
|
-
/**
|
|
470
|
-
* Expiry timestamp when available, or null. Currently returns null.
|
|
471
|
-
*/
|
|
472
|
-
expires_at: string | null;
|
|
473
|
-
|
|
474
|
-
type: string;
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* Current provider download URL. The API does not guarantee URL lifetime or
|
|
478
|
-
* refresh behavior.
|
|
479
|
-
*/
|
|
480
|
-
url: string;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
|
|
484
465
|
export interface MeetingSessionRetrieveTranscriptResponse {
|
|
485
466
|
data: Array<MeetingSessionRetrieveTranscriptResponse.Data>;
|
|
486
467
|
|
|
@@ -540,11 +521,6 @@ export interface MeetingSessionCreateParams {
|
|
|
540
521
|
*/
|
|
541
522
|
assistant?: MeetingSessionCreateParams.Assistant;
|
|
542
523
|
|
|
543
|
-
/**
|
|
544
|
-
* Request options for attaching a bring-your-own-key avatar to the session.
|
|
545
|
-
*/
|
|
546
|
-
avatar?: MeetingSessionCreateParams.Avatar;
|
|
547
|
-
|
|
548
524
|
/**
|
|
549
525
|
* When enabled, a human participant `speech_on` event interrupts and stops the
|
|
550
526
|
* current bot audio; it does not bypass admission or initiate speech. Assistant
|
|
@@ -602,6 +578,7 @@ export interface MeetingSessionCreateParams {
|
|
|
602
578
|
* is attached**: the value is accepted and echoed back on the session, but the
|
|
603
579
|
* assistant owns the voice and the line is never delivered, with no event
|
|
604
580
|
* reporting the omission. Use `chat_on_enter` to announce an assistant-backed bot.
|
|
581
|
+
* Rejected with 400 `invalid_request` when `assistant.avatar` is `true`.
|
|
605
582
|
*/
|
|
606
583
|
speak_on_enter?: string;
|
|
607
584
|
|
|
@@ -648,6 +625,20 @@ export namespace MeetingSessionCreateParams {
|
|
|
648
625
|
*/
|
|
649
626
|
audio_gate?: 'half_duplex' | 'full_duplex';
|
|
650
627
|
|
|
628
|
+
/**
|
|
629
|
+
* Beta. Show the avatar configured on the assistant (its `avatar_settings`; see
|
|
630
|
+
* [AI Assistant avatars](/docs/inference/ai-assistants/avatars)) as the bot's
|
|
631
|
+
* camera, lip-synced to the assistant's own speech. The request carries no avatar
|
|
632
|
+
* ID or key: the assistant is read at creation and the request is rejected with
|
|
633
|
+
* 400 `invalid_request` if it has no Telnyx avatar configured. Supported on Google
|
|
634
|
+
* Meet, Zoom, Microsoft Teams and Webex; other platforms return 422
|
|
635
|
+
* `unsupported_capability`. REST-only. Not echoed back on `assistant`; the
|
|
636
|
+
* session's top-level `avatar` and `avatar_state` fields report it instead. If the
|
|
637
|
+
* avatar fails, the session continues voice-only and `avatar_state` becomes
|
|
638
|
+
* `degraded`.
|
|
639
|
+
*/
|
|
640
|
+
avatar?: boolean;
|
|
641
|
+
|
|
651
642
|
/**
|
|
652
643
|
* Per-conversation values for the
|
|
653
644
|
* [dynamic variables](/docs/inference/ai-assistants/dynamic-variables) used in the
|
|
@@ -672,27 +663,6 @@ export namespace MeetingSessionCreateParams {
|
|
|
672
663
|
leave_on_end?: boolean;
|
|
673
664
|
}
|
|
674
665
|
|
|
675
|
-
/**
|
|
676
|
-
* Request options for attaching a bring-your-own-key avatar to the session.
|
|
677
|
-
*/
|
|
678
|
-
export interface Avatar {
|
|
679
|
-
/**
|
|
680
|
-
* Bring-your-own-key API key for the avatar provider. The key is never stored or
|
|
681
|
-
* returned by the API.
|
|
682
|
-
*/
|
|
683
|
-
api_key: string;
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* Identifier of the avatar to use.
|
|
687
|
-
*/
|
|
688
|
-
avatar_id: string;
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* Avatar provider identifier. Currently only "anam" is supported.
|
|
692
|
-
*/
|
|
693
|
-
provider: 'anam';
|
|
694
|
-
}
|
|
695
|
-
|
|
696
666
|
export interface MeetingSessionCameraImageBase64Source {
|
|
697
667
|
/**
|
|
698
668
|
* Canonical plain RFC 4648 Base64 for a valid decoded JPEG. Data URIs, whitespace,
|
|
@@ -782,7 +752,6 @@ export declare namespace MeetingSessions {
|
|
|
782
752
|
type MeetingSessionListResponse as MeetingSessionListResponse,
|
|
783
753
|
type MeetingSessionDeleteRecordingMediaResponse as MeetingSessionDeleteRecordingMediaResponse,
|
|
784
754
|
type MeetingSessionRetrieveEventsResponse as MeetingSessionRetrieveEventsResponse,
|
|
785
|
-
type MeetingSessionRetrieveRecordingsResponse as MeetingSessionRetrieveRecordingsResponse,
|
|
786
755
|
type MeetingSessionRetrieveTranscriptResponse as MeetingSessionRetrieveTranscriptResponse,
|
|
787
756
|
type MeetingSessionListParams as MeetingSessionListParams,
|
|
788
757
|
type MeetingSessionCreateParams as MeetingSessionCreateParams,
|