telnyx 7.25.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 +14 -0
- package/client.d.mts +25 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -10
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -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 +16 -7
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +16 -7
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +383 -22
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +383 -22
- 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/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +18 -1
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +18 -1
- 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 +200 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +200 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +95 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +91 -0
- package/resources/ai/avatars.mjs.map +1 -0
- package/resources/ai/chat.d.mts +20 -6
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +20 -6
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +8 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +8 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/index.d.mts +3 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +3 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +20 -6
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +20 -6
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +30 -2
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +30 -2
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +260 -25
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +260 -25
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +24 -14
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +24 -14
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +8 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +8 -0
- 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 +11 -9
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +11 -9
- 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/phone-numbers.d.mts +0 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +0 -4
- package/resources/dir/phone-numbers.d.ts.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/email-templates.d.mts +109 -18
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +109 -18
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +5 -1
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +5 -1
- package/resources/email-templates.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +8 -2
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +8 -2
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/dir.js +8 -2
- package/resources/enterprises/dir.js.map +1 -1
- package/resources/enterprises/dir.mjs +8 -2
- package/resources/enterprises/dir.mjs.map +1 -1
- package/resources/enterprises/enterprises.d.mts +7 -5
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +7 -5
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +5 -3
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +5 -3
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.mts +94 -0
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
- package/resources/enterprises/reputation/external-verification.d.ts +94 -0
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
- package/resources/enterprises/reputation/external-verification.js +54 -0
- package/resources/enterprises/reputation/external-verification.js.map +1 -0
- package/resources/enterprises/reputation/external-verification.mjs +50 -0
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
- package/resources/enterprises/reputation/index.d.mts +3 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +3 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +3 -1
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -0
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +3 -2
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +3 -2
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.mts +197 -4
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +197 -4
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +58 -2
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +58 -2
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/remediation.d.mts +3 -2
- package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
- package/resources/enterprises/reputation/remediation.d.ts +3 -2
- package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +39 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +39 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +22 -0
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +22 -0
- package/resources/enterprises/reputation/reputation.mjs.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/global-ip-assignment-health.d.mts +4 -4
- package/resources/global-ip-assignment-health.d.mts.map +1 -1
- package/resources/global-ip-assignment-health.d.ts +4 -4
- package/resources/global-ip-assignment-health.d.ts.map +1 -1
- package/resources/global-ip-assignments-usage.d.mts +4 -4
- package/resources/global-ip-assignments-usage.d.mts.map +1 -1
- package/resources/global-ip-assignments-usage.d.ts +4 -4
- package/resources/global-ip-assignments-usage.d.ts.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +36 -6
- package/resources/ip-connections.d.mts.map +1 -1
- package/resources/ip-connections.d.ts +36 -6
- package/resources/ip-connections.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +4 -1
- package/resources/llm-token-gateway/index.d.mts.map +1 -1
- package/resources/llm-token-gateway/index.d.ts +4 -1
- package/resources/llm-token-gateway/index.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.js +7 -1
- package/resources/llm-token-gateway/index.js.map +1 -1
- package/resources/llm-token-gateway/index.mjs +4 -1
- package/resources/llm-token-gateway/index.mjs.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.js +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs +13 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -1
- package/resources/llm-token-gateway/spend.d.mts +223 -0
- package/resources/llm-token-gateway/spend.d.mts.map +1 -0
- package/resources/llm-token-gateway/spend.d.ts +223 -0
- package/resources/llm-token-gateway/spend.d.ts.map +1 -0
- package/resources/llm-token-gateway/spend.js +56 -0
- package/resources/llm-token-gateway/spend.js.map +1 -0
- package/resources/llm-token-gateway/spend.mjs +52 -0
- package/resources/llm-token-gateway/spend.mjs.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.mts +577 -0
- package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.ts +577 -0
- package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-groups.js +139 -0
- package/resources/llm-token-gateway/token-groups.js.map +1 -0
- package/resources/llm-token-gateway/token-groups.mjs +135 -0
- package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.mts +318 -0
- package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.ts +318 -0
- package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-keys.js +127 -0
- package/resources/llm-token-gateway/token-keys.js.map +1 -0
- package/resources/llm-token-gateway/token-keys.mjs +123 -0
- package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +205 -146
- package/resources/llm-token-gateway/usage.d.mts.map +1 -1
- package/resources/llm-token-gateway/usage.d.ts +205 -146
- package/resources/llm-token-gateway/usage.d.ts.map +1 -1
- package/resources/llm-token-gateway/usage.js +47 -15
- package/resources/llm-token-gateway/usage.js.map +1 -1
- package/resources/llm-token-gateway/usage.mjs +47 -15
- package/resources/llm-token-gateway/usage.mjs.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 +277 -14
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +277 -14
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +5 -4
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +5 -4
- 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/reputation/numbers.d.mts +10 -0
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +10 -0
- package/resources/reputation/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/sip-registration-status.d.mts +149 -0
- package/resources/sip-registration-status.d.mts.map +1 -0
- package/resources/sip-registration-status.d.ts +149 -0
- package/resources/sip-registration-status.d.ts.map +1 -0
- package/resources/sip-registration-status.js +32 -0
- package/resources/sip-registration-status.js.map +1 -0
- package/resources/sip-registration-status.mjs +28 -0
- package/resources/sip-registration-status.mjs.map +1 -0
- 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/texml/texml.d.mts +7 -3
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +7 -3
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -2
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -2
- package/resources/texml/texml.mjs.map +1 -1
- 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 +986 -71
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +986 -71
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.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 +2 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +2 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +5 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +2 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.js +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -1
- package/resources/whatsapp/signup.d.mts +128 -0
- package/resources/whatsapp/signup.d.mts.map +1 -0
- package/resources/whatsapp/signup.d.ts +128 -0
- package/resources/whatsapp/signup.d.ts.map +1 -0
- package/resources/whatsapp/signup.js +42 -0
- package/resources/whatsapp/signup.js.map +1 -0
- package/resources/whatsapp/signup.mjs +38 -0
- package/resources/whatsapp/signup.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +8 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +8 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +8 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +8 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +57 -4
- package/src/resources/addresses/addresses.ts +22 -2
- package/src/resources/ai/ai.ts +40 -3
- package/src/resources/ai/assistants/assistants.ts +455 -20
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/assistants/versions.ts +20 -1
- package/src/resources/ai/audio.ts +18 -5
- package/src/resources/ai/avatars.ts +252 -0
- package/src/resources/ai/chat.ts +20 -6
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/index.ts +14 -0
- package/src/resources/ai/memory/namespaces/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +4 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
- package/src/resources/ai/openai/chat.ts +20 -6
- package/src/resources/ai/tools.ts +35 -1
- package/src/resources/calls/actions.ts +346 -20
- package/src/resources/calls/calls.ts +26 -8
- package/src/resources/calls/index.ts +2 -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 +13 -8
- package/src/resources/dir/phone-numbers.ts +1 -6
- 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/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +8 -2
- package/src/resources/enterprises/enterprises.ts +7 -3
- package/src/resources/enterprises/index.ts +1 -0
- package/src/resources/enterprises/reputation/external-verification.ts +125 -0
- package/src/resources/enterprises/reputation/index.ts +12 -0
- package/src/resources/enterprises/reputation/loa.ts +3 -2
- package/src/resources/enterprises/reputation/numbers.ts +256 -3
- package/src/resources/enterprises/reputation/remediation.ts +3 -2
- package/src/resources/enterprises/reputation/reputation.ts +70 -0
- package/src/resources/enterprises/verify-email.ts +1 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
- package/src/resources/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +21 -2
- package/src/resources/ip-connections.ts +39 -6
- package/src/resources/llm-token-gateway/index.ts +38 -1
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +83 -1
- package/src/resources/llm-token-gateway/spend.ts +309 -0
- package/src/resources/llm-token-gateway/token-groups.ts +724 -0
- package/src/resources/llm-token-gateway/token-keys.ts +422 -0
- package/src/resources/llm-token-gateway/usage.ts +273 -149
- 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 +332 -15
- 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/reputation/numbers.ts +12 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/sip-registration-status.ts +188 -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/texml/texml.ts +7 -3
- 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 +1257 -96
- package/src/resources/whatsapp/hosted-signups.ts +221 -0
- package/src/resources/whatsapp/index.ts +16 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +6 -5
- package/src/resources/whatsapp/signup.ts +188 -0
- package/src/resources/whatsapp/whatsapp.ts +40 -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,128 @@
|
|
|
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 Signup extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
|
|
8
|
+
* `FAILURE`, newest first. Use the `errors` of a failed session to see why
|
|
9
|
+
* provisioning stopped.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const signupListResponse of client.whatsapp.signup.list()) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(query?: SignupListParams | null | undefined, options?: RequestOptions): PagePromise<SignupListResponsesDefaultFlatPagination, SignupListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve the current state and status of a WhatsApp Embedded Signup session.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const response =
|
|
26
|
+
* await client.whatsapp.signup.retrieveStatus('id');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieveStatus(id: string, options?: RequestOptions): APIPromise<SignupRetrieveStatusResponse>;
|
|
30
|
+
}
|
|
31
|
+
export type SignupListResponsesDefaultFlatPagination = DefaultFlatPagination<SignupListResponse>;
|
|
32
|
+
export interface SignupListResponse {
|
|
33
|
+
created_at?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Tech provider customer reference submitted with the signup
|
|
36
|
+
*/
|
|
37
|
+
customer_id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Errors recorded during provisioning
|
|
40
|
+
*/
|
|
41
|
+
errors?: Array<string>;
|
|
42
|
+
record_type?: 'whatsapp_session_id';
|
|
43
|
+
/**
|
|
44
|
+
* Signup session ID
|
|
45
|
+
*/
|
|
46
|
+
session_id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
|
|
49
|
+
* skipped for coexistence signups.
|
|
50
|
+
*/
|
|
51
|
+
state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
|
|
52
|
+
/**
|
|
53
|
+
* `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
|
|
54
|
+
* finished provisioning, and `FAILURE` stopped at `state`.
|
|
55
|
+
*/
|
|
56
|
+
status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
|
|
57
|
+
updated_at?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Telnyx user ID that owns the signup session
|
|
60
|
+
*/
|
|
61
|
+
user_id?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Meta WhatsApp Business Account ID
|
|
64
|
+
*/
|
|
65
|
+
waba_id?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface SignupRetrieveStatusResponse {
|
|
68
|
+
data?: SignupRetrieveStatusResponse.Data;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace SignupRetrieveStatusResponse {
|
|
71
|
+
interface Data {
|
|
72
|
+
created_at?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Tech provider customer reference submitted with the signup
|
|
75
|
+
*/
|
|
76
|
+
customer_id?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Errors recorded during provisioning
|
|
79
|
+
*/
|
|
80
|
+
errors?: Array<string>;
|
|
81
|
+
record_type?: 'whatsapp_session_id';
|
|
82
|
+
/**
|
|
83
|
+
* Signup session ID
|
|
84
|
+
*/
|
|
85
|
+
session_id?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
|
|
88
|
+
* skipped for coexistence signups.
|
|
89
|
+
*/
|
|
90
|
+
state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
|
|
91
|
+
/**
|
|
92
|
+
* `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
|
|
93
|
+
* finished provisioning, and `FAILURE` stopped at `state`.
|
|
94
|
+
*/
|
|
95
|
+
status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
|
|
96
|
+
updated_at?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Telnyx user ID that owns the signup session
|
|
99
|
+
*/
|
|
100
|
+
user_id?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Meta WhatsApp Business Account ID
|
|
103
|
+
*/
|
|
104
|
+
waba_id?: string;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export interface SignupListParams extends DefaultFlatPaginationParams {
|
|
108
|
+
/**
|
|
109
|
+
* Return sessions created at or after this time (RFC 3339)
|
|
110
|
+
*/
|
|
111
|
+
'filter[created_at][gte]'?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Return sessions created at or before this time (RFC 3339)
|
|
114
|
+
*/
|
|
115
|
+
'filter[created_at][lte]'?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Filter by the tech provider customer reference
|
|
118
|
+
*/
|
|
119
|
+
'filter[customer_id]'?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Filter by Meta WABA ID
|
|
122
|
+
*/
|
|
123
|
+
'filter[waba_id]'?: string;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace Signup {
|
|
126
|
+
export { type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=signup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/signup.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,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAO5E;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAG/F;AAED,MAA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AE,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;QAE1D,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.Signup = 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 Signup extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
|
|
11
|
+
* `FAILURE`, newest first. Use the `errors` of a failed session to see why
|
|
12
|
+
* provisioning stopped.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Automatically fetches more pages as needed.
|
|
17
|
+
* for await (const signupListResponse of client.whatsapp.signup.list()) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.getAPIList('/whatsapp/signup', (pagination_1.DefaultFlatPagination), {
|
|
24
|
+
query,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve the current state and status of a WhatsApp Embedded Signup session.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response =
|
|
34
|
+
* await client.whatsapp.signup.retrieveStatus('id');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieveStatus(id, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/whatsapp/signup/${id}/status`, options);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Signup = Signup;
|
|
42
|
+
//# sourceMappingURL=signup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.js","sourceRoot":"","sources":["../../src/resources/whatsapp/signup.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAE7G,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,kCAAyC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AApCD,wBAoCC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 Signup extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
|
|
8
|
+
* `FAILURE`, newest first. Use the `errors` of a failed session to see why
|
|
9
|
+
* provisioning stopped.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const signupListResponse of client.whatsapp.signup.list()) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(query = {}, options) {
|
|
20
|
+
return this._client.getAPIList('/whatsapp/signup', (DefaultFlatPagination), {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve the current state and status of a WhatsApp Embedded Signup session.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response =
|
|
31
|
+
* await client.whatsapp.signup.retrieveStatus('id');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
retrieveStatus(id, options) {
|
|
35
|
+
return this._client.get(path `/whatsapp/signup/${id}/status`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=signup.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/signup.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,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,qBAAyC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -1,4 +1,8 @@
|
|
|
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";
|
|
4
|
+
import * as SignupAPI from "./signup.mjs";
|
|
5
|
+
import { Signup, SignupListParams, SignupListResponse, SignupListResponsesDefaultFlatPagination, SignupRetrieveStatusResponse } from "./signup.mjs";
|
|
2
6
|
import * as TemplatesAPI from "./templates.mjs";
|
|
3
7
|
import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates, WhatsappTemplateBodyComponent, WhatsappTemplateButtonsComponent, WhatsappTemplateCarouselComponent, WhatsappTemplateFooterComponent, WhatsappTemplateHeaderComponent } from "./templates.mjs";
|
|
4
8
|
import * as UserDataAPI from "./user-data.mjs";
|
|
@@ -12,11 +16,15 @@ export declare class Whatsapp extends APIResource {
|
|
|
12
16
|
templates: TemplatesAPI.Templates;
|
|
13
17
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
|
|
14
18
|
userData: UserDataAPI.UserData;
|
|
19
|
+
signup: SignupAPI.Signup;
|
|
20
|
+
hostedSignups: HostedSignupsAPI.HostedSignups;
|
|
15
21
|
}
|
|
16
22
|
export declare namespace Whatsapp {
|
|
17
23
|
export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
|
|
18
24
|
export { Templates as Templates, type WhatsappTemplateBodyComponent as WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent as WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent as WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent as WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent as WhatsappTemplateHeaderComponent, type TemplateCreateResponse as TemplateCreateResponse, type TemplateListParams as TemplateListParams, type TemplateCreateParams as TemplateCreateParams, };
|
|
19
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, };
|
|
20
26
|
export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
|
|
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, };
|
|
21
29
|
}
|
|
22
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,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,mBAAmB,kDAA8C;AAC7E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,EAC/B,gBAAgB,EACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,0CAAsC;AACjE,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,6CAA6C,EAC7C,mCAAmC,EACnC,2CAA2C,EAC3C,6CAA6C,EAC7C,sCAAsC,EACtC,uBAAuB,EACvB,YAAY,EACb,0CAAsC;AAEvC,qBAAa,QAAS,SAAQ,WAAW;IACvC,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;
|
|
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,gBAAgB,6BAAyB;AACrD,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,8CAA8C,EAC9C,4BAA4B,EAC5B,aAAa,EACd,6BAAyB;AAC1B,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,mBAAmB,kDAA8C;AAC7E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,EAC/B,gBAAgB,EACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,0CAAsC;AACjE,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB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qB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,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"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as HostedSignupsAPI from "./hosted-signups.js";
|
|
3
|
+
import { HostedSignupCreateParams, HostedSignupCreateResponse, HostedSignupListParams, HostedSignupListResponse, HostedSignupListResponsesDefaultFlatPagination, HostedSignupRetrieveResponse, HostedSignups } from "./hosted-signups.js";
|
|
4
|
+
import * as SignupAPI from "./signup.js";
|
|
5
|
+
import { Signup, SignupListParams, SignupListResponse, SignupListResponsesDefaultFlatPagination, SignupRetrieveStatusResponse } from "./signup.js";
|
|
2
6
|
import * as TemplatesAPI from "./templates.js";
|
|
3
7
|
import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates, WhatsappTemplateBodyComponent, WhatsappTemplateButtonsComponent, WhatsappTemplateCarouselComponent, WhatsappTemplateFooterComponent, WhatsappTemplateHeaderComponent } from "./templates.js";
|
|
4
8
|
import * as UserDataAPI from "./user-data.js";
|
|
@@ -12,11 +16,15 @@ export declare class Whatsapp extends APIResource {
|
|
|
12
16
|
templates: TemplatesAPI.Templates;
|
|
13
17
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
|
|
14
18
|
userData: UserDataAPI.UserData;
|
|
19
|
+
signup: SignupAPI.Signup;
|
|
20
|
+
hostedSignups: HostedSignupsAPI.HostedSignups;
|
|
15
21
|
}
|
|
16
22
|
export declare namespace Whatsapp {
|
|
17
23
|
export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
|
|
18
24
|
export { Templates as Templates, type WhatsappTemplateBodyComponent as WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent as WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent as WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent as WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent as WhatsappTemplateHeaderComponent, type TemplateCreateResponse as TemplateCreateResponse, type TemplateListParams as TemplateListParams, type TemplateCreateParams as TemplateCreateParams, };
|
|
19
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, };
|
|
20
26
|
export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
|
|
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, };
|
|
21
29
|
}
|
|
22
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,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,uBAA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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");
|
|
9
|
+
const SignupAPI = tslib_1.__importStar(require("./signup.js"));
|
|
10
|
+
const signup_1 = require("./signup.js");
|
|
7
11
|
const TemplatesAPI = tslib_1.__importStar(require("./templates.js"));
|
|
8
12
|
const templates_1 = require("./templates.js");
|
|
9
13
|
const UserDataAPI = tslib_1.__importStar(require("./user-data.js"));
|
|
@@ -19,6 +23,8 @@ class Whatsapp extends resource_1.APIResource {
|
|
|
19
23
|
this.templates = new TemplatesAPI.Templates(this._client);
|
|
20
24
|
this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
21
25
|
this.userData = new UserDataAPI.UserData(this._client);
|
|
26
|
+
this.signup = new SignupAPI.Signup(this._client);
|
|
27
|
+
this.hostedSignups = new HostedSignupsAPI.HostedSignups(this._client);
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
30
|
exports.Whatsapp = Whatsapp;
|
|
@@ -26,4 +32,6 @@ Whatsapp.BusinessAccounts = business_accounts_1.BusinessAccounts;
|
|
|
26
32
|
Whatsapp.Templates = templates_1.Templates;
|
|
27
33
|
Whatsapp.PhoneNumbers = phone_numbers_1.PhoneNumbers;
|
|
28
34
|
Whatsapp.UserData = user_data_1.UserData;
|
|
35
|
+
Whatsapp.Signup = signup_1.Signup;
|
|
36
|
+
Whatsapp.HostedSignups = hosted_signups_1.HostedSignups;
|
|
29
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,qEAA4C;AAC5C,8CAUqB;AACrB,oEAA2C;AAC3C,8CAMqB;AACr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AAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AATD,4BASC;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,9 @@
|
|
|
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";
|
|
5
|
+
import * as SignupAPI from "./signup.mjs";
|
|
6
|
+
import { Signup, } from "./signup.mjs";
|
|
3
7
|
import * as TemplatesAPI from "./templates.mjs";
|
|
4
8
|
import { Templates, } from "./templates.mjs";
|
|
5
9
|
import * as UserDataAPI from "./user-data.mjs";
|
|
@@ -15,10 +19,14 @@ export class Whatsapp extends APIResource {
|
|
|
15
19
|
this.templates = new TemplatesAPI.Templates(this._client);
|
|
16
20
|
this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
17
21
|
this.userData = new UserDataAPI.UserData(this._client);
|
|
22
|
+
this.signup = new SignupAPI.Signup(this._client);
|
|
23
|
+
this.hostedSignups = new HostedSignupsAPI.HostedSignups(this._client);
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
Whatsapp.BusinessAccounts = BusinessAccounts;
|
|
21
27
|
Whatsapp.Templates = Templates;
|
|
22
28
|
Whatsapp.PhoneNumbers = PhoneNumbers;
|
|
23
29
|
Whatsapp.UserData = UserData;
|
|
30
|
+
Whatsapp.Signup = Signup;
|
|
31
|
+
Whatsapp.HostedSignups = HostedSignups;
|
|
24
32
|
//# sourceMappingURL=whatsapp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAIL,SAAS,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;
|
|
1
|
+
{"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAOL,aAAa,GACd,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAIL,SAAS,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,
|
|
@@ -305,6 +311,7 @@ import {
|
|
|
305
311
|
} from './resources/email-events';
|
|
306
312
|
import {
|
|
307
313
|
EmailTemplate,
|
|
314
|
+
EmailTemplateCommon,
|
|
308
315
|
EmailTemplateCreateParams,
|
|
309
316
|
EmailTemplateListParams,
|
|
310
317
|
EmailTemplateRenderParams,
|
|
@@ -872,6 +879,11 @@ import {
|
|
|
872
879
|
SimCardOrders,
|
|
873
880
|
SimCardOrdersDefaultFlatPagination,
|
|
874
881
|
} from './resources/sim-card-orders';
|
|
882
|
+
import {
|
|
883
|
+
SipRegistrationStatus,
|
|
884
|
+
SipRegistrationStatusListParams,
|
|
885
|
+
SipRegistrationStatusListResponse,
|
|
886
|
+
} from './resources/sip-registration-status';
|
|
875
887
|
import {
|
|
876
888
|
SiprecConnectorCreateParams,
|
|
877
889
|
SiprecConnectorResponse,
|
|
@@ -915,6 +927,7 @@ import {
|
|
|
915
927
|
TelephonyCredential,
|
|
916
928
|
TelephonyCredentialCreateParams,
|
|
917
929
|
TelephonyCredentialCreateResponse,
|
|
930
|
+
TelephonyCredentialCreateTokenParams,
|
|
918
931
|
TelephonyCredentialCreateTokenResponse,
|
|
919
932
|
TelephonyCredentialDeleteResponse,
|
|
920
933
|
TelephonyCredentialListParams,
|
|
@@ -1056,6 +1069,7 @@ import {
|
|
|
1056
1069
|
CallAIGatherMessageHistoryUpdatedWebhookEvent,
|
|
1057
1070
|
CallAIGatherPartialResults,
|
|
1058
1071
|
CallAIGatherPartialResultsWebhookEvent,
|
|
1072
|
+
CallAnalyzedWebhookEvent,
|
|
1059
1073
|
CallAnswered,
|
|
1060
1074
|
CallAnsweredWebhookEvent,
|
|
1061
1075
|
CallBridged,
|
|
@@ -1065,6 +1079,7 @@ import {
|
|
|
1065
1079
|
CallConversationEndedWebhookEvent,
|
|
1066
1080
|
CallConversationInsightsGenerated,
|
|
1067
1081
|
CallConversationInsightsGeneratedWebhookEvent,
|
|
1082
|
+
CallConversationStartFailedWebhookEvent,
|
|
1068
1083
|
CallCostWebhookEvent,
|
|
1069
1084
|
CallDeepfakeDetectionErrorWebhookEvent,
|
|
1070
1085
|
CallDeepfakeDetectionResultWebhookEvent,
|
|
@@ -1171,8 +1186,10 @@ import {
|
|
|
1171
1186
|
MessagingInboundMessage,
|
|
1172
1187
|
NumberOrderStatusUpdate,
|
|
1173
1188
|
NumberOrderStatusUpdateWebhookEvent,
|
|
1189
|
+
NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
1190
|
+
NumberReputationNumberFlaggedWebhookEvent,
|
|
1191
|
+
NumberReputationNumberRemovedWebhookEvent,
|
|
1174
1192
|
OutboundMessage,
|
|
1175
|
-
RecordingAvailableWebhookEvent,
|
|
1176
1193
|
ReplacedLinkClick,
|
|
1177
1194
|
ReplacedLinkClickWebhookEvent,
|
|
1178
1195
|
SessionStatusChangedWebhookEvent,
|
|
@@ -1184,6 +1201,7 @@ import {
|
|
|
1184
1201
|
Webhooks,
|
|
1185
1202
|
WhatsappAccountUpdate,
|
|
1186
1203
|
WhatsappMessageEcho,
|
|
1204
|
+
WhatsappWabaAddedWebhookEvent,
|
|
1187
1205
|
} from './resources/webhooks';
|
|
1188
1206
|
import {
|
|
1189
1207
|
WellKnown,
|
|
@@ -1495,7 +1513,6 @@ import {
|
|
|
1495
1513
|
MeetingSessionResponse,
|
|
1496
1514
|
MeetingSessionRetrieveEventsParams,
|
|
1497
1515
|
MeetingSessionRetrieveEventsResponse,
|
|
1498
|
-
MeetingSessionRetrieveRecordingsResponse,
|
|
1499
1516
|
MeetingSessionRetrieveTranscriptParams,
|
|
1500
1517
|
MeetingSessionRetrieveTranscriptResponse,
|
|
1501
1518
|
MeetingSessionUpdateParams,
|
|
@@ -1621,6 +1638,7 @@ import {
|
|
|
1621
1638
|
} from './resources/payment/payment';
|
|
1622
1639
|
import { PhoneNumberBlocks } from './resources/phone-number-blocks/phone-number-blocks';
|
|
1623
1640
|
import {
|
|
1641
|
+
NumbersError73c9788e53,
|
|
1624
1642
|
NumbersPhoneNumberDetailed,
|
|
1625
1643
|
NumbersPhoneNumberDetailedsDefaultFlatPagination,
|
|
1626
1644
|
PhoneNumberDeleteResponse,
|
|
@@ -1791,6 +1809,7 @@ import {
|
|
|
1791
1809
|
TextToSpeechListVoicesResponse,
|
|
1792
1810
|
TextToSpeechRetrieveSpeechParams,
|
|
1793
1811
|
} from './resources/text-to-speech/text-to-speech';
|
|
1812
|
+
import { TtsIntegrations } from './resources/tts-integrations/tts-integrations';
|
|
1794
1813
|
import {
|
|
1795
1814
|
UacConnection,
|
|
1796
1815
|
UacConnectionCreateParams,
|
|
@@ -3323,6 +3342,15 @@ export class Telnyx {
|
|
|
3323
3342
|
*/
|
|
3324
3343
|
spendLimits: API.SpendLimits = new API.SpendLimits(this);
|
|
3325
3344
|
llmTokenGateway: API.LlmTokenGateway = new API.LlmTokenGateway(this);
|
|
3345
|
+
/**
|
|
3346
|
+
* UAC connection operations
|
|
3347
|
+
*/
|
|
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);
|
|
3326
3354
|
}
|
|
3327
3355
|
|
|
3328
3356
|
Telnyx.Legacy = Legacy;
|
|
@@ -3515,6 +3543,9 @@ Telnyx.BotSignup = BotSignup;
|
|
|
3515
3543
|
Telnyx.MachinePayments = MachinePayments;
|
|
3516
3544
|
Telnyx.SpendLimits = SpendLimits;
|
|
3517
3545
|
Telnyx.LlmTokenGateway = LlmTokenGateway;
|
|
3546
|
+
Telnyx.SipRegistrationStatus = SipRegistrationStatus;
|
|
3547
|
+
Telnyx.DialMetrics = DialMetrics;
|
|
3548
|
+
Telnyx.TtsIntegrations = TtsIntegrations;
|
|
3518
3549
|
|
|
3519
3550
|
export declare namespace Telnyx {
|
|
3520
3551
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -3703,11 +3734,13 @@ export declare namespace Telnyx {
|
|
|
3703
3734
|
type CallAIGatherPartialResultsWebhookEvent as CallAIGatherPartialResultsWebhookEvent,
|
|
3704
3735
|
type ArtifactCompletedWebhookEvent as ArtifactCompletedWebhookEvent,
|
|
3705
3736
|
type ArtifactFailedWebhookEvent as ArtifactFailedWebhookEvent,
|
|
3737
|
+
type CallAnalyzedWebhookEvent as CallAnalyzedWebhookEvent,
|
|
3706
3738
|
type CallAnsweredWebhookEvent as CallAnsweredWebhookEvent,
|
|
3707
3739
|
type CallBridgedWebhookEvent as CallBridgedWebhookEvent,
|
|
3708
3740
|
type CallConversationCreatedWebhookEvent as CallConversationCreatedWebhookEvent,
|
|
3709
3741
|
type CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent,
|
|
3710
3742
|
type CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent,
|
|
3743
|
+
type CallConversationStartFailedWebhookEvent as CallConversationStartFailedWebhookEvent,
|
|
3711
3744
|
type CallCostWebhookEvent as CallCostWebhookEvent,
|
|
3712
3745
|
type CallDeepfakeDetectionErrorWebhookEvent as CallDeepfakeDetectionErrorWebhookEvent,
|
|
3713
3746
|
type CallDeepfakeDetectionResultWebhookEvent as CallDeepfakeDetectionResultWebhookEvent,
|
|
@@ -3762,11 +3795,14 @@ export declare namespace Telnyx {
|
|
|
3762
3795
|
type HostedNumberOrderEventWebhookEvent as HostedNumberOrderEventWebhookEvent,
|
|
3763
3796
|
type InboundMessageWebhookEvent as InboundMessageWebhookEvent,
|
|
3764
3797
|
type NumberOrderStatusUpdateWebhookEvent as NumberOrderStatusUpdateWebhookEvent,
|
|
3765
|
-
type
|
|
3798
|
+
type NumberReputationExternalVerificationStatusChangedWebhookEvent as NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
3799
|
+
type NumberReputationNumberFlaggedWebhookEvent as NumberReputationNumberFlaggedWebhookEvent,
|
|
3800
|
+
type NumberReputationNumberRemovedWebhookEvent as NumberReputationNumberRemovedWebhookEvent,
|
|
3766
3801
|
type ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent,
|
|
3767
3802
|
type SessionStatusChangedWebhookEvent as SessionStatusChangedWebhookEvent,
|
|
3768
3803
|
type TranscriptCompletedWebhookEvent as TranscriptCompletedWebhookEvent,
|
|
3769
3804
|
type TranscriptionWebhookEvent as TranscriptionWebhookEvent,
|
|
3805
|
+
type WhatsappWabaAddedWebhookEvent as WhatsappWabaAddedWebhookEvent,
|
|
3770
3806
|
type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent,
|
|
3771
3807
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
3772
3808
|
};
|
|
@@ -4646,6 +4682,7 @@ export declare namespace Telnyx {
|
|
|
4646
4682
|
|
|
4647
4683
|
export {
|
|
4648
4684
|
PhoneNumbers as PhoneNumbers,
|
|
4685
|
+
type NumbersError73c9788e53 as NumbersError73c9788e53,
|
|
4649
4686
|
type NumbersPhoneNumberDetailed as NumbersPhoneNumberDetailed,
|
|
4650
4687
|
type PhoneNumberDetailed as PhoneNumberDetailed,
|
|
4651
4688
|
type PhoneNumberRetrieveResponse as PhoneNumberRetrieveResponse,
|
|
@@ -5004,6 +5041,7 @@ export declare namespace Telnyx {
|
|
|
5004
5041
|
type TelephonyCredentialListParams as TelephonyCredentialListParams,
|
|
5005
5042
|
type TelephonyCredentialCreateParams as TelephonyCredentialCreateParams,
|
|
5006
5043
|
type TelephonyCredentialUpdateParams as TelephonyCredentialUpdateParams,
|
|
5044
|
+
type TelephonyCredentialCreateTokenParams as TelephonyCredentialCreateTokenParams,
|
|
5007
5045
|
};
|
|
5008
5046
|
|
|
5009
5047
|
export {
|
|
@@ -5491,6 +5529,7 @@ export declare namespace Telnyx {
|
|
|
5491
5529
|
export {
|
|
5492
5530
|
EmailTemplates as EmailTemplates,
|
|
5493
5531
|
type EmailTemplate as EmailTemplate,
|
|
5532
|
+
type EmailTemplateCommon as EmailTemplateCommon,
|
|
5494
5533
|
type EmailTemplateResponse as EmailTemplateResponse,
|
|
5495
5534
|
type UpdateEmailTemplateRequest as UpdateEmailTemplateRequest,
|
|
5496
5535
|
type EmailTemplateRenderResponse as EmailTemplateRenderResponse,
|
|
@@ -5547,7 +5586,6 @@ export declare namespace Telnyx {
|
|
|
5547
5586
|
type MeetingSessionListResponse as MeetingSessionListResponse,
|
|
5548
5587
|
type MeetingSessionDeleteRecordingMediaResponse as MeetingSessionDeleteRecordingMediaResponse,
|
|
5549
5588
|
type MeetingSessionRetrieveEventsResponse as MeetingSessionRetrieveEventsResponse,
|
|
5550
|
-
type MeetingSessionRetrieveRecordingsResponse as MeetingSessionRetrieveRecordingsResponse,
|
|
5551
5589
|
type MeetingSessionRetrieveTranscriptResponse as MeetingSessionRetrieveTranscriptResponse,
|
|
5552
5590
|
type MeetingSessionListParams as MeetingSessionListParams,
|
|
5553
5591
|
type MeetingSessionCreateParams as MeetingSessionCreateParams,
|
|
@@ -5603,6 +5641,21 @@ export declare namespace Telnyx {
|
|
|
5603
5641
|
|
|
5604
5642
|
export { LlmTokenGateway as LlmTokenGateway };
|
|
5605
5643
|
|
|
5644
|
+
export {
|
|
5645
|
+
SipRegistrationStatus as SipRegistrationStatus,
|
|
5646
|
+
type SipRegistrationStatusListResponse as SipRegistrationStatusListResponse,
|
|
5647
|
+
type SipRegistrationStatusListParams as SipRegistrationStatusListParams,
|
|
5648
|
+
};
|
|
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
|
+
|
|
5606
5659
|
export type APIError = API.APIError;
|
|
5607
5660
|
export type AvailablePhoneNumbersMetadata = API.AvailablePhoneNumbersMetadata;
|
|
5608
5661
|
export type AzureVoiceSettings = API.AzureVoiceSettings;
|
|
@@ -44,6 +44,18 @@ export class Addresses extends APIResource {
|
|
|
44
44
|
* services that require a physical address such as emergency calling and
|
|
45
45
|
* regulatory compliance.
|
|
46
46
|
*
|
|
47
|
+
* By default, the new record is validated for emergency use at creation time. If
|
|
48
|
+
* the address fails validation, no record is created and the request is rejected
|
|
49
|
+
* with a 422 response; the `errors` array includes a suggested value for each
|
|
50
|
+
* offending field when one is available.
|
|
51
|
+
*
|
|
52
|
+
* Set `validate_address` to `false` to skip validation at creation, for example
|
|
53
|
+
* when the address was already validated with the Validate an address action. The
|
|
54
|
+
* record is then created without emergency validation: if it is not valid it will
|
|
55
|
+
* not be able to be used for emergency services (such as a phone number's
|
|
56
|
+
* emergency address), and because address records cannot be updated, a new record
|
|
57
|
+
* has to be created to correct it.
|
|
58
|
+
*
|
|
47
59
|
* @example
|
|
48
60
|
* ```ts
|
|
49
61
|
* const address = await client.addresses.create({
|
|
@@ -193,7 +205,11 @@ export interface Address {
|
|
|
193
205
|
* have used the `/addresses/actions/validate` endpoint to validate the address
|
|
194
206
|
* separately prior to creation. If an address is not validated for emergency use
|
|
195
207
|
* upon creation and it is not valid, it will not be able to be used for emergency
|
|
196
|
-
* services.
|
|
208
|
+
* services. In an address record, this flag indicates whether emergency validation
|
|
209
|
+
* was performed at creation: `true` means the record passed emergency validation
|
|
210
|
+
* before it was created; `false` means validation was skipped during this creation
|
|
211
|
+
* request, and the address may have been validated separately. This flag is not a
|
|
212
|
+
* current validity status; emergency use still requires a valid address.
|
|
197
213
|
*/
|
|
198
214
|
validate_address?: boolean;
|
|
199
215
|
}
|
|
@@ -383,7 +399,11 @@ export interface AddressCreateParams {
|
|
|
383
399
|
* have used the `/addresses/actions/validate` endpoint to validate the address
|
|
384
400
|
* separately prior to creation. If an address is not validated for emergency use
|
|
385
401
|
* upon creation and it is not valid, it will not be able to be used for emergency
|
|
386
|
-
* services.
|
|
402
|
+
* services. In an address record, this flag indicates whether emergency validation
|
|
403
|
+
* was performed at creation: `true` means the record passed emergency validation
|
|
404
|
+
* before it was created; `false` means validation was skipped during this creation
|
|
405
|
+
* request, and the address may have been validated separately. This flag is not a
|
|
406
|
+
* current validity status; emergency use still requires a valid address.
|
|
387
407
|
*/
|
|
388
408
|
validate_address?: boolean;
|
|
389
409
|
}
|