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
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as DirAPI from './dir';
|
|
5
5
|
import { Dir, DirCreateParams, DirListParams } from './dir';
|
|
6
|
+
import * as VerifyEmailAPI from './verify-email';
|
|
7
|
+
import {
|
|
8
|
+
EnterpriseEmailVerificationStatusWrapped,
|
|
9
|
+
VerifyEmail,
|
|
10
|
+
VerifyEmailConfirmParams,
|
|
11
|
+
} from './verify-email';
|
|
6
12
|
import * as ReputationAPI from './reputation/reputation';
|
|
7
13
|
import {
|
|
8
14
|
EnterpriseReputationPublic,
|
|
@@ -11,6 +17,7 @@ import {
|
|
|
11
17
|
ReputationCheckFrequency,
|
|
12
18
|
ReputationEnableParams,
|
|
13
19
|
ReputationUpdateFrequencyParams,
|
|
20
|
+
ReputationUpdateWebhookParams,
|
|
14
21
|
} from './reputation/reputation';
|
|
15
22
|
import { APIPromise } from '../../core/api-promise';
|
|
16
23
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../../core/pagination';
|
|
@@ -24,6 +31,7 @@ import { path } from '../../internal/utils/path';
|
|
|
24
31
|
export class Enterprises extends APIResource {
|
|
25
32
|
reputation: ReputationAPI.Reputation = new ReputationAPI.Reputation(this._client);
|
|
26
33
|
dir: DirAPI.Dir = new DirAPI.Dir(this._client);
|
|
34
|
+
verifyEmail: VerifyEmailAPI.VerifyEmail = new VerifyEmailAPI.VerifyEmail(this._client);
|
|
27
35
|
|
|
28
36
|
/**
|
|
29
37
|
* Return the enterprises you own, paginated. The default page size is 20; the
|
|
@@ -159,6 +167,21 @@ export class Enterprises extends APIResource {
|
|
|
159
167
|
* cannot be changed: including any of them in the body is rejected with
|
|
160
168
|
* `400 Bad Request` (`Field 'X' is not allowed in this request`).
|
|
161
169
|
*
|
|
170
|
+
* For an approved BPO enterprise (`role_type` `bpo`), changing any identity field
|
|
171
|
+
* (legal name, DBA, website, FEIN, industry, number of employees, physical
|
|
172
|
+
* address, organization contact, D-U-N-S number, legal type, SIC code, corporate
|
|
173
|
+
* registration number, professional license number, or jurisdiction of
|
|
174
|
+
* incorporation) resets `bpo_verification_status` to `pending` for re-approval and
|
|
175
|
+
* sets every DIR authorization for that BPO to `rejected`. After re-approval, link
|
|
176
|
+
* it again with a newly signed LOA (a new `loa_document_id`); resending the old
|
|
177
|
+
* one keeps the authorization `rejected`. Re-sending an unchanged value does not
|
|
178
|
+
* reset anything.
|
|
179
|
+
*
|
|
180
|
+
* If Number Reputation is enabled on the enterprise, `legal_name`,
|
|
181
|
+
* `doing_business_as`, `website`, `fein`, `industry`, `number_of_employees`,
|
|
182
|
+
* `organization_physical_address`, `organization_contact`, and
|
|
183
|
+
* `dun_bradstreet_number` cannot be changed: the request is rejected with `400`.
|
|
184
|
+
*
|
|
162
185
|
* @example
|
|
163
186
|
* ```ts
|
|
164
187
|
* const enterprisePublicWrapped = await client.enterprises.update(
|
|
@@ -213,14 +236,15 @@ export class Enterprises extends APIResource {
|
|
|
213
236
|
}
|
|
214
237
|
|
|
215
238
|
/**
|
|
216
|
-
* Branded Calling
|
|
217
|
-
* Activation is idempotent:
|
|
239
|
+
* Branded Calling must be activated on each enterprise. Activation is idempotent:
|
|
218
240
|
*
|
|
219
|
-
* - First call: marks the enterprise as activated
|
|
220
|
-
*
|
|
241
|
+
* - First call: marks the enterprise as activated, effective immediately; you can
|
|
242
|
+
* create a DIR right away. The enterprise is registered with the Branded Calling
|
|
243
|
+
* platform later, after its first DIR is approved. Returns `200` with
|
|
221
244
|
* `branded_calling_enabled: true`.
|
|
222
245
|
* - Re-call after success: no-op, returns the same enterprise body.
|
|
223
|
-
* - Re-call after a
|
|
246
|
+
* - Re-call after a failed registration: re-queues the registration, returns
|
|
247
|
+
* `200`.
|
|
224
248
|
*
|
|
225
249
|
* Prerequisite: the calling user must have agreed to the Branded Calling Terms of
|
|
226
250
|
* Service (`POST /terms_of_service/branded_calling/agree`). Without that, this
|
|
@@ -228,11 +252,15 @@ export class Enterprises extends APIResource {
|
|
|
228
252
|
*
|
|
229
253
|
* Failure modes:
|
|
230
254
|
*
|
|
255
|
+
* - `400` - the account has no available credit. Add funds and retry.
|
|
256
|
+
* - `400` - the enterprise is not in the United States. Branded Calling is
|
|
257
|
+
* currently available only to US enterprises.
|
|
231
258
|
* - `403` - Branded Calling Terms of Service not accepted.
|
|
232
259
|
* - `404` - enterprise does not exist or does not belong to your account.
|
|
233
260
|
*
|
|
234
|
-
* **Pricing:**
|
|
235
|
-
*
|
|
261
|
+
* **Pricing:** Activation itself is free, but the account must have available
|
|
262
|
+
* credit. Branded Calling fees are charged per DIR and per branded call. See
|
|
263
|
+
* https://telnyx.com/pricing/branded-calling for current pricing.
|
|
236
264
|
*
|
|
237
265
|
* @example
|
|
238
266
|
* ```ts
|
|
@@ -250,14 +278,27 @@ export class Enterprises extends APIResource {
|
|
|
250
278
|
export type EnterprisePublicsDefaultFlatPagination = DefaultFlatPagination<EnterprisePublic>;
|
|
251
279
|
|
|
252
280
|
export interface BillingContact {
|
|
281
|
+
/**
|
|
282
|
+
* The email address of the person Telnyx should contact about billing for this
|
|
283
|
+
* account.
|
|
284
|
+
*/
|
|
253
285
|
email: string;
|
|
254
286
|
|
|
287
|
+
/**
|
|
288
|
+
* The first name of the person Telnyx should contact about billing for this
|
|
289
|
+
* account.
|
|
290
|
+
*/
|
|
255
291
|
first_name: string;
|
|
256
292
|
|
|
293
|
+
/**
|
|
294
|
+
* The last name of the person Telnyx should contact about billing for this
|
|
295
|
+
* account.
|
|
296
|
+
*/
|
|
257
297
|
last_name: string;
|
|
258
298
|
|
|
259
299
|
/**
|
|
260
|
-
* E.164 format
|
|
300
|
+
* The phone number of the billing contact, in E.164 format, for example
|
|
301
|
+
* +12125551234.
|
|
261
302
|
*/
|
|
262
303
|
phone_number: string;
|
|
263
304
|
}
|
|
@@ -269,6 +310,20 @@ export interface EnterprisePublic {
|
|
|
269
310
|
|
|
270
311
|
billing_contact?: BillingContact;
|
|
271
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Reason Telnyx rejected the BPO (Business Process Outsourcer) verification, when
|
|
315
|
+
* `bpo_verification_status` is `rejected`; `null` otherwise.
|
|
316
|
+
*/
|
|
317
|
+
bpo_verification_rejection_reason?: string | null;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Whether Telnyx has approved this BPO (Business Process Outsourcer) account. Only
|
|
321
|
+
* set for accounts created with `role_type` `bpo`; `null` for normal enterprises.
|
|
322
|
+
* A BPO enterprise must be `approved` before a DIR can be linked to it through
|
|
323
|
+
* `bpo_authorizations`.
|
|
324
|
+
*/
|
|
325
|
+
bpo_verification_status?: 'pending' | 'approved' | 'rejected' | null;
|
|
326
|
+
|
|
272
327
|
/**
|
|
273
328
|
* True once Branded Calling has been activated on this enterprise (see
|
|
274
329
|
* `POST /enterprises/{id}/branded_calling`).
|
|
@@ -276,7 +331,9 @@ export interface EnterprisePublic {
|
|
|
276
331
|
branded_calling_enabled?: boolean;
|
|
277
332
|
|
|
278
333
|
/**
|
|
279
|
-
*
|
|
334
|
+
* The official number your company received when it was legally registered or
|
|
335
|
+
* incorporated (for example from your state or national business registry). It is
|
|
336
|
+
* on your certificate of incorporation.
|
|
280
337
|
*/
|
|
281
338
|
corporate_registration_number?: string | null;
|
|
282
339
|
|
|
@@ -284,23 +341,52 @@ export interface EnterprisePublic {
|
|
|
284
341
|
|
|
285
342
|
created_at?: string;
|
|
286
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
346
|
+
* your records. Telnyx does not use it during vetting.
|
|
347
|
+
*/
|
|
287
348
|
customer_reference?: string;
|
|
288
349
|
|
|
350
|
+
/**
|
|
351
|
+
* The trade name your business operates under if it is different from your legal
|
|
352
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
353
|
+
* your legal name.
|
|
354
|
+
*/
|
|
289
355
|
doing_business_as?: string;
|
|
290
356
|
|
|
291
357
|
/**
|
|
292
|
-
*
|
|
358
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
359
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
293
360
|
*/
|
|
294
361
|
dun_bradstreet_number?: string | null;
|
|
295
362
|
|
|
363
|
+
/**
|
|
364
|
+
* US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
|
|
365
|
+
*/
|
|
296
366
|
fein?: string;
|
|
297
367
|
|
|
368
|
+
/**
|
|
369
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
370
|
+
* if your value is not accepted, pick the nearest category.
|
|
371
|
+
*/
|
|
298
372
|
industry?: string;
|
|
299
373
|
|
|
374
|
+
/**
|
|
375
|
+
* The state, province, or country where your business was legally incorporated,
|
|
376
|
+
* for example Delaware.
|
|
377
|
+
*/
|
|
300
378
|
jurisdiction_of_incorporation?: string;
|
|
301
379
|
|
|
380
|
+
/**
|
|
381
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
382
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
383
|
+
*/
|
|
302
384
|
legal_name?: string;
|
|
303
385
|
|
|
386
|
+
/**
|
|
387
|
+
* Approximate headcount range. Used for vetting heuristics; pick the bucket that
|
|
388
|
+
* contains your current employee count.
|
|
389
|
+
*/
|
|
304
390
|
number_of_employees?: string;
|
|
305
391
|
|
|
306
392
|
/**
|
|
@@ -311,6 +397,17 @@ export interface EnterprisePublic {
|
|
|
311
397
|
|
|
312
398
|
organization_contact?: OrganizationContact;
|
|
313
399
|
|
|
400
|
+
/**
|
|
401
|
+
* Legal-entity form. Pick the form that matches your incorporation documents:
|
|
402
|
+
*
|
|
403
|
+
* - `corporation` - C-corp or S-corp.
|
|
404
|
+
* - `llc` - limited liability company.
|
|
405
|
+
* - `partnership` - general/limited partnership.
|
|
406
|
+
* - `nonprofit` - non-profit corporation, charitable trust, or
|
|
407
|
+
* 501(c)(3)/equivalent.
|
|
408
|
+
* - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
|
|
409
|
+
* You may be asked for additional documents during vetting.
|
|
410
|
+
*/
|
|
314
411
|
organization_legal_type?: string;
|
|
315
412
|
|
|
316
413
|
organization_physical_address?: PhysicalAddress;
|
|
@@ -318,19 +415,27 @@ export interface EnterprisePublic {
|
|
|
318
415
|
organization_type?: string;
|
|
319
416
|
|
|
320
417
|
/**
|
|
321
|
-
*
|
|
418
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
419
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
420
|
+
* code directory if you are unsure.
|
|
322
421
|
*/
|
|
323
422
|
primary_business_domain_sic_code?: string | null;
|
|
324
423
|
|
|
325
424
|
/**
|
|
326
|
-
*
|
|
425
|
+
* If your business operates under a professional license (for example legal,
|
|
426
|
+
* medical, or financial services), enter the license number issued by the
|
|
427
|
+
* licensing authority. Leave blank if it does not apply.
|
|
327
428
|
*/
|
|
328
429
|
professional_license_number?: string | null;
|
|
329
430
|
|
|
330
|
-
role_type?:
|
|
431
|
+
role_type?: 'enterprise' | 'bpo';
|
|
331
432
|
|
|
332
433
|
updated_at?: string;
|
|
333
434
|
|
|
435
|
+
/**
|
|
436
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
437
|
+
* business has no website.
|
|
438
|
+
*/
|
|
334
439
|
website?: string;
|
|
335
440
|
}
|
|
336
441
|
|
|
@@ -368,16 +473,30 @@ export interface NumberReputationPaginationMeta {
|
|
|
368
473
|
}
|
|
369
474
|
|
|
370
475
|
export interface OrganizationContact {
|
|
476
|
+
/**
|
|
477
|
+
* The email address of the main person Telnyx should contact about this account.
|
|
478
|
+
* For a call center (BPO) account this is the email you will verify later, so use
|
|
479
|
+
* a mailbox you can access.
|
|
480
|
+
*/
|
|
371
481
|
email: string;
|
|
372
482
|
|
|
483
|
+
/**
|
|
484
|
+
* The first name of the main person Telnyx should contact about this account.
|
|
485
|
+
*/
|
|
373
486
|
first_name: string;
|
|
374
487
|
|
|
488
|
+
/**
|
|
489
|
+
* The job title of the main person Telnyx should contact about this account.
|
|
490
|
+
*/
|
|
375
491
|
job_title: string;
|
|
376
492
|
|
|
493
|
+
/**
|
|
494
|
+
* The last name of the main person Telnyx should contact about this account.
|
|
495
|
+
*/
|
|
377
496
|
last_name: string;
|
|
378
497
|
|
|
379
498
|
/**
|
|
380
|
-
* E.164 format
|
|
499
|
+
* The phone number of the main contact, in E.164 format, for example +12125551234.
|
|
381
500
|
*/
|
|
382
501
|
phone_number: string;
|
|
383
502
|
}
|
|
@@ -388,6 +507,9 @@ export interface PhysicalAddress {
|
|
|
388
507
|
*/
|
|
389
508
|
administrative_area: string;
|
|
390
509
|
|
|
510
|
+
/**
|
|
511
|
+
* The city of your registered business address.
|
|
512
|
+
*/
|
|
391
513
|
city: string;
|
|
392
514
|
|
|
393
515
|
/**
|
|
@@ -395,10 +517,21 @@ export interface PhysicalAddress {
|
|
|
395
517
|
*/
|
|
396
518
|
country: string;
|
|
397
519
|
|
|
520
|
+
/**
|
|
521
|
+
* The postal or ZIP code of your registered business address.
|
|
522
|
+
*/
|
|
398
523
|
postal_code: string;
|
|
399
524
|
|
|
525
|
+
/**
|
|
526
|
+
* The street address of your registered business, including the building number
|
|
527
|
+
* and street name.
|
|
528
|
+
*/
|
|
400
529
|
street_address: string;
|
|
401
530
|
|
|
531
|
+
/**
|
|
532
|
+
* An optional second address line, such as a suite, unit, or floor. Leave blank if
|
|
533
|
+
* it does not apply.
|
|
534
|
+
*/
|
|
402
535
|
extended_address?: string | null;
|
|
403
536
|
}
|
|
404
537
|
|
|
@@ -408,6 +541,12 @@ export interface EnterpriseListParams extends DefaultFlatPaginationParams {
|
|
|
408
541
|
*/
|
|
409
542
|
'filter[legal_name][contains]'?: string;
|
|
410
543
|
|
|
544
|
+
/**
|
|
545
|
+
* Only return enterprises of this type: `bpo` for call-center (BPO) enterprises,
|
|
546
|
+
* `enterprise` for normal enterprises. Omit to return both.
|
|
547
|
+
*/
|
|
548
|
+
'filter[role_type]'?: 'enterprise' | 'bpo';
|
|
549
|
+
|
|
411
550
|
/**
|
|
412
551
|
* Filter by legal name (partial match).
|
|
413
552
|
*/
|
|
@@ -424,6 +563,11 @@ export interface EnterpriseCreateParams {
|
|
|
424
563
|
*/
|
|
425
564
|
country_code: string;
|
|
426
565
|
|
|
566
|
+
/**
|
|
567
|
+
* The trade name your business operates under if it is different from your legal
|
|
568
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
569
|
+
* your legal name.
|
|
570
|
+
*/
|
|
427
571
|
doing_business_as: string;
|
|
428
572
|
|
|
429
573
|
/**
|
|
@@ -432,7 +576,8 @@ export interface EnterpriseCreateParams {
|
|
|
432
576
|
fein: string;
|
|
433
577
|
|
|
434
578
|
/**
|
|
435
|
-
*
|
|
579
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
580
|
+
* if your value is not accepted, pick the nearest category.
|
|
436
581
|
*/
|
|
437
582
|
industry:
|
|
438
583
|
| 'accounting'
|
|
@@ -479,10 +624,15 @@ export interface EnterpriseCreateParams {
|
|
|
479
624
|
| 'hospitality'
|
|
480
625
|
| 'hotel';
|
|
481
626
|
|
|
627
|
+
/**
|
|
628
|
+
* The state, province, or country where your business was legally incorporated,
|
|
629
|
+
* for example Delaware.
|
|
630
|
+
*/
|
|
482
631
|
jurisdiction_of_incorporation: string;
|
|
483
632
|
|
|
484
633
|
/**
|
|
485
|
-
*
|
|
634
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
635
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
486
636
|
*/
|
|
487
637
|
legal_name: string;
|
|
488
638
|
|
|
@@ -520,37 +670,54 @@ export interface EnterpriseCreateParams {
|
|
|
520
670
|
*/
|
|
521
671
|
organization_type: 'commercial' | 'government' | 'non_profit';
|
|
522
672
|
|
|
673
|
+
/**
|
|
674
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
675
|
+
* business has no website.
|
|
676
|
+
*/
|
|
523
677
|
website: string;
|
|
524
678
|
|
|
525
679
|
/**
|
|
526
|
-
*
|
|
680
|
+
* The official number your company received when it was legally registered or
|
|
681
|
+
* incorporated (for example from your state or national business registry). It is
|
|
682
|
+
* on your certificate of incorporation.
|
|
527
683
|
*/
|
|
528
684
|
corporate_registration_number?: string | null;
|
|
529
685
|
|
|
530
686
|
/**
|
|
531
|
-
*
|
|
532
|
-
* Telnyx does not
|
|
687
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
688
|
+
* your records. Telnyx does not use it during vetting.
|
|
533
689
|
*/
|
|
534
690
|
customer_reference?: string;
|
|
535
691
|
|
|
536
692
|
/**
|
|
537
|
-
*
|
|
693
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
694
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
538
695
|
*/
|
|
539
696
|
dun_bradstreet_number?: string | null;
|
|
540
697
|
|
|
541
698
|
/**
|
|
542
|
-
*
|
|
699
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
700
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
701
|
+
* code directory if you are unsure.
|
|
543
702
|
*/
|
|
544
703
|
primary_business_domain_sic_code?: string | null;
|
|
545
704
|
|
|
546
705
|
/**
|
|
547
|
-
*
|
|
706
|
+
* If your business operates under a professional license (for example legal,
|
|
707
|
+
* medical, or financial services), enter the license number issued by the
|
|
708
|
+
* licensing authority. Leave blank if it does not apply.
|
|
548
709
|
*/
|
|
549
710
|
professional_license_number?: string | null;
|
|
550
711
|
|
|
551
712
|
/**
|
|
552
|
-
* `enterprise` for an organization registering its own DIRs
|
|
553
|
-
*
|
|
713
|
+
* `enterprise` for an organization registering its own DIRs (the default, and the
|
|
714
|
+
* right choice when the calls display your own brand). `bpo` for a Business
|
|
715
|
+
* Process Outsourcer: a call center that places calls on behalf of other
|
|
716
|
+
* enterprises and displays their brand. A `bpo` enterprise describes the call
|
|
717
|
+
* center itself and cannot own a DIR. Each client the call center calls for gets
|
|
718
|
+
* its own `enterprise` in the same account, with the client's DIR under it; that
|
|
719
|
+
* DIR is then linked to the `bpo` enterprise through `bpo_authorizations`. Fixed
|
|
720
|
+
* at creation.
|
|
554
721
|
*/
|
|
555
722
|
role_type?: 'enterprise' | 'bpo';
|
|
556
723
|
}
|
|
@@ -560,16 +727,41 @@ export interface EnterpriseUpdateParams {
|
|
|
560
727
|
|
|
561
728
|
billing_contact?: BillingContact;
|
|
562
729
|
|
|
730
|
+
/**
|
|
731
|
+
* The official number your company received when it was legally registered or
|
|
732
|
+
* incorporated (for example from your state or national business registry). It is
|
|
733
|
+
* on your certificate of incorporation.
|
|
734
|
+
*/
|
|
563
735
|
corporate_registration_number?: string | null;
|
|
564
736
|
|
|
737
|
+
/**
|
|
738
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
739
|
+
* your records. Telnyx does not use it during vetting.
|
|
740
|
+
*/
|
|
565
741
|
customer_reference?: string;
|
|
566
742
|
|
|
743
|
+
/**
|
|
744
|
+
* The trade name your business operates under if it is different from your legal
|
|
745
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
746
|
+
* your legal name.
|
|
747
|
+
*/
|
|
567
748
|
doing_business_as?: string;
|
|
568
749
|
|
|
750
|
+
/**
|
|
751
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
752
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
753
|
+
*/
|
|
569
754
|
dun_bradstreet_number?: string | null;
|
|
570
755
|
|
|
756
|
+
/**
|
|
757
|
+
* US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
|
|
758
|
+
*/
|
|
571
759
|
fein?: string;
|
|
572
760
|
|
|
761
|
+
/**
|
|
762
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
763
|
+
* if your value is not accepted, pick the nearest category.
|
|
764
|
+
*/
|
|
573
765
|
industry?:
|
|
574
766
|
| 'accounting'
|
|
575
767
|
| 'finance'
|
|
@@ -616,32 +808,64 @@ export interface EnterpriseUpdateParams {
|
|
|
616
808
|
| 'hotel';
|
|
617
809
|
|
|
618
810
|
/**
|
|
619
|
-
*
|
|
811
|
+
* The state, province, or country where your business was legally incorporated,
|
|
812
|
+
* for example Delaware.
|
|
620
813
|
*/
|
|
621
814
|
jurisdiction_of_incorporation?: string;
|
|
622
815
|
|
|
623
816
|
/**
|
|
624
|
-
*
|
|
817
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
818
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
625
819
|
*/
|
|
626
820
|
legal_name?: string;
|
|
627
821
|
|
|
822
|
+
/**
|
|
823
|
+
* Approximate headcount range. Used for vetting heuristics; pick the bucket that
|
|
824
|
+
* contains your current employee count.
|
|
825
|
+
*/
|
|
628
826
|
number_of_employees?: string;
|
|
629
827
|
|
|
630
828
|
organization_contact?: OrganizationContact;
|
|
631
829
|
|
|
830
|
+
/**
|
|
831
|
+
* Legal-entity form. Pick the form that matches your incorporation documents:
|
|
832
|
+
*
|
|
833
|
+
* - `corporation` - C-corp or S-corp.
|
|
834
|
+
* - `llc` - limited liability company.
|
|
835
|
+
* - `partnership` - general/limited partnership.
|
|
836
|
+
* - `nonprofit` - non-profit corporation, charitable trust, or
|
|
837
|
+
* 501(c)(3)/equivalent.
|
|
838
|
+
* - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
|
|
839
|
+
* You may be asked for additional documents during vetting.
|
|
840
|
+
*/
|
|
632
841
|
organization_legal_type?: string;
|
|
633
842
|
|
|
634
843
|
organization_physical_address?: PhysicalAddress;
|
|
635
844
|
|
|
845
|
+
/**
|
|
846
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
847
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
848
|
+
* code directory if you are unsure.
|
|
849
|
+
*/
|
|
636
850
|
primary_business_domain_sic_code?: string | null;
|
|
637
851
|
|
|
852
|
+
/**
|
|
853
|
+
* If your business operates under a professional license (for example legal,
|
|
854
|
+
* medical, or financial services), enter the license number issued by the
|
|
855
|
+
* licensing authority. Leave blank if it does not apply.
|
|
856
|
+
*/
|
|
638
857
|
professional_license_number?: string | null;
|
|
639
858
|
|
|
859
|
+
/**
|
|
860
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
861
|
+
* business has no website.
|
|
862
|
+
*/
|
|
640
863
|
website?: string;
|
|
641
864
|
}
|
|
642
865
|
|
|
643
866
|
Enterprises.Reputation = Reputation;
|
|
644
867
|
Enterprises.Dir = Dir;
|
|
868
|
+
Enterprises.VerifyEmail = VerifyEmail;
|
|
645
869
|
|
|
646
870
|
export declare namespace Enterprises {
|
|
647
871
|
export {
|
|
@@ -664,7 +888,14 @@ export declare namespace Enterprises {
|
|
|
664
888
|
type ReputationCheckFrequency as ReputationCheckFrequency,
|
|
665
889
|
type ReputationEnableParams as ReputationEnableParams,
|
|
666
890
|
type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams,
|
|
891
|
+
type ReputationUpdateWebhookParams as ReputationUpdateWebhookParams,
|
|
667
892
|
};
|
|
668
893
|
|
|
669
894
|
export { Dir as Dir, type DirListParams as DirListParams, type DirCreateParams as DirCreateParams };
|
|
895
|
+
|
|
896
|
+
export {
|
|
897
|
+
VerifyEmail as VerifyEmail,
|
|
898
|
+
type EnterpriseEmailVerificationStatusWrapped as EnterpriseEmailVerificationStatusWrapped,
|
|
899
|
+
type VerifyEmailConfirmParams as VerifyEmailConfirmParams,
|
|
900
|
+
};
|
|
670
901
|
}
|
|
@@ -21,4 +21,10 @@ export {
|
|
|
21
21
|
type ReputationCheckFrequency,
|
|
22
22
|
type ReputationEnableParams,
|
|
23
23
|
type ReputationUpdateFrequencyParams,
|
|
24
|
+
type ReputationUpdateWebhookParams,
|
|
24
25
|
} from './reputation/index';
|
|
26
|
+
export {
|
|
27
|
+
VerifyEmail,
|
|
28
|
+
type EnterpriseEmailVerificationStatusWrapped,
|
|
29
|
+
type VerifyEmailConfirmParams,
|
|
30
|
+
} from './verify-email';
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as ExternalVerificationAPI from './external-verification';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Phone-number reputation monitoring (spam-score lookup and tracking).
|
|
11
|
+
*/
|
|
12
|
+
export class ExternalVerification extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get the review status of the enterprise's ownership proof for phone numbers
|
|
15
|
+
* hosted with another provider. Returns 404 when no proof has been submitted.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const externalVerificationWrapped =
|
|
20
|
+
* await client.enterprises.reputation.externalVerification.list(
|
|
21
|
+
* '4a6192a4-573d-446d-b3ce-aff9117272a6',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(enterpriseID: string, options?: RequestOptions): APIPromise<ExternalVerificationWrapped> {
|
|
26
|
+
return this._client.get(path`/enterprises/${enterpriseID}/reputation/external_verification`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Request permission to add phone numbers that the enterprise owns but that are
|
|
31
|
+
* hosted with another provider. Submit one or more uploaded documents proving
|
|
32
|
+
* ownership, such as a carrier invoice or account statement. The request is
|
|
33
|
+
* reviewed once per enterprise. While it is `pending` or `rejected` you can submit
|
|
34
|
+
* again to replace the documents; once `approved` it cannot be changed.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const externalVerificationWrapped =
|
|
39
|
+
* await client.enterprises.reputation.externalVerification.create(
|
|
40
|
+
* '4a6192a4-573d-446d-b3ce-aff9117272a6',
|
|
41
|
+
* {
|
|
42
|
+
* document_ids: [
|
|
43
|
+
* '2a7e8337-e803-4057-a4ae-26c40eb0bc6c',
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
create(
|
|
50
|
+
enterpriseID: string,
|
|
51
|
+
body: ExternalVerificationCreateParams,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): APIPromise<ExternalVerificationWrapped> {
|
|
54
|
+
return this._client.post(path`/enterprises/${enterpriseID}/reputation/external_verification`, {
|
|
55
|
+
body,
|
|
56
|
+
...options,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Review state of the ownership proof that allows adding phone numbers hosted with
|
|
63
|
+
* another provider.
|
|
64
|
+
*/
|
|
65
|
+
export type ExternalVerificationStatus = 'pending' | 'approved' | 'rejected';
|
|
66
|
+
|
|
67
|
+
export interface ExternalVerificationWrapped {
|
|
68
|
+
data: ExternalVerificationWrapped.Data;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace ExternalVerificationWrapped {
|
|
72
|
+
export interface Data {
|
|
73
|
+
/**
|
|
74
|
+
* The ownership-proof documents on file.
|
|
75
|
+
*/
|
|
76
|
+
document_ids?: Array<string>;
|
|
77
|
+
|
|
78
|
+
enterprise_id?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The phone numbers you listed with the documents.
|
|
82
|
+
*/
|
|
83
|
+
phone_numbers?: Array<string>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Why the proof was rejected. Set only when `status` is `rejected`.
|
|
87
|
+
*/
|
|
88
|
+
rejection_reason?: string | null;
|
|
89
|
+
|
|
90
|
+
reviewed_at?: string | null;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Review state of the ownership proof that allows adding phone numbers hosted with
|
|
94
|
+
* another provider.
|
|
95
|
+
*/
|
|
96
|
+
status?: ExternalVerificationAPI.ExternalVerificationStatus;
|
|
97
|
+
|
|
98
|
+
submitted_at?: string | null;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface ExternalVerificationCreateParams {
|
|
103
|
+
/**
|
|
104
|
+
* Ids of uploaded documents (Documents API) proving the enterprise owns its phone
|
|
105
|
+
* numbers hosted with another provider, for example a carrier invoice or account
|
|
106
|
+
* statement.
|
|
107
|
+
*/
|
|
108
|
+
document_ids: Array<string>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Optional. The phone numbers hosted with another provider that the documents
|
|
112
|
+
* cover, in E.164 format. Shown to the reviewer to match the documents to your
|
|
113
|
+
* numbers; you can still add numbers that are not listed here, and each is checked
|
|
114
|
+
* on its own.
|
|
115
|
+
*/
|
|
116
|
+
phone_numbers?: Array<string>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare namespace ExternalVerification {
|
|
120
|
+
export {
|
|
121
|
+
type ExternalVerificationStatus as ExternalVerificationStatus,
|
|
122
|
+
type ExternalVerificationWrapped as ExternalVerificationWrapped,
|
|
123
|
+
type ExternalVerificationCreateParams as ExternalVerificationCreateParams,
|
|
124
|
+
};
|
|
125
|
+
}
|