telnyx 7.24.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 +14 -0
- package/client.d.mts +27 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +27 -6
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +21 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +16 -6
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +16 -6
- 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 +551 -33
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +551 -33
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +79 -2
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +79 -2
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/deleted.d.mts +60 -0
- package/resources/ai/assistants/deleted.d.mts.map +1 -0
- package/resources/ai/assistants/deleted.d.ts +60 -0
- package/resources/ai/assistants/deleted.d.ts.map +1 -0
- package/resources/ai/assistants/deleted.js +49 -0
- package/resources/ai/assistants/deleted.js.map +1 -0
- package/resources/ai/assistants/deleted.mjs +45 -0
- package/resources/ai/assistants/deleted.mjs.map +1 -0
- package/resources/ai/assistants/index.d.mts +2 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js +3 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs +1 -0
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +48 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +48 -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 +21 -2
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +21 -2
- 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/embeddings/embeddings.d.mts +1 -1
- package/resources/ai/embeddings/embeddings.d.ts +1 -1
- package/resources/ai/embeddings/embeddings.js +1 -1
- package/resources/ai/embeddings/embeddings.mjs +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/index.d.mts +1 -1
- package/resources/ai/memory/index.d.mts.map +1 -1
- package/resources/ai/memory/index.d.ts +1 -1
- package/resources/ai/memory/index.d.ts.map +1 -1
- package/resources/ai/memory/index.js.map +1 -1
- package/resources/ai/memory/index.mjs +1 -1
- package/resources/ai/memory/index.mjs.map +1 -1
- package/resources/ai/memory/memory.d.mts +2 -2
- package/resources/ai/memory/memory.d.mts.map +1 -1
- package/resources/ai/memory/memory.d.ts +2 -2
- package/resources/ai/memory/memory.d.ts.map +1 -1
- package/resources/ai/memory/memory.js.map +1 -1
- package/resources/ai/memory/memory.mjs +1 -1
- package/resources/ai/memory/memory.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +2 -2
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +2 -2
- 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 +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +62 -6
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +62 -6
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js +41 -3
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
- 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 +21 -2
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +21 -2
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +20 -5
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +20 -5
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/ai/tools.js +5 -2
- package/resources/ai/tools.js.map +1 -1
- package/resources/ai/tools.mjs +5 -2
- package/resources/ai/tools.mjs.map +1 -1
- package/resources/calls/actions.d.mts +135 -30
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +135 -30
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +31 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +31 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +72 -25
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +72 -25
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +11 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +11 -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 +226 -31
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +226 -31
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +78 -14
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +78 -14
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/index.d.mts +1 -1
- package/resources/dir/index.d.mts.map +1 -1
- package/resources/dir/index.d.ts +1 -1
- package/resources/dir/index.d.ts.map +1 -1
- package/resources/dir/index.js.map +1 -1
- package/resources/dir/index.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +8 -8
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +8 -8
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/dir/phone-numbers.js +4 -4
- package/resources/dir/phone-numbers.mjs +4 -4
- package/resources/dir/references.d.mts +9 -6
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +9 -6
- package/resources/dir/references.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 +25 -3
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +25 -3
- 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 +244 -28
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +244 -28
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +31 -7
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +31 -7
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +2 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +2 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js +3 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs +1 -0
- 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 +64 -3
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +64 -3
- 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 +91 -0
- package/resources/enterprises/verify-email.d.mts.map +1 -0
- package/resources/enterprises/verify-email.d.ts +91 -0
- package/resources/enterprises/verify-email.d.ts.map +1 -0
- package/resources/enterprises/verify-email.js +55 -0
- package/resources/enterprises/verify-email.js.map +1 -0
- package/resources/enterprises/verify-email.mjs +51 -0
- package/resources/enterprises/verify-email.mjs.map +1 -0
- 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 +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/infringement-claims.d.mts +4 -0
- package/resources/infringement-claims.d.mts.map +1 -1
- package/resources/infringement-claims.d.ts +4 -0
- package/resources/infringement-claims.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +6 -0
- package/resources/llm-token-gateway/index.d.mts.map +1 -0
- package/resources/llm-token-gateway/index.d.ts +6 -0
- package/resources/llm-token-gateway/index.d.ts.map +1 -0
- package/resources/llm-token-gateway/index.js +15 -0
- package/resources/llm-token-gateway/index.js.map +1 -0
- package/resources/llm-token-gateway/index.mjs +7 -0
- package/resources/llm-token-gateway/index.mjs.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +22 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +22 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.js +29 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs +24 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
- 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 +319 -0
- package/resources/llm-token-gateway/usage.d.mts.map +1 -0
- package/resources/llm-token-gateway/usage.d.ts +319 -0
- package/resources/llm-token-gateway/usage.d.ts.map +1 -0
- package/resources/llm-token-gateway/usage.js +63 -0
- package/resources/llm-token-gateway/usage.js.map +1 -0
- package/resources/llm-token-gateway/usage.mjs +59 -0
- package/resources/llm-token-gateway/usage.mjs.map +1 -0
- package/resources/llm-token-gateway.d.mts +2 -0
- package/resources/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway.d.ts +2 -0
- package/resources/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway.js +6 -0
- package/resources/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway.mjs +3 -0
- package/resources/llm-token-gateway.mjs.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +6 -6
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
- package/resources/meeting-sessions/meeting-sessions.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/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/requirements.d.mts +2 -2
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +2 -2
- package/resources/requirements.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/spend-limits.d.mts +335 -0
- package/resources/spend-limits.d.mts.map +1 -0
- package/resources/spend-limits.d.ts +335 -0
- package/resources/spend-limits.d.ts.map +1 -0
- package/resources/spend-limits.js +91 -0
- package/resources/spend-limits.js.map +1 -0
- package/resources/spend-limits.mjs +87 -0
- package/resources/spend-limits.mjs.map +1 -0
- package/resources/terms-of-service/agreements.d.mts +12 -0
- package/resources/terms-of-service/agreements.d.mts.map +1 -1
- package/resources/terms-of-service/agreements.d.ts +12 -0
- package/resources/terms-of-service/agreements.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.mts +15 -0
- package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.ts +15 -0
- package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.js.map +1 -1
- package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
- 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 +4 -2
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +4 -2
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/webhooks.d.mts +967 -6
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +967 -6
- 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 +90 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +90 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js +66 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +62 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js +3 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs +1 -0
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.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 +83 -0
- package/src/resources/ai/ai.ts +48 -4
- package/src/resources/ai/assistants/assistants.ts +676 -33
- package/src/resources/ai/assistants/deleted.ts +86 -0
- package/src/resources/ai/assistants/index.ts +13 -0
- package/src/resources/ai/assistants/versions.ts +54 -0
- package/src/resources/ai/avatars.ts +238 -0
- package/src/resources/ai/chat.ts +21 -2
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/embeddings/embeddings.ts +1 -1
- package/src/resources/ai/index.ts +18 -1
- package/src/resources/ai/memory/index.ts +9 -1
- package/src/resources/ai/memory/memory.ts +13 -1
- package/src/resources/ai/memory/namespaces/index.ts +11 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +85 -3
- 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 +21 -2
- package/src/resources/ai/tools.ts +25 -7
- package/src/resources/calls/actions.ts +141 -25
- package/src/resources/calls/calls.ts +73 -17
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/dir/dir.ts +269 -35
- package/src/resources/dir/index.ts +6 -0
- package/src/resources/dir/phone-numbers.ts +9 -10
- package/src/resources/dir/references.ts +9 -6
- package/src/resources/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +27 -3
- package/src/resources/enterprises/enterprises.ts +257 -26
- package/src/resources/enterprises/index.ts +6 -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 +76 -3
- 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 +117 -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 +31 -0
- package/src/resources/infringement-claims.ts +4 -0
- package/src/resources/llm-token-gateway/index.ts +41 -0
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +101 -0
- 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 +460 -0
- package/src/resources/llm-token-gateway.ts +3 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
- package/src/resources/phone-numbers/jobs.ts +18 -5
- package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
- package/src/resources/porting-orders/porting-orders.ts +9 -1
- package/src/resources/porting-phone-numbers.ts +9 -1
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/requirements.ts +2 -2
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/spend-limits.ts +428 -0
- package/src/resources/terms-of-service/agreements.ts +12 -0
- package/src/resources/terms-of-service/terms-of-service.ts +15 -0
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/text-to-speech/text-to-speech.ts +4 -2
- package/src/resources/webhooks.ts +1460 -228
- package/src/resources/whatsapp/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +114 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
- 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 {
|
|
@@ -1645,9 +1723,11 @@ export namespace CallMachinePremiumGreetingEnded {
|
|
|
1645
1723
|
from?: string;
|
|
1646
1724
|
|
|
1647
1725
|
/**
|
|
1648
|
-
* Premium Answering Machine Greeting Ended result.
|
|
1726
|
+
* Premium Answering Machine Greeting Ended result. `prompt_ended` is only sent
|
|
1727
|
+
* when `answering_machine_detection` is `premium_ios_call_screening_detection` and
|
|
1728
|
+
* the iOS call-screening prompt ends without a beep.
|
|
1649
1729
|
*/
|
|
1650
|
-
result?: 'beep_detected' | 'no_beep_detected';
|
|
1730
|
+
result?: 'beep_detected' | 'no_beep_detected' | 'prompt_ended';
|
|
1651
1731
|
|
|
1652
1732
|
/**
|
|
1653
1733
|
* Destination number or SIP URI of the call.
|
|
@@ -4848,6 +4928,98 @@ export interface CallBridgedWebhookEvent {
|
|
|
4848
4928
|
data?: CallBridged;
|
|
4849
4929
|
}
|
|
4850
4930
|
|
|
4931
|
+
export interface CallConversationCreatedWebhookEvent {
|
|
4932
|
+
/**
|
|
4933
|
+
* A conversation has been created for the call. Use the conversation ID to
|
|
4934
|
+
* correlate subsequent conversation events.
|
|
4935
|
+
*/
|
|
4936
|
+
data?: CallConversationCreatedWebhookEvent.Data;
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
export namespace CallConversationCreatedWebhookEvent {
|
|
4940
|
+
/**
|
|
4941
|
+
* A conversation has been created for the call. Use the conversation ID to
|
|
4942
|
+
* correlate subsequent conversation events.
|
|
4943
|
+
*/
|
|
4944
|
+
export interface Data {
|
|
4945
|
+
/**
|
|
4946
|
+
* Unique identifier for the event.
|
|
4947
|
+
*/
|
|
4948
|
+
id?: string;
|
|
4949
|
+
|
|
4950
|
+
/**
|
|
4951
|
+
* Timestamp when the event was created in the system.
|
|
4952
|
+
*/
|
|
4953
|
+
created_at?: string;
|
|
4954
|
+
|
|
4955
|
+
/**
|
|
4956
|
+
* The type of event being delivered.
|
|
4957
|
+
*/
|
|
4958
|
+
event_type?: 'call.conversation.created';
|
|
4959
|
+
|
|
4960
|
+
/**
|
|
4961
|
+
* ISO 8601 datetime of when the event occurred.
|
|
4962
|
+
*/
|
|
4963
|
+
occurred_at?: string;
|
|
4964
|
+
|
|
4965
|
+
payload?: Data.Payload;
|
|
4966
|
+
|
|
4967
|
+
/**
|
|
4968
|
+
* Identifies the type of the resource.
|
|
4969
|
+
*/
|
|
4970
|
+
record_type?: 'event';
|
|
4971
|
+
}
|
|
4972
|
+
|
|
4973
|
+
export namespace Data {
|
|
4974
|
+
export interface Payload {
|
|
4975
|
+
/**
|
|
4976
|
+
* Call ID used to issue commands via Call Control API.
|
|
4977
|
+
*/
|
|
4978
|
+
call_control_id?: string;
|
|
4979
|
+
|
|
4980
|
+
/**
|
|
4981
|
+
* ID that is unique to the call leg.
|
|
4982
|
+
*/
|
|
4983
|
+
call_leg_id?: string;
|
|
4984
|
+
|
|
4985
|
+
/**
|
|
4986
|
+
* ID that is unique to the call session (group of related call legs).
|
|
4987
|
+
*/
|
|
4988
|
+
call_session_id?: string;
|
|
4989
|
+
|
|
4990
|
+
/**
|
|
4991
|
+
* The type of calling party connection.
|
|
4992
|
+
*/
|
|
4993
|
+
calling_party_type?: 'pstn' | 'sip';
|
|
4994
|
+
|
|
4995
|
+
/**
|
|
4996
|
+
* Base64-encoded state received from a command.
|
|
4997
|
+
*/
|
|
4998
|
+
client_state?: string;
|
|
4999
|
+
|
|
5000
|
+
/**
|
|
5001
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
5002
|
+
*/
|
|
5003
|
+
connection_id?: string;
|
|
5004
|
+
|
|
5005
|
+
/**
|
|
5006
|
+
* Unique identifier of the conversation created for this call.
|
|
5007
|
+
*/
|
|
5008
|
+
conversation_id?: string;
|
|
5009
|
+
|
|
5010
|
+
/**
|
|
5011
|
+
* The caller's number or identifier.
|
|
5012
|
+
*/
|
|
5013
|
+
from?: string;
|
|
5014
|
+
|
|
5015
|
+
/**
|
|
5016
|
+
* The callee's number or SIP address.
|
|
5017
|
+
*/
|
|
5018
|
+
to?: string;
|
|
5019
|
+
}
|
|
5020
|
+
}
|
|
5021
|
+
}
|
|
5022
|
+
|
|
4851
5023
|
export interface CallConversationEndedWebhookEvent {
|
|
4852
5024
|
data?: CallConversationEnded;
|
|
4853
5025
|
}
|
|
@@ -4856,6 +5028,108 @@ export interface CallConversationInsightsGeneratedWebhookEvent {
|
|
|
4856
5028
|
data?: CallConversationInsightsGenerated;
|
|
4857
5029
|
}
|
|
4858
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
|
+
|
|
4859
5133
|
export interface CallCostWebhookEvent {
|
|
4860
5134
|
data?: CallCostWebhookEvent.Data;
|
|
4861
5135
|
}
|
|
@@ -5238,32 +5512,24 @@ export interface CallMachineGreetingEndedWebhookEvent {
|
|
|
5238
5512
|
data?: CallMachineGreetingEnded;
|
|
5239
5513
|
}
|
|
5240
5514
|
|
|
5241
|
-
export interface
|
|
5242
|
-
data?:
|
|
5243
|
-
}
|
|
5244
|
-
|
|
5245
|
-
export interface CallMachinePremiumGreetingEndedWebhookEvent {
|
|
5246
|
-
data?: CallMachinePremiumGreetingEnded;
|
|
5247
|
-
}
|
|
5248
|
-
|
|
5249
|
-
export interface CallPaymentCompletedWebhookEvent {
|
|
5250
|
-
data?: CallPaymentCompletedWebhookEvent.Data;
|
|
5515
|
+
export interface CallMachinePremiumCallScreeningDetectedWebhookEvent {
|
|
5516
|
+
data?: CallMachinePremiumCallScreeningDetectedWebhookEvent.Data;
|
|
5251
5517
|
}
|
|
5252
5518
|
|
|
5253
|
-
export namespace
|
|
5519
|
+
export namespace CallMachinePremiumCallScreeningDetectedWebhookEvent {
|
|
5254
5520
|
export interface Data {
|
|
5255
5521
|
/**
|
|
5256
|
-
*
|
|
5522
|
+
* Identifies the type of resource.
|
|
5257
5523
|
*/
|
|
5258
5524
|
id?: string;
|
|
5259
5525
|
|
|
5260
5526
|
/**
|
|
5261
5527
|
* The type of event being delivered.
|
|
5262
5528
|
*/
|
|
5263
|
-
event_type?: 'call.
|
|
5529
|
+
event_type?: 'call.machine.premium.call_screening.detected';
|
|
5264
5530
|
|
|
5265
5531
|
/**
|
|
5266
|
-
* ISO 8601 datetime when the event occurred.
|
|
5532
|
+
* ISO 8601 datetime of when the event occurred.
|
|
5267
5533
|
*/
|
|
5268
5534
|
occurred_at?: string;
|
|
5269
5535
|
|
|
@@ -5277,78 +5543,235 @@ export namespace CallPaymentCompletedWebhookEvent {
|
|
|
5277
5543
|
|
|
5278
5544
|
export namespace Data {
|
|
5279
5545
|
export interface Payload {
|
|
5280
|
-
/**
|
|
5281
|
-
* Masked bank account number with only the last two digits visible.
|
|
5282
|
-
*/
|
|
5283
|
-
bank_account_number?: string;
|
|
5284
|
-
|
|
5285
|
-
/**
|
|
5286
|
-
* Bank account type, when available.
|
|
5287
|
-
*/
|
|
5288
|
-
bank_account_type?: string;
|
|
5289
|
-
|
|
5290
|
-
/**
|
|
5291
|
-
* Bank routing number collected from the caller.
|
|
5292
|
-
*/
|
|
5293
|
-
bank_routing_number?: string;
|
|
5294
|
-
|
|
5295
5546
|
/**
|
|
5296
5547
|
* Call ID used to issue commands via Call Control API.
|
|
5297
5548
|
*/
|
|
5298
5549
|
call_control_id?: string;
|
|
5299
5550
|
|
|
5300
5551
|
/**
|
|
5301
|
-
* ID unique to the call
|
|
5552
|
+
* ID that is unique to the call and can be used to correlate webhook events.
|
|
5302
5553
|
*/
|
|
5303
5554
|
call_leg_id?: string;
|
|
5304
5555
|
|
|
5305
5556
|
/**
|
|
5306
|
-
* ID
|
|
5557
|
+
* ID that is unique to the call session and can be used to correlate webhook
|
|
5558
|
+
* events. Call session is a group of related call legs that logically belong to
|
|
5559
|
+
* the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
5307
5560
|
*/
|
|
5308
5561
|
call_session_id?: string;
|
|
5309
5562
|
|
|
5310
5563
|
/**
|
|
5311
|
-
*
|
|
5312
|
-
*/
|
|
5313
|
-
charge_id?: string;
|
|
5314
|
-
|
|
5315
|
-
/**
|
|
5316
|
-
* Base64-encoded state received from the command.
|
|
5564
|
+
* State received from a command.
|
|
5317
5565
|
*/
|
|
5318
5566
|
client_state?: string;
|
|
5319
5567
|
|
|
5320
5568
|
/**
|
|
5321
|
-
* Call Control App ID used in the call.
|
|
5569
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
5322
5570
|
*/
|
|
5323
5571
|
connection_id?: string;
|
|
5324
5572
|
|
|
5325
|
-
/**
|
|
5326
|
-
* Additional connector error information, when supplied by the processor.
|
|
5327
|
-
*/
|
|
5328
|
-
connector_error?: string | { [key: string]: unknown };
|
|
5329
|
-
|
|
5330
|
-
/**
|
|
5331
|
-
* Card expiration date in MMYY format.
|
|
5332
|
-
*/
|
|
5333
|
-
expiration_date?: string;
|
|
5334
|
-
|
|
5335
5573
|
/**
|
|
5336
5574
|
* Number or SIP URI placing the call.
|
|
5337
5575
|
*/
|
|
5338
5576
|
from?: string;
|
|
5339
5577
|
|
|
5340
5578
|
/**
|
|
5341
|
-
*
|
|
5579
|
+
* Apple Call Screening detection result. Sent when an Apple Call Screening tone is
|
|
5580
|
+
* detected; Premium Answering Machine Detection is restarted on the screened call
|
|
5581
|
+
* afterwards.
|
|
5342
5582
|
*/
|
|
5343
|
-
|
|
5583
|
+
result?: 'screening';
|
|
5344
5584
|
|
|
5345
5585
|
/**
|
|
5346
|
-
*
|
|
5586
|
+
* Destination number or SIP URI of the call.
|
|
5347
5587
|
*/
|
|
5348
|
-
|
|
5588
|
+
to?: string;
|
|
5589
|
+
}
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5349
5592
|
|
|
5350
|
-
|
|
5351
|
-
|
|
5593
|
+
export interface CallMachinePremiumDetectionEndedWebhookEvent {
|
|
5594
|
+
data?: CallMachinePremiumDetectionEnded;
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5597
|
+
export interface CallMachinePremiumDetectionStartedWebhookEvent {
|
|
5598
|
+
data?: CallMachinePremiumDetectionStartedWebhookEvent.Data;
|
|
5599
|
+
}
|
|
5600
|
+
|
|
5601
|
+
export namespace CallMachinePremiumDetectionStartedWebhookEvent {
|
|
5602
|
+
export interface Data {
|
|
5603
|
+
/**
|
|
5604
|
+
* Identifies the type of resource.
|
|
5605
|
+
*/
|
|
5606
|
+
id?: string;
|
|
5607
|
+
|
|
5608
|
+
/**
|
|
5609
|
+
* The type of event being delivered.
|
|
5610
|
+
*/
|
|
5611
|
+
event_type?: 'call.machine.premium.detection.started';
|
|
5612
|
+
|
|
5613
|
+
/**
|
|
5614
|
+
* ISO 8601 datetime of when the event occurred.
|
|
5615
|
+
*/
|
|
5616
|
+
occurred_at?: string;
|
|
5617
|
+
|
|
5618
|
+
payload?: Data.Payload;
|
|
5619
|
+
|
|
5620
|
+
/**
|
|
5621
|
+
* Identifies the type of the resource.
|
|
5622
|
+
*/
|
|
5623
|
+
record_type?: 'event';
|
|
5624
|
+
}
|
|
5625
|
+
|
|
5626
|
+
export namespace Data {
|
|
5627
|
+
export interface Payload {
|
|
5628
|
+
/**
|
|
5629
|
+
* Call ID used to issue commands via Call Control API.
|
|
5630
|
+
*/
|
|
5631
|
+
call_control_id?: string;
|
|
5632
|
+
|
|
5633
|
+
/**
|
|
5634
|
+
* ID that is unique to the call and can be used to correlate webhook events.
|
|
5635
|
+
*/
|
|
5636
|
+
call_leg_id?: string;
|
|
5637
|
+
|
|
5638
|
+
/**
|
|
5639
|
+
* ID that is unique to the call session and can be used to correlate webhook
|
|
5640
|
+
* events. Call session is a group of related call legs that logically belong to
|
|
5641
|
+
* the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
5642
|
+
*/
|
|
5643
|
+
call_session_id?: string;
|
|
5644
|
+
|
|
5645
|
+
/**
|
|
5646
|
+
* State received from a command.
|
|
5647
|
+
*/
|
|
5648
|
+
client_state?: string;
|
|
5649
|
+
|
|
5650
|
+
/**
|
|
5651
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
5652
|
+
*/
|
|
5653
|
+
connection_id?: string;
|
|
5654
|
+
|
|
5655
|
+
/**
|
|
5656
|
+
* Number or SIP URI placing the call.
|
|
5657
|
+
*/
|
|
5658
|
+
from?: string;
|
|
5659
|
+
|
|
5660
|
+
/**
|
|
5661
|
+
* Destination number or SIP URI of the call.
|
|
5662
|
+
*/
|
|
5663
|
+
to?: string;
|
|
5664
|
+
}
|
|
5665
|
+
}
|
|
5666
|
+
}
|
|
5667
|
+
|
|
5668
|
+
export interface CallMachinePremiumGreetingEndedWebhookEvent {
|
|
5669
|
+
data?: CallMachinePremiumGreetingEnded;
|
|
5670
|
+
}
|
|
5671
|
+
|
|
5672
|
+
export interface CallPaymentCompletedWebhookEvent {
|
|
5673
|
+
data?: CallPaymentCompletedWebhookEvent.Data;
|
|
5674
|
+
}
|
|
5675
|
+
|
|
5676
|
+
export namespace CallPaymentCompletedWebhookEvent {
|
|
5677
|
+
export interface Data {
|
|
5678
|
+
/**
|
|
5679
|
+
* Unique identifier for the event.
|
|
5680
|
+
*/
|
|
5681
|
+
id?: string;
|
|
5682
|
+
|
|
5683
|
+
/**
|
|
5684
|
+
* The type of event being delivered.
|
|
5685
|
+
*/
|
|
5686
|
+
event_type?: 'call.payment.completed';
|
|
5687
|
+
|
|
5688
|
+
/**
|
|
5689
|
+
* ISO 8601 datetime when the event occurred.
|
|
5690
|
+
*/
|
|
5691
|
+
occurred_at?: string;
|
|
5692
|
+
|
|
5693
|
+
payload?: Data.Payload;
|
|
5694
|
+
|
|
5695
|
+
/**
|
|
5696
|
+
* Identifies the type of the resource.
|
|
5697
|
+
*/
|
|
5698
|
+
record_type?: 'event';
|
|
5699
|
+
}
|
|
5700
|
+
|
|
5701
|
+
export namespace Data {
|
|
5702
|
+
export interface Payload {
|
|
5703
|
+
/**
|
|
5704
|
+
* Masked bank account number with only the last two digits visible.
|
|
5705
|
+
*/
|
|
5706
|
+
bank_account_number?: string;
|
|
5707
|
+
|
|
5708
|
+
/**
|
|
5709
|
+
* Bank account type, when available.
|
|
5710
|
+
*/
|
|
5711
|
+
bank_account_type?: string;
|
|
5712
|
+
|
|
5713
|
+
/**
|
|
5714
|
+
* Bank routing number collected from the caller.
|
|
5715
|
+
*/
|
|
5716
|
+
bank_routing_number?: string;
|
|
5717
|
+
|
|
5718
|
+
/**
|
|
5719
|
+
* Call ID used to issue commands via Call Control API.
|
|
5720
|
+
*/
|
|
5721
|
+
call_control_id?: string;
|
|
5722
|
+
|
|
5723
|
+
/**
|
|
5724
|
+
* ID unique to the call leg.
|
|
5725
|
+
*/
|
|
5726
|
+
call_leg_id?: string;
|
|
5727
|
+
|
|
5728
|
+
/**
|
|
5729
|
+
* ID shared by related call legs in the same call session.
|
|
5730
|
+
*/
|
|
5731
|
+
call_session_id?: string;
|
|
5732
|
+
|
|
5733
|
+
/**
|
|
5734
|
+
* Charge identifier returned for a successful charge transaction.
|
|
5735
|
+
*/
|
|
5736
|
+
charge_id?: string;
|
|
5737
|
+
|
|
5738
|
+
/**
|
|
5739
|
+
* Base64-encoded state received from the command.
|
|
5740
|
+
*/
|
|
5741
|
+
client_state?: string;
|
|
5742
|
+
|
|
5743
|
+
/**
|
|
5744
|
+
* Call Control App ID used in the call.
|
|
5745
|
+
*/
|
|
5746
|
+
connection_id?: string;
|
|
5747
|
+
|
|
5748
|
+
/**
|
|
5749
|
+
* Additional connector error information, when supplied by the processor.
|
|
5750
|
+
*/
|
|
5751
|
+
connector_error?: string | { [key: string]: unknown };
|
|
5752
|
+
|
|
5753
|
+
/**
|
|
5754
|
+
* Card expiration date in MMYY format.
|
|
5755
|
+
*/
|
|
5756
|
+
expiration_date?: string;
|
|
5757
|
+
|
|
5758
|
+
/**
|
|
5759
|
+
* Number or SIP URI placing the call.
|
|
5760
|
+
*/
|
|
5761
|
+
from?: string;
|
|
5762
|
+
|
|
5763
|
+
/**
|
|
5764
|
+
* Error code returned by the payment connector or processor.
|
|
5765
|
+
*/
|
|
5766
|
+
pay_error_code?: string;
|
|
5767
|
+
|
|
5768
|
+
/**
|
|
5769
|
+
* Masked card number with only the last four digits visible.
|
|
5770
|
+
*/
|
|
5771
|
+
payment_card_number?: string;
|
|
5772
|
+
|
|
5773
|
+
/**
|
|
5774
|
+
* Billing postal code collected from the caller.
|
|
5352
5775
|
*/
|
|
5353
5776
|
payment_card_postal_code?: string;
|
|
5354
5777
|
|
|
@@ -6101,89 +6524,260 @@ export namespace NumberOrderStatusUpdateWebhookEvent {
|
|
|
6101
6524
|
}
|
|
6102
6525
|
}
|
|
6103
6526
|
|
|
6104
|
-
export interface
|
|
6105
|
-
|
|
6106
|
-
* Unique event id; deduplicate deliveries on it.
|
|
6107
|
-
*/
|
|
6108
|
-
id: string;
|
|
6109
|
-
|
|
6110
|
-
/**
|
|
6111
|
-
* Available recording types.
|
|
6112
|
-
*/
|
|
6113
|
-
data: RecordingAvailableWebhookEvent.Data;
|
|
6114
|
-
|
|
6115
|
-
/**
|
|
6116
|
-
* Event type.
|
|
6117
|
-
*/
|
|
6118
|
-
event: 'recording.available';
|
|
6119
|
-
|
|
6120
|
-
/**
|
|
6121
|
-
* When the event occurred.
|
|
6122
|
-
*/
|
|
6123
|
-
occurred_at: string;
|
|
6527
|
+
export interface NumberReputationExternalVerificationStatusChangedWebhookEvent {
|
|
6528
|
+
data: NumberReputationExternalVerificationStatusChangedWebhookEvent.Data;
|
|
6124
6529
|
|
|
6125
|
-
|
|
6126
|
-
* Envelope version.
|
|
6127
|
-
*/
|
|
6128
|
-
version: string;
|
|
6530
|
+
meta: NumberReputationExternalVerificationStatusChangedWebhookEvent.Meta;
|
|
6129
6531
|
}
|
|
6130
6532
|
|
|
6131
|
-
export namespace
|
|
6132
|
-
/**
|
|
6133
|
-
* Available recording types.
|
|
6134
|
-
*/
|
|
6533
|
+
export namespace NumberReputationExternalVerificationStatusChangedWebhookEvent {
|
|
6135
6534
|
export interface Data {
|
|
6136
6535
|
/**
|
|
6137
|
-
*
|
|
6536
|
+
* Identifies the event; the same id is reused if the event is redelivered.
|
|
6138
6537
|
*/
|
|
6139
|
-
|
|
6538
|
+
id: string;
|
|
6140
6539
|
|
|
6141
|
-
|
|
6142
|
-
* The meeting session this event belongs to.
|
|
6143
|
-
*/
|
|
6144
|
-
session_id: string;
|
|
6145
|
-
}
|
|
6146
|
-
}
|
|
6540
|
+
event_type: 'number_reputation.external_verification.status_changed';
|
|
6147
6541
|
|
|
6148
|
-
|
|
6149
|
-
data?: ReplacedLinkClick;
|
|
6150
|
-
}
|
|
6542
|
+
occurred_at: string;
|
|
6151
6543
|
|
|
6152
|
-
|
|
6153
|
-
/**
|
|
6154
|
-
* Unique event id; deduplicate deliveries on it.
|
|
6155
|
-
*/
|
|
6156
|
-
id: string;
|
|
6544
|
+
payload: Data.Payload;
|
|
6157
6545
|
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
*/
|
|
6161
|
-
data: SessionStatusChangedWebhookEvent.Data;
|
|
6546
|
+
record_type: 'event';
|
|
6547
|
+
}
|
|
6162
6548
|
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
event: 'session.status_changed';
|
|
6549
|
+
export namespace Data {
|
|
6550
|
+
export interface Payload {
|
|
6551
|
+
enterprise_id: string;
|
|
6167
6552
|
|
|
6168
|
-
|
|
6169
|
-
* When the event occurred.
|
|
6170
|
-
*/
|
|
6171
|
-
occurred_at: string;
|
|
6553
|
+
record_type: 'reputation_external_verification';
|
|
6172
6554
|
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6555
|
+
/**
|
|
6556
|
+
* When the review decision was made. Always set: this event is only sent after a
|
|
6557
|
+
* review.
|
|
6558
|
+
*/
|
|
6559
|
+
reviewed_at: string;
|
|
6178
6560
|
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
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
|
+
|
|
6698
|
+
export interface RecordingAvailableWebhookEvent {
|
|
6699
|
+
/**
|
|
6700
|
+
* Unique event id; deduplicate deliveries on it.
|
|
6701
|
+
*/
|
|
6702
|
+
id: string;
|
|
6703
|
+
|
|
6704
|
+
/**
|
|
6705
|
+
* Available recording types.
|
|
6706
|
+
*/
|
|
6707
|
+
data: RecordingAvailableWebhookEvent.Data;
|
|
6708
|
+
|
|
6709
|
+
/**
|
|
6710
|
+
* Event type.
|
|
6711
|
+
*/
|
|
6712
|
+
event: 'recording.available';
|
|
6713
|
+
|
|
6714
|
+
/**
|
|
6715
|
+
* When the event occurred.
|
|
6716
|
+
*/
|
|
6717
|
+
occurred_at: string;
|
|
6718
|
+
|
|
6719
|
+
/**
|
|
6720
|
+
* Envelope version.
|
|
6721
|
+
*/
|
|
6722
|
+
version: string;
|
|
6723
|
+
}
|
|
6724
|
+
|
|
6725
|
+
export namespace RecordingAvailableWebhookEvent {
|
|
6726
|
+
/**
|
|
6727
|
+
* Available recording types.
|
|
6728
|
+
*/
|
|
6729
|
+
export interface Data {
|
|
6730
|
+
/**
|
|
6731
|
+
* Available recording types.
|
|
6732
|
+
*/
|
|
6733
|
+
recording_types: Array<string>;
|
|
6734
|
+
|
|
6735
|
+
/**
|
|
6736
|
+
* The meeting session this event belongs to.
|
|
6737
|
+
*/
|
|
6738
|
+
session_id: string;
|
|
6739
|
+
}
|
|
6740
|
+
}
|
|
6741
|
+
|
|
6742
|
+
export interface ReplacedLinkClickWebhookEvent {
|
|
6743
|
+
data?: ReplacedLinkClick;
|
|
6744
|
+
}
|
|
6745
|
+
|
|
6746
|
+
export interface SessionStatusChangedWebhookEvent {
|
|
6747
|
+
/**
|
|
6748
|
+
* Unique event id; deduplicate deliveries on it.
|
|
6749
|
+
*/
|
|
6750
|
+
id: string;
|
|
6751
|
+
|
|
6752
|
+
/**
|
|
6753
|
+
* Status transition details.
|
|
6754
|
+
*/
|
|
6755
|
+
data: SessionStatusChangedWebhookEvent.Data;
|
|
6756
|
+
|
|
6757
|
+
/**
|
|
6758
|
+
* Event type.
|
|
6759
|
+
*/
|
|
6760
|
+
event: 'session.status_changed';
|
|
6761
|
+
|
|
6762
|
+
/**
|
|
6763
|
+
* When the event occurred.
|
|
6764
|
+
*/
|
|
6765
|
+
occurred_at: string;
|
|
6766
|
+
|
|
6767
|
+
/**
|
|
6768
|
+
* Envelope version.
|
|
6769
|
+
*/
|
|
6770
|
+
version: string;
|
|
6771
|
+
}
|
|
6772
|
+
|
|
6773
|
+
export namespace SessionStatusChangedWebhookEvent {
|
|
6774
|
+
/**
|
|
6775
|
+
* Status transition details.
|
|
6776
|
+
*/
|
|
6777
|
+
export interface Data {
|
|
6778
|
+
/**
|
|
6779
|
+
* Whether the session is recording at this lifecycle edge.
|
|
6780
|
+
*/
|
|
6187
6781
|
recording: boolean;
|
|
6188
6782
|
|
|
6189
6783
|
/**
|
|
@@ -6262,6 +6856,56 @@ export interface TranscriptionWebhookEvent {
|
|
|
6262
6856
|
data?: Transcription;
|
|
6263
6857
|
}
|
|
6264
6858
|
|
|
6859
|
+
export interface WhatsappWabaAddedWebhookEvent {
|
|
6860
|
+
data: WhatsappWabaAddedWebhookEvent.Data;
|
|
6861
|
+
}
|
|
6862
|
+
|
|
6863
|
+
export namespace WhatsappWabaAddedWebhookEvent {
|
|
6864
|
+
export interface Data {
|
|
6865
|
+
id: string;
|
|
6866
|
+
|
|
6867
|
+
event_type: 'whatsapp.waba_added';
|
|
6868
|
+
|
|
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
|
+
|
|
6265
6909
|
export interface CallAIGatherEndedWebhookEvent {
|
|
6266
6910
|
data?: CallAIGatherEnded;
|
|
6267
6911
|
}
|
|
@@ -6417,29 +7061,34 @@ export interface CallBridgedWebhookEvent {
|
|
|
6417
7061
|
data?: CallBridged;
|
|
6418
7062
|
}
|
|
6419
7063
|
|
|
6420
|
-
export interface
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
data?:
|
|
6426
|
-
}
|
|
6427
|
-
|
|
6428
|
-
export interface CallCostWebhookEvent {
|
|
6429
|
-
data?: CallCostWebhookEvent.Data;
|
|
7064
|
+
export interface CallConversationCreatedWebhookEvent {
|
|
7065
|
+
/**
|
|
7066
|
+
* A conversation has been created for the call. Use the conversation ID to
|
|
7067
|
+
* correlate subsequent conversation events.
|
|
7068
|
+
*/
|
|
7069
|
+
data?: CallConversationCreatedWebhookEvent.Data;
|
|
6430
7070
|
}
|
|
6431
7071
|
|
|
6432
|
-
export namespace
|
|
7072
|
+
export namespace CallConversationCreatedWebhookEvent {
|
|
7073
|
+
/**
|
|
7074
|
+
* A conversation has been created for the call. Use the conversation ID to
|
|
7075
|
+
* correlate subsequent conversation events.
|
|
7076
|
+
*/
|
|
6433
7077
|
export interface Data {
|
|
6434
7078
|
/**
|
|
6435
|
-
* Unique identifier
|
|
7079
|
+
* Unique identifier for the event.
|
|
6436
7080
|
*/
|
|
6437
7081
|
id?: string;
|
|
6438
7082
|
|
|
7083
|
+
/**
|
|
7084
|
+
* Timestamp when the event was created in the system.
|
|
7085
|
+
*/
|
|
7086
|
+
created_at?: string;
|
|
7087
|
+
|
|
6439
7088
|
/**
|
|
6440
7089
|
* The type of event being delivered.
|
|
6441
7090
|
*/
|
|
6442
|
-
event_type?: 'call.
|
|
7091
|
+
event_type?: 'call.conversation.created';
|
|
6443
7092
|
|
|
6444
7093
|
/**
|
|
6445
7094
|
* ISO 8601 datetime of when the event occurred.
|
|
@@ -6456,35 +7105,28 @@ export namespace CallCostWebhookEvent {
|
|
|
6456
7105
|
|
|
6457
7106
|
export namespace Data {
|
|
6458
7107
|
export interface Payload {
|
|
6459
|
-
/**
|
|
6460
|
-
* The longest billed duration across all cost parts, in seconds.
|
|
6461
|
-
*/
|
|
6462
|
-
billed_duration_secs?: number | null;
|
|
6463
|
-
|
|
6464
|
-
/**
|
|
6465
|
-
* Identifies the billing group associated with the call.
|
|
6466
|
-
*/
|
|
6467
|
-
billing_group_id?: string | null;
|
|
6468
|
-
|
|
6469
7108
|
/**
|
|
6470
7109
|
* Call ID used to issue commands via Call Control API.
|
|
6471
7110
|
*/
|
|
6472
7111
|
call_control_id?: string;
|
|
6473
7112
|
|
|
6474
7113
|
/**
|
|
6475
|
-
* ID that is unique to the call
|
|
7114
|
+
* ID that is unique to the call leg.
|
|
6476
7115
|
*/
|
|
6477
7116
|
call_leg_id?: string;
|
|
6478
7117
|
|
|
6479
7118
|
/**
|
|
6480
|
-
* ID that is unique to the call session
|
|
6481
|
-
* events. Call session is a group of related call legs that logically belong to
|
|
6482
|
-
* the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
7119
|
+
* ID that is unique to the call session (group of related call legs).
|
|
6483
7120
|
*/
|
|
6484
7121
|
call_session_id?: string;
|
|
6485
7122
|
|
|
6486
7123
|
/**
|
|
6487
|
-
*
|
|
7124
|
+
* The type of calling party connection.
|
|
7125
|
+
*/
|
|
7126
|
+
calling_party_type?: 'pstn' | 'sip';
|
|
7127
|
+
|
|
7128
|
+
/**
|
|
7129
|
+
* Base64-encoded state received from a command.
|
|
6488
7130
|
*/
|
|
6489
7131
|
client_state?: string;
|
|
6490
7132
|
|
|
@@ -6494,14 +7136,210 @@ export namespace CallCostWebhookEvent {
|
|
|
6494
7136
|
connection_id?: string;
|
|
6495
7137
|
|
|
6496
7138
|
/**
|
|
6497
|
-
*
|
|
7139
|
+
* Unique identifier of the conversation created for this call.
|
|
6498
7140
|
*/
|
|
6499
|
-
|
|
7141
|
+
conversation_id?: string;
|
|
6500
7142
|
|
|
6501
7143
|
/**
|
|
6502
|
-
*
|
|
7144
|
+
* The caller's number or identifier.
|
|
6503
7145
|
*/
|
|
6504
|
-
|
|
7146
|
+
from?: string;
|
|
7147
|
+
|
|
7148
|
+
/**
|
|
7149
|
+
* The callee's number or SIP address.
|
|
7150
|
+
*/
|
|
7151
|
+
to?: string;
|
|
7152
|
+
}
|
|
7153
|
+
}
|
|
7154
|
+
}
|
|
7155
|
+
|
|
7156
|
+
export interface CallConversationEndedWebhookEvent {
|
|
7157
|
+
data?: CallConversationEnded;
|
|
7158
|
+
}
|
|
7159
|
+
|
|
7160
|
+
export interface CallConversationInsightsGeneratedWebhookEvent {
|
|
7161
|
+
data?: CallConversationInsightsGenerated;
|
|
7162
|
+
}
|
|
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
|
+
|
|
7266
|
+
export interface CallCostWebhookEvent {
|
|
7267
|
+
data?: CallCostWebhookEvent.Data;
|
|
7268
|
+
}
|
|
7269
|
+
|
|
7270
|
+
export namespace CallCostWebhookEvent {
|
|
7271
|
+
export interface Data {
|
|
7272
|
+
/**
|
|
7273
|
+
* Unique identifier of the event.
|
|
7274
|
+
*/
|
|
7275
|
+
id?: string;
|
|
7276
|
+
|
|
7277
|
+
/**
|
|
7278
|
+
* The type of event being delivered.
|
|
7279
|
+
*/
|
|
7280
|
+
event_type?: 'call.cost';
|
|
7281
|
+
|
|
7282
|
+
/**
|
|
7283
|
+
* ISO 8601 datetime of when the event occurred.
|
|
7284
|
+
*/
|
|
7285
|
+
occurred_at?: string;
|
|
7286
|
+
|
|
7287
|
+
payload?: Data.Payload;
|
|
7288
|
+
|
|
7289
|
+
/**
|
|
7290
|
+
* Identifies the type of the resource.
|
|
7291
|
+
*/
|
|
7292
|
+
record_type?: 'event';
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7295
|
+
export namespace Data {
|
|
7296
|
+
export interface Payload {
|
|
7297
|
+
/**
|
|
7298
|
+
* The longest billed duration across all cost parts, in seconds.
|
|
7299
|
+
*/
|
|
7300
|
+
billed_duration_secs?: number | null;
|
|
7301
|
+
|
|
7302
|
+
/**
|
|
7303
|
+
* Identifies the billing group associated with the call.
|
|
7304
|
+
*/
|
|
7305
|
+
billing_group_id?: string | null;
|
|
7306
|
+
|
|
7307
|
+
/**
|
|
7308
|
+
* Call ID used to issue commands via Call Control API.
|
|
7309
|
+
*/
|
|
7310
|
+
call_control_id?: string;
|
|
7311
|
+
|
|
7312
|
+
/**
|
|
7313
|
+
* ID that is unique to the call and can be used to correlate webhook events.
|
|
7314
|
+
*/
|
|
7315
|
+
call_leg_id?: string;
|
|
7316
|
+
|
|
7317
|
+
/**
|
|
7318
|
+
* ID that is unique to the call session and can be used to correlate webhook
|
|
7319
|
+
* events. Call session is a group of related call legs that logically belong to
|
|
7320
|
+
* the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
7321
|
+
*/
|
|
7322
|
+
call_session_id?: string;
|
|
7323
|
+
|
|
7324
|
+
/**
|
|
7325
|
+
* State received from a command. Base64-encoded.
|
|
7326
|
+
*/
|
|
7327
|
+
client_state?: string;
|
|
7328
|
+
|
|
7329
|
+
/**
|
|
7330
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
7331
|
+
*/
|
|
7332
|
+
connection_id?: string;
|
|
7333
|
+
|
|
7334
|
+
/**
|
|
7335
|
+
* Breakdown of costs by call part.
|
|
7336
|
+
*/
|
|
7337
|
+
cost_parts?: Array<Payload.CostPart>;
|
|
7338
|
+
|
|
7339
|
+
/**
|
|
7340
|
+
* ISO 8601 datetime of when the event occurred.
|
|
7341
|
+
*/
|
|
7342
|
+
occurred_at?: string;
|
|
6505
7343
|
|
|
6506
7344
|
/**
|
|
6507
7345
|
* The status of the cost calculation (`success` or `error`).
|
|
@@ -6551,7 +7389,180 @@ export interface CallDeepfakeDetectionErrorWebhookEvent {
|
|
|
6551
7389
|
data?: CallDeepfakeDetectionErrorWebhookEvent.Data;
|
|
6552
7390
|
}
|
|
6553
7391
|
|
|
6554
|
-
export namespace CallDeepfakeDetectionErrorWebhookEvent {
|
|
7392
|
+
export namespace CallDeepfakeDetectionErrorWebhookEvent {
|
|
7393
|
+
export interface Data {
|
|
7394
|
+
/**
|
|
7395
|
+
* Identifies the type of resource.
|
|
7396
|
+
*/
|
|
7397
|
+
id?: string;
|
|
7398
|
+
|
|
7399
|
+
/**
|
|
7400
|
+
* The type of event being delivered.
|
|
7401
|
+
*/
|
|
7402
|
+
event_type?: 'call.deepfake_detection.error';
|
|
7403
|
+
|
|
7404
|
+
/**
|
|
7405
|
+
* ISO 8601 datetime of when the event occurred.
|
|
7406
|
+
*/
|
|
7407
|
+
occurred_at?: string;
|
|
7408
|
+
|
|
7409
|
+
payload?: Data.Payload;
|
|
7410
|
+
|
|
7411
|
+
/**
|
|
7412
|
+
* Identifies the type of the resource.
|
|
7413
|
+
*/
|
|
7414
|
+
record_type?: 'event';
|
|
7415
|
+
}
|
|
7416
|
+
|
|
7417
|
+
export namespace Data {
|
|
7418
|
+
export interface Payload {
|
|
7419
|
+
/**
|
|
7420
|
+
* Call ID used to issue commands via Call Control API.
|
|
7421
|
+
*/
|
|
7422
|
+
call_control_id?: string;
|
|
7423
|
+
|
|
7424
|
+
/**
|
|
7425
|
+
* ID that is unique to the call and can be used to correlate webhook events.
|
|
7426
|
+
*/
|
|
7427
|
+
call_leg_id?: string;
|
|
7428
|
+
|
|
7429
|
+
/**
|
|
7430
|
+
* ID that is unique to the call session and can be used to correlate webhook
|
|
7431
|
+
* events. Call session is a group of related call legs that logically belong to
|
|
7432
|
+
* the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
7433
|
+
*/
|
|
7434
|
+
call_session_id?: string;
|
|
7435
|
+
|
|
7436
|
+
/**
|
|
7437
|
+
* State received from a command.
|
|
7438
|
+
*/
|
|
7439
|
+
client_state?: string | null;
|
|
7440
|
+
|
|
7441
|
+
/**
|
|
7442
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
7443
|
+
*/
|
|
7444
|
+
connection_id?: string;
|
|
7445
|
+
|
|
7446
|
+
/**
|
|
7447
|
+
* The error that occurred. 'detection_timeout' = no DFD response received,
|
|
7448
|
+
* 'rtp_timeout' = no RTP audio received, 'dfd_connection_error'/'dfd_stream_error'
|
|
7449
|
+
* = service connectivity issues.
|
|
7450
|
+
*/
|
|
7451
|
+
error_message?: 'detection_timeout' | 'rtp_timeout' | 'dfd_connection_error' | 'dfd_stream_error';
|
|
7452
|
+
}
|
|
7453
|
+
}
|
|
7454
|
+
}
|
|
7455
|
+
|
|
7456
|
+
export interface CallDeepfakeDetectionResultWebhookEvent {
|
|
7457
|
+
data?: CallDeepfakeDetectionResultWebhookEvent.Data;
|
|
7458
|
+
}
|
|
7459
|
+
|
|
7460
|
+
export namespace CallDeepfakeDetectionResultWebhookEvent {
|
|
7461
|
+
export interface Data {
|
|
7462
|
+
/**
|
|
7463
|
+
* Identifies the type of resource.
|
|
7464
|
+
*/
|
|
7465
|
+
id?: string;
|
|
7466
|
+
|
|
7467
|
+
/**
|
|
7468
|
+
* The type of event being delivered.
|
|
7469
|
+
*/
|
|
7470
|
+
event_type?: 'call.deepfake_detection.result';
|
|
7471
|
+
|
|
7472
|
+
/**
|
|
7473
|
+
* ISO 8601 datetime of when the event occurred.
|
|
7474
|
+
*/
|
|
7475
|
+
occurred_at?: string;
|
|
7476
|
+
|
|
7477
|
+
payload?: Data.Payload;
|
|
7478
|
+
|
|
7479
|
+
/**
|
|
7480
|
+
* Identifies the type of the resource.
|
|
7481
|
+
*/
|
|
7482
|
+
record_type?: 'event';
|
|
7483
|
+
}
|
|
7484
|
+
|
|
7485
|
+
export namespace Data {
|
|
7486
|
+
export interface Payload {
|
|
7487
|
+
/**
|
|
7488
|
+
* Call ID used to issue commands via Call Control API.
|
|
7489
|
+
*/
|
|
7490
|
+
call_control_id?: string;
|
|
7491
|
+
|
|
7492
|
+
/**
|
|
7493
|
+
* ID that is unique to the call and can be used to correlate webhook events.
|
|
7494
|
+
*/
|
|
7495
|
+
call_leg_id?: string;
|
|
7496
|
+
|
|
7497
|
+
/**
|
|
7498
|
+
* ID that is unique to the call session and can be used to correlate webhook
|
|
7499
|
+
* events. Call session is a group of related call legs that logically belong to
|
|
7500
|
+
* the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
7501
|
+
*/
|
|
7502
|
+
call_session_id?: string;
|
|
7503
|
+
|
|
7504
|
+
/**
|
|
7505
|
+
* State received from a command.
|
|
7506
|
+
*/
|
|
7507
|
+
client_state?: string | null;
|
|
7508
|
+
|
|
7509
|
+
/**
|
|
7510
|
+
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
7511
|
+
*/
|
|
7512
|
+
connection_id?: string;
|
|
7513
|
+
|
|
7514
|
+
/**
|
|
7515
|
+
* Percentage (0-100) indicating how consistently the model classified the audio
|
|
7516
|
+
* across frames. High consistency (>90%) means confident classification
|
|
7517
|
+
* throughout; low consistency suggests mixed signals. Null for silence_timeout.
|
|
7518
|
+
*/
|
|
7519
|
+
consistency?: number | null;
|
|
7520
|
+
|
|
7521
|
+
/**
|
|
7522
|
+
* Detection outcome. 'real' = human voice, 'fake' = AI-generated voice,
|
|
7523
|
+
* 'silence_timeout' = no analyzable speech detected before timeout.
|
|
7524
|
+
*/
|
|
7525
|
+
result?: 'real' | 'fake' | 'silence_timeout';
|
|
7526
|
+
|
|
7527
|
+
/**
|
|
7528
|
+
* Probability that the audio is AI-generated, from 0.0 (likely real) to 1.0
|
|
7529
|
+
* (likely deepfake). Based on the model's aggregated confidence across analyzed
|
|
7530
|
+
* audio frames. Null for silence_timeout.
|
|
7531
|
+
*/
|
|
7532
|
+
score?: number | null;
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
}
|
|
7536
|
+
|
|
7537
|
+
export interface CallDtmfReceivedWebhookEvent {
|
|
7538
|
+
data?: CallDtmfReceived;
|
|
7539
|
+
}
|
|
7540
|
+
|
|
7541
|
+
export interface CallEnqueuedWebhookEvent {
|
|
7542
|
+
data?: CallEnqueued;
|
|
7543
|
+
}
|
|
7544
|
+
|
|
7545
|
+
export interface CallForkStartedWebhookEvent {
|
|
7546
|
+
data?: CallForkStarted;
|
|
7547
|
+
}
|
|
7548
|
+
|
|
7549
|
+
export interface CallForkStoppedWebhookEvent {
|
|
7550
|
+
data?: CallForkStopped;
|
|
7551
|
+
}
|
|
7552
|
+
|
|
7553
|
+
export interface CallGatherEndedWebhookEvent {
|
|
7554
|
+
data?: CallGatherEnded;
|
|
7555
|
+
}
|
|
7556
|
+
|
|
7557
|
+
export interface CallHangupWebhookEvent {
|
|
7558
|
+
data?: CallHangup;
|
|
7559
|
+
}
|
|
7560
|
+
|
|
7561
|
+
export interface CallHoldWebhookEvent {
|
|
7562
|
+
data?: CallHoldWebhookEvent.Data;
|
|
7563
|
+
}
|
|
7564
|
+
|
|
7565
|
+
export namespace CallHoldWebhookEvent {
|
|
6555
7566
|
export interface Data {
|
|
6556
7567
|
/**
|
|
6557
7568
|
* Identifies the type of resource.
|
|
@@ -6561,7 +7572,7 @@ export namespace CallDeepfakeDetectionErrorWebhookEvent {
|
|
|
6561
7572
|
/**
|
|
6562
7573
|
* The type of event being delivered.
|
|
6563
7574
|
*/
|
|
6564
|
-
event_type?: 'call.
|
|
7575
|
+
event_type?: 'call.hold';
|
|
6565
7576
|
|
|
6566
7577
|
/**
|
|
6567
7578
|
* ISO 8601 datetime of when the event occurred.
|
|
@@ -6598,7 +7609,7 @@ export namespace CallDeepfakeDetectionErrorWebhookEvent {
|
|
|
6598
7609
|
/**
|
|
6599
7610
|
* State received from a command.
|
|
6600
7611
|
*/
|
|
6601
|
-
client_state?: string
|
|
7612
|
+
client_state?: string;
|
|
6602
7613
|
|
|
6603
7614
|
/**
|
|
6604
7615
|
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
@@ -6606,20 +7617,39 @@ export namespace CallDeepfakeDetectionErrorWebhookEvent {
|
|
|
6606
7617
|
connection_id?: string;
|
|
6607
7618
|
|
|
6608
7619
|
/**
|
|
6609
|
-
*
|
|
6610
|
-
* 'rtp_timeout' = no RTP audio received, 'dfd_connection_error'/'dfd_stream_error'
|
|
6611
|
-
* = service connectivity issues.
|
|
7620
|
+
* Number or SIP URI placing the call.
|
|
6612
7621
|
*/
|
|
6613
|
-
|
|
7622
|
+
from?: string;
|
|
7623
|
+
|
|
7624
|
+
/**
|
|
7625
|
+
* Destination number or SIP URI of the call.
|
|
7626
|
+
*/
|
|
7627
|
+
to?: string;
|
|
6614
7628
|
}
|
|
6615
7629
|
}
|
|
6616
7630
|
}
|
|
6617
7631
|
|
|
6618
|
-
export interface
|
|
6619
|
-
data?:
|
|
7632
|
+
export interface CallInitiatedWebhookEvent {
|
|
7633
|
+
data?: CallInitiated;
|
|
6620
7634
|
}
|
|
6621
7635
|
|
|
6622
|
-
export
|
|
7636
|
+
export interface CallLeftQueueWebhookEvent {
|
|
7637
|
+
data?: CallLeftQueue;
|
|
7638
|
+
}
|
|
7639
|
+
|
|
7640
|
+
export interface CallMachineDetectionEndedWebhookEvent {
|
|
7641
|
+
data?: CallMachineDetectionEnded;
|
|
7642
|
+
}
|
|
7643
|
+
|
|
7644
|
+
export interface CallMachineGreetingEndedWebhookEvent {
|
|
7645
|
+
data?: CallMachineGreetingEnded;
|
|
7646
|
+
}
|
|
7647
|
+
|
|
7648
|
+
export interface CallMachinePremiumCallScreeningDetectedWebhookEvent {
|
|
7649
|
+
data?: CallMachinePremiumCallScreeningDetectedWebhookEvent.Data;
|
|
7650
|
+
}
|
|
7651
|
+
|
|
7652
|
+
export namespace CallMachinePremiumCallScreeningDetectedWebhookEvent {
|
|
6623
7653
|
export interface Data {
|
|
6624
7654
|
/**
|
|
6625
7655
|
* Identifies the type of resource.
|
|
@@ -6629,7 +7659,7 @@ export namespace CallDeepfakeDetectionResultWebhookEvent {
|
|
|
6629
7659
|
/**
|
|
6630
7660
|
* The type of event being delivered.
|
|
6631
7661
|
*/
|
|
6632
|
-
event_type?: 'call.
|
|
7662
|
+
event_type?: 'call.machine.premium.call_screening.detected';
|
|
6633
7663
|
|
|
6634
7664
|
/**
|
|
6635
7665
|
* ISO 8601 datetime of when the event occurred.
|
|
@@ -6666,7 +7696,7 @@ export namespace CallDeepfakeDetectionResultWebhookEvent {
|
|
|
6666
7696
|
/**
|
|
6667
7697
|
* State received from a command.
|
|
6668
7698
|
*/
|
|
6669
|
-
client_state?: string
|
|
7699
|
+
client_state?: string;
|
|
6670
7700
|
|
|
6671
7701
|
/**
|
|
6672
7702
|
* Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
@@ -6674,57 +7704,34 @@ export namespace CallDeepfakeDetectionResultWebhookEvent {
|
|
|
6674
7704
|
connection_id?: string;
|
|
6675
7705
|
|
|
6676
7706
|
/**
|
|
6677
|
-
*
|
|
6678
|
-
* across frames. High consistency (>90%) means confident classification
|
|
6679
|
-
* throughout; low consistency suggests mixed signals. Null for silence_timeout.
|
|
7707
|
+
* Number or SIP URI placing the call.
|
|
6680
7708
|
*/
|
|
6681
|
-
|
|
7709
|
+
from?: string;
|
|
6682
7710
|
|
|
6683
7711
|
/**
|
|
6684
|
-
*
|
|
6685
|
-
*
|
|
7712
|
+
* Apple Call Screening detection result. Sent when an Apple Call Screening tone is
|
|
7713
|
+
* detected; Premium Answering Machine Detection is restarted on the screened call
|
|
7714
|
+
* afterwards.
|
|
6686
7715
|
*/
|
|
6687
|
-
result?: '
|
|
7716
|
+
result?: 'screening';
|
|
6688
7717
|
|
|
6689
7718
|
/**
|
|
6690
|
-
*
|
|
6691
|
-
* (likely deepfake). Based on the model's aggregated confidence across analyzed
|
|
6692
|
-
* audio frames. Null for silence_timeout.
|
|
7719
|
+
* Destination number or SIP URI of the call.
|
|
6693
7720
|
*/
|
|
6694
|
-
|
|
7721
|
+
to?: string;
|
|
6695
7722
|
}
|
|
6696
7723
|
}
|
|
6697
7724
|
}
|
|
6698
7725
|
|
|
6699
|
-
export interface
|
|
6700
|
-
data?:
|
|
6701
|
-
}
|
|
6702
|
-
|
|
6703
|
-
export interface CallEnqueuedWebhookEvent {
|
|
6704
|
-
data?: CallEnqueued;
|
|
6705
|
-
}
|
|
6706
|
-
|
|
6707
|
-
export interface CallForkStartedWebhookEvent {
|
|
6708
|
-
data?: CallForkStarted;
|
|
6709
|
-
}
|
|
6710
|
-
|
|
6711
|
-
export interface CallForkStoppedWebhookEvent {
|
|
6712
|
-
data?: CallForkStopped;
|
|
6713
|
-
}
|
|
6714
|
-
|
|
6715
|
-
export interface CallGatherEndedWebhookEvent {
|
|
6716
|
-
data?: CallGatherEnded;
|
|
6717
|
-
}
|
|
6718
|
-
|
|
6719
|
-
export interface CallHangupWebhookEvent {
|
|
6720
|
-
data?: CallHangup;
|
|
7726
|
+
export interface CallMachinePremiumDetectionEndedWebhookEvent {
|
|
7727
|
+
data?: CallMachinePremiumDetectionEnded;
|
|
6721
7728
|
}
|
|
6722
7729
|
|
|
6723
|
-
export interface
|
|
6724
|
-
data?:
|
|
7730
|
+
export interface CallMachinePremiumDetectionStartedWebhookEvent {
|
|
7731
|
+
data?: CallMachinePremiumDetectionStartedWebhookEvent.Data;
|
|
6725
7732
|
}
|
|
6726
7733
|
|
|
6727
|
-
export namespace
|
|
7734
|
+
export namespace CallMachinePremiumDetectionStartedWebhookEvent {
|
|
6728
7735
|
export interface Data {
|
|
6729
7736
|
/**
|
|
6730
7737
|
* Identifies the type of resource.
|
|
@@ -6734,7 +7741,7 @@ export namespace CallHoldWebhookEvent {
|
|
|
6734
7741
|
/**
|
|
6735
7742
|
* The type of event being delivered.
|
|
6736
7743
|
*/
|
|
6737
|
-
event_type?: 'call.
|
|
7744
|
+
event_type?: 'call.machine.premium.detection.started';
|
|
6738
7745
|
|
|
6739
7746
|
/**
|
|
6740
7747
|
* ISO 8601 datetime of when the event occurred.
|
|
@@ -6791,26 +7798,6 @@ export namespace CallHoldWebhookEvent {
|
|
|
6791
7798
|
}
|
|
6792
7799
|
}
|
|
6793
7800
|
|
|
6794
|
-
export interface CallInitiatedWebhookEvent {
|
|
6795
|
-
data?: CallInitiated;
|
|
6796
|
-
}
|
|
6797
|
-
|
|
6798
|
-
export interface CallLeftQueueWebhookEvent {
|
|
6799
|
-
data?: CallLeftQueue;
|
|
6800
|
-
}
|
|
6801
|
-
|
|
6802
|
-
export interface CallMachineDetectionEndedWebhookEvent {
|
|
6803
|
-
data?: CallMachineDetectionEnded;
|
|
6804
|
-
}
|
|
6805
|
-
|
|
6806
|
-
export interface CallMachineGreetingEndedWebhookEvent {
|
|
6807
|
-
data?: CallMachineGreetingEnded;
|
|
6808
|
-
}
|
|
6809
|
-
|
|
6810
|
-
export interface CallMachinePremiumDetectionEndedWebhookEvent {
|
|
6811
|
-
data?: CallMachinePremiumDetectionEnded;
|
|
6812
|
-
}
|
|
6813
|
-
|
|
6814
7801
|
export interface CallMachinePremiumGreetingEndedWebhookEvent {
|
|
6815
7802
|
data?: CallMachinePremiumGreetingEnded;
|
|
6816
7803
|
}
|
|
@@ -7670,6 +8657,177 @@ export namespace NumberOrderStatusUpdateWebhookEvent {
|
|
|
7670
8657
|
}
|
|
7671
8658
|
}
|
|
7672
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
|
+
|
|
7673
8831
|
export interface RecordingAvailableWebhookEvent {
|
|
7674
8832
|
/**
|
|
7675
8833
|
* Unique event id; deduplicate deliveries on it.
|
|
@@ -7831,6 +8989,56 @@ export interface TranscriptionWebhookEvent {
|
|
|
7831
8989
|
data?: Transcription;
|
|
7832
8990
|
}
|
|
7833
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
|
+
|
|
7834
9042
|
export type UnsafeUnwrapWebhookEvent =
|
|
7835
9043
|
| CallAIGatherEndedWebhookEvent
|
|
7836
9044
|
| CallAIGatherMessageHistoryUpdatedWebhookEvent
|
|
@@ -7839,8 +9047,10 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
7839
9047
|
| ArtifactFailedWebhookEvent
|
|
7840
9048
|
| CallAnsweredWebhookEvent
|
|
7841
9049
|
| CallBridgedWebhookEvent
|
|
9050
|
+
| CallConversationCreatedWebhookEvent
|
|
7842
9051
|
| CallConversationEndedWebhookEvent
|
|
7843
9052
|
| CallConversationInsightsGeneratedWebhookEvent
|
|
9053
|
+
| CallConversationStartFailedWebhookEvent
|
|
7844
9054
|
| CallCostWebhookEvent
|
|
7845
9055
|
| CallDeepfakeDetectionErrorWebhookEvent
|
|
7846
9056
|
| CallDeepfakeDetectionResultWebhookEvent
|
|
@@ -7855,7 +9065,9 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
7855
9065
|
| CallLeftQueueWebhookEvent
|
|
7856
9066
|
| CallMachineDetectionEndedWebhookEvent
|
|
7857
9067
|
| CallMachineGreetingEndedWebhookEvent
|
|
9068
|
+
| CallMachinePremiumCallScreeningDetectedWebhookEvent
|
|
7858
9069
|
| CallMachinePremiumDetectionEndedWebhookEvent
|
|
9070
|
+
| CallMachinePremiumDetectionStartedWebhookEvent
|
|
7859
9071
|
| CallMachinePremiumGreetingEndedWebhookEvent
|
|
7860
9072
|
| CallPaymentCompletedWebhookEvent
|
|
7861
9073
|
| CallPaymentProgressWebhookEvent
|
|
@@ -7900,13 +9112,17 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
7900
9112
|
| HostedNumberOrderEventWebhookEvent
|
|
7901
9113
|
| InboundMessageWebhookEvent
|
|
7902
9114
|
| NumberOrderStatusUpdateWebhookEvent
|
|
9115
|
+
| NumberReputationExternalVerificationStatusChangedWebhookEvent
|
|
9116
|
+
| NumberReputationNumberFlaggedWebhookEvent
|
|
9117
|
+
| NumberReputationNumberRemovedWebhookEvent
|
|
7903
9118
|
| RecordingAvailableWebhookEvent
|
|
7904
9119
|
| ReplacedLinkClickWebhookEvent
|
|
7905
9120
|
| SessionStatusChangedWebhookEvent
|
|
7906
9121
|
| TranscriptCompletedWebhookEvent
|
|
7907
9122
|
| TranscriptionWebhookEvent
|
|
7908
9123
|
| WhatsappAccountUpdate
|
|
7909
|
-
| WhatsappMessageEcho
|
|
9124
|
+
| WhatsappMessageEcho
|
|
9125
|
+
| WhatsappWabaAddedWebhookEvent;
|
|
7910
9126
|
|
|
7911
9127
|
export type UnwrapWebhookEvent =
|
|
7912
9128
|
| CallAIGatherEndedWebhookEvent
|
|
@@ -7916,8 +9132,10 @@ export type UnwrapWebhookEvent =
|
|
|
7916
9132
|
| ArtifactFailedWebhookEvent
|
|
7917
9133
|
| CallAnsweredWebhookEvent
|
|
7918
9134
|
| CallBridgedWebhookEvent
|
|
9135
|
+
| CallConversationCreatedWebhookEvent
|
|
7919
9136
|
| CallConversationEndedWebhookEvent
|
|
7920
9137
|
| CallConversationInsightsGeneratedWebhookEvent
|
|
9138
|
+
| CallConversationStartFailedWebhookEvent
|
|
7921
9139
|
| CallCostWebhookEvent
|
|
7922
9140
|
| CallDeepfakeDetectionErrorWebhookEvent
|
|
7923
9141
|
| CallDeepfakeDetectionResultWebhookEvent
|
|
@@ -7932,7 +9150,9 @@ export type UnwrapWebhookEvent =
|
|
|
7932
9150
|
| CallLeftQueueWebhookEvent
|
|
7933
9151
|
| CallMachineDetectionEndedWebhookEvent
|
|
7934
9152
|
| CallMachineGreetingEndedWebhookEvent
|
|
9153
|
+
| CallMachinePremiumCallScreeningDetectedWebhookEvent
|
|
7935
9154
|
| CallMachinePremiumDetectionEndedWebhookEvent
|
|
9155
|
+
| CallMachinePremiumDetectionStartedWebhookEvent
|
|
7936
9156
|
| CallMachinePremiumGreetingEndedWebhookEvent
|
|
7937
9157
|
| CallPaymentCompletedWebhookEvent
|
|
7938
9158
|
| CallPaymentProgressWebhookEvent
|
|
@@ -7977,13 +9197,17 @@ export type UnwrapWebhookEvent =
|
|
|
7977
9197
|
| HostedNumberOrderEventWebhookEvent
|
|
7978
9198
|
| InboundMessageWebhookEvent
|
|
7979
9199
|
| NumberOrderStatusUpdateWebhookEvent
|
|
9200
|
+
| NumberReputationExternalVerificationStatusChangedWebhookEvent
|
|
9201
|
+
| NumberReputationNumberFlaggedWebhookEvent
|
|
9202
|
+
| NumberReputationNumberRemovedWebhookEvent
|
|
7980
9203
|
| RecordingAvailableWebhookEvent
|
|
7981
9204
|
| ReplacedLinkClickWebhookEvent
|
|
7982
9205
|
| SessionStatusChangedWebhookEvent
|
|
7983
9206
|
| TranscriptCompletedWebhookEvent
|
|
7984
9207
|
| TranscriptionWebhookEvent
|
|
7985
9208
|
| WhatsappAccountUpdate
|
|
7986
|
-
| WhatsappMessageEcho
|
|
9209
|
+
| WhatsappMessageEcho
|
|
9210
|
+
| WhatsappWabaAddedWebhookEvent;
|
|
7987
9211
|
|
|
7988
9212
|
export declare namespace Webhooks {
|
|
7989
9213
|
export {
|
|
@@ -8058,8 +9282,10 @@ export declare namespace Webhooks {
|
|
|
8058
9282
|
type ArtifactFailedWebhookEvent as ArtifactFailedWebhookEvent,
|
|
8059
9283
|
type CallAnsweredWebhookEvent as CallAnsweredWebhookEvent,
|
|
8060
9284
|
type CallBridgedWebhookEvent as CallBridgedWebhookEvent,
|
|
9285
|
+
type CallConversationCreatedWebhookEvent as CallConversationCreatedWebhookEvent,
|
|
8061
9286
|
type CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent,
|
|
8062
9287
|
type CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent,
|
|
9288
|
+
type CallConversationStartFailedWebhookEvent as CallConversationStartFailedWebhookEvent,
|
|
8063
9289
|
type CallCostWebhookEvent as CallCostWebhookEvent,
|
|
8064
9290
|
type CallDeepfakeDetectionErrorWebhookEvent as CallDeepfakeDetectionErrorWebhookEvent,
|
|
8065
9291
|
type CallDeepfakeDetectionResultWebhookEvent as CallDeepfakeDetectionResultWebhookEvent,
|
|
@@ -8074,7 +9300,9 @@ export declare namespace Webhooks {
|
|
|
8074
9300
|
type CallLeftQueueWebhookEvent as CallLeftQueueWebhookEvent,
|
|
8075
9301
|
type CallMachineDetectionEndedWebhookEvent as CallMachineDetectionEndedWebhookEvent,
|
|
8076
9302
|
type CallMachineGreetingEndedWebhookEvent as CallMachineGreetingEndedWebhookEvent,
|
|
9303
|
+
type CallMachinePremiumCallScreeningDetectedWebhookEvent as CallMachinePremiumCallScreeningDetectedWebhookEvent,
|
|
8077
9304
|
type CallMachinePremiumDetectionEndedWebhookEvent as CallMachinePremiumDetectionEndedWebhookEvent,
|
|
9305
|
+
type CallMachinePremiumDetectionStartedWebhookEvent as CallMachinePremiumDetectionStartedWebhookEvent,
|
|
8078
9306
|
type CallMachinePremiumGreetingEndedWebhookEvent as CallMachinePremiumGreetingEndedWebhookEvent,
|
|
8079
9307
|
type CallPaymentCompletedWebhookEvent as CallPaymentCompletedWebhookEvent,
|
|
8080
9308
|
type CallPaymentProgressWebhookEvent as CallPaymentProgressWebhookEvent,
|
|
@@ -8112,11 +9340,15 @@ export declare namespace Webhooks {
|
|
|
8112
9340
|
type HostedNumberOrderEventWebhookEvent as HostedNumberOrderEventWebhookEvent,
|
|
8113
9341
|
type InboundMessageWebhookEvent as InboundMessageWebhookEvent,
|
|
8114
9342
|
type NumberOrderStatusUpdateWebhookEvent as NumberOrderStatusUpdateWebhookEvent,
|
|
9343
|
+
type NumberReputationExternalVerificationStatusChangedWebhookEvent as NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
9344
|
+
type NumberReputationNumberFlaggedWebhookEvent as NumberReputationNumberFlaggedWebhookEvent,
|
|
9345
|
+
type NumberReputationNumberRemovedWebhookEvent as NumberReputationNumberRemovedWebhookEvent,
|
|
8115
9346
|
type RecordingAvailableWebhookEvent as RecordingAvailableWebhookEvent,
|
|
8116
9347
|
type ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent,
|
|
8117
9348
|
type SessionStatusChangedWebhookEvent as SessionStatusChangedWebhookEvent,
|
|
8118
9349
|
type TranscriptCompletedWebhookEvent as TranscriptCompletedWebhookEvent,
|
|
8119
9350
|
type TranscriptionWebhookEvent as TranscriptionWebhookEvent,
|
|
9351
|
+
type WhatsappWabaAddedWebhookEvent as WhatsappWabaAddedWebhookEvent,
|
|
8120
9352
|
type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent,
|
|
8121
9353
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
8122
9354
|
};
|