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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as MessagesAPI from './messages';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
8
9
|
|
|
@@ -43,8 +44,16 @@ export class Rcs extends APIResource {
|
|
|
43
44
|
* });
|
|
44
45
|
* ```
|
|
45
46
|
*/
|
|
46
|
-
send(
|
|
47
|
-
|
|
47
|
+
send(params: RcSendParams, options?: RequestOptions): APIPromise<RcSendResponse> {
|
|
48
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
49
|
+
return this._client.post('/messages/rcs', {
|
|
50
|
+
body,
|
|
51
|
+
...options,
|
|
52
|
+
headers: buildHeaders([
|
|
53
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
54
|
+
options?.headers,
|
|
55
|
+
]),
|
|
56
|
+
});
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
|
|
@@ -128,35 +137,56 @@ export interface RcGenerateDeeplinkParams {
|
|
|
128
137
|
|
|
129
138
|
export interface RcSendParams {
|
|
130
139
|
/**
|
|
131
|
-
* RCS Agent ID
|
|
140
|
+
* Body param: RCS Agent ID
|
|
132
141
|
*/
|
|
133
142
|
agent_id: string;
|
|
134
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Body param
|
|
146
|
+
*/
|
|
135
147
|
agent_message: MessagesAPI.RcsAgentMessage;
|
|
136
148
|
|
|
137
149
|
/**
|
|
138
|
-
* A valid messaging profile ID
|
|
150
|
+
* Body param: A valid messaging profile ID
|
|
139
151
|
*/
|
|
140
152
|
messaging_profile_id: string;
|
|
141
153
|
|
|
142
154
|
/**
|
|
143
|
-
* Phone number in +E.164 format
|
|
155
|
+
* Body param: Phone number in +E.164 format
|
|
144
156
|
*/
|
|
145
157
|
to: string;
|
|
146
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Body param
|
|
161
|
+
*/
|
|
147
162
|
mms_fallback?: RcSendParams.MmsFallback;
|
|
148
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Body param
|
|
166
|
+
*/
|
|
149
167
|
sms_fallback?: RcSendParams.SMSFallback;
|
|
150
168
|
|
|
151
169
|
/**
|
|
152
|
-
* Message type - must be set to "RCS"
|
|
170
|
+
* Body param: Message type - must be set to "RCS"
|
|
153
171
|
*/
|
|
154
172
|
type?: 'RCS';
|
|
155
173
|
|
|
156
174
|
/**
|
|
157
|
-
* The URL where webhooks related to this message will be sent.
|
|
175
|
+
* Body param: The URL where webhooks related to this message will be sent.
|
|
158
176
|
*/
|
|
159
177
|
webhook_url?: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
181
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
182
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
183
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
184
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
185
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
186
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
187
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
188
|
+
*/
|
|
189
|
+
'Idempotency-Key'?: string;
|
|
160
190
|
}
|
|
161
191
|
|
|
162
192
|
export namespace RcSendParams {
|
|
@@ -44,8 +44,11 @@ export class CsvDownloads extends APIResource {
|
|
|
44
44
|
params: CsvDownloadCreateParams | null | undefined = {},
|
|
45
45
|
options?: RequestOptions,
|
|
46
46
|
): APIPromise<CsvDownloadCreateResponse> {
|
|
47
|
-
const { csv_format, filter } = params ?? {};
|
|
48
|
-
return this._client.post('/phone_numbers/csv_downloads', {
|
|
47
|
+
const { csv_format, filter, include_managed_accounts } = params ?? {};
|
|
48
|
+
return this._client.post('/phone_numbers/csv_downloads', {
|
|
49
|
+
query: { csv_format, filter, include_managed_accounts },
|
|
50
|
+
...options,
|
|
51
|
+
});
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
/**
|
|
@@ -113,6 +116,16 @@ export interface CsvDownloadCreateParams {
|
|
|
113
116
|
* filter[emergency_address_id], filter[customer_reference]
|
|
114
117
|
*/
|
|
115
118
|
filter?: CsvDownloadCreateParams.Filter;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* When true, the CSV includes phone numbers from all managed accounts in addition
|
|
122
|
+
* to the requesting account's own numbers. Only applies to V2 format; ignored for
|
|
123
|
+
* V1. The export appends `user_id` and `email` columns identifying the account
|
|
124
|
+
* that owns each number. When a filter is provided, it applies to the combined set
|
|
125
|
+
* of numbers. Requires access to managed accounts; requests without that access
|
|
126
|
+
* are rejected.
|
|
127
|
+
*/
|
|
128
|
+
include_managed_accounts?: boolean;
|
|
116
129
|
}
|
|
117
130
|
|
|
118
131
|
export namespace CsvDownloadCreateParams {
|
|
@@ -22,6 +22,7 @@ export {
|
|
|
22
22
|
} from './csv-downloads';
|
|
23
23
|
export {
|
|
24
24
|
Jobs,
|
|
25
|
+
type NumbersPhoneNumbersJob,
|
|
25
26
|
type PhoneNumbersJob,
|
|
26
27
|
type JobRetrieveResponse,
|
|
27
28
|
type JobDeleteBatchResponse,
|
|
@@ -31,7 +32,7 @@ export {
|
|
|
31
32
|
type JobDeleteBatchParams,
|
|
32
33
|
type JobUpdateEmergencySettingsBatchParams,
|
|
33
34
|
type JobUpdateBatchParams,
|
|
34
|
-
type
|
|
35
|
+
type NumbersPhoneNumbersJobsDefaultFlatPagination,
|
|
35
36
|
} from './jobs';
|
|
36
37
|
export {
|
|
37
38
|
Messaging,
|
|
@@ -42,6 +43,7 @@ export {
|
|
|
42
43
|
} from './messaging';
|
|
43
44
|
export {
|
|
44
45
|
PhoneNumbers,
|
|
46
|
+
type NumbersError73c9788e53,
|
|
45
47
|
type NumbersPhoneNumberDetailed,
|
|
46
48
|
type PhoneNumberDetailed,
|
|
47
49
|
type PhoneNumberRetrieveResponse,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
5
|
import * as JobsAPI from '../phone-number-blocks/jobs';
|
|
6
|
+
import * as PhoneNumbersAPI from './phone-numbers';
|
|
6
7
|
import * as VoiceAPI from './voice';
|
|
7
8
|
import { APIPromise } from '../../core/api-promise';
|
|
8
9
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../../core/pagination';
|
|
@@ -23,7 +24,7 @@ export class Jobs extends APIResource {
|
|
|
23
24
|
* @example
|
|
24
25
|
* ```ts
|
|
25
26
|
* // Automatically fetches more pages as needed.
|
|
26
|
-
* for await (const
|
|
27
|
+
* for await (const numbersPhoneNumbersJob of client.phoneNumbers.jobs.list()) {
|
|
27
28
|
* // ...
|
|
28
29
|
* }
|
|
29
30
|
* ```
|
|
@@ -31,8 +32,8 @@ export class Jobs extends APIResource {
|
|
|
31
32
|
list(
|
|
32
33
|
query: JobListParams | null | undefined = {},
|
|
33
34
|
options?: RequestOptions,
|
|
34
|
-
): PagePromise<
|
|
35
|
-
return this._client.getAPIList('/phone_numbers/jobs', DefaultFlatPagination<
|
|
35
|
+
): PagePromise<NumbersPhoneNumbersJobsDefaultFlatPagination, NumbersPhoneNumbersJob> {
|
|
36
|
+
return this._client.getAPIList('/phone_numbers/jobs', DefaultFlatPagination<NumbersPhoneNumbersJob>, {
|
|
36
37
|
query,
|
|
37
38
|
...options,
|
|
38
39
|
});
|
|
@@ -128,7 +129,301 @@ export class Jobs extends APIResource {
|
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
|
|
131
|
-
export type
|
|
132
|
+
export type NumbersPhoneNumbersJobsDefaultFlatPagination = DefaultFlatPagination<NumbersPhoneNumbersJob>;
|
|
133
|
+
|
|
134
|
+
export interface NumbersPhoneNumbersJob {
|
|
135
|
+
/**
|
|
136
|
+
* Identifies the resource.
|
|
137
|
+
*/
|
|
138
|
+
id?: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* ISO 8601 formatted date indicating when the resource was created.
|
|
142
|
+
*/
|
|
143
|
+
created_at?: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* ISO 8601 formatted date indicating when the estimated time of completion of the
|
|
147
|
+
* background job.
|
|
148
|
+
*/
|
|
149
|
+
etc?: string;
|
|
150
|
+
|
|
151
|
+
failed_operations?: Array<NumbersPhoneNumbersJob.FailedOperation>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Effective parameters saved when the job was created, not a snapshot of the
|
|
155
|
+
* original HTTP request or current phone-number settings. Update jobs include the
|
|
156
|
+
* saved update fields; emergency-settings jobs include the saved emergency fields;
|
|
157
|
+
* delete jobs include only targets. Absent fields are omitted, and saved false,
|
|
158
|
+
* null and empty values are preserved. Tags may be normalized to arrays;
|
|
159
|
+
* filter-created jobs contain resolved target identifiers rather than the original
|
|
160
|
+
* filters. Historical jobs with no saved arguments return an empty object.
|
|
161
|
+
*/
|
|
162
|
+
parameters?: NumbersPhoneNumbersJob.Parameters;
|
|
163
|
+
|
|
164
|
+
pending_operations?: Array<NumbersPhoneNumbersJob.PendingOperation>;
|
|
165
|
+
|
|
166
|
+
phone_numbers?: Array<Shared.PhoneNumbersJobPhoneNumber>;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Identifies the type of the resource.
|
|
170
|
+
*/
|
|
171
|
+
record_type?: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Indicates the completion status of the background update.
|
|
175
|
+
*/
|
|
176
|
+
status?: 'pending' | 'in_progress' | 'completed' | 'failed' | 'expired';
|
|
177
|
+
|
|
178
|
+
successful_operations?: Array<NumbersPhoneNumbersJob.SuccessfulOperation>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Identifies the type of the background job.
|
|
182
|
+
*/
|
|
183
|
+
type?: 'update_emergency_settings' | 'delete_phone_numbers' | 'update_phone_numbers';
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* ISO 8601 formatted date indicating when the resource was updated.
|
|
187
|
+
*/
|
|
188
|
+
updated_at?: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export namespace NumbersPhoneNumbersJob {
|
|
192
|
+
export interface FailedOperation {
|
|
193
|
+
/**
|
|
194
|
+
* The phone number's ID
|
|
195
|
+
*/
|
|
196
|
+
id?: string;
|
|
197
|
+
|
|
198
|
+
errors?: Array<PhoneNumbersAPI.NumbersError73c9788e53>;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The phone number in e164 format.
|
|
202
|
+
*/
|
|
203
|
+
phone_number?: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Effective parameters saved when the job was created, not a snapshot of the
|
|
208
|
+
* original HTTP request or current phone-number settings. Update jobs include the
|
|
209
|
+
* saved update fields; emergency-settings jobs include the saved emergency fields;
|
|
210
|
+
* delete jobs include only targets. Absent fields are omitted, and saved false,
|
|
211
|
+
* null and empty values are preserved. Tags may be normalized to arrays;
|
|
212
|
+
* filter-created jobs contain resolved target identifiers rather than the original
|
|
213
|
+
* filters. Historical jobs with no saved arguments return an empty object.
|
|
214
|
+
*/
|
|
215
|
+
export interface Parameters {
|
|
216
|
+
/**
|
|
217
|
+
* Saved add_tags for an update_phone_numbers job. Values reflect creation-time
|
|
218
|
+
* normalization.
|
|
219
|
+
*/
|
|
220
|
+
add_tags?: Array<string> | null;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Saved billing_group_id supplied for an update_phone_numbers job.
|
|
224
|
+
*/
|
|
225
|
+
billing_group_id?: string | null;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Saved connection_id supplied for an update_phone_numbers job.
|
|
229
|
+
*/
|
|
230
|
+
connection_id?: string | null;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Saved customer_reference supplied for an update_phone_numbers job.
|
|
234
|
+
*/
|
|
235
|
+
customer_reference?: string | null;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Saved deletion_lock_enabled supplied for an update_phone_numbers job.
|
|
239
|
+
*/
|
|
240
|
+
deletion_lock_enabled?: boolean | null;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Saved emergency address identifier for an update_emergency_settings job. An
|
|
244
|
+
* explicitly supplied null is preserved.
|
|
245
|
+
*/
|
|
246
|
+
emergency_address_id?: string | null;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Saved emergency-services setting for an update_emergency_settings job.
|
|
250
|
+
*/
|
|
251
|
+
emergency_enabled?: boolean | null;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Saved external_pin supplied for an update_phone_numbers job.
|
|
255
|
+
*/
|
|
256
|
+
external_pin?: string | null;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Saved hd_voice_enabled supplied for an update_phone_numbers job.
|
|
260
|
+
*/
|
|
261
|
+
hd_voice_enabled?: boolean | null;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Saved target phone numbers in E.164 format and/or identifiers. Jobs created
|
|
265
|
+
* using filters contain the resolved identifiers, not the original filter
|
|
266
|
+
* expression. Stored identifier types are preserved.
|
|
267
|
+
*/
|
|
268
|
+
phone_numbers?: Array<string | number>;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Saved remove_tags for an update_phone_numbers job. Values reflect creation-time
|
|
272
|
+
* normalization.
|
|
273
|
+
*/
|
|
274
|
+
remove_tags?: Array<string> | null;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Saved tags for an update_phone_numbers job. Values reflect creation-time
|
|
278
|
+
* normalization.
|
|
279
|
+
*/
|
|
280
|
+
tags?: Array<string> | null;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Saved voice settings for an update_phone_numbers job, using the public field
|
|
284
|
+
* names and nesting. Only settings present at creation are returned.
|
|
285
|
+
*/
|
|
286
|
+
voice?: Parameters.Voice;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export namespace Parameters {
|
|
290
|
+
/**
|
|
291
|
+
* Saved voice settings for an update_phone_numbers job, using the public field
|
|
292
|
+
* names and nesting. Only settings present at creation are returned.
|
|
293
|
+
*/
|
|
294
|
+
export interface Voice {
|
|
295
|
+
call_forwarding?: Voice.CallForwarding;
|
|
296
|
+
|
|
297
|
+
call_recording?: Voice.CallRecording;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Saved caller_id_name_enabled setting.
|
|
301
|
+
*/
|
|
302
|
+
caller_id_name_enabled?: boolean | null;
|
|
303
|
+
|
|
304
|
+
cnam_listing?: Voice.CnamListing;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Saved inbound_call_screening setting.
|
|
308
|
+
*/
|
|
309
|
+
inbound_call_screening?: string | null;
|
|
310
|
+
|
|
311
|
+
media_features?: Voice.MediaFeatures;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Saved tech_prefix_enabled setting.
|
|
315
|
+
*/
|
|
316
|
+
tech_prefix_enabled?: boolean | null;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Saved usage_payment_method setting.
|
|
320
|
+
*/
|
|
321
|
+
usage_payment_method?: string | null;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export namespace Voice {
|
|
325
|
+
export interface CallForwarding {
|
|
326
|
+
/**
|
|
327
|
+
* Saved call_forwarding_enabled setting.
|
|
328
|
+
*/
|
|
329
|
+
call_forwarding_enabled?: boolean | null;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Saved forwarding_type setting.
|
|
333
|
+
*/
|
|
334
|
+
forwarding_type?: string | null;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Saved forwards_to setting.
|
|
338
|
+
*/
|
|
339
|
+
forwards_to?: string | null;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export interface CallRecording {
|
|
343
|
+
/**
|
|
344
|
+
* Saved inbound_call_recording_channels setting.
|
|
345
|
+
*/
|
|
346
|
+
inbound_call_recording_channels?: string | null;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Saved inbound_call_recording_enabled setting.
|
|
350
|
+
*/
|
|
351
|
+
inbound_call_recording_enabled?: boolean | null;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Saved inbound_call_recording_format setting.
|
|
355
|
+
*/
|
|
356
|
+
inbound_call_recording_format?: string | null;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Saved record_continue_on_hold setting.
|
|
360
|
+
*/
|
|
361
|
+
record_continue_on_hold?: boolean | null;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface CnamListing {
|
|
365
|
+
/**
|
|
366
|
+
* Saved cnam_listing_details setting.
|
|
367
|
+
*/
|
|
368
|
+
cnam_listing_details?: string | null;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Saved cnam_listing_enabled setting.
|
|
372
|
+
*/
|
|
373
|
+
cnam_listing_enabled?: boolean | null;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface MediaFeatures {
|
|
377
|
+
/**
|
|
378
|
+
* Saved accept_any_rtp_packets_enabled setting.
|
|
379
|
+
*/
|
|
380
|
+
accept_any_rtp_packets_enabled?: boolean | null;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Saved rtp_auto_adjust_enabled setting.
|
|
384
|
+
*/
|
|
385
|
+
rtp_auto_adjust_enabled?: boolean | null;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Saved t38_fax_gateway_enabled setting.
|
|
389
|
+
*/
|
|
390
|
+
t38_fax_gateway_enabled?: boolean | null;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* The phone numbers pending confirmation on update results. Entries in this list
|
|
397
|
+
* are transient, and will be moved to either successful_operations or
|
|
398
|
+
* failed_operations once the processing is done.
|
|
399
|
+
*/
|
|
400
|
+
export interface PendingOperation {
|
|
401
|
+
/**
|
|
402
|
+
* The phone number's ID
|
|
403
|
+
*/
|
|
404
|
+
id?: string;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* The phone number in e164 format.
|
|
408
|
+
*/
|
|
409
|
+
phone_number?: string;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* The phone numbers successfully updated.
|
|
414
|
+
*/
|
|
415
|
+
export interface SuccessfulOperation {
|
|
416
|
+
/**
|
|
417
|
+
* The phone number's ID
|
|
418
|
+
*/
|
|
419
|
+
id?: string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* The phone number in e164 format.
|
|
423
|
+
*/
|
|
424
|
+
phone_number?: string;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
132
427
|
|
|
133
428
|
export interface PhoneNumbersJob {
|
|
134
429
|
/**
|
|
@@ -225,19 +520,19 @@ export namespace PhoneNumbersJob {
|
|
|
225
520
|
}
|
|
226
521
|
|
|
227
522
|
export interface JobRetrieveResponse {
|
|
228
|
-
data?:
|
|
523
|
+
data?: NumbersPhoneNumbersJob;
|
|
229
524
|
}
|
|
230
525
|
|
|
231
526
|
export interface JobDeleteBatchResponse {
|
|
232
|
-
data?:
|
|
527
|
+
data?: NumbersPhoneNumbersJob;
|
|
233
528
|
}
|
|
234
529
|
|
|
235
530
|
export interface JobUpdateBatchResponse {
|
|
236
|
-
data?:
|
|
531
|
+
data?: NumbersPhoneNumbersJob;
|
|
237
532
|
}
|
|
238
533
|
|
|
239
534
|
export interface JobUpdateEmergencySettingsBatchResponse {
|
|
240
|
-
data?:
|
|
535
|
+
data?: NumbersPhoneNumbersJob;
|
|
241
536
|
}
|
|
242
537
|
|
|
243
538
|
export interface JobListParams extends DefaultFlatPaginationParams {
|
|
@@ -263,12 +558,15 @@ export namespace JobListParams {
|
|
|
263
558
|
*/
|
|
264
559
|
export interface Filter {
|
|
265
560
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
561
|
+
* Exact, case-sensitive match for the customer reference supplied when the job was
|
|
562
|
+
* created. Only jobs created within the last 90 days are returned, including for
|
|
563
|
+
* accounts otherwise exempt from job retention limits. Searches the stored job
|
|
564
|
+
* reference, not the current reference on a phone number. Multiple jobs may share
|
|
565
|
+
* a reference. Combines with the other filters and account ownership. Supply a
|
|
566
|
+
* single non-blank string of up to 250 characters, without null characters, using
|
|
567
|
+
* `filter[customer_reference]=yourcustomerrefhere`. Whitespace is preserved; blank
|
|
568
|
+
* strings, arrays, and objects return HTTP 422. An invalid filter value returns
|
|
569
|
+
* HTTP 422. The literal string `null` is matched as text.
|
|
272
570
|
*/
|
|
273
571
|
customer_reference?: string;
|
|
274
572
|
|
|
@@ -344,7 +642,12 @@ export interface JobUpdateBatchParams {
|
|
|
344
642
|
connection_id?: string;
|
|
345
643
|
|
|
346
644
|
/**
|
|
347
|
-
* Body param:
|
|
645
|
+
* Body param: Sets the customer reference on the selected phone numbers and
|
|
646
|
+
* retains the supplied value on the job. Recover the job without its ID using GET
|
|
647
|
+
* /phone_numbers/jobs with filter[customer_reference] within 90 days of job
|
|
648
|
+
* creation. This body field updates the numbers; the separate
|
|
649
|
+
* filter[customer_reference] query parameter selects numbers by their current
|
|
650
|
+
* reference.
|
|
348
651
|
*/
|
|
349
652
|
customer_reference?: string;
|
|
350
653
|
|
|
@@ -485,12 +788,13 @@ export namespace JobUpdateBatchParams {
|
|
|
485
788
|
|
|
486
789
|
export declare namespace Jobs {
|
|
487
790
|
export {
|
|
791
|
+
type NumbersPhoneNumbersJob as NumbersPhoneNumbersJob,
|
|
488
792
|
type PhoneNumbersJob as PhoneNumbersJob,
|
|
489
793
|
type JobRetrieveResponse as JobRetrieveResponse,
|
|
490
794
|
type JobDeleteBatchResponse as JobDeleteBatchResponse,
|
|
491
795
|
type JobUpdateBatchResponse as JobUpdateBatchResponse,
|
|
492
796
|
type JobUpdateEmergencySettingsBatchResponse as JobUpdateEmergencySettingsBatchResponse,
|
|
493
|
-
type
|
|
797
|
+
type NumbersPhoneNumbersJobsDefaultFlatPagination as NumbersPhoneNumbersJobsDefaultFlatPagination,
|
|
494
798
|
type JobListParams as JobListParams,
|
|
495
799
|
type JobDeleteBatchParams as JobDeleteBatchParams,
|
|
496
800
|
type JobUpdateEmergencySettingsBatchParams as JobUpdateEmergencySettingsBatchParams,
|
|
@@ -33,8 +33,9 @@ import {
|
|
|
33
33
|
JobUpdateEmergencySettingsBatchParams,
|
|
34
34
|
JobUpdateEmergencySettingsBatchResponse,
|
|
35
35
|
Jobs,
|
|
36
|
+
NumbersPhoneNumbersJob,
|
|
37
|
+
NumbersPhoneNumbersJobsDefaultFlatPagination,
|
|
36
38
|
PhoneNumbersJob,
|
|
37
|
-
PhoneNumbersJobsDefaultFlatPagination,
|
|
38
39
|
} from './jobs';
|
|
39
40
|
import * as MessagingAPI from './messaging';
|
|
40
41
|
import {
|
|
@@ -186,6 +187,39 @@ export type NumbersPhoneNumberDetailedsDefaultFlatPagination =
|
|
|
186
187
|
export type PhoneNumberSlimListResponsesDefaultFlatPagination =
|
|
187
188
|
DefaultFlatPagination<PhoneNumberSlimListResponse>;
|
|
188
189
|
|
|
190
|
+
export interface NumbersError73c9788e53 {
|
|
191
|
+
code?: string;
|
|
192
|
+
|
|
193
|
+
detail?: string;
|
|
194
|
+
|
|
195
|
+
meta?: NumbersError73c9788e53.Meta;
|
|
196
|
+
|
|
197
|
+
source?: NumbersError73c9788e53.Source;
|
|
198
|
+
|
|
199
|
+
title?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export namespace NumbersError73c9788e53 {
|
|
203
|
+
export interface Meta {
|
|
204
|
+
/**
|
|
205
|
+
* URL with additional information on the error.
|
|
206
|
+
*/
|
|
207
|
+
url?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface Source {
|
|
211
|
+
/**
|
|
212
|
+
* Indicates which query parameter caused the error.
|
|
213
|
+
*/
|
|
214
|
+
parameter?: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* JSON pointer (RFC6901) to the offending entity.
|
|
218
|
+
*/
|
|
219
|
+
pointer?: string;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
189
223
|
export interface NumbersPhoneNumberDetailed {
|
|
190
224
|
/**
|
|
191
225
|
* Identifies the resource.
|
|
@@ -1276,6 +1310,7 @@ PhoneNumbers.Voicemail = Voicemail;
|
|
|
1276
1310
|
|
|
1277
1311
|
export declare namespace PhoneNumbers {
|
|
1278
1312
|
export {
|
|
1313
|
+
type NumbersError73c9788e53 as NumbersError73c9788e53,
|
|
1279
1314
|
type NumbersPhoneNumberDetailed as NumbersPhoneNumberDetailed,
|
|
1280
1315
|
type PhoneNumberDetailed as PhoneNumberDetailed,
|
|
1281
1316
|
type PhoneNumberRetrieveResponse as PhoneNumberRetrieveResponse,
|
|
@@ -1312,12 +1347,13 @@ export declare namespace PhoneNumbers {
|
|
|
1312
1347
|
|
|
1313
1348
|
export {
|
|
1314
1349
|
Jobs as Jobs,
|
|
1350
|
+
type NumbersPhoneNumbersJob as NumbersPhoneNumbersJob,
|
|
1315
1351
|
type PhoneNumbersJob as PhoneNumbersJob,
|
|
1316
1352
|
type JobRetrieveResponse as JobRetrieveResponse,
|
|
1317
1353
|
type JobDeleteBatchResponse as JobDeleteBatchResponse,
|
|
1318
1354
|
type JobUpdateBatchResponse as JobUpdateBatchResponse,
|
|
1319
1355
|
type JobUpdateEmergencySettingsBatchResponse as JobUpdateEmergencySettingsBatchResponse,
|
|
1320
|
-
type
|
|
1356
|
+
type NumbersPhoneNumbersJobsDefaultFlatPagination as NumbersPhoneNumbersJobsDefaultFlatPagination,
|
|
1321
1357
|
type JobListParams as JobListParams,
|
|
1322
1358
|
type JobDeleteBatchParams as JobDeleteBatchParams,
|
|
1323
1359
|
type JobUpdateEmergencySettingsBatchParams as JobUpdateEmergencySettingsBatchParams,
|