telnyx 7.12.0 → 7.13.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 +56 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +56 -2
- package/client.d.ts.map +1 -1
- package/client.js +54 -0
- package/client.js.map +1 -1
- package/client.mjs +54 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +6 -0
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +6 -0
- 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/anthropic/v1.d.mts +3 -1
- package/resources/ai/anthropic/v1.d.mts.map +1 -1
- package/resources/ai/anthropic/v1.d.ts +3 -1
- package/resources/ai/anthropic/v1.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +6 -2
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +6 -2
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/chat.d.mts +6 -0
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +6 -0
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/openai/chat.d.mts +6 -0
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +6 -0
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/openai/openai.d.mts +6 -0
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +6 -0
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/calls/actions.d.mts +223 -48
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +223 -48
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +31 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +31 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +3 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +3 -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/custom-storage-credentials.d.mts +110 -14
- package/resources/custom-storage-credentials.d.mts.map +1 -1
- package/resources/custom-storage-credentials.d.ts +110 -14
- package/resources/custom-storage-credentials.d.ts.map +1 -1
- package/resources/dir/dir.d.mts +3 -2
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +3 -2
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +3 -2
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +3 -2
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/references.d.mts +41 -11
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +41 -11
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/dir/references.js +30 -8
- package/resources/dir/references.js.map +1 -1
- package/resources/dir/references.mjs +30 -8
- package/resources/dir/references.mjs.map +1 -1
- package/resources/dir/verify-email.d.mts +10 -0
- package/resources/dir/verify-email.d.mts.map +1 -1
- package/resources/dir/verify-email.d.ts +10 -0
- package/resources/dir/verify-email.d.ts.map +1 -1
- package/resources/email-blocks/email-blocks.d.mts +255 -0
- package/resources/email-blocks/email-blocks.d.mts.map +1 -0
- package/resources/email-blocks/email-blocks.d.ts +255 -0
- package/resources/email-blocks/email-blocks.d.ts.map +1 -0
- package/resources/email-blocks/email-blocks.js +99 -0
- package/resources/email-blocks/email-blocks.js.map +1 -0
- package/resources/email-blocks/email-blocks.mjs +94 -0
- package/resources/email-blocks/email-blocks.mjs.map +1 -0
- package/resources/email-blocks/import.d.mts +111 -0
- package/resources/email-blocks/import.d.mts.map +1 -0
- package/resources/email-blocks/import.d.ts +111 -0
- package/resources/email-blocks/import.d.ts.map +1 -0
- package/resources/email-blocks/import.js +40 -0
- package/resources/email-blocks/import.js.map +1 -0
- package/resources/email-blocks/import.mjs +36 -0
- package/resources/email-blocks/import.mjs.map +1 -0
- package/resources/email-blocks/index.d.mts +3 -0
- package/resources/email-blocks/index.d.mts.map +1 -0
- package/resources/email-blocks/index.d.ts +3 -0
- package/resources/email-blocks/index.d.ts.map +1 -0
- package/resources/email-blocks/index.js +9 -0
- package/resources/email-blocks/index.js.map +1 -0
- package/resources/email-blocks/index.mjs +4 -0
- package/resources/email-blocks/index.mjs.map +1 -0
- package/resources/email-blocks.d.mts +2 -0
- package/resources/email-blocks.d.mts.map +1 -0
- package/resources/email-blocks.d.ts +2 -0
- package/resources/email-blocks.d.ts.map +1 -0
- package/resources/email-blocks.js +6 -0
- package/resources/email-blocks.js.map +1 -0
- package/resources/email-blocks.mjs +3 -0
- package/resources/email-blocks.mjs.map +1 -0
- package/resources/email-domains/email-domains.d.mts +344 -0
- package/resources/email-domains/email-domains.d.mts.map +1 -0
- package/resources/email-domains/email-domains.d.ts +344 -0
- package/resources/email-domains/email-domains.d.ts.map +1 -0
- package/resources/email-domains/email-domains.js +146 -0
- package/resources/email-domains/email-domains.js.map +1 -0
- package/resources/email-domains/email-domains.mjs +141 -0
- package/resources/email-domains/email-domains.mjs.map +1 -0
- package/resources/email-domains/index.d.mts +3 -0
- package/resources/email-domains/index.d.mts.map +1 -0
- package/resources/email-domains/index.d.ts +3 -0
- package/resources/email-domains/index.d.ts.map +1 -0
- package/resources/email-domains/index.js +9 -0
- package/resources/email-domains/index.js.map +1 -0
- package/resources/email-domains/index.mjs +4 -0
- package/resources/email-domains/index.mjs.map +1 -0
- package/resources/email-domains/webhooks.d.mts +170 -0
- package/resources/email-domains/webhooks.d.mts.map +1 -0
- package/resources/email-domains/webhooks.d.ts +170 -0
- package/resources/email-domains/webhooks.d.ts.map +1 -0
- package/resources/email-domains/webhooks.js +110 -0
- package/resources/email-domains/webhooks.js.map +1 -0
- package/resources/email-domains/webhooks.mjs +106 -0
- package/resources/email-domains/webhooks.mjs.map +1 -0
- package/resources/email-domains.d.mts +2 -0
- package/resources/email-domains.d.mts.map +1 -0
- package/resources/email-domains.d.ts +2 -0
- package/resources/email-domains.d.ts.map +1 -0
- package/resources/email-domains.js +6 -0
- package/resources/email-domains.js.map +1 -0
- package/resources/email-domains.mjs +3 -0
- package/resources/email-domains.mjs.map +1 -0
- package/resources/email-events.d.mts +186 -0
- package/resources/email-events.d.mts.map +1 -0
- package/resources/email-events.d.ts +186 -0
- package/resources/email-events.d.ts.map +1 -0
- package/resources/email-events.js +26 -0
- package/resources/email-events.js.map +1 -0
- package/resources/email-events.mjs +22 -0
- package/resources/email-events.mjs.map +1 -0
- package/resources/email-inboxes/drafts.d.mts +549 -0
- package/resources/email-inboxes/drafts.d.mts.map +1 -0
- package/resources/email-inboxes/drafts.d.ts +549 -0
- package/resources/email-inboxes/drafts.d.ts.map +1 -0
- package/resources/email-inboxes/drafts.js +161 -0
- package/resources/email-inboxes/drafts.js.map +1 -0
- package/resources/email-inboxes/drafts.mjs +157 -0
- package/resources/email-inboxes/drafts.mjs.map +1 -0
- package/resources/email-inboxes/email-inboxes.d.mts +131 -0
- package/resources/email-inboxes/email-inboxes.d.mts.map +1 -0
- package/resources/email-inboxes/email-inboxes.d.ts +131 -0
- package/resources/email-inboxes/email-inboxes.d.ts.map +1 -0
- package/resources/email-inboxes/email-inboxes.js +93 -0
- package/resources/email-inboxes/email-inboxes.js.map +1 -0
- package/resources/email-inboxes/email-inboxes.mjs +88 -0
- package/resources/email-inboxes/email-inboxes.mjs.map +1 -0
- package/resources/email-inboxes/filters.d.mts +137 -0
- package/resources/email-inboxes/filters.d.mts.map +1 -0
- package/resources/email-inboxes/filters.d.ts +137 -0
- package/resources/email-inboxes/filters.d.ts.map +1 -0
- package/resources/email-inboxes/filters.js +81 -0
- package/resources/email-inboxes/filters.js.map +1 -0
- package/resources/email-inboxes/filters.mjs +77 -0
- package/resources/email-inboxes/filters.mjs.map +1 -0
- package/resources/email-inboxes/index.d.mts +6 -0
- package/resources/email-inboxes/index.d.mts.map +1 -0
- package/resources/email-inboxes/index.d.ts +6 -0
- package/resources/email-inboxes/index.d.ts.map +1 -0
- package/resources/email-inboxes/index.js +15 -0
- package/resources/email-inboxes/index.js.map +1 -0
- package/resources/email-inboxes/index.mjs +7 -0
- package/resources/email-inboxes/index.mjs.map +1 -0
- package/resources/email-inboxes/messages/actions.d.mts +190 -0
- package/resources/email-inboxes/messages/actions.d.mts.map +1 -0
- package/resources/email-inboxes/messages/actions.d.ts +190 -0
- package/resources/email-inboxes/messages/actions.d.ts.map +1 -0
- package/resources/email-inboxes/messages/actions.js +106 -0
- package/resources/email-inboxes/messages/actions.js.map +1 -0
- package/resources/email-inboxes/messages/actions.mjs +102 -0
- package/resources/email-inboxes/messages/actions.mjs.map +1 -0
- package/resources/email-inboxes/messages/index.d.mts +4 -0
- package/resources/email-inboxes/messages/index.d.mts.map +1 -0
- package/resources/email-inboxes/messages/index.d.ts +4 -0
- package/resources/email-inboxes/messages/index.d.ts.map +1 -0
- package/resources/email-inboxes/messages/index.js +11 -0
- package/resources/email-inboxes/messages/index.js.map +1 -0
- package/resources/email-inboxes/messages/index.mjs +5 -0
- package/resources/email-inboxes/messages/index.mjs.map +1 -0
- package/resources/email-inboxes/messages/labels.d.mts +101 -0
- package/resources/email-inboxes/messages/labels.d.mts.map +1 -0
- package/resources/email-inboxes/messages/labels.d.ts +101 -0
- package/resources/email-inboxes/messages/labels.d.ts.map +1 -0
- package/resources/email-inboxes/messages/labels.js +69 -0
- package/resources/email-inboxes/messages/labels.js.map +1 -0
- package/resources/email-inboxes/messages/labels.mjs +65 -0
- package/resources/email-inboxes/messages/labels.mjs.map +1 -0
- package/resources/email-inboxes/messages/messages.d.mts +212 -0
- package/resources/email-inboxes/messages/messages.d.mts.map +1 -0
- package/resources/email-inboxes/messages/messages.d.ts +212 -0
- package/resources/email-inboxes/messages/messages.d.ts.map +1 -0
- package/resources/email-inboxes/messages/messages.js +89 -0
- package/resources/email-inboxes/messages/messages.js.map +1 -0
- package/resources/email-inboxes/messages/messages.mjs +84 -0
- package/resources/email-inboxes/messages/messages.mjs.map +1 -0
- package/resources/email-inboxes/messages.d.mts +2 -0
- package/resources/email-inboxes/messages.d.mts.map +1 -0
- package/resources/email-inboxes/messages.d.ts +2 -0
- package/resources/email-inboxes/messages.d.ts.map +1 -0
- package/resources/email-inboxes/messages.js +6 -0
- package/resources/email-inboxes/messages.js.map +1 -0
- package/resources/email-inboxes/messages.mjs +3 -0
- package/resources/email-inboxes/messages.mjs.map +1 -0
- package/resources/email-inboxes/threads/index.d.mts +3 -0
- package/resources/email-inboxes/threads/index.d.mts.map +1 -0
- package/resources/email-inboxes/threads/index.d.ts +3 -0
- package/resources/email-inboxes/threads/index.d.ts.map +1 -0
- package/resources/email-inboxes/threads/index.js +9 -0
- package/resources/email-inboxes/threads/index.js.map +1 -0
- package/resources/email-inboxes/threads/index.mjs +4 -0
- package/resources/email-inboxes/threads/index.mjs.map +1 -0
- package/resources/email-inboxes/threads/labels.d.mts +99 -0
- package/resources/email-inboxes/threads/labels.d.mts.map +1 -0
- package/resources/email-inboxes/threads/labels.d.ts +99 -0
- package/resources/email-inboxes/threads/labels.d.ts.map +1 -0
- package/resources/email-inboxes/threads/labels.js +64 -0
- package/resources/email-inboxes/threads/labels.js.map +1 -0
- package/resources/email-inboxes/threads/labels.mjs +60 -0
- package/resources/email-inboxes/threads/labels.mjs.map +1 -0
- package/resources/email-inboxes/threads/threads.d.mts +199 -0
- package/resources/email-inboxes/threads/threads.d.mts.map +1 -0
- package/resources/email-inboxes/threads/threads.d.ts +199 -0
- package/resources/email-inboxes/threads/threads.d.ts.map +1 -0
- package/resources/email-inboxes/threads/threads.js +51 -0
- package/resources/email-inboxes/threads/threads.js.map +1 -0
- package/resources/email-inboxes/threads/threads.mjs +46 -0
- package/resources/email-inboxes/threads/threads.mjs.map +1 -0
- package/resources/email-inboxes/threads.d.mts +2 -0
- package/resources/email-inboxes/threads.d.mts.map +1 -0
- package/resources/email-inboxes/threads.d.ts +2 -0
- package/resources/email-inboxes/threads.d.ts.map +1 -0
- package/resources/email-inboxes/threads.js +6 -0
- package/resources/email-inboxes/threads.js.map +1 -0
- package/resources/email-inboxes/threads.mjs +3 -0
- package/resources/email-inboxes/threads.mjs.map +1 -0
- package/resources/email-inboxes.d.mts +2 -0
- package/resources/email-inboxes.d.mts.map +1 -0
- package/resources/email-inboxes.d.ts +2 -0
- package/resources/email-inboxes.d.ts.map +1 -0
- package/resources/email-inboxes.js +6 -0
- package/resources/email-inboxes.js.map +1 -0
- package/resources/email-inboxes.mjs +3 -0
- package/resources/email-inboxes.mjs.map +1 -0
- package/resources/email-messages/email-messages.d.mts +543 -0
- package/resources/email-messages/email-messages.d.mts.map +1 -0
- package/resources/email-messages/email-messages.d.ts +543 -0
- package/resources/email-messages/email-messages.d.ts.map +1 -0
- package/resources/email-messages/email-messages.js +186 -0
- package/resources/email-messages/email-messages.js.map +1 -0
- package/resources/email-messages/email-messages.mjs +181 -0
- package/resources/email-messages/email-messages.mjs.map +1 -0
- package/resources/email-messages/index.d.mts +3 -0
- package/resources/email-messages/index.d.mts.map +1 -0
- package/resources/email-messages/index.d.ts +3 -0
- package/resources/email-messages/index.d.ts.map +1 -0
- package/resources/email-messages/index.js +9 -0
- package/resources/email-messages/index.js.map +1 -0
- package/resources/email-messages/index.mjs +4 -0
- package/resources/email-messages/index.mjs.map +1 -0
- package/resources/email-messages/recipients.d.mts +118 -0
- package/resources/email-messages/recipients.d.mts.map +1 -0
- package/resources/email-messages/recipients.d.ts +118 -0
- package/resources/email-messages/recipients.d.ts.map +1 -0
- package/resources/email-messages/recipients.js +48 -0
- package/resources/email-messages/recipients.js.map +1 -0
- package/resources/email-messages/recipients.mjs +44 -0
- package/resources/email-messages/recipients.mjs.map +1 -0
- package/resources/email-messages.d.mts +2 -0
- package/resources/email-messages.d.mts.map +1 -0
- package/resources/email-messages.d.ts +2 -0
- package/resources/email-messages.d.ts.map +1 -0
- package/resources/email-messages.js +6 -0
- package/resources/email-messages.js.map +1 -0
- package/resources/email-messages.mjs +3 -0
- package/resources/email-messages.mjs.map +1 -0
- package/resources/email-templates.d.mts +236 -0
- package/resources/email-templates.d.mts.map +1 -0
- package/resources/email-templates.d.ts +236 -0
- package/resources/email-templates.d.ts.map +1 -0
- package/resources/email-templates.js +124 -0
- package/resources/email-templates.js.map +1 -0
- package/resources/email-templates.mjs +120 -0
- package/resources/email-templates.mjs.map +1 -0
- package/resources/email-threads.d.mts +71 -0
- package/resources/email-threads.d.mts.map +1 -0
- package/resources/email-threads.d.ts +71 -0
- package/resources/email-threads.d.ts.map +1 -0
- package/resources/email-threads.js +34 -0
- package/resources/email-threads.js.map +1 -0
- package/resources/email-threads.mjs +30 -0
- package/resources/email-threads.mjs.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.mts +90 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.ts +90 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.js +70 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.js.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.mjs +65 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.mjs.map +1 -0
- package/resources/email-unsubscribe-groups/index.d.mts +3 -0
- package/resources/email-unsubscribe-groups/index.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups/index.d.ts +3 -0
- package/resources/email-unsubscribe-groups/index.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups/index.js +9 -0
- package/resources/email-unsubscribe-groups/index.js.map +1 -0
- package/resources/email-unsubscribe-groups/index.mjs +4 -0
- package/resources/email-unsubscribe-groups/index.mjs.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.d.mts +54 -0
- package/resources/email-unsubscribe-groups/suppressions.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.d.ts +54 -0
- package/resources/email-unsubscribe-groups/suppressions.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.js +52 -0
- package/resources/email-unsubscribe-groups/suppressions.js.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.mjs +48 -0
- package/resources/email-unsubscribe-groups/suppressions.mjs.map +1 -0
- package/resources/email-unsubscribe-groups.d.mts +2 -0
- package/resources/email-unsubscribe-groups.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups.d.ts +2 -0
- package/resources/email-unsubscribe-groups.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups.js +6 -0
- package/resources/email-unsubscribe-groups.js.map +1 -0
- package/resources/email-unsubscribe-groups.mjs +3 -0
- package/resources/email-unsubscribe-groups.mjs.map +1 -0
- package/resources/email-validations/batch.d.mts +136 -0
- package/resources/email-validations/batch.d.mts.map +1 -0
- package/resources/email-validations/batch.d.ts +136 -0
- package/resources/email-validations/batch.d.ts.map +1 -0
- package/resources/email-validations/batch.js +51 -0
- package/resources/email-validations/batch.js.map +1 -0
- package/resources/email-validations/batch.mjs +47 -0
- package/resources/email-validations/batch.mjs.map +1 -0
- package/resources/email-validations/email-validations.d.mts +87 -0
- package/resources/email-validations/email-validations.d.mts.map +1 -0
- package/resources/email-validations/email-validations.d.ts +87 -0
- package/resources/email-validations/email-validations.d.ts.map +1 -0
- package/resources/email-validations/email-validations.js +43 -0
- package/resources/email-validations/email-validations.js.map +1 -0
- package/resources/email-validations/email-validations.mjs +38 -0
- package/resources/email-validations/email-validations.mjs.map +1 -0
- package/resources/email-validations/index.d.mts +3 -0
- package/resources/email-validations/index.d.mts.map +1 -0
- package/resources/email-validations/index.d.ts +3 -0
- package/resources/email-validations/index.d.ts.map +1 -0
- package/resources/email-validations/index.js +9 -0
- package/resources/email-validations/index.js.map +1 -0
- package/resources/email-validations/index.mjs +4 -0
- package/resources/email-validations/index.mjs.map +1 -0
- package/resources/email-validations.d.mts +2 -0
- package/resources/email-validations.d.mts.map +1 -0
- package/resources/email-validations.d.ts +2 -0
- package/resources/email-validations.d.ts.map +1 -0
- package/resources/email-validations.js +6 -0
- package/resources/email-validations.js.map +1 -0
- package/resources/email-validations.mjs +3 -0
- package/resources/email-validations.mjs.map +1 -0
- package/resources/index.d.mts +11 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +24 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -1
- package/resources/pricing/index.d.mts +3 -0
- package/resources/pricing/index.d.mts.map +1 -0
- package/resources/pricing/index.d.ts +3 -0
- package/resources/pricing/index.d.ts.map +1 -0
- package/resources/pricing/index.js +9 -0
- package/resources/pricing/index.js.map +1 -0
- package/resources/pricing/index.mjs +4 -0
- package/resources/pricing/index.mjs.map +1 -0
- package/resources/pricing/pricing.d.mts +10 -0
- package/resources/pricing/pricing.d.mts.map +1 -0
- package/resources/pricing/pricing.d.ts +10 -0
- package/resources/pricing/pricing.d.ts.map +1 -0
- package/resources/pricing/pricing.js +17 -0
- package/resources/pricing/pricing.js.map +1 -0
- package/resources/pricing/pricing.mjs +12 -0
- package/resources/pricing/pricing.mjs.map +1 -0
- package/resources/pricing/products.d.mts +161 -0
- package/resources/pricing/products.d.mts.map +1 -0
- package/resources/pricing/products.d.ts +161 -0
- package/resources/pricing/products.d.ts.map +1 -0
- package/resources/pricing/products.js +32 -0
- package/resources/pricing/products.js.map +1 -0
- package/resources/pricing/products.mjs +28 -0
- package/resources/pricing/products.mjs.map +1 -0
- package/resources/pricing.d.mts +2 -0
- package/resources/pricing.d.mts.map +1 -0
- package/resources/pricing.d.ts +2 -0
- package/resources/pricing.d.ts.map +1 -0
- package/resources/pricing.js +6 -0
- package/resources/pricing.js.map +1 -0
- package/resources/pricing.mjs +3 -0
- package/resources/pricing.mjs.map +1 -0
- package/resources/speech-to-text/speech-to-text.d.mts +4 -4
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +4 -4
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.js +1 -1
- package/resources/speech-to-text/speech-to-text.mjs +1 -1
- package/resources/uac-connections/uac-connections.d.mts +5 -0
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +5 -0
- 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/webhooks.d.mts +483 -85
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +483 -85
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +260 -0
- package/src/resources/ai/ai.ts +7 -0
- package/src/resources/ai/anthropic/v1.ts +3 -1
- package/src/resources/ai/assistants/assistants.ts +6 -1
- package/src/resources/ai/chat.ts +7 -0
- package/src/resources/ai/openai/chat.ts +7 -0
- package/src/resources/ai/openai/openai.ts +7 -0
- package/src/resources/calls/actions.ts +269 -51
- package/src/resources/calls/calls.ts +8 -0
- package/src/resources/calls/index.ts +3 -0
- package/src/resources/custom-storage-credentials.ts +140 -14
- package/src/resources/dir/dir.ts +3 -2
- package/src/resources/dir/references.ts +41 -11
- package/src/resources/dir/verify-email.ts +12 -0
- package/src/resources/email-blocks/email-blocks.ts +358 -0
- package/src/resources/email-blocks/import.ts +143 -0
- package/src/resources/email-blocks/index.ts +16 -0
- package/src/resources/email-blocks.ts +3 -0
- package/src/resources/email-domains/email-domains.ts +510 -0
- package/src/resources/email-domains/index.ts +33 -0
- package/src/resources/email-domains/webhooks.ts +267 -0
- package/src/resources/email-domains.ts +3 -0
- package/src/resources/email-events.ts +269 -0
- package/src/resources/email-inboxes/drafts.ts +746 -0
- package/src/resources/email-inboxes/email-inboxes.ts +276 -0
- package/src/resources/email-inboxes/filters.ts +193 -0
- package/src/resources/email-inboxes/index.ts +58 -0
- package/src/resources/email-inboxes/messages/actions.ts +258 -0
- package/src/resources/email-inboxes/messages/index.ts +27 -0
- package/src/resources/email-inboxes/messages/labels.ts +139 -0
- package/src/resources/email-inboxes/messages/messages.ts +313 -0
- package/src/resources/email-inboxes/messages.ts +3 -0
- package/src/resources/email-inboxes/threads/index.ts +21 -0
- package/src/resources/email-inboxes/threads/labels.ts +143 -0
- package/src/resources/email-inboxes/threads/threads.ts +292 -0
- package/src/resources/email-inboxes/threads.ts +3 -0
- package/src/resources/email-inboxes.ts +3 -0
- package/src/resources/email-messages/email-messages.ts +713 -0
- package/src/resources/email-messages/index.ts +26 -0
- package/src/resources/email-messages/recipients.ts +182 -0
- package/src/resources/email-messages.ts +3 -0
- package/src/resources/email-templates.ts +333 -0
- package/src/resources/email-threads.ts +100 -0
- package/src/resources/email-unsubscribe-groups/email-unsubscribe-groups.ts +171 -0
- package/src/resources/email-unsubscribe-groups/index.ts +19 -0
- package/src/resources/email-unsubscribe-groups/suppressions.ts +90 -0
- package/src/resources/email-unsubscribe-groups.ts +3 -0
- package/src/resources/email-validations/batch.ts +187 -0
- package/src/resources/email-validations/email-validations.ts +141 -0
- package/src/resources/email-validations/index.ts +15 -0
- package/src/resources/email-validations.ts +3 -0
- package/src/resources/index.ts +103 -0
- package/src/resources/pricing/index.ts +13 -0
- package/src/resources/pricing/pricing.ts +33 -0
- package/src/resources/pricing/products.ts +226 -0
- package/src/resources/pricing.ts +3 -0
- package/src/resources/speech-to-text/speech-to-text.ts +6 -3
- package/src/resources/uac-connections/uac-connections.ts +6 -0
- package/src/resources/webhooks.ts +636 -110
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/ai/chat.d.mts
CHANGED
|
@@ -105,6 +105,12 @@ export interface ChatCompletionRequest {
|
|
|
105
105
|
* the same result.
|
|
106
106
|
*/
|
|
107
107
|
seed?: number;
|
|
108
|
+
/**
|
|
109
|
+
* The service tier to use for this request. Supported values vary by model; use
|
|
110
|
+
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
111
|
+
* omitted, Telnyx-hosted models use `default`.
|
|
112
|
+
*/
|
|
113
|
+
service_tier?: string;
|
|
108
114
|
/**
|
|
109
115
|
* Up to 4 sequences where the API will stop generating further tokens. The
|
|
110
116
|
* returned text will not contain the stop sequence.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,OAAO,mBAAe;AAElC,qBAAa,IAAK,SAAQ,WAAW;CAAG;AAExC,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,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,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,UAAU,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SACzC;KACF;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,SAAS,IAAI,SAAS,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAC7F"}
|
package/resources/ai/chat.d.ts
CHANGED
|
@@ -105,6 +105,12 @@ export interface ChatCompletionRequest {
|
|
|
105
105
|
* the same result.
|
|
106
106
|
*/
|
|
107
107
|
seed?: number;
|
|
108
|
+
/**
|
|
109
|
+
* The service tier to use for this request. Supported values vary by model; use
|
|
110
|
+
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
111
|
+
* omitted, Telnyx-hosted models use `default`.
|
|
112
|
+
*/
|
|
113
|
+
service_tier?: string;
|
|
108
114
|
/**
|
|
109
115
|
* Up to 4 sequences where the API will stop generating further tokens. The
|
|
110
116
|
* returned text will not contain the stop sequence.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/ai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,OAAO,kBAAe;AAElC,qBAAa,IAAK,SAAQ,WAAW;CAAG;AAExC,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,qBAAqB,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,CAAC;QAE5B,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,QAAQ;YACvB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,UAAU,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SACzC;KACF;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,SAAS,IAAI,SAAS,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAC7F"}
|
|
@@ -119,6 +119,12 @@ export interface ChatCreateCompletionParams {
|
|
|
119
119
|
* the same result.
|
|
120
120
|
*/
|
|
121
121
|
seed?: number;
|
|
122
|
+
/**
|
|
123
|
+
* The service tier to use for this request. Supported values vary by model; use
|
|
124
|
+
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
125
|
+
* omitted, Telnyx-hosted models use `default`.
|
|
126
|
+
*/
|
|
127
|
+
service_tier?: string;
|
|
122
128
|
/**
|
|
123
129
|
* Up to 4 sequences where the API will stop generating further tokens. The
|
|
124
130
|
* returned text will not contain the stop sequence.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,OAAO,oBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA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AC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAEnD,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;KAChD;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,iBAAiB;YAChC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;YAE3B,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;KACF;IAED;;;OAGG;IACH,UAAiB,cAAc;QAC7B,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B;IAED,UAAiB,QAAQ;QACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;QAE5B,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,QAAQ;YACvB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,UAAU,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SACzC;KACF;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -119,6 +119,12 @@ export interface ChatCreateCompletionParams {
|
|
|
119
119
|
* the same result.
|
|
120
120
|
*/
|
|
121
121
|
seed?: number;
|
|
122
|
+
/**
|
|
123
|
+
* The service tier to use for this request. Supported values vary by model; use
|
|
124
|
+
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
125
|
+
* omitted, Telnyx-hosted models use `default`.
|
|
126
|
+
*/
|
|
127
|
+
service_tier?: string;
|
|
122
128
|
/**
|
|
123
129
|
* Up to 4 sequences where the API will stop generating further tokens. The
|
|
124
130
|
* returned text will not contain the stop sequence.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,OAAO,mBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,MAAM,4BAA4B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IAC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AI,CAAC;IAC5B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -109,6 +109,12 @@ export interface OpenAICreateResponseParams {
|
|
|
109
109
|
* another model available from the Telnyx OpenAI-compatible models endpoint.
|
|
110
110
|
*/
|
|
111
111
|
model?: string;
|
|
112
|
+
/**
|
|
113
|
+
* The service tier to use for this request. Supported values vary by model; use
|
|
114
|
+
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
115
|
+
* omitted, Telnyx-hosted models use `default`.
|
|
116
|
+
*/
|
|
117
|
+
service_tier?: string;
|
|
112
118
|
/**
|
|
113
119
|
* Set to `true` to stream Server-Sent Events, matching OpenAI's Responses
|
|
114
120
|
* streaming format.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,KAAK,kBAAc;AAC/B,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,mBAAe;AACxF,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,oCAAoC,EACpC,UAAU,EACX,yBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,cAAc,CAAC;IAItE;;;;;;;;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,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -109,6 +109,12 @@ export interface OpenAICreateResponseParams {
|
|
|
109
109
|
* another model available from the Telnyx OpenAI-compatible models endpoint.
|
|
110
110
|
*/
|
|
111
111
|
model?: string;
|
|
112
|
+
/**
|
|
113
|
+
* The service tier to use for this request. Supported values vary by model; use
|
|
114
|
+
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
115
|
+
* omitted, Telnyx-hosted models use `default`.
|
|
116
|
+
*/
|
|
117
|
+
service_tier?: string;
|
|
112
118
|
/**
|
|
113
119
|
* Set to `true` to stream Server-Sent Events, matching OpenAI's Responses
|
|
114
120
|
* streaming format.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,KAAK,iBAAc;AAC/B,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,kBAAe;AACxF,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,oCAAoC,EACpC,UAAU,EACX,wBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EA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,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,cAAc,CACZ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAnFD,wBAmFC;
|
|
1
|
+
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,2DAAkC;AAClC,oCAAwF;AACxF,uEAA8C;AAC9C,gDAKsB;AAItB,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiFtD,CAAC;IA/EC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,cAAc,CACZ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAnFD,wBAmFC;AA+CD,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC/B,MAAM,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.mjs","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],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AAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiFtD,CAAC;IA/EC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,cAAc,CACZ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA+CD,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AAC/B,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -698,6 +698,35 @@ export declare class Actions extends APIResource {
|
|
|
698
698
|
* ```
|
|
699
699
|
*/
|
|
700
700
|
stopConversationRelay(callControlID: string, body: ActionStopConversationRelayParams, options?: RequestOptions): APIPromise<ActionStopConversationRelayResponse>;
|
|
701
|
+
/**
|
|
702
|
+
* Collect payment details from the caller using DTMF and either charge or tokenize
|
|
703
|
+
* the payment method through a configured Pay connector. Pay pauses active call
|
|
704
|
+
* recordings while sensitive payment details are collected.
|
|
705
|
+
*
|
|
706
|
+
* When `payment_token` is supplied, the DTMF collection steps are skipped and the
|
|
707
|
+
* existing token is sent to the connector.
|
|
708
|
+
*
|
|
709
|
+
* **Expected Webhooks:**
|
|
710
|
+
*
|
|
711
|
+
* - `call.payment.progress`
|
|
712
|
+
* - `call.payment.completed`
|
|
713
|
+
*
|
|
714
|
+
* **Test mode card numbers:** `4111111111111111` (Visa), `5555555555554444`
|
|
715
|
+
* (Mastercard), `378282246310005` (American Express), `6011111111111117`
|
|
716
|
+
* (Discover), `3065930009020004` (Diners Club), `3566002020360505` (JCB),
|
|
717
|
+
* `6200000000000005` (UnionPay), and `6771798021000008` (Maestro). Test-mode
|
|
718
|
+
* connectors reject other card numbers before contacting the configured processor.
|
|
719
|
+
* The UnionPay and Maestro numbers are accepted for processor testing, but Pay
|
|
720
|
+
* currently does not emit a card type for them.
|
|
721
|
+
*
|
|
722
|
+
* @example
|
|
723
|
+
* ```ts
|
|
724
|
+
* const response = await client.calls.actions.pay(
|
|
725
|
+
* 'call_control_id',
|
|
726
|
+
* );
|
|
727
|
+
* ```
|
|
728
|
+
*/
|
|
729
|
+
pay(callControlID: string, body: ActionPayParams, options?: RequestOptions): APIPromise<ActionPayResponse>;
|
|
701
730
|
}
|
|
702
731
|
export interface AIAssistantJoinParticipant {
|
|
703
732
|
/**
|
|
@@ -919,6 +948,35 @@ export interface InterruptionSettings {
|
|
|
919
948
|
enable?: boolean;
|
|
920
949
|
}
|
|
921
950
|
export type Loopcount = string | number;
|
|
951
|
+
/**
|
|
952
|
+
* A default prompt string or an ordered list of qualified prompts.
|
|
953
|
+
*/
|
|
954
|
+
export type PayPromptValue = string | Array<PayPromptValue.UnionMember1>;
|
|
955
|
+
export declare namespace PayPromptValue {
|
|
956
|
+
/**
|
|
957
|
+
* A text-to-speech prompt with optional matching qualifiers.
|
|
958
|
+
*/
|
|
959
|
+
interface UnionMember1 {
|
|
960
|
+
/**
|
|
961
|
+
* Text spoken for the payment collection step.
|
|
962
|
+
*/
|
|
963
|
+
text: string;
|
|
964
|
+
/**
|
|
965
|
+
* Space-separated 1-based attempt numbers for which this prompt applies.
|
|
966
|
+
*/
|
|
967
|
+
attempt?: string;
|
|
968
|
+
/**
|
|
969
|
+
* Lowercase, case-sensitive detected card type for which this prompt applies. Only
|
|
970
|
+
* the listed brands are currently detected; accepted UnionPay and Maestro test
|
|
971
|
+
* cards do not produce a card-type qualifier.
|
|
972
|
+
*/
|
|
973
|
+
card_type?: 'visa' | 'mastercard' | 'amex' | 'discover' | 'diners-club' | 'jcb';
|
|
974
|
+
/**
|
|
975
|
+
* Step error for which this prompt applies.
|
|
976
|
+
*/
|
|
977
|
+
error_type?: 'timeout' | 'invalid-card-number' | 'invalid-date' | 'invalid-security-code' | 'invalid-postal-code' | 'invalid-bank-routing-number' | 'invalid-bank-account-number' | 'input-matching-failed';
|
|
978
|
+
}
|
|
979
|
+
}
|
|
922
980
|
export interface StopRecordingRequest {
|
|
923
981
|
/**
|
|
924
982
|
* Use this field to add state to every subsequent webhook. It must be a valid
|
|
@@ -1013,7 +1071,10 @@ export interface TranscriptionConfig {
|
|
|
1013
1071
|
* that language. For `humain/realtime`, supported values are `ar`, `en`,
|
|
1014
1072
|
* `codeswitch` (Arabic/English code-switching), and `auto` (resolves server-side
|
|
1015
1073
|
* to code-switching). Unlike other models, `humain/realtime` does not fall back to
|
|
1016
|
-
* `auto` when `language` is omitted — omitting it applies `en` instead.
|
|
1074
|
+
* `auto` when `language` is omitted — omitting it applies `en` instead. For
|
|
1075
|
+
* `reson8/turns`, supported values are `auto` (or unset) for automatic language
|
|
1076
|
+
* detection, and the language codes `nl`, `en`, `fr`, `fy`, `de`, `it`, `pl`,
|
|
1077
|
+
* `pt`, `es`, and `sv` to fix the transcription language.
|
|
1017
1078
|
*/
|
|
1018
1079
|
language?: string;
|
|
1019
1080
|
/**
|
|
@@ -1032,6 +1093,8 @@ export interface TranscriptionConfig {
|
|
|
1032
1093
|
* detection.
|
|
1033
1094
|
* - `humain/realtime` for live streaming transcription with native Arabic and
|
|
1034
1095
|
* Arabic/English code-switching support.
|
|
1096
|
+
* - `reson8/turns` for live streaming turn-based transcription of 10 European
|
|
1097
|
+
* languages with automatic language detection.
|
|
1035
1098
|
* - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
1036
1099
|
* unsupported regions require `api_key_ref`.
|
|
1037
1100
|
* - `google/latest_long` for non-streaming multilingual transcription.
|
|
@@ -1040,7 +1103,7 @@ export interface TranscriptionConfig {
|
|
|
1040
1103
|
* - `openai/whisper-large-v3-turbo` for multilingual non-streaming transcription
|
|
1041
1104
|
* with automatic language detection.
|
|
1042
1105
|
*/
|
|
1043
|
-
model?: 'deepgram/flux' | 'flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'speechmatics/standard' | 'speechmatics/enhanced' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'azure/fast' | 'azure/realtime' | 'google/latest_long' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
|
|
1106
|
+
model?: 'deepgram/flux' | 'flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'speechmatics/standard' | 'speechmatics/enhanced' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'reson8/turns' | 'azure/fast' | 'azure/realtime' | 'google/latest_long' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
|
|
1044
1107
|
}
|
|
1045
1108
|
export interface TranscriptionEngineAConfig {
|
|
1046
1109
|
/**
|
|
@@ -1317,8 +1380,8 @@ export interface TranscriptionStartRequest {
|
|
|
1317
1380
|
* Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
1318
1381
|
* `Telnyx` are supported for backward compatibility.
|
|
1319
1382
|
*/
|
|
1320
|
-
transcription_engine?: 'Google' | 'Telnyx' | 'Deepgram' | 'Azure' | 'xAI' | 'AssemblyAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'A' | 'B';
|
|
1321
|
-
transcription_engine_config?: TranscriptionEngineGoogleConfig | TranscriptionEngineTelnyxConfig | TranscriptionEngineAzureConfig | TranscriptionEngineXaiConfig | TranscriptionEngineAssemblyaiConfig | TranscriptionEngineSpeechmaticsConfig | TranscriptionEngineSonioxConfig | TranscriptionEngineParakeetConfig | TranscriptionStartRequest.TranscriptionEngineHumainConfig | TranscriptionEngineAConfig | TranscriptionEngineBConfig | DeepgramNova2Config | DeepgramNova3Config;
|
|
1383
|
+
transcription_engine?: 'Google' | 'Telnyx' | 'Deepgram' | 'Azure' | 'xAI' | 'AssemblyAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'Reson8' | 'A' | 'B';
|
|
1384
|
+
transcription_engine_config?: TranscriptionEngineGoogleConfig | TranscriptionEngineTelnyxConfig | TranscriptionEngineAzureConfig | TranscriptionEngineXaiConfig | TranscriptionEngineAssemblyaiConfig | TranscriptionEngineSpeechmaticsConfig | TranscriptionEngineSonioxConfig | TranscriptionEngineParakeetConfig | TranscriptionStartRequest.TranscriptionEngineHumainConfig | TranscriptionStartRequest.TranscriptionEngineReson8Config | TranscriptionEngineAConfig | TranscriptionEngineBConfig | DeepgramNova2Config | DeepgramNova3Config;
|
|
1322
1385
|
/**
|
|
1323
1386
|
* Indicates which leg of the call will be transcribed. Use `inbound` for the leg
|
|
1324
1387
|
* that requested the transcription, `outbound` for the other leg, and `both` for
|
|
@@ -1342,6 +1405,21 @@ export declare namespace TranscriptionStartRequest {
|
|
|
1342
1405
|
*/
|
|
1343
1406
|
transcription_model?: 'humain/realtime';
|
|
1344
1407
|
}
|
|
1408
|
+
interface TranscriptionEngineReson8Config {
|
|
1409
|
+
/**
|
|
1410
|
+
* The language of the audio to be transcribed. `auto` (the default, also applied
|
|
1411
|
+
* when `language` is omitted) enables automatic language detection.
|
|
1412
|
+
*/
|
|
1413
|
+
language?: 'auto' | 'nl' | 'en' | 'fr' | 'fy' | 'de' | 'it' | 'pl' | 'pt' | 'es' | 'sv';
|
|
1414
|
+
/**
|
|
1415
|
+
* Engine identifier for Reson8 transcription service
|
|
1416
|
+
*/
|
|
1417
|
+
transcription_engine?: 'Reson8';
|
|
1418
|
+
/**
|
|
1419
|
+
* The model to use for transcription.
|
|
1420
|
+
*/
|
|
1421
|
+
transcription_model?: 'reson8/turns';
|
|
1422
|
+
}
|
|
1345
1423
|
}
|
|
1346
1424
|
/**
|
|
1347
1425
|
* Messages sent by an end user
|
|
@@ -1408,6 +1486,9 @@ export interface ActionLeaveQueueResponse {
|
|
|
1408
1486
|
export interface ActionPauseRecordingResponse {
|
|
1409
1487
|
data?: CallControlCommandResult;
|
|
1410
1488
|
}
|
|
1489
|
+
export interface ActionPayResponse {
|
|
1490
|
+
data?: CallControlCommandResult;
|
|
1491
|
+
}
|
|
1411
1492
|
export interface ActionReferResponse {
|
|
1412
1493
|
data?: CallControlCommandResult;
|
|
1413
1494
|
}
|
|
@@ -1549,47 +1630,6 @@ export interface ActionStartAIAssistantParams {
|
|
|
1549
1630
|
* ignore this field.
|
|
1550
1631
|
*/
|
|
1551
1632
|
transcription?: TranscriptionConfig;
|
|
1552
|
-
/**
|
|
1553
|
-
* The voice to be used by the voice assistant. Currently we support ElevenLabs,
|
|
1554
|
-
* Telnyx and AWS voices.
|
|
1555
|
-
*
|
|
1556
|
-
* **Supported Providers:**
|
|
1557
|
-
*
|
|
1558
|
-
* - **AWS:** Use `AWS.Polly.<VoiceId>` (e.g., `AWS.Polly.Joanna`). For neural
|
|
1559
|
-
* voices, which provide more realistic, human-like speech, append `-Neural` to
|
|
1560
|
-
* the `VoiceId` (e.g., `AWS.Polly.Joanna-Neural`). Check the
|
|
1561
|
-
* [available voices](https://docs.aws.amazon.com/polly/latest/dg/available-voices.html)
|
|
1562
|
-
* for compatibility.
|
|
1563
|
-
* - **Azure:** Use `Azure.<VoiceId>. (e.g. Azure.en-CA-ClaraNeural,
|
|
1564
|
-
* Azure.en-CA-LiamNeural, Azure.en-US-BrianMultilingualNeural,
|
|
1565
|
-
* Azure.en-US-Ava:DragonHDLatestNeural. For a complete list of voices, go to
|
|
1566
|
-
* [Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).)
|
|
1567
|
-
* - **ElevenLabs:** Use `ElevenLabs.<ModelId>.<VoiceId>` (e.g.,
|
|
1568
|
-
* `ElevenLabs.BaseModel.John`). The `ModelId` part is optional. To use
|
|
1569
|
-
* ElevenLabs, you must provide your ElevenLabs API key as an integration secret
|
|
1570
|
-
* under `"voice_settings": {"api_key_ref": "<secret_id>"}`. See
|
|
1571
|
-
* [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
1572
|
-
* for details. Check
|
|
1573
|
-
* [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
1574
|
-
* - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
1575
|
-
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1576
|
-
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
1577
|
-
* `Max`, `TTS2`.
|
|
1578
|
-
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
1579
|
-
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
1580
|
-
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
1581
|
-
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1582
|
-
* `ara`, `rex`, `sal`, `leo`.
|
|
1583
|
-
* - **Humain:** Use `Humain.<VoiceId>` (e.g., `Humain.sara-ar`). Available voices:
|
|
1584
|
-
* `sara-en`, `abdulaziz-en`, `sara-ar`, `abdulaziz-ar`, `nourah-ar`,
|
|
1585
|
-
* `abdullah-ar`. Native Arabic (Saudi dialect) and English voices only — no
|
|
1586
|
-
* `ModelId` segment.
|
|
1587
|
-
*/
|
|
1588
|
-
voice?: string;
|
|
1589
|
-
/**
|
|
1590
|
-
* The settings associated with the voice selected
|
|
1591
|
-
*/
|
|
1592
|
-
voice_settings?: ElevenLabsVoiceSettings | TelnyxVoiceSettings | AwsVoiceSettings | Shared.AzureVoiceSettings | Shared.RimeVoiceSettings | Shared.ResembleVoiceSettings | Shared.XaiVoiceSettings;
|
|
1593
1633
|
}
|
|
1594
1634
|
export interface ActionStopAIAssistantParams {
|
|
1595
1635
|
/**
|
|
@@ -3070,8 +3110,8 @@ export interface ActionStartTranscriptionParams {
|
|
|
3070
3110
|
* Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
3071
3111
|
* `Telnyx` are supported for backward compatibility.
|
|
3072
3112
|
*/
|
|
3073
|
-
transcription_engine?: 'Google' | 'Telnyx' | 'Deepgram' | 'Azure' | 'xAI' | 'AssemblyAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'A' | 'B';
|
|
3074
|
-
transcription_engine_config?: TranscriptionEngineGoogleConfig | TranscriptionEngineTelnyxConfig | TranscriptionEngineAzureConfig | TranscriptionEngineXaiConfig | TranscriptionEngineAssemblyaiConfig | TranscriptionEngineSpeechmaticsConfig | TranscriptionEngineSonioxConfig | TranscriptionEngineParakeetConfig | ActionStartTranscriptionParams.TranscriptionEngineHumainConfig | TranscriptionEngineAConfig | TranscriptionEngineBConfig | DeepgramNova2Config | DeepgramNova3Config;
|
|
3113
|
+
transcription_engine?: 'Google' | 'Telnyx' | 'Deepgram' | 'Azure' | 'xAI' | 'AssemblyAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'Reson8' | 'A' | 'B';
|
|
3114
|
+
transcription_engine_config?: TranscriptionEngineGoogleConfig | TranscriptionEngineTelnyxConfig | TranscriptionEngineAzureConfig | TranscriptionEngineXaiConfig | TranscriptionEngineAssemblyaiConfig | TranscriptionEngineSpeechmaticsConfig | TranscriptionEngineSonioxConfig | TranscriptionEngineParakeetConfig | ActionStartTranscriptionParams.TranscriptionEngineHumainConfig | ActionStartTranscriptionParams.TranscriptionEngineReson8Config | TranscriptionEngineAConfig | TranscriptionEngineBConfig | DeepgramNova2Config | DeepgramNova3Config;
|
|
3075
3115
|
/**
|
|
3076
3116
|
* Indicates which leg of the call will be transcribed. Use `inbound` for the leg
|
|
3077
3117
|
* that requested the transcription, `outbound` for the other leg, and `both` for
|
|
@@ -3095,6 +3135,21 @@ export declare namespace ActionStartTranscriptionParams {
|
|
|
3095
3135
|
*/
|
|
3096
3136
|
transcription_model?: 'humain/realtime';
|
|
3097
3137
|
}
|
|
3138
|
+
interface TranscriptionEngineReson8Config {
|
|
3139
|
+
/**
|
|
3140
|
+
* The language of the audio to be transcribed. `auto` (the default, also applied
|
|
3141
|
+
* when `language` is omitted) enables automatic language detection.
|
|
3142
|
+
*/
|
|
3143
|
+
language?: 'auto' | 'nl' | 'en' | 'fr' | 'fy' | 'de' | 'it' | 'pl' | 'pt' | 'es' | 'sv';
|
|
3144
|
+
/**
|
|
3145
|
+
* Engine identifier for Reson8 transcription service
|
|
3146
|
+
*/
|
|
3147
|
+
transcription_engine?: 'Reson8';
|
|
3148
|
+
/**
|
|
3149
|
+
* The model to use for transcription.
|
|
3150
|
+
*/
|
|
3151
|
+
transcription_model?: 'reson8/turns';
|
|
3152
|
+
}
|
|
3098
3153
|
}
|
|
3099
3154
|
export interface ActionStopTranscriptionParams {
|
|
3100
3155
|
/**
|
|
@@ -3429,6 +3484,12 @@ export interface ActionAddAIAssistantMessagesParams {
|
|
|
3429
3484
|
* The messages to add to the conversation.
|
|
3430
3485
|
*/
|
|
3431
3486
|
messages?: Array<UserMessage | AssistantMessage | ToolMessage | SystemMessage | DeveloperMessage>;
|
|
3487
|
+
/**
|
|
3488
|
+
* When `true`, the injected messages immediately trigger an assistant
|
|
3489
|
+
* response/turn instead of waiting for the next natural turn or idle timeout. This
|
|
3490
|
+
* may interrupt a user who is still speaking.
|
|
3491
|
+
*/
|
|
3492
|
+
trigger_response?: boolean;
|
|
3432
3493
|
}
|
|
3433
3494
|
export interface ActionJoinAIAssistantParams {
|
|
3434
3495
|
/**
|
|
@@ -3666,7 +3727,121 @@ export interface ActionStopConversationRelayParams {
|
|
|
3666
3727
|
*/
|
|
3667
3728
|
command_id?: string;
|
|
3668
3729
|
}
|
|
3730
|
+
export interface ActionPayParams {
|
|
3731
|
+
/**
|
|
3732
|
+
* Amount to charge. Required when `transaction_type` is `charge`.
|
|
3733
|
+
*/
|
|
3734
|
+
amount?: number;
|
|
3735
|
+
/**
|
|
3736
|
+
* Base64-encoded state included in subsequent webhooks.
|
|
3737
|
+
*/
|
|
3738
|
+
client_state?: string;
|
|
3739
|
+
/**
|
|
3740
|
+
* Idempotency key for the command. Telnyx ignores a duplicate command with the
|
|
3741
|
+
* same `command_id` for the same `call_control_id`.
|
|
3742
|
+
*/
|
|
3743
|
+
command_id?: string;
|
|
3744
|
+
/**
|
|
3745
|
+
* Name of the Pay connector used to process the transaction.
|
|
3746
|
+
*/
|
|
3747
|
+
connector_name?: string;
|
|
3748
|
+
/**
|
|
3749
|
+
* Currency used for the transaction. Pay currently supports USD only.
|
|
3750
|
+
*/
|
|
3751
|
+
currency?: 'USD' | 'usd';
|
|
3752
|
+
/**
|
|
3753
|
+
* Optional description forwarded with the payment transaction.
|
|
3754
|
+
*/
|
|
3755
|
+
description?: string;
|
|
3756
|
+
/**
|
|
3757
|
+
* Time in milliseconds to wait between consecutive DTMF digits.
|
|
3758
|
+
*/
|
|
3759
|
+
inter_digit_timeout_millis?: number;
|
|
3760
|
+
/**
|
|
3761
|
+
* Language used for payment prompts.
|
|
3762
|
+
*/
|
|
3763
|
+
language?: string;
|
|
3764
|
+
/**
|
|
3765
|
+
* Maximum number of attempts for each payment collection step.
|
|
3766
|
+
*/
|
|
3767
|
+
max_attempts?: number;
|
|
3768
|
+
/**
|
|
3769
|
+
* Metadata forwarded to the Pay connector.
|
|
3770
|
+
*/
|
|
3771
|
+
metadata?: {
|
|
3772
|
+
[key: string]: unknown;
|
|
3773
|
+
};
|
|
3774
|
+
/**
|
|
3775
|
+
* Additional parameters forwarded to the Pay connector.
|
|
3776
|
+
*/
|
|
3777
|
+
parameters?: {
|
|
3778
|
+
[key: string]: unknown;
|
|
3779
|
+
};
|
|
3780
|
+
/**
|
|
3781
|
+
* Payment method to collect.
|
|
3782
|
+
*/
|
|
3783
|
+
payment_method?: 'credit-card' | 'ach-debit';
|
|
3784
|
+
/**
|
|
3785
|
+
* Existing payment token. When supplied, payment-detail collection is skipped.
|
|
3786
|
+
*/
|
|
3787
|
+
payment_token?: string;
|
|
3788
|
+
/**
|
|
3789
|
+
* Custom text-to-speech prompts keyed by payment collection step.
|
|
3790
|
+
*/
|
|
3791
|
+
prompts?: ActionPayParams.Prompts;
|
|
3792
|
+
/**
|
|
3793
|
+
* Speech synthesis service level used for payment prompts. Pay defaults to
|
|
3794
|
+
* `premium`.
|
|
3795
|
+
*/
|
|
3796
|
+
service_level?: string;
|
|
3797
|
+
/**
|
|
3798
|
+
* Time in milliseconds to wait for DTMF input for each collection step.
|
|
3799
|
+
*/
|
|
3800
|
+
timeout_millis?: number;
|
|
3801
|
+
/**
|
|
3802
|
+
* Transaction to perform. If omitted, Pay infers `tokenize` when `amount` is
|
|
3803
|
+
* absent or zero and `charge` when `amount` is positive.
|
|
3804
|
+
*/
|
|
3805
|
+
transaction_type?: 'charge' | 'tokenize';
|
|
3806
|
+
/**
|
|
3807
|
+
* Voice used for payment prompts. Accepts `male`, `female`, or a provider voice in
|
|
3808
|
+
* `<Provider>.<Model>.<VoiceId>` format, for example `AWS.Polly.Joanna` or
|
|
3809
|
+
* `Telnyx.KokoroTTS.af`.
|
|
3810
|
+
*/
|
|
3811
|
+
voice?: string;
|
|
3812
|
+
}
|
|
3813
|
+
export declare namespace ActionPayParams {
|
|
3814
|
+
/**
|
|
3815
|
+
* Custom text-to-speech prompts keyed by payment collection step.
|
|
3816
|
+
*/
|
|
3817
|
+
interface Prompts {
|
|
3818
|
+
/**
|
|
3819
|
+
* A default prompt string or an ordered list of qualified prompts.
|
|
3820
|
+
*/
|
|
3821
|
+
'bank-account-number'?: ActionsAPI.PayPromptValue;
|
|
3822
|
+
/**
|
|
3823
|
+
* A default prompt string or an ordered list of qualified prompts.
|
|
3824
|
+
*/
|
|
3825
|
+
'bank-routing-number'?: ActionsAPI.PayPromptValue;
|
|
3826
|
+
/**
|
|
3827
|
+
* A default prompt string or an ordered list of qualified prompts.
|
|
3828
|
+
*/
|
|
3829
|
+
'expiration-date'?: ActionsAPI.PayPromptValue;
|
|
3830
|
+
/**
|
|
3831
|
+
* A default prompt string or an ordered list of qualified prompts.
|
|
3832
|
+
*/
|
|
3833
|
+
'payment-card-number'?: ActionsAPI.PayPromptValue;
|
|
3834
|
+
/**
|
|
3835
|
+
* A default prompt string or an ordered list of qualified prompts.
|
|
3836
|
+
*/
|
|
3837
|
+
'postal-code'?: ActionsAPI.PayPromptValue;
|
|
3838
|
+
/**
|
|
3839
|
+
* A default prompt string or an ordered list of qualified prompts.
|
|
3840
|
+
*/
|
|
3841
|
+
'security-code'?: ActionsAPI.PayPromptValue;
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3669
3844
|
export declare namespace Actions {
|
|
3670
|
-
export { type AIAssistantJoinParticipant as AIAssistantJoinParticipant, type AssistantMessage as AssistantMessage, type AwsVoiceSettings as AwsVoiceSettings, type CallControlCommandResult as CallControlCommandResult, type CallControlCommandResultWithConversationID as CallControlCommandResultWithConversationID, type ConversationRelayInterruptible as ConversationRelayInterruptible, type DeepgramNova2Config as DeepgramNova2Config, type DeepgramNova3Config as DeepgramNova3Config, type DeveloperMessage as DeveloperMessage, type ElevenLabsVoiceSettings as ElevenLabsVoiceSettings, type GoogleTranscriptionLanguage as GoogleTranscriptionLanguage, type InterruptionSettings as InterruptionSettings, type Loopcount as Loopcount, type StopRecordingRequest as StopRecordingRequest, type SystemMessage as SystemMessage, type TelnyxTranscriptionLanguage as TelnyxTranscriptionLanguage, type TelnyxVoiceSettings as TelnyxVoiceSettings, type ToolMessage as ToolMessage, type TranscriptionConfig as TranscriptionConfig, type TranscriptionEngineAConfig as TranscriptionEngineAConfig, type TranscriptionEngineAssemblyaiConfig as TranscriptionEngineAssemblyaiConfig, type TranscriptionEngineAzureConfig as TranscriptionEngineAzureConfig, type TranscriptionEngineBConfig as TranscriptionEngineBConfig, type TranscriptionEngineDeepgramConfig as TranscriptionEngineDeepgramConfig, type TranscriptionEngineGoogleConfig as TranscriptionEngineGoogleConfig, type TranscriptionEngineParakeetConfig as TranscriptionEngineParakeetConfig, type TranscriptionEngineSonioxConfig as TranscriptionEngineSonioxConfig, type TranscriptionEngineSpeechmaticsConfig as TranscriptionEngineSpeechmaticsConfig, type TranscriptionEngineTelnyxConfig as TranscriptionEngineTelnyxConfig, type TranscriptionEngineXaiConfig as TranscriptionEngineXaiConfig, type TranscriptionStartRequest as TranscriptionStartRequest, type UserMessage as UserMessage, type ActionAddAIAssistantMessagesResponse as ActionAddAIAssistantMessagesResponse, type ActionAnswerResponse as ActionAnswerResponse, type ActionBridgeResponse as ActionBridgeResponse, type ActionEnqueueResponse as ActionEnqueueResponse, type ActionGatherResponse as ActionGatherResponse, type ActionGatherUsingAIResponse as ActionGatherUsingAIResponse, type ActionGatherUsingAudioResponse as ActionGatherUsingAudioResponse, type ActionGatherUsingSpeakResponse as ActionGatherUsingSpeakResponse, type ActionHangupResponse as ActionHangupResponse, type ActionJoinAIAssistantResponse as ActionJoinAIAssistantResponse, type ActionLeaveQueueResponse as ActionLeaveQueueResponse, type ActionPauseRecordingResponse as ActionPauseRecordingResponse, type ActionReferResponse as ActionReferResponse, type ActionRejectResponse as ActionRejectResponse, type ActionResumeRecordingResponse as ActionResumeRecordingResponse, type ActionSendDtmfResponse as ActionSendDtmfResponse, type ActionSendSipInfoResponse as ActionSendSipInfoResponse, type ActionSpeakResponse as ActionSpeakResponse, type ActionStartAIAssistantResponse as ActionStartAIAssistantResponse, type ActionStartConversationRelayResponse as ActionStartConversationRelayResponse, type ActionStartForkingResponse as ActionStartForkingResponse, type ActionStartNoiseSuppressionResponse as ActionStartNoiseSuppressionResponse, type ActionStartPlaybackResponse as ActionStartPlaybackResponse, type ActionStartRecordingResponse as ActionStartRecordingResponse, type ActionStartSiprecResponse as ActionStartSiprecResponse, type ActionStartStreamingResponse as ActionStartStreamingResponse, type ActionStartTranscriptionResponse as ActionStartTranscriptionResponse, type ActionStopAIAssistantResponse as ActionStopAIAssistantResponse, type ActionStopConversationRelayResponse as ActionStopConversationRelayResponse, type ActionStopForkingResponse as ActionStopForkingResponse, type ActionStopGatherResponse as ActionStopGatherResponse, type ActionStopNoiseSuppressionResponse as ActionStopNoiseSuppressionResponse, type ActionStopPlaybackResponse as ActionStopPlaybackResponse, type ActionStopRecordingResponse as ActionStopRecordingResponse, type ActionStopSiprecResponse as ActionStopSiprecResponse, type ActionStopStreamingResponse as ActionStopStreamingResponse, type ActionStopTranscriptionResponse as ActionStopTranscriptionResponse, type ActionSwitchSupervisorRoleResponse as ActionSwitchSupervisorRoleResponse, type ActionTransferResponse as ActionTransferResponse, type ActionUpdateClientStateResponse as ActionUpdateClientStateResponse, type ActionStartAIAssistantParams as ActionStartAIAssistantParams, type ActionStopAIAssistantParams as ActionStopAIAssistantParams, type ActionAnswerParams as ActionAnswerParams, type ActionBridgeParams as ActionBridgeParams, type ActionUpdateClientStateParams as ActionUpdateClientStateParams, type ActionEnqueueParams as ActionEnqueueParams, type ActionStartForkingParams as ActionStartForkingParams, type ActionStopForkingParams as ActionStopForkingParams, type ActionGatherParams as ActionGatherParams, type ActionStopGatherParams as ActionStopGatherParams, type ActionGatherUsingAIParams as ActionGatherUsingAIParams, type ActionGatherUsingAudioParams as ActionGatherUsingAudioParams, type ActionGatherUsingSpeakParams as ActionGatherUsingSpeakParams, type ActionHangupParams as ActionHangupParams, type ActionLeaveQueueParams as ActionLeaveQueueParams, type ActionStartPlaybackParams as ActionStartPlaybackParams, type ActionStopPlaybackParams as ActionStopPlaybackParams, type ActionPauseRecordingParams as ActionPauseRecordingParams, type ActionResumeRecordingParams as ActionResumeRecordingParams, type ActionStartRecordingParams as ActionStartRecordingParams, type ActionStopRecordingParams as ActionStopRecordingParams, type ActionReferParams as ActionReferParams, type ActionRejectParams as ActionRejectParams, type ActionSendDtmfParams as ActionSendDtmfParams, type ActionSendSipInfoParams as ActionSendSipInfoParams, type ActionStartSiprecParams as ActionStartSiprecParams, type ActionStopSiprecParams as ActionStopSiprecParams, type ActionSpeakParams as ActionSpeakParams, type ActionStartStreamingParams as ActionStartStreamingParams, type ActionStopStreamingParams as ActionStopStreamingParams, type ActionStartNoiseSuppressionParams as ActionStartNoiseSuppressionParams, type ActionStopNoiseSuppressionParams as ActionStopNoiseSuppressionParams, type ActionSwitchSupervisorRoleParams as ActionSwitchSupervisorRoleParams, type ActionStartTranscriptionParams as ActionStartTranscriptionParams, type ActionStopTranscriptionParams as ActionStopTranscriptionParams, type ActionTransferParams as ActionTransferParams, type ActionAddAIAssistantMessagesParams as ActionAddAIAssistantMessagesParams, type ActionJoinAIAssistantParams as ActionJoinAIAssistantParams, type ActionStartConversationRelayParams as ActionStartConversationRelayParams, type ActionStopConversationRelayParams as ActionStopConversationRelayParams, };
|
|
3845
|
+
export { type AIAssistantJoinParticipant as AIAssistantJoinParticipant, type AssistantMessage as AssistantMessage, type AwsVoiceSettings as AwsVoiceSettings, type CallControlCommandResult as CallControlCommandResult, type CallControlCommandResultWithConversationID as CallControlCommandResultWithConversationID, type ConversationRelayInterruptible as ConversationRelayInterruptible, type DeepgramNova2Config as DeepgramNova2Config, type DeepgramNova3Config as DeepgramNova3Config, type DeveloperMessage as DeveloperMessage, type ElevenLabsVoiceSettings as ElevenLabsVoiceSettings, type GoogleTranscriptionLanguage as GoogleTranscriptionLanguage, type InterruptionSettings as InterruptionSettings, type Loopcount as Loopcount, type PayPromptValue as PayPromptValue, type StopRecordingRequest as StopRecordingRequest, type SystemMessage as SystemMessage, type TelnyxTranscriptionLanguage as TelnyxTranscriptionLanguage, type TelnyxVoiceSettings as TelnyxVoiceSettings, type ToolMessage as ToolMessage, type TranscriptionConfig as TranscriptionConfig, type TranscriptionEngineAConfig as TranscriptionEngineAConfig, type TranscriptionEngineAssemblyaiConfig as TranscriptionEngineAssemblyaiConfig, type TranscriptionEngineAzureConfig as TranscriptionEngineAzureConfig, type TranscriptionEngineBConfig as TranscriptionEngineBConfig, type TranscriptionEngineDeepgramConfig as TranscriptionEngineDeepgramConfig, type TranscriptionEngineGoogleConfig as TranscriptionEngineGoogleConfig, type TranscriptionEngineParakeetConfig as TranscriptionEngineParakeetConfig, type TranscriptionEngineSonioxConfig as TranscriptionEngineSonioxConfig, type TranscriptionEngineSpeechmaticsConfig as TranscriptionEngineSpeechmaticsConfig, type TranscriptionEngineTelnyxConfig as TranscriptionEngineTelnyxConfig, type TranscriptionEngineXaiConfig as TranscriptionEngineXaiConfig, type TranscriptionStartRequest as TranscriptionStartRequest, type UserMessage as UserMessage, type ActionAddAIAssistantMessagesResponse as ActionAddAIAssistantMessagesResponse, type ActionAnswerResponse as ActionAnswerResponse, type ActionBridgeResponse as ActionBridgeResponse, type ActionEnqueueResponse as ActionEnqueueResponse, type ActionGatherResponse as ActionGatherResponse, type ActionGatherUsingAIResponse as ActionGatherUsingAIResponse, type ActionGatherUsingAudioResponse as ActionGatherUsingAudioResponse, type ActionGatherUsingSpeakResponse as ActionGatherUsingSpeakResponse, type ActionHangupResponse as ActionHangupResponse, type ActionJoinAIAssistantResponse as ActionJoinAIAssistantResponse, type ActionLeaveQueueResponse as ActionLeaveQueueResponse, type ActionPauseRecordingResponse as ActionPauseRecordingResponse, type ActionPayResponse as ActionPayResponse, type ActionReferResponse as ActionReferResponse, type ActionRejectResponse as ActionRejectResponse, type ActionResumeRecordingResponse as ActionResumeRecordingResponse, type ActionSendDtmfResponse as ActionSendDtmfResponse, type ActionSendSipInfoResponse as ActionSendSipInfoResponse, type ActionSpeakResponse as ActionSpeakResponse, type ActionStartAIAssistantResponse as ActionStartAIAssistantResponse, type ActionStartConversationRelayResponse as ActionStartConversationRelayResponse, type ActionStartForkingResponse as ActionStartForkingResponse, type ActionStartNoiseSuppressionResponse as ActionStartNoiseSuppressionResponse, type ActionStartPlaybackResponse as ActionStartPlaybackResponse, type ActionStartRecordingResponse as ActionStartRecordingResponse, type ActionStartSiprecResponse as ActionStartSiprecResponse, type ActionStartStreamingResponse as ActionStartStreamingResponse, type ActionStartTranscriptionResponse as ActionStartTranscriptionResponse, type ActionStopAIAssistantResponse as ActionStopAIAssistantResponse, type ActionStopConversationRelayResponse as ActionStopConversationRelayResponse, type ActionStopForkingResponse as ActionStopForkingResponse, type ActionStopGatherResponse as ActionStopGatherResponse, type ActionStopNoiseSuppressionResponse as ActionStopNoiseSuppressionResponse, type ActionStopPlaybackResponse as ActionStopPlaybackResponse, type ActionStopRecordingResponse as ActionStopRecordingResponse, type ActionStopSiprecResponse as ActionStopSiprecResponse, type ActionStopStreamingResponse as ActionStopStreamingResponse, type ActionStopTranscriptionResponse as ActionStopTranscriptionResponse, type ActionSwitchSupervisorRoleResponse as ActionSwitchSupervisorRoleResponse, type ActionTransferResponse as ActionTransferResponse, type ActionUpdateClientStateResponse as ActionUpdateClientStateResponse, type ActionStartAIAssistantParams as ActionStartAIAssistantParams, type ActionStopAIAssistantParams as ActionStopAIAssistantParams, type ActionAnswerParams as ActionAnswerParams, type ActionBridgeParams as ActionBridgeParams, type ActionUpdateClientStateParams as ActionUpdateClientStateParams, type ActionEnqueueParams as ActionEnqueueParams, type ActionStartForkingParams as ActionStartForkingParams, type ActionStopForkingParams as ActionStopForkingParams, type ActionGatherParams as ActionGatherParams, type ActionStopGatherParams as ActionStopGatherParams, type ActionGatherUsingAIParams as ActionGatherUsingAIParams, type ActionGatherUsingAudioParams as ActionGatherUsingAudioParams, type ActionGatherUsingSpeakParams as ActionGatherUsingSpeakParams, type ActionHangupParams as ActionHangupParams, type ActionLeaveQueueParams as ActionLeaveQueueParams, type ActionStartPlaybackParams as ActionStartPlaybackParams, type ActionStopPlaybackParams as ActionStopPlaybackParams, type ActionPauseRecordingParams as ActionPauseRecordingParams, type ActionResumeRecordingParams as ActionResumeRecordingParams, type ActionStartRecordingParams as ActionStartRecordingParams, type ActionStopRecordingParams as ActionStopRecordingParams, type ActionReferParams as ActionReferParams, type ActionRejectParams as ActionRejectParams, type ActionSendDtmfParams as ActionSendDtmfParams, type ActionSendSipInfoParams as ActionSendSipInfoParams, type ActionStartSiprecParams as ActionStartSiprecParams, type ActionStopSiprecParams as ActionStopSiprecParams, type ActionSpeakParams as ActionSpeakParams, type ActionStartStreamingParams as ActionStartStreamingParams, type ActionStopStreamingParams as ActionStopStreamingParams, type ActionStartNoiseSuppressionParams as ActionStartNoiseSuppressionParams, type ActionStopNoiseSuppressionParams as ActionStopNoiseSuppressionParams, type ActionSwitchSupervisorRoleParams as ActionSwitchSupervisorRoleParams, type ActionStartTranscriptionParams as ActionStartTranscriptionParams, type ActionStopTranscriptionParams as ActionStopTranscriptionParams, type ActionTransferParams as ActionTransferParams, type ActionAddAIAssistantMessagesParams as ActionAddAIAssistantMessagesParams, type ActionJoinAIAssistantParams as ActionJoinAIAssistantParams, type ActionStartConversationRelayParams as ActionStartConversationRelayParams, type ActionStopConversationRelayParams as ActionStopConversationRelayParams, type ActionPayParams as ActionPayParams, };
|
|
3671
3846
|
}
|
|
3672
3847
|
//# sourceMappingURL=actions.d.mts.map
|