telnyx 7.26.0 → 7.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +17 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -8
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses/addresses.d.mts +22 -2
- package/resources/addresses/addresses.d.mts.map +1 -1
- package/resources/addresses/addresses.d.ts +22 -2
- package/resources/addresses/addresses.d.ts.map +1 -1
- package/resources/addresses/addresses.js +12 -0
- package/resources/addresses/addresses.js.map +1 -1
- package/resources/addresses/addresses.mjs +12 -0
- package/resources/addresses/addresses.mjs.map +1 -1
- package/resources/ai/ai.d.mts +2 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +2 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +168 -33
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +168 -33
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +4 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +4 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +11 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +11 -6
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/assistants/versions.js +4 -1
- package/resources/ai/assistants/versions.js.map +1 -1
- package/resources/ai/assistants/versions.mjs +4 -1
- package/resources/ai/assistants/versions.mjs.map +1 -1
- package/resources/ai/audio.d.mts +17 -5
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +17 -5
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +21 -8
- package/resources/ai/avatars.d.mts.map +1 -1
- package/resources/ai/avatars.d.ts +21 -8
- package/resources/ai/avatars.d.ts.map +1 -1
- package/resources/ai/avatars.js +3 -1
- package/resources/ai/avatars.js.map +1 -1
- package/resources/ai/avatars.mjs +3 -1
- package/resources/ai/avatars.mjs.map +1 -1
- package/resources/ai/index.d.mts +1 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tools.d.mts +13 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +13 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +202 -13
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +202 -13
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/credential-connections/credential-connections.d.mts +38 -8
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +38 -8
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/dial-metrics.d.mts +151 -0
- package/resources/dial-metrics.d.mts.map +1 -0
- package/resources/dial-metrics.d.ts +151 -0
- package/resources/dial-metrics.d.ts.map +1 -0
- package/resources/dial-metrics.js +44 -0
- package/resources/dial-metrics.js.map +1 -0
- package/resources/dial-metrics.mjs +40 -0
- package/resources/dial-metrics.mjs.map +1 -0
- package/resources/dir/dir.d.mts +2 -3
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +2 -3
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -2
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -2
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/references.d.mts +15 -9
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +15 -9
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/dir/references.js +15 -9
- package/resources/dir/references.js.map +1 -1
- package/resources/dir/references.mjs +15 -9
- package/resources/dir/references.mjs.map +1 -1
- package/resources/dir/verify-email.d.mts +17 -5
- package/resources/dir/verify-email.d.mts.map +1 -1
- package/resources/dir/verify-email.d.ts +17 -5
- package/resources/dir/verify-email.d.ts.map +1 -1
- package/resources/dir/verify-email.js +17 -5
- package/resources/dir/verify-email.js.map +1 -1
- package/resources/dir/verify-email.mjs +17 -5
- package/resources/dir/verify-email.mjs.map +1 -1
- package/resources/email-domains/email-domains.d.mts +1 -1
- package/resources/email-domains/email-domains.d.mts.map +1 -1
- package/resources/email-domains/email-domains.d.ts +1 -1
- package/resources/email-domains/email-domains.d.ts.map +1 -1
- package/resources/enterprises/verify-email.d.mts +1 -1
- package/resources/enterprises/verify-email.d.ts +1 -1
- package/resources/enterprises/verify-email.js +1 -1
- package/resources/enterprises/verify-email.mjs +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
- package/resources/index.d.mts +6 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +36 -6
- package/resources/ip-connections.d.mts.map +1 -1
- package/resources/ip-connections.d.ts +36 -6
- package/resources/ip-connections.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.d.mts +13 -7
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +13 -7
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +13 -7
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +13 -7
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +14 -23
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/messages/messages.d.mts +581 -118
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +581 -118
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +71 -14
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +71 -14
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messages/rcs.d.mts +26 -6
- package/resources/messages/rcs.d.mts.map +1 -1
- package/resources/messages/rcs.d.ts +26 -6
- package/resources/messages/rcs.d.ts.map +1 -1
- package/resources/messages/rcs.js +11 -2
- package/resources/messages/rcs.js.map +1 -1
- package/resources/messages/rcs.mjs +11 -2
- package/resources/messages/rcs.mjs.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.mts +9 -0
- package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.ts +9 -0
- package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
- package/resources/phone-numbers/csv-downloads.js +5 -2
- package/resources/phone-numbers/csv-downloads.js.map +1 -1
- package/resources/phone-numbers/csv-downloads.mjs +5 -2
- package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
- package/resources/phone-numbers/index.d.mts +2 -2
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +2 -2
- package/resources/phone-numbers/index.d.ts.map +1 -1
- package/resources/phone-numbers/index.js.map +1 -1
- package/resources/phone-numbers/index.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +266 -15
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +266 -15
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +1 -1
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +1 -1
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +28 -3
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +28 -3
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +12 -5
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +12 -5
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/telephony-credentials.d.mts +11 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +11 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +9 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +9 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/texml/accounts/accounts.d.mts +2 -2
- package/resources/texml/accounts/accounts.d.ts +2 -2
- package/resources/texml/accounts/accounts.js +2 -2
- package/resources/texml/accounts/accounts.mjs +2 -2
- package/resources/texml/accounts/calls/calls.d.mts +49 -14
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +49 -14
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +7 -7
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +7 -7
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.js +2 -2
- package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
- package/resources/texml/accounts/calls/recordings.d.mts +10 -2
- package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings.d.ts +10 -2
- package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings.js +4 -1
- package/resources/texml/accounts/calls/recordings.js.map +1 -1
- package/resources/texml/accounts/calls/recordings.mjs +4 -1
- package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.mts +10 -2
- package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.ts +10 -2
- package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
- package/resources/texml/accounts/calls/siprec.js +4 -1
- package/resources/texml/accounts/calls/siprec.js.map +1 -1
- package/resources/texml/accounts/calls/siprec.mjs +4 -1
- package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
- package/resources/texml/accounts/calls/streams.d.mts +10 -2
- package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
- package/resources/texml/accounts/calls/streams.d.ts +10 -2
- package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
- package/resources/texml/accounts/calls/streams.js +4 -1
- package/resources/texml/accounts/calls/streams.js.map +1 -1
- package/resources/texml/accounts/calls/streams.mjs +4 -1
- package/resources/texml/accounts/calls/streams.mjs.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.js +5 -5
- package/resources/texml/accounts/conferences/conferences.js.map +1 -1
- package/resources/texml/accounts/conferences/conferences.mjs +5 -5
- package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +35 -10
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +35 -10
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/participants.js +5 -5
- package/resources/texml/accounts/conferences/participants.mjs +5 -5
- package/resources/texml/accounts/queues.d.mts +25 -8
- package/resources/texml/accounts/queues.d.mts.map +1 -1
- package/resources/texml/accounts/queues.d.ts +25 -8
- package/resources/texml/accounts/queues.d.ts.map +1 -1
- package/resources/texml/accounts/queues.js +7 -5
- package/resources/texml/accounts/queues.js.map +1 -1
- package/resources/texml/accounts/queues.mjs +7 -5
- package/resources/texml/accounts/queues.mjs.map +1 -1
- package/resources/texml/accounts/recordings/json.d.mts +14 -4
- package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
- package/resources/texml/accounts/recordings/json.d.ts +14 -4
- package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
- package/resources/texml/accounts/recordings/json.js +2 -2
- package/resources/texml/accounts/recordings/json.mjs +2 -2
- package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.js +2 -2
- package/resources/texml/accounts/transcriptions/json.mjs +2 -2
- package/resources/text-to-speech/text-to-speech.d.mts +15 -6
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +15 -6
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/tts-integrations/actions.d.mts +4 -0
- package/resources/tts-integrations/actions.d.mts.map +1 -0
- package/resources/tts-integrations/actions.d.ts +4 -0
- package/resources/tts-integrations/actions.d.ts.map +1 -0
- package/resources/tts-integrations/actions.js +9 -0
- package/resources/tts-integrations/actions.js.map +1 -0
- package/resources/tts-integrations/actions.mjs +5 -0
- package/resources/tts-integrations/actions.mjs.map +1 -0
- package/resources/tts-integrations/index.d.mts +3 -0
- package/resources/tts-integrations/index.d.mts.map +1 -0
- package/resources/tts-integrations/index.d.ts +3 -0
- package/resources/tts-integrations/index.d.ts.map +1 -0
- package/resources/tts-integrations/index.js +9 -0
- package/resources/tts-integrations/index.js.map +1 -0
- package/resources/tts-integrations/index.mjs +4 -0
- package/resources/tts-integrations/index.mjs.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.mts +10 -0
- package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.ts +10 -0
- package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations/tts-integrations.js +17 -0
- package/resources/tts-integrations/tts-integrations.js.map +1 -0
- package/resources/tts-integrations/tts-integrations.mjs +12 -0
- package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
- package/resources/tts-integrations.d.mts +2 -0
- package/resources/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations.d.ts +2 -0
- package/resources/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations.js +6 -0
- package/resources/tts-integrations.js.map +1 -0
- package/resources/tts-integrations.mjs +3 -0
- package/resources/tts-integrations.mjs.map +1 -0
- package/resources/uac-connections/uac-connections.d.mts +36 -6
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +36 -6
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/voice-clones.d.mts +57 -10
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +57 -10
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +6 -4
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +6 -4
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/webhooks.d.mts +433 -81
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +433 -81
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +165 -0
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
- package/resources/whatsapp/hosted-signups.d.ts +165 -0
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
- package/resources/whatsapp/hosted-signups.js +56 -0
- package/resources/whatsapp/hosted-signups.js.map +1 -0
- package/resources/whatsapp/hosted-signups.mjs +52 -0
- package/resources/whatsapp/hosted-signups.mjs.map +1 -0
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +29 -4
- package/src/resources/addresses/addresses.ts +22 -2
- package/src/resources/ai/ai.ts +2 -0
- package/src/resources/ai/assistants/assistants.ts +179 -31
- package/src/resources/ai/assistants/versions.ts +11 -6
- package/src/resources/ai/audio.ts +18 -5
- package/src/resources/ai/avatars.ts +22 -8
- package/src/resources/ai/index.ts +1 -0
- package/src/resources/ai/tools.ts +16 -0
- package/src/resources/calls/actions.ts +281 -10
- package/src/resources/calls/calls.ts +2 -0
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/credential-connections/credential-connections.ts +41 -8
- package/src/resources/dial-metrics.ts +185 -0
- package/src/resources/dir/dir.ts +4 -2
- package/src/resources/dir/references.ts +15 -9
- package/src/resources/dir/verify-email.ts +17 -5
- package/src/resources/email-domains/email-domains.ts +1 -1
- package/src/resources/enterprises/verify-email.ts +1 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
- package/src/resources/index.ts +10 -2
- package/src/resources/ip-connections.ts +39 -6
- package/src/resources/meeting-sessions/actions.ts +13 -7
- package/src/resources/meeting-sessions/index.ts +0 -1
- package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
- package/src/resources/messages/messages.ts +786 -125
- package/src/resources/messages/rcs.ts +37 -7
- package/src/resources/phone-numbers/csv-downloads.ts +15 -2
- package/src/resources/phone-numbers/index.ts +3 -1
- package/src/resources/phone-numbers/jobs.ts +320 -16
- package/src/resources/phone-numbers/phone-numbers.ts +38 -2
- package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
- package/src/resources/porting-orders/porting-orders.ts +1 -0
- package/src/resources/porting-phone-numbers.ts +1 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/speech-to-text/speech-to-text.ts +12 -4
- package/src/resources/telephony-credentials.ts +24 -2
- package/src/resources/texml/accounts/accounts.ts +2 -2
- package/src/resources/texml/accounts/calls/calls.ts +49 -14
- package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
- package/src/resources/texml/accounts/calls/recordings.ts +10 -2
- package/src/resources/texml/accounts/calls/siprec.ts +10 -2
- package/src/resources/texml/accounts/calls/streams.ts +10 -2
- package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
- package/src/resources/texml/accounts/conferences/participants.ts +35 -10
- package/src/resources/texml/accounts/queues.ts +25 -8
- package/src/resources/texml/accounts/recordings/json.ts +14 -4
- package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
- package/src/resources/text-to-speech/text-to-speech.ts +15 -6
- package/src/resources/tts-integrations/actions.ts +5 -0
- package/src/resources/tts-integrations/index.ts +4 -0
- package/src/resources/tts-integrations/tts-integrations.ts +15 -0
- package/src/resources/tts-integrations.ts +3 -0
- package/src/resources/uac-connections/uac-connections.ts +39 -6
- package/src/resources/voice-clones.ts +65 -9
- package/src/resources/webhooks.ts +517 -95
- package/src/resources/whatsapp/hosted-signups.ts +221 -0
- package/src/resources/whatsapp/index.ts +9 -0
- package/src/resources/whatsapp/whatsapp.ts +22 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class HostedSignups extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List hosted signups created by the account, newest first. Expired hosted signups
|
|
8
|
+
* are included.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* // Automatically fetches more pages as needed.
|
|
13
|
+
* for await (const hostedSignupListResponse of client.whatsapp.hostedSignups.list()) {
|
|
14
|
+
* // ...
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(query?: HostedSignupListParams | null | undefined, options?: RequestOptions): PagePromise<HostedSignupListResponsesDefaultFlatPagination, HostedSignupListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
|
|
21
|
+
* for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
|
|
22
|
+
* Meta's WhatsApp Business app coexistence flow instead of standard Cloud API
|
|
23
|
+
* onboarding.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const hostedSignup =
|
|
28
|
+
* await client.whatsapp.hostedSignups.create({
|
|
29
|
+
* app_id: '123456789012345',
|
|
30
|
+
* signup_type: 'coexistence',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
create(body: HostedSignupCreateParams, options?: RequestOptions): APIPromise<HostedSignupCreateResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve a hosted signup and its onboarding URL.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const hostedSignup =
|
|
41
|
+
* await client.whatsapp.hostedSignups.retrieve('id');
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<HostedSignupRetrieveResponse>;
|
|
45
|
+
}
|
|
46
|
+
export type HostedSignupListResponsesDefaultFlatPagination = DefaultFlatPagination<HostedSignupListResponse>;
|
|
47
|
+
export interface HostedSignupCreateResponse {
|
|
48
|
+
data?: HostedSignupCreateResponse.Data;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace HostedSignupCreateResponse {
|
|
51
|
+
interface Data {
|
|
52
|
+
/**
|
|
53
|
+
* Hosted signup ID
|
|
54
|
+
*/
|
|
55
|
+
id?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Meta App ID the hosted signup onboards customers into
|
|
58
|
+
*/
|
|
59
|
+
app_id?: string;
|
|
60
|
+
created_at?: string;
|
|
61
|
+
/**
|
|
62
|
+
* When the onboarding URL stops working
|
|
63
|
+
*/
|
|
64
|
+
expires_at?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Signed token embedded in `url`
|
|
67
|
+
*/
|
|
68
|
+
jwt?: string;
|
|
69
|
+
record_type?: 'whatsapp_jwt';
|
|
70
|
+
/**
|
|
71
|
+
* Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
72
|
+
* signup.
|
|
73
|
+
*/
|
|
74
|
+
solution_id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Hosted onboarding URL to share with the end customer
|
|
77
|
+
*/
|
|
78
|
+
url?: string;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export interface HostedSignupRetrieveResponse {
|
|
82
|
+
data?: HostedSignupRetrieveResponse.Data;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace HostedSignupRetrieveResponse {
|
|
85
|
+
interface Data {
|
|
86
|
+
/**
|
|
87
|
+
* Hosted signup ID
|
|
88
|
+
*/
|
|
89
|
+
id?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Meta App ID the hosted signup onboards customers into
|
|
92
|
+
*/
|
|
93
|
+
app_id?: string;
|
|
94
|
+
created_at?: string;
|
|
95
|
+
/**
|
|
96
|
+
* When the onboarding URL stops working
|
|
97
|
+
*/
|
|
98
|
+
expires_at?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Signed token embedded in `url`
|
|
101
|
+
*/
|
|
102
|
+
jwt?: string;
|
|
103
|
+
record_type?: 'whatsapp_jwt';
|
|
104
|
+
/**
|
|
105
|
+
* Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
106
|
+
* signup.
|
|
107
|
+
*/
|
|
108
|
+
solution_id?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Hosted onboarding URL to share with the end customer
|
|
111
|
+
*/
|
|
112
|
+
url?: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
export interface HostedSignupListResponse {
|
|
116
|
+
/**
|
|
117
|
+
* Hosted signup ID
|
|
118
|
+
*/
|
|
119
|
+
id?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Meta App ID the hosted signup onboards customers into
|
|
122
|
+
*/
|
|
123
|
+
app_id?: string;
|
|
124
|
+
created_at?: string;
|
|
125
|
+
/**
|
|
126
|
+
* When the onboarding URL stops working
|
|
127
|
+
*/
|
|
128
|
+
expires_at?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Signed token embedded in `url`
|
|
131
|
+
*/
|
|
132
|
+
jwt?: string;
|
|
133
|
+
record_type?: 'whatsapp_jwt';
|
|
134
|
+
/**
|
|
135
|
+
* Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
136
|
+
* signup.
|
|
137
|
+
*/
|
|
138
|
+
solution_id?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Hosted onboarding URL to share with the end customer
|
|
141
|
+
*/
|
|
142
|
+
url?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface HostedSignupListParams extends DefaultFlatPaginationParams {
|
|
145
|
+
}
|
|
146
|
+
export interface HostedSignupCreateParams {
|
|
147
|
+
/**
|
|
148
|
+
* Meta App ID linked to the Telnyx account. The app must be enabled.
|
|
149
|
+
*/
|
|
150
|
+
app_id: string;
|
|
151
|
+
/**
|
|
152
|
+
* When the onboarding URL expires, in RFC 3339 format. Must be in the future and
|
|
153
|
+
* at most 3 days ahead. Defaults to 24 hours after creation.
|
|
154
|
+
*/
|
|
155
|
+
expires_at?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Onboarding flow the hosted page launches. Use `coexistence` for a number that
|
|
158
|
+
* remains active in the WhatsApp Business app.
|
|
159
|
+
*/
|
|
160
|
+
signup_type?: 'standard' | 'coexistence';
|
|
161
|
+
}
|
|
162
|
+
export declare namespace HostedSignups {
|
|
163
|
+
export { type HostedSignupCreateResponse as HostedSignupCreateResponse, type HostedSignupRetrieveResponse as HostedSignupRetrieveResponse, type HostedSignupListResponse as HostedSignupListResponse, type HostedSignupListResponsesDefaultFlatPagination as HostedSignupListResponsesDefaultFlatPagination, type HostedSignupListParams as HostedSignupListParams, type HostedSignupCreateParams as HostedSignupCreateParams, };
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=hosted-signups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-signups.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,wBAAwB,CAAC;IAQxF;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGzF;AAED,MAAM,MAAM,8CAA8C,GAAG,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;AAE7G,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,0BAA0B,CAAC,IAAI,CAAC;CACxC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,UAAU,CAAC,E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W,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,aAAa,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.HostedSignups = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class HostedSignups extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List hosted signups created by the account, newest first. Expired hosted signups
|
|
11
|
+
* are included.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const hostedSignupListResponse of client.whatsapp.hostedSignups.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
return this._client.getAPIList('/whatsapp/hosted_signups', (pagination_1.DefaultFlatPagination), { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
|
|
26
|
+
* for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
|
|
27
|
+
* Meta's WhatsApp Business app coexistence flow instead of standard Cloud API
|
|
28
|
+
* onboarding.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const hostedSignup =
|
|
33
|
+
* await client.whatsapp.hostedSignups.create({
|
|
34
|
+
* app_id: '123456789012345',
|
|
35
|
+
* signup_type: 'coexistence',
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
create(body, options) {
|
|
40
|
+
return this._client.post('/whatsapp/hosted_signups', { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Retrieve a hosted signup and its onboarding URL.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const hostedSignup =
|
|
48
|
+
* await client.whatsapp.hostedSignups.retrieve('id');
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
retrieve(id, options) {
|
|
52
|
+
return this._client.get((0, path_1.path) `/whatsapp/hosted_signups/${id}`, options);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.HostedSignups = HostedSignups;
|
|
56
|
+
//# sourceMappingURL=hosted-signups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-signups.js","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAE7G,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,kCAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAvDD,sCAuDC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { DefaultFlatPagination } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class HostedSignups extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List hosted signups created by the account, newest first. Expired hosted signups
|
|
8
|
+
* are included.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* // Automatically fetches more pages as needed.
|
|
13
|
+
* for await (const hostedSignupListResponse of client.whatsapp.hostedSignups.list()) {
|
|
14
|
+
* // ...
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
return this._client.getAPIList('/whatsapp/hosted_signups', (DefaultFlatPagination), { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
|
|
23
|
+
* for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
|
|
24
|
+
* Meta's WhatsApp Business app coexistence flow instead of standard Cloud API
|
|
25
|
+
* onboarding.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const hostedSignup =
|
|
30
|
+
* await client.whatsapp.hostedSignups.create({
|
|
31
|
+
* app_id: '123456789012345',
|
|
32
|
+
* signup_type: 'coexistence',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
create(body, options) {
|
|
37
|
+
return this._client.post('/whatsapp/hosted_signups', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve a hosted signup and its onboarding URL.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const hostedSignup =
|
|
45
|
+
* await client.whatsapp.hostedSignups.retrieve('id');
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
retrieve(id, options) {
|
|
49
|
+
return this._client.get(path `/whatsapp/hosted_signups/${id}`, options);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=hosted-signups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-signups.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,qBAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.mjs";
|
|
2
|
+
export { HostedSignups, type HostedSignupCreateResponse, type HostedSignupRetrieveResponse, type HostedSignupListResponse, type HostedSignupListParams, type HostedSignupCreateParams, type HostedSignupListResponsesDefaultFlatPagination, } from "./hosted-signups.mjs";
|
|
2
3
|
export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers/index.mjs";
|
|
3
4
|
export { Signup, type SignupListResponse, type SignupRetrieveStatusResponse, type SignupListParams, type SignupListResponsesDefaultFlatPagination, } from "./signup.mjs";
|
|
4
5
|
export { Templates, type WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent, type TemplateCreateResponse, type TemplateListParams, type TemplateCreateParams, } from "./templates.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,sCAAkC;AACnC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,kCAA8B;AAC/B,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,qBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,wBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,sCAAkC;AACnC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8CAA8C,GACpD,6BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,kCAA8B;AAC/B,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,qBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,wBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.js";
|
|
2
|
+
export { HostedSignups, type HostedSignupCreateResponse, type HostedSignupRetrieveResponse, type HostedSignupListResponse, type HostedSignupListParams, type HostedSignupCreateParams, type HostedSignupListResponsesDefaultFlatPagination, } from "./hosted-signups.js";
|
|
2
3
|
export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers/index.js";
|
|
3
4
|
export { Signup, type SignupListResponse, type SignupRetrieveStatusResponse, type SignupListParams, type SignupListResponsesDefaultFlatPagination, } from "./signup.js";
|
|
4
5
|
export { Templates, type WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent, type TemplateCreateResponse, type TemplateListParams, type TemplateCreateParams, } from "./templates.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,qCAAkC;AACnC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,iCAA8B;AAC/B,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,oBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,sBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,qCAAkC;AACnC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8CAA8C,GACpD,4BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,iCAA8B;AAC/B,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,oBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,sBAAmB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Whatsapp = exports.UserData = exports.Templates = exports.Signup = exports.PhoneNumbers = exports.BusinessAccounts = void 0;
|
|
4
|
+
exports.Whatsapp = exports.UserData = exports.Templates = exports.Signup = exports.PhoneNumbers = exports.HostedSignups = exports.BusinessAccounts = void 0;
|
|
5
5
|
var index_1 = require("./business-accounts/index.js");
|
|
6
6
|
Object.defineProperty(exports, "BusinessAccounts", { enumerable: true, get: function () { return index_1.BusinessAccounts; } });
|
|
7
|
+
var hosted_signups_1 = require("./hosted-signups.js");
|
|
8
|
+
Object.defineProperty(exports, "HostedSignups", { enumerable: true, get: function () { return hosted_signups_1.HostedSignups; } });
|
|
7
9
|
var index_2 = require("./phone-numbers/index.js");
|
|
8
10
|
Object.defineProperty(exports, "PhoneNumbers", { enumerable: true, get: function () { return index_2.PhoneNumbers; } });
|
|
9
11
|
var signup_1 = require("./signup.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAMmC;AALjC,yGAAA,gBAAgB,OAAA;AAMlB,kDAY+B;AAX7B,qGAAA,YAAY,OAAA;AAYd,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,4CAUqB;AATnB,sGAAA,SAAS,OAAA;AAUX,4CAMqB;AALnB,qGAAA,QAAQ,OAAA;AAMV,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAMmC;AALjC,yGAAA,gBAAgB,OAAA;AAMlB,sDAQ0B;AAPxB,+GAAA,aAAa,OAAA;AAQf,kDAY+B;AAX7B,qGAAA,YAAY,OAAA;AAYd,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,4CAUqB;AATnB,sGAAA,SAAS,OAAA;AAUX,4CAMqB;AALnB,qGAAA,QAAQ,OAAA;AAMV,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { BusinessAccounts, } from "./business-accounts/index.mjs";
|
|
3
|
+
export { HostedSignups, } from "./hosted-signups.mjs";
|
|
3
4
|
export { PhoneNumbers, } from "./phone-numbers/index.mjs";
|
|
4
5
|
export { Signup, } from "./signup.mjs";
|
|
5
6
|
export { Templates, } from "./templates.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,gBAAgB,GAKjB,sCAAkC;AACnC,OAAO,EACL,YAAY,GAWb,kCAA8B;AAC/B,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,SAAS,GASV,wBAAoB;AACrB,OAAO,EACL,QAAQ,GAKT,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,gBAAgB,GAKjB,sCAAkC;AACnC,OAAO,EACL,aAAa,GAOd,6BAAyB;AAC1B,OAAO,EACL,YAAY,GAWb,kCAA8B;AAC/B,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,SAAS,GASV,wBAAoB;AACrB,OAAO,EACL,QAAQ,GAKT,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as HostedSignupsAPI from "./hosted-signups.mjs";
|
|
3
|
+
import { HostedSignupCreateParams, HostedSignupCreateResponse, HostedSignupListParams, HostedSignupListResponse, HostedSignupListResponsesDefaultFlatPagination, HostedSignupRetrieveResponse, HostedSignups } from "./hosted-signups.mjs";
|
|
2
4
|
import * as SignupAPI from "./signup.mjs";
|
|
3
5
|
import { Signup, SignupListParams, SignupListResponse, SignupListResponsesDefaultFlatPagination, SignupRetrieveStatusResponse } from "./signup.mjs";
|
|
4
6
|
import * as TemplatesAPI from "./templates.mjs";
|
|
@@ -15,6 +17,7 @@ export declare class Whatsapp extends APIResource {
|
|
|
15
17
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
|
|
16
18
|
userData: UserDataAPI.UserData;
|
|
17
19
|
signup: SignupAPI.Signup;
|
|
20
|
+
hostedSignups: HostedSignupsAPI.HostedSignups;
|
|
18
21
|
}
|
|
19
22
|
export declare namespace Whatsapp {
|
|
20
23
|
export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
|
|
@@ -22,5 +25,6 @@ export declare namespace Whatsapp {
|
|
|
22
25
|
export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberGetResponse as PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse as PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse as PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams as PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams as PhoneNumberGetParams, };
|
|
23
26
|
export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
|
|
24
27
|
export { Signup as Signup, type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
|
|
28
|
+
export { HostedSignups as HostedSignups, type HostedSignupCreateResponse as HostedSignupCreateResponse, type HostedSignupRetrieveResponse as HostedSignupRetrieveResponse, type HostedSignupListResponse as HostedSignupListResponse, type HostedSignupListResponsesDefaultFlatPagination as HostedSignupListResponsesDefaultFlatPagination, type HostedSignupListParams as HostedSignupListParams, type HostedSignupCreateParams as HostedSignupCreateParams, };
|
|
25
29
|
}
|
|
26
30
|
//# sourceMappingURL=whatsapp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,wCAAwC,EACxC,4BAA4B,EAC7B,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,6BAA6B,EAC7B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAChC,wBAAoB;AACrB,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EACjB,wBAAoB;AACrB,OAAO,KAAK,mB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sAPI from "./hosted-signups.js";
|
|
3
|
+
import { HostedSignupCreateParams, HostedSignupCreateResponse, HostedSignupListParams, HostedSignupListResponse, HostedSignupListResponsesDefaultFlatPagination, HostedSignupRetrieveResponse, HostedSignups } from "./hosted-signups.js";
|
|
2
4
|
import * as SignupAPI from "./signup.js";
|
|
3
5
|
import { Signup, SignupListParams, SignupListResponse, SignupListResponsesDefaultFlatPagination, SignupRetrieveStatusResponse } from "./signup.js";
|
|
4
6
|
import * as TemplatesAPI from "./templates.js";
|
|
@@ -15,6 +17,7 @@ export declare class Whatsapp extends APIResource {
|
|
|
15
17
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
|
|
16
18
|
userData: UserDataAPI.UserData;
|
|
17
19
|
signup: SignupAPI.Signup;
|
|
20
|
+
hostedSignups: HostedSignupsAPI.HostedSignups;
|
|
18
21
|
}
|
|
19
22
|
export declare namespace Whatsapp {
|
|
20
23
|
export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
|
|
@@ -22,5 +25,6 @@ export declare namespace Whatsapp {
|
|
|
22
25
|
export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberGetResponse as PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse as PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse as PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams as PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams as PhoneNumberGetParams, };
|
|
23
26
|
export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
|
|
24
27
|
export { Signup as Signup, type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
|
|
28
|
+
export { HostedSignups as HostedSignups, type HostedSignupCreateResponse as HostedSignupCreateResponse, type HostedSignupRetrieveResponse as HostedSignupRetrieveResponse, type HostedSignupListResponse as HostedSignupListResponse, type HostedSignupListResponsesDefaultFlatPagination as HostedSignupListResponsesDefaultFlatPagination, type HostedSignupListParams as HostedSignupListParams, type HostedSignupCreateParams as HostedSignupCreateParams, };
|
|
25
29
|
}
|
|
26
30
|
//# sourceMappingURL=whatsapp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,wCAAwC,EACxC,4BAA4B,EAC7B,oBAAiB;AAClB,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,6BAA6B,EAC7B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAChC,uBAAoB;AACrB,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EACjB,uBAAoB;AACrB,OAAO,KAAK,mBAAmB,iDAA8C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const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const HostedSignupsAPI = tslib_1.__importStar(require("./hosted-signups.js"));
|
|
8
|
+
const hosted_signups_1 = require("./hosted-signups.js");
|
|
7
9
|
const SignupAPI = tslib_1.__importStar(require("./signup.js"));
|
|
8
10
|
const signup_1 = require("./signup.js");
|
|
9
11
|
const TemplatesAPI = tslib_1.__importStar(require("./templates.js"));
|
|
@@ -22,6 +24,7 @@ class Whatsapp extends resource_1.APIResource {
|
|
|
22
24
|
this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
23
25
|
this.userData = new UserDataAPI.UserData(this._client);
|
|
24
26
|
this.signup = new SignupAPI.Signup(this._client);
|
|
27
|
+
this.hostedSignups = new HostedSignupsAPI.HostedSignups(this._client);
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
exports.Whatsapp = Whatsapp;
|
|
@@ -30,4 +33,5 @@ Whatsapp.Templates = templates_1.Templates;
|
|
|
30
33
|
Whatsapp.PhoneNumbers = phone_numbers_1.PhoneNumbers;
|
|
31
34
|
Whatsapp.UserData = user_data_1.UserData;
|
|
32
35
|
Whatsapp.Signup = signup_1.Signup;
|
|
36
|
+
Whatsapp.HostedSignups = hosted_signups_1.HostedSignups;
|
|
33
37
|
//# sourceMappingURL=whatsapp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.js","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAMkB;AAClB,qEAA4C;AAC5C,8CAUqB;AACrB,oEAA2C;AAC3C,8CAMqB;AACrB,sGAA6E;AAC7E,gFAM+C;AAC/C,0FAAiE;AACjE,oEAYuC;AAEvC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,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ASC;AAED,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,4BAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,oBAAQ,CAAC;AAC7B,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AACzB,QAAQ,CAAC,aAAa,GAAG,8BAAa,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as HostedSignupsAPI from "./hosted-signups.mjs";
|
|
4
|
+
import { HostedSignups, } from "./hosted-signups.mjs";
|
|
3
5
|
import * as SignupAPI from "./signup.mjs";
|
|
4
6
|
import { Signup, } from "./signup.mjs";
|
|
5
7
|
import * as TemplatesAPI from "./templates.mjs";
|
|
@@ -18,6 +20,7 @@ export class Whatsapp extends APIResource {
|
|
|
18
20
|
this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
19
21
|
this.userData = new UserDataAPI.UserData(this._client);
|
|
20
22
|
this.signup = new SignupAPI.Signup(this._client);
|
|
23
|
+
this.hostedSignups = new HostedSignupsAPI.HostedSignups(this._client);
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
Whatsapp.BusinessAccounts = BusinessAccounts;
|
|
@@ -25,4 +28,5 @@ Whatsapp.Templates = Templates;
|
|
|
25
28
|
Whatsapp.PhoneNumbers = PhoneNumbers;
|
|
26
29
|
Whatsapp.UserData = UserData;
|
|
27
30
|
Whatsapp.Signup = Signup;
|
|
31
|
+
Whatsapp.HostedSignups = HostedSignups;
|
|
28
32
|
//# sourceMappingURL=whatsapp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"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GAMV,wBAAoB;AACrB,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EACL,QAAQ,GAKT,wBAAoB;AACrB,OAAO,KAAK,mBAAmB,kDAA8C;AAC7E,OAAO,EAKL,gBAAgB,GACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,0CAAsC;AACjE,OAAO,EAWL,YAAY,GACb,0CAAsC;AAEvC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -245,6 +245,12 @@ import {
|
|
|
245
245
|
DetailRecordListResponsesDefaultFlatPagination,
|
|
246
246
|
DetailRecords,
|
|
247
247
|
} from './resources/detail-records';
|
|
248
|
+
import {
|
|
249
|
+
DialMetricListParams,
|
|
250
|
+
DialMetricListResponse,
|
|
251
|
+
DialMetricListResponsesCloudfsCursorPagination,
|
|
252
|
+
DialMetrics,
|
|
253
|
+
} from './resources/dial-metrics';
|
|
248
254
|
import {
|
|
249
255
|
DialogflowConnectionCreateParams,
|
|
250
256
|
DialogflowConnectionResponse,
|
|
@@ -921,6 +927,7 @@ import {
|
|
|
921
927
|
TelephonyCredential,
|
|
922
928
|
TelephonyCredentialCreateParams,
|
|
923
929
|
TelephonyCredentialCreateResponse,
|
|
930
|
+
TelephonyCredentialCreateTokenParams,
|
|
924
931
|
TelephonyCredentialCreateTokenResponse,
|
|
925
932
|
TelephonyCredentialDeleteResponse,
|
|
926
933
|
TelephonyCredentialListParams,
|
|
@@ -1062,6 +1069,7 @@ import {
|
|
|
1062
1069
|
CallAIGatherMessageHistoryUpdatedWebhookEvent,
|
|
1063
1070
|
CallAIGatherPartialResults,
|
|
1064
1071
|
CallAIGatherPartialResultsWebhookEvent,
|
|
1072
|
+
CallAnalyzedWebhookEvent,
|
|
1065
1073
|
CallAnswered,
|
|
1066
1074
|
CallAnsweredWebhookEvent,
|
|
1067
1075
|
CallBridged,
|
|
@@ -1182,7 +1190,6 @@ import {
|
|
|
1182
1190
|
NumberReputationNumberFlaggedWebhookEvent,
|
|
1183
1191
|
NumberReputationNumberRemovedWebhookEvent,
|
|
1184
1192
|
OutboundMessage,
|
|
1185
|
-
RecordingAvailableWebhookEvent,
|
|
1186
1193
|
ReplacedLinkClick,
|
|
1187
1194
|
ReplacedLinkClickWebhookEvent,
|
|
1188
1195
|
SessionStatusChangedWebhookEvent,
|
|
@@ -1506,7 +1513,6 @@ import {
|
|
|
1506
1513
|
MeetingSessionResponse,
|
|
1507
1514
|
MeetingSessionRetrieveEventsParams,
|
|
1508
1515
|
MeetingSessionRetrieveEventsResponse,
|
|
1509
|
-
MeetingSessionRetrieveRecordingsResponse,
|
|
1510
1516
|
MeetingSessionRetrieveTranscriptParams,
|
|
1511
1517
|
MeetingSessionRetrieveTranscriptResponse,
|
|
1512
1518
|
MeetingSessionUpdateParams,
|
|
@@ -1632,6 +1638,7 @@ import {
|
|
|
1632
1638
|
} from './resources/payment/payment';
|
|
1633
1639
|
import { PhoneNumberBlocks } from './resources/phone-number-blocks/phone-number-blocks';
|
|
1634
1640
|
import {
|
|
1641
|
+
NumbersError73c9788e53,
|
|
1635
1642
|
NumbersPhoneNumberDetailed,
|
|
1636
1643
|
NumbersPhoneNumberDetailedsDefaultFlatPagination,
|
|
1637
1644
|
PhoneNumberDeleteResponse,
|
|
@@ -1802,6 +1809,7 @@ import {
|
|
|
1802
1809
|
TextToSpeechListVoicesResponse,
|
|
1803
1810
|
TextToSpeechRetrieveSpeechParams,
|
|
1804
1811
|
} from './resources/text-to-speech/text-to-speech';
|
|
1812
|
+
import { TtsIntegrations } from './resources/tts-integrations/tts-integrations';
|
|
1805
1813
|
import {
|
|
1806
1814
|
UacConnection,
|
|
1807
1815
|
UacConnectionCreateParams,
|
|
@@ -3338,6 +3346,11 @@ export class Telnyx {
|
|
|
3338
3346
|
* UAC connection operations
|
|
3339
3347
|
*/
|
|
3340
3348
|
sipRegistrationStatus: API.SipRegistrationStatus = new API.SipRegistrationStatus(this);
|
|
3349
|
+
/**
|
|
3350
|
+
* Call information
|
|
3351
|
+
*/
|
|
3352
|
+
dialMetrics: API.DialMetrics = new API.DialMetrics(this);
|
|
3353
|
+
ttsIntegrations: API.TtsIntegrations = new API.TtsIntegrations(this);
|
|
3341
3354
|
}
|
|
3342
3355
|
|
|
3343
3356
|
Telnyx.Legacy = Legacy;
|
|
@@ -3531,6 +3544,8 @@ Telnyx.MachinePayments = MachinePayments;
|
|
|
3531
3544
|
Telnyx.SpendLimits = SpendLimits;
|
|
3532
3545
|
Telnyx.LlmTokenGateway = LlmTokenGateway;
|
|
3533
3546
|
Telnyx.SipRegistrationStatus = SipRegistrationStatus;
|
|
3547
|
+
Telnyx.DialMetrics = DialMetrics;
|
|
3548
|
+
Telnyx.TtsIntegrations = TtsIntegrations;
|
|
3534
3549
|
|
|
3535
3550
|
export declare namespace Telnyx {
|
|
3536
3551
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -3719,6 +3734,7 @@ export declare namespace Telnyx {
|
|
|
3719
3734
|
type CallAIGatherPartialResultsWebhookEvent as CallAIGatherPartialResultsWebhookEvent,
|
|
3720
3735
|
type ArtifactCompletedWebhookEvent as ArtifactCompletedWebhookEvent,
|
|
3721
3736
|
type ArtifactFailedWebhookEvent as ArtifactFailedWebhookEvent,
|
|
3737
|
+
type CallAnalyzedWebhookEvent as CallAnalyzedWebhookEvent,
|
|
3722
3738
|
type CallAnsweredWebhookEvent as CallAnsweredWebhookEvent,
|
|
3723
3739
|
type CallBridgedWebhookEvent as CallBridgedWebhookEvent,
|
|
3724
3740
|
type CallConversationCreatedWebhookEvent as CallConversationCreatedWebhookEvent,
|
|
@@ -3782,7 +3798,6 @@ export declare namespace Telnyx {
|
|
|
3782
3798
|
type NumberReputationExternalVerificationStatusChangedWebhookEvent as NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
3783
3799
|
type NumberReputationNumberFlaggedWebhookEvent as NumberReputationNumberFlaggedWebhookEvent,
|
|
3784
3800
|
type NumberReputationNumberRemovedWebhookEvent as NumberReputationNumberRemovedWebhookEvent,
|
|
3785
|
-
type RecordingAvailableWebhookEvent as RecordingAvailableWebhookEvent,
|
|
3786
3801
|
type ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent,
|
|
3787
3802
|
type SessionStatusChangedWebhookEvent as SessionStatusChangedWebhookEvent,
|
|
3788
3803
|
type TranscriptCompletedWebhookEvent as TranscriptCompletedWebhookEvent,
|
|
@@ -4667,6 +4682,7 @@ export declare namespace Telnyx {
|
|
|
4667
4682
|
|
|
4668
4683
|
export {
|
|
4669
4684
|
PhoneNumbers as PhoneNumbers,
|
|
4685
|
+
type NumbersError73c9788e53 as NumbersError73c9788e53,
|
|
4670
4686
|
type NumbersPhoneNumberDetailed as NumbersPhoneNumberDetailed,
|
|
4671
4687
|
type PhoneNumberDetailed as PhoneNumberDetailed,
|
|
4672
4688
|
type PhoneNumberRetrieveResponse as PhoneNumberRetrieveResponse,
|
|
@@ -5025,6 +5041,7 @@ export declare namespace Telnyx {
|
|
|
5025
5041
|
type TelephonyCredentialListParams as TelephonyCredentialListParams,
|
|
5026
5042
|
type TelephonyCredentialCreateParams as TelephonyCredentialCreateParams,
|
|
5027
5043
|
type TelephonyCredentialUpdateParams as TelephonyCredentialUpdateParams,
|
|
5044
|
+
type TelephonyCredentialCreateTokenParams as TelephonyCredentialCreateTokenParams,
|
|
5028
5045
|
};
|
|
5029
5046
|
|
|
5030
5047
|
export {
|
|
@@ -5569,7 +5586,6 @@ export declare namespace Telnyx {
|
|
|
5569
5586
|
type MeetingSessionListResponse as MeetingSessionListResponse,
|
|
5570
5587
|
type MeetingSessionDeleteRecordingMediaResponse as MeetingSessionDeleteRecordingMediaResponse,
|
|
5571
5588
|
type MeetingSessionRetrieveEventsResponse as MeetingSessionRetrieveEventsResponse,
|
|
5572
|
-
type MeetingSessionRetrieveRecordingsResponse as MeetingSessionRetrieveRecordingsResponse,
|
|
5573
5589
|
type MeetingSessionRetrieveTranscriptResponse as MeetingSessionRetrieveTranscriptResponse,
|
|
5574
5590
|
type MeetingSessionListParams as MeetingSessionListParams,
|
|
5575
5591
|
type MeetingSessionCreateParams as MeetingSessionCreateParams,
|
|
@@ -5631,6 +5647,15 @@ export declare namespace Telnyx {
|
|
|
5631
5647
|
type SipRegistrationStatusListParams as SipRegistrationStatusListParams,
|
|
5632
5648
|
};
|
|
5633
5649
|
|
|
5650
|
+
export {
|
|
5651
|
+
DialMetrics as DialMetrics,
|
|
5652
|
+
type DialMetricListResponse as DialMetricListResponse,
|
|
5653
|
+
type DialMetricListResponsesCloudfsCursorPagination as DialMetricListResponsesCloudfsCursorPagination,
|
|
5654
|
+
type DialMetricListParams as DialMetricListParams,
|
|
5655
|
+
};
|
|
5656
|
+
|
|
5657
|
+
export { TtsIntegrations as TtsIntegrations };
|
|
5658
|
+
|
|
5634
5659
|
export type APIError = API.APIError;
|
|
5635
5660
|
export type AvailablePhoneNumbersMetadata = API.AvailablePhoneNumbersMetadata;
|
|
5636
5661
|
export type AzureVoiceSettings = API.AzureVoiceSettings;
|