telnyx 7.25.0 → 7.26.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 +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +14 -5
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +14 -5
- 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 +232 -6
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +232 -6
- 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/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 +12 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +12 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +187 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +187 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +93 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +89 -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 +2 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -1
- 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 +17 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +17 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +59 -13
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +59 -13
- 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/dir/dir.d.mts +10 -7
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +10 -7
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -1
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -1
- 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/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/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 +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.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/phone-numbers/jobs.d.mts +17 -5
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +17 -5
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +4 -3
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +4 -3
- package/resources/phone-numbers/jobs.mjs.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/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/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/webhooks.d.mts +566 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +566 -3
- 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/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/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 +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +28 -0
- package/src/resources/ai/ai.ts +38 -3
- package/src/resources/ai/assistants/assistants.ts +292 -5
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/assistants/versions.ts +14 -0
- package/src/resources/ai/avatars.ts +238 -0
- package/src/resources/ai/chat.ts +20 -6
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/index.ts +13 -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 +19 -1
- package/src/resources/calls/actions.ts +65 -10
- package/src/resources/calls/calls.ts +24 -8
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/dir/dir.ts +10 -7
- package/src/resources/dir/phone-numbers.ts +1 -6
- 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/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +11 -0
- 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/phone-numbers/jobs.ts +18 -5
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/webhooks.ts +754 -15
- package/src/resources/whatsapp/index.ts +7 -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 +18 -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
|
@@ -6,6 +6,7 @@ import * as NumberOrdersAPI from './number-orders';
|
|
|
6
6
|
import * as CallsAPI from './calls/calls';
|
|
7
7
|
import * as MessagesAPI from './messages/messages';
|
|
8
8
|
import * as ThreadsAPI from './email-inboxes/threads/threads';
|
|
9
|
+
import * as NumbersAPI from './enterprises/reputation/numbers';
|
|
9
10
|
import { EmailBracketCursorPagination } from '../core/pagination';
|
|
10
11
|
import { unsafeUnwrapWebhook, unwrapWebhook } from '../lib/webhooks';
|
|
11
12
|
|
|
@@ -534,6 +535,16 @@ export namespace CallConversationEnded {
|
|
|
534
535
|
*/
|
|
535
536
|
llm_model?: string;
|
|
536
537
|
|
|
538
|
+
/**
|
|
539
|
+
* The conversation transcript, in order. By default it contains only `user` and
|
|
540
|
+
* `assistant` text turns. When the assistant's
|
|
541
|
+
* `telephony_settings.conversation_ended_full_history` is `true`, it contains the
|
|
542
|
+
* full conversation history, including assistant tool calls, tool results, and
|
|
543
|
+
* `system` and `developer` entries. Redacted when data retention is disabled for
|
|
544
|
+
* the account.
|
|
545
|
+
*/
|
|
546
|
+
messages?: Array<Payload.Message>;
|
|
547
|
+
|
|
537
548
|
/**
|
|
538
549
|
* Reason the conversation ended. For Conversation Relay, `customer_disconnect`
|
|
539
550
|
* indicates that the customer WebSocket disconnected.
|
|
@@ -565,6 +576,73 @@ export namespace CallConversationEnded {
|
|
|
565
576
|
*/
|
|
566
577
|
tts_voice_id?: string;
|
|
567
578
|
}
|
|
579
|
+
|
|
580
|
+
export namespace Payload {
|
|
581
|
+
export interface Message {
|
|
582
|
+
/**
|
|
583
|
+
* The text of the message. For a tool result, the tool output. May be absent on an
|
|
584
|
+
* assistant message that only contains `tool_calls`.
|
|
585
|
+
*/
|
|
586
|
+
content?: string;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The author of the message. `tool`, `system`, and `developer` only appear when
|
|
590
|
+
* `conversation_ended_full_history` is enabled. `system` and `developer` entries
|
|
591
|
+
* are informational (for example idle check-ins, voicemail prompts,
|
|
592
|
+
* participant-left notices, or messages added through the API); their wording is
|
|
593
|
+
* not a stable contract.
|
|
594
|
+
*/
|
|
595
|
+
role?: 'user' | 'assistant' | 'tool' | 'system' | 'developer';
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* ISO 8601 datetime of when the message was added to the conversation.
|
|
599
|
+
*/
|
|
600
|
+
timestamp?: string;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* The `id` of the tool call this message answers. Only present on `tool` messages
|
|
604
|
+
* when `conversation_ended_full_history` is enabled.
|
|
605
|
+
*/
|
|
606
|
+
tool_call_id?: string;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Tools the assistant called in this turn. Only present on `assistant` messages
|
|
610
|
+
* when `conversation_ended_full_history` is enabled.
|
|
611
|
+
*/
|
|
612
|
+
tool_calls?: Array<Message.ToolCall>;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export namespace Message {
|
|
616
|
+
export interface ToolCall {
|
|
617
|
+
/**
|
|
618
|
+
* Identifier of the tool call, referenced by the matching tool result's
|
|
619
|
+
* `tool_call_id`.
|
|
620
|
+
*/
|
|
621
|
+
id?: string;
|
|
622
|
+
|
|
623
|
+
function?: ToolCall.Function;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* The type of tool call.
|
|
627
|
+
*/
|
|
628
|
+
type?: 'function';
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export namespace ToolCall {
|
|
632
|
+
export interface Function {
|
|
633
|
+
/**
|
|
634
|
+
* The arguments passed to the tool, as a JSON-encoded string.
|
|
635
|
+
*/
|
|
636
|
+
arguments?: string;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* The name of the tool that was called.
|
|
640
|
+
*/
|
|
641
|
+
name?: string;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
568
646
|
}
|
|
569
647
|
|
|
570
648
|
export interface CallConversationInsightsGenerated {
|
|
@@ -4950,6 +5028,108 @@ export interface CallConversationInsightsGeneratedWebhookEvent {
|
|
|
4950
5028
|
data?: CallConversationInsightsGenerated;
|
|
4951
5029
|
}
|
|
4952
5030
|
|
|
5031
|
+
export interface CallConversationStartFailedWebhookEvent {
|
|
5032
|
+
/**
|
|
5033
|
+
* The AI assistant requested for the call could not be started, so no conversation
|
|
5034
|
+
* was created. No `call.conversation.created` or `call.conversation.ended` is sent
|
|
5035
|
+
* for this attempt.
|
|
5036
|
+
*/
|
|
5037
|
+
data?: CallConversationStartFailedWebhookEvent.Data;
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5040
|
+
export namespace CallConversationStartFailedWebhookEvent {
|
|
5041
|
+
/**
|
|
5042
|
+
* The AI assistant requested for the call could not be started, so no conversation
|
|
5043
|
+
* was created. No `call.conversation.created` or `call.conversation.ended` is sent
|
|
5044
|
+
* for this attempt.
|
|
5045
|
+
*/
|
|
5046
|
+
export interface Data {
|
|
5047
|
+
/**
|
|
5048
|
+
* Unique identifier for the event.
|
|
5049
|
+
*/
|
|
5050
|
+
id?: string;
|
|
5051
|
+
|
|
5052
|
+
/**
|
|
5053
|
+
* Timestamp when the event was created in the system.
|
|
5054
|
+
*/
|
|
5055
|
+
created_at?: string;
|
|
5056
|
+
|
|
5057
|
+
/**
|
|
5058
|
+
* The type of event being delivered.
|
|
5059
|
+
*/
|
|
5060
|
+
event_type?: 'call.conversation.start_failed';
|
|
5061
|
+
|
|
5062
|
+
/**
|
|
5063
|
+
* ISO 8601 datetime of when the event occurred.
|
|
5064
|
+
*/
|
|
5065
|
+
occurred_at?: string;
|
|
5066
|
+
|
|
5067
|
+
payload?: Data.Payload;
|
|
5068
|
+
|
|
5069
|
+
/**
|
|
5070
|
+
* Identifies the type of the resource.
|
|
5071
|
+
*/
|
|
5072
|
+
record_type?: 'event';
|
|
5073
|
+
}
|
|
5074
|
+
|
|
5075
|
+
export namespace Data {
|
|
5076
|
+
export interface Payload {
|
|
5077
|
+
/**
|
|
5078
|
+
* Identifier of the AI assistant that failed to start.
|
|
5079
|
+
*/
|
|
5080
|
+
assistant_id?: string;
|
|
5081
|
+
|
|
5082
|
+
/**
|
|
5083
|
+
* Call ID used to issue commands via Call Control API.
|
|
5084
|
+
*/
|
|
5085
|
+
call_control_id?: string;
|
|
5086
|
+
|
|
5087
|
+
/**
|
|
5088
|
+
* ID that is unique to the call leg.
|
|
5089
|
+
*/
|
|
5090
|
+
call_leg_id?: string;
|
|
5091
|
+
|
|
5092
|
+
/**
|
|
5093
|
+
* ID that is unique to the call session (group of related call legs).
|
|
5094
|
+
*/
|
|
5095
|
+
call_session_id?: string;
|
|
5096
|
+
|
|
5097
|
+
/**
|
|
5098
|
+
* The type of calling party connection.
|
|
5099
|
+
*/
|
|
5100
|
+
calling_party_type?: 'pstn' | 'sip';
|
|
5101
|
+
|
|
5102
|
+
/**
|
|
5103
|
+
* Base64-encoded state received from a command.
|
|
5104
|
+
*/
|
|
5105
|
+
client_state?: string;
|
|
5106
|
+
|
|
5107
|
+
/**
|
|
5108
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
5109
|
+
*/
|
|
5110
|
+
connection_id?: string;
|
|
5111
|
+
|
|
5112
|
+
/**
|
|
5113
|
+
* The caller's number or identifier.
|
|
5114
|
+
*/
|
|
5115
|
+
from?: string;
|
|
5116
|
+
|
|
5117
|
+
/**
|
|
5118
|
+
* Why the conversation could not be started. `invalid_request`: the assistant
|
|
5119
|
+
* request was rejected, for example because the assistant ID does not exist.
|
|
5120
|
+
* `service_error`: the assistant could not be started because of an error on the
|
|
5121
|
+
* Telnyx side.
|
|
5122
|
+
*/
|
|
5123
|
+
reason?: 'invalid_request' | 'service_error';
|
|
5124
|
+
|
|
5125
|
+
/**
|
|
5126
|
+
* The callee's number or SIP address.
|
|
5127
|
+
*/
|
|
5128
|
+
to?: string;
|
|
5129
|
+
}
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
|
|
4953
5133
|
export interface CallCostWebhookEvent {
|
|
4954
5134
|
data?: CallCostWebhookEvent.Data;
|
|
4955
5135
|
}
|
|
@@ -6344,6 +6524,177 @@ export namespace NumberOrderStatusUpdateWebhookEvent {
|
|
|
6344
6524
|
}
|
|
6345
6525
|
}
|
|
6346
6526
|
|
|
6527
|
+
export interface NumberReputationExternalVerificationStatusChangedWebhookEvent {
|
|
6528
|
+
data: NumberReputationExternalVerificationStatusChangedWebhookEvent.Data;
|
|
6529
|
+
|
|
6530
|
+
meta: NumberReputationExternalVerificationStatusChangedWebhookEvent.Meta;
|
|
6531
|
+
}
|
|
6532
|
+
|
|
6533
|
+
export namespace NumberReputationExternalVerificationStatusChangedWebhookEvent {
|
|
6534
|
+
export interface Data {
|
|
6535
|
+
/**
|
|
6536
|
+
* Identifies the event; the same id is reused if the event is redelivered.
|
|
6537
|
+
*/
|
|
6538
|
+
id: string;
|
|
6539
|
+
|
|
6540
|
+
event_type: 'number_reputation.external_verification.status_changed';
|
|
6541
|
+
|
|
6542
|
+
occurred_at: string;
|
|
6543
|
+
|
|
6544
|
+
payload: Data.Payload;
|
|
6545
|
+
|
|
6546
|
+
record_type: 'event';
|
|
6547
|
+
}
|
|
6548
|
+
|
|
6549
|
+
export namespace Data {
|
|
6550
|
+
export interface Payload {
|
|
6551
|
+
enterprise_id: string;
|
|
6552
|
+
|
|
6553
|
+
record_type: 'reputation_external_verification';
|
|
6554
|
+
|
|
6555
|
+
/**
|
|
6556
|
+
* When the review decision was made. Always set: this event is only sent after a
|
|
6557
|
+
* review.
|
|
6558
|
+
*/
|
|
6559
|
+
reviewed_at: string;
|
|
6560
|
+
|
|
6561
|
+
/**
|
|
6562
|
+
* The review outcome. `pending` is never delivered: the event is sent only once
|
|
6563
|
+
* the proof is reviewed.
|
|
6564
|
+
*/
|
|
6565
|
+
status: 'approved' | 'rejected';
|
|
6566
|
+
|
|
6567
|
+
/**
|
|
6568
|
+
* Set only when `status` is `rejected`.
|
|
6569
|
+
*/
|
|
6570
|
+
rejection_reason?: string | null;
|
|
6571
|
+
}
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6574
|
+
export interface Meta {
|
|
6575
|
+
attempt: number;
|
|
6576
|
+
|
|
6577
|
+
delivered_to: string;
|
|
6578
|
+
}
|
|
6579
|
+
}
|
|
6580
|
+
|
|
6581
|
+
export interface NumberReputationNumberFlaggedWebhookEvent {
|
|
6582
|
+
data: NumberReputationNumberFlaggedWebhookEvent.Data;
|
|
6583
|
+
|
|
6584
|
+
meta: NumberReputationNumberFlaggedWebhookEvent.Meta;
|
|
6585
|
+
}
|
|
6586
|
+
|
|
6587
|
+
export namespace NumberReputationNumberFlaggedWebhookEvent {
|
|
6588
|
+
export interface Data {
|
|
6589
|
+
/**
|
|
6590
|
+
* Identifies the event; the same id is reused if the event is redelivered.
|
|
6591
|
+
*/
|
|
6592
|
+
id: string;
|
|
6593
|
+
|
|
6594
|
+
event_type: 'number_reputation.number.flagged';
|
|
6595
|
+
|
|
6596
|
+
occurred_at: string;
|
|
6597
|
+
|
|
6598
|
+
payload: Data.Payload;
|
|
6599
|
+
|
|
6600
|
+
record_type: 'event';
|
|
6601
|
+
}
|
|
6602
|
+
|
|
6603
|
+
export namespace Data {
|
|
6604
|
+
export interface Payload {
|
|
6605
|
+
/**
|
|
6606
|
+
* Confirm ownership before this time or the number is removed (carrier change) or
|
|
6607
|
+
* flagged (re-verification).
|
|
6608
|
+
*/
|
|
6609
|
+
confirm_by: string;
|
|
6610
|
+
|
|
6611
|
+
enterprise_id: string;
|
|
6612
|
+
|
|
6613
|
+
/**
|
|
6614
|
+
* `carrier_changed`: the number moved to a different carrier.
|
|
6615
|
+
* `reverification_due`: the periodic ownership re-verification is due.
|
|
6616
|
+
*/
|
|
6617
|
+
flag_reason: 'carrier_changed' | 'reverification_due';
|
|
6618
|
+
|
|
6619
|
+
ownership_status: 'pending_confirmation';
|
|
6620
|
+
|
|
6621
|
+
phone_number: string;
|
|
6622
|
+
|
|
6623
|
+
record_type: 'reputation_phone_number';
|
|
6624
|
+
|
|
6625
|
+
/**
|
|
6626
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
6627
|
+
* `external`: a number you own that is hosted with another provider.
|
|
6628
|
+
*/
|
|
6629
|
+
source: NumbersAPI.ReputationNumberSource;
|
|
6630
|
+
}
|
|
6631
|
+
}
|
|
6632
|
+
|
|
6633
|
+
export interface Meta {
|
|
6634
|
+
attempt: number;
|
|
6635
|
+
|
|
6636
|
+
delivered_to: string;
|
|
6637
|
+
}
|
|
6638
|
+
}
|
|
6639
|
+
|
|
6640
|
+
export interface NumberReputationNumberRemovedWebhookEvent {
|
|
6641
|
+
data: NumberReputationNumberRemovedWebhookEvent.Data;
|
|
6642
|
+
|
|
6643
|
+
meta: NumberReputationNumberRemovedWebhookEvent.Meta;
|
|
6644
|
+
}
|
|
6645
|
+
|
|
6646
|
+
export namespace NumberReputationNumberRemovedWebhookEvent {
|
|
6647
|
+
export interface Data {
|
|
6648
|
+
/**
|
|
6649
|
+
* Identifies the event; the same id is reused if the event is redelivered.
|
|
6650
|
+
*/
|
|
6651
|
+
id: string;
|
|
6652
|
+
|
|
6653
|
+
event_type: 'number_reputation.number.removed';
|
|
6654
|
+
|
|
6655
|
+
occurred_at: string;
|
|
6656
|
+
|
|
6657
|
+
payload: Data.Payload;
|
|
6658
|
+
|
|
6659
|
+
record_type: 'event';
|
|
6660
|
+
}
|
|
6661
|
+
|
|
6662
|
+
export namespace Data {
|
|
6663
|
+
export interface Payload {
|
|
6664
|
+
enterprise_id: string;
|
|
6665
|
+
|
|
6666
|
+
ownership_status: 'removed';
|
|
6667
|
+
|
|
6668
|
+
phone_number: string;
|
|
6669
|
+
|
|
6670
|
+
record_type: 'reputation_phone_number';
|
|
6671
|
+
|
|
6672
|
+
/**
|
|
6673
|
+
* `ported_away`: you confirmed you no longer own it after a carrier change.
|
|
6674
|
+
* `unconfirmed_ownership`: the confirmation deadline passed. `reassigned`: the
|
|
6675
|
+
* number was reported as permanently disconnected. `customer_reported`: you
|
|
6676
|
+
* reported that you no longer own it. Removing a number yourself with `DELETE`
|
|
6677
|
+
* sends no event.
|
|
6678
|
+
*/
|
|
6679
|
+
removal_reason: 'ported_away' | 'unconfirmed_ownership' | 'reassigned' | 'customer_reported';
|
|
6680
|
+
|
|
6681
|
+
removed_at: string;
|
|
6682
|
+
|
|
6683
|
+
/**
|
|
6684
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
6685
|
+
* `external`: a number you own that is hosted with another provider.
|
|
6686
|
+
*/
|
|
6687
|
+
source: NumbersAPI.ReputationNumberSource;
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6690
|
+
|
|
6691
|
+
export interface Meta {
|
|
6692
|
+
attempt: number;
|
|
6693
|
+
|
|
6694
|
+
delivered_to: string;
|
|
6695
|
+
}
|
|
6696
|
+
}
|
|
6697
|
+
|
|
6347
6698
|
export interface RecordingAvailableWebhookEvent {
|
|
6348
6699
|
/**
|
|
6349
6700
|
* Unique event id; deduplicate deliveries on it.
|
|
@@ -6505,23 +6856,73 @@ export interface TranscriptionWebhookEvent {
|
|
|
6505
6856
|
data?: Transcription;
|
|
6506
6857
|
}
|
|
6507
6858
|
|
|
6508
|
-
export interface
|
|
6509
|
-
data
|
|
6859
|
+
export interface WhatsappWabaAddedWebhookEvent {
|
|
6860
|
+
data: WhatsappWabaAddedWebhookEvent.Data;
|
|
6510
6861
|
}
|
|
6511
6862
|
|
|
6512
|
-
export
|
|
6513
|
-
|
|
6514
|
-
|
|
6863
|
+
export namespace WhatsappWabaAddedWebhookEvent {
|
|
6864
|
+
export interface Data {
|
|
6865
|
+
id: string;
|
|
6515
6866
|
|
|
6516
|
-
|
|
6517
|
-
data?: CallAIGatherPartialResults;
|
|
6518
|
-
}
|
|
6867
|
+
event_type: 'whatsapp.waba_added';
|
|
6519
6868
|
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6869
|
+
occurred_at: string;
|
|
6870
|
+
|
|
6871
|
+
payload: Data.Payload;
|
|
6872
|
+
|
|
6873
|
+
record_type: 'event';
|
|
6874
|
+
}
|
|
6875
|
+
|
|
6876
|
+
export namespace Data {
|
|
6877
|
+
export interface Payload {
|
|
6878
|
+
/**
|
|
6879
|
+
* Signup session ID.
|
|
6880
|
+
*/
|
|
6881
|
+
event_id: string;
|
|
6882
|
+
|
|
6883
|
+
record_type: 'waba_account_added';
|
|
6884
|
+
|
|
6885
|
+
/**
|
|
6886
|
+
* Signup session outcome.
|
|
6887
|
+
*/
|
|
6888
|
+
status: 'SUCCESS' | 'FAILURE';
|
|
6889
|
+
|
|
6890
|
+
/**
|
|
6891
|
+
* Meta WhatsApp Business Account identifier.
|
|
6892
|
+
*/
|
|
6893
|
+
waba_id: string;
|
|
6894
|
+
|
|
6895
|
+
/**
|
|
6896
|
+
* Errors recorded during provisioning.
|
|
6897
|
+
*/
|
|
6898
|
+
errors?: Array<string>;
|
|
6899
|
+
|
|
6900
|
+
/**
|
|
6901
|
+
* Phone numbers found on the WABA. Omitted for standard sessions started with a
|
|
6902
|
+
* phone_number_id, and for sessions that fail before Telnyx fetches the numbers.
|
|
6903
|
+
*/
|
|
6904
|
+
phone_numbers?: Array<string>;
|
|
6905
|
+
}
|
|
6906
|
+
}
|
|
6907
|
+
}
|
|
6908
|
+
|
|
6909
|
+
export interface CallAIGatherEndedWebhookEvent {
|
|
6910
|
+
data?: CallAIGatherEnded;
|
|
6911
|
+
}
|
|
6912
|
+
|
|
6913
|
+
export interface CallAIGatherMessageHistoryUpdatedWebhookEvent {
|
|
6914
|
+
data?: CallAIGatherMessageHistoryUpdated;
|
|
6915
|
+
}
|
|
6916
|
+
|
|
6917
|
+
export interface CallAIGatherPartialResultsWebhookEvent {
|
|
6918
|
+
data?: CallAIGatherPartialResults;
|
|
6919
|
+
}
|
|
6920
|
+
|
|
6921
|
+
export interface ArtifactCompletedWebhookEvent {
|
|
6922
|
+
/**
|
|
6923
|
+
* Unique event id; deduplicate deliveries on it.
|
|
6924
|
+
*/
|
|
6925
|
+
id: string;
|
|
6525
6926
|
|
|
6526
6927
|
/**
|
|
6527
6928
|
* Completed artifact, including its generated content.
|
|
@@ -6760,6 +7161,108 @@ export interface CallConversationInsightsGeneratedWebhookEvent {
|
|
|
6760
7161
|
data?: CallConversationInsightsGenerated;
|
|
6761
7162
|
}
|
|
6762
7163
|
|
|
7164
|
+
export interface CallConversationStartFailedWebhookEvent {
|
|
7165
|
+
/**
|
|
7166
|
+
* The AI assistant requested for the call could not be started, so no conversation
|
|
7167
|
+
* was created. No `call.conversation.created` or `call.conversation.ended` is sent
|
|
7168
|
+
* for this attempt.
|
|
7169
|
+
*/
|
|
7170
|
+
data?: CallConversationStartFailedWebhookEvent.Data;
|
|
7171
|
+
}
|
|
7172
|
+
|
|
7173
|
+
export namespace CallConversationStartFailedWebhookEvent {
|
|
7174
|
+
/**
|
|
7175
|
+
* The AI assistant requested for the call could not be started, so no conversation
|
|
7176
|
+
* was created. No `call.conversation.created` or `call.conversation.ended` is sent
|
|
7177
|
+
* for this attempt.
|
|
7178
|
+
*/
|
|
7179
|
+
export interface Data {
|
|
7180
|
+
/**
|
|
7181
|
+
* Unique identifier for the event.
|
|
7182
|
+
*/
|
|
7183
|
+
id?: string;
|
|
7184
|
+
|
|
7185
|
+
/**
|
|
7186
|
+
* Timestamp when the event was created in the system.
|
|
7187
|
+
*/
|
|
7188
|
+
created_at?: string;
|
|
7189
|
+
|
|
7190
|
+
/**
|
|
7191
|
+
* The type of event being delivered.
|
|
7192
|
+
*/
|
|
7193
|
+
event_type?: 'call.conversation.start_failed';
|
|
7194
|
+
|
|
7195
|
+
/**
|
|
7196
|
+
* ISO 8601 datetime of when the event occurred.
|
|
7197
|
+
*/
|
|
7198
|
+
occurred_at?: string;
|
|
7199
|
+
|
|
7200
|
+
payload?: Data.Payload;
|
|
7201
|
+
|
|
7202
|
+
/**
|
|
7203
|
+
* Identifies the type of the resource.
|
|
7204
|
+
*/
|
|
7205
|
+
record_type?: 'event';
|
|
7206
|
+
}
|
|
7207
|
+
|
|
7208
|
+
export namespace Data {
|
|
7209
|
+
export interface Payload {
|
|
7210
|
+
/**
|
|
7211
|
+
* Identifier of the AI assistant that failed to start.
|
|
7212
|
+
*/
|
|
7213
|
+
assistant_id?: string;
|
|
7214
|
+
|
|
7215
|
+
/**
|
|
7216
|
+
* Call ID used to issue commands via Call Control API.
|
|
7217
|
+
*/
|
|
7218
|
+
call_control_id?: string;
|
|
7219
|
+
|
|
7220
|
+
/**
|
|
7221
|
+
* ID that is unique to the call leg.
|
|
7222
|
+
*/
|
|
7223
|
+
call_leg_id?: string;
|
|
7224
|
+
|
|
7225
|
+
/**
|
|
7226
|
+
* ID that is unique to the call session (group of related call legs).
|
|
7227
|
+
*/
|
|
7228
|
+
call_session_id?: string;
|
|
7229
|
+
|
|
7230
|
+
/**
|
|
7231
|
+
* The type of calling party connection.
|
|
7232
|
+
*/
|
|
7233
|
+
calling_party_type?: 'pstn' | 'sip';
|
|
7234
|
+
|
|
7235
|
+
/**
|
|
7236
|
+
* Base64-encoded state received from a command.
|
|
7237
|
+
*/
|
|
7238
|
+
client_state?: string;
|
|
7239
|
+
|
|
7240
|
+
/**
|
|
7241
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
7242
|
+
*/
|
|
7243
|
+
connection_id?: string;
|
|
7244
|
+
|
|
7245
|
+
/**
|
|
7246
|
+
* The caller's number or identifier.
|
|
7247
|
+
*/
|
|
7248
|
+
from?: string;
|
|
7249
|
+
|
|
7250
|
+
/**
|
|
7251
|
+
* Why the conversation could not be started. `invalid_request`: the assistant
|
|
7252
|
+
* request was rejected, for example because the assistant ID does not exist.
|
|
7253
|
+
* `service_error`: the assistant could not be started because of an error on the
|
|
7254
|
+
* Telnyx side.
|
|
7255
|
+
*/
|
|
7256
|
+
reason?: 'invalid_request' | 'service_error';
|
|
7257
|
+
|
|
7258
|
+
/**
|
|
7259
|
+
* The callee's number or SIP address.
|
|
7260
|
+
*/
|
|
7261
|
+
to?: string;
|
|
7262
|
+
}
|
|
7263
|
+
}
|
|
7264
|
+
}
|
|
7265
|
+
|
|
6763
7266
|
export interface CallCostWebhookEvent {
|
|
6764
7267
|
data?: CallCostWebhookEvent.Data;
|
|
6765
7268
|
}
|
|
@@ -8154,6 +8657,177 @@ export namespace NumberOrderStatusUpdateWebhookEvent {
|
|
|
8154
8657
|
}
|
|
8155
8658
|
}
|
|
8156
8659
|
|
|
8660
|
+
export interface NumberReputationExternalVerificationStatusChangedWebhookEvent {
|
|
8661
|
+
data: NumberReputationExternalVerificationStatusChangedWebhookEvent.Data;
|
|
8662
|
+
|
|
8663
|
+
meta: NumberReputationExternalVerificationStatusChangedWebhookEvent.Meta;
|
|
8664
|
+
}
|
|
8665
|
+
|
|
8666
|
+
export namespace NumberReputationExternalVerificationStatusChangedWebhookEvent {
|
|
8667
|
+
export interface Data {
|
|
8668
|
+
/**
|
|
8669
|
+
* Identifies the event; the same id is reused if the event is redelivered.
|
|
8670
|
+
*/
|
|
8671
|
+
id: string;
|
|
8672
|
+
|
|
8673
|
+
event_type: 'number_reputation.external_verification.status_changed';
|
|
8674
|
+
|
|
8675
|
+
occurred_at: string;
|
|
8676
|
+
|
|
8677
|
+
payload: Data.Payload;
|
|
8678
|
+
|
|
8679
|
+
record_type: 'event';
|
|
8680
|
+
}
|
|
8681
|
+
|
|
8682
|
+
export namespace Data {
|
|
8683
|
+
export interface Payload {
|
|
8684
|
+
enterprise_id: string;
|
|
8685
|
+
|
|
8686
|
+
record_type: 'reputation_external_verification';
|
|
8687
|
+
|
|
8688
|
+
/**
|
|
8689
|
+
* When the review decision was made. Always set: this event is only sent after a
|
|
8690
|
+
* review.
|
|
8691
|
+
*/
|
|
8692
|
+
reviewed_at: string;
|
|
8693
|
+
|
|
8694
|
+
/**
|
|
8695
|
+
* The review outcome. `pending` is never delivered: the event is sent only once
|
|
8696
|
+
* the proof is reviewed.
|
|
8697
|
+
*/
|
|
8698
|
+
status: 'approved' | 'rejected';
|
|
8699
|
+
|
|
8700
|
+
/**
|
|
8701
|
+
* Set only when `status` is `rejected`.
|
|
8702
|
+
*/
|
|
8703
|
+
rejection_reason?: string | null;
|
|
8704
|
+
}
|
|
8705
|
+
}
|
|
8706
|
+
|
|
8707
|
+
export interface Meta {
|
|
8708
|
+
attempt: number;
|
|
8709
|
+
|
|
8710
|
+
delivered_to: string;
|
|
8711
|
+
}
|
|
8712
|
+
}
|
|
8713
|
+
|
|
8714
|
+
export interface NumberReputationNumberFlaggedWebhookEvent {
|
|
8715
|
+
data: NumberReputationNumberFlaggedWebhookEvent.Data;
|
|
8716
|
+
|
|
8717
|
+
meta: NumberReputationNumberFlaggedWebhookEvent.Meta;
|
|
8718
|
+
}
|
|
8719
|
+
|
|
8720
|
+
export namespace NumberReputationNumberFlaggedWebhookEvent {
|
|
8721
|
+
export interface Data {
|
|
8722
|
+
/**
|
|
8723
|
+
* Identifies the event; the same id is reused if the event is redelivered.
|
|
8724
|
+
*/
|
|
8725
|
+
id: string;
|
|
8726
|
+
|
|
8727
|
+
event_type: 'number_reputation.number.flagged';
|
|
8728
|
+
|
|
8729
|
+
occurred_at: string;
|
|
8730
|
+
|
|
8731
|
+
payload: Data.Payload;
|
|
8732
|
+
|
|
8733
|
+
record_type: 'event';
|
|
8734
|
+
}
|
|
8735
|
+
|
|
8736
|
+
export namespace Data {
|
|
8737
|
+
export interface Payload {
|
|
8738
|
+
/**
|
|
8739
|
+
* Confirm ownership before this time or the number is removed (carrier change) or
|
|
8740
|
+
* flagged (re-verification).
|
|
8741
|
+
*/
|
|
8742
|
+
confirm_by: string;
|
|
8743
|
+
|
|
8744
|
+
enterprise_id: string;
|
|
8745
|
+
|
|
8746
|
+
/**
|
|
8747
|
+
* `carrier_changed`: the number moved to a different carrier.
|
|
8748
|
+
* `reverification_due`: the periodic ownership re-verification is due.
|
|
8749
|
+
*/
|
|
8750
|
+
flag_reason: 'carrier_changed' | 'reverification_due';
|
|
8751
|
+
|
|
8752
|
+
ownership_status: 'pending_confirmation';
|
|
8753
|
+
|
|
8754
|
+
phone_number: string;
|
|
8755
|
+
|
|
8756
|
+
record_type: 'reputation_phone_number';
|
|
8757
|
+
|
|
8758
|
+
/**
|
|
8759
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
8760
|
+
* `external`: a number you own that is hosted with another provider.
|
|
8761
|
+
*/
|
|
8762
|
+
source: NumbersAPI.ReputationNumberSource;
|
|
8763
|
+
}
|
|
8764
|
+
}
|
|
8765
|
+
|
|
8766
|
+
export interface Meta {
|
|
8767
|
+
attempt: number;
|
|
8768
|
+
|
|
8769
|
+
delivered_to: string;
|
|
8770
|
+
}
|
|
8771
|
+
}
|
|
8772
|
+
|
|
8773
|
+
export interface NumberReputationNumberRemovedWebhookEvent {
|
|
8774
|
+
data: NumberReputationNumberRemovedWebhookEvent.Data;
|
|
8775
|
+
|
|
8776
|
+
meta: NumberReputationNumberRemovedWebhookEvent.Meta;
|
|
8777
|
+
}
|
|
8778
|
+
|
|
8779
|
+
export namespace NumberReputationNumberRemovedWebhookEvent {
|
|
8780
|
+
export interface Data {
|
|
8781
|
+
/**
|
|
8782
|
+
* Identifies the event; the same id is reused if the event is redelivered.
|
|
8783
|
+
*/
|
|
8784
|
+
id: string;
|
|
8785
|
+
|
|
8786
|
+
event_type: 'number_reputation.number.removed';
|
|
8787
|
+
|
|
8788
|
+
occurred_at: string;
|
|
8789
|
+
|
|
8790
|
+
payload: Data.Payload;
|
|
8791
|
+
|
|
8792
|
+
record_type: 'event';
|
|
8793
|
+
}
|
|
8794
|
+
|
|
8795
|
+
export namespace Data {
|
|
8796
|
+
export interface Payload {
|
|
8797
|
+
enterprise_id: string;
|
|
8798
|
+
|
|
8799
|
+
ownership_status: 'removed';
|
|
8800
|
+
|
|
8801
|
+
phone_number: string;
|
|
8802
|
+
|
|
8803
|
+
record_type: 'reputation_phone_number';
|
|
8804
|
+
|
|
8805
|
+
/**
|
|
8806
|
+
* `ported_away`: you confirmed you no longer own it after a carrier change.
|
|
8807
|
+
* `unconfirmed_ownership`: the confirmation deadline passed. `reassigned`: the
|
|
8808
|
+
* number was reported as permanently disconnected. `customer_reported`: you
|
|
8809
|
+
* reported that you no longer own it. Removing a number yourself with `DELETE`
|
|
8810
|
+
* sends no event.
|
|
8811
|
+
*/
|
|
8812
|
+
removal_reason: 'ported_away' | 'unconfirmed_ownership' | 'reassigned' | 'customer_reported';
|
|
8813
|
+
|
|
8814
|
+
removed_at: string;
|
|
8815
|
+
|
|
8816
|
+
/**
|
|
8817
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
8818
|
+
* `external`: a number you own that is hosted with another provider.
|
|
8819
|
+
*/
|
|
8820
|
+
source: NumbersAPI.ReputationNumberSource;
|
|
8821
|
+
}
|
|
8822
|
+
}
|
|
8823
|
+
|
|
8824
|
+
export interface Meta {
|
|
8825
|
+
attempt: number;
|
|
8826
|
+
|
|
8827
|
+
delivered_to: string;
|
|
8828
|
+
}
|
|
8829
|
+
}
|
|
8830
|
+
|
|
8157
8831
|
export interface RecordingAvailableWebhookEvent {
|
|
8158
8832
|
/**
|
|
8159
8833
|
* Unique event id; deduplicate deliveries on it.
|
|
@@ -8315,6 +8989,56 @@ export interface TranscriptionWebhookEvent {
|
|
|
8315
8989
|
data?: Transcription;
|
|
8316
8990
|
}
|
|
8317
8991
|
|
|
8992
|
+
export interface WhatsappWabaAddedWebhookEvent {
|
|
8993
|
+
data: WhatsappWabaAddedWebhookEvent.Data;
|
|
8994
|
+
}
|
|
8995
|
+
|
|
8996
|
+
export namespace WhatsappWabaAddedWebhookEvent {
|
|
8997
|
+
export interface Data {
|
|
8998
|
+
id: string;
|
|
8999
|
+
|
|
9000
|
+
event_type: 'whatsapp.waba_added';
|
|
9001
|
+
|
|
9002
|
+
occurred_at: string;
|
|
9003
|
+
|
|
9004
|
+
payload: Data.Payload;
|
|
9005
|
+
|
|
9006
|
+
record_type: 'event';
|
|
9007
|
+
}
|
|
9008
|
+
|
|
9009
|
+
export namespace Data {
|
|
9010
|
+
export interface Payload {
|
|
9011
|
+
/**
|
|
9012
|
+
* Signup session ID.
|
|
9013
|
+
*/
|
|
9014
|
+
event_id: string;
|
|
9015
|
+
|
|
9016
|
+
record_type: 'waba_account_added';
|
|
9017
|
+
|
|
9018
|
+
/**
|
|
9019
|
+
* Signup session outcome.
|
|
9020
|
+
*/
|
|
9021
|
+
status: 'SUCCESS' | 'FAILURE';
|
|
9022
|
+
|
|
9023
|
+
/**
|
|
9024
|
+
* Meta WhatsApp Business Account identifier.
|
|
9025
|
+
*/
|
|
9026
|
+
waba_id: string;
|
|
9027
|
+
|
|
9028
|
+
/**
|
|
9029
|
+
* Errors recorded during provisioning.
|
|
9030
|
+
*/
|
|
9031
|
+
errors?: Array<string>;
|
|
9032
|
+
|
|
9033
|
+
/**
|
|
9034
|
+
* Phone numbers found on the WABA. Omitted for standard sessions started with a
|
|
9035
|
+
* phone_number_id, and for sessions that fail before Telnyx fetches the numbers.
|
|
9036
|
+
*/
|
|
9037
|
+
phone_numbers?: Array<string>;
|
|
9038
|
+
}
|
|
9039
|
+
}
|
|
9040
|
+
}
|
|
9041
|
+
|
|
8318
9042
|
export type UnsafeUnwrapWebhookEvent =
|
|
8319
9043
|
| CallAIGatherEndedWebhookEvent
|
|
8320
9044
|
| CallAIGatherMessageHistoryUpdatedWebhookEvent
|
|
@@ -8326,6 +9050,7 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
8326
9050
|
| CallConversationCreatedWebhookEvent
|
|
8327
9051
|
| CallConversationEndedWebhookEvent
|
|
8328
9052
|
| CallConversationInsightsGeneratedWebhookEvent
|
|
9053
|
+
| CallConversationStartFailedWebhookEvent
|
|
8329
9054
|
| CallCostWebhookEvent
|
|
8330
9055
|
| CallDeepfakeDetectionErrorWebhookEvent
|
|
8331
9056
|
| CallDeepfakeDetectionResultWebhookEvent
|
|
@@ -8387,13 +9112,17 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
8387
9112
|
| HostedNumberOrderEventWebhookEvent
|
|
8388
9113
|
| InboundMessageWebhookEvent
|
|
8389
9114
|
| NumberOrderStatusUpdateWebhookEvent
|
|
9115
|
+
| NumberReputationExternalVerificationStatusChangedWebhookEvent
|
|
9116
|
+
| NumberReputationNumberFlaggedWebhookEvent
|
|
9117
|
+
| NumberReputationNumberRemovedWebhookEvent
|
|
8390
9118
|
| RecordingAvailableWebhookEvent
|
|
8391
9119
|
| ReplacedLinkClickWebhookEvent
|
|
8392
9120
|
| SessionStatusChangedWebhookEvent
|
|
8393
9121
|
| TranscriptCompletedWebhookEvent
|
|
8394
9122
|
| TranscriptionWebhookEvent
|
|
8395
9123
|
| WhatsappAccountUpdate
|
|
8396
|
-
| WhatsappMessageEcho
|
|
9124
|
+
| WhatsappMessageEcho
|
|
9125
|
+
| WhatsappWabaAddedWebhookEvent;
|
|
8397
9126
|
|
|
8398
9127
|
export type UnwrapWebhookEvent =
|
|
8399
9128
|
| CallAIGatherEndedWebhookEvent
|
|
@@ -8406,6 +9135,7 @@ export type UnwrapWebhookEvent =
|
|
|
8406
9135
|
| CallConversationCreatedWebhookEvent
|
|
8407
9136
|
| CallConversationEndedWebhookEvent
|
|
8408
9137
|
| CallConversationInsightsGeneratedWebhookEvent
|
|
9138
|
+
| CallConversationStartFailedWebhookEvent
|
|
8409
9139
|
| CallCostWebhookEvent
|
|
8410
9140
|
| CallDeepfakeDetectionErrorWebhookEvent
|
|
8411
9141
|
| CallDeepfakeDetectionResultWebhookEvent
|
|
@@ -8467,13 +9197,17 @@ export type UnwrapWebhookEvent =
|
|
|
8467
9197
|
| HostedNumberOrderEventWebhookEvent
|
|
8468
9198
|
| InboundMessageWebhookEvent
|
|
8469
9199
|
| NumberOrderStatusUpdateWebhookEvent
|
|
9200
|
+
| NumberReputationExternalVerificationStatusChangedWebhookEvent
|
|
9201
|
+
| NumberReputationNumberFlaggedWebhookEvent
|
|
9202
|
+
| NumberReputationNumberRemovedWebhookEvent
|
|
8470
9203
|
| RecordingAvailableWebhookEvent
|
|
8471
9204
|
| ReplacedLinkClickWebhookEvent
|
|
8472
9205
|
| SessionStatusChangedWebhookEvent
|
|
8473
9206
|
| TranscriptCompletedWebhookEvent
|
|
8474
9207
|
| TranscriptionWebhookEvent
|
|
8475
9208
|
| WhatsappAccountUpdate
|
|
8476
|
-
| WhatsappMessageEcho
|
|
9209
|
+
| WhatsappMessageEcho
|
|
9210
|
+
| WhatsappWabaAddedWebhookEvent;
|
|
8477
9211
|
|
|
8478
9212
|
export declare namespace Webhooks {
|
|
8479
9213
|
export {
|
|
@@ -8551,6 +9285,7 @@ export declare namespace Webhooks {
|
|
|
8551
9285
|
type CallConversationCreatedWebhookEvent as CallConversationCreatedWebhookEvent,
|
|
8552
9286
|
type CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent,
|
|
8553
9287
|
type CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent,
|
|
9288
|
+
type CallConversationStartFailedWebhookEvent as CallConversationStartFailedWebhookEvent,
|
|
8554
9289
|
type CallCostWebhookEvent as CallCostWebhookEvent,
|
|
8555
9290
|
type CallDeepfakeDetectionErrorWebhookEvent as CallDeepfakeDetectionErrorWebhookEvent,
|
|
8556
9291
|
type CallDeepfakeDetectionResultWebhookEvent as CallDeepfakeDetectionResultWebhookEvent,
|
|
@@ -8605,11 +9340,15 @@ export declare namespace Webhooks {
|
|
|
8605
9340
|
type HostedNumberOrderEventWebhookEvent as HostedNumberOrderEventWebhookEvent,
|
|
8606
9341
|
type InboundMessageWebhookEvent as InboundMessageWebhookEvent,
|
|
8607
9342
|
type NumberOrderStatusUpdateWebhookEvent as NumberOrderStatusUpdateWebhookEvent,
|
|
9343
|
+
type NumberReputationExternalVerificationStatusChangedWebhookEvent as NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
9344
|
+
type NumberReputationNumberFlaggedWebhookEvent as NumberReputationNumberFlaggedWebhookEvent,
|
|
9345
|
+
type NumberReputationNumberRemovedWebhookEvent as NumberReputationNumberRemovedWebhookEvent,
|
|
8608
9346
|
type RecordingAvailableWebhookEvent as RecordingAvailableWebhookEvent,
|
|
8609
9347
|
type ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent,
|
|
8610
9348
|
type SessionStatusChangedWebhookEvent as SessionStatusChangedWebhookEvent,
|
|
8611
9349
|
type TranscriptCompletedWebhookEvent as TranscriptCompletedWebhookEvent,
|
|
8612
9350
|
type TranscriptionWebhookEvent as TranscriptionWebhookEvent,
|
|
9351
|
+
type WhatsappWabaAddedWebhookEvent as WhatsappWabaAddedWebhookEvent,
|
|
8613
9352
|
type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent,
|
|
8614
9353
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
8615
9354
|
};
|