@amigo-ai/platform-sdk 0.5.6 → 0.5.7
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 +40 -0
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +22 -126
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/agents.d.ts +16 -102
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +22 -74
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +3 -16
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +31 -87
- package/dist/types/resources/audit.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +9 -42
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +65 -169
- 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 +17 -958
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +13 -50
- package/dist/types/resources/data-sources.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +22 -49
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +49 -379
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/memory.d.ts +4 -48
- package/dist/types/resources/memory.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +64 -189
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +7 -20
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +8 -46
- 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 +49 -350
- package/dist/types/resources/review-queue.d.ts.map +1 -1
- package/dist/types/resources/safety.d.ts +6 -32
- package/dist/types/resources/safety.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts +47 -242
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +36 -404
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +20 -148
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +21 -117
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +64 -92
- package/dist/types/resources/triggers.d.ts.map +1 -1
- package/dist/types/resources/webhook-destinations.d.ts +20 -44
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +4 -26
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +121 -322
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,166 +6,101 @@ 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;
|
|
10
10
|
has_more: boolean;
|
|
11
|
-
items:
|
|
12
|
-
|
|
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;
|
|
11
|
+
items: components["schemas"]["OperatorResponse"][];
|
|
12
|
+
total?: number | null;
|
|
31
13
|
} & import("../index.js").ResponseMetadata>;
|
|
32
14
|
listAutoPaging(params?: {
|
|
33
15
|
status?: string;
|
|
34
16
|
limit?: number;
|
|
35
17
|
offset?: number;
|
|
36
18
|
}): AsyncGenerator<{
|
|
37
|
-
active_call_sid?: string | null
|
|
19
|
+
active_call_sid?: string | null;
|
|
38
20
|
avg_handle_time_seconds: number;
|
|
39
21
|
connection_method: "browser" | "phone";
|
|
40
|
-
created_at?: string | null
|
|
41
|
-
email?: string | null
|
|
22
|
+
created_at?: string | null;
|
|
23
|
+
email?: string | null;
|
|
42
24
|
id: string;
|
|
43
|
-
last_call_at?: string | null
|
|
44
|
-
last_status_change?: string | null
|
|
45
|
-
name?: string | null
|
|
46
|
-
phone_number?: string | null
|
|
25
|
+
last_call_at?: string | null;
|
|
26
|
+
last_status_change?: string | null;
|
|
27
|
+
name?: string | null;
|
|
28
|
+
phone_number?: string | null;
|
|
47
29
|
role: "operator" | "supervisor" | "admin";
|
|
48
30
|
skills: string[];
|
|
49
31
|
status: "online" | "busy" | "offline";
|
|
50
32
|
total_escalations_handled: number;
|
|
51
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null
|
|
52
|
-
updated_at?: string | null
|
|
33
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
34
|
+
updated_at?: string | null;
|
|
53
35
|
workspace_id: string;
|
|
54
36
|
}, any, any>;
|
|
55
37
|
create(body: components['schemas']['CreateOperatorRequest']): Promise<{
|
|
56
|
-
active_call_sid?: string | null
|
|
38
|
+
active_call_sid?: string | null;
|
|
57
39
|
avg_handle_time_seconds: number;
|
|
58
40
|
connection_method: "browser" | "phone";
|
|
59
|
-
created_at?: string | null
|
|
60
|
-
email?: string | null
|
|
41
|
+
created_at?: string | null;
|
|
42
|
+
email?: string | null;
|
|
61
43
|
id: string;
|
|
62
|
-
last_call_at?: string | null
|
|
63
|
-
last_status_change?: string | null
|
|
64
|
-
name?: string | null
|
|
65
|
-
phone_number?: string | null
|
|
44
|
+
last_call_at?: string | null;
|
|
45
|
+
last_status_change?: string | null;
|
|
46
|
+
name?: string | null;
|
|
47
|
+
phone_number?: string | null;
|
|
66
48
|
role: "operator" | "supervisor" | "admin";
|
|
67
49
|
skills: string[];
|
|
68
50
|
status: "online" | "busy" | "offline";
|
|
69
51
|
total_escalations_handled: number;
|
|
70
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null
|
|
71
|
-
updated_at?: string | null
|
|
52
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
53
|
+
updated_at?: string | null;
|
|
72
54
|
workspace_id: string;
|
|
73
55
|
} & import("../index.js").ResponseMetadata>;
|
|
74
56
|
get(operatorId: string): Promise<{
|
|
75
|
-
active_call_sid?: string | null
|
|
57
|
+
active_call_sid?: string | null;
|
|
76
58
|
avg_handle_time_seconds: number;
|
|
77
59
|
connection_method: "browser" | "phone";
|
|
78
|
-
created_at?: string | null
|
|
79
|
-
email?: string | null
|
|
60
|
+
created_at?: string | null;
|
|
61
|
+
email?: string | null;
|
|
80
62
|
id: string;
|
|
81
|
-
last_call_at?: string | null
|
|
82
|
-
last_status_change?: string | null
|
|
83
|
-
name?: string | null
|
|
84
|
-
phone_number?: string | null
|
|
63
|
+
last_call_at?: string | null;
|
|
64
|
+
last_status_change?: string | null;
|
|
65
|
+
name?: string | null;
|
|
66
|
+
phone_number?: string | null;
|
|
85
67
|
role: "operator" | "supervisor" | "admin";
|
|
86
68
|
skills: string[];
|
|
87
69
|
status: "online" | "busy" | "offline";
|
|
88
70
|
total_escalations_handled: number;
|
|
89
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null
|
|
90
|
-
updated_at?: string | null
|
|
71
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
72
|
+
updated_at?: string | null;
|
|
91
73
|
workspace_id: string;
|
|
92
74
|
} & import("../index.js").ResponseMetadata>;
|
|
93
75
|
/** Update an operator (name, role, status, etc.) */
|
|
94
76
|
update(operatorId: string, body: components['schemas']['UpdateOperatorRequest']): Promise<{
|
|
95
|
-
active_call_sid?: string | null
|
|
77
|
+
active_call_sid?: string | null;
|
|
96
78
|
avg_handle_time_seconds: number;
|
|
97
79
|
connection_method: "browser" | "phone";
|
|
98
|
-
created_at?: string | null
|
|
99
|
-
email?: string | null
|
|
80
|
+
created_at?: string | null;
|
|
81
|
+
email?: string | null;
|
|
100
82
|
id: string;
|
|
101
|
-
last_call_at?: string | null
|
|
102
|
-
last_status_change?: string | null
|
|
103
|
-
name?: string | null
|
|
104
|
-
phone_number?: string | null
|
|
83
|
+
last_call_at?: string | null;
|
|
84
|
+
last_status_change?: string | null;
|
|
85
|
+
name?: string | null;
|
|
86
|
+
phone_number?: string | null;
|
|
105
87
|
role: "operator" | "supervisor" | "admin";
|
|
106
88
|
skills: string[];
|
|
107
89
|
status: "online" | "busy" | "offline";
|
|
108
90
|
total_escalations_handled: number;
|
|
109
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null
|
|
110
|
-
updated_at?: string | null
|
|
91
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
92
|
+
updated_at?: string | null;
|
|
111
93
|
workspace_id: string;
|
|
112
94
|
} & import("../index.js").ResponseMetadata>;
|
|
113
95
|
getDashboard(): Promise<{
|
|
114
96
|
active_escalations: number;
|
|
115
|
-
escalations_today:
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
}[];
|
|
97
|
+
escalations_today: components["schemas"]["EscalationDailyStats"];
|
|
98
|
+
operators: components["schemas"]["OperatorStatusCounts"];
|
|
99
|
+
recent_escalations: components["schemas"]["ActiveEscalationItem"][];
|
|
149
100
|
workspace_id: string;
|
|
150
101
|
} & import("../index.js").ResponseMetadata>;
|
|
151
102
|
getQueue(): Promise<{
|
|
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
|
-
}[];
|
|
103
|
+
queue: components["schemas"]["PriorityQueueItem"][];
|
|
169
104
|
total_active: number;
|
|
170
105
|
workspace_id: string;
|
|
171
106
|
} & import("../index.js").ResponseMetadata>;
|
|
@@ -174,21 +109,10 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
174
109
|
limit?: number;
|
|
175
110
|
offset?: number;
|
|
176
111
|
}): Promise<{
|
|
177
|
-
continuation_token?: number | null
|
|
112
|
+
continuation_token?: number | null;
|
|
178
113
|
has_more: boolean;
|
|
179
|
-
items:
|
|
180
|
-
|
|
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;
|
|
114
|
+
items: components["schemas"]["EscalationEventResponse"][];
|
|
115
|
+
total?: number | null;
|
|
192
116
|
} & import("../index.js").ResponseMetadata>;
|
|
193
117
|
getEscalationsAutoPaging(params?: {
|
|
194
118
|
status?: string;
|
|
@@ -196,50 +120,27 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
196
120
|
offset?: number;
|
|
197
121
|
}): AsyncGenerator<{
|
|
198
122
|
confidence: number;
|
|
199
|
-
created_at?: string | null
|
|
123
|
+
created_at?: string | null;
|
|
200
124
|
data: {
|
|
201
|
-
[
|
|
125
|
+
[key: string]: unknown;
|
|
202
126
|
};
|
|
203
127
|
event_type: string;
|
|
204
128
|
id: string;
|
|
205
|
-
ingested_at?: string | null
|
|
129
|
+
ingested_at?: string | null;
|
|
206
130
|
source: string;
|
|
207
131
|
workspace_id: string;
|
|
208
132
|
}, any, any>;
|
|
209
133
|
getActiveEscalations(): Promise<{
|
|
210
|
-
continuation_token?: number | null
|
|
134
|
+
continuation_token?: number | null;
|
|
211
135
|
has_more: boolean;
|
|
212
|
-
items:
|
|
213
|
-
|
|
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;
|
|
136
|
+
items: components["schemas"]["ActiveEscalationItem"][];
|
|
137
|
+
total?: number | null;
|
|
234
138
|
} & import("../index.js").ResponseMetadata>;
|
|
235
139
|
getEscalationStats(params?: {
|
|
236
140
|
period?: string;
|
|
237
141
|
group_by?: string;
|
|
238
142
|
}): Promise<{
|
|
239
|
-
buckets:
|
|
240
|
-
count: number;
|
|
241
|
-
key: string;
|
|
242
|
-
}[];
|
|
143
|
+
buckets: components["schemas"]["EscalationStatsBucket"][];
|
|
243
144
|
group_by: string;
|
|
244
145
|
period: string;
|
|
245
146
|
total: number;
|
|
@@ -256,14 +157,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
256
157
|
busy: number;
|
|
257
158
|
offline: number;
|
|
258
159
|
online: number;
|
|
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
|
-
}[];
|
|
160
|
+
operators: components["schemas"]["OperatorPerformanceItem"][];
|
|
267
161
|
total_escalations_handled: number;
|
|
268
162
|
total_operators: number;
|
|
269
163
|
workspace_id: string;
|
|
@@ -271,8 +165,8 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
271
165
|
getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
|
|
272
166
|
conference_sid: string;
|
|
273
167
|
connect_params?: {
|
|
274
|
-
[
|
|
275
|
-
}
|
|
168
|
+
[key: string]: string;
|
|
169
|
+
};
|
|
276
170
|
identity: string;
|
|
277
171
|
token: string;
|
|
278
172
|
} & import("../index.js").ResponseMetadata>;
|
|
@@ -298,10 +192,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
298
192
|
call_sid: string;
|
|
299
193
|
generated_at: string;
|
|
300
194
|
operator_id: string;
|
|
301
|
-
sections:
|
|
302
|
-
content: string;
|
|
303
|
-
title: string;
|
|
304
|
-
}[];
|
|
195
|
+
sections: components["schemas"]["BriefingSection"][];
|
|
305
196
|
} & import("../index.js").ResponseMetadata>;
|
|
306
197
|
wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
|
|
307
198
|
success: boolean;
|
|
@@ -309,45 +200,29 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
309
200
|
getCallTranscript(callSid: string): Promise<{
|
|
310
201
|
call_entity_id: string;
|
|
311
202
|
call_sid: string | null;
|
|
312
|
-
segments:
|
|
313
|
-
confidence: number;
|
|
314
|
-
escalation_id: string | null;
|
|
315
|
-
speaker_role: string;
|
|
316
|
-
timestamp: string | null;
|
|
317
|
-
transcript: string;
|
|
318
|
-
}[];
|
|
203
|
+
segments: components["schemas"]["TranscriptSegment"][];
|
|
319
204
|
total_segments: number;
|
|
320
205
|
} & import("../index.js").ResponseMetadata>;
|
|
321
206
|
getAuditLog(params?: {
|
|
322
207
|
limit?: number;
|
|
323
208
|
offset?: number;
|
|
324
209
|
}): Promise<{
|
|
325
|
-
continuation_token?: number | null
|
|
210
|
+
continuation_token?: number | null;
|
|
326
211
|
has_more: boolean;
|
|
327
|
-
items:
|
|
328
|
-
|
|
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;
|
|
212
|
+
items: components["schemas"]["src__routes__operators_models__AuditEventResponse"][];
|
|
213
|
+
total?: number | null;
|
|
339
214
|
} & import("../index.js").ResponseMetadata>;
|
|
340
215
|
getAuditLogAutoPaging(params?: {
|
|
341
216
|
limit?: number;
|
|
342
217
|
offset?: number;
|
|
343
218
|
}): AsyncGenerator<{
|
|
344
|
-
created_at?: string | null
|
|
219
|
+
created_at?: string | null;
|
|
345
220
|
data: {
|
|
346
|
-
[
|
|
221
|
+
[key: string]: unknown;
|
|
347
222
|
};
|
|
348
223
|
event_type: string;
|
|
349
224
|
id: string;
|
|
350
|
-
ingested_at?: string | null
|
|
225
|
+
ingested_at?: string | null;
|
|
351
226
|
source: string;
|
|
352
227
|
workspace_id: string;
|
|
353
228
|
}, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/resources/operators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACr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CAAC,SAAS,CAAC,CAAC,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;;;;kBA0Cmq4Q,qBAAsB;;IAjCtv4Q,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC;;;IASvE,iBAAiB,CAAC,OAAO,EAAE,MAAM;;;kBAwB+ouR,qBAAsB;;;IAhBtsuR,WAAW,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;eAgBi8igB,qBAAsB;;;IARrhjgB,qBAAqB,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;CAOnE"}
|
|
@@ -8,28 +8,15 @@ 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;
|
|
12
12
|
has_more: boolean;
|
|
13
|
-
items:
|
|
14
|
-
|
|
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;
|
|
13
|
+
items: components["schemas"]["PersonaResponse"][];
|
|
14
|
+
total?: number | null;
|
|
28
15
|
} & import("../index.js").ResponseMetadata>;
|
|
29
16
|
listAutoPaging(params?: ListPersonasParams): AsyncGenerator<{
|
|
30
17
|
background: string;
|
|
31
18
|
communication_style: {
|
|
32
|
-
[
|
|
19
|
+
[key: string]: unknown;
|
|
33
20
|
};
|
|
34
21
|
created_at: string;
|
|
35
22
|
default_language: string;
|
|
@@ -43,7 +30,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
43
30
|
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
44
31
|
background: string;
|
|
45
32
|
communication_style: {
|
|
46
|
-
[
|
|
33
|
+
[key: string]: unknown;
|
|
47
34
|
};
|
|
48
35
|
created_at: string;
|
|
49
36
|
default_language: string;
|
|
@@ -57,7 +44,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
57
44
|
get(personaId: PersonaId | string): Promise<{
|
|
58
45
|
background: string;
|
|
59
46
|
communication_style: {
|
|
60
|
-
[
|
|
47
|
+
[key: string]: unknown;
|
|
61
48
|
};
|
|
62
49
|
created_at: string;
|
|
63
50
|
default_language: string;
|
|
@@ -71,7 +58,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
71
58
|
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
72
59
|
background: string;
|
|
73
60
|
communication_style: {
|
|
74
|
-
[
|
|
61
|
+
[key: string]: unknown;
|
|
75
62
|
};
|
|
76
63
|
created_at: string;
|
|
77
64
|
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,EA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AS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3D"}
|
|
@@ -12,11 +12,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
12
12
|
capabilities: string[];
|
|
13
13
|
created_at: string;
|
|
14
14
|
display_name: string;
|
|
15
|
-
forwarding:
|
|
16
|
-
enabled: boolean;
|
|
17
|
-
forward_to: string;
|
|
18
|
-
should_disconnect: boolean;
|
|
19
|
-
} | null;
|
|
15
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
20
16
|
id: string;
|
|
21
17
|
inbound_service_id: string | null;
|
|
22
18
|
notes: string;
|
|
@@ -29,38 +25,16 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
29
25
|
} & import("../index.js").ResponseMetadata>;
|
|
30
26
|
/** List phone numbers in the workspace */
|
|
31
27
|
list(params?: ListParams): Promise<{
|
|
32
|
-
continuation_token?: number | null
|
|
28
|
+
continuation_token?: number | null;
|
|
33
29
|
has_more: boolean;
|
|
34
|
-
items:
|
|
35
|
-
|
|
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;
|
|
30
|
+
items: components["schemas"]["PhoneNumberResponse"][];
|
|
31
|
+
total?: number | null;
|
|
54
32
|
} & import("../index.js").ResponseMetadata>;
|
|
55
33
|
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
56
34
|
capabilities: string[];
|
|
57
35
|
created_at: string;
|
|
58
36
|
display_name: string;
|
|
59
|
-
forwarding:
|
|
60
|
-
enabled: boolean;
|
|
61
|
-
forward_to: string;
|
|
62
|
-
should_disconnect: boolean;
|
|
63
|
-
} | null;
|
|
37
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
64
38
|
id: string;
|
|
65
39
|
inbound_service_id: string | null;
|
|
66
40
|
notes: string;
|
|
@@ -76,11 +50,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
76
50
|
capabilities: string[];
|
|
77
51
|
created_at: string;
|
|
78
52
|
display_name: string;
|
|
79
|
-
forwarding:
|
|
80
|
-
enabled: boolean;
|
|
81
|
-
forward_to: string;
|
|
82
|
-
should_disconnect: boolean;
|
|
83
|
-
} | null;
|
|
53
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
84
54
|
id: string;
|
|
85
55
|
inbound_service_id: string | null;
|
|
86
56
|
notes: string;
|
|
@@ -96,11 +66,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
96
66
|
capabilities: string[];
|
|
97
67
|
created_at: string;
|
|
98
68
|
display_name: string;
|
|
99
|
-
forwarding:
|
|
100
|
-
enabled: boolean;
|
|
101
|
-
forward_to: string;
|
|
102
|
-
should_disconnect: boolean;
|
|
103
|
-
} | null;
|
|
69
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
104
70
|
id: string;
|
|
105
71
|
inbound_service_id: string | null;
|
|
106
72
|
notes: string;
|
|
@@ -118,11 +84,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
118
84
|
capabilities: string[];
|
|
119
85
|
created_at: string;
|
|
120
86
|
display_name: string;
|
|
121
|
-
forwarding:
|
|
122
|
-
enabled: boolean;
|
|
123
|
-
forward_to: string;
|
|
124
|
-
should_disconnect: boolean;
|
|
125
|
-
} | null;
|
|
87
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
126
88
|
id: string;
|
|
127
89
|
inbound_service_id: string | null;
|
|
128
90
|
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,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC/D,gCAAgC;IAC1B,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC
|
|
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,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC/D,gCAAgC;IAC1B,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;oBAuE83giB,qBAAsB;;;;;;;;;;;IA9D39giB,0CAA0C;IACpC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;eA6Ds11gB,qBAAsB;;;IArD141gB,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;oBAqDm6giB,qBAAsB;;;;;;;;;;;IAjD39giB,yBAAyB;IACnB,GAAG,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;;;;oBAgDs5giB,qBAAsB;;;;;;;;;;;IAxC39giB,sDAAsD;IAChD,MAAM,CACV,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;oBAqC44giB,qBAAsB;;;;;;;;;;;IA3B39giB,iDAAiD;IAC3C,OAAO,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMnE,6CAA6C;IACvC,aAAa,CACjB,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;oBAiB64giB,qBAAsB;;;;;;;;;;;IAP39giB,+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;
|
|
6
|
+
metadata_url?: string | null;
|
|
7
|
+
outbound_url?: string | null;
|
|
8
|
+
status?: "available";
|
|
9
9
|
} & import("../index.js").ResponseMetadata>;
|
|
10
10
|
getMetadata(callSid: string): Promise<{
|
|
11
11
|
call_end_iso: string;
|