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
|
@@ -21,7 +21,7 @@ export declare class Messages extends APIResource {
|
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
send(
|
|
24
|
+
send(params: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* Queues an outbound SMS or MMS using a long-code sender. Delivery progress and
|
|
27
27
|
* final disposition are reported asynchronously through messaging webhooks.
|
|
@@ -34,7 +34,7 @@ export declare class Messages extends APIResource {
|
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
sendLongCode(
|
|
37
|
+
sendLongCode(params: MessageSendLongCodeParams, options?: RequestOptions): APIPromise<MessageSendLongCodeResponse>;
|
|
38
38
|
/**
|
|
39
39
|
* Queues an outbound message using a number pool. Telnyx selects an eligible
|
|
40
40
|
* sender from the pool according to its messaging profile configuration.
|
|
@@ -48,7 +48,7 @@ export declare class Messages extends APIResource {
|
|
|
48
48
|
* });
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
sendNumberPool(
|
|
51
|
+
sendNumberPool(params: MessageSendNumberPoolParams, options?: RequestOptions): APIPromise<MessageSendNumberPoolResponse>;
|
|
52
52
|
/**
|
|
53
53
|
* Queues an outbound SMS or MMS using a short-code sender. Delivery progress and
|
|
54
54
|
* final disposition are reported asynchronously through messaging webhooks.
|
|
@@ -61,7 +61,7 @@ export declare class Messages extends APIResource {
|
|
|
61
61
|
* });
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
sendShortCode(
|
|
64
|
+
sendShortCode(params: MessageSendShortCodeParams, options?: RequestOptions): APIPromise<MessageSendShortCodeResponse>;
|
|
65
65
|
/**
|
|
66
66
|
* Queues an MMS addressed to multiple recipients as a group conversation. Delivery
|
|
67
67
|
* events are reported asynchronously through messaging webhooks.
|
|
@@ -74,7 +74,7 @@ export declare class Messages extends APIResource {
|
|
|
74
74
|
* });
|
|
75
75
|
* ```
|
|
76
76
|
*/
|
|
77
|
-
sendGroupMms(
|
|
77
|
+
sendGroupMms(params: MessageSendGroupMmsParams, options?: RequestOptions): APIPromise<MessageSendGroupMmsResponse>;
|
|
78
78
|
/**
|
|
79
79
|
* Schedule a message with a Phone Number, Alphanumeric Sender ID, Short Code or
|
|
80
80
|
* Number Pool.
|
|
@@ -132,7 +132,7 @@ export declare class Messages extends APIResource {
|
|
|
132
132
|
* });
|
|
133
133
|
* ```
|
|
134
134
|
*/
|
|
135
|
-
sendWithAlphanumericSender(
|
|
135
|
+
sendWithAlphanumericSender(params: MessageSendWithAlphanumericSenderParams, options?: RequestOptions): APIPromise<MessageSendWithAlphanumericSenderResponse>;
|
|
136
136
|
/**
|
|
137
137
|
* Retrieve all messages in a group MMS conversation by the group message ID.
|
|
138
138
|
*
|
|
@@ -160,7 +160,7 @@ export declare class Messages extends APIResource {
|
|
|
160
160
|
* });
|
|
161
161
|
* ```
|
|
162
162
|
*/
|
|
163
|
-
whatsapp(
|
|
163
|
+
whatsapp(params: MessageWhatsappParams, options?: RequestOptions): APIPromise<MessageWhatsappResponse>;
|
|
164
164
|
}
|
|
165
165
|
export interface MessagingError0b38e7044b {
|
|
166
166
|
code: string;
|
|
@@ -323,9 +323,16 @@ export declare namespace MessagingInboundMessagePayload {
|
|
|
323
323
|
*/
|
|
324
324
|
foreign_id?: string;
|
|
325
325
|
/**
|
|
326
|
-
* WhatsApp sender in E.164 format.
|
|
326
|
+
* WhatsApp sender in E.164 format. Empty when the user hides their phone number;
|
|
327
|
+
* `from_user_id` then identifies the sender.
|
|
327
328
|
*/
|
|
328
329
|
from?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Business-scoped user ID (BSUID) of the WhatsApp sender when Meta provides one,
|
|
332
|
+
* for example `US.13491208655302741918`. When `from` is empty, pass this value as
|
|
333
|
+
* `to` to reply.
|
|
334
|
+
*/
|
|
335
|
+
from_user_id?: string;
|
|
329
336
|
/**
|
|
330
337
|
* Location shared in an RCS message.
|
|
331
338
|
*/
|
|
@@ -542,7 +549,8 @@ export interface MessagingOutboundMessagePayload {
|
|
|
542
549
|
*/
|
|
543
550
|
id?: string;
|
|
544
551
|
/**
|
|
545
|
-
* RCS
|
|
552
|
+
* Message body for RCS and WhatsApp. RCS text messages use the text property.
|
|
553
|
+
* WhatsApp messages contain the `whatsapp_message` object from the send request.
|
|
546
554
|
*/
|
|
547
555
|
body?: MessagingOutboundMessagePayload.Body;
|
|
548
556
|
cc?: Array<MessagingOutboundMessagePayload.Cc>;
|
|
@@ -626,6 +634,15 @@ export interface MessagingOutboundMessagePayload {
|
|
|
626
634
|
* The registration status of the TCR campaign.
|
|
627
635
|
*/
|
|
628
636
|
tcr_campaign_registered?: string | null;
|
|
637
|
+
/**
|
|
638
|
+
* Telnyx ID of the WhatsApp template used by the message, when known.
|
|
639
|
+
*/
|
|
640
|
+
template_id?: string;
|
|
641
|
+
/**
|
|
642
|
+
* Name of the WhatsApp template used by the message. Present for WhatsApp template
|
|
643
|
+
* messages.
|
|
644
|
+
*/
|
|
645
|
+
template_name?: string;
|
|
629
646
|
/**
|
|
630
647
|
* Message body (i.e., content) as a non-empty string.
|
|
631
648
|
*
|
|
@@ -636,7 +653,7 @@ export interface MessagingOutboundMessagePayload {
|
|
|
636
653
|
/**
|
|
637
654
|
* The type of message.
|
|
638
655
|
*/
|
|
639
|
-
type?: 'SMS' | 'MMS' | 'RCS';
|
|
656
|
+
type?: 'SMS' | 'MMS' | 'RCS' | 'WHATSAPP';
|
|
640
657
|
/**
|
|
641
658
|
* Message must be out of the queue by this time or else it will be discarded and
|
|
642
659
|
* marked as 'sending_failed'. Once the message moves out of the queue, this field
|
|
@@ -661,13 +678,15 @@ export interface MessagingOutboundMessagePayload {
|
|
|
661
678
|
}
|
|
662
679
|
export declare namespace MessagingOutboundMessagePayload {
|
|
663
680
|
/**
|
|
664
|
-
* RCS
|
|
681
|
+
* Message body for RCS and WhatsApp. RCS text messages use the text property.
|
|
682
|
+
* WhatsApp messages contain the `whatsapp_message` object from the send request.
|
|
665
683
|
*/
|
|
666
684
|
interface Body {
|
|
667
685
|
/**
|
|
668
686
|
* RCS text message.
|
|
669
687
|
*/
|
|
670
688
|
text?: string;
|
|
689
|
+
[k: string]: unknown;
|
|
671
690
|
}
|
|
672
691
|
interface Cc {
|
|
673
692
|
/**
|
|
@@ -789,7 +808,8 @@ export interface OutboundMessagePayload {
|
|
|
789
808
|
*/
|
|
790
809
|
id?: string;
|
|
791
810
|
/**
|
|
792
|
-
* RCS
|
|
811
|
+
* Message body for RCS and WhatsApp. RCS text messages use the text property.
|
|
812
|
+
* WhatsApp messages contain the `whatsapp_message` object from the send request.
|
|
793
813
|
*/
|
|
794
814
|
body?: OutboundMessagePayload.Body;
|
|
795
815
|
cc?: Array<OutboundMessagePayload.Cc>;
|
|
@@ -873,6 +893,15 @@ export interface OutboundMessagePayload {
|
|
|
873
893
|
* The registration status of the TCR campaign.
|
|
874
894
|
*/
|
|
875
895
|
tcr_campaign_registered?: string | null;
|
|
896
|
+
/**
|
|
897
|
+
* Telnyx ID of the WhatsApp template used by the message, when known.
|
|
898
|
+
*/
|
|
899
|
+
template_id?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Name of the WhatsApp template used by the message. Present for WhatsApp template
|
|
902
|
+
* messages.
|
|
903
|
+
*/
|
|
904
|
+
template_name?: string;
|
|
876
905
|
/**
|
|
877
906
|
* Message body (i.e., content) as a non-empty string.
|
|
878
907
|
*
|
|
@@ -883,7 +912,7 @@ export interface OutboundMessagePayload {
|
|
|
883
912
|
/**
|
|
884
913
|
* The type of message.
|
|
885
914
|
*/
|
|
886
|
-
type?: 'SMS' | 'MMS' | 'RCS';
|
|
915
|
+
type?: 'SMS' | 'MMS' | 'RCS' | 'WHATSAPP';
|
|
887
916
|
/**
|
|
888
917
|
* Message must be out of the queue by this time or else it will be discarded and
|
|
889
918
|
* marked as 'sending_failed'. Once the message moves out of the queue, this field
|
|
@@ -908,13 +937,15 @@ export interface OutboundMessagePayload {
|
|
|
908
937
|
}
|
|
909
938
|
export declare namespace OutboundMessagePayload {
|
|
910
939
|
/**
|
|
911
|
-
* RCS
|
|
940
|
+
* Message body for RCS and WhatsApp. RCS text messages use the text property.
|
|
941
|
+
* WhatsApp messages contain the `whatsapp_message` object from the send request.
|
|
912
942
|
*/
|
|
913
943
|
interface Body {
|
|
914
944
|
/**
|
|
915
945
|
* RCS text message.
|
|
916
946
|
*/
|
|
917
947
|
text?: string;
|
|
948
|
+
[k: string]: unknown;
|
|
918
949
|
}
|
|
919
950
|
interface Cc {
|
|
920
951
|
/**
|
|
@@ -1875,287 +1906,342 @@ export declare namespace MessageWhatsappResponse {
|
|
|
1875
1906
|
}
|
|
1876
1907
|
export interface MessageSendParams {
|
|
1877
1908
|
/**
|
|
1878
|
-
* Receiving address (+E.164 formatted phone number or short code).
|
|
1909
|
+
* Body param: Receiving address (+E.164 formatted phone number or short code).
|
|
1879
1910
|
*/
|
|
1880
1911
|
to: string;
|
|
1881
1912
|
/**
|
|
1882
|
-
* Automatically detect if an SMS message is unusually long and exceeds
|
|
1883
|
-
* recommended limit of message parts.
|
|
1913
|
+
* Body param: Automatically detect if an SMS message is unusually long and exceeds
|
|
1914
|
+
* a recommended limit of message parts.
|
|
1884
1915
|
*/
|
|
1885
1916
|
auto_detect?: boolean;
|
|
1886
1917
|
/**
|
|
1887
|
-
* Encoding to use for the message. `auto` (default) uses smart
|
|
1888
|
-
* automatically select the most efficient encoding. `gsm7` forces
|
|
1889
|
-
* (returns 400 if message contains characters that cannot be
|
|
1890
|
-
* forces UCS-2 encoding and disables smart encoding. When set,
|
|
1891
|
-
* messaging profile's `smart_encoding` setting.
|
|
1918
|
+
* Body param: Encoding to use for the message. `auto` (default) uses smart
|
|
1919
|
+
* encoding to automatically select the most efficient encoding. `gsm7` forces
|
|
1920
|
+
* GSM-7 encoding (returns 400 if message contains characters that cannot be
|
|
1921
|
+
* encoded). `ucs2` forces UCS-2 encoding and disables smart encoding. When set,
|
|
1922
|
+
* this overrides the messaging profile's `smart_encoding` setting.
|
|
1892
1923
|
*/
|
|
1893
1924
|
encoding?: 'auto' | 'gsm7' | 'ucs2';
|
|
1894
1925
|
/**
|
|
1895
|
-
* Sending address (+E.164 formatted phone number, alphanumeric sender
|
|
1896
|
-
* code).
|
|
1926
|
+
* Body param: Sending address (+E.164 formatted phone number, alphanumeric sender
|
|
1927
|
+
* ID, or short code).
|
|
1897
1928
|
*
|
|
1898
1929
|
* **Required if sending with a phone number, short code, or alphanumeric sender
|
|
1899
1930
|
* ID.**
|
|
1900
1931
|
*/
|
|
1901
1932
|
from?: string;
|
|
1902
1933
|
/**
|
|
1903
|
-
* A list of media URLs. The total media size must be less than 1 MB.
|
|
1934
|
+
* Body param: A list of media URLs. The total media size must be less than 1 MB.
|
|
1904
1935
|
*
|
|
1905
1936
|
* **Required for MMS**
|
|
1906
1937
|
*/
|
|
1907
1938
|
media_urls?: Array<string>;
|
|
1908
1939
|
/**
|
|
1909
|
-
* Unique identifier for a messaging profile.
|
|
1940
|
+
* Body param: Unique identifier for a messaging profile.
|
|
1910
1941
|
*
|
|
1911
1942
|
* **Required if sending via number pool or with an alphanumeric sender ID.**
|
|
1912
1943
|
*/
|
|
1913
1944
|
messaging_profile_id?: string;
|
|
1914
1945
|
/**
|
|
1915
|
-
* ISO 8601 formatted date indicating when to send the message -
|
|
1916
|
-
* minute.
|
|
1946
|
+
* Body param: ISO 8601 formatted date indicating when to send the message -
|
|
1947
|
+
* accurate up till a minute.
|
|
1917
1948
|
*/
|
|
1918
1949
|
send_at?: string | null;
|
|
1919
1950
|
/**
|
|
1920
|
-
* Subject of multimedia message
|
|
1951
|
+
* Body param: Subject of multimedia message
|
|
1921
1952
|
*/
|
|
1922
1953
|
subject?: string;
|
|
1923
1954
|
/**
|
|
1924
|
-
* Message body (i.e., content) as a non-empty string.
|
|
1955
|
+
* Body param: Message body (i.e., content) as a non-empty string.
|
|
1925
1956
|
*
|
|
1926
1957
|
* **Required for SMS**
|
|
1927
1958
|
*/
|
|
1928
1959
|
text?: string;
|
|
1929
1960
|
/**
|
|
1930
|
-
* The protocol for sending the message, either SMS or MMS.
|
|
1961
|
+
* Body param: The protocol for sending the message, either SMS or MMS.
|
|
1931
1962
|
*/
|
|
1932
1963
|
type?: 'SMS' | 'MMS';
|
|
1933
1964
|
/**
|
|
1934
|
-
* If the profile this number is associated with has webhooks, use them
|
|
1935
|
-
* delivery notifications. If webhooks are also specified on the message
|
|
1936
|
-
* they will be attempted first, then those on the profile.
|
|
1965
|
+
* Body param: If the profile this number is associated with has webhooks, use them
|
|
1966
|
+
* for delivery notifications. If webhooks are also specified on the message
|
|
1967
|
+
* itself, they will be attempted first, then those on the profile.
|
|
1937
1968
|
*/
|
|
1938
1969
|
use_profile_webhooks?: boolean;
|
|
1939
1970
|
/**
|
|
1940
|
-
* The failover URL where webhooks related to this message will be sent
|
|
1941
|
-
* to the primary URL fails.
|
|
1971
|
+
* Body param: The failover URL where webhooks related to this message will be sent
|
|
1972
|
+
* if sending to the primary URL fails.
|
|
1942
1973
|
*/
|
|
1943
1974
|
webhook_failover_url?: string;
|
|
1944
1975
|
/**
|
|
1945
|
-
* The URL where webhooks related to this message will be sent.
|
|
1976
|
+
* Body param: The URL where webhooks related to this message will be sent.
|
|
1946
1977
|
*/
|
|
1947
1978
|
webhook_url?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
1981
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
1982
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
1983
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
1984
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
1985
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
1986
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
1987
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
1988
|
+
*/
|
|
1989
|
+
'Idempotency-Key'?: string;
|
|
1948
1990
|
}
|
|
1949
1991
|
export interface MessageSendLongCodeParams {
|
|
1950
1992
|
/**
|
|
1951
|
-
* Phone number, in +E.164 format, used to send the message.
|
|
1993
|
+
* Body param: Phone number, in +E.164 format, used to send the message.
|
|
1952
1994
|
*/
|
|
1953
1995
|
from: string;
|
|
1954
1996
|
/**
|
|
1955
|
-
* Receiving address (+E.164 formatted phone number or short code).
|
|
1997
|
+
* Body param: Receiving address (+E.164 formatted phone number or short code).
|
|
1956
1998
|
*/
|
|
1957
1999
|
to: string;
|
|
1958
2000
|
/**
|
|
1959
|
-
* Automatically detect if an SMS message is unusually long and exceeds
|
|
1960
|
-
* recommended limit of message parts.
|
|
2001
|
+
* Body param: Automatically detect if an SMS message is unusually long and exceeds
|
|
2002
|
+
* a recommended limit of message parts.
|
|
1961
2003
|
*/
|
|
1962
2004
|
auto_detect?: boolean;
|
|
1963
2005
|
/**
|
|
1964
|
-
* Encoding to use for the message. `auto` (default) uses smart
|
|
1965
|
-
* automatically select the most efficient encoding. `gsm7` forces
|
|
1966
|
-
* (returns 400 if message contains characters that cannot be
|
|
1967
|
-
* forces UCS-2 encoding and disables smart encoding. When set,
|
|
1968
|
-
* messaging profile's `smart_encoding` setting.
|
|
2006
|
+
* Body param: Encoding to use for the message. `auto` (default) uses smart
|
|
2007
|
+
* encoding to automatically select the most efficient encoding. `gsm7` forces
|
|
2008
|
+
* GSM-7 encoding (returns 400 if message contains characters that cannot be
|
|
2009
|
+
* encoded). `ucs2` forces UCS-2 encoding and disables smart encoding. When set,
|
|
2010
|
+
* this overrides the messaging profile's `smart_encoding` setting.
|
|
1969
2011
|
*/
|
|
1970
2012
|
encoding?: 'auto' | 'gsm7' | 'ucs2';
|
|
1971
2013
|
/**
|
|
1972
|
-
* A list of media URLs. The total media size must be less than 1 MB.
|
|
2014
|
+
* Body param: A list of media URLs. The total media size must be less than 1 MB.
|
|
1973
2015
|
*
|
|
1974
2016
|
* **Required for MMS**
|
|
1975
2017
|
*/
|
|
1976
2018
|
media_urls?: Array<string>;
|
|
1977
2019
|
/**
|
|
1978
|
-
* Subject of multimedia message
|
|
2020
|
+
* Body param: Subject of multimedia message
|
|
1979
2021
|
*/
|
|
1980
2022
|
subject?: string;
|
|
1981
2023
|
/**
|
|
1982
|
-
* Message body (i.e., content) as a non-empty string.
|
|
2024
|
+
* Body param: Message body (i.e., content) as a non-empty string.
|
|
1983
2025
|
*
|
|
1984
2026
|
* **Required for SMS**
|
|
1985
2027
|
*/
|
|
1986
2028
|
text?: string;
|
|
1987
2029
|
/**
|
|
1988
|
-
* The protocol for sending the message, either SMS or MMS.
|
|
2030
|
+
* Body param: The protocol for sending the message, either SMS or MMS.
|
|
1989
2031
|
*/
|
|
1990
2032
|
type?: 'SMS' | 'MMS';
|
|
1991
2033
|
/**
|
|
1992
|
-
* If the profile this number is associated with has webhooks, use them
|
|
1993
|
-
* delivery notifications. If webhooks are also specified on the message
|
|
1994
|
-
* they will be attempted first, then those on the profile.
|
|
2034
|
+
* Body param: If the profile this number is associated with has webhooks, use them
|
|
2035
|
+
* for delivery notifications. If webhooks are also specified on the message
|
|
2036
|
+
* itself, they will be attempted first, then those on the profile.
|
|
1995
2037
|
*/
|
|
1996
2038
|
use_profile_webhooks?: boolean;
|
|
1997
2039
|
/**
|
|
1998
|
-
* The failover URL where webhooks related to this message will be sent
|
|
1999
|
-
* to the primary URL fails.
|
|
2040
|
+
* Body param: The failover URL where webhooks related to this message will be sent
|
|
2041
|
+
* if sending to the primary URL fails.
|
|
2000
2042
|
*/
|
|
2001
2043
|
webhook_failover_url?: string;
|
|
2002
2044
|
/**
|
|
2003
|
-
* The URL where webhooks related to this message will be sent.
|
|
2045
|
+
* Body param: The URL where webhooks related to this message will be sent.
|
|
2004
2046
|
*/
|
|
2005
2047
|
webhook_url?: string;
|
|
2048
|
+
/**
|
|
2049
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
2050
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
2051
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
2052
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
2053
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
2054
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
2055
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
2056
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
2057
|
+
*/
|
|
2058
|
+
'Idempotency-Key'?: string;
|
|
2006
2059
|
}
|
|
2007
2060
|
export interface MessageSendNumberPoolParams {
|
|
2008
2061
|
/**
|
|
2009
|
-
* Unique identifier for a messaging profile.
|
|
2062
|
+
* Body param: Unique identifier for a messaging profile.
|
|
2010
2063
|
*/
|
|
2011
2064
|
messaging_profile_id: string;
|
|
2012
2065
|
/**
|
|
2013
|
-
* Receiving address (+E.164 formatted phone number or short code).
|
|
2066
|
+
* Body param: Receiving address (+E.164 formatted phone number or short code).
|
|
2014
2067
|
*/
|
|
2015
2068
|
to: string;
|
|
2016
2069
|
/**
|
|
2017
|
-
* Automatically detect if an SMS message is unusually long and exceeds
|
|
2018
|
-
* recommended limit of message parts.
|
|
2070
|
+
* Body param: Automatically detect if an SMS message is unusually long and exceeds
|
|
2071
|
+
* a recommended limit of message parts.
|
|
2019
2072
|
*/
|
|
2020
2073
|
auto_detect?: boolean;
|
|
2021
2074
|
/**
|
|
2022
|
-
* Encoding to use for the message. `auto` (default) uses smart
|
|
2023
|
-
* automatically select the most efficient encoding. `gsm7` forces
|
|
2024
|
-
* (returns 400 if message contains characters that cannot be
|
|
2025
|
-
* forces UCS-2 encoding and disables smart encoding. When set,
|
|
2026
|
-
* messaging profile's `smart_encoding` setting.
|
|
2075
|
+
* Body param: Encoding to use for the message. `auto` (default) uses smart
|
|
2076
|
+
* encoding to automatically select the most efficient encoding. `gsm7` forces
|
|
2077
|
+
* GSM-7 encoding (returns 400 if message contains characters that cannot be
|
|
2078
|
+
* encoded). `ucs2` forces UCS-2 encoding and disables smart encoding. When set,
|
|
2079
|
+
* this overrides the messaging profile's `smart_encoding` setting.
|
|
2027
2080
|
*/
|
|
2028
2081
|
encoding?: 'auto' | 'gsm7' | 'ucs2';
|
|
2029
2082
|
/**
|
|
2030
|
-
* A list of media URLs. The total media size must be less than 1 MB.
|
|
2083
|
+
* Body param: A list of media URLs. The total media size must be less than 1 MB.
|
|
2031
2084
|
*
|
|
2032
2085
|
* **Required for MMS**
|
|
2033
2086
|
*/
|
|
2034
2087
|
media_urls?: Array<string>;
|
|
2035
2088
|
/**
|
|
2036
|
-
* Subject of multimedia message
|
|
2089
|
+
* Body param: Subject of multimedia message
|
|
2037
2090
|
*/
|
|
2038
2091
|
subject?: string;
|
|
2039
2092
|
/**
|
|
2040
|
-
* Message body (i.e., content) as a non-empty string.
|
|
2093
|
+
* Body param: Message body (i.e., content) as a non-empty string.
|
|
2041
2094
|
*
|
|
2042
2095
|
* **Required for SMS**
|
|
2043
2096
|
*/
|
|
2044
2097
|
text?: string;
|
|
2045
2098
|
/**
|
|
2046
|
-
* The protocol for sending the message, either SMS or MMS.
|
|
2099
|
+
* Body param: The protocol for sending the message, either SMS or MMS.
|
|
2047
2100
|
*/
|
|
2048
2101
|
type?: 'SMS' | 'MMS';
|
|
2049
2102
|
/**
|
|
2050
|
-
* If the profile this number is associated with has webhooks, use them
|
|
2051
|
-
* delivery notifications. If webhooks are also specified on the message
|
|
2052
|
-
* they will be attempted first, then those on the profile.
|
|
2103
|
+
* Body param: If the profile this number is associated with has webhooks, use them
|
|
2104
|
+
* for delivery notifications. If webhooks are also specified on the message
|
|
2105
|
+
* itself, they will be attempted first, then those on the profile.
|
|
2053
2106
|
*/
|
|
2054
2107
|
use_profile_webhooks?: boolean;
|
|
2055
2108
|
/**
|
|
2056
|
-
* The failover URL where webhooks related to this message will be sent
|
|
2057
|
-
* to the primary URL fails.
|
|
2109
|
+
* Body param: The failover URL where webhooks related to this message will be sent
|
|
2110
|
+
* if sending to the primary URL fails.
|
|
2058
2111
|
*/
|
|
2059
2112
|
webhook_failover_url?: string;
|
|
2060
2113
|
/**
|
|
2061
|
-
* The URL where webhooks related to this message will be sent.
|
|
2114
|
+
* Body param: The URL where webhooks related to this message will be sent.
|
|
2062
2115
|
*/
|
|
2063
2116
|
webhook_url?: string;
|
|
2117
|
+
/**
|
|
2118
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
2119
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
2120
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
2121
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
2122
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
2123
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
2124
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
2125
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
2126
|
+
*/
|
|
2127
|
+
'Idempotency-Key'?: string;
|
|
2064
2128
|
}
|
|
2065
2129
|
export interface MessageSendShortCodeParams {
|
|
2066
2130
|
/**
|
|
2067
|
-
* Phone number, in +E.164 format, used to send the message.
|
|
2131
|
+
* Body param: Phone number, in +E.164 format, used to send the message.
|
|
2068
2132
|
*/
|
|
2069
2133
|
from: string;
|
|
2070
2134
|
/**
|
|
2071
|
-
* Receiving address (+E.164 formatted phone number or short code).
|
|
2135
|
+
* Body param: Receiving address (+E.164 formatted phone number or short code).
|
|
2072
2136
|
*/
|
|
2073
2137
|
to: string;
|
|
2074
2138
|
/**
|
|
2075
|
-
* Automatically detect if an SMS message is unusually long and exceeds
|
|
2076
|
-
* recommended limit of message parts.
|
|
2139
|
+
* Body param: Automatically detect if an SMS message is unusually long and exceeds
|
|
2140
|
+
* a recommended limit of message parts.
|
|
2077
2141
|
*/
|
|
2078
2142
|
auto_detect?: boolean;
|
|
2079
2143
|
/**
|
|
2080
|
-
* Encoding to use for the message. `auto` (default) uses smart
|
|
2081
|
-
* automatically select the most efficient encoding. `gsm7` forces
|
|
2082
|
-
* (returns 400 if message contains characters that cannot be
|
|
2083
|
-
* forces UCS-2 encoding and disables smart encoding. When set,
|
|
2084
|
-
* messaging profile's `smart_encoding` setting.
|
|
2144
|
+
* Body param: Encoding to use for the message. `auto` (default) uses smart
|
|
2145
|
+
* encoding to automatically select the most efficient encoding. `gsm7` forces
|
|
2146
|
+
* GSM-7 encoding (returns 400 if message contains characters that cannot be
|
|
2147
|
+
* encoded). `ucs2` forces UCS-2 encoding and disables smart encoding. When set,
|
|
2148
|
+
* this overrides the messaging profile's `smart_encoding` setting.
|
|
2085
2149
|
*/
|
|
2086
2150
|
encoding?: 'auto' | 'gsm7' | 'ucs2';
|
|
2087
2151
|
/**
|
|
2088
|
-
* A list of media URLs. The total media size must be less than 1 MB.
|
|
2152
|
+
* Body param: A list of media URLs. The total media size must be less than 1 MB.
|
|
2089
2153
|
*
|
|
2090
2154
|
* **Required for MMS**
|
|
2091
2155
|
*/
|
|
2092
2156
|
media_urls?: Array<string>;
|
|
2093
2157
|
/**
|
|
2094
|
-
* Subject of multimedia message
|
|
2158
|
+
* Body param: Subject of multimedia message
|
|
2095
2159
|
*/
|
|
2096
2160
|
subject?: string;
|
|
2097
2161
|
/**
|
|
2098
|
-
* Message body (i.e., content) as a non-empty string.
|
|
2162
|
+
* Body param: Message body (i.e., content) as a non-empty string.
|
|
2099
2163
|
*
|
|
2100
2164
|
* **Required for SMS**
|
|
2101
2165
|
*/
|
|
2102
2166
|
text?: string;
|
|
2103
2167
|
/**
|
|
2104
|
-
* The protocol for sending the message, either SMS or MMS.
|
|
2168
|
+
* Body param: The protocol for sending the message, either SMS or MMS.
|
|
2105
2169
|
*/
|
|
2106
2170
|
type?: 'SMS' | 'MMS';
|
|
2107
2171
|
/**
|
|
2108
|
-
* If the profile this number is associated with has webhooks, use them
|
|
2109
|
-
* delivery notifications. If webhooks are also specified on the message
|
|
2110
|
-
* they will be attempted first, then those on the profile.
|
|
2172
|
+
* Body param: If the profile this number is associated with has webhooks, use them
|
|
2173
|
+
* for delivery notifications. If webhooks are also specified on the message
|
|
2174
|
+
* itself, they will be attempted first, then those on the profile.
|
|
2111
2175
|
*/
|
|
2112
2176
|
use_profile_webhooks?: boolean;
|
|
2113
2177
|
/**
|
|
2114
|
-
* The failover URL where webhooks related to this message will be sent
|
|
2115
|
-
* to the primary URL fails.
|
|
2178
|
+
* Body param: The failover URL where webhooks related to this message will be sent
|
|
2179
|
+
* if sending to the primary URL fails.
|
|
2116
2180
|
*/
|
|
2117
2181
|
webhook_failover_url?: string;
|
|
2118
2182
|
/**
|
|
2119
|
-
* The URL where webhooks related to this message will be sent.
|
|
2183
|
+
* Body param: The URL where webhooks related to this message will be sent.
|
|
2120
2184
|
*/
|
|
2121
2185
|
webhook_url?: string;
|
|
2186
|
+
/**
|
|
2187
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
2188
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
2189
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
2190
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
2191
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
2192
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
2193
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
2194
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
2195
|
+
*/
|
|
2196
|
+
'Idempotency-Key'?: string;
|
|
2122
2197
|
}
|
|
2123
2198
|
export interface MessageSendGroupMmsParams {
|
|
2124
2199
|
/**
|
|
2125
|
-
* Phone number, in +E.164 format, used to send the message.
|
|
2200
|
+
* Body param: Phone number, in +E.164 format, used to send the message.
|
|
2126
2201
|
*/
|
|
2127
2202
|
from: string;
|
|
2128
2203
|
/**
|
|
2129
|
-
* A list of destinations. No more than 8 destinations are allowed.
|
|
2204
|
+
* Body param: A list of destinations. No more than 8 destinations are allowed.
|
|
2130
2205
|
*/
|
|
2131
2206
|
to: Array<string>;
|
|
2132
2207
|
/**
|
|
2133
|
-
* A list of media URLs. The total media size must be less than 1 MB.
|
|
2208
|
+
* Body param: A list of media URLs. The total media size must be less than 1 MB.
|
|
2134
2209
|
*/
|
|
2135
2210
|
media_urls?: Array<string>;
|
|
2136
2211
|
/**
|
|
2137
|
-
* Subject of multimedia message
|
|
2212
|
+
* Body param: Subject of multimedia message
|
|
2138
2213
|
*/
|
|
2139
2214
|
subject?: string;
|
|
2140
2215
|
/**
|
|
2141
|
-
* Message body (i.e., content) as a non-empty string.
|
|
2216
|
+
* Body param: Message body (i.e., content) as a non-empty string.
|
|
2142
2217
|
*/
|
|
2143
2218
|
text?: string;
|
|
2144
2219
|
/**
|
|
2145
|
-
* If the profile this number is associated with has webhooks, use them
|
|
2146
|
-
* delivery notifications. If webhooks are also specified on the message
|
|
2147
|
-
* they will be attempted first, then those on the profile.
|
|
2220
|
+
* Body param: If the profile this number is associated with has webhooks, use them
|
|
2221
|
+
* for delivery notifications. If webhooks are also specified on the message
|
|
2222
|
+
* itself, they will be attempted first, then those on the profile.
|
|
2148
2223
|
*/
|
|
2149
2224
|
use_profile_webhooks?: boolean;
|
|
2150
2225
|
/**
|
|
2151
|
-
* The failover URL where webhooks related to this message will be sent
|
|
2152
|
-
* to the primary URL fails.
|
|
2226
|
+
* Body param: The failover URL where webhooks related to this message will be sent
|
|
2227
|
+
* if sending to the primary URL fails.
|
|
2153
2228
|
*/
|
|
2154
2229
|
webhook_failover_url?: string;
|
|
2155
2230
|
/**
|
|
2156
|
-
* The URL where webhooks related to this message will be sent.
|
|
2231
|
+
* Body param: The URL where webhooks related to this message will be sent.
|
|
2157
2232
|
*/
|
|
2158
2233
|
webhook_url?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
2236
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
2237
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
2238
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
2239
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
2240
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
2241
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
2242
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
2243
|
+
*/
|
|
2244
|
+
'Idempotency-Key'?: string;
|
|
2159
2245
|
}
|
|
2160
2246
|
export interface MessageScheduleParams {
|
|
2161
2247
|
/**
|
|
@@ -2224,56 +2310,433 @@ export interface MessageScheduleParams {
|
|
|
2224
2310
|
}
|
|
2225
2311
|
export interface MessageSendWithAlphanumericSenderParams {
|
|
2226
2312
|
/**
|
|
2227
|
-
* A valid alphanumeric sender ID on the user's account.
|
|
2313
|
+
* Body param: A valid alphanumeric sender ID on the user's account.
|
|
2228
2314
|
*/
|
|
2229
2315
|
from: string;
|
|
2230
2316
|
/**
|
|
2231
|
-
* The messaging profile ID to use.
|
|
2317
|
+
* Body param: The messaging profile ID to use.
|
|
2232
2318
|
*/
|
|
2233
2319
|
messaging_profile_id: string;
|
|
2234
2320
|
/**
|
|
2235
|
-
* The message body.
|
|
2321
|
+
* Body param: The message body.
|
|
2236
2322
|
*/
|
|
2237
2323
|
text: string;
|
|
2238
2324
|
/**
|
|
2239
|
-
* Receiving address (+E.164 formatted phone number).
|
|
2325
|
+
* Body param: Receiving address (+E.164 formatted phone number).
|
|
2240
2326
|
*/
|
|
2241
2327
|
to: string;
|
|
2242
2328
|
/**
|
|
2243
|
-
* If true, use the messaging profile's webhook settings.
|
|
2329
|
+
* Body param: If true, use the messaging profile's webhook settings.
|
|
2244
2330
|
*/
|
|
2245
2331
|
use_profile_webhooks?: boolean;
|
|
2246
2332
|
/**
|
|
2247
|
-
* Failover callback URL for delivery status updates.
|
|
2333
|
+
* Body param: Failover callback URL for delivery status updates.
|
|
2248
2334
|
*/
|
|
2249
2335
|
webhook_failover_url?: string | null;
|
|
2250
2336
|
/**
|
|
2251
|
-
* Callback URL for delivery status updates.
|
|
2337
|
+
* Body param: Callback URL for delivery status updates.
|
|
2252
2338
|
*/
|
|
2253
2339
|
webhook_url?: string | null;
|
|
2340
|
+
/**
|
|
2341
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
2342
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
2343
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
2344
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
2345
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
2346
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
2347
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
2348
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
2349
|
+
*/
|
|
2350
|
+
'Idempotency-Key'?: string;
|
|
2254
2351
|
}
|
|
2255
2352
|
export interface MessageWhatsappParams {
|
|
2256
2353
|
/**
|
|
2257
|
-
* Phone number in +E.164 format associated with Whatsapp account
|
|
2354
|
+
* Body param: Phone number in +E.164 format associated with Whatsapp account
|
|
2258
2355
|
*/
|
|
2259
2356
|
from: string;
|
|
2260
2357
|
/**
|
|
2261
|
-
*
|
|
2358
|
+
* Body param: Recipient phone number in +E.164 format, or the business-scoped user
|
|
2359
|
+
* ID (BSUID) of a WhatsApp user who hides their phone number, for example
|
|
2360
|
+
* `US.13491208655302741918`. Authentication templates cannot be sent to a BSUID.
|
|
2262
2361
|
*/
|
|
2263
2362
|
to: string;
|
|
2264
|
-
whatsapp_message: WhatsappMessageContent;
|
|
2265
2363
|
/**
|
|
2266
|
-
*
|
|
2364
|
+
* Body param
|
|
2365
|
+
*/
|
|
2366
|
+
whatsapp_message: MessageWhatsappParams.WhatsappMessage;
|
|
2367
|
+
/**
|
|
2368
|
+
* Body param: Messaging profile ID - required if the 'from' number is not
|
|
2369
|
+
* SMS-enabled
|
|
2267
2370
|
*/
|
|
2268
2371
|
messaging_profile_id?: string;
|
|
2269
2372
|
/**
|
|
2270
|
-
* Message type - must be set to "WHATSAPP"
|
|
2373
|
+
* Body param: Message type - must be set to "WHATSAPP"
|
|
2271
2374
|
*/
|
|
2272
2375
|
type?: 'WHATSAPP';
|
|
2273
2376
|
/**
|
|
2274
|
-
* The URL where webhooks related to this message will be sent.
|
|
2377
|
+
* Body param: The URL where webhooks related to this message will be sent.
|
|
2275
2378
|
*/
|
|
2276
2379
|
webhook_url?: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* Header param: Optional opaque, unquoted key for safely retrying the same logical
|
|
2382
|
+
* request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
|
|
2383
|
+
* Generate a unique UUID v4 for each operation and reuse it only when retrying
|
|
2384
|
+
* that operation with the same request. Invalid headers—including duplicate,
|
|
2385
|
+
* empty, malformed, or overlong values—return 400 with error code 10015. A request
|
|
2386
|
+
* already in progress with the same key returns 409; reusing the key with a
|
|
2387
|
+
* different request returns 422. Only successful responses are replayed, for up to
|
|
2388
|
+
* 24 hours. Do not include sensitive data in the key.
|
|
2389
|
+
*/
|
|
2390
|
+
'Idempotency-Key'?: string;
|
|
2391
|
+
}
|
|
2392
|
+
export declare namespace MessageWhatsappParams {
|
|
2393
|
+
interface WhatsappMessage {
|
|
2394
|
+
audio?: MessagesAPI.WhatsappMedia;
|
|
2395
|
+
/**
|
|
2396
|
+
* custom data to return with status update
|
|
2397
|
+
*/
|
|
2398
|
+
biz_opaque_callback_data?: string;
|
|
2399
|
+
contacts?: Array<WhatsappMessage.Contact>;
|
|
2400
|
+
document?: MessagesAPI.WhatsappMedia;
|
|
2401
|
+
image?: MessagesAPI.WhatsappMedia;
|
|
2402
|
+
interactive?: WhatsappMessage.Interactive;
|
|
2403
|
+
location?: MessagesAPI.WhatsappLocation;
|
|
2404
|
+
reaction?: MessagesAPI.WhatsappReaction;
|
|
2405
|
+
sticker?: MessagesAPI.WhatsappMedia;
|
|
2406
|
+
/**
|
|
2407
|
+
* Template message object. Provide either template_id or name + language to
|
|
2408
|
+
* identify the template.
|
|
2409
|
+
*/
|
|
2410
|
+
template?: WhatsappMessage.Template;
|
|
2411
|
+
/**
|
|
2412
|
+
* Text message content. Can only be sent within a 24-hour customer service window.
|
|
2413
|
+
*/
|
|
2414
|
+
text?: WhatsappMessage.Text;
|
|
2415
|
+
type?: 'audio' | 'document' | 'image' | 'sticker' | 'video' | 'interactive' | 'location' | 'template' | 'reaction' | 'contacts' | 'text';
|
|
2416
|
+
video?: MessagesAPI.WhatsappMedia;
|
|
2417
|
+
}
|
|
2418
|
+
namespace WhatsappMessage {
|
|
2419
|
+
interface Contact {
|
|
2420
|
+
addresses?: Array<Contact.Address>;
|
|
2421
|
+
birthday?: string;
|
|
2422
|
+
emails?: Array<Contact.Email>;
|
|
2423
|
+
name?: Contact.Name;
|
|
2424
|
+
org?: Contact.Org;
|
|
2425
|
+
phones?: Array<Contact.Phone>;
|
|
2426
|
+
urls?: Array<Contact.URL>;
|
|
2427
|
+
}
|
|
2428
|
+
namespace Contact {
|
|
2429
|
+
interface Address {
|
|
2430
|
+
city?: string;
|
|
2431
|
+
country?: string;
|
|
2432
|
+
country_code?: string;
|
|
2433
|
+
state?: string;
|
|
2434
|
+
street?: string;
|
|
2435
|
+
type?: string;
|
|
2436
|
+
zip?: string;
|
|
2437
|
+
}
|
|
2438
|
+
interface Email {
|
|
2439
|
+
email?: string;
|
|
2440
|
+
type?: string;
|
|
2441
|
+
}
|
|
2442
|
+
interface Name {
|
|
2443
|
+
/**
|
|
2444
|
+
* contact's full name as displayed in the message
|
|
2445
|
+
*/
|
|
2446
|
+
formatted_name: string;
|
|
2447
|
+
first_name?: string;
|
|
2448
|
+
last_name?: string;
|
|
2449
|
+
middle_name?: string;
|
|
2450
|
+
prefix?: string;
|
|
2451
|
+
suffix?: string;
|
|
2452
|
+
}
|
|
2453
|
+
interface Org {
|
|
2454
|
+
company?: string;
|
|
2455
|
+
department?: string;
|
|
2456
|
+
title?: string;
|
|
2457
|
+
}
|
|
2458
|
+
interface Phone {
|
|
2459
|
+
phone?: string;
|
|
2460
|
+
type?: string;
|
|
2461
|
+
wa_id?: string;
|
|
2462
|
+
}
|
|
2463
|
+
interface URL {
|
|
2464
|
+
type?: string;
|
|
2465
|
+
url?: string;
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
interface Interactive {
|
|
2469
|
+
action?: Interactive.Action;
|
|
2470
|
+
body?: Interactive.Body;
|
|
2471
|
+
footer?: Interactive.Footer;
|
|
2472
|
+
header?: Interactive.Header;
|
|
2473
|
+
type?: 'cta_url' | 'list' | 'carousel' | 'button' | 'location_request_message' | 'flow';
|
|
2474
|
+
}
|
|
2475
|
+
namespace Interactive {
|
|
2476
|
+
interface Action {
|
|
2477
|
+
button?: string;
|
|
2478
|
+
buttons?: Array<Action.Button>;
|
|
2479
|
+
cards?: Array<Action.Card>;
|
|
2480
|
+
catalog_id?: string;
|
|
2481
|
+
mode?: string;
|
|
2482
|
+
name?: string;
|
|
2483
|
+
parameters?: Action.Parameters;
|
|
2484
|
+
product_retailer_id?: string;
|
|
2485
|
+
sections?: Array<Action.Section>;
|
|
2486
|
+
}
|
|
2487
|
+
namespace Action {
|
|
2488
|
+
interface Button {
|
|
2489
|
+
reply?: Button.Reply;
|
|
2490
|
+
type?: 'reply';
|
|
2491
|
+
}
|
|
2492
|
+
namespace Button {
|
|
2493
|
+
interface Reply {
|
|
2494
|
+
/**
|
|
2495
|
+
* unique identifier for each button, 256 character maximum
|
|
2496
|
+
*/
|
|
2497
|
+
id?: string;
|
|
2498
|
+
/**
|
|
2499
|
+
* button label, 20 character maximum
|
|
2500
|
+
*/
|
|
2501
|
+
title?: string;
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
interface Card {
|
|
2505
|
+
action?: Card.Action;
|
|
2506
|
+
body?: Card.Body;
|
|
2507
|
+
/**
|
|
2508
|
+
* unique index for each card (0-9)
|
|
2509
|
+
*/
|
|
2510
|
+
card_index?: number;
|
|
2511
|
+
header?: Card.Header;
|
|
2512
|
+
type?: 'cta_url';
|
|
2513
|
+
}
|
|
2514
|
+
namespace Card {
|
|
2515
|
+
interface Action {
|
|
2516
|
+
/**
|
|
2517
|
+
* the unique ID of the catalog
|
|
2518
|
+
*/
|
|
2519
|
+
catalog_id?: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* the unique retailer ID of the product
|
|
2522
|
+
*/
|
|
2523
|
+
product_retailer_id?: string;
|
|
2524
|
+
}
|
|
2525
|
+
interface Body {
|
|
2526
|
+
/**
|
|
2527
|
+
* 160 character maximum, up to 2 line breaks
|
|
2528
|
+
*/
|
|
2529
|
+
text?: string;
|
|
2530
|
+
}
|
|
2531
|
+
interface Header {
|
|
2532
|
+
image?: MessagesAPI.WhatsappMedia;
|
|
2533
|
+
type?: 'image' | 'video';
|
|
2534
|
+
video?: MessagesAPI.WhatsappMedia;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
interface Parameters {
|
|
2538
|
+
/**
|
|
2539
|
+
* button label text, 20 character maximum
|
|
2540
|
+
*/
|
|
2541
|
+
display_text?: string;
|
|
2542
|
+
/**
|
|
2543
|
+
* how the flow starts. navigate opens the screen in flow_action_payload;
|
|
2544
|
+
* data_exchange requests the first screen from the business's flow endpoint.
|
|
2545
|
+
* Defaults to navigate
|
|
2546
|
+
*/
|
|
2547
|
+
flow_action?: 'navigate' | 'data_exchange';
|
|
2548
|
+
/**
|
|
2549
|
+
* optional initial screen and data. When omitted, the flow opens on its first
|
|
2550
|
+
* entry screen. Must be omitted when flow_action is data_exchange
|
|
2551
|
+
*/
|
|
2552
|
+
flow_action_payload?: Parameters.FlowActionPayload;
|
|
2553
|
+
/**
|
|
2554
|
+
* text of the button that opens the flow, 1-20 characters, no emoji. Required for
|
|
2555
|
+
* flow messages
|
|
2556
|
+
*/
|
|
2557
|
+
flow_cta?: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* ID of the flow to open. Provide exactly one of flow_id or flow_name
|
|
2560
|
+
*/
|
|
2561
|
+
flow_id?: string;
|
|
2562
|
+
/**
|
|
2563
|
+
* flow message version, must be 3. Required for flow messages
|
|
2564
|
+
*/
|
|
2565
|
+
flow_message_version?: string;
|
|
2566
|
+
/**
|
|
2567
|
+
* name of the flow to open. Provide exactly one of flow_id or flow_name
|
|
2568
|
+
*/
|
|
2569
|
+
flow_name?: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* business-generated identifier for the flow session. Returned in the flow
|
|
2572
|
+
* response for correlation
|
|
2573
|
+
*/
|
|
2574
|
+
flow_token?: string;
|
|
2575
|
+
/**
|
|
2576
|
+
* use draft to test an unpublished flow. Defaults to published
|
|
2577
|
+
*/
|
|
2578
|
+
mode?: 'draft' | 'published';
|
|
2579
|
+
/**
|
|
2580
|
+
* button URL to load when tapped by the user
|
|
2581
|
+
*/
|
|
2582
|
+
url?: string;
|
|
2583
|
+
}
|
|
2584
|
+
namespace Parameters {
|
|
2585
|
+
/**
|
|
2586
|
+
* optional initial screen and data. When omitted, the flow opens on its first
|
|
2587
|
+
* entry screen. Must be omitted when flow_action is data_exchange
|
|
2588
|
+
*/
|
|
2589
|
+
interface FlowActionPayload {
|
|
2590
|
+
/**
|
|
2591
|
+
* input data for the first screen. Must be a non-empty object when provided
|
|
2592
|
+
*/
|
|
2593
|
+
data?: unknown;
|
|
2594
|
+
/**
|
|
2595
|
+
* ID of the first screen to show
|
|
2596
|
+
*/
|
|
2597
|
+
screen?: string;
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
interface Section {
|
|
2601
|
+
product_items?: Array<Section.ProductItem>;
|
|
2602
|
+
rows?: Array<Section.Row>;
|
|
2603
|
+
/**
|
|
2604
|
+
* section title, 24 character maximum
|
|
2605
|
+
*/
|
|
2606
|
+
title?: string;
|
|
2607
|
+
}
|
|
2608
|
+
namespace Section {
|
|
2609
|
+
interface ProductItem {
|
|
2610
|
+
product_retailer_id?: string;
|
|
2611
|
+
}
|
|
2612
|
+
interface Row {
|
|
2613
|
+
/**
|
|
2614
|
+
* arbitrary string identifying the row, 200 character maximum
|
|
2615
|
+
*/
|
|
2616
|
+
id?: string;
|
|
2617
|
+
/**
|
|
2618
|
+
* row description, 72 character maximum
|
|
2619
|
+
*/
|
|
2620
|
+
description?: string;
|
|
2621
|
+
/**
|
|
2622
|
+
* row title, 24 character maximum
|
|
2623
|
+
*/
|
|
2624
|
+
title?: string;
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
interface Body {
|
|
2629
|
+
/**
|
|
2630
|
+
* body text, 1024 character maximum
|
|
2631
|
+
*/
|
|
2632
|
+
text?: string;
|
|
2633
|
+
}
|
|
2634
|
+
interface Footer {
|
|
2635
|
+
/**
|
|
2636
|
+
* footer text, 60 character maximum
|
|
2637
|
+
*/
|
|
2638
|
+
text?: string;
|
|
2639
|
+
}
|
|
2640
|
+
interface Header {
|
|
2641
|
+
/**
|
|
2642
|
+
* header type. Required when a header is provided; the matching document, image,
|
|
2643
|
+
* text, or video field must be set
|
|
2644
|
+
*/
|
|
2645
|
+
type: 'document' | 'image' | 'text' | 'video';
|
|
2646
|
+
document?: MessagesAPI.WhatsappMedia;
|
|
2647
|
+
image?: MessagesAPI.WhatsappMedia;
|
|
2648
|
+
sub_text?: string;
|
|
2649
|
+
/**
|
|
2650
|
+
* header text, 60 character maximum
|
|
2651
|
+
*/
|
|
2652
|
+
text?: string;
|
|
2653
|
+
video?: MessagesAPI.WhatsappMedia;
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
/**
|
|
2657
|
+
* Template message object. Provide either template_id or name + language to
|
|
2658
|
+
* identify the template.
|
|
2659
|
+
*/
|
|
2660
|
+
interface Template {
|
|
2661
|
+
/**
|
|
2662
|
+
* Template parameter values for header, body, and button components.
|
|
2663
|
+
*/
|
|
2664
|
+
components?: Array<Template.Component>;
|
|
2665
|
+
/**
|
|
2666
|
+
* Template language. Required unless template_id is provided.
|
|
2667
|
+
*/
|
|
2668
|
+
language?: Template.Language;
|
|
2669
|
+
/**
|
|
2670
|
+
* Template name as registered with Meta. Required unless template_id is provided.
|
|
2671
|
+
*/
|
|
2672
|
+
name?: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* Telnyx template ID (the id field from template list/get responses). When
|
|
2675
|
+
* provided, name and language are resolved automatically.
|
|
2676
|
+
*/
|
|
2677
|
+
template_id?: string;
|
|
2678
|
+
}
|
|
2679
|
+
namespace Template {
|
|
2680
|
+
interface Component {
|
|
2681
|
+
/**
|
|
2682
|
+
* Button index (required for button components)
|
|
2683
|
+
*/
|
|
2684
|
+
index?: number;
|
|
2685
|
+
parameters?: Array<Component.Parameter>;
|
|
2686
|
+
sub_type?: 'quick_reply' | 'url' | 'flow';
|
|
2687
|
+
type?: 'header' | 'body' | 'button';
|
|
2688
|
+
}
|
|
2689
|
+
namespace Component {
|
|
2690
|
+
interface Parameter {
|
|
2691
|
+
/**
|
|
2692
|
+
* Flow button parameters. Used with type action on a flow button component
|
|
2693
|
+
*/
|
|
2694
|
+
action?: Parameter.Action;
|
|
2695
|
+
text?: string;
|
|
2696
|
+
type?: 'text' | 'image' | 'video' | 'document' | 'currency' | 'date_time' | 'action';
|
|
2697
|
+
}
|
|
2698
|
+
namespace Parameter {
|
|
2699
|
+
/**
|
|
2700
|
+
* Flow button parameters. Used with type action on a flow button component
|
|
2701
|
+
*/
|
|
2702
|
+
interface Action {
|
|
2703
|
+
/**
|
|
2704
|
+
* input data for the first screen of the flow
|
|
2705
|
+
*/
|
|
2706
|
+
flow_action_data?: unknown;
|
|
2707
|
+
/**
|
|
2708
|
+
* business-generated identifier for the flow session. Returned in the flow
|
|
2709
|
+
* response for correlation
|
|
2710
|
+
*/
|
|
2711
|
+
flow_token?: string;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
/**
|
|
2716
|
+
* Template language. Required unless template_id is provided.
|
|
2717
|
+
*/
|
|
2718
|
+
interface Language {
|
|
2719
|
+
/**
|
|
2720
|
+
* Language code (e.g. en_US)
|
|
2721
|
+
*/
|
|
2722
|
+
code: string;
|
|
2723
|
+
policy?: string;
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
/**
|
|
2727
|
+
* Text message content. Can only be sent within a 24-hour customer service window.
|
|
2728
|
+
*/
|
|
2729
|
+
interface Text {
|
|
2730
|
+
/**
|
|
2731
|
+
* The text message body.
|
|
2732
|
+
*/
|
|
2733
|
+
body: string;
|
|
2734
|
+
/**
|
|
2735
|
+
* Whether to show a URL preview in the message.
|
|
2736
|
+
*/
|
|
2737
|
+
preview_url?: boolean;
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2277
2740
|
}
|
|
2278
2741
|
export declare namespace Messages {
|
|
2279
2742
|
export { type MessagingError0b38e7044b as MessagingError0b38e7044b, type MessagingInboundMessagePayload as MessagingInboundMessagePayload, type MessagingOutboundMessagePayload as MessagingOutboundMessagePayload, type OutboundMessagePayload as OutboundMessagePayload, type RcsAgentMessage as RcsAgentMessage, type RcsCardContent as RcsCardContent, type RcsContentInfo as RcsContentInfo, type RcsSuggestion as RcsSuggestion, type RcsToItem as RcsToItem, type WhatsappContact as WhatsappContact, type WhatsappInteractive as WhatsappInteractive, type WhatsappLocation as WhatsappLocation, type WhatsappMedia as WhatsappMedia, type WhatsappMessageContent as WhatsappMessageContent, type WhatsappReaction as WhatsappReaction, type MessageRetrieveResponse as MessageRetrieveResponse, type MessageCancelScheduledResponse as MessageCancelScheduledResponse, type MessageRetrieveGroupMessagesResponse as MessageRetrieveGroupMessagesResponse, type MessageScheduleResponse as MessageScheduleResponse, type MessageSendResponse as MessageSendResponse, type MessageSendGroupMmsResponse as MessageSendGroupMmsResponse, type MessageSendLongCodeResponse as MessageSendLongCodeResponse, type MessageSendNumberPoolResponse as MessageSendNumberPoolResponse, type MessageSendShortCodeResponse as MessageSendShortCodeResponse, type MessageSendWithAlphanumericSenderResponse as MessageSendWithAlphanumericSenderResponse, type MessageWhatsappResponse as MessageWhatsappResponse, type MessageSendParams as MessageSendParams, type MessageSendLongCodeParams as MessageSendLongCodeParams, type MessageSendNumberPoolParams as MessageSendNumberPoolParams, type MessageSendShortCodeParams as MessageSendShortCodeParams, type MessageSendGroupMmsParams as MessageSendGroupMmsParams, type MessageScheduleParams as MessageScheduleParams, type MessageSendWithAlphanumericSenderParams as MessageSendWithAlphanumericSenderParams, type MessageWhatsappParams as MessageWhatsappParams, };
|