telnyx 7.26.0 → 7.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +28 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -10
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses/addresses.d.mts +22 -2
- package/resources/addresses/addresses.d.mts.map +1 -1
- package/resources/addresses/addresses.d.ts +22 -2
- package/resources/addresses/addresses.d.ts.map +1 -1
- package/resources/addresses/addresses.js +12 -0
- package/resources/addresses/addresses.js.map +1 -1
- package/resources/addresses/addresses.mjs +12 -0
- package/resources/addresses/addresses.mjs.map +1 -1
- package/resources/ai/ai.d.mts +2 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +2 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +179 -33
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +179 -33
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +4 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +4 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +11 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +11 -6
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/assistants/versions.js +4 -1
- package/resources/ai/assistants/versions.js.map +1 -1
- package/resources/ai/assistants/versions.mjs +4 -1
- package/resources/ai/assistants/versions.mjs.map +1 -1
- package/resources/ai/audio.d.mts +33 -10
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +33 -10
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +21 -8
- package/resources/ai/avatars.d.mts.map +1 -1
- package/resources/ai/avatars.d.ts +21 -8
- package/resources/ai/avatars.d.ts.map +1 -1
- package/resources/ai/avatars.js +3 -1
- package/resources/ai/avatars.js.map +1 -1
- package/resources/ai/avatars.mjs +3 -1
- package/resources/ai/avatars.mjs.map +1 -1
- package/resources/ai/index.d.mts +1 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tools.d.mts +13 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +13 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +202 -13
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +202 -13
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/compute/compute.d.mts +75 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +75 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +17 -0
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/funcs/export.d.mts +3 -0
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +3 -0
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/export.js +3 -0
- package/resources/compute/funcs/export.js.map +1 -1
- package/resources/compute/funcs/export.mjs +3 -0
- package/resources/compute/funcs/export.mjs.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +60 -1
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +60 -1
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js +24 -0
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs +24 -0
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs.map +1 -1
- package/resources/compute/index.d.mts +2 -2
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +2 -2
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/credential-connections/credential-connections.d.mts +38 -8
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +38 -8
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/dial-metrics.d.mts +151 -0
- package/resources/dial-metrics.d.mts.map +1 -0
- package/resources/dial-metrics.d.ts +151 -0
- package/resources/dial-metrics.d.ts.map +1 -0
- package/resources/dial-metrics.js +44 -0
- package/resources/dial-metrics.js.map +1 -0
- package/resources/dial-metrics.mjs +40 -0
- package/resources/dial-metrics.mjs.map +1 -0
- package/resources/dir/dir.d.mts +2 -3
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +2 -3
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -2
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -2
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/references.d.mts +15 -9
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +15 -9
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/dir/references.js +15 -9
- package/resources/dir/references.js.map +1 -1
- package/resources/dir/references.mjs +15 -9
- package/resources/dir/references.mjs.map +1 -1
- package/resources/dir/verify-email.d.mts +17 -5
- package/resources/dir/verify-email.d.mts.map +1 -1
- package/resources/dir/verify-email.d.ts +17 -5
- package/resources/dir/verify-email.d.ts.map +1 -1
- package/resources/dir/verify-email.js +17 -5
- package/resources/dir/verify-email.js.map +1 -1
- package/resources/dir/verify-email.mjs +17 -5
- package/resources/dir/verify-email.mjs.map +1 -1
- package/resources/email-domains/email-domains.d.mts +1 -1
- package/resources/email-domains/email-domains.d.mts.map +1 -1
- package/resources/email-domains/email-domains.d.ts +1 -1
- package/resources/email-domains/email-domains.d.ts.map +1 -1
- package/resources/enterprises/verify-email.d.mts +1 -1
- package/resources/enterprises/verify-email.d.ts +1 -1
- package/resources/enterprises/verify-email.js +1 -1
- package/resources/enterprises/verify-email.mjs +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +36 -6
- package/resources/ip-connections.d.mts.map +1 -1
- package/resources/ip-connections.d.ts +36 -6
- package/resources/ip-connections.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.d.mts +13 -7
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +13 -7
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +13 -7
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +13 -7
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +14 -23
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/messages/messages.d.mts +581 -118
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +581 -118
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +71 -14
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +71 -14
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messages/rcs.d.mts +26 -6
- package/resources/messages/rcs.d.mts.map +1 -1
- package/resources/messages/rcs.d.ts +26 -6
- package/resources/messages/rcs.d.ts.map +1 -1
- package/resources/messages/rcs.js +11 -2
- package/resources/messages/rcs.js.map +1 -1
- package/resources/messages/rcs.mjs +11 -2
- package/resources/messages/rcs.mjs.map +1 -1
- package/resources/network-coverage.d.mts +1 -1
- package/resources/network-coverage.d.mts.map +1 -1
- package/resources/network-coverage.d.ts +1 -1
- package/resources/network-coverage.d.ts.map +1 -1
- package/resources/number-lookup.d.mts +122 -4
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +122 -4
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.mts +9 -0
- package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.ts +9 -0
- package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
- package/resources/phone-numbers/csv-downloads.js +5 -2
- package/resources/phone-numbers/csv-downloads.js.map +1 -1
- package/resources/phone-numbers/csv-downloads.mjs +5 -2
- package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
- package/resources/phone-numbers/index.d.mts +2 -2
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +2 -2
- package/resources/phone-numbers/index.d.ts.map +1 -1
- package/resources/phone-numbers/index.js.map +1 -1
- package/resources/phone-numbers/index.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +266 -15
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +266 -15
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +1 -1
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +1 -1
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +28 -3
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +28 -3
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +12 -5
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +12 -5
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/tailscale-subnet-routers.d.mts +233 -0
- package/resources/tailscale-subnet-routers.d.mts.map +1 -0
- package/resources/tailscale-subnet-routers.d.ts +233 -0
- package/resources/tailscale-subnet-routers.d.ts.map +1 -0
- package/resources/tailscale-subnet-routers.js +105 -0
- package/resources/tailscale-subnet-routers.js.map +1 -0
- package/resources/tailscale-subnet-routers.mjs +101 -0
- package/resources/tailscale-subnet-routers.mjs.map +1 -0
- package/resources/telephony-credentials.d.mts +11 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +11 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +9 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +9 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/texml/accounts/accounts.d.mts +2 -2
- package/resources/texml/accounts/accounts.d.ts +2 -2
- package/resources/texml/accounts/accounts.js +2 -2
- package/resources/texml/accounts/accounts.mjs +2 -2
- package/resources/texml/accounts/calls/calls.d.mts +49 -14
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +49 -14
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +7 -7
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +7 -7
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.js +2 -2
- package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
- package/resources/texml/accounts/calls/recordings.d.mts +10 -2
- package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings.d.ts +10 -2
- package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings.js +4 -1
- package/resources/texml/accounts/calls/recordings.js.map +1 -1
- package/resources/texml/accounts/calls/recordings.mjs +4 -1
- package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.mts +10 -2
- package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.ts +10 -2
- package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
- package/resources/texml/accounts/calls/siprec.js +4 -1
- package/resources/texml/accounts/calls/siprec.js.map +1 -1
- package/resources/texml/accounts/calls/siprec.mjs +4 -1
- package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
- package/resources/texml/accounts/calls/streams.d.mts +10 -2
- package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
- package/resources/texml/accounts/calls/streams.d.ts +10 -2
- package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
- package/resources/texml/accounts/calls/streams.js +4 -1
- package/resources/texml/accounts/calls/streams.js.map +1 -1
- package/resources/texml/accounts/calls/streams.mjs +4 -1
- package/resources/texml/accounts/calls/streams.mjs.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.js +5 -5
- package/resources/texml/accounts/conferences/conferences.js.map +1 -1
- package/resources/texml/accounts/conferences/conferences.mjs +5 -5
- package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +35 -10
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +35 -10
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/participants.js +5 -5
- package/resources/texml/accounts/conferences/participants.mjs +5 -5
- package/resources/texml/accounts/queues.d.mts +25 -8
- package/resources/texml/accounts/queues.d.mts.map +1 -1
- package/resources/texml/accounts/queues.d.ts +25 -8
- package/resources/texml/accounts/queues.d.ts.map +1 -1
- package/resources/texml/accounts/queues.js +7 -5
- package/resources/texml/accounts/queues.js.map +1 -1
- package/resources/texml/accounts/queues.mjs +7 -5
- package/resources/texml/accounts/queues.mjs.map +1 -1
- package/resources/texml/accounts/recordings/json.d.mts +14 -4
- package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
- package/resources/texml/accounts/recordings/json.d.ts +14 -4
- package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
- package/resources/texml/accounts/recordings/json.js +2 -2
- package/resources/texml/accounts/recordings/json.mjs +2 -2
- package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.js +2 -2
- package/resources/texml/accounts/transcriptions/json.mjs +2 -2
- package/resources/text-to-speech/text-to-speech.d.mts +15 -6
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +15 -6
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/tts-integrations/actions.d.mts +4 -0
- package/resources/tts-integrations/actions.d.mts.map +1 -0
- package/resources/tts-integrations/actions.d.ts +4 -0
- package/resources/tts-integrations/actions.d.ts.map +1 -0
- package/resources/tts-integrations/actions.js +9 -0
- package/resources/tts-integrations/actions.js.map +1 -0
- package/resources/tts-integrations/actions.mjs +5 -0
- package/resources/tts-integrations/actions.mjs.map +1 -0
- package/resources/tts-integrations/index.d.mts +3 -0
- package/resources/tts-integrations/index.d.mts.map +1 -0
- package/resources/tts-integrations/index.d.ts +3 -0
- package/resources/tts-integrations/index.d.ts.map +1 -0
- package/resources/tts-integrations/index.js +9 -0
- package/resources/tts-integrations/index.js.map +1 -0
- package/resources/tts-integrations/index.mjs +4 -0
- package/resources/tts-integrations/index.mjs.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.mts +10 -0
- package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.ts +10 -0
- package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations/tts-integrations.js +17 -0
- package/resources/tts-integrations/tts-integrations.js.map +1 -0
- package/resources/tts-integrations/tts-integrations.mjs +12 -0
- package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
- package/resources/tts-integrations.d.mts +2 -0
- package/resources/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations.d.ts +2 -0
- package/resources/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations.js +6 -0
- package/resources/tts-integrations.js.map +1 -0
- package/resources/tts-integrations.mjs +3 -0
- package/resources/tts-integrations.mjs.map +1 -0
- package/resources/uac-connections/uac-connections.d.mts +36 -6
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +36 -6
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/voice-clones.d.mts +57 -10
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +57 -10
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +6 -4
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +6 -4
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/webhooks.d.mts +433 -81
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +433 -81
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +165 -0
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
- package/resources/whatsapp/hosted-signups.d.ts +165 -0
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
- package/resources/whatsapp/hosted-signups.js +56 -0
- package/resources/whatsapp/hosted-signups.js.map +1 -0
- package/resources/whatsapp/hosted-signups.mjs +52 -0
- package/resources/whatsapp/hosted-signups.mjs.map +1 -0
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +64 -6
- package/src/resources/addresses/addresses.ts +22 -2
- package/src/resources/ai/ai.ts +2 -0
- package/src/resources/ai/assistants/assistants.ts +191 -31
- package/src/resources/ai/assistants/versions.ts +11 -6
- package/src/resources/ai/audio.ts +35 -10
- package/src/resources/ai/avatars.ts +22 -8
- package/src/resources/ai/index.ts +1 -0
- package/src/resources/ai/tools.ts +16 -0
- package/src/resources/calls/actions.ts +281 -10
- package/src/resources/calls/calls.ts +2 -0
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/compute/compute.ts +105 -0
- package/src/resources/compute/funcs/export.ts +3 -0
- package/src/resources/compute/funcs/funcs.ts +99 -0
- package/src/resources/compute/funcs/index.ts +3 -0
- package/src/resources/compute/index.ts +4 -1
- package/src/resources/credential-connections/credential-connections.ts +41 -8
- package/src/resources/dial-metrics.ts +185 -0
- package/src/resources/dir/dir.ts +4 -2
- package/src/resources/dir/references.ts +15 -9
- package/src/resources/dir/verify-email.ts +17 -5
- package/src/resources/email-domains/email-domains.ts +1 -1
- package/src/resources/enterprises/verify-email.ts +1 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
- package/src/resources/index.ts +23 -3
- package/src/resources/ip-connections.ts +39 -6
- package/src/resources/meeting-sessions/actions.ts +13 -7
- package/src/resources/meeting-sessions/index.ts +0 -1
- package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
- package/src/resources/messages/messages.ts +786 -125
- package/src/resources/messages/rcs.ts +37 -7
- package/src/resources/network-coverage.ts +5 -1
- package/src/resources/number-lookup.ts +154 -4
- package/src/resources/phone-numbers/csv-downloads.ts +15 -2
- package/src/resources/phone-numbers/index.ts +3 -1
- package/src/resources/phone-numbers/jobs.ts +320 -16
- package/src/resources/phone-numbers/phone-numbers.ts +38 -2
- package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
- package/src/resources/porting-orders/porting-orders.ts +1 -0
- package/src/resources/porting-phone-numbers.ts +1 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/speech-to-text/speech-to-text.ts +12 -4
- package/src/resources/tailscale-subnet-routers.ts +303 -0
- package/src/resources/telephony-credentials.ts +24 -2
- package/src/resources/texml/accounts/accounts.ts +2 -2
- package/src/resources/texml/accounts/calls/calls.ts +49 -14
- package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
- package/src/resources/texml/accounts/calls/recordings.ts +10 -2
- package/src/resources/texml/accounts/calls/siprec.ts +10 -2
- package/src/resources/texml/accounts/calls/streams.ts +10 -2
- package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
- package/src/resources/texml/accounts/conferences/participants.ts +35 -10
- package/src/resources/texml/accounts/queues.ts +25 -8
- package/src/resources/texml/accounts/recordings/json.ts +14 -4
- package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
- package/src/resources/text-to-speech/text-to-speech.ts +15 -6
- package/src/resources/tts-integrations/actions.ts +5 -0
- package/src/resources/tts-integrations/index.ts +4 -0
- package/src/resources/tts-integrations/tts-integrations.ts +15 -0
- package/src/resources/tts-integrations.ts +3 -0
- package/src/resources/uac-connections/uac-connections.ts +39 -6
- package/src/resources/voice-clones.ts +65 -9
- package/src/resources/webhooks.ts +517 -95
- package/src/resources/whatsapp/hosted-signups.ts +221 -0
- package/src/resources/whatsapp/index.ts +9 -0
- package/src/resources/whatsapp/whatsapp.ts +22 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as FuncsAPI from './funcs/funcs';
|
|
5
5
|
import {
|
|
6
|
+
FuncListParams,
|
|
7
|
+
FuncListResponse,
|
|
8
|
+
FuncListResponsesDefaultFlatPagination,
|
|
6
9
|
FuncRetrieveLogsParams,
|
|
7
10
|
FuncRetrieveLogsResponse,
|
|
8
11
|
FuncRetrieveMetricAggregatesParams,
|
|
@@ -14,24 +17,126 @@ import {
|
|
|
14
17
|
FunctionsObservabilityPaginationMeta,
|
|
15
18
|
LogsMeta,
|
|
16
19
|
} from './funcs/funcs';
|
|
20
|
+
import { APIPromise } from '../../core/api-promise';
|
|
21
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
22
|
+
import { path } from '../../internal/utils/path';
|
|
17
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Inspect Stateful Actor types
|
|
26
|
+
*/
|
|
18
27
|
export class Compute extends APIResource {
|
|
19
28
|
funcs: FuncsAPI.Funcs = new FuncsAPI.Funcs(this._client);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve one account-scoped Stateful Actor type. owner_function_id identifies
|
|
32
|
+
* the function that owns and ships the actor class; other functions may reference
|
|
33
|
+
* the same actor type through actor bindings.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const compute = await client.compute.retrieve('id');
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ComputeRetrieveResponse> {
|
|
41
|
+
return this._client.get(path`/compute/actors/${id}`, options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ComputeRetrieveResponse {
|
|
46
|
+
data?: ComputeRetrieveResponse.Data;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace ComputeRetrieveResponse {
|
|
50
|
+
export interface Data {
|
|
51
|
+
id?: string;
|
|
52
|
+
|
|
53
|
+
created_at?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* ID of the function that owns and ships this actor type. Empty when the type is
|
|
57
|
+
* unowned.
|
|
58
|
+
*/
|
|
59
|
+
owner_function_id?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Last deployment fan-out report, not a live probe. Omitted on actor types without
|
|
63
|
+
* a placement-aware deployment.
|
|
64
|
+
*/
|
|
65
|
+
placement?: Data.Placement;
|
|
66
|
+
|
|
67
|
+
record_type?: string;
|
|
68
|
+
|
|
69
|
+
status?: string;
|
|
70
|
+
|
|
71
|
+
type?: string;
|
|
72
|
+
|
|
73
|
+
updated_at?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export namespace Data {
|
|
77
|
+
/**
|
|
78
|
+
* Last deployment fan-out report, not a live probe. Omitted on actor types without
|
|
79
|
+
* a placement-aware deployment.
|
|
80
|
+
*/
|
|
81
|
+
export interface Placement {
|
|
82
|
+
cluster_results?: Array<Placement.ClusterResult>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Public regions with successful deployment
|
|
86
|
+
*/
|
|
87
|
+
clusters?: Array<string>;
|
|
88
|
+
|
|
89
|
+
excluded_clusters?: Array<string>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Optional ISO-8601 millisecond timestamp
|
|
93
|
+
*/
|
|
94
|
+
observed_at?: string;
|
|
95
|
+
|
|
96
|
+
partial?: boolean;
|
|
97
|
+
|
|
98
|
+
policy?: 'everywhere' | 'single_site';
|
|
99
|
+
|
|
100
|
+
unchecked_clusters?: Array<string>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace Placement {
|
|
104
|
+
export interface ClusterResult {
|
|
105
|
+
/**
|
|
106
|
+
* Public region, or unknown when no mapping exists
|
|
107
|
+
*/
|
|
108
|
+
cluster_id?: string;
|
|
109
|
+
|
|
110
|
+
error?: string;
|
|
111
|
+
|
|
112
|
+
error_code?: string;
|
|
113
|
+
|
|
114
|
+
status?: string;
|
|
115
|
+
|
|
116
|
+
success?: boolean;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
20
120
|
}
|
|
21
121
|
|
|
22
122
|
Compute.Funcs = Funcs;
|
|
23
123
|
|
|
24
124
|
export declare namespace Compute {
|
|
125
|
+
export { type ComputeRetrieveResponse as ComputeRetrieveResponse };
|
|
126
|
+
|
|
25
127
|
export {
|
|
26
128
|
Funcs as Funcs,
|
|
27
129
|
type FunctionsObservabilityPaginationMeta as FunctionsObservabilityPaginationMeta,
|
|
28
130
|
type LogsMeta as LogsMeta,
|
|
131
|
+
type FuncListResponse as FuncListResponse,
|
|
29
132
|
type FuncRetrieveLogsResponse as FuncRetrieveLogsResponse,
|
|
30
133
|
type FuncRetrieveMetricAggregatesResponse as FuncRetrieveMetricAggregatesResponse,
|
|
31
134
|
type FuncRetrieveRevisionsResponse as FuncRetrieveRevisionsResponse,
|
|
32
135
|
type FuncRetrieveShipInspectionResponse as FuncRetrieveShipInspectionResponse,
|
|
136
|
+
type FuncListResponsesDefaultFlatPagination as FuncListResponsesDefaultFlatPagination,
|
|
33
137
|
type FuncRetrieveLogsParams as FuncRetrieveLogsParams,
|
|
34
138
|
type FuncRetrieveMetricAggregatesParams as FuncRetrieveMetricAggregatesParams,
|
|
35
139
|
type FuncRetrieveRevisionsParams as FuncRetrieveRevisionsParams,
|
|
140
|
+
type FuncListParams as FuncListParams,
|
|
36
141
|
};
|
|
37
142
|
}
|
|
@@ -6,6 +6,9 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
7
|
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Manage Edge Compute functions
|
|
11
|
+
*/
|
|
9
12
|
export class Export extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Stops exporting a function's logs and removes its destination configuration.
|
|
@@ -5,9 +5,17 @@ import * as FuncsAPI from './funcs';
|
|
|
5
5
|
import * as ExportAPI from './export';
|
|
6
6
|
import { Export, ExportCreateParams, FuncLogExportConfigResponse } from './export';
|
|
7
7
|
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import {
|
|
9
|
+
DefaultFlatPagination,
|
|
10
|
+
type DefaultFlatPaginationParams,
|
|
11
|
+
PagePromise,
|
|
12
|
+
} from '../../../core/pagination';
|
|
8
13
|
import { RequestOptions } from '../../../internal/request-options';
|
|
9
14
|
import { path } from '../../../internal/utils/path';
|
|
10
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Manage Edge Compute functions
|
|
18
|
+
*/
|
|
11
19
|
export class Funcs extends APIResource {
|
|
12
20
|
export: ExportAPI.Export = new ExportAPI.Export(this._client);
|
|
13
21
|
|
|
@@ -91,8 +99,34 @@ export class Funcs extends APIResource {
|
|
|
91
99
|
): APIPromise<FuncRetrieveShipInspectionResponse> {
|
|
92
100
|
return this._client.get(path`/compute/funcs/${id}/ship_inspection`, options);
|
|
93
101
|
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* List functions for the authenticated organization. Each function includes its
|
|
105
|
+
* persisted function-scoped bindings. Actor bindings expose actor_type and
|
|
106
|
+
* env_name, allowing clients to identify every function attached to a Stateful
|
|
107
|
+
* Actor type.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* // Automatically fetches more pages as needed.
|
|
112
|
+
* for await (const funcListResponse of client.compute.funcs.list()) {
|
|
113
|
+
* // ...
|
|
114
|
+
* }
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
list(
|
|
118
|
+
query: FuncListParams | null | undefined = {},
|
|
119
|
+
options?: RequestOptions,
|
|
120
|
+
): PagePromise<FuncListResponsesDefaultFlatPagination, FuncListResponse> {
|
|
121
|
+
return this._client.getAPIList('/compute/funcs', DefaultFlatPagination<FuncListResponse>, {
|
|
122
|
+
query,
|
|
123
|
+
...options,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
94
126
|
}
|
|
95
127
|
|
|
128
|
+
export type FuncListResponsesDefaultFlatPagination = DefaultFlatPagination<FuncListResponse>;
|
|
129
|
+
|
|
96
130
|
export interface FunctionsObservabilityPaginationMeta {
|
|
97
131
|
page_number?: number;
|
|
98
132
|
|
|
@@ -109,6 +143,66 @@ export interface LogsMeta {
|
|
|
109
143
|
partial?: boolean;
|
|
110
144
|
}
|
|
111
145
|
|
|
146
|
+
export interface FuncListResponse {
|
|
147
|
+
id?: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Always present; empty when the function has no bindings.
|
|
151
|
+
*/
|
|
152
|
+
bindings?: Array<FuncListResponse.Binding>;
|
|
153
|
+
|
|
154
|
+
created_at?: string;
|
|
155
|
+
|
|
156
|
+
invoke_url?: string;
|
|
157
|
+
|
|
158
|
+
message?: string;
|
|
159
|
+
|
|
160
|
+
name?: string;
|
|
161
|
+
|
|
162
|
+
record_type?: string;
|
|
163
|
+
|
|
164
|
+
status?: string;
|
|
165
|
+
|
|
166
|
+
status_detail?: string;
|
|
167
|
+
|
|
168
|
+
updated_at?: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export namespace FuncListResponse {
|
|
172
|
+
/**
|
|
173
|
+
* A function-scoped binding persisted at ship time. For binding_type=actor,
|
|
174
|
+
* actor_type is the referenced Stateful Actor type and env_name is the binding
|
|
175
|
+
* name exposed to the function.
|
|
176
|
+
*/
|
|
177
|
+
export interface Binding {
|
|
178
|
+
actor_type?: string;
|
|
179
|
+
|
|
180
|
+
binding_id?: string;
|
|
181
|
+
|
|
182
|
+
binding_type?: string;
|
|
183
|
+
|
|
184
|
+
bucket_id?: string;
|
|
185
|
+
|
|
186
|
+
created_at?: string;
|
|
187
|
+
|
|
188
|
+
env_name?: string;
|
|
189
|
+
|
|
190
|
+
func_id?: string;
|
|
191
|
+
|
|
192
|
+
kv_id?: string;
|
|
193
|
+
|
|
194
|
+
record_type?: string;
|
|
195
|
+
|
|
196
|
+
secret_name?: string;
|
|
197
|
+
|
|
198
|
+
sqldb_id?: string;
|
|
199
|
+
|
|
200
|
+
status?: string;
|
|
201
|
+
|
|
202
|
+
updated_at?: string;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
112
206
|
export type FuncRetrieveLogsResponse =
|
|
113
207
|
| FuncRetrieveLogsResponse.FuncRuntimeLogsResponse
|
|
114
208
|
| FuncRetrieveLogsResponse.FuncInvocationLogsResponse;
|
|
@@ -318,19 +412,24 @@ export interface FuncRetrieveRevisionsParams {
|
|
|
318
412
|
'page[size]'?: number;
|
|
319
413
|
}
|
|
320
414
|
|
|
415
|
+
export interface FuncListParams extends DefaultFlatPaginationParams {}
|
|
416
|
+
|
|
321
417
|
Funcs.Export = Export;
|
|
322
418
|
|
|
323
419
|
export declare namespace Funcs {
|
|
324
420
|
export {
|
|
325
421
|
type FunctionsObservabilityPaginationMeta as FunctionsObservabilityPaginationMeta,
|
|
326
422
|
type LogsMeta as LogsMeta,
|
|
423
|
+
type FuncListResponse as FuncListResponse,
|
|
327
424
|
type FuncRetrieveLogsResponse as FuncRetrieveLogsResponse,
|
|
328
425
|
type FuncRetrieveMetricAggregatesResponse as FuncRetrieveMetricAggregatesResponse,
|
|
329
426
|
type FuncRetrieveRevisionsResponse as FuncRetrieveRevisionsResponse,
|
|
330
427
|
type FuncRetrieveShipInspectionResponse as FuncRetrieveShipInspectionResponse,
|
|
428
|
+
type FuncListResponsesDefaultFlatPagination as FuncListResponsesDefaultFlatPagination,
|
|
331
429
|
type FuncRetrieveLogsParams as FuncRetrieveLogsParams,
|
|
332
430
|
type FuncRetrieveMetricAggregatesParams as FuncRetrieveMetricAggregatesParams,
|
|
333
431
|
type FuncRetrieveRevisionsParams as FuncRetrieveRevisionsParams,
|
|
432
|
+
type FuncListParams as FuncListParams,
|
|
334
433
|
};
|
|
335
434
|
|
|
336
435
|
export {
|
|
@@ -5,6 +5,7 @@ export {
|
|
|
5
5
|
Funcs,
|
|
6
6
|
type FunctionsObservabilityPaginationMeta,
|
|
7
7
|
type LogsMeta,
|
|
8
|
+
type FuncListResponse,
|
|
8
9
|
type FuncRetrieveLogsResponse,
|
|
9
10
|
type FuncRetrieveMetricAggregatesResponse,
|
|
10
11
|
type FuncRetrieveRevisionsResponse,
|
|
@@ -12,4 +13,6 @@ export {
|
|
|
12
13
|
type FuncRetrieveLogsParams,
|
|
13
14
|
type FuncRetrieveMetricAggregatesParams,
|
|
14
15
|
type FuncRetrieveRevisionsParams,
|
|
16
|
+
type FuncListParams,
|
|
17
|
+
type FuncListResponsesDefaultFlatPagination,
|
|
15
18
|
} from './funcs';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Compute } from './compute';
|
|
3
|
+
export { Compute, type ComputeRetrieveResponse } from './compute';
|
|
4
4
|
export {
|
|
5
5
|
Funcs,
|
|
6
6
|
type FunctionsObservabilityPaginationMeta,
|
|
7
7
|
type LogsMeta,
|
|
8
|
+
type FuncListResponse,
|
|
8
9
|
type FuncRetrieveLogsResponse,
|
|
9
10
|
type FuncRetrieveMetricAggregatesResponse,
|
|
10
11
|
type FuncRetrieveRevisionsResponse,
|
|
@@ -12,4 +13,6 @@ export {
|
|
|
12
13
|
type FuncRetrieveLogsParams,
|
|
13
14
|
type FuncRetrieveMetricAggregatesParams,
|
|
14
15
|
type FuncRetrieveRevisionsParams,
|
|
16
|
+
type FuncListParams,
|
|
17
|
+
type FuncListResponsesDefaultFlatPagination,
|
|
15
18
|
} from './funcs/index';
|
|
@@ -170,6 +170,17 @@ export interface CredentialConnection {
|
|
|
170
170
|
*/
|
|
171
171
|
android_push_credential_id?: string | null;
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
175
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
176
|
+
* hold. Defaults to false and returns the saved value. Only JSON true and false
|
|
177
|
+
* are accepted; null and non-boolean values are rejected. This preference is
|
|
178
|
+
* independent of default_on_hold_comfort_noise_enabled and does not modify that
|
|
179
|
+
* setting. This API provisions the preference; call-processing behavior is
|
|
180
|
+
* implemented separately.
|
|
181
|
+
*/
|
|
182
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
183
|
+
|
|
173
184
|
/**
|
|
174
185
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
175
186
|
*/
|
|
@@ -209,8 +220,8 @@ export interface CredentialConnection {
|
|
|
209
220
|
encode_contact_header_enabled?: boolean;
|
|
210
221
|
|
|
211
222
|
/**
|
|
212
|
-
* Enable use of SRTP for encryption.
|
|
213
|
-
* TLS.
|
|
223
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
224
|
+
* transport protocol is TLS.
|
|
214
225
|
*/
|
|
215
226
|
encrypted_media?: EncryptedMedia | null;
|
|
216
227
|
|
|
@@ -467,8 +478,8 @@ export interface CredentialOutbound {
|
|
|
467
478
|
export type DtmfType = 'RFC 2833' | 'Inband' | 'SIP INFO';
|
|
468
479
|
|
|
469
480
|
/**
|
|
470
|
-
* Enable use of SRTP for encryption.
|
|
471
|
-
* TLS.
|
|
481
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
482
|
+
* transport protocol is TLS.
|
|
472
483
|
*/
|
|
473
484
|
export type EncryptedMedia = 'SRTP' | null;
|
|
474
485
|
|
|
@@ -589,6 +600,17 @@ export interface CredentialConnectionCreateParams {
|
|
|
589
600
|
*/
|
|
590
601
|
android_push_credential_id?: string | null;
|
|
591
602
|
|
|
603
|
+
/**
|
|
604
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
605
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
606
|
+
* hold. Optional; defaults to false when omitted on creation. Only JSON true and
|
|
607
|
+
* false are accepted; null and non-boolean values are rejected. This preference is
|
|
608
|
+
* independent of default_on_hold_comfort_noise_enabled and does not modify that
|
|
609
|
+
* setting. This API provisions the preference; call-processing behavior is
|
|
610
|
+
* implemented separately.
|
|
611
|
+
*/
|
|
612
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
613
|
+
|
|
592
614
|
/**
|
|
593
615
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
594
616
|
*/
|
|
@@ -614,8 +636,8 @@ export interface CredentialConnectionCreateParams {
|
|
|
614
636
|
encode_contact_header_enabled?: boolean;
|
|
615
637
|
|
|
616
638
|
/**
|
|
617
|
-
* Enable use of SRTP for encryption.
|
|
618
|
-
* TLS.
|
|
639
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
640
|
+
* transport protocol is TLS.
|
|
619
641
|
*/
|
|
620
642
|
encrypted_media?: EncryptedMedia | null;
|
|
621
643
|
|
|
@@ -719,6 +741,17 @@ export interface CredentialConnectionUpdateParams {
|
|
|
719
741
|
*/
|
|
720
742
|
android_push_credential_id?: string | null;
|
|
721
743
|
|
|
744
|
+
/**
|
|
745
|
+
* Stores the connection preference for generating silent RTP toward the opposite
|
|
746
|
+
* call leg when comfort-noise packets (CN, payload type 13) are received during
|
|
747
|
+
* hold. Optional; omitting this field preserves the saved value. Only JSON true
|
|
748
|
+
* and false are accepted; null and non-boolean values are rejected. This
|
|
749
|
+
* preference is independent of default_on_hold_comfort_noise_enabled and does not
|
|
750
|
+
* modify that setting. This API provisions the preference; call-processing
|
|
751
|
+
* behavior is implemented separately.
|
|
752
|
+
*/
|
|
753
|
+
bridge_generate_comfort_noise_on_cn?: boolean;
|
|
754
|
+
|
|
722
755
|
/**
|
|
723
756
|
* Specifies if call cost webhooks should be sent for this connection.
|
|
724
757
|
*/
|
|
@@ -756,8 +789,8 @@ export interface CredentialConnectionUpdateParams {
|
|
|
756
789
|
encode_contact_header_enabled?: boolean;
|
|
757
790
|
|
|
758
791
|
/**
|
|
759
|
-
* Enable use of SRTP for encryption.
|
|
760
|
-
* TLS.
|
|
792
|
+
* Enable use of SRTP for encryption. Can only be set when the SIP signaling
|
|
793
|
+
* transport protocol is TLS.
|
|
761
794
|
*/
|
|
762
795
|
encrypted_media?: EncryptedMedia | null;
|
|
763
796
|
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { CloudfsCursorPagination, type CloudfsCursorPaginationParams, PagePromise } from '../core/pagination';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Call information
|
|
9
|
+
*/
|
|
10
|
+
export class DialMetrics extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns dials-per-second (DPS) metrics for your account's outbound dials made
|
|
13
|
+
* with the Call Control `Dial` command and TeXML, as time buckets with dial
|
|
14
|
+
* counts, accepted and rejected dials, average and peak DPS, and the DPS limit in
|
|
15
|
+
* force.
|
|
16
|
+
*
|
|
17
|
+
* The result has one record per region per bucket, ordered by `start_time` and
|
|
18
|
+
* then `region`, newest first unless `sort=start_time`. Regions are never summed:
|
|
19
|
+
* the DPS limit is enforced per region, so a cross-region total cannot be compared
|
|
20
|
+
* with it.
|
|
21
|
+
*
|
|
22
|
+
* Only buckets that saw dials are returned. Treat a missing bucket as zero dials.
|
|
23
|
+
*
|
|
24
|
+
* Only complete 5-second windows are counted, and a window is counted about 15
|
|
25
|
+
* seconds after it closes. The newest `granularity=second` record is therefore
|
|
26
|
+
* your live DPS, about 20 seconds old. Request the last minute or two with
|
|
27
|
+
* `sort=-start_time`; the first record of each `region` is that region's live rate
|
|
28
|
+
* (`page[limit]=1` would hide every region but one). If no recent record exists,
|
|
29
|
+
* the live rate is zero.
|
|
30
|
+
*
|
|
31
|
+
* Results are cursor paginated. Follow `meta.next`, or pass `meta.cursors.after`
|
|
32
|
+
* as `page[after]`, until `meta.next` is absent. No total count is returned.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint is in development and can change before general availability.
|
|
35
|
+
*/
|
|
36
|
+
list(
|
|
37
|
+
query: DialMetricListParams,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): PagePromise<DialMetricListResponsesCloudfsCursorPagination, DialMetricListResponse> {
|
|
40
|
+
return this._client.getAPIList('/dial_metrics', CloudfsCursorPagination<DialMetricListResponse>, {
|
|
41
|
+
query,
|
|
42
|
+
...options,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type DialMetricListResponsesCloudfsCursorPagination = CloudfsCursorPagination<DialMetricListResponse>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Dial counts and rates for one region in one time bucket. One record per region
|
|
51
|
+
* per bucket.
|
|
52
|
+
*/
|
|
53
|
+
export interface DialMetricListResponse {
|
|
54
|
+
/**
|
|
55
|
+
* `dials.total` divided by the bucket duration in seconds, rounded to 4 decimal
|
|
56
|
+
* places. Counts every dial attempt, rejected ones included.
|
|
57
|
+
*/
|
|
58
|
+
average_dps?: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Dial attempt counts in the bucket.
|
|
62
|
+
*/
|
|
63
|
+
dials?: DialMetricListResponse.Dials;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* DPS limit in force during the busiest 5-second window, so it compares directly
|
|
67
|
+
* with `peak_dps`. `null` means unlimited. Enforcement near the limit is
|
|
68
|
+
* approximate; `dials.rejected.dps_limit` is the authoritative signal that the
|
|
69
|
+
* limit was reached.
|
|
70
|
+
*/
|
|
71
|
+
dps_limit?: number | null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* End of the bucket (exclusive), UTC. Five seconds, one minute or one hour after
|
|
75
|
+
* `start_time`, depending on `granularity`.
|
|
76
|
+
*/
|
|
77
|
+
end_time?: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Dials per second, rounded to 4 decimal places, in the busiest 5-second window of
|
|
81
|
+
* the bucket, summed across all call-processing nodes of the region. Counts every
|
|
82
|
+
* dial attempt, rejected ones included, so `peak_dps` above `dps_limit` is
|
|
83
|
+
* expected when dials were rejected. For `granularity=second` it equals
|
|
84
|
+
* `average_dps`.
|
|
85
|
+
*/
|
|
86
|
+
peak_dps?: number;
|
|
87
|
+
|
|
88
|
+
record_type?: 'dial_metric';
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Region where the dials were handled. Current values are `us`, `eu`, `australia`,
|
|
92
|
+
* `middle_east`, `canada` and `india`. New values can be added, so clients must
|
|
93
|
+
* tolerate values not listed here. Buckets of different regions are separate
|
|
94
|
+
* records.
|
|
95
|
+
*/
|
|
96
|
+
region?: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Start of the bucket (inclusive), UTC.
|
|
100
|
+
*/
|
|
101
|
+
start_time?: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace DialMetricListResponse {
|
|
105
|
+
/**
|
|
106
|
+
* Dial attempt counts in the bucket.
|
|
107
|
+
*/
|
|
108
|
+
export interface Dials {
|
|
109
|
+
/**
|
|
110
|
+
* Dial attempts that were not rejected by a limit.
|
|
111
|
+
*/
|
|
112
|
+
accepted?: number;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Dial attempts rejected by a limit.
|
|
116
|
+
*/
|
|
117
|
+
rejected?: Dials.Rejected;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* All dial attempts, rejected ones included: accepted plus every rejected count.
|
|
121
|
+
*/
|
|
122
|
+
total?: number;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export namespace Dials {
|
|
126
|
+
/**
|
|
127
|
+
* Dial attempts rejected by a limit.
|
|
128
|
+
*/
|
|
129
|
+
export interface Rejected {
|
|
130
|
+
/**
|
|
131
|
+
* Rejected by a daily limit.
|
|
132
|
+
*/
|
|
133
|
+
daily_limit?: number;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Rejected by the dials-per-second limit.
|
|
137
|
+
*/
|
|
138
|
+
dps_limit?: number;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Rejected by an hourly limit.
|
|
142
|
+
*/
|
|
143
|
+
hourly_limit?: number;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface DialMetricListParams extends CloudfsCursorPaginationParams {
|
|
149
|
+
/**
|
|
150
|
+
* Exclusive end of the range, ISO 8601. Must be after `start_time`. Buckets that
|
|
151
|
+
* start before this time are returned.
|
|
152
|
+
*/
|
|
153
|
+
end_time: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Bucket size. `second` returns 5-second buckets (the finest resolution) and is
|
|
157
|
+
* kept for the last 48 hours. `minute` and `hour` are kept for the last 30 days.
|
|
158
|
+
*/
|
|
159
|
+
granularity: 'second' | 'minute' | 'hour';
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Inclusive start of the range, ISO 8601 (for example `2026-09-29T12:00:00.000Z`).
|
|
163
|
+
* Buckets that start at or after this time are returned. A `start_time` older than
|
|
164
|
+
* the retention window of the chosen `granularity` is moved forward to the start
|
|
165
|
+
* of that window, and `meta.start_time` returns the start actually used.
|
|
166
|
+
*/
|
|
167
|
+
start_time: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Sort order of the buckets by `start_time`. `-start_time` (default) returns the
|
|
171
|
+
* newest first, `start_time` the oldest first. `region` follows the same direction
|
|
172
|
+
* for buckets with the same `start_time`. To read the live rate, use
|
|
173
|
+
* `granularity=second` and `sort=-start_time`, then take the first record of each
|
|
174
|
+
* `region`.
|
|
175
|
+
*/
|
|
176
|
+
sort?: '-start_time' | 'start_time';
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export declare namespace DialMetrics {
|
|
180
|
+
export {
|
|
181
|
+
type DialMetricListResponse as DialMetricListResponse,
|
|
182
|
+
type DialMetricListResponsesCloudfsCursorPagination as DialMetricListResponsesCloudfsCursorPagination,
|
|
183
|
+
type DialMetricListParams as DialMetricListParams,
|
|
184
|
+
};
|
|
185
|
+
}
|
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
|
*
|