telnyx 7.25.0 → 7.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +25 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -10
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses/addresses.d.mts +22 -2
- package/resources/addresses/addresses.d.mts.map +1 -1
- package/resources/addresses/addresses.d.ts +22 -2
- package/resources/addresses/addresses.d.ts.map +1 -1
- package/resources/addresses/addresses.js +12 -0
- package/resources/addresses/addresses.js.map +1 -1
- package/resources/addresses/addresses.mjs +12 -0
- package/resources/addresses/addresses.mjs.map +1 -1
- package/resources/ai/ai.d.mts +16 -7
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +16 -7
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +383 -22
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +383 -22
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +4 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +4 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +18 -1
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +18 -1
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/assistants/versions.js +4 -1
- package/resources/ai/assistants/versions.js.map +1 -1
- package/resources/ai/assistants/versions.mjs +4 -1
- package/resources/ai/assistants/versions.mjs.map +1 -1
- package/resources/ai/audio.d.mts +17 -5
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +17 -5
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +200 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +200 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +95 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +91 -0
- package/resources/ai/avatars.mjs.map +1 -0
- package/resources/ai/chat.d.mts +20 -6
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +20 -6
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +8 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +8 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/index.d.mts +3 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +3 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +20 -6
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +20 -6
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +30 -2
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +30 -2
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +260 -25
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +260 -25
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +24 -14
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +24 -14
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +8 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +8 -0
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/credential-connections/credential-connections.d.mts +38 -8
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +38 -8
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/dial-metrics.d.mts +151 -0
- package/resources/dial-metrics.d.mts.map +1 -0
- package/resources/dial-metrics.d.ts +151 -0
- package/resources/dial-metrics.d.ts.map +1 -0
- package/resources/dial-metrics.js +44 -0
- package/resources/dial-metrics.js.map +1 -0
- package/resources/dial-metrics.mjs +40 -0
- package/resources/dial-metrics.mjs.map +1 -0
- package/resources/dir/dir.d.mts +11 -9
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +11 -9
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -2
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -2
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +0 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +0 -4
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/dir/references.d.mts +15 -9
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +15 -9
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/dir/references.js +15 -9
- package/resources/dir/references.js.map +1 -1
- package/resources/dir/references.mjs +15 -9
- package/resources/dir/references.mjs.map +1 -1
- package/resources/dir/verify-email.d.mts +17 -5
- package/resources/dir/verify-email.d.mts.map +1 -1
- package/resources/dir/verify-email.d.ts +17 -5
- package/resources/dir/verify-email.d.ts.map +1 -1
- package/resources/dir/verify-email.js +17 -5
- package/resources/dir/verify-email.js.map +1 -1
- package/resources/dir/verify-email.mjs +17 -5
- package/resources/dir/verify-email.mjs.map +1 -1
- package/resources/email-domains/email-domains.d.mts +1 -1
- package/resources/email-domains/email-domains.d.mts.map +1 -1
- package/resources/email-domains/email-domains.d.ts +1 -1
- package/resources/email-domains/email-domains.d.ts.map +1 -1
- package/resources/email-templates.d.mts +109 -18
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +109 -18
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +5 -1
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +5 -1
- package/resources/email-templates.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +8 -2
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +8 -2
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/dir.js +8 -2
- package/resources/enterprises/dir.js.map +1 -1
- package/resources/enterprises/dir.mjs +8 -2
- package/resources/enterprises/dir.mjs.map +1 -1
- package/resources/enterprises/enterprises.d.mts +7 -5
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +7 -5
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +5 -3
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +5 -3
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.mts +94 -0
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
- package/resources/enterprises/reputation/external-verification.d.ts +94 -0
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
- package/resources/enterprises/reputation/external-verification.js +54 -0
- package/resources/enterprises/reputation/external-verification.js.map +1 -0
- package/resources/enterprises/reputation/external-verification.mjs +50 -0
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
- package/resources/enterprises/reputation/index.d.mts +3 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +3 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +3 -1
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -0
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +3 -2
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +3 -2
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.mts +197 -4
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +197 -4
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +58 -2
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +58 -2
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/remediation.d.mts +3 -2
- package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
- package/resources/enterprises/reputation/remediation.d.ts +3 -2
- package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +39 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +39 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +22 -0
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +22 -0
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/enterprises/verify-email.d.mts +1 -1
- package/resources/enterprises/verify-email.d.ts +1 -1
- package/resources/enterprises/verify-email.js +1 -1
- package/resources/enterprises/verify-email.mjs +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
- package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
- package/resources/global-ip-assignment-health.d.mts +4 -4
- package/resources/global-ip-assignment-health.d.mts.map +1 -1
- package/resources/global-ip-assignment-health.d.ts +4 -4
- package/resources/global-ip-assignment-health.d.ts.map +1 -1
- package/resources/global-ip-assignments-usage.d.mts +4 -4
- package/resources/global-ip-assignments-usage.d.mts.map +1 -1
- package/resources/global-ip-assignments-usage.d.ts +4 -4
- package/resources/global-ip-assignments-usage.d.ts.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ip-connections.d.mts +36 -6
- package/resources/ip-connections.d.mts.map +1 -1
- package/resources/ip-connections.d.ts +36 -6
- package/resources/ip-connections.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +4 -1
- package/resources/llm-token-gateway/index.d.mts.map +1 -1
- package/resources/llm-token-gateway/index.d.ts +4 -1
- package/resources/llm-token-gateway/index.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.js +7 -1
- package/resources/llm-token-gateway/index.js.map +1 -1
- package/resources/llm-token-gateway/index.mjs +4 -1
- package/resources/llm-token-gateway/index.mjs.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.js +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs +13 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -1
- package/resources/llm-token-gateway/spend.d.mts +223 -0
- package/resources/llm-token-gateway/spend.d.mts.map +1 -0
- package/resources/llm-token-gateway/spend.d.ts +223 -0
- package/resources/llm-token-gateway/spend.d.ts.map +1 -0
- package/resources/llm-token-gateway/spend.js +56 -0
- package/resources/llm-token-gateway/spend.js.map +1 -0
- package/resources/llm-token-gateway/spend.mjs +52 -0
- package/resources/llm-token-gateway/spend.mjs.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.mts +577 -0
- package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.ts +577 -0
- package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-groups.js +139 -0
- package/resources/llm-token-gateway/token-groups.js.map +1 -0
- package/resources/llm-token-gateway/token-groups.mjs +135 -0
- package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.mts +318 -0
- package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.ts +318 -0
- package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-keys.js +127 -0
- package/resources/llm-token-gateway/token-keys.js.map +1 -0
- package/resources/llm-token-gateway/token-keys.mjs +123 -0
- package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +205 -146
- package/resources/llm-token-gateway/usage.d.mts.map +1 -1
- package/resources/llm-token-gateway/usage.d.ts +205 -146
- package/resources/llm-token-gateway/usage.d.ts.map +1 -1
- package/resources/llm-token-gateway/usage.js +47 -15
- package/resources/llm-token-gateway/usage.js.map +1 -1
- package/resources/llm-token-gateway/usage.mjs +47 -15
- package/resources/llm-token-gateway/usage.mjs.map +1 -1
- package/resources/meeting-sessions/actions.d.mts +13 -7
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +13 -7
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +13 -7
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +13 -7
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +14 -23
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/messages/messages.d.mts +581 -118
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +581 -118
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +71 -14
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +71 -14
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messages/rcs.d.mts +26 -6
- package/resources/messages/rcs.d.mts.map +1 -1
- package/resources/messages/rcs.d.ts +26 -6
- package/resources/messages/rcs.d.ts.map +1 -1
- package/resources/messages/rcs.js +11 -2
- package/resources/messages/rcs.js.map +1 -1
- package/resources/messages/rcs.mjs +11 -2
- package/resources/messages/rcs.mjs.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.mts +9 -0
- package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
- package/resources/phone-numbers/csv-downloads.d.ts +9 -0
- package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
- package/resources/phone-numbers/csv-downloads.js +5 -2
- package/resources/phone-numbers/csv-downloads.js.map +1 -1
- package/resources/phone-numbers/csv-downloads.mjs +5 -2
- package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
- package/resources/phone-numbers/index.d.mts +2 -2
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +2 -2
- package/resources/phone-numbers/index.d.ts.map +1 -1
- package/resources/phone-numbers/index.js.map +1 -1
- package/resources/phone-numbers/index.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +277 -14
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +277 -14
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +5 -4
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +5 -4
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +28 -3
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +28 -3
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/reputation/numbers.d.mts +10 -0
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +10 -0
- package/resources/reputation/numbers.d.ts.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/sip-registration-status.d.mts +149 -0
- package/resources/sip-registration-status.d.mts.map +1 -0
- package/resources/sip-registration-status.d.ts +149 -0
- package/resources/sip-registration-status.d.ts.map +1 -0
- package/resources/sip-registration-status.js +32 -0
- package/resources/sip-registration-status.js.map +1 -0
- package/resources/sip-registration-status.mjs +28 -0
- package/resources/sip-registration-status.mjs.map +1 -0
- package/resources/speech-to-text/speech-to-text.d.mts +12 -5
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +12 -5
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/telephony-credentials.d.mts +11 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +11 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +9 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +9 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/texml/accounts/accounts.d.mts +2 -2
- package/resources/texml/accounts/accounts.d.ts +2 -2
- package/resources/texml/accounts/accounts.js +2 -2
- package/resources/texml/accounts/accounts.mjs +2 -2
- package/resources/texml/accounts/calls/calls.d.mts +49 -14
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +49 -14
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +7 -7
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +7 -7
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
- package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.js +2 -2
- package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
- package/resources/texml/accounts/calls/recordings.d.mts +10 -2
- package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings.d.ts +10 -2
- package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings.js +4 -1
- package/resources/texml/accounts/calls/recordings.js.map +1 -1
- package/resources/texml/accounts/calls/recordings.mjs +4 -1
- package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.mts +10 -2
- package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
- package/resources/texml/accounts/calls/siprec.d.ts +10 -2
- package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
- package/resources/texml/accounts/calls/siprec.js +4 -1
- package/resources/texml/accounts/calls/siprec.js.map +1 -1
- package/resources/texml/accounts/calls/siprec.mjs +4 -1
- package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
- package/resources/texml/accounts/calls/streams.d.mts +10 -2
- package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
- package/resources/texml/accounts/calls/streams.d.ts +10 -2
- package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
- package/resources/texml/accounts/calls/streams.js +4 -1
- package/resources/texml/accounts/calls/streams.js.map +1 -1
- package/resources/texml/accounts/calls/streams.mjs +4 -1
- package/resources/texml/accounts/calls/streams.mjs.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
- package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.js +5 -5
- package/resources/texml/accounts/conferences/conferences.js.map +1 -1
- package/resources/texml/accounts/conferences/conferences.mjs +5 -5
- package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +35 -10
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +35 -10
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/participants.js +5 -5
- package/resources/texml/accounts/conferences/participants.mjs +5 -5
- package/resources/texml/accounts/queues.d.mts +25 -8
- package/resources/texml/accounts/queues.d.mts.map +1 -1
- package/resources/texml/accounts/queues.d.ts +25 -8
- package/resources/texml/accounts/queues.d.ts.map +1 -1
- package/resources/texml/accounts/queues.js +7 -5
- package/resources/texml/accounts/queues.js.map +1 -1
- package/resources/texml/accounts/queues.mjs +7 -5
- package/resources/texml/accounts/queues.mjs.map +1 -1
- package/resources/texml/accounts/recordings/json.d.mts +14 -4
- package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
- package/resources/texml/accounts/recordings/json.d.ts +14 -4
- package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
- package/resources/texml/accounts/recordings/json.js +2 -2
- package/resources/texml/accounts/recordings/json.mjs +2 -2
- package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
- package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.js +2 -2
- package/resources/texml/accounts/transcriptions/json.mjs +2 -2
- package/resources/texml/texml.d.mts +7 -3
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +7 -3
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -2
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -2
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +15 -6
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +15 -6
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/tts-integrations/actions.d.mts +4 -0
- package/resources/tts-integrations/actions.d.mts.map +1 -0
- package/resources/tts-integrations/actions.d.ts +4 -0
- package/resources/tts-integrations/actions.d.ts.map +1 -0
- package/resources/tts-integrations/actions.js +9 -0
- package/resources/tts-integrations/actions.js.map +1 -0
- package/resources/tts-integrations/actions.mjs +5 -0
- package/resources/tts-integrations/actions.mjs.map +1 -0
- package/resources/tts-integrations/index.d.mts +3 -0
- package/resources/tts-integrations/index.d.mts.map +1 -0
- package/resources/tts-integrations/index.d.ts +3 -0
- package/resources/tts-integrations/index.d.ts.map +1 -0
- package/resources/tts-integrations/index.js +9 -0
- package/resources/tts-integrations/index.js.map +1 -0
- package/resources/tts-integrations/index.mjs +4 -0
- package/resources/tts-integrations/index.mjs.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.mts +10 -0
- package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations/tts-integrations.d.ts +10 -0
- package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations/tts-integrations.js +17 -0
- package/resources/tts-integrations/tts-integrations.js.map +1 -0
- package/resources/tts-integrations/tts-integrations.mjs +12 -0
- package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
- package/resources/tts-integrations.d.mts +2 -0
- package/resources/tts-integrations.d.mts.map +1 -0
- package/resources/tts-integrations.d.ts +2 -0
- package/resources/tts-integrations.d.ts.map +1 -0
- package/resources/tts-integrations.js +6 -0
- package/resources/tts-integrations.js.map +1 -0
- package/resources/tts-integrations.mjs +3 -0
- package/resources/tts-integrations.mjs.map +1 -0
- package/resources/uac-connections/uac-connections.d.mts +36 -6
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +36 -6
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/voice-clones.d.mts +57 -10
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +57 -10
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +6 -4
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +6 -4
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/webhooks.d.mts +986 -71
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +986 -71
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +165 -0
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
- package/resources/whatsapp/hosted-signups.d.ts +165 -0
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
- package/resources/whatsapp/hosted-signups.js +56 -0
- package/resources/whatsapp/hosted-signups.js.map +1 -0
- package/resources/whatsapp/hosted-signups.mjs +52 -0
- package/resources/whatsapp/hosted-signups.mjs.map +1 -0
- package/resources/whatsapp/index.d.mts +2 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +2 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +5 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +2 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.js +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -1
- package/resources/whatsapp/signup.d.mts +128 -0
- package/resources/whatsapp/signup.d.mts.map +1 -0
- package/resources/whatsapp/signup.d.ts +128 -0
- package/resources/whatsapp/signup.d.ts.map +1 -0
- package/resources/whatsapp/signup.js +42 -0
- package/resources/whatsapp/signup.js.map +1 -0
- package/resources/whatsapp/signup.mjs +38 -0
- package/resources/whatsapp/signup.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +8 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +8 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +8 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +8 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +57 -4
- package/src/resources/addresses/addresses.ts +22 -2
- package/src/resources/ai/ai.ts +40 -3
- package/src/resources/ai/assistants/assistants.ts +455 -20
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/assistants/versions.ts +20 -1
- package/src/resources/ai/audio.ts +18 -5
- package/src/resources/ai/avatars.ts +252 -0
- package/src/resources/ai/chat.ts +20 -6
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/index.ts +14 -0
- package/src/resources/ai/memory/namespaces/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +4 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
- package/src/resources/ai/openai/chat.ts +20 -6
- package/src/resources/ai/tools.ts +35 -1
- package/src/resources/calls/actions.ts +346 -20
- package/src/resources/calls/calls.ts +26 -8
- package/src/resources/calls/index.ts +2 -0
- package/src/resources/credential-connections/credential-connections.ts +41 -8
- package/src/resources/dial-metrics.ts +185 -0
- package/src/resources/dir/dir.ts +13 -8
- package/src/resources/dir/phone-numbers.ts +1 -6
- package/src/resources/dir/references.ts +15 -9
- package/src/resources/dir/verify-email.ts +17 -5
- package/src/resources/email-domains/email-domains.ts +1 -1
- package/src/resources/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +8 -2
- package/src/resources/enterprises/enterprises.ts +7 -3
- package/src/resources/enterprises/index.ts +1 -0
- package/src/resources/enterprises/reputation/external-verification.ts +125 -0
- package/src/resources/enterprises/reputation/index.ts +12 -0
- package/src/resources/enterprises/reputation/loa.ts +3 -2
- package/src/resources/enterprises/reputation/numbers.ts +256 -3
- package/src/resources/enterprises/reputation/remediation.ts +3 -2
- package/src/resources/enterprises/reputation/reputation.ts +70 -0
- package/src/resources/enterprises/verify-email.ts +1 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
- package/src/resources/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +21 -2
- package/src/resources/ip-connections.ts +39 -6
- package/src/resources/llm-token-gateway/index.ts +38 -1
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +83 -1
- package/src/resources/llm-token-gateway/spend.ts +309 -0
- package/src/resources/llm-token-gateway/token-groups.ts +724 -0
- package/src/resources/llm-token-gateway/token-keys.ts +422 -0
- package/src/resources/llm-token-gateway/usage.ts +273 -149
- package/src/resources/meeting-sessions/actions.ts +13 -7
- package/src/resources/meeting-sessions/index.ts +0 -1
- package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
- package/src/resources/messages/messages.ts +786 -125
- package/src/resources/messages/rcs.ts +37 -7
- package/src/resources/phone-numbers/csv-downloads.ts +15 -2
- package/src/resources/phone-numbers/index.ts +3 -1
- package/src/resources/phone-numbers/jobs.ts +332 -15
- package/src/resources/phone-numbers/phone-numbers.ts +38 -2
- package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
- package/src/resources/porting-orders/porting-orders.ts +1 -0
- package/src/resources/porting-phone-numbers.ts +1 -0
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/speech-to-text/speech-to-text.ts +12 -4
- package/src/resources/telephony-credentials.ts +24 -2
- package/src/resources/texml/accounts/accounts.ts +2 -2
- package/src/resources/texml/accounts/calls/calls.ts +49 -14
- package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
- package/src/resources/texml/accounts/calls/recordings.ts +10 -2
- package/src/resources/texml/accounts/calls/siprec.ts +10 -2
- package/src/resources/texml/accounts/calls/streams.ts +10 -2
- package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
- package/src/resources/texml/accounts/conferences/participants.ts +35 -10
- package/src/resources/texml/accounts/queues.ts +25 -8
- package/src/resources/texml/accounts/recordings/json.ts +14 -4
- package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/text-to-speech/text-to-speech.ts +15 -6
- package/src/resources/tts-integrations/actions.ts +5 -0
- package/src/resources/tts-integrations/index.ts +4 -0
- package/src/resources/tts-integrations/tts-integrations.ts +15 -0
- package/src/resources/tts-integrations.ts +3 -0
- package/src/resources/uac-connections/uac-connections.ts +39 -6
- package/src/resources/voice-clones.ts +65 -9
- package/src/resources/webhooks.ts +1257 -96
- package/src/resources/whatsapp/hosted-signups.ts +221 -0
- package/src/resources/whatsapp/index.ts +16 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +6 -5
- package/src/resources/whatsapp/signup.ts +188 -0
- package/src/resources/whatsapp/whatsapp.ts +40 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export { ExternalVerification, type ExternalVerificationStatus, type ExternalVerificationWrapped, type ExternalVerificationCreateParams, } from "./external-verification.js";
|
|
1
2
|
export { Loa, type AgentInput, type LoaUpdateParams, type LoaRenderParams } from "./loa.js";
|
|
2
|
-
export { Numbers, type ReputationPhoneNumber, type ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation, type NumberRefreshResponse, type NumberListParams, type NumberAssociateParams, type NumberDisassociateParams, type NumberRetrieveParams, type NumberRefreshParams, type ReputationPhoneNumbersDefaultFlatPagination, } from "./numbers.js";
|
|
3
|
+
export { Numbers, type ReputationNumberSource, type ReputationOwnershipStatus, type ReputationPhoneNumber, type ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation, type NumberRefreshResponse, type NumberRetrieveOwnershipResponse, type NumberListParams, type NumberAssociateParams, type NumberDisassociateParams, type NumberRetrieveParams, type NumberRefreshParams, type NumberRetrieveOwnershipParams, type NumberOwnershipConfirmParams, type ReputationPhoneNumbersDefaultFlatPagination, } from "./numbers.js";
|
|
3
4
|
export { Remediation, type RemediationPerNumberResults, type RemediationRequest, type RemediationRequestWrapped, type RemediationStatus, type RemediationListResponse, type RemediationListParams, type RemediationCreateParams, type RemediationRetrieveParams, type RemediationListResponsesDefaultFlatPagination, } from "./remediation.js";
|
|
4
|
-
export { Reputation, type EnterpriseReputationPublic, type EnterpriseReputationPublicWrapped, type ReputationCheckFrequency, type ReputationEnableParams, type ReputationUpdateFrequencyParams, } from "./reputation.js";
|
|
5
|
+
export { Reputation, type EnterpriseReputationPublic, type EnterpriseReputationPublicWrapped, type ReputationCheckFrequency, type ReputationEnableParams, type ReputationUpdateFrequencyParams, type ReputationUpdateWebhookParams, } from "./reputation.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,iBAAc;AACzF,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,uCAAuC,EAC5C,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,2CAA2C,GACjD,qBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,6CAA6C,GACnD,yBAAsB;AACvB,OAAO,EACL,UAAU,EACV,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,GACtC,mCAAgC;AACjC,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,iBAAc;AACzF,OAAO,EACL,OAAO,EACP,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,uCAAuC,EAC5C,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,GACjD,qBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,6CAA6C,GACnD,yBAAsB;AACvB,OAAO,EACL,UAAU,EACV,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC,wBAAqB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Reputation = exports.Remediation = exports.Numbers = exports.Loa = void 0;
|
|
4
|
+
exports.Reputation = exports.Remediation = exports.Numbers = exports.Loa = exports.ExternalVerification = void 0;
|
|
5
|
+
var external_verification_1 = require("./external-verification.js");
|
|
6
|
+
Object.defineProperty(exports, "ExternalVerification", { enumerable: true, get: function () { return external_verification_1.ExternalVerification; } });
|
|
5
7
|
var loa_1 = require("./loa.js");
|
|
6
8
|
Object.defineProperty(exports, "Loa", { enumerable: true, get: function () { return loa_1.Loa; } });
|
|
7
9
|
var numbers_1 = require("./numbers.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gCAAyF;AAAhF,0FAAA,GAAG,OAAA;AACZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAKiC;AAJ/B,6HAAA,oBAAoB,OAAA;AAKtB,gCAAyF;AAAhF,0FAAA,GAAG,OAAA;AACZ,wCAkBmB;AAjBjB,kGAAA,OAAO,OAAA;AAkBT,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,8CAQsB;AAPpB,wGAAA,UAAU,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { ExternalVerification, } from "./external-verification.mjs";
|
|
2
3
|
export { Loa } from "./loa.mjs";
|
|
3
4
|
export { Numbers, } from "./numbers.mjs";
|
|
4
5
|
export { Remediation, } from "./remediation.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,GAAG,EAA+D,kBAAc;AACzF,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,oBAAoB,GAIrB,oCAAgC;AACjC,OAAO,EAAE,GAAG,EAA+D,kBAAc;AACzF,OAAO,EACL,OAAO,GAiBR,sBAAkB;AACnB,OAAO,EACL,WAAW,GAUZ,0BAAsB;AACvB,OAAO,EACL,UAAU,GAOX,yBAAqB"}
|
|
@@ -47,8 +47,9 @@ export declare class Loa extends APIResource {
|
|
|
47
47
|
render(enterpriseID: string, body?: LoaRenderParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* Third-party reseller / partner managing the enterprise's phone numbers
|
|
51
|
-
*
|
|
50
|
+
* Third-party reseller / partner managing the enterprise's phone numbers on its
|
|
51
|
+
* behalf, such as a call center (BPO) acting for a client. Omit when the
|
|
52
|
+
* enterprise manages its own numbers.
|
|
52
53
|
*/
|
|
53
54
|
export interface AgentInput {
|
|
54
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loa.d.mts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/loa.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,iCAAiC,CAAC;IAI9D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE,eAAe,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H,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC;IAE9B;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC;CACvC;AAED,yBAAiB,eAAe,CAAC;IAC/B;;;OAGG;IACH,UAAiB,KAAK;QACpB,mBAAmB,EAAE,MAAM,CAAC;QAE5B,IAAI,EAAE,MAAM,CAAC;QAEb,aAAa,EAAE,MAAM,CAAC;QAEtB,YAAY,EAAE,MAAM,CAAC;QAErB,aAAa,EAAE,MAAM,CAAC;QAEtB,aAAa,EAAE,MAAM,CAAC;QAEtB,OAAO,EAAE,MAAM,CAAC;QAEhB,UAAU,EAAE,MAAM,CAAC;QAEnB,WAAW,EAAE,MAAM,CAAC;QAEpB,cAAc,EAAE,MAAM,CAAC;QAEvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAClC;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -47,8 +47,9 @@ export declare class Loa extends APIResource {
|
|
|
47
47
|
render(enterpriseID: string, body?: LoaRenderParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* Third-party reseller / partner managing the enterprise's phone numbers
|
|
51
|
-
*
|
|
50
|
+
* Third-party reseller / partner managing the enterprise's phone numbers on its
|
|
51
|
+
* behalf, such as a call center (BPO) acting for a client. Omit when the
|
|
52
|
+
* enterprise manages its own numbers.
|
|
52
53
|
*/
|
|
53
54
|
export interface AgentInput {
|
|
54
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loa.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/loa.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,iCAAiC,CAAC;IAI9D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,QAAQ,CAAC;CAQxB;AAED
|
|
1
|
+
{"version":3,"file":"loa.d.ts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/loa.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;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AK;QACpB,mBAAmB,EAAE,MAAM,CAAC;QAE5B,IAAI,EAAE,MAAM,CAAC;QAEb,aAAa,EAAE,MAAM,CAAC;QAEtB,YAAY,EAAE,MAAM,CAAC;QAErB,aAAa,EAAE,MAAM,CAAC;QAEtB,aAAa,EAAE,MAAM,CAAC;QAEtB,OAAO,EAAE,MAAM,CAAC;QAEhB,UAAU,EAAE,MAAM,CAAC;QAEnB,WAAW,EAAE,MAAM,CAAC;QAEpB,cAAc,EAAE,MAAM,CAAC;QAEvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAClC;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as NumbersAPI from "./numbers.mjs";
|
|
2
3
|
import * as Shared from "../../shared.mjs";
|
|
3
4
|
import * as EnterprisesAPI from "../enterprises.mjs";
|
|
4
5
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
@@ -26,8 +27,9 @@ export declare class Numbers extends APIResource {
|
|
|
26
27
|
list(enterpriseID: string, query?: NumberListParams | null | undefined, options?: RequestOptions): PagePromise<ReputationPhoneNumbersDefaultFlatPagination, ReputationPhoneNumber>;
|
|
27
28
|
/**
|
|
28
29
|
* Add up to 100 phone numbers to reputation monitoring on this enterprise. Each
|
|
29
|
-
* must be in E.164 format (`+1NPANXXXXXX` for US/CA)
|
|
30
|
-
* phone-number inventory
|
|
30
|
+
* must be in E.164 format (`+1NPANXXXXXX` for US/CA). A number in your Telnyx
|
|
31
|
+
* phone-number inventory is accepted as `source: telnyx`; a number that is not is
|
|
32
|
+
* treated as hosted with another provider and must meet the requirements below.
|
|
31
33
|
*
|
|
32
34
|
* **Prerequisite**: reputation must already be enabled on this enterprise (see
|
|
33
35
|
* `POST .../reputation`).
|
|
@@ -35,6 +37,14 @@ export declare class Numbers extends APIResource {
|
|
|
35
37
|
* **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
|
|
36
38
|
* for current pricing.
|
|
37
39
|
*
|
|
40
|
+
* A phone number that is not in your Telnyx inventory is treated as a number
|
|
41
|
+
* hosted with another provider (`source: external`). It must be a US local number,
|
|
42
|
+
* and the enterprise's ownership proof must be approved first
|
|
43
|
+
* (`POST /enterprises/{enterprise_id}/reputation/external_verification`);
|
|
44
|
+
* otherwise the request fails with a 400 whose `detail` contains
|
|
45
|
+
* `external_verification_required`. Ownership of such numbers is checked every
|
|
46
|
+
* day.
|
|
47
|
+
*
|
|
38
48
|
* @example
|
|
39
49
|
* ```ts
|
|
40
50
|
* const reputationPhoneNumberList =
|
|
@@ -94,20 +104,118 @@ export declare class Numbers extends APIResource {
|
|
|
94
104
|
* ```
|
|
95
105
|
*/
|
|
96
106
|
refresh(enterpriseID: string, body: NumberRefreshParams, options?: RequestOptions): APIPromise<NumberRefreshResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Get the ownership status of a phone number, when it was last checked, the
|
|
109
|
+
* carrier recorded as its baseline, and the history of ownership events.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* const response =
|
|
114
|
+
* await client.enterprises.reputation.numbers.retrieveOwnership(
|
|
115
|
+
* '+19493253498',
|
|
116
|
+
* {
|
|
117
|
+
* enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
|
|
118
|
+
* },
|
|
119
|
+
* );
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
retrieveOwnership(phoneNumber: string, params: NumberRetrieveOwnershipParams, options?: RequestOptions): APIPromise<NumberRetrieveOwnershipResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Answer an ownership question about a phone number hosted with another provider.
|
|
125
|
+
*
|
|
126
|
+
* Send `still_own: true` to confirm you still own a number whose
|
|
127
|
+
* `ownership_status` is `pending_confirmation` or `flagged`; its status returns to
|
|
128
|
+
* `verified` and, after a carrier change, the new carrier becomes the one on
|
|
129
|
+
* record.
|
|
130
|
+
*
|
|
131
|
+
* Send `still_own: false` to report that you no longer own the number. It is
|
|
132
|
+
* removed from Number Reputation immediately, whatever its current status, and the
|
|
133
|
+
* response shows it with `ownership_status: removed`.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* const reputationPhoneNumberWithReputation =
|
|
138
|
+
* await client.enterprises.reputation.numbers.ownershipConfirm(
|
|
139
|
+
* '+19493253498',
|
|
140
|
+
* {
|
|
141
|
+
* enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
|
|
142
|
+
* still_own: true,
|
|
143
|
+
* },
|
|
144
|
+
* );
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
ownershipConfirm(phoneNumber: string, params: NumberOwnershipConfirmParams, options?: RequestOptions): APIPromise<ReputationPhoneNumberWithReputation>;
|
|
97
148
|
}
|
|
98
149
|
export type ReputationPhoneNumbersDefaultFlatPagination = DefaultFlatPagination<ReputationPhoneNumber>;
|
|
150
|
+
/**
|
|
151
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
152
|
+
* `external`: a number you own that is hosted with another provider.
|
|
153
|
+
*/
|
|
154
|
+
export type ReputationNumberSource = 'telnyx' | 'external';
|
|
155
|
+
/**
|
|
156
|
+
* Result of ongoing ownership checks. `verified`: the number is with the carrier
|
|
157
|
+
* on record. `pending_confirmation`: the number's carrier changed, or a periodic
|
|
158
|
+
* ownership re-verification is due; confirm you still own it before `confirm_by`.
|
|
159
|
+
* `flagged`: a periodic re-verification went unanswered; the number stays
|
|
160
|
+
* monitored and is not removed, but confirm ownership
|
|
161
|
+
* (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
|
|
162
|
+
* is no longer monitored; returned by `POST .../ownership_confirm` with
|
|
163
|
+
* `still_own: false`, and when listing numbers with
|
|
164
|
+
* `filter[ownership_status]=removed`.
|
|
165
|
+
*/
|
|
166
|
+
export type ReputationOwnershipStatus = 'verified' | 'flagged' | 'pending_confirmation' | 'removed';
|
|
99
167
|
export interface ReputationPhoneNumber {
|
|
100
168
|
id?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Deadline to confirm you still own the number. Set only while `ownership_status`
|
|
171
|
+
* is `pending_confirmation`.
|
|
172
|
+
*/
|
|
173
|
+
confirm_by?: string | null;
|
|
101
174
|
created_at?: string;
|
|
102
175
|
enterprise_id?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Why the number's ownership was flagged. `carrier_changed` when an ownership
|
|
178
|
+
* check found the number with a different carrier.
|
|
179
|
+
*/
|
|
180
|
+
flag_reason?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Result of ongoing ownership checks. `verified`: the number is with the carrier
|
|
183
|
+
* on record. `pending_confirmation`: the number's carrier changed, or a periodic
|
|
184
|
+
* ownership re-verification is due; confirm you still own it before `confirm_by`.
|
|
185
|
+
* `flagged`: a periodic re-verification went unanswered; the number stays
|
|
186
|
+
* monitored and is not removed, but confirm ownership
|
|
187
|
+
* (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
|
|
188
|
+
* is no longer monitored; returned by `POST .../ownership_confirm` with
|
|
189
|
+
* `still_own: false`, and when listing numbers with
|
|
190
|
+
* `filter[ownership_status]=removed`.
|
|
191
|
+
*/
|
|
192
|
+
ownership_status?: ReputationOwnershipStatus;
|
|
103
193
|
/**
|
|
104
194
|
* E.164 with leading `+`.
|
|
105
195
|
*/
|
|
106
196
|
phone_number?: string;
|
|
107
197
|
/**
|
|
108
|
-
*
|
|
198
|
+
* Why a number was removed. `ported_away`: you confirmed the number left your
|
|
199
|
+
* control after a carrier change. `unconfirmed_ownership`: a carrier change was
|
|
200
|
+
* not confirmed before the deadline. `reassigned`: the number was reported as
|
|
201
|
+
* permanently disconnected. `customer_reported`: you reported that you no longer
|
|
202
|
+
* own the number. `customer_removed`: you removed the number.
|
|
203
|
+
*/
|
|
204
|
+
removal_reason?: 'ported_away' | 'unconfirmed_ownership' | 'reassigned' | 'customer_reported' | 'customer_removed' | null;
|
|
205
|
+
/**
|
|
206
|
+
* When the number was removed. Set only for removed numbers.
|
|
207
|
+
*/
|
|
208
|
+
removed_at?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Reputation snapshot for a phone number. Each metric is a 0–100 score;
|
|
211
|
+
* `spam_risk` is a coarse bucket. Field set may grow over time - read by key.
|
|
109
212
|
*/
|
|
110
213
|
reputation_data?: Shared.ReputationData | null;
|
|
214
|
+
/**
|
|
215
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
216
|
+
* `external`: a number you own that is hosted with another provider.
|
|
217
|
+
*/
|
|
218
|
+
source?: ReputationNumberSource;
|
|
111
219
|
updated_at?: string;
|
|
112
220
|
}
|
|
113
221
|
export interface ReputationPhoneNumberList {
|
|
@@ -161,7 +269,67 @@ export declare namespace NumberRefreshResponse {
|
|
|
161
269
|
}
|
|
162
270
|
}
|
|
163
271
|
}
|
|
272
|
+
export interface NumberRetrieveOwnershipResponse {
|
|
273
|
+
data: NumberRetrieveOwnershipResponse.Data;
|
|
274
|
+
}
|
|
275
|
+
export declare namespace NumberRetrieveOwnershipResponse {
|
|
276
|
+
interface Data {
|
|
277
|
+
/**
|
|
278
|
+
* Service provider ID (SPID) of the carrier that held the number when its
|
|
279
|
+
* ownership was last established.
|
|
280
|
+
*/
|
|
281
|
+
baseline_carrier?: string | null;
|
|
282
|
+
baseline_recorded_at?: string | null;
|
|
283
|
+
confirm_by?: string | null;
|
|
284
|
+
flag_reason?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* Ownership events, most recent first.
|
|
287
|
+
*/
|
|
288
|
+
history?: Array<Data.History>;
|
|
289
|
+
/**
|
|
290
|
+
* When ownership of the number was last checked.
|
|
291
|
+
*/
|
|
292
|
+
last_checked_at?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* Result of ongoing ownership checks. `verified`: the number is with the carrier
|
|
295
|
+
* on record. `pending_confirmation`: the number's carrier changed, or a periodic
|
|
296
|
+
* ownership re-verification is due; confirm you still own it before `confirm_by`.
|
|
297
|
+
* `flagged`: a periodic re-verification went unanswered; the number stays
|
|
298
|
+
* monitored and is not removed, but confirm ownership
|
|
299
|
+
* (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
|
|
300
|
+
* is no longer monitored; returned by `POST .../ownership_confirm` with
|
|
301
|
+
* `still_own: false`, and when listing numbers with
|
|
302
|
+
* `filter[ownership_status]=removed`.
|
|
303
|
+
*/
|
|
304
|
+
ownership_status?: NumbersAPI.ReputationOwnershipStatus;
|
|
305
|
+
phone_number?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
308
|
+
* `external`: a number you own that is hosted with another provider.
|
|
309
|
+
*/
|
|
310
|
+
source?: NumbersAPI.ReputationNumberSource;
|
|
311
|
+
}
|
|
312
|
+
namespace Data {
|
|
313
|
+
interface History {
|
|
314
|
+
/**
|
|
315
|
+
* `added`, `check`, `flag`, `confirm` or `removed`.
|
|
316
|
+
*/
|
|
317
|
+
event_type?: string;
|
|
318
|
+
occurred_at?: string;
|
|
319
|
+
/**
|
|
320
|
+
* What the event found or did, for example `unchanged` or `carrier_changed`.
|
|
321
|
+
*/
|
|
322
|
+
outcome?: string | null;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
164
326
|
export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
327
|
+
/**
|
|
328
|
+
* Only numbers with this ownership status. `removed` lists the numbers that were
|
|
329
|
+
* removed, each with its `removal_reason` and `removed_at`; removed numbers are
|
|
330
|
+
* not returned otherwise.
|
|
331
|
+
*/
|
|
332
|
+
'filter[ownership_status]'?: ReputationOwnershipStatus;
|
|
165
333
|
/**
|
|
166
334
|
* Partial match on phone number. Must contain at least 5 digits.
|
|
167
335
|
*/
|
|
@@ -170,6 +338,10 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
|
170
338
|
* Exact phone-number match (E.164).
|
|
171
339
|
*/
|
|
172
340
|
'filter[phone_number][eq]'?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Only numbers with this source.
|
|
343
|
+
*/
|
|
344
|
+
'filter[source]'?: ReputationNumberSource;
|
|
173
345
|
}
|
|
174
346
|
export interface NumberAssociateParams {
|
|
175
347
|
/**
|
|
@@ -201,7 +373,28 @@ export interface NumberRefreshParams {
|
|
|
201
373
|
*/
|
|
202
374
|
phone_numbers: Array<string>;
|
|
203
375
|
}
|
|
376
|
+
export interface NumberRetrieveOwnershipParams {
|
|
377
|
+
/**
|
|
378
|
+
* The enterprise id. Lowercase UUID.
|
|
379
|
+
*/
|
|
380
|
+
enterprise_id: string;
|
|
381
|
+
}
|
|
382
|
+
export interface NumberOwnershipConfirmParams {
|
|
383
|
+
/**
|
|
384
|
+
* Path param: The enterprise id. Lowercase UUID.
|
|
385
|
+
*/
|
|
386
|
+
enterprise_id: string;
|
|
387
|
+
/**
|
|
388
|
+
* Body param: `true` confirms you still own the number. `false` reports that you
|
|
389
|
+
* no longer own it and removes it from Number Reputation.
|
|
390
|
+
*/
|
|
391
|
+
still_own: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Body param: Optional id of an uploaded document supporting the confirmation.
|
|
394
|
+
*/
|
|
395
|
+
evidence_document_id?: string;
|
|
396
|
+
}
|
|
204
397
|
export declare namespace Numbers {
|
|
205
|
-
export { type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, };
|
|
398
|
+
export { type ReputationNumberSource as ReputationNumberSource, type ReputationOwnershipStatus as ReputationOwnershipStatus, type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type NumberRetrieveOwnershipResponse as NumberRetrieveOwnershipResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, type NumberRetrieveOwnershipParams as NumberRetrieveOwnershipParams, type NumberOwnershipConfirmParams as NumberOwnershipConfirmParams, };
|
|
206
399
|
}
|
|
207
400
|
//# sourceMappingURL=numbers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,qBAAqB,CAAC;IAQlF
|
|
1
|
+
{"version":3,"file":"numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/enterprises/reputation/numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,qBAAqB,CAAC;IAQlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,SAAS,CACP,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;OAWG;IACH,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;;;;;;;;;;;;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
2
3
|
import * as Shared from "../../shared.js";
|
|
3
4
|
import * as EnterprisesAPI from "../enterprises.js";
|
|
4
5
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
@@ -26,8 +27,9 @@ export declare class Numbers extends APIResource {
|
|
|
26
27
|
list(enterpriseID: string, query?: NumberListParams | null | undefined, options?: RequestOptions): PagePromise<ReputationPhoneNumbersDefaultFlatPagination, ReputationPhoneNumber>;
|
|
27
28
|
/**
|
|
28
29
|
* Add up to 100 phone numbers to reputation monitoring on this enterprise. Each
|
|
29
|
-
* must be in E.164 format (`+1NPANXXXXXX` for US/CA)
|
|
30
|
-
* phone-number inventory
|
|
30
|
+
* must be in E.164 format (`+1NPANXXXXXX` for US/CA). A number in your Telnyx
|
|
31
|
+
* phone-number inventory is accepted as `source: telnyx`; a number that is not is
|
|
32
|
+
* treated as hosted with another provider and must meet the requirements below.
|
|
31
33
|
*
|
|
32
34
|
* **Prerequisite**: reputation must already be enabled on this enterprise (see
|
|
33
35
|
* `POST .../reputation`).
|
|
@@ -35,6 +37,14 @@ export declare class Numbers extends APIResource {
|
|
|
35
37
|
* **Pricing:** This is a billable action. See https://telnyx.com/pricing/numbers
|
|
36
38
|
* for current pricing.
|
|
37
39
|
*
|
|
40
|
+
* A phone number that is not in your Telnyx inventory is treated as a number
|
|
41
|
+
* hosted with another provider (`source: external`). It must be a US local number,
|
|
42
|
+
* and the enterprise's ownership proof must be approved first
|
|
43
|
+
* (`POST /enterprises/{enterprise_id}/reputation/external_verification`);
|
|
44
|
+
* otherwise the request fails with a 400 whose `detail` contains
|
|
45
|
+
* `external_verification_required`. Ownership of such numbers is checked every
|
|
46
|
+
* day.
|
|
47
|
+
*
|
|
38
48
|
* @example
|
|
39
49
|
* ```ts
|
|
40
50
|
* const reputationPhoneNumberList =
|
|
@@ -94,20 +104,118 @@ export declare class Numbers extends APIResource {
|
|
|
94
104
|
* ```
|
|
95
105
|
*/
|
|
96
106
|
refresh(enterpriseID: string, body: NumberRefreshParams, options?: RequestOptions): APIPromise<NumberRefreshResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Get the ownership status of a phone number, when it was last checked, the
|
|
109
|
+
* carrier recorded as its baseline, and the history of ownership events.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* const response =
|
|
114
|
+
* await client.enterprises.reputation.numbers.retrieveOwnership(
|
|
115
|
+
* '+19493253498',
|
|
116
|
+
* {
|
|
117
|
+
* enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
|
|
118
|
+
* },
|
|
119
|
+
* );
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
retrieveOwnership(phoneNumber: string, params: NumberRetrieveOwnershipParams, options?: RequestOptions): APIPromise<NumberRetrieveOwnershipResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Answer an ownership question about a phone number hosted with another provider.
|
|
125
|
+
*
|
|
126
|
+
* Send `still_own: true` to confirm you still own a number whose
|
|
127
|
+
* `ownership_status` is `pending_confirmation` or `flagged`; its status returns to
|
|
128
|
+
* `verified` and, after a carrier change, the new carrier becomes the one on
|
|
129
|
+
* record.
|
|
130
|
+
*
|
|
131
|
+
* Send `still_own: false` to report that you no longer own the number. It is
|
|
132
|
+
* removed from Number Reputation immediately, whatever its current status, and the
|
|
133
|
+
* response shows it with `ownership_status: removed`.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* const reputationPhoneNumberWithReputation =
|
|
138
|
+
* await client.enterprises.reputation.numbers.ownershipConfirm(
|
|
139
|
+
* '+19493253498',
|
|
140
|
+
* {
|
|
141
|
+
* enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
|
|
142
|
+
* still_own: true,
|
|
143
|
+
* },
|
|
144
|
+
* );
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
ownershipConfirm(phoneNumber: string, params: NumberOwnershipConfirmParams, options?: RequestOptions): APIPromise<ReputationPhoneNumberWithReputation>;
|
|
97
148
|
}
|
|
98
149
|
export type ReputationPhoneNumbersDefaultFlatPagination = DefaultFlatPagination<ReputationPhoneNumber>;
|
|
150
|
+
/**
|
|
151
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
152
|
+
* `external`: a number you own that is hosted with another provider.
|
|
153
|
+
*/
|
|
154
|
+
export type ReputationNumberSource = 'telnyx' | 'external';
|
|
155
|
+
/**
|
|
156
|
+
* Result of ongoing ownership checks. `verified`: the number is with the carrier
|
|
157
|
+
* on record. `pending_confirmation`: the number's carrier changed, or a periodic
|
|
158
|
+
* ownership re-verification is due; confirm you still own it before `confirm_by`.
|
|
159
|
+
* `flagged`: a periodic re-verification went unanswered; the number stays
|
|
160
|
+
* monitored and is not removed, but confirm ownership
|
|
161
|
+
* (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
|
|
162
|
+
* is no longer monitored; returned by `POST .../ownership_confirm` with
|
|
163
|
+
* `still_own: false`, and when listing numbers with
|
|
164
|
+
* `filter[ownership_status]=removed`.
|
|
165
|
+
*/
|
|
166
|
+
export type ReputationOwnershipStatus = 'verified' | 'flagged' | 'pending_confirmation' | 'removed';
|
|
99
167
|
export interface ReputationPhoneNumber {
|
|
100
168
|
id?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Deadline to confirm you still own the number. Set only while `ownership_status`
|
|
171
|
+
* is `pending_confirmation`.
|
|
172
|
+
*/
|
|
173
|
+
confirm_by?: string | null;
|
|
101
174
|
created_at?: string;
|
|
102
175
|
enterprise_id?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Why the number's ownership was flagged. `carrier_changed` when an ownership
|
|
178
|
+
* check found the number with a different carrier.
|
|
179
|
+
*/
|
|
180
|
+
flag_reason?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Result of ongoing ownership checks. `verified`: the number is with the carrier
|
|
183
|
+
* on record. `pending_confirmation`: the number's carrier changed, or a periodic
|
|
184
|
+
* ownership re-verification is due; confirm you still own it before `confirm_by`.
|
|
185
|
+
* `flagged`: a periodic re-verification went unanswered; the number stays
|
|
186
|
+
* monitored and is not removed, but confirm ownership
|
|
187
|
+
* (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
|
|
188
|
+
* is no longer monitored; returned by `POST .../ownership_confirm` with
|
|
189
|
+
* `still_own: false`, and when listing numbers with
|
|
190
|
+
* `filter[ownership_status]=removed`.
|
|
191
|
+
*/
|
|
192
|
+
ownership_status?: ReputationOwnershipStatus;
|
|
103
193
|
/**
|
|
104
194
|
* E.164 with leading `+`.
|
|
105
195
|
*/
|
|
106
196
|
phone_number?: string;
|
|
107
197
|
/**
|
|
108
|
-
*
|
|
198
|
+
* Why a number was removed. `ported_away`: you confirmed the number left your
|
|
199
|
+
* control after a carrier change. `unconfirmed_ownership`: a carrier change was
|
|
200
|
+
* not confirmed before the deadline. `reassigned`: the number was reported as
|
|
201
|
+
* permanently disconnected. `customer_reported`: you reported that you no longer
|
|
202
|
+
* own the number. `customer_removed`: you removed the number.
|
|
203
|
+
*/
|
|
204
|
+
removal_reason?: 'ported_away' | 'unconfirmed_ownership' | 'reassigned' | 'customer_reported' | 'customer_removed' | null;
|
|
205
|
+
/**
|
|
206
|
+
* When the number was removed. Set only for removed numbers.
|
|
207
|
+
*/
|
|
208
|
+
removed_at?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Reputation snapshot for a phone number. Each metric is a 0–100 score;
|
|
211
|
+
* `spam_risk` is a coarse bucket. Field set may grow over time - read by key.
|
|
109
212
|
*/
|
|
110
213
|
reputation_data?: Shared.ReputationData | null;
|
|
214
|
+
/**
|
|
215
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
216
|
+
* `external`: a number you own that is hosted with another provider.
|
|
217
|
+
*/
|
|
218
|
+
source?: ReputationNumberSource;
|
|
111
219
|
updated_at?: string;
|
|
112
220
|
}
|
|
113
221
|
export interface ReputationPhoneNumberList {
|
|
@@ -161,7 +269,67 @@ export declare namespace NumberRefreshResponse {
|
|
|
161
269
|
}
|
|
162
270
|
}
|
|
163
271
|
}
|
|
272
|
+
export interface NumberRetrieveOwnershipResponse {
|
|
273
|
+
data: NumberRetrieveOwnershipResponse.Data;
|
|
274
|
+
}
|
|
275
|
+
export declare namespace NumberRetrieveOwnershipResponse {
|
|
276
|
+
interface Data {
|
|
277
|
+
/**
|
|
278
|
+
* Service provider ID (SPID) of the carrier that held the number when its
|
|
279
|
+
* ownership was last established.
|
|
280
|
+
*/
|
|
281
|
+
baseline_carrier?: string | null;
|
|
282
|
+
baseline_recorded_at?: string | null;
|
|
283
|
+
confirm_by?: string | null;
|
|
284
|
+
flag_reason?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* Ownership events, most recent first.
|
|
287
|
+
*/
|
|
288
|
+
history?: Array<Data.History>;
|
|
289
|
+
/**
|
|
290
|
+
* When ownership of the number was last checked.
|
|
291
|
+
*/
|
|
292
|
+
last_checked_at?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* Result of ongoing ownership checks. `verified`: the number is with the carrier
|
|
295
|
+
* on record. `pending_confirmation`: the number's carrier changed, or a periodic
|
|
296
|
+
* ownership re-verification is due; confirm you still own it before `confirm_by`.
|
|
297
|
+
* `flagged`: a periodic re-verification went unanswered; the number stays
|
|
298
|
+
* monitored and is not removed, but confirm ownership
|
|
299
|
+
* (`POST .../ownership_confirm`) to return it to `verified`. `removed`: the number
|
|
300
|
+
* is no longer monitored; returned by `POST .../ownership_confirm` with
|
|
301
|
+
* `still_own: false`, and when listing numbers with
|
|
302
|
+
* `filter[ownership_status]=removed`.
|
|
303
|
+
*/
|
|
304
|
+
ownership_status?: NumbersAPI.ReputationOwnershipStatus;
|
|
305
|
+
phone_number?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Where the phone number is hosted. `telnyx`: in your Telnyx inventory.
|
|
308
|
+
* `external`: a number you own that is hosted with another provider.
|
|
309
|
+
*/
|
|
310
|
+
source?: NumbersAPI.ReputationNumberSource;
|
|
311
|
+
}
|
|
312
|
+
namespace Data {
|
|
313
|
+
interface History {
|
|
314
|
+
/**
|
|
315
|
+
* `added`, `check`, `flag`, `confirm` or `removed`.
|
|
316
|
+
*/
|
|
317
|
+
event_type?: string;
|
|
318
|
+
occurred_at?: string;
|
|
319
|
+
/**
|
|
320
|
+
* What the event found or did, for example `unchanged` or `carrier_changed`.
|
|
321
|
+
*/
|
|
322
|
+
outcome?: string | null;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
164
326
|
export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
327
|
+
/**
|
|
328
|
+
* Only numbers with this ownership status. `removed` lists the numbers that were
|
|
329
|
+
* removed, each with its `removal_reason` and `removed_at`; removed numbers are
|
|
330
|
+
* not returned otherwise.
|
|
331
|
+
*/
|
|
332
|
+
'filter[ownership_status]'?: ReputationOwnershipStatus;
|
|
165
333
|
/**
|
|
166
334
|
* Partial match on phone number. Must contain at least 5 digits.
|
|
167
335
|
*/
|
|
@@ -170,6 +338,10 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
|
170
338
|
* Exact phone-number match (E.164).
|
|
171
339
|
*/
|
|
172
340
|
'filter[phone_number][eq]'?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Only numbers with this source.
|
|
343
|
+
*/
|
|
344
|
+
'filter[source]'?: ReputationNumberSource;
|
|
173
345
|
}
|
|
174
346
|
export interface NumberAssociateParams {
|
|
175
347
|
/**
|
|
@@ -201,7 +373,28 @@ export interface NumberRefreshParams {
|
|
|
201
373
|
*/
|
|
202
374
|
phone_numbers: Array<string>;
|
|
203
375
|
}
|
|
376
|
+
export interface NumberRetrieveOwnershipParams {
|
|
377
|
+
/**
|
|
378
|
+
* The enterprise id. Lowercase UUID.
|
|
379
|
+
*/
|
|
380
|
+
enterprise_id: string;
|
|
381
|
+
}
|
|
382
|
+
export interface NumberOwnershipConfirmParams {
|
|
383
|
+
/**
|
|
384
|
+
* Path param: The enterprise id. Lowercase UUID.
|
|
385
|
+
*/
|
|
386
|
+
enterprise_id: string;
|
|
387
|
+
/**
|
|
388
|
+
* Body param: `true` confirms you still own the number. `false` reports that you
|
|
389
|
+
* no longer own it and removes it from Number Reputation.
|
|
390
|
+
*/
|
|
391
|
+
still_own: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Body param: Optional id of an uploaded document supporting the confirmation.
|
|
394
|
+
*/
|
|
395
|
+
evidence_document_id?: string;
|
|
396
|
+
}
|
|
204
397
|
export declare namespace Numbers {
|
|
205
|
-
export { type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, };
|
|
398
|
+
export { type ReputationNumberSource as ReputationNumberSource, type ReputationOwnershipStatus as ReputationOwnershipStatus, type ReputationPhoneNumber as ReputationPhoneNumber, type ReputationPhoneNumberList as ReputationPhoneNumberList, type ReputationPhoneNumberListWithReputation as ReputationPhoneNumberListWithReputation, type ReputationPhoneNumberWithReputation as ReputationPhoneNumberWithReputation, type NumberRefreshResponse as NumberRefreshResponse, type NumberRetrieveOwnershipResponse as NumberRetrieveOwnershipResponse, type ReputationPhoneNumbersDefaultFlatPagination as ReputationPhoneNumbersDefaultFlatPagination, type NumberListParams as NumberListParams, type NumberAssociateParams as NumberAssociateParams, type NumberDisassociateParams as NumberDisassociateParams, type NumberRetrieveParams as NumberRetrieveParams, type NumberRefreshParams as NumberRefreshParams, type NumberRetrieveOwnershipParams as NumberRetrieveOwnershipParams, type NumberOwnershipConfirmParams as NumberOwnershipConfirmParams, };
|
|
206
399
|
}
|
|
207
400
|
//# sourceMappingURL=numbers.d.ts.map
|