agentphone 1.0.11 → 1.0.12
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/README.md +10 -10
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -6
- package/dist/cjs/Client.js +25 -30
- package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.d.ts +69 -0
- package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.js +66 -0
- package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +69 -0
- package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.js +66 -0
- package/dist/cjs/api/resources/index.d.ts +2 -4
- package/dist/cjs/api/resources/index.js +3 -5
- package/dist/cjs/api/resources/registration/client/Client.d.ts +61 -0
- package/dist/cjs/api/resources/{agentSignup → registration}/client/Client.js +44 -69
- package/dist/cjs/api/resources/registration/client/requests/RegistrationRequest.d.ts +61 -0
- package/dist/cjs/api/resources/registration/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/AgentResponse.d.ts +2 -0
- package/dist/cjs/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.ts +0 -6
- package/dist/cjs/api/types/AgentVerifyRequest.d.ts +4 -0
- package/dist/cjs/api/types/FieldWarning.d.ts +6 -0
- package/dist/cjs/api/types/FieldWarning.js +3 -0
- package/dist/cjs/api/types/RegistrationResponse.d.ts +8 -0
- package/dist/cjs/api/types/RegistrationResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +4 -0
- package/dist/cjs/api/types/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -6
- package/dist/esm/Client.mjs +5 -10
- package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.d.mts +69 -0
- package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.mjs +66 -0
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +69 -0
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.mjs +66 -0
- package/dist/esm/api/resources/index.d.mts +2 -4
- package/dist/esm/api/resources/index.mjs +2 -4
- package/dist/esm/api/resources/registration/client/Client.d.mts +61 -0
- package/dist/esm/api/resources/registration/client/Client.mjs +108 -0
- package/dist/esm/api/resources/registration/client/requests/RegistrationRequest.d.mts +61 -0
- package/dist/esm/api/resources/registration/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/AgentResponse.d.mts +2 -0
- package/dist/esm/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.mts +0 -6
- package/dist/esm/api/types/AgentVerifyRequest.d.mts +4 -0
- package/dist/esm/api/types/FieldWarning.d.mts +6 -0
- package/dist/esm/api/types/FieldWarning.mjs +2 -0
- package/dist/esm/api/types/RegistrationResponse.d.mts +8 -0
- package/dist/esm/api/types/RegistrationResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +83 -380
- package/dist/cjs/api/resources/agentSignup/client/Client.d.ts +0 -50
- package/dist/cjs/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.ts +0 -11
- package/dist/cjs/api/resources/agentSignup/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +0 -64
- package/dist/cjs/api/resources/integrations/client/Client.js +0 -268
- package/dist/cjs/api/resources/integrations/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/integrations/client/index.js +0 -17
- package/dist/cjs/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/integrations/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/integrations/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/integrations/index.d.ts +0 -1
- package/dist/cjs/api/resources/integrations/index.js +0 -17
- package/dist/esm/api/resources/agentSignup/client/Client.d.mts +0 -50
- package/dist/esm/api/resources/agentSignup/client/Client.mjs +0 -133
- package/dist/esm/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.mts +0 -11
- package/dist/esm/api/resources/agentSignup/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/integrations/client/Client.d.mts +0 -64
- package/dist/esm/api/resources/integrations/client/Client.mjs +0 -231
- package/dist/esm/api/resources/integrations/client/index.d.mts +0 -1
- package/dist/esm/api/resources/integrations/client/index.mjs +0 -1
- package/dist/esm/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/integrations/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/integrations/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/integrations/index.d.mts +0 -1
- package/dist/esm/api/resources/integrations/index.mjs +0 -1
- /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{agentSignup/client/requests/AgentSignUpRequest.js → registration/client/requests/RegistrationRequest.js} +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/index.js +0 -0
- /package/dist/cjs/api/{resources/agentSignup/client/requests/AgentVerifyRequest.js → types/AgentSignUpRequest.js} +0 -0
- /package/dist/cjs/api/{resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.js → types/AgentVerifyRequest.js} +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{agentSignup/client/requests/AgentSignUpRequest.mjs → registration/client/requests/RegistrationRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/index.mjs +0 -0
- /package/dist/esm/api/{resources/agentSignup/client/requests/AgentVerifyRequest.mjs → types/AgentSignUpRequest.mjs} +0 -0
- /package/dist/esm/api/{resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.mjs → types/AgentVerifyRequest.mjs} +0 -0
package/README.md
CHANGED
|
@@ -41,8 +41,8 @@ Instantiate and use the client with the following:
|
|
|
41
41
|
import { AgentPhoneClient } from "agentphone";
|
|
42
42
|
|
|
43
43
|
const client = new AgentPhoneClient({ token: "YOUR_TOKEN" });
|
|
44
|
-
await client.
|
|
45
|
-
|
|
44
|
+
await client.agents.createAgent({
|
|
45
|
+
name: "name"
|
|
46
46
|
});
|
|
47
47
|
```
|
|
48
48
|
|
|
@@ -54,7 +54,7 @@ following namespace:
|
|
|
54
54
|
```typescript
|
|
55
55
|
import { AgentPhone } from "agentphone";
|
|
56
56
|
|
|
57
|
-
const request: AgentPhone.
|
|
57
|
+
const request: AgentPhone.ListAgentsV1AgentsGetRequest = {
|
|
58
58
|
...
|
|
59
59
|
};
|
|
60
60
|
```
|
|
@@ -68,7 +68,7 @@ will be thrown.
|
|
|
68
68
|
import { AgentPhoneError } from "agentphone";
|
|
69
69
|
|
|
70
70
|
try {
|
|
71
|
-
await client.
|
|
71
|
+
await client.agents.createAgent(...);
|
|
72
72
|
} catch (err) {
|
|
73
73
|
if (err instanceof AgentPhoneError) {
|
|
74
74
|
console.log(err.statusCode);
|
|
@@ -95,7 +95,7 @@ const client = new AgentPhoneClient({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
const response = await client.
|
|
98
|
+
const response = await client.agents.createAgent(..., {
|
|
99
99
|
headers: {
|
|
100
100
|
'X-Custom-Header': 'custom value'
|
|
101
101
|
}
|
|
@@ -107,7 +107,7 @@ const response = await client.agentSignup.agentSignUp(..., {
|
|
|
107
107
|
If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
|
|
108
108
|
|
|
109
109
|
```typescript
|
|
110
|
-
const response = await client.
|
|
110
|
+
const response = await client.agents.createAgent(..., {
|
|
111
111
|
queryParams: {
|
|
112
112
|
'customQueryParamKey': 'custom query param value'
|
|
113
113
|
}
|
|
@@ -129,7 +129,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
|
|
|
129
129
|
Use the `maxRetries` request option to configure this behavior.
|
|
130
130
|
|
|
131
131
|
```typescript
|
|
132
|
-
const response = await client.
|
|
132
|
+
const response = await client.agents.createAgent(..., {
|
|
133
133
|
maxRetries: 0 // override maxRetries at the request level
|
|
134
134
|
});
|
|
135
135
|
```
|
|
@@ -139,7 +139,7 @@ const response = await client.agentSignup.agentSignUp(..., {
|
|
|
139
139
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
140
140
|
|
|
141
141
|
```typescript
|
|
142
|
-
const response = await client.
|
|
142
|
+
const response = await client.agents.createAgent(..., {
|
|
143
143
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
144
144
|
});
|
|
145
145
|
```
|
|
@@ -150,7 +150,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
150
150
|
|
|
151
151
|
```typescript
|
|
152
152
|
const controller = new AbortController();
|
|
153
|
-
const response = await client.
|
|
153
|
+
const response = await client.agents.createAgent(..., {
|
|
154
154
|
abortSignal: controller.signal
|
|
155
155
|
});
|
|
156
156
|
controller.abort(); // aborts the request
|
|
@@ -162,7 +162,7 @@ The SDK provides access to raw response data, including headers, through the `.w
|
|
|
162
162
|
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
163
163
|
|
|
164
164
|
```typescript
|
|
165
|
-
const { data, rawResponse } = await client.
|
|
165
|
+
const { data, rawResponse } = await client.agents.createAgent(...).withRawResponse();
|
|
166
166
|
|
|
167
167
|
console.log(data);
|
|
168
168
|
console.log(rawResponse.headers['X-My-Header']);
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "agentphone",
|
|
46
|
-
"X-Fern-SDK-Version": "1.0.
|
|
47
|
-
"User-Agent": "agentphone/1.0.
|
|
46
|
+
"X-Fern-SDK-Version": "1.0.12",
|
|
47
|
+
"User-Agent": "agentphone/1.0.12",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AgentSignupClient } from "./api/resources/agentSignup/client/Client.js";
|
|
2
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.js";
|
|
3
2
|
import { AgentWebhooksClient } from "./api/resources/agentWebhooks/client/Client.js";
|
|
4
3
|
import { CallsClient } from "./api/resources/calls/client/Client.js";
|
|
5
4
|
import { ContactCardsClient } from "./api/resources/contactCards/client/Client.js";
|
|
6
5
|
import { ContactsClient } from "./api/resources/contacts/client/Client.js";
|
|
7
6
|
import { ConversationsClient } from "./api/resources/conversations/client/Client.js";
|
|
8
|
-
import { IntegrationsClient } from "./api/resources/integrations/client/Client.js";
|
|
9
7
|
import { MessagesClient } from "./api/resources/messages/client/Client.js";
|
|
10
8
|
import { NumbersClient } from "./api/resources/numbers/client/Client.js";
|
|
9
|
+
import { RegistrationClient } from "./api/resources/registration/client/Client.js";
|
|
11
10
|
import { UsageClient } from "./api/resources/usage/client/Client.js";
|
|
12
11
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
|
|
13
12
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
@@ -19,7 +18,6 @@ export declare namespace AgentPhoneClient {
|
|
|
19
18
|
}
|
|
20
19
|
export declare class AgentPhoneClient {
|
|
21
20
|
protected readonly _options: NormalizedClientOptionsWithAuth<AgentPhoneClient.Options>;
|
|
22
|
-
protected _agentSignup: AgentSignupClient | undefined;
|
|
23
21
|
protected _agents: AgentsClient | undefined;
|
|
24
22
|
protected _numbers: NumbersClient | undefined;
|
|
25
23
|
protected _webhooks: WebhooksClient | undefined;
|
|
@@ -28,11 +26,10 @@ export declare class AgentPhoneClient {
|
|
|
28
26
|
protected _conversations: ConversationsClient | undefined;
|
|
29
27
|
protected _calls: CallsClient | undefined;
|
|
30
28
|
protected _usage: UsageClient | undefined;
|
|
31
|
-
protected _integrations: IntegrationsClient | undefined;
|
|
32
29
|
protected _messages: MessagesClient | undefined;
|
|
33
30
|
protected _contactCards: ContactCardsClient | undefined;
|
|
31
|
+
protected _registration: RegistrationClient | undefined;
|
|
34
32
|
constructor(options?: AgentPhoneClient.Options);
|
|
35
|
-
get agentSignup(): AgentSignupClient;
|
|
36
33
|
get agents(): AgentsClient;
|
|
37
34
|
get numbers(): NumbersClient;
|
|
38
35
|
get webhooks(): WebhooksClient;
|
|
@@ -41,7 +38,7 @@ export declare class AgentPhoneClient {
|
|
|
41
38
|
get conversations(): ConversationsClient;
|
|
42
39
|
get calls(): CallsClient;
|
|
43
40
|
get usage(): UsageClient;
|
|
44
|
-
get integrations(): IntegrationsClient;
|
|
45
41
|
get messages(): MessagesClient;
|
|
46
42
|
get contactCards(): ContactCardsClient;
|
|
43
|
+
get registration(): RegistrationClient;
|
|
47
44
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -2,70 +2,65 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.AgentPhoneClient = void 0;
|
|
5
|
-
const Client_js_1 = require("./api/resources/
|
|
6
|
-
const Client_js_2 = require("./api/resources/
|
|
7
|
-
const Client_js_3 = require("./api/resources/
|
|
8
|
-
const Client_js_4 = require("./api/resources/
|
|
9
|
-
const Client_js_5 = require("./api/resources/
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/webhooks/client/Client.js");
|
|
5
|
+
const Client_js_1 = require("./api/resources/agents/client/Client.js");
|
|
6
|
+
const Client_js_2 = require("./api/resources/agentWebhooks/client/Client.js");
|
|
7
|
+
const Client_js_3 = require("./api/resources/calls/client/Client.js");
|
|
8
|
+
const Client_js_4 = require("./api/resources/contactCards/client/Client.js");
|
|
9
|
+
const Client_js_5 = require("./api/resources/contacts/client/Client.js");
|
|
10
|
+
const Client_js_6 = require("./api/resources/conversations/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/messages/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/numbers/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/registration/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/usage/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/webhooks/client/Client.js");
|
|
17
16
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
18
17
|
class AgentPhoneClient {
|
|
19
18
|
constructor(options = {}) {
|
|
20
19
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
21
20
|
}
|
|
22
|
-
get agentSignup() {
|
|
23
|
-
var _a;
|
|
24
|
-
return ((_a = this._agentSignup) !== null && _a !== void 0 ? _a : (this._agentSignup = new Client_js_1.AgentSignupClient(this._options)));
|
|
25
|
-
}
|
|
26
21
|
get agents() {
|
|
27
22
|
var _a;
|
|
28
|
-
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new
|
|
23
|
+
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_1.AgentsClient(this._options)));
|
|
29
24
|
}
|
|
30
25
|
get numbers() {
|
|
31
26
|
var _a;
|
|
32
|
-
return ((_a = this._numbers) !== null && _a !== void 0 ? _a : (this._numbers = new
|
|
27
|
+
return ((_a = this._numbers) !== null && _a !== void 0 ? _a : (this._numbers = new Client_js_8.NumbersClient(this._options)));
|
|
33
28
|
}
|
|
34
29
|
get webhooks() {
|
|
35
30
|
var _a;
|
|
36
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
31
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_11.WebhooksClient(this._options)));
|
|
37
32
|
}
|
|
38
33
|
get agentWebhooks() {
|
|
39
34
|
var _a;
|
|
40
|
-
return ((_a = this._agentWebhooks) !== null && _a !== void 0 ? _a : (this._agentWebhooks = new
|
|
35
|
+
return ((_a = this._agentWebhooks) !== null && _a !== void 0 ? _a : (this._agentWebhooks = new Client_js_2.AgentWebhooksClient(this._options)));
|
|
41
36
|
}
|
|
42
37
|
get contacts() {
|
|
43
38
|
var _a;
|
|
44
|
-
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new
|
|
39
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_5.ContactsClient(this._options)));
|
|
45
40
|
}
|
|
46
41
|
get conversations() {
|
|
47
42
|
var _a;
|
|
48
|
-
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new
|
|
43
|
+
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_6.ConversationsClient(this._options)));
|
|
49
44
|
}
|
|
50
45
|
get calls() {
|
|
51
46
|
var _a;
|
|
52
|
-
return ((_a = this._calls) !== null && _a !== void 0 ? _a : (this._calls = new
|
|
47
|
+
return ((_a = this._calls) !== null && _a !== void 0 ? _a : (this._calls = new Client_js_3.CallsClient(this._options)));
|
|
53
48
|
}
|
|
54
49
|
get usage() {
|
|
55
50
|
var _a;
|
|
56
|
-
return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new
|
|
57
|
-
}
|
|
58
|
-
get integrations() {
|
|
59
|
-
var _a;
|
|
60
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_8.IntegrationsClient(this._options)));
|
|
51
|
+
return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Client_js_10.UsageClient(this._options)));
|
|
61
52
|
}
|
|
62
53
|
get messages() {
|
|
63
54
|
var _a;
|
|
64
|
-
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new
|
|
55
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_7.MessagesClient(this._options)));
|
|
65
56
|
}
|
|
66
57
|
get contactCards() {
|
|
67
58
|
var _a;
|
|
68
|
-
return ((_a = this._contactCards) !== null && _a !== void 0 ? _a : (this._contactCards = new
|
|
59
|
+
return ((_a = this._contactCards) !== null && _a !== void 0 ? _a : (this._contactCards = new Client_js_4.ContactCardsClient(this._options)));
|
|
60
|
+
}
|
|
61
|
+
get registration() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._registration) !== null && _a !== void 0 ? _a : (this._registration = new Client_js_9.RegistrationClient(this._options)));
|
|
69
64
|
}
|
|
70
65
|
}
|
|
71
66
|
exports.AgentPhoneClient = AgentPhoneClient;
|
|
@@ -30,6 +30,8 @@ export interface CreateAgentRequest {
|
|
|
30
30
|
interruptionSensitivity?: number | null;
|
|
31
31
|
/** When true, the agent interjects short filler words like 'uh-huh' or 'mhmm' during longer caller utterances. Set false to keep the agent silent while the caller is speaking. Defaults to true. */
|
|
32
32
|
enableBackchannel?: boolean | null;
|
|
33
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. Defaults to 'en-US'. See the enum for the full set of supported codes. */
|
|
34
|
+
language?: CreateAgentRequest.Language;
|
|
33
35
|
}
|
|
34
36
|
export declare namespace CreateAgentRequest {
|
|
35
37
|
const VoiceMode: {
|
|
@@ -63,4 +65,71 @@ export declare namespace CreateAgentRequest {
|
|
|
63
65
|
readonly NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation";
|
|
64
66
|
};
|
|
65
67
|
type DenoisingMode = (typeof DenoisingMode)[keyof typeof DenoisingMode];
|
|
68
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. Defaults to 'en-US'. See the enum for the full set of supported codes. */
|
|
69
|
+
const Language: {
|
|
70
|
+
readonly AfZa: "af-ZA";
|
|
71
|
+
readonly ArSa: "ar-SA";
|
|
72
|
+
readonly AzAz: "az-AZ";
|
|
73
|
+
readonly BgBg: "bg-BG";
|
|
74
|
+
readonly BsBa: "bs-BA";
|
|
75
|
+
readonly CaEs: "ca-ES";
|
|
76
|
+
readonly CsCz: "cs-CZ";
|
|
77
|
+
readonly CyGb: "cy-GB";
|
|
78
|
+
readonly DaDk: "da-DK";
|
|
79
|
+
readonly DeDe: "de-DE";
|
|
80
|
+
readonly ElGr: "el-GR";
|
|
81
|
+
readonly EnAu: "en-AU";
|
|
82
|
+
readonly EnGb: "en-GB";
|
|
83
|
+
readonly EnIn: "en-IN";
|
|
84
|
+
readonly EnNz: "en-NZ";
|
|
85
|
+
readonly EnUs: "en-US";
|
|
86
|
+
readonly Es419: "es-419";
|
|
87
|
+
readonly EsEs: "es-ES";
|
|
88
|
+
readonly FaIr: "fa-IR";
|
|
89
|
+
readonly FiFi: "fi-FI";
|
|
90
|
+
readonly FilPh: "fil-PH";
|
|
91
|
+
readonly FrCa: "fr-CA";
|
|
92
|
+
readonly FrFr: "fr-FR";
|
|
93
|
+
readonly GlEs: "gl-ES";
|
|
94
|
+
readonly HeIl: "he-IL";
|
|
95
|
+
readonly HiIn: "hi-IN";
|
|
96
|
+
readonly HrHr: "hr-HR";
|
|
97
|
+
readonly HuHu: "hu-HU";
|
|
98
|
+
readonly HyAm: "hy-AM";
|
|
99
|
+
readonly IdId: "id-ID";
|
|
100
|
+
readonly IsIs: "is-IS";
|
|
101
|
+
readonly ItIt: "it-IT";
|
|
102
|
+
readonly JaJp: "ja-JP";
|
|
103
|
+
readonly KkKz: "kk-KZ";
|
|
104
|
+
readonly KnIn: "kn-IN";
|
|
105
|
+
readonly KoKr: "ko-KR";
|
|
106
|
+
readonly LtLt: "lt-LT";
|
|
107
|
+
readonly LvLv: "lv-LV";
|
|
108
|
+
readonly MkMk: "mk-MK";
|
|
109
|
+
readonly MrIn: "mr-IN";
|
|
110
|
+
readonly MsMy: "ms-MY";
|
|
111
|
+
readonly NeNp: "ne-NP";
|
|
112
|
+
readonly NlBe: "nl-BE";
|
|
113
|
+
readonly NlNl: "nl-NL";
|
|
114
|
+
readonly NoNo: "no-NO";
|
|
115
|
+
readonly PlPl: "pl-PL";
|
|
116
|
+
readonly PtBr: "pt-BR";
|
|
117
|
+
readonly PtPt: "pt-PT";
|
|
118
|
+
readonly RoRo: "ro-RO";
|
|
119
|
+
readonly RuRu: "ru-RU";
|
|
120
|
+
readonly SkSk: "sk-SK";
|
|
121
|
+
readonly SlSi: "sl-SI";
|
|
122
|
+
readonly SrRs: "sr-RS";
|
|
123
|
+
readonly SvSe: "sv-SE";
|
|
124
|
+
readonly SwKe: "sw-KE";
|
|
125
|
+
readonly TaIn: "ta-IN";
|
|
126
|
+
readonly ThTh: "th-TH";
|
|
127
|
+
readonly TrTr: "tr-TR";
|
|
128
|
+
readonly UkUa: "uk-UA";
|
|
129
|
+
readonly UrIn: "ur-IN";
|
|
130
|
+
readonly ViVn: "vi-VN";
|
|
131
|
+
readonly YueCn: "yue-CN";
|
|
132
|
+
readonly ZhCn: "zh-CN";
|
|
133
|
+
};
|
|
134
|
+
type Language = (typeof Language)[keyof typeof Language];
|
|
66
135
|
}
|
|
@@ -30,4 +30,70 @@ var CreateAgentRequest;
|
|
|
30
30
|
NoiseCancellation: "noise-cancellation",
|
|
31
31
|
NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation",
|
|
32
32
|
};
|
|
33
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. Defaults to 'en-US'. See the enum for the full set of supported codes. */
|
|
34
|
+
CreateAgentRequest.Language = {
|
|
35
|
+
AfZa: "af-ZA",
|
|
36
|
+
ArSa: "ar-SA",
|
|
37
|
+
AzAz: "az-AZ",
|
|
38
|
+
BgBg: "bg-BG",
|
|
39
|
+
BsBa: "bs-BA",
|
|
40
|
+
CaEs: "ca-ES",
|
|
41
|
+
CsCz: "cs-CZ",
|
|
42
|
+
CyGb: "cy-GB",
|
|
43
|
+
DaDk: "da-DK",
|
|
44
|
+
DeDe: "de-DE",
|
|
45
|
+
ElGr: "el-GR",
|
|
46
|
+
EnAu: "en-AU",
|
|
47
|
+
EnGb: "en-GB",
|
|
48
|
+
EnIn: "en-IN",
|
|
49
|
+
EnNz: "en-NZ",
|
|
50
|
+
EnUs: "en-US",
|
|
51
|
+
Es419: "es-419",
|
|
52
|
+
EsEs: "es-ES",
|
|
53
|
+
FaIr: "fa-IR",
|
|
54
|
+
FiFi: "fi-FI",
|
|
55
|
+
FilPh: "fil-PH",
|
|
56
|
+
FrCa: "fr-CA",
|
|
57
|
+
FrFr: "fr-FR",
|
|
58
|
+
GlEs: "gl-ES",
|
|
59
|
+
HeIl: "he-IL",
|
|
60
|
+
HiIn: "hi-IN",
|
|
61
|
+
HrHr: "hr-HR",
|
|
62
|
+
HuHu: "hu-HU",
|
|
63
|
+
HyAm: "hy-AM",
|
|
64
|
+
IdId: "id-ID",
|
|
65
|
+
IsIs: "is-IS",
|
|
66
|
+
ItIt: "it-IT",
|
|
67
|
+
JaJp: "ja-JP",
|
|
68
|
+
KkKz: "kk-KZ",
|
|
69
|
+
KnIn: "kn-IN",
|
|
70
|
+
KoKr: "ko-KR",
|
|
71
|
+
LtLt: "lt-LT",
|
|
72
|
+
LvLv: "lv-LV",
|
|
73
|
+
MkMk: "mk-MK",
|
|
74
|
+
MrIn: "mr-IN",
|
|
75
|
+
MsMy: "ms-MY",
|
|
76
|
+
NeNp: "ne-NP",
|
|
77
|
+
NlBe: "nl-BE",
|
|
78
|
+
NlNl: "nl-NL",
|
|
79
|
+
NoNo: "no-NO",
|
|
80
|
+
PlPl: "pl-PL",
|
|
81
|
+
PtBr: "pt-BR",
|
|
82
|
+
PtPt: "pt-PT",
|
|
83
|
+
RoRo: "ro-RO",
|
|
84
|
+
RuRu: "ru-RU",
|
|
85
|
+
SkSk: "sk-SK",
|
|
86
|
+
SlSi: "sl-SI",
|
|
87
|
+
SrRs: "sr-RS",
|
|
88
|
+
SvSe: "sv-SE",
|
|
89
|
+
SwKe: "sw-KE",
|
|
90
|
+
TaIn: "ta-IN",
|
|
91
|
+
ThTh: "th-TH",
|
|
92
|
+
TrTr: "tr-TR",
|
|
93
|
+
UkUa: "uk-UA",
|
|
94
|
+
UrIn: "ur-IN",
|
|
95
|
+
ViVn: "vi-VN",
|
|
96
|
+
YueCn: "yue-CN",
|
|
97
|
+
ZhCn: "zh-CN",
|
|
98
|
+
};
|
|
33
99
|
})(CreateAgentRequest || (exports.CreateAgentRequest = CreateAgentRequest = {}));
|
|
@@ -31,6 +31,8 @@ export interface UpdateAgentRequest {
|
|
|
31
31
|
interruptionSensitivity?: number | null;
|
|
32
32
|
/** When true, the agent interjects short filler words like 'uh-huh' or 'mhmm' during longer caller utterances. Set false to keep the agent silent while the caller is speaking. */
|
|
33
33
|
enableBackchannel?: boolean | null;
|
|
34
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
|
|
35
|
+
language?: UpdateAgentRequest.Language;
|
|
34
36
|
}
|
|
35
37
|
export declare namespace UpdateAgentRequest {
|
|
36
38
|
const VoiceMode: {
|
|
@@ -64,4 +66,71 @@ export declare namespace UpdateAgentRequest {
|
|
|
64
66
|
readonly NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation";
|
|
65
67
|
};
|
|
66
68
|
type DenoisingMode = (typeof DenoisingMode)[keyof typeof DenoisingMode];
|
|
69
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
|
|
70
|
+
const Language: {
|
|
71
|
+
readonly AfZa: "af-ZA";
|
|
72
|
+
readonly ArSa: "ar-SA";
|
|
73
|
+
readonly AzAz: "az-AZ";
|
|
74
|
+
readonly BgBg: "bg-BG";
|
|
75
|
+
readonly BsBa: "bs-BA";
|
|
76
|
+
readonly CaEs: "ca-ES";
|
|
77
|
+
readonly CsCz: "cs-CZ";
|
|
78
|
+
readonly CyGb: "cy-GB";
|
|
79
|
+
readonly DaDk: "da-DK";
|
|
80
|
+
readonly DeDe: "de-DE";
|
|
81
|
+
readonly ElGr: "el-GR";
|
|
82
|
+
readonly EnAu: "en-AU";
|
|
83
|
+
readonly EnGb: "en-GB";
|
|
84
|
+
readonly EnIn: "en-IN";
|
|
85
|
+
readonly EnNz: "en-NZ";
|
|
86
|
+
readonly EnUs: "en-US";
|
|
87
|
+
readonly Es419: "es-419";
|
|
88
|
+
readonly EsEs: "es-ES";
|
|
89
|
+
readonly FaIr: "fa-IR";
|
|
90
|
+
readonly FiFi: "fi-FI";
|
|
91
|
+
readonly FilPh: "fil-PH";
|
|
92
|
+
readonly FrCa: "fr-CA";
|
|
93
|
+
readonly FrFr: "fr-FR";
|
|
94
|
+
readonly GlEs: "gl-ES";
|
|
95
|
+
readonly HeIl: "he-IL";
|
|
96
|
+
readonly HiIn: "hi-IN";
|
|
97
|
+
readonly HrHr: "hr-HR";
|
|
98
|
+
readonly HuHu: "hu-HU";
|
|
99
|
+
readonly HyAm: "hy-AM";
|
|
100
|
+
readonly IdId: "id-ID";
|
|
101
|
+
readonly IsIs: "is-IS";
|
|
102
|
+
readonly ItIt: "it-IT";
|
|
103
|
+
readonly JaJp: "ja-JP";
|
|
104
|
+
readonly KkKz: "kk-KZ";
|
|
105
|
+
readonly KnIn: "kn-IN";
|
|
106
|
+
readonly KoKr: "ko-KR";
|
|
107
|
+
readonly LtLt: "lt-LT";
|
|
108
|
+
readonly LvLv: "lv-LV";
|
|
109
|
+
readonly MkMk: "mk-MK";
|
|
110
|
+
readonly MrIn: "mr-IN";
|
|
111
|
+
readonly MsMy: "ms-MY";
|
|
112
|
+
readonly NeNp: "ne-NP";
|
|
113
|
+
readonly NlBe: "nl-BE";
|
|
114
|
+
readonly NlNl: "nl-NL";
|
|
115
|
+
readonly NoNo: "no-NO";
|
|
116
|
+
readonly PlPl: "pl-PL";
|
|
117
|
+
readonly PtBr: "pt-BR";
|
|
118
|
+
readonly PtPt: "pt-PT";
|
|
119
|
+
readonly RoRo: "ro-RO";
|
|
120
|
+
readonly RuRu: "ru-RU";
|
|
121
|
+
readonly SkSk: "sk-SK";
|
|
122
|
+
readonly SlSi: "sl-SI";
|
|
123
|
+
readonly SrRs: "sr-RS";
|
|
124
|
+
readonly SvSe: "sv-SE";
|
|
125
|
+
readonly SwKe: "sw-KE";
|
|
126
|
+
readonly TaIn: "ta-IN";
|
|
127
|
+
readonly ThTh: "th-TH";
|
|
128
|
+
readonly TrTr: "tr-TR";
|
|
129
|
+
readonly UkUa: "uk-UA";
|
|
130
|
+
readonly UrIn: "ur-IN";
|
|
131
|
+
readonly ViVn: "vi-VN";
|
|
132
|
+
readonly YueCn: "yue-CN";
|
|
133
|
+
readonly ZhCn: "zh-CN";
|
|
134
|
+
};
|
|
135
|
+
type Language = (typeof Language)[keyof typeof Language];
|
|
67
136
|
}
|
|
@@ -30,4 +30,70 @@ var UpdateAgentRequest;
|
|
|
30
30
|
NoiseCancellation: "noise-cancellation",
|
|
31
31
|
NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation",
|
|
32
32
|
};
|
|
33
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
|
|
34
|
+
UpdateAgentRequest.Language = {
|
|
35
|
+
AfZa: "af-ZA",
|
|
36
|
+
ArSa: "ar-SA",
|
|
37
|
+
AzAz: "az-AZ",
|
|
38
|
+
BgBg: "bg-BG",
|
|
39
|
+
BsBa: "bs-BA",
|
|
40
|
+
CaEs: "ca-ES",
|
|
41
|
+
CsCz: "cs-CZ",
|
|
42
|
+
CyGb: "cy-GB",
|
|
43
|
+
DaDk: "da-DK",
|
|
44
|
+
DeDe: "de-DE",
|
|
45
|
+
ElGr: "el-GR",
|
|
46
|
+
EnAu: "en-AU",
|
|
47
|
+
EnGb: "en-GB",
|
|
48
|
+
EnIn: "en-IN",
|
|
49
|
+
EnNz: "en-NZ",
|
|
50
|
+
EnUs: "en-US",
|
|
51
|
+
Es419: "es-419",
|
|
52
|
+
EsEs: "es-ES",
|
|
53
|
+
FaIr: "fa-IR",
|
|
54
|
+
FiFi: "fi-FI",
|
|
55
|
+
FilPh: "fil-PH",
|
|
56
|
+
FrCa: "fr-CA",
|
|
57
|
+
FrFr: "fr-FR",
|
|
58
|
+
GlEs: "gl-ES",
|
|
59
|
+
HeIl: "he-IL",
|
|
60
|
+
HiIn: "hi-IN",
|
|
61
|
+
HrHr: "hr-HR",
|
|
62
|
+
HuHu: "hu-HU",
|
|
63
|
+
HyAm: "hy-AM",
|
|
64
|
+
IdId: "id-ID",
|
|
65
|
+
IsIs: "is-IS",
|
|
66
|
+
ItIt: "it-IT",
|
|
67
|
+
JaJp: "ja-JP",
|
|
68
|
+
KkKz: "kk-KZ",
|
|
69
|
+
KnIn: "kn-IN",
|
|
70
|
+
KoKr: "ko-KR",
|
|
71
|
+
LtLt: "lt-LT",
|
|
72
|
+
LvLv: "lv-LV",
|
|
73
|
+
MkMk: "mk-MK",
|
|
74
|
+
MrIn: "mr-IN",
|
|
75
|
+
MsMy: "ms-MY",
|
|
76
|
+
NeNp: "ne-NP",
|
|
77
|
+
NlBe: "nl-BE",
|
|
78
|
+
NlNl: "nl-NL",
|
|
79
|
+
NoNo: "no-NO",
|
|
80
|
+
PlPl: "pl-PL",
|
|
81
|
+
PtBr: "pt-BR",
|
|
82
|
+
PtPt: "pt-PT",
|
|
83
|
+
RoRo: "ro-RO",
|
|
84
|
+
RuRu: "ru-RU",
|
|
85
|
+
SkSk: "sk-SK",
|
|
86
|
+
SlSi: "sl-SI",
|
|
87
|
+
SrRs: "sr-RS",
|
|
88
|
+
SvSe: "sv-SE",
|
|
89
|
+
SwKe: "sw-KE",
|
|
90
|
+
TaIn: "ta-IN",
|
|
91
|
+
ThTh: "th-TH",
|
|
92
|
+
TrTr: "tr-TR",
|
|
93
|
+
UkUa: "uk-UA",
|
|
94
|
+
UrIn: "ur-IN",
|
|
95
|
+
ViVn: "vi-VN",
|
|
96
|
+
YueCn: "yue-CN",
|
|
97
|
+
ZhCn: "zh-CN",
|
|
98
|
+
};
|
|
33
99
|
})(UpdateAgentRequest || (exports.UpdateAgentRequest = UpdateAgentRequest = {}));
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from "./agentSignup/client/requests/index.js";
|
|
2
|
-
export * as agentSignup from "./agentSignup/index.js";
|
|
3
1
|
export * from "./agents/client/requests/index.js";
|
|
4
2
|
export * as agents from "./agents/index.js";
|
|
5
3
|
export * from "./agentWebhooks/client/requests/index.js";
|
|
@@ -12,12 +10,12 @@ export * from "./contacts/client/requests/index.js";
|
|
|
12
10
|
export * as contacts from "./contacts/index.js";
|
|
13
11
|
export * from "./conversations/client/requests/index.js";
|
|
14
12
|
export * as conversations from "./conversations/index.js";
|
|
15
|
-
export * from "./integrations/client/requests/index.js";
|
|
16
|
-
export * as integrations from "./integrations/index.js";
|
|
17
13
|
export * from "./messages/client/requests/index.js";
|
|
18
14
|
export * as messages from "./messages/index.js";
|
|
19
15
|
export * from "./numbers/client/requests/index.js";
|
|
20
16
|
export * as numbers from "./numbers/index.js";
|
|
17
|
+
export * from "./registration/client/requests/index.js";
|
|
18
|
+
export * as registration from "./registration/index.js";
|
|
21
19
|
export * from "./usage/client/requests/index.js";
|
|
22
20
|
export * as usage from "./usage/index.js";
|
|
23
21
|
export * from "./usage/types/index.js";
|
|
@@ -36,9 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.usage = exports.
|
|
40
|
-
__exportStar(require("./agentSignup/client/requests/index.js"), exports);
|
|
41
|
-
exports.agentSignup = __importStar(require("./agentSignup/index.js"));
|
|
39
|
+
exports.webhooks = exports.usage = exports.registration = exports.numbers = exports.messages = exports.conversations = exports.contacts = exports.contactCards = exports.calls = exports.agentWebhooks = exports.agents = void 0;
|
|
42
40
|
__exportStar(require("./agents/client/requests/index.js"), exports);
|
|
43
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
44
42
|
__exportStar(require("./agentWebhooks/client/requests/index.js"), exports);
|
|
@@ -51,12 +49,12 @@ __exportStar(require("./contacts/client/requests/index.js"), exports);
|
|
|
51
49
|
exports.contacts = __importStar(require("./contacts/index.js"));
|
|
52
50
|
__exportStar(require("./conversations/client/requests/index.js"), exports);
|
|
53
51
|
exports.conversations = __importStar(require("./conversations/index.js"));
|
|
54
|
-
__exportStar(require("./integrations/client/requests/index.js"), exports);
|
|
55
|
-
exports.integrations = __importStar(require("./integrations/index.js"));
|
|
56
52
|
__exportStar(require("./messages/client/requests/index.js"), exports);
|
|
57
53
|
exports.messages = __importStar(require("./messages/index.js"));
|
|
58
54
|
__exportStar(require("./numbers/client/requests/index.js"), exports);
|
|
59
55
|
exports.numbers = __importStar(require("./numbers/index.js"));
|
|
56
|
+
__exportStar(require("./registration/client/requests/index.js"), exports);
|
|
57
|
+
exports.registration = __importStar(require("./registration/index.js"));
|
|
60
58
|
__exportStar(require("./usage/client/requests/index.js"), exports);
|
|
61
59
|
exports.usage = __importStar(require("./usage/index.js"));
|
|
62
60
|
__exportStar(require("./usage/types/index.js"), exports);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as AgentPhone from "../../../index.js";
|
|
5
|
+
export declare namespace RegistrationClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class RegistrationClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<RegistrationClient.Options>;
|
|
12
|
+
constructor(options?: RegistrationClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Submit an A2P 10DLC registration to enable outbound SMS on your account.
|
|
15
|
+
*
|
|
16
|
+
* US carriers require 10DLC registration before your AI agent can send text messages. This endpoint accepts both `sole_proprietor` and `standard_brand` registration types.
|
|
17
|
+
*
|
|
18
|
+
* ### How it works
|
|
19
|
+
*
|
|
20
|
+
* 1. Submit your registration details via this endpoint
|
|
21
|
+
* 2. We validate your submission and flag any issues (RED = blocked, YELLOW = warning)
|
|
22
|
+
* 3. On success, you receive a Stripe payment URL to pay the one-time registration fee
|
|
23
|
+
* 4. After payment, we submit your registration to the carriers on your behalf
|
|
24
|
+
* 5. Carrier approval typically takes 7-10 business days
|
|
25
|
+
*
|
|
26
|
+
* ### Registration types
|
|
27
|
+
*
|
|
28
|
+
* - **`sole_proprietor`** — For individuals or small businesses. Simpler requirements, fewer fields.
|
|
29
|
+
* - **`standard_brand`** — For established businesses. Requires `business_name`, `privacy_policy_url`, `terms_of_service_url`, `sample_message_1`, and `sample_message_2`.
|
|
30
|
+
*
|
|
31
|
+
* ### Opt-in image
|
|
32
|
+
*
|
|
33
|
+
* `opt_in_image_url` must be a publicly accessible HTTPS URL to a screenshot showing how users opt in to receive messages from you (e.g. a consent checkbox on your signup form). Supports PNG, JPG, WEBP, and GIF up to 2MB. Google Drive links (`drive.google.com/file/d/.../view`) are automatically converted if the file is shared publicly.
|
|
34
|
+
*
|
|
35
|
+
* ### Re-submitting
|
|
36
|
+
*
|
|
37
|
+
* If you've already submitted but haven't completed payment, calling this endpoint again returns the payment URL without re-sending the registration email.
|
|
38
|
+
*
|
|
39
|
+
* @param {AgentPhone.RegistrationRequest} request
|
|
40
|
+
* @param {RegistrationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link AgentPhone.UnprocessableEntityError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.registration.registerA2P({
|
|
46
|
+
* registration_type: "registration_type",
|
|
47
|
+
* first_name: "first_name",
|
|
48
|
+
* last_name: "last_name",
|
|
49
|
+
* email: "email",
|
|
50
|
+
* phone_number: "phone_number",
|
|
51
|
+
* street_address: "street_address",
|
|
52
|
+
* city: "city",
|
|
53
|
+
* state: "state",
|
|
54
|
+
* zip_code: "zip_code",
|
|
55
|
+
* use_case_description: "use_case_description",
|
|
56
|
+
* opt_in_image_url: "opt_in_image_url"
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
registerA2P(request: AgentPhone.RegistrationRequest, requestOptions?: RegistrationClient.RequestOptions): core.HttpResponsePromise<AgentPhone.RegistrationResponse>;
|
|
60
|
+
private __registerA2P;
|
|
61
|
+
}
|