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
|
@@ -52,10 +52,16 @@ export declare class Dir extends APIResource {
|
|
|
52
52
|
*
|
|
53
53
|
* **Failure modes**
|
|
54
54
|
*
|
|
55
|
-
* - `
|
|
56
|
-
* - `
|
|
55
|
+
* - `400` - validation error; `errors[].source.pointer` names the offending field.
|
|
56
|
+
* - `400` - a certification field is not `true`.
|
|
57
|
+
* - `400` - Branded Calling not activated on this enterprise (see
|
|
57
58
|
* `POST /enterprises/{id}/branded_calling`).
|
|
59
|
+
* - `400` - the enterprise is a BPO enterprise (`role_type` `bpo`), which cannot
|
|
60
|
+
* own a DIR.
|
|
61
|
+
* - `400` - a `bpo_authorizations` entry is not an approved BPO enterprise in your
|
|
62
|
+
* account, or its `loa_document_id` could not be validated.
|
|
58
63
|
* - `404` - enterprise does not exist or does not belong to your account.
|
|
64
|
+
* - `503` - the document check is temporarily unavailable; retry.
|
|
59
65
|
*
|
|
60
66
|
* @example
|
|
61
67
|
* ```ts
|
|
@@ -130,7 +136,8 @@ export interface DirCreateParams {
|
|
|
130
136
|
*/
|
|
131
137
|
call_reasons: Array<string>;
|
|
132
138
|
/**
|
|
133
|
-
* Must be `true
|
|
139
|
+
* Certification that the DIR information is accurate. Must be `true` for the DIR
|
|
140
|
+
* to be submitted for vetting.
|
|
134
141
|
*/
|
|
135
142
|
certify_brand_is_accurate: true;
|
|
136
143
|
/**
|
|
@@ -146,6 +153,15 @@ export interface DirCreateParams {
|
|
|
146
153
|
* Name shown to call recipients. No emoji; not whitespace-only.
|
|
147
154
|
*/
|
|
148
155
|
display_name: string;
|
|
156
|
+
/**
|
|
157
|
+
* Optional. Approved BPO (Business Process Outsourcer) accounts on your
|
|
158
|
+
* organization authorized to place branded calls for this DIR, each with the
|
|
159
|
+
* signed Letter of Authorization the Brand Owner granted it. Each authorization
|
|
160
|
+
* starts `pending` and takes effect only after an admin reviews its Letter of
|
|
161
|
+
* Authorization. Omit or send an empty list to authorize no BPO on this DIR.
|
|
162
|
+
* Maximum 10.
|
|
163
|
+
*/
|
|
164
|
+
bpo_authorizations?: Array<DirAPI.BpoAuthorizationInput>;
|
|
149
165
|
/**
|
|
150
166
|
* Supporting documents. Each `document_id` may appear at most once on a DIR.
|
|
151
167
|
*/
|
|
@@ -159,6 +175,12 @@ export interface DirCreateParams {
|
|
|
159
175
|
* (BPO/reseller).
|
|
160
176
|
*/
|
|
161
177
|
reselling?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Optional `https://` URL that receives webhook notifications when this DIR's
|
|
180
|
+
* compliance review completes (rejection outcomes include structured rejection
|
|
181
|
+
* reasons). Maximum 2048 characters.
|
|
182
|
+
*/
|
|
183
|
+
webhook_url?: string | null;
|
|
162
184
|
}
|
|
163
185
|
export declare namespace Dir {
|
|
164
186
|
export { type DirListParams as DirListParams, type DirCreateParams as DirCreateParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dir.d.ts","sourceRoot":"","sources":["../../src/resources/enterprises/dir.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,sBAAmB;AACrC,OAAO,EAAE,yBAAyB,EAAE,sBAAmB;AACvD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAyB,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yBAAyB,EAAE,MAAM,CAAC,GAAG,CAAC;IAQrD
|
|
1
|
+
{"version":3,"file":"dir.d.ts","sourceRoot":"","sources":["../../src/resources/enterprises/dir.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,sBAAmB;AACrC,OAAO,EAAE,yBAAyB,EAAE,sBAAmB;AACvD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAyB,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,GAAI,SAAQ,WA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oB,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,wBAAwB,EAAE,IAAI,CAAC;IAE/B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAEzD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACzF;AAED,OAAO,EAAE,KAAK,yBAAyB,EAAE,CAAC"}
|
|
@@ -55,10 +55,16 @@ class Dir extends resource_1.APIResource {
|
|
|
55
55
|
*
|
|
56
56
|
* **Failure modes**
|
|
57
57
|
*
|
|
58
|
-
* - `
|
|
59
|
-
* - `
|
|
58
|
+
* - `400` - validation error; `errors[].source.pointer` names the offending field.
|
|
59
|
+
* - `400` - a certification field is not `true`.
|
|
60
|
+
* - `400` - Branded Calling not activated on this enterprise (see
|
|
60
61
|
* `POST /enterprises/{id}/branded_calling`).
|
|
62
|
+
* - `400` - the enterprise is a BPO enterprise (`role_type` `bpo`), which cannot
|
|
63
|
+
* own a DIR.
|
|
64
|
+
* - `400` - a `bpo_authorizations` entry is not an approved BPO enterprise in your
|
|
65
|
+
* account, or its `loa_document_id` could not be validated.
|
|
61
66
|
* - `404` - enterprise does not exist or does not belong to your account.
|
|
67
|
+
* - `503` - the document check is temporarily unavailable; retry.
|
|
62
68
|
*
|
|
63
69
|
* @example
|
|
64
70
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dir.js","sourceRoot":"","sources":["../../src/resources/enterprises/dir.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAA6G;AAE7G,uDAAiD;AAEjD;;GAEG;AACH,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,YAAoB,EACpB,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,gBAAgB,YAAY,MAAM,EACtC,CAAA,kCAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"dir.js","sourceRoot":"","sources":["../../src/resources/enterprises/dir.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAA6G;AAE7G,uDAAiD;AAEjD;;GAEG;AACH,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,YAAoB,EACpB,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,gBAAgB,YAAY,MAAM,EACtC,CAAA,kCAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,YAAY,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AA7FD,kBA6FC"}
|
|
@@ -52,10 +52,16 @@ export class Dir extends APIResource {
|
|
|
52
52
|
*
|
|
53
53
|
* **Failure modes**
|
|
54
54
|
*
|
|
55
|
-
* - `
|
|
56
|
-
* - `
|
|
55
|
+
* - `400` - validation error; `errors[].source.pointer` names the offending field.
|
|
56
|
+
* - `400` - a certification field is not `true`.
|
|
57
|
+
* - `400` - Branded Calling not activated on this enterprise (see
|
|
57
58
|
* `POST /enterprises/{id}/branded_calling`).
|
|
59
|
+
* - `400` - the enterprise is a BPO enterprise (`role_type` `bpo`), which cannot
|
|
60
|
+
* own a DIR.
|
|
61
|
+
* - `400` - a `bpo_authorizations` entry is not an approved BPO enterprise in your
|
|
62
|
+
* account, or its `loa_document_id` could not be validated.
|
|
58
63
|
* - `404` - enterprise does not exist or does not belong to your account.
|
|
64
|
+
* - `503` - the document check is temporarily unavailable; retry.
|
|
59
65
|
*
|
|
60
66
|
* @example
|
|
61
67
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dir.mjs","sourceRoot":"","sources":["../../src/resources/enterprises/dir.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,YAAoB,EACpB,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,gBAAgB,YAAY,MAAM,EACtC,CAAA,qBAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"dir.mjs","sourceRoot":"","sources":["../../src/resources/enterprises/dir.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,YAAoB,EACpB,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,gBAAgB,YAAY,MAAM,EACtC,CAAA,qBAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,YAAY,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as DirAPI from "./dir.mjs";
|
|
3
3
|
import { Dir, DirCreateParams, DirListParams } from "./dir.mjs";
|
|
4
|
+
import * as VerifyEmailAPI from "./verify-email.mjs";
|
|
5
|
+
import { EnterpriseEmailVerificationStatusWrapped, VerifyEmail, VerifyEmailConfirmParams } from "./verify-email.mjs";
|
|
4
6
|
import * as ReputationAPI from "./reputation/reputation.mjs";
|
|
5
|
-
import { EnterpriseReputationPublic, EnterpriseReputationPublicWrapped, Reputation, ReputationCheckFrequency, ReputationEnableParams, ReputationUpdateFrequencyParams } from "./reputation/reputation.mjs";
|
|
7
|
+
import { EnterpriseReputationPublic, EnterpriseReputationPublicWrapped, Reputation, ReputationCheckFrequency, ReputationEnableParams, ReputationUpdateFrequencyParams, ReputationUpdateWebhookParams } from "./reputation/reputation.mjs";
|
|
6
8
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
9
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
8
10
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
@@ -12,6 +14,7 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
12
14
|
export declare class Enterprises extends APIResource {
|
|
13
15
|
reputation: ReputationAPI.Reputation;
|
|
14
16
|
dir: DirAPI.Dir;
|
|
17
|
+
verifyEmail: VerifyEmailAPI.VerifyEmail;
|
|
15
18
|
/**
|
|
16
19
|
* Return the enterprises you own, paginated. The default page size is 20; the
|
|
17
20
|
* maximum is 250.
|
|
@@ -125,6 +128,21 @@ export declare class Enterprises extends APIResource {
|
|
|
125
128
|
* cannot be changed: including any of them in the body is rejected with
|
|
126
129
|
* `400 Bad Request` (`Field 'X' is not allowed in this request`).
|
|
127
130
|
*
|
|
131
|
+
* For an approved BPO enterprise (`role_type` `bpo`), changing any identity field
|
|
132
|
+
* (legal name, DBA, website, FEIN, industry, number of employees, physical
|
|
133
|
+
* address, organization contact, D-U-N-S number, legal type, SIC code, corporate
|
|
134
|
+
* registration number, professional license number, or jurisdiction of
|
|
135
|
+
* incorporation) resets `bpo_verification_status` to `pending` for re-approval and
|
|
136
|
+
* sets every DIR authorization for that BPO to `rejected`. After re-approval, link
|
|
137
|
+
* it again with a newly signed LOA (a new `loa_document_id`); resending the old
|
|
138
|
+
* one keeps the authorization `rejected`. Re-sending an unchanged value does not
|
|
139
|
+
* reset anything.
|
|
140
|
+
*
|
|
141
|
+
* If Number Reputation is enabled on the enterprise, `legal_name`,
|
|
142
|
+
* `doing_business_as`, `website`, `fein`, `industry`, `number_of_employees`,
|
|
143
|
+
* `organization_physical_address`, `organization_contact`, and
|
|
144
|
+
* `dun_bradstreet_number` cannot be changed: the request is rejected with `400`.
|
|
145
|
+
*
|
|
128
146
|
* @example
|
|
129
147
|
* ```ts
|
|
130
148
|
* const enterprisePublicWrapped = await client.enterprises.update(
|
|
@@ -172,14 +190,15 @@ export declare class Enterprises extends APIResource {
|
|
|
172
190
|
*/
|
|
173
191
|
update(enterpriseID: string, body: EnterpriseUpdateParams, options?: RequestOptions): APIPromise<EnterprisePublicWrapped>;
|
|
174
192
|
/**
|
|
175
|
-
* Branded Calling
|
|
176
|
-
* Activation is idempotent:
|
|
193
|
+
* Branded Calling must be activated on each enterprise. Activation is idempotent:
|
|
177
194
|
*
|
|
178
|
-
* - First call: marks the enterprise as activated
|
|
179
|
-
*
|
|
195
|
+
* - First call: marks the enterprise as activated, effective immediately; you can
|
|
196
|
+
* create a DIR right away. The enterprise is registered with the Branded Calling
|
|
197
|
+
* platform later, after its first DIR is approved. Returns `200` with
|
|
180
198
|
* `branded_calling_enabled: true`.
|
|
181
199
|
* - Re-call after success: no-op, returns the same enterprise body.
|
|
182
|
-
* - Re-call after a
|
|
200
|
+
* - Re-call after a failed registration: re-queues the registration, returns
|
|
201
|
+
* `200`.
|
|
183
202
|
*
|
|
184
203
|
* Prerequisite: the calling user must have agreed to the Branded Calling Terms of
|
|
185
204
|
* Service (`POST /terms_of_service/branded_calling/agree`). Without that, this
|
|
@@ -187,11 +206,15 @@ export declare class Enterprises extends APIResource {
|
|
|
187
206
|
*
|
|
188
207
|
* Failure modes:
|
|
189
208
|
*
|
|
209
|
+
* - `400` - the account has no available credit. Add funds and retry.
|
|
210
|
+
* - `400` - the enterprise is not in the United States. Branded Calling is
|
|
211
|
+
* currently available only to US enterprises.
|
|
190
212
|
* - `403` - Branded Calling Terms of Service not accepted.
|
|
191
213
|
* - `404` - enterprise does not exist or does not belong to your account.
|
|
192
214
|
*
|
|
193
|
-
* **Pricing:**
|
|
194
|
-
*
|
|
215
|
+
* **Pricing:** Activation itself is free, but the account must have available
|
|
216
|
+
* credit. Branded Calling fees are charged per DIR and per branded call. See
|
|
217
|
+
* https://telnyx.com/pricing/branded-calling for current pricing.
|
|
195
218
|
*
|
|
196
219
|
* @example
|
|
197
220
|
* ```ts
|
|
@@ -205,11 +228,24 @@ export declare class Enterprises extends APIResource {
|
|
|
205
228
|
}
|
|
206
229
|
export type EnterprisePublicsDefaultFlatPagination = DefaultFlatPagination<EnterprisePublic>;
|
|
207
230
|
export interface BillingContact {
|
|
231
|
+
/**
|
|
232
|
+
* The email address of the person Telnyx should contact about billing for this
|
|
233
|
+
* account.
|
|
234
|
+
*/
|
|
208
235
|
email: string;
|
|
236
|
+
/**
|
|
237
|
+
* The first name of the person Telnyx should contact about billing for this
|
|
238
|
+
* account.
|
|
239
|
+
*/
|
|
209
240
|
first_name: string;
|
|
241
|
+
/**
|
|
242
|
+
* The last name of the person Telnyx should contact about billing for this
|
|
243
|
+
* account.
|
|
244
|
+
*/
|
|
210
245
|
last_name: string;
|
|
211
246
|
/**
|
|
212
|
-
* E.164 format
|
|
247
|
+
* The phone number of the billing contact, in E.164 format, for example
|
|
248
|
+
* +12125551234.
|
|
213
249
|
*/
|
|
214
250
|
phone_number: string;
|
|
215
251
|
}
|
|
@@ -217,27 +253,70 @@ export interface EnterprisePublic {
|
|
|
217
253
|
id?: string;
|
|
218
254
|
billing_address?: PhysicalAddress;
|
|
219
255
|
billing_contact?: BillingContact;
|
|
256
|
+
/**
|
|
257
|
+
* Reason Telnyx rejected the BPO (Business Process Outsourcer) verification, when
|
|
258
|
+
* `bpo_verification_status` is `rejected`; `null` otherwise.
|
|
259
|
+
*/
|
|
260
|
+
bpo_verification_rejection_reason?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* Whether Telnyx has approved this BPO (Business Process Outsourcer) account. Only
|
|
263
|
+
* set for accounts created with `role_type` `bpo`; `null` for normal enterprises.
|
|
264
|
+
* A BPO enterprise must be `approved` before a DIR can be linked to it through
|
|
265
|
+
* `bpo_authorizations`.
|
|
266
|
+
*/
|
|
267
|
+
bpo_verification_status?: 'pending' | 'approved' | 'rejected' | null;
|
|
220
268
|
/**
|
|
221
269
|
* True once Branded Calling has been activated on this enterprise (see
|
|
222
270
|
* `POST /enterprises/{id}/branded_calling`).
|
|
223
271
|
*/
|
|
224
272
|
branded_calling_enabled?: boolean;
|
|
225
273
|
/**
|
|
226
|
-
*
|
|
274
|
+
* The official number your company received when it was legally registered or
|
|
275
|
+
* incorporated (for example from your state or national business registry). It is
|
|
276
|
+
* on your certificate of incorporation.
|
|
227
277
|
*/
|
|
228
278
|
corporate_registration_number?: string | null;
|
|
229
279
|
country_code?: string;
|
|
230
280
|
created_at?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
283
|
+
* your records. Telnyx does not use it during vetting.
|
|
284
|
+
*/
|
|
231
285
|
customer_reference?: string;
|
|
286
|
+
/**
|
|
287
|
+
* The trade name your business operates under if it is different from your legal
|
|
288
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
289
|
+
* your legal name.
|
|
290
|
+
*/
|
|
232
291
|
doing_business_as?: string;
|
|
233
292
|
/**
|
|
234
|
-
*
|
|
293
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
294
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
235
295
|
*/
|
|
236
296
|
dun_bradstreet_number?: string | null;
|
|
297
|
+
/**
|
|
298
|
+
* US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
|
|
299
|
+
*/
|
|
237
300
|
fein?: string;
|
|
301
|
+
/**
|
|
302
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
303
|
+
* if your value is not accepted, pick the nearest category.
|
|
304
|
+
*/
|
|
238
305
|
industry?: string;
|
|
306
|
+
/**
|
|
307
|
+
* The state, province, or country where your business was legally incorporated,
|
|
308
|
+
* for example Delaware.
|
|
309
|
+
*/
|
|
239
310
|
jurisdiction_of_incorporation?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
313
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
314
|
+
*/
|
|
240
315
|
legal_name?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Approximate headcount range. Used for vetting heuristics; pick the bucket that
|
|
318
|
+
* contains your current employee count.
|
|
319
|
+
*/
|
|
241
320
|
number_of_employees?: string;
|
|
242
321
|
/**
|
|
243
322
|
* True once Phone Number Reputation has been enabled on this enterprise (see
|
|
@@ -245,19 +324,38 @@ export interface EnterprisePublic {
|
|
|
245
324
|
*/
|
|
246
325
|
number_reputation_enabled?: boolean;
|
|
247
326
|
organization_contact?: OrganizationContact;
|
|
327
|
+
/**
|
|
328
|
+
* Legal-entity form. Pick the form that matches your incorporation documents:
|
|
329
|
+
*
|
|
330
|
+
* - `corporation` - C-corp or S-corp.
|
|
331
|
+
* - `llc` - limited liability company.
|
|
332
|
+
* - `partnership` - general/limited partnership.
|
|
333
|
+
* - `nonprofit` - non-profit corporation, charitable trust, or
|
|
334
|
+
* 501(c)(3)/equivalent.
|
|
335
|
+
* - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
|
|
336
|
+
* You may be asked for additional documents during vetting.
|
|
337
|
+
*/
|
|
248
338
|
organization_legal_type?: string;
|
|
249
339
|
organization_physical_address?: PhysicalAddress;
|
|
250
340
|
organization_type?: string;
|
|
251
341
|
/**
|
|
252
|
-
*
|
|
342
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
343
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
344
|
+
* code directory if you are unsure.
|
|
253
345
|
*/
|
|
254
346
|
primary_business_domain_sic_code?: string | null;
|
|
255
347
|
/**
|
|
256
|
-
*
|
|
348
|
+
* If your business operates under a professional license (for example legal,
|
|
349
|
+
* medical, or financial services), enter the license number issued by the
|
|
350
|
+
* licensing authority. Leave blank if it does not apply.
|
|
257
351
|
*/
|
|
258
352
|
professional_license_number?: string | null;
|
|
259
|
-
role_type?:
|
|
353
|
+
role_type?: 'enterprise' | 'bpo';
|
|
260
354
|
updated_at?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
357
|
+
* business has no website.
|
|
358
|
+
*/
|
|
261
359
|
website?: string;
|
|
262
360
|
}
|
|
263
361
|
export interface EnterprisePublicWrapped {
|
|
@@ -289,12 +387,26 @@ export interface NumberReputationPaginationMeta {
|
|
|
289
387
|
total_results: number;
|
|
290
388
|
}
|
|
291
389
|
export interface OrganizationContact {
|
|
390
|
+
/**
|
|
391
|
+
* The email address of the main person Telnyx should contact about this account.
|
|
392
|
+
* For a call center (BPO) account this is the email you will verify later, so use
|
|
393
|
+
* a mailbox you can access.
|
|
394
|
+
*/
|
|
292
395
|
email: string;
|
|
396
|
+
/**
|
|
397
|
+
* The first name of the main person Telnyx should contact about this account.
|
|
398
|
+
*/
|
|
293
399
|
first_name: string;
|
|
400
|
+
/**
|
|
401
|
+
* The job title of the main person Telnyx should contact about this account.
|
|
402
|
+
*/
|
|
294
403
|
job_title: string;
|
|
404
|
+
/**
|
|
405
|
+
* The last name of the main person Telnyx should contact about this account.
|
|
406
|
+
*/
|
|
295
407
|
last_name: string;
|
|
296
408
|
/**
|
|
297
|
-
* E.164 format
|
|
409
|
+
* The phone number of the main contact, in E.164 format, for example +12125551234.
|
|
298
410
|
*/
|
|
299
411
|
phone_number: string;
|
|
300
412
|
}
|
|
@@ -303,13 +415,27 @@ export interface PhysicalAddress {
|
|
|
303
415
|
* State or province code (e.g. `IL`, `ON`).
|
|
304
416
|
*/
|
|
305
417
|
administrative_area: string;
|
|
418
|
+
/**
|
|
419
|
+
* The city of your registered business address.
|
|
420
|
+
*/
|
|
306
421
|
city: string;
|
|
307
422
|
/**
|
|
308
423
|
* ISO 3166-1 alpha-2 code (currently `US` or `CA`).
|
|
309
424
|
*/
|
|
310
425
|
country: string;
|
|
426
|
+
/**
|
|
427
|
+
* The postal or ZIP code of your registered business address.
|
|
428
|
+
*/
|
|
311
429
|
postal_code: string;
|
|
430
|
+
/**
|
|
431
|
+
* The street address of your registered business, including the building number
|
|
432
|
+
* and street name.
|
|
433
|
+
*/
|
|
312
434
|
street_address: string;
|
|
435
|
+
/**
|
|
436
|
+
* An optional second address line, such as a suite, unit, or floor. Leave blank if
|
|
437
|
+
* it does not apply.
|
|
438
|
+
*/
|
|
313
439
|
extended_address?: string | null;
|
|
314
440
|
}
|
|
315
441
|
export interface EnterpriseListParams extends DefaultFlatPaginationParams {
|
|
@@ -317,6 +443,11 @@ export interface EnterpriseListParams extends DefaultFlatPaginationParams {
|
|
|
317
443
|
* Case-insensitive partial match on legal name.
|
|
318
444
|
*/
|
|
319
445
|
'filter[legal_name][contains]'?: string;
|
|
446
|
+
/**
|
|
447
|
+
* Only return enterprises of this type: `bpo` for call-center (BPO) enterprises,
|
|
448
|
+
* `enterprise` for normal enterprises. Omit to return both.
|
|
449
|
+
*/
|
|
450
|
+
'filter[role_type]'?: 'enterprise' | 'bpo';
|
|
320
451
|
/**
|
|
321
452
|
* Filter by legal name (partial match).
|
|
322
453
|
*/
|
|
@@ -329,18 +460,29 @@ export interface EnterpriseCreateParams {
|
|
|
329
460
|
* ISO 3166-1 alpha-2 country code. Currently `US` and `CA` are supported.
|
|
330
461
|
*/
|
|
331
462
|
country_code: string;
|
|
463
|
+
/**
|
|
464
|
+
* The trade name your business operates under if it is different from your legal
|
|
465
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
466
|
+
* your legal name.
|
|
467
|
+
*/
|
|
332
468
|
doing_business_as: string;
|
|
333
469
|
/**
|
|
334
470
|
* US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
|
|
335
471
|
*/
|
|
336
472
|
fein: string;
|
|
337
473
|
/**
|
|
338
|
-
*
|
|
474
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
475
|
+
* if your value is not accepted, pick the nearest category.
|
|
339
476
|
*/
|
|
340
477
|
industry: 'accounting' | 'finance' | 'billing' | 'collections' | 'business' | 'charity' | 'nonprofit' | 'communications' | 'telecom' | 'customer service' | 'support' | 'delivery' | 'shipping' | 'logistics' | 'education' | 'financial' | 'banking' | 'government' | 'public' | 'healthcare' | 'health' | 'pharmacy' | 'medical' | 'insurance' | 'legal' | 'law' | 'notifications' | 'scheduling' | 'real estate' | 'property' | 'retail' | 'ecommerce' | 'sales' | 'marketing' | 'software' | 'technology' | 'tech' | 'media' | 'surveys' | 'market research' | 'travel' | 'hospitality' | 'hotel';
|
|
478
|
+
/**
|
|
479
|
+
* The state, province, or country where your business was legally incorporated,
|
|
480
|
+
* for example Delaware.
|
|
481
|
+
*/
|
|
341
482
|
jurisdiction_of_incorporation: string;
|
|
342
483
|
/**
|
|
343
|
-
*
|
|
484
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
485
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
344
486
|
*/
|
|
345
487
|
legal_name: string;
|
|
346
488
|
/**
|
|
@@ -372,62 +514,136 @@ export interface EnterpriseCreateParams {
|
|
|
372
514
|
* institutions, charities, religious organisations).
|
|
373
515
|
*/
|
|
374
516
|
organization_type: 'commercial' | 'government' | 'non_profit';
|
|
517
|
+
/**
|
|
518
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
519
|
+
* business has no website.
|
|
520
|
+
*/
|
|
375
521
|
website: string;
|
|
376
522
|
/**
|
|
377
|
-
*
|
|
523
|
+
* The official number your company received when it was legally registered or
|
|
524
|
+
* incorporated (for example from your state or national business registry). It is
|
|
525
|
+
* on your certificate of incorporation.
|
|
378
526
|
*/
|
|
379
527
|
corporate_registration_number?: string | null;
|
|
380
528
|
/**
|
|
381
|
-
*
|
|
382
|
-
* Telnyx does not
|
|
529
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
530
|
+
* your records. Telnyx does not use it during vetting.
|
|
383
531
|
*/
|
|
384
532
|
customer_reference?: string;
|
|
385
533
|
/**
|
|
386
|
-
*
|
|
534
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
535
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
387
536
|
*/
|
|
388
537
|
dun_bradstreet_number?: string | null;
|
|
389
538
|
/**
|
|
390
|
-
*
|
|
539
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
540
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
541
|
+
* code directory if you are unsure.
|
|
391
542
|
*/
|
|
392
543
|
primary_business_domain_sic_code?: string | null;
|
|
393
544
|
/**
|
|
394
|
-
*
|
|
545
|
+
* If your business operates under a professional license (for example legal,
|
|
546
|
+
* medical, or financial services), enter the license number issued by the
|
|
547
|
+
* licensing authority. Leave blank if it does not apply.
|
|
395
548
|
*/
|
|
396
549
|
professional_license_number?: string | null;
|
|
397
550
|
/**
|
|
398
|
-
* `enterprise` for an organization registering its own DIRs
|
|
399
|
-
*
|
|
551
|
+
* `enterprise` for an organization registering its own DIRs (the default, and the
|
|
552
|
+
* right choice when the calls display your own brand). `bpo` for a Business
|
|
553
|
+
* Process Outsourcer: a call center that places calls on behalf of other
|
|
554
|
+
* enterprises and displays their brand. A `bpo` enterprise describes the call
|
|
555
|
+
* center itself and cannot own a DIR. Each client the call center calls for gets
|
|
556
|
+
* its own `enterprise` in the same account, with the client's DIR under it; that
|
|
557
|
+
* DIR is then linked to the `bpo` enterprise through `bpo_authorizations`. Fixed
|
|
558
|
+
* at creation.
|
|
400
559
|
*/
|
|
401
560
|
role_type?: 'enterprise' | 'bpo';
|
|
402
561
|
}
|
|
403
562
|
export interface EnterpriseUpdateParams {
|
|
404
563
|
billing_address?: PhysicalAddress;
|
|
405
564
|
billing_contact?: BillingContact;
|
|
565
|
+
/**
|
|
566
|
+
* The official number your company received when it was legally registered or
|
|
567
|
+
* incorporated (for example from your state or national business registry). It is
|
|
568
|
+
* on your certificate of incorporation.
|
|
569
|
+
*/
|
|
406
570
|
corporate_registration_number?: string | null;
|
|
571
|
+
/**
|
|
572
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
573
|
+
* your records. Telnyx does not use it during vetting.
|
|
574
|
+
*/
|
|
407
575
|
customer_reference?: string;
|
|
576
|
+
/**
|
|
577
|
+
* The trade name your business operates under if it is different from your legal
|
|
578
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
579
|
+
* your legal name.
|
|
580
|
+
*/
|
|
408
581
|
doing_business_as?: string;
|
|
582
|
+
/**
|
|
583
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
584
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
585
|
+
*/
|
|
409
586
|
dun_bradstreet_number?: string | null;
|
|
587
|
+
/**
|
|
588
|
+
* US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
|
|
589
|
+
*/
|
|
410
590
|
fein?: string;
|
|
591
|
+
/**
|
|
592
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
593
|
+
* if your value is not accepted, pick the nearest category.
|
|
594
|
+
*/
|
|
411
595
|
industry?: 'accounting' | 'finance' | 'billing' | 'collections' | 'business' | 'charity' | 'nonprofit' | 'communications' | 'telecom' | 'customer service' | 'support' | 'delivery' | 'shipping' | 'logistics' | 'education' | 'financial' | 'banking' | 'government' | 'public' | 'healthcare' | 'health' | 'pharmacy' | 'medical' | 'insurance' | 'legal' | 'law' | 'notifications' | 'scheduling' | 'real estate' | 'property' | 'retail' | 'ecommerce' | 'sales' | 'marketing' | 'software' | 'technology' | 'tech' | 'media' | 'surveys' | 'market research' | 'travel' | 'hospitality' | 'hotel';
|
|
412
596
|
/**
|
|
413
|
-
*
|
|
597
|
+
* The state, province, or country where your business was legally incorporated,
|
|
598
|
+
* for example Delaware.
|
|
414
599
|
*/
|
|
415
600
|
jurisdiction_of_incorporation?: string;
|
|
416
601
|
/**
|
|
417
|
-
*
|
|
602
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
603
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
418
604
|
*/
|
|
419
605
|
legal_name?: string;
|
|
606
|
+
/**
|
|
607
|
+
* Approximate headcount range. Used for vetting heuristics; pick the bucket that
|
|
608
|
+
* contains your current employee count.
|
|
609
|
+
*/
|
|
420
610
|
number_of_employees?: string;
|
|
421
611
|
organization_contact?: OrganizationContact;
|
|
612
|
+
/**
|
|
613
|
+
* Legal-entity form. Pick the form that matches your incorporation documents:
|
|
614
|
+
*
|
|
615
|
+
* - `corporation` - C-corp or S-corp.
|
|
616
|
+
* - `llc` - limited liability company.
|
|
617
|
+
* - `partnership` - general/limited partnership.
|
|
618
|
+
* - `nonprofit` - non-profit corporation, charitable trust, or
|
|
619
|
+
* 501(c)(3)/equivalent.
|
|
620
|
+
* - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
|
|
621
|
+
* You may be asked for additional documents during vetting.
|
|
622
|
+
*/
|
|
422
623
|
organization_legal_type?: string;
|
|
423
624
|
organization_physical_address?: PhysicalAddress;
|
|
625
|
+
/**
|
|
626
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
627
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
628
|
+
* code directory if you are unsure.
|
|
629
|
+
*/
|
|
424
630
|
primary_business_domain_sic_code?: string | null;
|
|
631
|
+
/**
|
|
632
|
+
* If your business operates under a professional license (for example legal,
|
|
633
|
+
* medical, or financial services), enter the license number issued by the
|
|
634
|
+
* licensing authority. Leave blank if it does not apply.
|
|
635
|
+
*/
|
|
425
636
|
professional_license_number?: string | null;
|
|
637
|
+
/**
|
|
638
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
639
|
+
* business has no website.
|
|
640
|
+
*/
|
|
426
641
|
website?: string;
|
|
427
642
|
}
|
|
428
643
|
export declare namespace Enterprises {
|
|
429
644
|
export { type BillingContact as BillingContact, type EnterprisePublic as EnterprisePublic, type EnterprisePublicWrapped as EnterprisePublicWrapped, type NumberReputationPaginationMeta as NumberReputationPaginationMeta, type OrganizationContact as OrganizationContact, type PhysicalAddress as PhysicalAddress, type EnterprisePublicsDefaultFlatPagination as EnterprisePublicsDefaultFlatPagination, type EnterpriseListParams as EnterpriseListParams, type EnterpriseCreateParams as EnterpriseCreateParams, type EnterpriseUpdateParams as EnterpriseUpdateParams, };
|
|
430
|
-
export { Reputation as Reputation, type EnterpriseReputationPublic as EnterpriseReputationPublic, type EnterpriseReputationPublicWrapped as EnterpriseReputationPublicWrapped, type ReputationCheckFrequency as ReputationCheckFrequency, type ReputationEnableParams as ReputationEnableParams, type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams, };
|
|
645
|
+
export { Reputation as Reputation, type EnterpriseReputationPublic as EnterpriseReputationPublic, type EnterpriseReputationPublicWrapped as EnterpriseReputationPublicWrapped, type ReputationCheckFrequency as ReputationCheckFrequency, type ReputationEnableParams as ReputationEnableParams, type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams, type ReputationUpdateWebhookParams as ReputationUpdateWebhookParams, };
|
|
431
646
|
export { Dir as Dir, type DirListParams as DirListParams, type DirCreateParams as DirCreateParams };
|
|
647
|
+
export { VerifyEmail as VerifyEmail, type EnterpriseEmailVerificationStatusWrapped as EnterpriseEmailVerificationStatusWrapped, type VerifyEmailConfirmParams as VerifyEmailConfirmParams, };
|
|
432
648
|
}
|
|
433
649
|
//# sourceMappingURL=enterprises.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enterprises.d.mts","sourceRoot":"","sources":["../../src/resources/enterprises/enterprises.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,kBAAc;AAChC,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAc;AAC5D,OAAO,KAAK,aAAa,oCAAgC;AACzD,OAAO,EACL,0BAA0B,EAC1B,iCAAiC,EACjC,UAAU,EACV,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,
|
|
1
|
+
{"version":3,"file":"enterprises.d.mts","sourceRoot":"","sources":["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