telnyx 7.24.0 → 7.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +19 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -4
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +7 -6
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +7 -6
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +320 -28
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +320 -28
- 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 +36 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +36 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/chat.d.mts +7 -2
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +7 -2
- package/resources/ai/chat.d.ts.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 +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- 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 +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +60 -4
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +60 -4
- 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/openai/chat.d.mts +7 -2
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +7 -2
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +3 -4
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +3 -4
- 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 +76 -17
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +76 -17
- 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 +48 -11
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +48 -11
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +3 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +3 -0
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/dir/dir.d.mts +220 -28
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +220 -28
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +77 -13
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +77 -13
- 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 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +8 -4
- 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/enterprises/dir.d.mts +17 -1
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +17 -1
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/enterprises.d.mts +237 -23
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +237 -23
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +26 -4
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +26 -4
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -0
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -0
- 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/loa.d.mts +61 -1
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +61 -1
- package/resources/enterprises/reputation/loa.d.ts.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/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -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 +3 -0
- package/resources/llm-token-gateway/index.d.mts.map +1 -0
- package/resources/llm-token-gateway/index.d.ts +3 -0
- package/resources/llm-token-gateway/index.d.ts.map +1 -0
- package/resources/llm-token-gateway/index.js +9 -0
- package/resources/llm-token-gateway/index.js.map +1 -0
- package/resources/llm-token-gateway/index.mjs +4 -0
- package/resources/llm-token-gateway/index.mjs.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +10 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +10 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.js +17 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +260 -0
- package/resources/llm-token-gateway/usage.d.mts.map +1 -0
- package/resources/llm-token-gateway/usage.d.ts +260 -0
- package/resources/llm-token-gateway/usage.d.ts.map +1 -0
- package/resources/llm-token-gateway/usage.js +31 -0
- package/resources/llm-token-gateway/usage.js.map +1 -0
- package/resources/llm-token-gateway/usage.mjs +27 -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/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/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/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/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 +403 -5
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +403 -5
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +89 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +89 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js +65 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +61 -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/src/client.ts +55 -0
- package/src/resources/ai/ai.ts +13 -4
- package/src/resources/ai/assistants/assistants.ts +384 -28
- package/src/resources/ai/assistants/deleted.ts +86 -0
- package/src/resources/ai/assistants/index.ts +11 -0
- package/src/resources/ai/assistants/versions.ts +40 -0
- package/src/resources/ai/chat.ts +7 -2
- package/src/resources/ai/embeddings/embeddings.ts +1 -1
- package/src/resources/ai/index.ts +5 -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 +9 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +81 -3
- package/src/resources/ai/openai/chat.ts +7 -2
- package/src/resources/ai/tools.ts +6 -6
- package/src/resources/calls/actions.ts +76 -15
- package/src/resources/calls/calls.ts +49 -9
- package/src/resources/dir/dir.ts +263 -32
- package/src/resources/dir/index.ts +6 -0
- package/src/resources/dir/phone-numbers.ts +8 -4
- package/src/resources/dir/references.ts +9 -6
- package/src/resources/enterprises/dir.ts +19 -1
- package/src/resources/enterprises/enterprises.ts +250 -23
- package/src/resources/enterprises/index.ts +5 -0
- package/src/resources/enterprises/reputation/loa.ts +73 -1
- package/src/resources/enterprises/verify-email.ts +117 -0
- package/src/resources/index.ts +20 -0
- package/src/resources/infringement-claims.ts +4 -0
- package/src/resources/llm-token-gateway/index.ts +4 -0
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +19 -0
- package/src/resources/llm-token-gateway/usage.ts +336 -0
- package/src/resources/llm-token-gateway.ts +3 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
- 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/requirements.ts +2 -2
- 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/text-to-speech/text-to-speech.ts +4 -2
- package/src/resources/webhooks.ts +495 -2
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +113 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.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,
|
|
@@ -24,6 +30,7 @@ import { path } from '../../internal/utils/path';
|
|
|
24
30
|
export class Enterprises extends APIResource {
|
|
25
31
|
reputation: ReputationAPI.Reputation = new ReputationAPI.Reputation(this._client);
|
|
26
32
|
dir: DirAPI.Dir = new DirAPI.Dir(this._client);
|
|
33
|
+
verifyEmail: VerifyEmailAPI.VerifyEmail = new VerifyEmailAPI.VerifyEmail(this._client);
|
|
27
34
|
|
|
28
35
|
/**
|
|
29
36
|
* Return the enterprises you own, paginated. The default page size is 20; the
|
|
@@ -159,6 +166,21 @@ export class Enterprises extends APIResource {
|
|
|
159
166
|
* cannot be changed: including any of them in the body is rejected with
|
|
160
167
|
* `400 Bad Request` (`Field 'X' is not allowed in this request`).
|
|
161
168
|
*
|
|
169
|
+
* For an approved BPO enterprise (`role_type` `bpo`), changing any identity field
|
|
170
|
+
* (legal name, DBA, website, FEIN, industry, number of employees, physical
|
|
171
|
+
* address, organization contact, D-U-N-S number, legal type, SIC code, corporate
|
|
172
|
+
* registration number, professional license number, or jurisdiction of
|
|
173
|
+
* incorporation) resets `bpo_verification_status` to `pending` for re-approval and
|
|
174
|
+
* sets every DIR authorization for that BPO to `rejected`. After re-approval, link
|
|
175
|
+
* it again with a newly signed LOA (a new `loa_document_id`); resending the old
|
|
176
|
+
* one keeps the authorization `rejected`. Re-sending an unchanged value does not
|
|
177
|
+
* reset anything.
|
|
178
|
+
*
|
|
179
|
+
* If Number Reputation is enabled on the enterprise, `legal_name`,
|
|
180
|
+
* `doing_business_as`, `website`, `fein`, `industry`, `number_of_employees`,
|
|
181
|
+
* `organization_physical_address`, `organization_contact`, and
|
|
182
|
+
* `dun_bradstreet_number` cannot be changed: the request is rejected with `400`.
|
|
183
|
+
*
|
|
162
184
|
* @example
|
|
163
185
|
* ```ts
|
|
164
186
|
* const enterprisePublicWrapped = await client.enterprises.update(
|
|
@@ -213,8 +235,7 @@ export class Enterprises extends APIResource {
|
|
|
213
235
|
}
|
|
214
236
|
|
|
215
237
|
/**
|
|
216
|
-
* Branded Calling
|
|
217
|
-
* Activation is idempotent:
|
|
238
|
+
* Branded Calling must be activated on each enterprise. Activation is idempotent:
|
|
218
239
|
*
|
|
219
240
|
* - First call: marks the enterprise as activated and begins onboarding it with
|
|
220
241
|
* the Branded Calling platform asynchronously. Returns `200` with
|
|
@@ -228,11 +249,15 @@ export class Enterprises extends APIResource {
|
|
|
228
249
|
*
|
|
229
250
|
* Failure modes:
|
|
230
251
|
*
|
|
252
|
+
* - `400` - the account has no available credit. Add funds and retry.
|
|
253
|
+
* - `400` - the enterprise is not in the United States. Branded Calling is
|
|
254
|
+
* currently available only to US enterprises.
|
|
231
255
|
* - `403` - Branded Calling Terms of Service not accepted.
|
|
232
256
|
* - `404` - enterprise does not exist or does not belong to your account.
|
|
233
257
|
*
|
|
234
|
-
* **Pricing:**
|
|
235
|
-
*
|
|
258
|
+
* **Pricing:** Activation itself is free, but the account must have available
|
|
259
|
+
* credit. Branded Calling fees are charged per DIR and per branded call. See
|
|
260
|
+
* https://telnyx.com/pricing/branded-calling for current pricing.
|
|
236
261
|
*
|
|
237
262
|
* @example
|
|
238
263
|
* ```ts
|
|
@@ -250,14 +275,27 @@ export class Enterprises extends APIResource {
|
|
|
250
275
|
export type EnterprisePublicsDefaultFlatPagination = DefaultFlatPagination<EnterprisePublic>;
|
|
251
276
|
|
|
252
277
|
export interface BillingContact {
|
|
278
|
+
/**
|
|
279
|
+
* The email address of the person Telnyx should contact about billing for this
|
|
280
|
+
* account.
|
|
281
|
+
*/
|
|
253
282
|
email: string;
|
|
254
283
|
|
|
284
|
+
/**
|
|
285
|
+
* The first name of the person Telnyx should contact about billing for this
|
|
286
|
+
* account.
|
|
287
|
+
*/
|
|
255
288
|
first_name: string;
|
|
256
289
|
|
|
290
|
+
/**
|
|
291
|
+
* The last name of the person Telnyx should contact about billing for this
|
|
292
|
+
* account.
|
|
293
|
+
*/
|
|
257
294
|
last_name: string;
|
|
258
295
|
|
|
259
296
|
/**
|
|
260
|
-
* E.164 format
|
|
297
|
+
* The phone number of the billing contact, in E.164 format, for example
|
|
298
|
+
* +12125551234.
|
|
261
299
|
*/
|
|
262
300
|
phone_number: string;
|
|
263
301
|
}
|
|
@@ -269,6 +307,20 @@ export interface EnterprisePublic {
|
|
|
269
307
|
|
|
270
308
|
billing_contact?: BillingContact;
|
|
271
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Reason Telnyx rejected the BPO (Business Process Outsourcer) verification, when
|
|
312
|
+
* `bpo_verification_status` is `rejected`; `null` otherwise.
|
|
313
|
+
*/
|
|
314
|
+
bpo_verification_rejection_reason?: string | null;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Whether Telnyx has approved this BPO (Business Process Outsourcer) account. Only
|
|
318
|
+
* set for accounts created with `role_type` `bpo`; `null` for normal enterprises.
|
|
319
|
+
* A BPO enterprise must be `approved` before a DIR can be linked to it through
|
|
320
|
+
* `bpo_authorizations`.
|
|
321
|
+
*/
|
|
322
|
+
bpo_verification_status?: 'pending' | 'approved' | 'rejected' | null;
|
|
323
|
+
|
|
272
324
|
/**
|
|
273
325
|
* True once Branded Calling has been activated on this enterprise (see
|
|
274
326
|
* `POST /enterprises/{id}/branded_calling`).
|
|
@@ -276,7 +328,9 @@ export interface EnterprisePublic {
|
|
|
276
328
|
branded_calling_enabled?: boolean;
|
|
277
329
|
|
|
278
330
|
/**
|
|
279
|
-
*
|
|
331
|
+
* The official number your company received when it was legally registered or
|
|
332
|
+
* incorporated (for example from your state or national business registry). It is
|
|
333
|
+
* on your certificate of incorporation.
|
|
280
334
|
*/
|
|
281
335
|
corporate_registration_number?: string | null;
|
|
282
336
|
|
|
@@ -284,23 +338,52 @@ export interface EnterprisePublic {
|
|
|
284
338
|
|
|
285
339
|
created_at?: string;
|
|
286
340
|
|
|
341
|
+
/**
|
|
342
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
343
|
+
* your records. Telnyx does not use it during vetting.
|
|
344
|
+
*/
|
|
287
345
|
customer_reference?: string;
|
|
288
346
|
|
|
347
|
+
/**
|
|
348
|
+
* The trade name your business operates under if it is different from your legal
|
|
349
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
350
|
+
* your legal name.
|
|
351
|
+
*/
|
|
289
352
|
doing_business_as?: string;
|
|
290
353
|
|
|
291
354
|
/**
|
|
292
|
-
*
|
|
355
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
356
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
293
357
|
*/
|
|
294
358
|
dun_bradstreet_number?: string | null;
|
|
295
359
|
|
|
360
|
+
/**
|
|
361
|
+
* US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
|
|
362
|
+
*/
|
|
296
363
|
fein?: string;
|
|
297
364
|
|
|
365
|
+
/**
|
|
366
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
367
|
+
* if your value is not accepted, pick the nearest category.
|
|
368
|
+
*/
|
|
298
369
|
industry?: string;
|
|
299
370
|
|
|
371
|
+
/**
|
|
372
|
+
* The state, province, or country where your business was legally incorporated,
|
|
373
|
+
* for example Delaware.
|
|
374
|
+
*/
|
|
300
375
|
jurisdiction_of_incorporation?: string;
|
|
301
376
|
|
|
377
|
+
/**
|
|
378
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
379
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
380
|
+
*/
|
|
302
381
|
legal_name?: string;
|
|
303
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Approximate headcount range. Used for vetting heuristics; pick the bucket that
|
|
385
|
+
* contains your current employee count.
|
|
386
|
+
*/
|
|
304
387
|
number_of_employees?: string;
|
|
305
388
|
|
|
306
389
|
/**
|
|
@@ -311,6 +394,17 @@ export interface EnterprisePublic {
|
|
|
311
394
|
|
|
312
395
|
organization_contact?: OrganizationContact;
|
|
313
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Legal-entity form. Pick the form that matches your incorporation documents:
|
|
399
|
+
*
|
|
400
|
+
* - `corporation` - C-corp or S-corp.
|
|
401
|
+
* - `llc` - limited liability company.
|
|
402
|
+
* - `partnership` - general/limited partnership.
|
|
403
|
+
* - `nonprofit` - non-profit corporation, charitable trust, or
|
|
404
|
+
* 501(c)(3)/equivalent.
|
|
405
|
+
* - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
|
|
406
|
+
* You may be asked for additional documents during vetting.
|
|
407
|
+
*/
|
|
314
408
|
organization_legal_type?: string;
|
|
315
409
|
|
|
316
410
|
organization_physical_address?: PhysicalAddress;
|
|
@@ -318,19 +412,27 @@ export interface EnterprisePublic {
|
|
|
318
412
|
organization_type?: string;
|
|
319
413
|
|
|
320
414
|
/**
|
|
321
|
-
*
|
|
415
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
416
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
417
|
+
* code directory if you are unsure.
|
|
322
418
|
*/
|
|
323
419
|
primary_business_domain_sic_code?: string | null;
|
|
324
420
|
|
|
325
421
|
/**
|
|
326
|
-
*
|
|
422
|
+
* If your business operates under a professional license (for example legal,
|
|
423
|
+
* medical, or financial services), enter the license number issued by the
|
|
424
|
+
* licensing authority. Leave blank if it does not apply.
|
|
327
425
|
*/
|
|
328
426
|
professional_license_number?: string | null;
|
|
329
427
|
|
|
330
|
-
role_type?:
|
|
428
|
+
role_type?: 'enterprise' | 'bpo';
|
|
331
429
|
|
|
332
430
|
updated_at?: string;
|
|
333
431
|
|
|
432
|
+
/**
|
|
433
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
434
|
+
* business has no website.
|
|
435
|
+
*/
|
|
334
436
|
website?: string;
|
|
335
437
|
}
|
|
336
438
|
|
|
@@ -368,16 +470,30 @@ export interface NumberReputationPaginationMeta {
|
|
|
368
470
|
}
|
|
369
471
|
|
|
370
472
|
export interface OrganizationContact {
|
|
473
|
+
/**
|
|
474
|
+
* The email address of the main person Telnyx should contact about this account.
|
|
475
|
+
* For a call center (BPO) account this is the email you will verify later, so use
|
|
476
|
+
* a mailbox you can access.
|
|
477
|
+
*/
|
|
371
478
|
email: string;
|
|
372
479
|
|
|
480
|
+
/**
|
|
481
|
+
* The first name of the main person Telnyx should contact about this account.
|
|
482
|
+
*/
|
|
373
483
|
first_name: string;
|
|
374
484
|
|
|
485
|
+
/**
|
|
486
|
+
* The job title of the main person Telnyx should contact about this account.
|
|
487
|
+
*/
|
|
375
488
|
job_title: string;
|
|
376
489
|
|
|
490
|
+
/**
|
|
491
|
+
* The last name of the main person Telnyx should contact about this account.
|
|
492
|
+
*/
|
|
377
493
|
last_name: string;
|
|
378
494
|
|
|
379
495
|
/**
|
|
380
|
-
* E.164 format
|
|
496
|
+
* The phone number of the main contact, in E.164 format, for example +12125551234.
|
|
381
497
|
*/
|
|
382
498
|
phone_number: string;
|
|
383
499
|
}
|
|
@@ -388,6 +504,9 @@ export interface PhysicalAddress {
|
|
|
388
504
|
*/
|
|
389
505
|
administrative_area: string;
|
|
390
506
|
|
|
507
|
+
/**
|
|
508
|
+
* The city of your registered business address.
|
|
509
|
+
*/
|
|
391
510
|
city: string;
|
|
392
511
|
|
|
393
512
|
/**
|
|
@@ -395,10 +514,21 @@ export interface PhysicalAddress {
|
|
|
395
514
|
*/
|
|
396
515
|
country: string;
|
|
397
516
|
|
|
517
|
+
/**
|
|
518
|
+
* The postal or ZIP code of your registered business address.
|
|
519
|
+
*/
|
|
398
520
|
postal_code: string;
|
|
399
521
|
|
|
522
|
+
/**
|
|
523
|
+
* The street address of your registered business, including the building number
|
|
524
|
+
* and street name.
|
|
525
|
+
*/
|
|
400
526
|
street_address: string;
|
|
401
527
|
|
|
528
|
+
/**
|
|
529
|
+
* An optional second address line, such as a suite, unit, or floor. Leave blank if
|
|
530
|
+
* it does not apply.
|
|
531
|
+
*/
|
|
402
532
|
extended_address?: string | null;
|
|
403
533
|
}
|
|
404
534
|
|
|
@@ -408,6 +538,12 @@ export interface EnterpriseListParams extends DefaultFlatPaginationParams {
|
|
|
408
538
|
*/
|
|
409
539
|
'filter[legal_name][contains]'?: string;
|
|
410
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Only return enterprises of this type: `bpo` for call-center (BPO) enterprises,
|
|
543
|
+
* `enterprise` for normal enterprises. Omit to return both.
|
|
544
|
+
*/
|
|
545
|
+
'filter[role_type]'?: 'enterprise' | 'bpo';
|
|
546
|
+
|
|
411
547
|
/**
|
|
412
548
|
* Filter by legal name (partial match).
|
|
413
549
|
*/
|
|
@@ -424,6 +560,11 @@ export interface EnterpriseCreateParams {
|
|
|
424
560
|
*/
|
|
425
561
|
country_code: string;
|
|
426
562
|
|
|
563
|
+
/**
|
|
564
|
+
* The trade name your business operates under if it is different from your legal
|
|
565
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
566
|
+
* your legal name.
|
|
567
|
+
*/
|
|
427
568
|
doing_business_as: string;
|
|
428
569
|
|
|
429
570
|
/**
|
|
@@ -432,7 +573,8 @@ export interface EnterpriseCreateParams {
|
|
|
432
573
|
fein: string;
|
|
433
574
|
|
|
434
575
|
/**
|
|
435
|
-
*
|
|
576
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
577
|
+
* if your value is not accepted, pick the nearest category.
|
|
436
578
|
*/
|
|
437
579
|
industry:
|
|
438
580
|
| 'accounting'
|
|
@@ -479,10 +621,15 @@ export interface EnterpriseCreateParams {
|
|
|
479
621
|
| 'hospitality'
|
|
480
622
|
| 'hotel';
|
|
481
623
|
|
|
624
|
+
/**
|
|
625
|
+
* The state, province, or country where your business was legally incorporated,
|
|
626
|
+
* for example Delaware.
|
|
627
|
+
*/
|
|
482
628
|
jurisdiction_of_incorporation: string;
|
|
483
629
|
|
|
484
630
|
/**
|
|
485
|
-
*
|
|
631
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
632
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
486
633
|
*/
|
|
487
634
|
legal_name: string;
|
|
488
635
|
|
|
@@ -520,37 +667,54 @@ export interface EnterpriseCreateParams {
|
|
|
520
667
|
*/
|
|
521
668
|
organization_type: 'commercial' | 'government' | 'non_profit';
|
|
522
669
|
|
|
670
|
+
/**
|
|
671
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
672
|
+
* business has no website.
|
|
673
|
+
*/
|
|
523
674
|
website: string;
|
|
524
675
|
|
|
525
676
|
/**
|
|
526
|
-
*
|
|
677
|
+
* The official number your company received when it was legally registered or
|
|
678
|
+
* incorporated (for example from your state or national business registry). It is
|
|
679
|
+
* on your certificate of incorporation.
|
|
527
680
|
*/
|
|
528
681
|
corporate_registration_number?: string | null;
|
|
529
682
|
|
|
530
683
|
/**
|
|
531
|
-
*
|
|
532
|
-
* Telnyx does not
|
|
684
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
685
|
+
* your records. Telnyx does not use it during vetting.
|
|
533
686
|
*/
|
|
534
687
|
customer_reference?: string;
|
|
535
688
|
|
|
536
689
|
/**
|
|
537
|
-
*
|
|
690
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
691
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
538
692
|
*/
|
|
539
693
|
dun_bradstreet_number?: string | null;
|
|
540
694
|
|
|
541
695
|
/**
|
|
542
|
-
*
|
|
696
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
697
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
698
|
+
* code directory if you are unsure.
|
|
543
699
|
*/
|
|
544
700
|
primary_business_domain_sic_code?: string | null;
|
|
545
701
|
|
|
546
702
|
/**
|
|
547
|
-
*
|
|
703
|
+
* If your business operates under a professional license (for example legal,
|
|
704
|
+
* medical, or financial services), enter the license number issued by the
|
|
705
|
+
* licensing authority. Leave blank if it does not apply.
|
|
548
706
|
*/
|
|
549
707
|
professional_license_number?: string | null;
|
|
550
708
|
|
|
551
709
|
/**
|
|
552
|
-
* `enterprise` for an organization registering its own DIRs
|
|
553
|
-
*
|
|
710
|
+
* `enterprise` for an organization registering its own DIRs (the default, and the
|
|
711
|
+
* right choice when the calls display your own brand). `bpo` for a Business
|
|
712
|
+
* Process Outsourcer: a call center that places calls on behalf of other
|
|
713
|
+
* enterprises and displays their brand. A `bpo` enterprise describes the call
|
|
714
|
+
* center itself and cannot own a DIR. Each client the call center calls for gets
|
|
715
|
+
* its own `enterprise` in the same account, with the client's DIR under it; that
|
|
716
|
+
* DIR is then linked to the `bpo` enterprise through `bpo_authorizations`. Fixed
|
|
717
|
+
* at creation.
|
|
554
718
|
*/
|
|
555
719
|
role_type?: 'enterprise' | 'bpo';
|
|
556
720
|
}
|
|
@@ -560,16 +724,41 @@ export interface EnterpriseUpdateParams {
|
|
|
560
724
|
|
|
561
725
|
billing_contact?: BillingContact;
|
|
562
726
|
|
|
727
|
+
/**
|
|
728
|
+
* The official number your company received when it was legally registered or
|
|
729
|
+
* incorporated (for example from your state or national business registry). It is
|
|
730
|
+
* on your certificate of incorporation.
|
|
731
|
+
*/
|
|
563
732
|
corporate_registration_number?: string | null;
|
|
564
733
|
|
|
734
|
+
/**
|
|
735
|
+
* Your own label for this account. Enter any reference that helps you find it in
|
|
736
|
+
* your records. Telnyx does not use it during vetting.
|
|
737
|
+
*/
|
|
565
738
|
customer_reference?: string;
|
|
566
739
|
|
|
740
|
+
/**
|
|
741
|
+
* The trade name your business operates under if it is different from your legal
|
|
742
|
+
* name, also called a Doing Business As (DBA) name. Leave blank if you only use
|
|
743
|
+
* your legal name.
|
|
744
|
+
*/
|
|
567
745
|
doing_business_as?: string;
|
|
568
746
|
|
|
747
|
+
/**
|
|
748
|
+
* Your optional 9-digit D-U-N-S Number issued by Dun & Bradstreet, a unique
|
|
749
|
+
* identifier for your business. Leave blank if you do not have one.
|
|
750
|
+
*/
|
|
569
751
|
dun_bradstreet_number?: string | null;
|
|
570
752
|
|
|
753
|
+
/**
|
|
754
|
+
* US Federal Employer Identification Number (`NN-NNNNNNN`) or Canadian equivalent.
|
|
755
|
+
*/
|
|
571
756
|
fein?: string;
|
|
572
757
|
|
|
758
|
+
/**
|
|
759
|
+
* The industry your business operates in. Choose the closest match from the list;
|
|
760
|
+
* if your value is not accepted, pick the nearest category.
|
|
761
|
+
*/
|
|
573
762
|
industry?:
|
|
574
763
|
| 'accounting'
|
|
575
764
|
| 'finance'
|
|
@@ -616,32 +805,64 @@ export interface EnterpriseUpdateParams {
|
|
|
616
805
|
| 'hotel';
|
|
617
806
|
|
|
618
807
|
/**
|
|
619
|
-
*
|
|
808
|
+
* The state, province, or country where your business was legally incorporated,
|
|
809
|
+
* for example Delaware.
|
|
620
810
|
*/
|
|
621
811
|
jurisdiction_of_incorporation?: string;
|
|
622
812
|
|
|
623
813
|
/**
|
|
624
|
-
*
|
|
814
|
+
* Your business's full registered legal name, exactly as it appears on your
|
|
815
|
+
* incorporation or tax documents, 3 to 64 characters.
|
|
625
816
|
*/
|
|
626
817
|
legal_name?: string;
|
|
627
818
|
|
|
819
|
+
/**
|
|
820
|
+
* Approximate headcount range. Used for vetting heuristics; pick the bucket that
|
|
821
|
+
* contains your current employee count.
|
|
822
|
+
*/
|
|
628
823
|
number_of_employees?: string;
|
|
629
824
|
|
|
630
825
|
organization_contact?: OrganizationContact;
|
|
631
826
|
|
|
827
|
+
/**
|
|
828
|
+
* Legal-entity form. Pick the form that matches your incorporation documents:
|
|
829
|
+
*
|
|
830
|
+
* - `corporation` - C-corp or S-corp.
|
|
831
|
+
* - `llc` - limited liability company.
|
|
832
|
+
* - `partnership` - general/limited partnership.
|
|
833
|
+
* - `nonprofit` - non-profit corporation, charitable trust, or
|
|
834
|
+
* 501(c)(3)/equivalent.
|
|
835
|
+
* - `other` - anything else (sole proprietorships, government bodies, DBAs, etc.).
|
|
836
|
+
* You may be asked for additional documents during vetting.
|
|
837
|
+
*/
|
|
632
838
|
organization_legal_type?: string;
|
|
633
839
|
|
|
634
840
|
organization_physical_address?: PhysicalAddress;
|
|
635
841
|
|
|
842
|
+
/**
|
|
843
|
+
* The 4-digit Standard Industrial Classification code for your main line of
|
|
844
|
+
* business, which tells us what industry you operate in. Look it up in the SIC
|
|
845
|
+
* code directory if you are unsure.
|
|
846
|
+
*/
|
|
636
847
|
primary_business_domain_sic_code?: string | null;
|
|
637
848
|
|
|
849
|
+
/**
|
|
850
|
+
* If your business operates under a professional license (for example legal,
|
|
851
|
+
* medical, or financial services), enter the license number issued by the
|
|
852
|
+
* licensing authority. Leave blank if it does not apply.
|
|
853
|
+
*/
|
|
638
854
|
professional_license_number?: string | null;
|
|
639
855
|
|
|
856
|
+
/**
|
|
857
|
+
* Your business's public website address, including https://. Leave blank if your
|
|
858
|
+
* business has no website.
|
|
859
|
+
*/
|
|
640
860
|
website?: string;
|
|
641
861
|
}
|
|
642
862
|
|
|
643
863
|
Enterprises.Reputation = Reputation;
|
|
644
864
|
Enterprises.Dir = Dir;
|
|
865
|
+
Enterprises.VerifyEmail = VerifyEmail;
|
|
645
866
|
|
|
646
867
|
export declare namespace Enterprises {
|
|
647
868
|
export {
|
|
@@ -667,4 +888,10 @@ export declare namespace Enterprises {
|
|
|
667
888
|
};
|
|
668
889
|
|
|
669
890
|
export { Dir as Dir, type DirListParams as DirListParams, type DirCreateParams as DirCreateParams };
|
|
891
|
+
|
|
892
|
+
export {
|
|
893
|
+
VerifyEmail as VerifyEmail,
|
|
894
|
+
type EnterpriseEmailVerificationStatusWrapped as EnterpriseEmailVerificationStatusWrapped,
|
|
895
|
+
type VerifyEmailConfirmParams as VerifyEmailConfirmParams,
|
|
896
|
+
};
|
|
670
897
|
}
|
|
@@ -75,28 +75,70 @@ export class Loa extends APIResource {
|
|
|
75
75
|
* when the enterprise works directly with Telnyx.
|
|
76
76
|
*/
|
|
77
77
|
export interface AgentInput {
|
|
78
|
+
/**
|
|
79
|
+
* The state or province of the partner's address, as its code, for example IL or
|
|
80
|
+
* ON.
|
|
81
|
+
*/
|
|
78
82
|
administrative_area: string;
|
|
79
83
|
|
|
84
|
+
/**
|
|
85
|
+
* The city of the partner's address.
|
|
86
|
+
*/
|
|
80
87
|
city: string;
|
|
81
88
|
|
|
89
|
+
/**
|
|
90
|
+
* The email address of the contact person at the partner.
|
|
91
|
+
*/
|
|
82
92
|
contact_email: string;
|
|
83
93
|
|
|
94
|
+
/**
|
|
95
|
+
* The name of a contact person at the partner.
|
|
96
|
+
*/
|
|
84
97
|
contact_name: string;
|
|
85
98
|
|
|
99
|
+
/**
|
|
100
|
+
* The phone number of the contact person at the partner, in E.164 format, for
|
|
101
|
+
* example +13125550000.
|
|
102
|
+
*/
|
|
86
103
|
contact_phone: string;
|
|
87
104
|
|
|
105
|
+
/**
|
|
106
|
+
* The job title of the contact person at the partner.
|
|
107
|
+
*/
|
|
88
108
|
contact_title: string;
|
|
89
109
|
|
|
110
|
+
/**
|
|
111
|
+
* The two-letter country code of the partner's address, for example US.
|
|
112
|
+
*/
|
|
90
113
|
country: string;
|
|
91
114
|
|
|
115
|
+
/**
|
|
116
|
+
* The legal name of the third-party partner or reseller managing these numbers on
|
|
117
|
+
* your behalf.
|
|
118
|
+
*/
|
|
92
119
|
legal_name: string;
|
|
93
120
|
|
|
121
|
+
/**
|
|
122
|
+
* The postal or ZIP code of the partner's address.
|
|
123
|
+
*/
|
|
94
124
|
postal_code: string;
|
|
95
125
|
|
|
126
|
+
/**
|
|
127
|
+
* The street address of the partner, including the building number and street
|
|
128
|
+
* name.
|
|
129
|
+
*/
|
|
96
130
|
street_address: string;
|
|
97
131
|
|
|
132
|
+
/**
|
|
133
|
+
* The trade name (Doing Business As) the partner operates under, if different from
|
|
134
|
+
* its legal name. Leave blank if it does not apply.
|
|
135
|
+
*/
|
|
98
136
|
dba?: string | null;
|
|
99
137
|
|
|
138
|
+
/**
|
|
139
|
+
* An optional second address line for the partner, such as a suite, unit, or
|
|
140
|
+
* floor. Leave blank if it does not apply.
|
|
141
|
+
*/
|
|
100
142
|
extended_address?: string | null;
|
|
101
143
|
}
|
|
102
144
|
|
|
@@ -114,7 +156,7 @@ export interface LoaRenderParams {
|
|
|
114
156
|
* Third-party reseller / partner managing the enterprise's phone numbers. Omit
|
|
115
157
|
* when the enterprise works directly with Telnyx.
|
|
116
158
|
*/
|
|
117
|
-
agent?:
|
|
159
|
+
agent?: LoaRenderParams.Agent;
|
|
118
160
|
|
|
119
161
|
/**
|
|
120
162
|
* Optional signature embedded in the rendered PDF. When omitted the PDF is
|
|
@@ -124,6 +166,36 @@ export interface LoaRenderParams {
|
|
|
124
166
|
}
|
|
125
167
|
|
|
126
168
|
export namespace LoaRenderParams {
|
|
169
|
+
/**
|
|
170
|
+
* Third-party reseller / partner managing the enterprise's phone numbers. Omit
|
|
171
|
+
* when the enterprise works directly with Telnyx.
|
|
172
|
+
*/
|
|
173
|
+
export interface Agent {
|
|
174
|
+
administrative_area: string;
|
|
175
|
+
|
|
176
|
+
city: string;
|
|
177
|
+
|
|
178
|
+
contact_email: string;
|
|
179
|
+
|
|
180
|
+
contact_name: string;
|
|
181
|
+
|
|
182
|
+
contact_phone: string;
|
|
183
|
+
|
|
184
|
+
contact_title: string;
|
|
185
|
+
|
|
186
|
+
country: string;
|
|
187
|
+
|
|
188
|
+
legal_name: string;
|
|
189
|
+
|
|
190
|
+
postal_code: string;
|
|
191
|
+
|
|
192
|
+
street_address: string;
|
|
193
|
+
|
|
194
|
+
dba?: string | null;
|
|
195
|
+
|
|
196
|
+
extended_address?: string | null;
|
|
197
|
+
}
|
|
198
|
+
|
|
127
199
|
/**
|
|
128
200
|
* Optional signature embedded in the rendered PDF. When omitted the PDF is
|
|
129
201
|
* returned unsigned for the customer to sign and upload.
|