phonic 0.30.32 → 0.30.34
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 +2 -2
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/agents/client/Client.d.ts +47 -12
- package/dist/cjs/api/resources/agents/client/Client.js +119 -18
- package/dist/cjs/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.ts +23 -1
- package/dist/cjs/api/resources/agents/client/requests/AgentsCreateRequest.d.ts +12 -4
- package/dist/cjs/api/resources/agents/client/requests/AgentsDeleteCustomPhoneNumberRequest.d.ts +16 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentsDeleteCustomPhoneNumberRequest.js +5 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentsUpdatePhoneNumberRequest.d.ts +38 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentsUpdatePhoneNumberRequest.js +5 -0
- package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +14 -6
- package/dist/cjs/api/resources/agents/client/requests/UpsertAgentRequest.d.ts +2 -2
- package/dist/cjs/api/resources/agents/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/agents/types/AgentsDeleteCustomPhoneNumberResponse.d.ts +6 -0
- package/dist/cjs/api/resources/agents/types/AgentsDeleteCustomPhoneNumberResponse.js +5 -0
- package/dist/cjs/api/resources/agents/types/AgentsUpdatePhoneNumberResponse.d.ts +6 -0
- package/dist/cjs/api/resources/agents/types/AgentsUpdatePhoneNumberResponse.js +5 -0
- package/dist/cjs/api/resources/agents/types/index.d.ts +2 -1
- package/dist/cjs/api/resources/agents/types/index.js +2 -1
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/conversations/client/Client.js +1 -1
- package/dist/cjs/api/resources/conversations/client/requests/OutboundCallRequest.d.ts +1 -1
- package/dist/cjs/api/types/Agent.d.ts +8 -0
- package/dist/cjs/api/types/CreateAgentRequest.d.ts +11 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/agents/client/Client.d.mts +47 -12
- package/dist/esm/api/resources/agents/client/Client.mjs +119 -18
- package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.mts +23 -1
- package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.d.mts +12 -4
- package/dist/esm/api/resources/agents/client/requests/AgentsDeleteCustomPhoneNumberRequest.d.mts +16 -0
- package/dist/esm/api/resources/agents/client/requests/AgentsDeleteCustomPhoneNumberRequest.mjs +4 -0
- package/dist/esm/api/resources/agents/client/requests/AgentsUpdatePhoneNumberRequest.d.mts +38 -0
- package/dist/esm/api/resources/agents/client/requests/AgentsUpdatePhoneNumberRequest.mjs +4 -0
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +14 -6
- package/dist/esm/api/resources/agents/client/requests/UpsertAgentRequest.d.mts +2 -2
- package/dist/esm/api/resources/agents/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/agents/types/AgentsDeleteCustomPhoneNumberResponse.d.mts +6 -0
- package/dist/esm/api/resources/agents/types/AgentsDeleteCustomPhoneNumberResponse.mjs +4 -0
- package/dist/esm/api/resources/agents/types/AgentsUpdatePhoneNumberResponse.d.mts +6 -0
- package/dist/esm/api/resources/agents/types/AgentsUpdatePhoneNumberResponse.mjs +4 -0
- package/dist/esm/api/resources/agents/types/index.d.mts +2 -1
- package/dist/esm/api/resources/agents/types/index.mjs +2 -1
- package/dist/esm/api/resources/conversations/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/conversations/client/Client.mjs +1 -1
- package/dist/esm/api/resources/conversations/client/requests/OutboundCallRequest.d.mts +1 -1
- package/dist/esm/api/types/Agent.d.mts +8 -0
- package/dist/esm/api/types/CreateAgentRequest.d.mts +11 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +99 -11
|
@@ -9,7 +9,7 @@ import * as Phonic from "../../../../index.mjs";
|
|
|
9
9
|
* name: "updated-support-agent",
|
|
10
10
|
* phone_number: "assign-automatically",
|
|
11
11
|
* timezone: "America/Los_Angeles",
|
|
12
|
-
* voice_id: "
|
|
12
|
+
* voice_id: "sabrina",
|
|
13
13
|
* audio_speed: 1,
|
|
14
14
|
* background_noise_level: 0,
|
|
15
15
|
* generate_welcome_message: false,
|
|
@@ -17,7 +17,7 @@ import * as Phonic from "../../../../index.mjs";
|
|
|
17
17
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
18
18
|
* template_variables: {
|
|
19
19
|
* "customer_name": {
|
|
20
|
-
* default_value:
|
|
20
|
+
* default_value: "David"
|
|
21
21
|
* },
|
|
22
22
|
* "subject": {
|
|
23
23
|
* default_value: "Chess"
|
|
@@ -42,7 +42,7 @@ export interface UpdateAgentRequest {
|
|
|
42
42
|
project?: string;
|
|
43
43
|
/** The name of the agent. Can only contain lowercase letters, numbers and hyphens. Must be unique within the project. */
|
|
44
44
|
name?: string;
|
|
45
|
-
phone_number
|
|
45
|
+
phone_number: UpdateAgentRequest.PhoneNumber | null;
|
|
46
46
|
/** The custom phone number to use for the agent in E.164 format (e.g., +1234567890). This field is deprecated. Use `custom_phone_numbers` instead. */
|
|
47
47
|
custom_phone_number?: string | null;
|
|
48
48
|
/** Array of custom phone numbers in E.164 format (e.g., ["+1234567890", "+0987654321"]). The agent will be able to receive phone calls on any of these numbers. Required when `phone_number` is set to `"custom"`. All phone numbers must be unique. */
|
|
@@ -81,12 +81,20 @@ export interface UpdateAgentRequest {
|
|
|
81
81
|
languages?: Phonic.LanguageCode[];
|
|
82
82
|
/** These words, or short phrases, will be more accurately recognized by the agent. */
|
|
83
83
|
boosted_keywords?: string[];
|
|
84
|
-
/** When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint
|
|
84
|
+
/** When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint to get configuration options. */
|
|
85
85
|
configuration_endpoint?: UpdateAgentRequest.ConfigurationEndpoint | null;
|
|
86
86
|
/** Float between 0.0 and 1.0 representing the percentage of inbound calls handled by Agent. Requires `phone_number` to be set when less than 1.0. */
|
|
87
87
|
inbound_rollout?: number;
|
|
88
88
|
/** E.164 formatted phone number where non-agent calls will be forwarded. Required when `inbound_rollout < 1.0`, must be `null` when `inbound_rollout = 1.0`. */
|
|
89
89
|
inbound_rollout_forward_phone_number?: string | null;
|
|
90
|
+
/** Voice activity detection prebuffer duration in milliseconds. */
|
|
91
|
+
vad_prebuffer_duration_ms?: number;
|
|
92
|
+
/** Minimum speech duration for voice activity detection in milliseconds. */
|
|
93
|
+
vad_min_speech_duration_ms?: number;
|
|
94
|
+
/** Minimum silence duration for voice activity detection in milliseconds. */
|
|
95
|
+
vad_min_silence_duration_ms?: number;
|
|
96
|
+
/** Voice activity detection threshold. */
|
|
97
|
+
vad_threshold?: number;
|
|
90
98
|
}
|
|
91
99
|
export declare namespace UpdateAgentRequest {
|
|
92
100
|
type PhoneNumber = "assign-automatically" | "custom";
|
|
@@ -115,7 +123,7 @@ export declare namespace UpdateAgentRequest {
|
|
|
115
123
|
};
|
|
116
124
|
namespace TemplateVariables {
|
|
117
125
|
interface Value {
|
|
118
|
-
default_value: string
|
|
126
|
+
default_value: string;
|
|
119
127
|
is_boosted_keyword?: boolean;
|
|
120
128
|
}
|
|
121
129
|
}
|
|
@@ -127,7 +135,7 @@ export declare namespace UpdateAgentRequest {
|
|
|
127
135
|
| string;
|
|
128
136
|
}
|
|
129
137
|
/**
|
|
130
|
-
* When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint
|
|
138
|
+
* When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint to get configuration options.
|
|
131
139
|
*/
|
|
132
140
|
interface ConfigurationEndpoint {
|
|
133
141
|
/** URL to call */
|
|
@@ -9,7 +9,7 @@ import * as Phonic from "../../../../index.mjs";
|
|
|
9
9
|
* name: "support-agent",
|
|
10
10
|
* phone_number: "assign-automatically",
|
|
11
11
|
* timezone: "America/Los_Angeles",
|
|
12
|
-
* voice_id: "
|
|
12
|
+
* voice_id: "sabrina",
|
|
13
13
|
* audio_speed: 1,
|
|
14
14
|
* background_noise_level: 0,
|
|
15
15
|
* generate_welcome_message: false,
|
|
@@ -17,7 +17,7 @@ import * as Phonic from "../../../../index.mjs";
|
|
|
17
17
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
18
18
|
* template_variables: {
|
|
19
19
|
* "customer_name": {
|
|
20
|
-
* default_value:
|
|
20
|
+
* default_value: "David"
|
|
21
21
|
* },
|
|
22
22
|
* "subject": {
|
|
23
23
|
* default_value: "Chess"
|
|
@@ -5,4 +5,5 @@ export { type AgentsGetRequest } from "./AgentsGetRequest.mjs";
|
|
|
5
5
|
export { type AgentsDeleteRequest } from "./AgentsDeleteRequest.mjs";
|
|
6
6
|
export { type UpdateAgentRequest } from "./UpdateAgentRequest.mjs";
|
|
7
7
|
export { type AgentsAddCustomPhoneNumberRequest } from "./AgentsAddCustomPhoneNumberRequest.mjs";
|
|
8
|
-
export { type
|
|
8
|
+
export { type AgentsDeleteCustomPhoneNumberRequest } from "./AgentsDeleteCustomPhoneNumberRequest.mjs";
|
|
9
|
+
export { type AgentsUpdatePhoneNumberRequest } from "./AgentsUpdatePhoneNumberRequest.mjs";
|
|
@@ -5,4 +5,5 @@ export * from "./AgentsGetResponse.mjs";
|
|
|
5
5
|
export * from "./AgentsDeleteResponse.mjs";
|
|
6
6
|
export * from "./AgentsUpdateResponse.mjs";
|
|
7
7
|
export * from "./AgentsAddCustomPhoneNumberResponse.mjs";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./AgentsDeleteCustomPhoneNumberResponse.mjs";
|
|
9
|
+
export * from "./AgentsUpdatePhoneNumberResponse.mjs";
|
|
@@ -5,4 +5,5 @@ export * from "./AgentsGetResponse.mjs";
|
|
|
5
5
|
export * from "./AgentsDeleteResponse.mjs";
|
|
6
6
|
export * from "./AgentsUpdateResponse.mjs";
|
|
7
7
|
export * from "./AgentsAddCustomPhoneNumberResponse.mjs";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./AgentsDeleteCustomPhoneNumberResponse.mjs";
|
|
9
|
+
export * from "./AgentsUpdatePhoneNumberResponse.mjs";
|
|
@@ -201,7 +201,7 @@ export declare class Conversations {
|
|
|
201
201
|
* "customer_name": "David",
|
|
202
202
|
* "subject": "Chess"
|
|
203
203
|
* },
|
|
204
|
-
* voice_id: "
|
|
204
|
+
* voice_id: "sabrina",
|
|
205
205
|
* no_input_poke_sec: 30,
|
|
206
206
|
* no_input_poke_text: "Are you still there?",
|
|
207
207
|
* no_input_end_conversation_sec: 180,
|
|
@@ -673,7 +673,7 @@ export class Conversations {
|
|
|
673
673
|
* "customer_name": "David",
|
|
674
674
|
* "subject": "Chess"
|
|
675
675
|
* },
|
|
676
|
-
* voice_id: "
|
|
676
|
+
* voice_id: "sabrina",
|
|
677
677
|
* no_input_poke_sec: 30,
|
|
678
678
|
* no_input_poke_text: "Are you still there?",
|
|
679
679
|
* no_input_end_conversation_sec: 180,
|
|
@@ -14,7 +14,7 @@ import * as Phonic from "../../../../index.mjs";
|
|
|
14
14
|
* "customer_name": "David",
|
|
15
15
|
* "subject": "Chess"
|
|
16
16
|
* },
|
|
17
|
-
* voice_id: "
|
|
17
|
+
* voice_id: "sabrina",
|
|
18
18
|
* no_input_poke_sec: 30,
|
|
19
19
|
* no_input_poke_text: "Are you still there?",
|
|
20
20
|
* no_input_end_conversation_sec: 180,
|
|
@@ -53,6 +53,14 @@ export interface Agent {
|
|
|
53
53
|
inbound_rollout?: number;
|
|
54
54
|
/** E.164 formatted phone number where non-agent calls will be forwarded. Required when `inbound_rollout < 1.0`, must be `null` when `inbound_rollout = 1.0`. */
|
|
55
55
|
inbound_rollout_forward_phone_number?: string | null;
|
|
56
|
+
/** Voice activity detection prebuffer duration in milliseconds. */
|
|
57
|
+
vad_prebuffer_duration_ms?: number;
|
|
58
|
+
/** Minimum speech duration for voice activity detection in milliseconds. */
|
|
59
|
+
vad_min_speech_duration_ms?: number;
|
|
60
|
+
/** Minimum silence duration for voice activity detection in milliseconds. */
|
|
61
|
+
vad_min_silence_duration_ms?: number;
|
|
62
|
+
/** Voice activity detection threshold. */
|
|
63
|
+
vad_threshold?: number;
|
|
56
64
|
}
|
|
57
65
|
export declare namespace Agent {
|
|
58
66
|
/**
|
|
@@ -44,12 +44,20 @@ export interface CreateAgentRequest {
|
|
|
44
44
|
languages?: Phonic.LanguageCode[];
|
|
45
45
|
/** These words, or short phrases, will be more accurately recognized by the agent. */
|
|
46
46
|
boosted_keywords?: string[];
|
|
47
|
-
/** When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint
|
|
47
|
+
/** When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint to get configuration options. */
|
|
48
48
|
configuration_endpoint?: CreateAgentRequest.ConfigurationEndpoint | null;
|
|
49
49
|
/** Float between 0.0 and 1.0 representing the percentage of inbound calls handled by Agent. Defaults to `1.0`. Requires `phone_number` to be set when less than 1.0. */
|
|
50
50
|
inbound_rollout?: number;
|
|
51
51
|
/** E.164 formatted phone number where non-agent calls will be forwarded. Required when `inbound_rollout < 1.0`, must be `null` when `inbound_rollout = 1.0`. Defaults to `null`. */
|
|
52
52
|
inbound_rollout_forward_phone_number?: string | null;
|
|
53
|
+
/** Voice activity detection prebuffer duration in milliseconds. */
|
|
54
|
+
vad_prebuffer_duration_ms?: number;
|
|
55
|
+
/** Minimum speech duration for voice activity detection in milliseconds. */
|
|
56
|
+
vad_min_speech_duration_ms?: number;
|
|
57
|
+
/** Minimum silence duration for voice activity detection in milliseconds. */
|
|
58
|
+
vad_min_silence_duration_ms?: number;
|
|
59
|
+
/** Voice activity detection threshold. */
|
|
60
|
+
vad_threshold?: number;
|
|
53
61
|
}
|
|
54
62
|
export declare namespace CreateAgentRequest {
|
|
55
63
|
type PhoneNumber = "assign-automatically" | "custom";
|
|
@@ -78,7 +86,7 @@ export declare namespace CreateAgentRequest {
|
|
|
78
86
|
};
|
|
79
87
|
namespace TemplateVariables {
|
|
80
88
|
interface Value {
|
|
81
|
-
default_value: string
|
|
89
|
+
default_value: string;
|
|
82
90
|
is_boosted_keyword?: boolean;
|
|
83
91
|
}
|
|
84
92
|
}
|
|
@@ -90,7 +98,7 @@ export declare namespace CreateAgentRequest {
|
|
|
90
98
|
| string;
|
|
91
99
|
}
|
|
92
100
|
/**
|
|
93
|
-
* When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint
|
|
101
|
+
* When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint to get configuration options.
|
|
94
102
|
*/
|
|
95
103
|
interface ConfigurationEndpoint {
|
|
96
104
|
/** URL to call */
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.30.
|
|
1
|
+
export declare const SDK_VERSION = "0.30.34";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.30.
|
|
1
|
+
export const SDK_VERSION = "0.30.34";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -98,7 +98,7 @@ await client.agents.create({
|
|
|
98
98
|
name: "support-agent",
|
|
99
99
|
phone_number: "assign-automatically",
|
|
100
100
|
timezone: "America/Los_Angeles",
|
|
101
|
-
voice_id: "
|
|
101
|
+
voice_id: "sabrina",
|
|
102
102
|
audio_speed: 1,
|
|
103
103
|
background_noise_level: 0,
|
|
104
104
|
generate_welcome_message: false,
|
|
@@ -106,7 +106,7 @@ await client.agents.create({
|
|
|
106
106
|
system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
107
107
|
template_variables: {
|
|
108
108
|
customer_name: {
|
|
109
|
-
default_value:
|
|
109
|
+
default_value: "David",
|
|
110
110
|
},
|
|
111
111
|
subject: {
|
|
112
112
|
default_value: "Chess",
|
|
@@ -192,7 +192,7 @@ await client.agents.upsert({
|
|
|
192
192
|
name: "support-agent",
|
|
193
193
|
phone_number: "assign-automatically",
|
|
194
194
|
timezone: "America/Los_Angeles",
|
|
195
|
-
voice_id: "
|
|
195
|
+
voice_id: "sabrina",
|
|
196
196
|
audio_speed: 1,
|
|
197
197
|
background_noise_level: 0,
|
|
198
198
|
generate_welcome_message: false,
|
|
@@ -200,7 +200,7 @@ await client.agents.upsert({
|
|
|
200
200
|
system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
201
201
|
template_variables: {
|
|
202
202
|
customer_name: {
|
|
203
|
-
default_value:
|
|
203
|
+
default_value: "David",
|
|
204
204
|
},
|
|
205
205
|
subject: {
|
|
206
206
|
default_value: "Chess",
|
|
@@ -432,7 +432,7 @@ await client.agents.update("nameOrId", {
|
|
|
432
432
|
name: "updated-support-agent",
|
|
433
433
|
phone_number: "assign-automatically",
|
|
434
434
|
timezone: "America/Los_Angeles",
|
|
435
|
-
voice_id: "
|
|
435
|
+
voice_id: "sabrina",
|
|
436
436
|
audio_speed: 1,
|
|
437
437
|
background_noise_level: 0,
|
|
438
438
|
generate_welcome_message: false,
|
|
@@ -440,7 +440,7 @@ await client.agents.update("nameOrId", {
|
|
|
440
440
|
system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
441
441
|
template_variables: {
|
|
442
442
|
customer_name: {
|
|
443
|
-
default_value:
|
|
443
|
+
default_value: "David",
|
|
444
444
|
},
|
|
445
445
|
subject: {
|
|
446
446
|
default_value: "Chess",
|
|
@@ -532,6 +532,13 @@ Adds a custom phone number to an agent. The user must configure their SIP trunk
|
|
|
532
532
|
await client.agents.addCustomPhoneNumber("nameOrId", {
|
|
533
533
|
project: "main",
|
|
534
534
|
phone_number: "+15551234567",
|
|
535
|
+
configuration_endpoint: {
|
|
536
|
+
url: "https://api.example.com/config",
|
|
537
|
+
headers: {
|
|
538
|
+
Authorization: "Bearer token123",
|
|
539
|
+
},
|
|
540
|
+
timeout_ms: 7000,
|
|
541
|
+
},
|
|
535
542
|
});
|
|
536
543
|
```
|
|
537
544
|
|
|
@@ -575,7 +582,81 @@ await client.agents.addCustomPhoneNumber("nameOrId", {
|
|
|
575
582
|
</dl>
|
|
576
583
|
</details>
|
|
577
584
|
|
|
578
|
-
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">
|
|
585
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">deleteCustomPhoneNumber</a>(nameOrId, { ...params }) -> Phonic.AgentsDeleteCustomPhoneNumberResponse</code></summary>
|
|
586
|
+
<dl>
|
|
587
|
+
<dd>
|
|
588
|
+
|
|
589
|
+
#### 📝 Description
|
|
590
|
+
|
|
591
|
+
<dl>
|
|
592
|
+
<dd>
|
|
593
|
+
|
|
594
|
+
<dl>
|
|
595
|
+
<dd>
|
|
596
|
+
|
|
597
|
+
Deletes a custom phone number from an agent.
|
|
598
|
+
|
|
599
|
+
</dd>
|
|
600
|
+
</dl>
|
|
601
|
+
</dd>
|
|
602
|
+
</dl>
|
|
603
|
+
|
|
604
|
+
#### 🔌 Usage
|
|
605
|
+
|
|
606
|
+
<dl>
|
|
607
|
+
<dd>
|
|
608
|
+
|
|
609
|
+
<dl>
|
|
610
|
+
<dd>
|
|
611
|
+
|
|
612
|
+
```typescript
|
|
613
|
+
await client.agents.deleteCustomPhoneNumber("nameOrId", {
|
|
614
|
+
project: "main",
|
|
615
|
+
phone_number: "+15551234567",
|
|
616
|
+
});
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
</dd>
|
|
620
|
+
</dl>
|
|
621
|
+
</dd>
|
|
622
|
+
</dl>
|
|
623
|
+
|
|
624
|
+
#### ⚙️ Parameters
|
|
625
|
+
|
|
626
|
+
<dl>
|
|
627
|
+
<dd>
|
|
628
|
+
|
|
629
|
+
<dl>
|
|
630
|
+
<dd>
|
|
631
|
+
|
|
632
|
+
**nameOrId:** `string` — The name or the ID of the agent.
|
|
633
|
+
|
|
634
|
+
</dd>
|
|
635
|
+
</dl>
|
|
636
|
+
|
|
637
|
+
<dl>
|
|
638
|
+
<dd>
|
|
639
|
+
|
|
640
|
+
**request:** `Phonic.AgentsDeleteCustomPhoneNumberRequest`
|
|
641
|
+
|
|
642
|
+
</dd>
|
|
643
|
+
</dl>
|
|
644
|
+
|
|
645
|
+
<dl>
|
|
646
|
+
<dd>
|
|
647
|
+
|
|
648
|
+
**requestOptions:** `Agents.RequestOptions`
|
|
649
|
+
|
|
650
|
+
</dd>
|
|
651
|
+
</dl>
|
|
652
|
+
</dd>
|
|
653
|
+
</dl>
|
|
654
|
+
|
|
655
|
+
</dd>
|
|
656
|
+
</dl>
|
|
657
|
+
</details>
|
|
658
|
+
|
|
659
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">updatePhoneNumber</a>(nameOrId, { ...params }) -> Phonic.AgentsUpdatePhoneNumberResponse</code></summary>
|
|
579
660
|
<dl>
|
|
580
661
|
<dd>
|
|
581
662
|
|
|
@@ -587,7 +668,7 @@ await client.agents.addCustomPhoneNumber("nameOrId", {
|
|
|
587
668
|
<dl>
|
|
588
669
|
<dd>
|
|
589
670
|
|
|
590
|
-
|
|
671
|
+
Updates a phone number on an agent.
|
|
591
672
|
|
|
592
673
|
</dd>
|
|
593
674
|
</dl>
|
|
@@ -603,9 +684,16 @@ Removes a custom phone number from an agent.
|
|
|
603
684
|
<dd>
|
|
604
685
|
|
|
605
686
|
```typescript
|
|
606
|
-
await client.agents.
|
|
687
|
+
await client.agents.updatePhoneNumber("nameOrId", {
|
|
607
688
|
project: "main",
|
|
608
689
|
phone_number: "+15551234567",
|
|
690
|
+
configuration_endpoint: {
|
|
691
|
+
url: "https://api.example.com/config",
|
|
692
|
+
headers: {
|
|
693
|
+
Authorization: "Bearer token123",
|
|
694
|
+
},
|
|
695
|
+
timeout_ms: 7000,
|
|
696
|
+
},
|
|
609
697
|
});
|
|
610
698
|
```
|
|
611
699
|
|
|
@@ -630,7 +718,7 @@ await client.agents.removeCustomPhoneNumber("nameOrId", {
|
|
|
630
718
|
<dl>
|
|
631
719
|
<dd>
|
|
632
720
|
|
|
633
|
-
**request:** `Phonic.
|
|
721
|
+
**request:** `Phonic.AgentsUpdatePhoneNumberRequest`
|
|
634
722
|
|
|
635
723
|
</dd>
|
|
636
724
|
</dl>
|
|
@@ -2098,7 +2186,7 @@ await client.conversations.outboundCall({
|
|
|
2098
2186
|
customer_name: "David",
|
|
2099
2187
|
subject: "Chess",
|
|
2100
2188
|
},
|
|
2101
|
-
voice_id: "
|
|
2189
|
+
voice_id: "sabrina",
|
|
2102
2190
|
no_input_poke_sec: 30,
|
|
2103
2191
|
no_input_poke_text: "Are you still there?",
|
|
2104
2192
|
no_input_end_conversation_sec: 180,
|