@amigo-ai/platform-sdk 0.4.5 → 0.4.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/LICENSE +1 -1
- package/README.md +14 -10
- package/api.md +50 -0
- package/dist/index.cjs +305 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +305 -1
- package/dist/index.mjs.map +3 -3
- package/dist/resources/actions.js +9 -0
- package/dist/resources/actions.js.map +1 -1
- package/dist/resources/agents.js +6 -0
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/analytics.js +18 -0
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/api-keys.js +3 -0
- package/dist/resources/api-keys.js.map +1 -1
- package/dist/resources/audit.js +9 -0
- package/dist/resources/audit.js.map +1 -1
- package/dist/resources/base.js +26 -0
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/billing.js +3 -0
- package/dist/resources/billing.js.map +1 -1
- package/dist/resources/calls.js +9 -0
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/context-graphs.js +7 -1
- package/dist/resources/context-graphs.js.map +1 -1
- package/dist/resources/data-sources.js +3 -0
- package/dist/resources/data-sources.js.map +1 -1
- package/dist/resources/integrations.js +3 -0
- package/dist/resources/integrations.js.map +1 -1
- package/dist/resources/operators.js +16 -0
- package/dist/resources/operators.js.map +1 -1
- package/dist/resources/personas.js +3 -0
- package/dist/resources/personas.js.map +1 -1
- package/dist/resources/phone-numbers.js +3 -0
- package/dist/resources/phone-numbers.js.map +1 -1
- package/dist/resources/review-queue.js +9 -0
- package/dist/resources/review-queue.js.map +1 -1
- package/dist/resources/services.js +3 -0
- package/dist/resources/services.js.map +1 -1
- package/dist/resources/settings.js +45 -0
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/skills.js +3 -0
- package/dist/resources/skills.js.map +1 -1
- package/dist/resources/triggers.js +6 -0
- package/dist/resources/triggers.js.map +1 -1
- package/dist/resources/webhook-destinations.js +6 -0
- package/dist/resources/webhook-destinations.js.map +1 -1
- package/dist/resources/workspaces.js +3 -0
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js +34 -0
- package/dist/resources/world.js.map +1 -1
- package/dist/types/generated/api.d.ts +762 -53
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +166 -17
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/agents.d.ts +123 -13
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +103 -15
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +32 -3
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +114 -4
- package/dist/types/resources/audit.d.ts.map +1 -1
- package/dist/types/resources/base.d.ts +11 -0
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +58 -8
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +183 -45
- 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 +840 -16
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +88 -25
- 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 +390 -39
- 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 +238 -40
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +33 -6
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +60 -7
- 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 +398 -37
- 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 +227 -36
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +450 -14
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +150 -22
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +151 -17
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +110 -52
- package/dist/types/resources/triggers.d.ts.map +1 -1
- package/dist/types/resources/webhook-destinations.d.ts +65 -15
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +26 -3
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +389 -56
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -6,58 +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>;
|
|
32
|
+
listAutoPaging(params?: {
|
|
33
|
+
status?: string;
|
|
34
|
+
limit?: number;
|
|
35
|
+
offset?: number;
|
|
36
|
+
}): AsyncGenerator<{
|
|
37
|
+
active_call_sid?: string | null | undefined;
|
|
38
|
+
avg_handle_time_seconds: number;
|
|
39
|
+
connection_method: "browser" | "phone";
|
|
40
|
+
created_at?: string | null | undefined;
|
|
41
|
+
email?: string | null | undefined;
|
|
42
|
+
id: string;
|
|
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;
|
|
47
|
+
role: "operator" | "supervisor" | "admin";
|
|
48
|
+
skills: string[];
|
|
49
|
+
status: "online" | "busy" | "offline";
|
|
50
|
+
total_escalations_handled: number;
|
|
51
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
52
|
+
updated_at?: string | null | undefined;
|
|
53
|
+
workspace_id: string;
|
|
54
|
+
}, any, any>;
|
|
14
55
|
create(body: components['schemas']['CreateOperatorRequest']): Promise<{
|
|
15
|
-
active_call_sid?: string | null;
|
|
56
|
+
active_call_sid?: string | null | undefined;
|
|
16
57
|
avg_handle_time_seconds: number;
|
|
17
58
|
connection_method: "browser" | "phone";
|
|
18
|
-
created_at?: string | null;
|
|
19
|
-
email?: string | null;
|
|
59
|
+
created_at?: string | null | undefined;
|
|
60
|
+
email?: string | null | undefined;
|
|
20
61
|
id: string;
|
|
21
|
-
last_call_at?: string | null;
|
|
22
|
-
last_status_change?: string | null;
|
|
23
|
-
name?: string | null;
|
|
24
|
-
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;
|
|
25
66
|
role: "operator" | "supervisor" | "admin";
|
|
26
67
|
skills: string[];
|
|
27
68
|
status: "online" | "busy" | "offline";
|
|
28
69
|
total_escalations_handled: number;
|
|
29
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
30
|
-
updated_at?: string | null;
|
|
70
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
71
|
+
updated_at?: string | null | undefined;
|
|
31
72
|
workspace_id: string;
|
|
32
73
|
} & import("../index.js").ResponseMetadata>;
|
|
33
74
|
get(operatorId: string): Promise<{
|
|
34
|
-
active_call_sid?: string | null;
|
|
75
|
+
active_call_sid?: string | null | undefined;
|
|
76
|
+
avg_handle_time_seconds: number;
|
|
77
|
+
connection_method: "browser" | "phone";
|
|
78
|
+
created_at?: string | null | undefined;
|
|
79
|
+
email?: string | null | undefined;
|
|
80
|
+
id: string;
|
|
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;
|
|
85
|
+
role: "operator" | "supervisor" | "admin";
|
|
86
|
+
skills: string[];
|
|
87
|
+
status: "online" | "busy" | "offline";
|
|
88
|
+
total_escalations_handled: number;
|
|
89
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
90
|
+
updated_at?: string | null | undefined;
|
|
91
|
+
workspace_id: string;
|
|
92
|
+
} & import("../index.js").ResponseMetadata>;
|
|
93
|
+
/** Update an operator (name, role, status, etc.) */
|
|
94
|
+
update(operatorId: string, body: components['schemas']['UpdateOperatorRequest']): Promise<{
|
|
95
|
+
active_call_sid?: string | null | undefined;
|
|
35
96
|
avg_handle_time_seconds: number;
|
|
36
97
|
connection_method: "browser" | "phone";
|
|
37
|
-
created_at?: string | null;
|
|
38
|
-
email?: string | null;
|
|
98
|
+
created_at?: string | null | undefined;
|
|
99
|
+
email?: string | null | undefined;
|
|
39
100
|
id: string;
|
|
40
|
-
last_call_at?: string | null;
|
|
41
|
-
last_status_change?: string | null;
|
|
42
|
-
name?: string | null;
|
|
43
|
-
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;
|
|
44
105
|
role: "operator" | "supervisor" | "admin";
|
|
45
106
|
skills: string[];
|
|
46
107
|
status: "online" | "busy" | "offline";
|
|
47
108
|
total_escalations_handled: number;
|
|
48
|
-
type?: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
49
|
-
updated_at?: string | null;
|
|
109
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
110
|
+
updated_at?: string | null | undefined;
|
|
50
111
|
workspace_id: string;
|
|
51
112
|
} & import("../index.js").ResponseMetadata>;
|
|
52
113
|
getDashboard(): Promise<{
|
|
53
114
|
active_escalations: number;
|
|
54
|
-
escalations_today:
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
}[];
|
|
57
149
|
workspace_id: string;
|
|
58
150
|
} & import("../index.js").ResponseMetadata>;
|
|
59
151
|
getQueue(): Promise<{
|
|
60
|
-
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
|
+
}[];
|
|
61
169
|
total_active: number;
|
|
62
170
|
workspace_id: string;
|
|
63
171
|
} & import("../index.js").ResponseMetadata>;
|
|
@@ -66,22 +174,72 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
66
174
|
limit?: number;
|
|
67
175
|
offset?: number;
|
|
68
176
|
}): Promise<{
|
|
69
|
-
continuation_token?: number | null;
|
|
177
|
+
continuation_token?: number | null | undefined;
|
|
70
178
|
has_more: boolean;
|
|
71
|
-
items:
|
|
72
|
-
|
|
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;
|
|
73
192
|
} & import("../index.js").ResponseMetadata>;
|
|
193
|
+
getEscalationsAutoPaging(params?: {
|
|
194
|
+
status?: string;
|
|
195
|
+
limit?: number;
|
|
196
|
+
offset?: number;
|
|
197
|
+
}): AsyncGenerator<{
|
|
198
|
+
confidence: number;
|
|
199
|
+
created_at?: string | null | undefined;
|
|
200
|
+
data: {
|
|
201
|
+
[x: string]: unknown;
|
|
202
|
+
};
|
|
203
|
+
event_type: string;
|
|
204
|
+
id: string;
|
|
205
|
+
ingested_at?: string | null | undefined;
|
|
206
|
+
source: string;
|
|
207
|
+
workspace_id: string;
|
|
208
|
+
}, any, any>;
|
|
74
209
|
getActiveEscalations(): Promise<{
|
|
75
|
-
continuation_token?: number | null;
|
|
210
|
+
continuation_token?: number | null | undefined;
|
|
76
211
|
has_more: boolean;
|
|
77
|
-
items:
|
|
78
|
-
|
|
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;
|
|
79
234
|
} & import("../index.js").ResponseMetadata>;
|
|
80
235
|
getEscalationStats(params?: {
|
|
81
236
|
period?: string;
|
|
82
237
|
group_by?: string;
|
|
83
238
|
}): Promise<{
|
|
84
|
-
buckets:
|
|
239
|
+
buckets: {
|
|
240
|
+
count: number;
|
|
241
|
+
key: string;
|
|
242
|
+
}[];
|
|
85
243
|
group_by: string;
|
|
86
244
|
period: string;
|
|
87
245
|
total: number;
|
|
@@ -98,7 +256,14 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
98
256
|
busy: number;
|
|
99
257
|
offline: number;
|
|
100
258
|
online: number;
|
|
101
|
-
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
|
+
}[];
|
|
102
267
|
total_escalations_handled: number;
|
|
103
268
|
total_operators: number;
|
|
104
269
|
workspace_id: string;
|
|
@@ -106,8 +271,8 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
106
271
|
getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
|
|
107
272
|
conference_sid: string;
|
|
108
273
|
connect_params?: {
|
|
109
|
-
[
|
|
110
|
-
};
|
|
274
|
+
[x: string]: string;
|
|
275
|
+
} | undefined;
|
|
111
276
|
identity: string;
|
|
112
277
|
token: string;
|
|
113
278
|
} & import("../index.js").ResponseMetadata>;
|
|
@@ -133,7 +298,10 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
133
298
|
call_sid: string;
|
|
134
299
|
generated_at: string;
|
|
135
300
|
operator_id: string;
|
|
136
|
-
sections:
|
|
301
|
+
sections: {
|
|
302
|
+
content: string;
|
|
303
|
+
title: string;
|
|
304
|
+
}[];
|
|
137
305
|
} & import("../index.js").ResponseMetadata>;
|
|
138
306
|
wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
|
|
139
307
|
success: boolean;
|
|
@@ -141,17 +309,47 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
141
309
|
getCallTranscript(callSid: string): Promise<{
|
|
142
310
|
call_entity_id: string;
|
|
143
311
|
call_sid: string | null;
|
|
144
|
-
segments:
|
|
312
|
+
segments: {
|
|
313
|
+
confidence: number;
|
|
314
|
+
escalation_id: string | null;
|
|
315
|
+
speaker_role: string;
|
|
316
|
+
timestamp: string | null;
|
|
317
|
+
transcript: string;
|
|
318
|
+
}[];
|
|
145
319
|
total_segments: number;
|
|
146
320
|
} & import("../index.js").ResponseMetadata>;
|
|
147
321
|
getAuditLog(params?: {
|
|
148
322
|
limit?: number;
|
|
149
323
|
offset?: number;
|
|
150
324
|
}): Promise<{
|
|
151
|
-
continuation_token?: number | null;
|
|
325
|
+
continuation_token?: number | null | undefined;
|
|
152
326
|
has_more: boolean;
|
|
153
|
-
items:
|
|
154
|
-
|
|
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;
|
|
155
339
|
} & import("../index.js").ResponseMetadata>;
|
|
340
|
+
getAuditLogAutoPaging(params?: {
|
|
341
|
+
limit?: number;
|
|
342
|
+
offset?: number;
|
|
343
|
+
}): AsyncGenerator<{
|
|
344
|
+
created_at?: string | null | undefined;
|
|
345
|
+
data: {
|
|
346
|
+
[x: string]: unknown;
|
|
347
|
+
};
|
|
348
|
+
event_type: string;
|
|
349
|
+
id: string;
|
|
350
|
+
ingested_at?: string | null | undefined;
|
|
351
|
+
source: string;
|
|
352
|
+
workspace_id: string;
|
|
353
|
+
}, any, any>;
|
|
156
354
|
}
|
|
157
355
|
//# sourceMappingURL=operators.d.ts.map
|
|
@@ -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;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,iBAAkB,SAAQ,uBAAuB;IACtD,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE
|
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/resources/operators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,iBAAkB,SAAQ,uBAAuB;IACtD,IAAI,CAAC,MAAM,CAAC,EAAE;QA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EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;CAOnE"}
|
|
@@ -8,15 +8,42 @@ 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>;
|
|
29
|
+
listAutoPaging(params?: ListPersonasParams): AsyncGenerator<{
|
|
30
|
+
background: string;
|
|
31
|
+
communication_style: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
created_at: string;
|
|
35
|
+
default_language: string;
|
|
36
|
+
developed_by: string;
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
role: string;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
workspace_id: string;
|
|
42
|
+
}, any, any>;
|
|
16
43
|
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
17
44
|
background: string;
|
|
18
45
|
communication_style: {
|
|
19
|
-
[
|
|
46
|
+
[x: string]: unknown;
|
|
20
47
|
};
|
|
21
48
|
created_at: string;
|
|
22
49
|
default_language: string;
|
|
@@ -30,7 +57,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
30
57
|
get(personaId: PersonaId | string): Promise<{
|
|
31
58
|
background: string;
|
|
32
59
|
communication_style: {
|
|
33
|
-
[
|
|
60
|
+
[x: string]: unknown;
|
|
34
61
|
};
|
|
35
62
|
created_at: string;
|
|
36
63
|
default_language: string;
|
|
@@ -44,7 +71,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
44
71
|
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
45
72
|
background: string;
|
|
46
73
|
communication_style: {
|
|
47
|
-
[
|
|
74
|
+
[x: string]: unknown;
|
|
48
75
|
};
|
|
49
76
|
created_at: string;
|
|
50
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,CACV,SAAS,EAAE,SAAS,GAAG,MAAM,EAC7B,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IAU/C,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,17 +29,58 @@ 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>;
|
|
55
|
+
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
56
|
+
capabilities: string[];
|
|
57
|
+
created_at: string;
|
|
58
|
+
display_name: string;
|
|
59
|
+
forwarding: {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
forward_to: string;
|
|
62
|
+
should_disconnect: boolean;
|
|
63
|
+
} | null;
|
|
64
|
+
id: string;
|
|
65
|
+
inbound_service_id: string | null;
|
|
66
|
+
notes: string;
|
|
67
|
+
phone_number: string;
|
|
68
|
+
provider: string;
|
|
69
|
+
provider_phone_sid: string | null;
|
|
70
|
+
status: string;
|
|
71
|
+
updated_at: string;
|
|
72
|
+
workspace_id: string;
|
|
73
|
+
}, any, any>;
|
|
33
74
|
/** Get a phone number */
|
|
34
75
|
get(phoneNumberId: PhoneNumberId | string): Promise<{
|
|
35
76
|
capabilities: string[];
|
|
36
77
|
created_at: string;
|
|
37
78
|
display_name: string;
|
|
38
|
-
forwarding:
|
|
79
|
+
forwarding: {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
forward_to: string;
|
|
82
|
+
should_disconnect: boolean;
|
|
83
|
+
} | null;
|
|
39
84
|
id: string;
|
|
40
85
|
inbound_service_id: string | null;
|
|
41
86
|
notes: string;
|
|
@@ -51,7 +96,11 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
51
96
|
capabilities: string[];
|
|
52
97
|
created_at: string;
|
|
53
98
|
display_name: string;
|
|
54
|
-
forwarding:
|
|
99
|
+
forwarding: {
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
forward_to: string;
|
|
102
|
+
should_disconnect: boolean;
|
|
103
|
+
} | null;
|
|
55
104
|
id: string;
|
|
56
105
|
inbound_service_id: string | null;
|
|
57
106
|
notes: string;
|
|
@@ -69,7 +118,11 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
69
118
|
capabilities: string[];
|
|
70
119
|
created_at: string;
|
|
71
120
|
display_name: string;
|
|
72
|
-
forwarding:
|
|
121
|
+
forwarding: {
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
forward_to: string;
|
|
124
|
+
should_disconnect: boolean;
|
|
125
|
+
} | null;
|
|
73
126
|
id: string;
|
|
74
127
|
inbound_service_id: string | null;
|
|
75
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,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;;;;;;;;;;;;;;;;;;;IASvE,0CAA0C;IACpC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;IAQ9B,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;IAIlC,yBAAyB;IACnB,GAAG,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;;;;;;;;;;;;;;;;;;;IAQ/C,sDAAsD;IAChD,MAAM,CACV,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;IAUzD,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;;;;;;;;;;;;;;;;;;;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;
|