@amigo-ai/platform-sdk 0.5.7 → 0.5.8
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/dist/types/generated/api.d.ts +6 -0
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +126 -22
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/agents.d.ts +102 -16
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +74 -22
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +16 -3
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +87 -31
- package/dist/types/resources/audit.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +42 -9
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +169 -65
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/compliance.d.ts +6 -6
- package/dist/types/resources/context-graphs.d.ts +974 -17
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +50 -13
- package/dist/types/resources/data-sources.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +49 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +379 -49
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/memory.d.ts +48 -4
- package/dist/types/resources/memory.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +189 -64
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +20 -7
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +46 -8
- package/dist/types/resources/phone-numbers.d.ts.map +1 -1
- package/dist/types/resources/recordings.d.ts +4 -4
- package/dist/types/resources/review-queue.d.ts +350 -49
- package/dist/types/resources/review-queue.d.ts.map +1 -1
- package/dist/types/resources/safety.d.ts +32 -6
- package/dist/types/resources/safety.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts +242 -47
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +404 -36
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +148 -20
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +117 -21
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +92 -64
- package/dist/types/resources/triggers.d.ts.map +1 -1
- package/dist/types/resources/webhook-destinations.d.ts +44 -20
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +26 -4
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +322 -121
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,101 +6,166 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
6
6
|
limit?: number;
|
|
7
7
|
offset?: number;
|
|
8
8
|
}): Promise<{
|
|
9
|
-
continuation_token?: number | null;
|
|
9
|
+
continuation_token?: number | null | undefined;
|
|
10
10
|
has_more: boolean;
|
|
11
|
-
items:
|
|
12
|
-
|
|
11
|
+
items: {
|
|
12
|
+
active_call_sid?: string | null | undefined;
|
|
13
|
+
avg_handle_time_seconds: number;
|
|
14
|
+
connection_method: "browser" | "phone";
|
|
15
|
+
created_at?: string | null | undefined;
|
|
16
|
+
email?: string | null | undefined;
|
|
17
|
+
id: string;
|
|
18
|
+
last_call_at?: string | null | undefined;
|
|
19
|
+
last_status_change?: string | null | undefined;
|
|
20
|
+
name?: string | null | undefined;
|
|
21
|
+
phone_number?: string | null | undefined;
|
|
22
|
+
role: "operator" | "supervisor" | "admin";
|
|
23
|
+
skills: string[];
|
|
24
|
+
status: "online" | "busy" | "offline";
|
|
25
|
+
total_escalations_handled: number;
|
|
26
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
27
|
+
updated_at?: string | null | undefined;
|
|
28
|
+
workspace_id: string;
|
|
29
|
+
}[];
|
|
30
|
+
total?: number | null | undefined;
|
|
13
31
|
} & import("../index.js").ResponseMetadata>;
|
|
14
32
|
listAutoPaging(params?: {
|
|
15
33
|
status?: string;
|
|
16
34
|
limit?: number;
|
|
17
35
|
offset?: number;
|
|
18
36
|
}): AsyncGenerator<{
|
|
19
|
-
active_call_sid?: string | null;
|
|
37
|
+
active_call_sid?: string | null | undefined;
|
|
20
38
|
avg_handle_time_seconds: number;
|
|
21
39
|
connection_method: "browser" | "phone";
|
|
22
|
-
created_at?: string | null;
|
|
23
|
-
email?: string | null;
|
|
40
|
+
created_at?: string | null | undefined;
|
|
41
|
+
email?: string | null | undefined;
|
|
24
42
|
id: string;
|
|
25
|
-
last_call_at?: string | null;
|
|
26
|
-
last_status_change?: string | null;
|
|
27
|
-
name?: string | null;
|
|
28
|
-
phone_number?: string | null;
|
|
43
|
+
last_call_at?: string | null | undefined;
|
|
44
|
+
last_status_change?: string | null | undefined;
|
|
45
|
+
name?: string | null | undefined;
|
|
46
|
+
phone_number?: string | null | undefined;
|
|
29
47
|
role: "operator" | "supervisor" | "admin";
|
|
30
48
|
skills: string[];
|
|
31
49
|
status: "online" | "busy" | "offline";
|
|
32
50
|
total_escalations_handled: number;
|
|
33
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
34
|
-
updated_at?: string | null;
|
|
51
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
52
|
+
updated_at?: string | null | undefined;
|
|
35
53
|
workspace_id: string;
|
|
36
54
|
}, any, any>;
|
|
37
55
|
create(body: components['schemas']['CreateOperatorRequest']): Promise<{
|
|
38
|
-
active_call_sid?: string | null;
|
|
56
|
+
active_call_sid?: string | null | undefined;
|
|
39
57
|
avg_handle_time_seconds: number;
|
|
40
58
|
connection_method: "browser" | "phone";
|
|
41
|
-
created_at?: string | null;
|
|
42
|
-
email?: string | null;
|
|
59
|
+
created_at?: string | null | undefined;
|
|
60
|
+
email?: string | null | undefined;
|
|
43
61
|
id: string;
|
|
44
|
-
last_call_at?: string | null;
|
|
45
|
-
last_status_change?: string | null;
|
|
46
|
-
name?: string | null;
|
|
47
|
-
phone_number?: string | null;
|
|
62
|
+
last_call_at?: string | null | undefined;
|
|
63
|
+
last_status_change?: string | null | undefined;
|
|
64
|
+
name?: string | null | undefined;
|
|
65
|
+
phone_number?: string | null | undefined;
|
|
48
66
|
role: "operator" | "supervisor" | "admin";
|
|
49
67
|
skills: string[];
|
|
50
68
|
status: "online" | "busy" | "offline";
|
|
51
69
|
total_escalations_handled: number;
|
|
52
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
53
|
-
updated_at?: string | null;
|
|
70
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
71
|
+
updated_at?: string | null | undefined;
|
|
54
72
|
workspace_id: string;
|
|
55
73
|
} & import("../index.js").ResponseMetadata>;
|
|
56
74
|
get(operatorId: string): Promise<{
|
|
57
|
-
active_call_sid?: string | null;
|
|
75
|
+
active_call_sid?: string | null | undefined;
|
|
58
76
|
avg_handle_time_seconds: number;
|
|
59
77
|
connection_method: "browser" | "phone";
|
|
60
|
-
created_at?: string | null;
|
|
61
|
-
email?: string | null;
|
|
78
|
+
created_at?: string | null | undefined;
|
|
79
|
+
email?: string | null | undefined;
|
|
62
80
|
id: string;
|
|
63
|
-
last_call_at?: string | null;
|
|
64
|
-
last_status_change?: string | null;
|
|
65
|
-
name?: string | null;
|
|
66
|
-
phone_number?: string | null;
|
|
81
|
+
last_call_at?: string | null | undefined;
|
|
82
|
+
last_status_change?: string | null | undefined;
|
|
83
|
+
name?: string | null | undefined;
|
|
84
|
+
phone_number?: string | null | undefined;
|
|
67
85
|
role: "operator" | "supervisor" | "admin";
|
|
68
86
|
skills: string[];
|
|
69
87
|
status: "online" | "busy" | "offline";
|
|
70
88
|
total_escalations_handled: number;
|
|
71
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
72
|
-
updated_at?: string | null;
|
|
89
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
90
|
+
updated_at?: string | null | undefined;
|
|
73
91
|
workspace_id: string;
|
|
74
92
|
} & import("../index.js").ResponseMetadata>;
|
|
75
93
|
/** Update an operator (name, role, status, etc.) */
|
|
76
94
|
update(operatorId: string, body: components['schemas']['UpdateOperatorRequest']): Promise<{
|
|
77
|
-
active_call_sid?: string | null;
|
|
95
|
+
active_call_sid?: string | null | undefined;
|
|
78
96
|
avg_handle_time_seconds: number;
|
|
79
97
|
connection_method: "browser" | "phone";
|
|
80
|
-
created_at?: string | null;
|
|
81
|
-
email?: string | null;
|
|
98
|
+
created_at?: string | null | undefined;
|
|
99
|
+
email?: string | null | undefined;
|
|
82
100
|
id: string;
|
|
83
|
-
last_call_at?: string | null;
|
|
84
|
-
last_status_change?: string | null;
|
|
85
|
-
name?: string | null;
|
|
86
|
-
phone_number?: string | null;
|
|
101
|
+
last_call_at?: string | null | undefined;
|
|
102
|
+
last_status_change?: string | null | undefined;
|
|
103
|
+
name?: string | null | undefined;
|
|
104
|
+
phone_number?: string | null | undefined;
|
|
87
105
|
role: "operator" | "supervisor" | "admin";
|
|
88
106
|
skills: string[];
|
|
89
107
|
status: "online" | "busy" | "offline";
|
|
90
108
|
total_escalations_handled: number;
|
|
91
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
92
|
-
updated_at?: string | null;
|
|
109
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
110
|
+
updated_at?: string | null | undefined;
|
|
93
111
|
workspace_id: string;
|
|
94
112
|
} & import("../index.js").ResponseMetadata>;
|
|
95
113
|
getDashboard(): Promise<{
|
|
96
114
|
active_escalations: number;
|
|
97
|
-
escalations_today:
|
|
98
|
-
|
|
99
|
-
|
|
115
|
+
escalations_today: {
|
|
116
|
+
avg_handle_time_seconds?: number | null | undefined;
|
|
117
|
+
avg_wait_seconds?: number | null | undefined;
|
|
118
|
+
completed?: number | undefined;
|
|
119
|
+
connected?: number | undefined;
|
|
120
|
+
requested?: number | undefined;
|
|
121
|
+
};
|
|
122
|
+
operators: {
|
|
123
|
+
busy: number;
|
|
124
|
+
offline: number;
|
|
125
|
+
online: number;
|
|
126
|
+
total: number;
|
|
127
|
+
};
|
|
128
|
+
recent_escalations: {
|
|
129
|
+
call_entity_id: string;
|
|
130
|
+
call_sid?: string | null | undefined;
|
|
131
|
+
caller_id?: string | null | undefined;
|
|
132
|
+
concept?: string | null | undefined;
|
|
133
|
+
connected_at?: string | null | undefined;
|
|
134
|
+
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
135
|
+
escalation_id?: string | null | undefined;
|
|
136
|
+
immediate: boolean;
|
|
137
|
+
operator_entity_id?: string | null | undefined;
|
|
138
|
+
operator_type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
139
|
+
phone_number?: string | null | undefined;
|
|
140
|
+
regulatory_basis?: string | null | undefined;
|
|
141
|
+
requested_at?: string | null | undefined;
|
|
142
|
+
risk_score?: number | null | undefined;
|
|
143
|
+
started_at?: string | null | undefined;
|
|
144
|
+
status: "none" | "requested" | "connected" | "handback" | "completed";
|
|
145
|
+
trigger?: string | null | undefined;
|
|
146
|
+
trigger_source?: string | null | undefined;
|
|
147
|
+
wait_seconds?: number | null | undefined;
|
|
148
|
+
}[];
|
|
100
149
|
workspace_id: string;
|
|
101
150
|
} & import("../index.js").ResponseMetadata>;
|
|
102
151
|
getQueue(): Promise<{
|
|
103
|
-
queue:
|
|
152
|
+
queue: {
|
|
153
|
+
brief_context?: string | null | undefined;
|
|
154
|
+
call_sid: string;
|
|
155
|
+
caller_id?: string | undefined;
|
|
156
|
+
current_emotion?: string | null | undefined;
|
|
157
|
+
current_state?: string | undefined;
|
|
158
|
+
current_valence?: number | null | undefined;
|
|
159
|
+
direction?: "inbound" | "outbound" | "playground" | "simulated" | "test" | undefined;
|
|
160
|
+
entity_name?: string | null | undefined;
|
|
161
|
+
escalation_active?: boolean | undefined;
|
|
162
|
+
priority_reasons?: ("high_risk" | "long_wait" | "negative_emotion" | "safety_concern" | "looping")[] | undefined;
|
|
163
|
+
priority_score: number;
|
|
164
|
+
risk_score?: number | null | undefined;
|
|
165
|
+
service_id?: string | undefined;
|
|
166
|
+
turn_count?: number | undefined;
|
|
167
|
+
wait_seconds?: number | undefined;
|
|
168
|
+
}[];
|
|
104
169
|
total_active: number;
|
|
105
170
|
workspace_id: string;
|
|
106
171
|
} & import("../index.js").ResponseMetadata>;
|
|
@@ -109,10 +174,21 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
109
174
|
limit?: number;
|
|
110
175
|
offset?: number;
|
|
111
176
|
}): Promise<{
|
|
112
|
-
continuation_token?: number | null;
|
|
177
|
+
continuation_token?: number | null | undefined;
|
|
113
178
|
has_more: boolean;
|
|
114
|
-
items:
|
|
115
|
-
|
|
179
|
+
items: {
|
|
180
|
+
confidence: number;
|
|
181
|
+
created_at?: string | null | undefined;
|
|
182
|
+
data: {
|
|
183
|
+
[x: string]: unknown;
|
|
184
|
+
};
|
|
185
|
+
event_type: string;
|
|
186
|
+
id: string;
|
|
187
|
+
ingested_at?: string | null | undefined;
|
|
188
|
+
source: string;
|
|
189
|
+
workspace_id: string;
|
|
190
|
+
}[];
|
|
191
|
+
total?: number | null | undefined;
|
|
116
192
|
} & import("../index.js").ResponseMetadata>;
|
|
117
193
|
getEscalationsAutoPaging(params?: {
|
|
118
194
|
status?: string;
|
|
@@ -120,27 +196,50 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
120
196
|
offset?: number;
|
|
121
197
|
}): AsyncGenerator<{
|
|
122
198
|
confidence: number;
|
|
123
|
-
created_at?: string | null;
|
|
199
|
+
created_at?: string | null | undefined;
|
|
124
200
|
data: {
|
|
125
|
-
[
|
|
201
|
+
[x: string]: unknown;
|
|
126
202
|
};
|
|
127
203
|
event_type: string;
|
|
128
204
|
id: string;
|
|
129
|
-
ingested_at?: string | null;
|
|
205
|
+
ingested_at?: string | null | undefined;
|
|
130
206
|
source: string;
|
|
131
207
|
workspace_id: string;
|
|
132
208
|
}, any, any>;
|
|
133
209
|
getActiveEscalations(): Promise<{
|
|
134
|
-
continuation_token?: number | null;
|
|
210
|
+
continuation_token?: number | null | undefined;
|
|
135
211
|
has_more: boolean;
|
|
136
|
-
items:
|
|
137
|
-
|
|
212
|
+
items: {
|
|
213
|
+
call_entity_id: string;
|
|
214
|
+
call_sid?: string | null | undefined;
|
|
215
|
+
caller_id?: string | null | undefined;
|
|
216
|
+
concept?: string | null | undefined;
|
|
217
|
+
connected_at?: string | null | undefined;
|
|
218
|
+
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
219
|
+
escalation_id?: string | null | undefined;
|
|
220
|
+
immediate: boolean;
|
|
221
|
+
operator_entity_id?: string | null | undefined;
|
|
222
|
+
operator_type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
223
|
+
phone_number?: string | null | undefined;
|
|
224
|
+
regulatory_basis?: string | null | undefined;
|
|
225
|
+
requested_at?: string | null | undefined;
|
|
226
|
+
risk_score?: number | null | undefined;
|
|
227
|
+
started_at?: string | null | undefined;
|
|
228
|
+
status: "none" | "requested" | "connected" | "handback" | "completed";
|
|
229
|
+
trigger?: string | null | undefined;
|
|
230
|
+
trigger_source?: string | null | undefined;
|
|
231
|
+
wait_seconds?: number | null | undefined;
|
|
232
|
+
}[];
|
|
233
|
+
total?: number | null | undefined;
|
|
138
234
|
} & import("../index.js").ResponseMetadata>;
|
|
139
235
|
getEscalationStats(params?: {
|
|
140
236
|
period?: string;
|
|
141
237
|
group_by?: string;
|
|
142
238
|
}): Promise<{
|
|
143
|
-
buckets:
|
|
239
|
+
buckets: {
|
|
240
|
+
count: number;
|
|
241
|
+
key: string;
|
|
242
|
+
}[];
|
|
144
243
|
group_by: string;
|
|
145
244
|
period: string;
|
|
146
245
|
total: number;
|
|
@@ -157,7 +256,14 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
157
256
|
busy: number;
|
|
158
257
|
offline: number;
|
|
159
258
|
online: number;
|
|
160
|
-
operators:
|
|
259
|
+
operators: {
|
|
260
|
+
avg_handle_time_seconds: number;
|
|
261
|
+
last_call_at?: string | null | undefined;
|
|
262
|
+
name?: string | null | undefined;
|
|
263
|
+
operator_id: string;
|
|
264
|
+
status: "online" | "busy" | "offline";
|
|
265
|
+
total_escalations_handled: number;
|
|
266
|
+
}[];
|
|
161
267
|
total_escalations_handled: number;
|
|
162
268
|
total_operators: number;
|
|
163
269
|
workspace_id: string;
|
|
@@ -165,8 +271,8 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
165
271
|
getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
|
|
166
272
|
conference_sid: string;
|
|
167
273
|
connect_params?: {
|
|
168
|
-
[
|
|
169
|
-
};
|
|
274
|
+
[x: string]: string;
|
|
275
|
+
} | undefined;
|
|
170
276
|
identity: string;
|
|
171
277
|
token: string;
|
|
172
278
|
} & import("../index.js").ResponseMetadata>;
|
|
@@ -192,7 +298,10 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
192
298
|
call_sid: string;
|
|
193
299
|
generated_at: string;
|
|
194
300
|
operator_id: string;
|
|
195
|
-
sections:
|
|
301
|
+
sections: {
|
|
302
|
+
content: string;
|
|
303
|
+
title: string;
|
|
304
|
+
}[];
|
|
196
305
|
} & import("../index.js").ResponseMetadata>;
|
|
197
306
|
wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
|
|
198
307
|
success: boolean;
|
|
@@ -200,29 +309,45 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
200
309
|
getCallTranscript(callSid: string): Promise<{
|
|
201
310
|
call_entity_id: string;
|
|
202
311
|
call_sid: string | null;
|
|
203
|
-
segments:
|
|
312
|
+
segments: {
|
|
313
|
+
confidence: number;
|
|
314
|
+
escalation_id: string | null;
|
|
315
|
+
speaker_role: string;
|
|
316
|
+
timestamp: string | null;
|
|
317
|
+
transcript: string;
|
|
318
|
+
}[];
|
|
204
319
|
total_segments: number;
|
|
205
320
|
} & import("../index.js").ResponseMetadata>;
|
|
206
321
|
getAuditLog(params?: {
|
|
207
322
|
limit?: number;
|
|
208
323
|
offset?: number;
|
|
209
324
|
}): Promise<{
|
|
210
|
-
continuation_token?: number | null;
|
|
325
|
+
continuation_token?: number | null | undefined;
|
|
211
326
|
has_more: boolean;
|
|
212
|
-
items:
|
|
213
|
-
|
|
327
|
+
items: {
|
|
328
|
+
created_at?: string | null | undefined;
|
|
329
|
+
data: {
|
|
330
|
+
[x: string]: unknown;
|
|
331
|
+
};
|
|
332
|
+
event_type: string;
|
|
333
|
+
id: string;
|
|
334
|
+
ingested_at?: string | null | undefined;
|
|
335
|
+
source: string;
|
|
336
|
+
workspace_id: string;
|
|
337
|
+
}[];
|
|
338
|
+
total?: number | null | undefined;
|
|
214
339
|
} & import("../index.js").ResponseMetadata>;
|
|
215
340
|
getAuditLogAutoPaging(params?: {
|
|
216
341
|
limit?: number;
|
|
217
342
|
offset?: number;
|
|
218
343
|
}): AsyncGenerator<{
|
|
219
|
-
created_at?: string | null;
|
|
344
|
+
created_at?: string | null | undefined;
|
|
220
345
|
data: {
|
|
221
|
-
[
|
|
346
|
+
[x: string]: unknown;
|
|
222
347
|
};
|
|
223
348
|
event_type: string;
|
|
224
349
|
id: string;
|
|
225
|
-
ingested_at?: string | null;
|
|
350
|
+
ingested_at?: string | null | undefined;
|
|
226
351
|
source: string;
|
|
227
352
|
workspace_id: string;
|
|
228
353
|
}, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/resources/operators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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,mBAAmB,CAAC;;;IAS/E,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;IASnF,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;;;;;;;;;IAS7D,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC;;;IASvE,iBAAiB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;IAQjC,WAAW,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;IAQ9D,qBAAqB,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;CAOnE"}
|
|
@@ -8,15 +8,28 @@ export interface ListPersonasParams extends ListParams {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class PersonasResource extends WorkspaceScopedResource {
|
|
10
10
|
list(params?: ListPersonasParams): Promise<{
|
|
11
|
-
continuation_token?: number | null;
|
|
11
|
+
continuation_token?: number | null | undefined;
|
|
12
12
|
has_more: boolean;
|
|
13
|
-
items:
|
|
14
|
-
|
|
13
|
+
items: {
|
|
14
|
+
background: string;
|
|
15
|
+
communication_style: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
created_at: string;
|
|
19
|
+
default_language: string;
|
|
20
|
+
developed_by: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
role: string;
|
|
24
|
+
updated_at: string;
|
|
25
|
+
workspace_id: string;
|
|
26
|
+
}[];
|
|
27
|
+
total?: number | null | undefined;
|
|
15
28
|
} & import("../index.js").ResponseMetadata>;
|
|
16
29
|
listAutoPaging(params?: ListPersonasParams): AsyncGenerator<{
|
|
17
30
|
background: string;
|
|
18
31
|
communication_style: {
|
|
19
|
-
[
|
|
32
|
+
[x: string]: unknown;
|
|
20
33
|
};
|
|
21
34
|
created_at: string;
|
|
22
35
|
default_language: string;
|
|
@@ -30,7 +43,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
30
43
|
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
31
44
|
background: string;
|
|
32
45
|
communication_style: {
|
|
33
|
-
[
|
|
46
|
+
[x: string]: unknown;
|
|
34
47
|
};
|
|
35
48
|
created_at: string;
|
|
36
49
|
default_language: string;
|
|
@@ -44,7 +57,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
44
57
|
get(personaId: PersonaId | string): Promise<{
|
|
45
58
|
background: string;
|
|
46
59
|
communication_style: {
|
|
47
|
-
[
|
|
60
|
+
[x: string]: unknown;
|
|
48
61
|
};
|
|
49
62
|
created_at: string;
|
|
50
63
|
default_language: string;
|
|
@@ -58,7 +71,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
58
71
|
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
59
72
|
background: string;
|
|
60
73
|
communication_style: {
|
|
61
|
-
[
|
|
74
|
+
[x: string]: unknown;
|
|
62
75
|
};
|
|
63
76
|
created_at: string;
|
|
64
77
|
default_language: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"personas.d.ts","sourceRoot":"","sources":["../../../src/resources/personas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB
|
|
1
|
+
{"version":3,"file":"personas.d.ts","sourceRoot":"","sources":["../../../src/resources/personas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;IAQtC,cAAc,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;IAIpC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IAS1D,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;;;;;;;;;;;;;;IAQjC,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IASzF,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3D"}
|
|
@@ -12,7 +12,11 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
12
12
|
capabilities: string[];
|
|
13
13
|
created_at: string;
|
|
14
14
|
display_name: string;
|
|
15
|
-
forwarding:
|
|
15
|
+
forwarding: {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
forward_to: string;
|
|
18
|
+
should_disconnect: boolean;
|
|
19
|
+
} | null;
|
|
16
20
|
id: string;
|
|
17
21
|
inbound_service_id: string | null;
|
|
18
22
|
notes: string;
|
|
@@ -25,16 +29,38 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
25
29
|
} & import("../index.js").ResponseMetadata>;
|
|
26
30
|
/** List phone numbers in the workspace */
|
|
27
31
|
list(params?: ListParams): Promise<{
|
|
28
|
-
continuation_token?: number | null;
|
|
32
|
+
continuation_token?: number | null | undefined;
|
|
29
33
|
has_more: boolean;
|
|
30
|
-
items:
|
|
31
|
-
|
|
34
|
+
items: {
|
|
35
|
+
capabilities: string[];
|
|
36
|
+
created_at: string;
|
|
37
|
+
display_name: string;
|
|
38
|
+
forwarding: {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
forward_to: string;
|
|
41
|
+
should_disconnect: boolean;
|
|
42
|
+
} | null;
|
|
43
|
+
id: string;
|
|
44
|
+
inbound_service_id: string | null;
|
|
45
|
+
notes: string;
|
|
46
|
+
phone_number: string;
|
|
47
|
+
provider: string;
|
|
48
|
+
provider_phone_sid: string | null;
|
|
49
|
+
status: string;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
workspace_id: string;
|
|
52
|
+
}[];
|
|
53
|
+
total?: number | null | undefined;
|
|
32
54
|
} & import("../index.js").ResponseMetadata>;
|
|
33
55
|
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
34
56
|
capabilities: string[];
|
|
35
57
|
created_at: string;
|
|
36
58
|
display_name: string;
|
|
37
|
-
forwarding:
|
|
59
|
+
forwarding: {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
forward_to: string;
|
|
62
|
+
should_disconnect: boolean;
|
|
63
|
+
} | null;
|
|
38
64
|
id: string;
|
|
39
65
|
inbound_service_id: string | null;
|
|
40
66
|
notes: string;
|
|
@@ -50,7 +76,11 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
50
76
|
capabilities: string[];
|
|
51
77
|
created_at: string;
|
|
52
78
|
display_name: string;
|
|
53
|
-
forwarding:
|
|
79
|
+
forwarding: {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
forward_to: string;
|
|
82
|
+
should_disconnect: boolean;
|
|
83
|
+
} | null;
|
|
54
84
|
id: string;
|
|
55
85
|
inbound_service_id: string | null;
|
|
56
86
|
notes: string;
|
|
@@ -66,7 +96,11 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
66
96
|
capabilities: string[];
|
|
67
97
|
created_at: string;
|
|
68
98
|
display_name: string;
|
|
69
|
-
forwarding:
|
|
99
|
+
forwarding: {
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
forward_to: string;
|
|
102
|
+
should_disconnect: boolean;
|
|
103
|
+
} | null;
|
|
70
104
|
id: string;
|
|
71
105
|
inbound_service_id: string | null;
|
|
72
106
|
notes: string;
|
|
@@ -84,7 +118,11 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
84
118
|
capabilities: string[];
|
|
85
119
|
created_at: string;
|
|
86
120
|
display_name: string;
|
|
87
|
-
forwarding:
|
|
121
|
+
forwarding: {
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
forward_to: string;
|
|
124
|
+
should_disconnect: boolean;
|
|
125
|
+
} | null;
|
|
88
126
|
id: string;
|
|
89
127
|
inbound_service_id: string | null;
|
|
90
128
|
notes: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,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AAC;IAMnE,6CAA6C;IACvC,aAAa,CACjB,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;IAUxD,+CAA+C;IACzC,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK5E"}
|
|
@@ -2,10 +2,10 @@ import { WorkspaceScopedResource } from './base.js';
|
|
|
2
2
|
export declare class RecordingsResource extends WorkspaceScopedResource {
|
|
3
3
|
getUrls(callSid: string): Promise<{
|
|
4
4
|
call_sid: string;
|
|
5
|
-
inbound_url?: string | null;
|
|
6
|
-
metadata_url?: string | null;
|
|
7
|
-
outbound_url?: string | null;
|
|
8
|
-
status?: "available";
|
|
5
|
+
inbound_url?: string | null | undefined;
|
|
6
|
+
metadata_url?: string | null | undefined;
|
|
7
|
+
outbound_url?: string | null | undefined;
|
|
8
|
+
status?: "available" | undefined;
|
|
9
9
|
} & import("../index.js").ResponseMetadata>;
|
|
10
10
|
getMetadata(callSid: string): Promise<{
|
|
11
11
|
call_end_iso: string;
|