@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
|
@@ -20,24 +20,79 @@ export interface ReviewHistoryParams extends ListParams {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
22
22
|
list(params?: ListReviewItemsParams): Promise<{
|
|
23
|
-
continuation_token?: number | null;
|
|
23
|
+
continuation_token?: number | null | undefined;
|
|
24
24
|
has_more: boolean;
|
|
25
|
-
items:
|
|
26
|
-
|
|
25
|
+
items: {
|
|
26
|
+
assigned_to: string | null;
|
|
27
|
+
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
28
|
+
completed_at: string | null;
|
|
29
|
+
created_at?: string | null | undefined;
|
|
30
|
+
entity?: {
|
|
31
|
+
display_name: string | null;
|
|
32
|
+
entity_type: string | null;
|
|
33
|
+
id: string;
|
|
34
|
+
state: {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
} | null;
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
entity_id: string | null;
|
|
39
|
+
entity_type: string | null;
|
|
40
|
+
event_ids: string[];
|
|
41
|
+
events?: {
|
|
42
|
+
confidence: number;
|
|
43
|
+
created_at?: string | null | undefined;
|
|
44
|
+
data: {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
event_type: string | null;
|
|
48
|
+
fhir_resource_id: string | null;
|
|
49
|
+
fhir_resource_type: string | null;
|
|
50
|
+
id: string;
|
|
51
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
52
|
+
}[] | null | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
judge_analysis: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
} | null;
|
|
57
|
+
priority: number;
|
|
58
|
+
reason: string;
|
|
59
|
+
session_id: string;
|
|
60
|
+
status: "pending" | "in_progress" | "completed" | "rejected";
|
|
61
|
+
workspace_id: string;
|
|
62
|
+
}[];
|
|
63
|
+
total?: number | null | undefined;
|
|
27
64
|
} & import("../index.js").ResponseMetadata>;
|
|
28
65
|
listAutoPaging(params?: ListReviewItemsParams): AsyncGenerator<{
|
|
29
66
|
assigned_to: string | null;
|
|
30
67
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
31
68
|
completed_at: string | null;
|
|
32
|
-
created_at?: string | null;
|
|
33
|
-
entity?:
|
|
69
|
+
created_at?: string | null | undefined;
|
|
70
|
+
entity?: {
|
|
71
|
+
display_name: string | null;
|
|
72
|
+
entity_type: string | null;
|
|
73
|
+
id: string;
|
|
74
|
+
state: {
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
} | null;
|
|
77
|
+
} | null | undefined;
|
|
34
78
|
entity_id: string | null;
|
|
35
79
|
entity_type: string | null;
|
|
36
80
|
event_ids: string[];
|
|
37
|
-
events?:
|
|
81
|
+
events?: {
|
|
82
|
+
confidence: number;
|
|
83
|
+
created_at?: string | null | undefined;
|
|
84
|
+
data: {
|
|
85
|
+
[x: string]: unknown;
|
|
86
|
+
};
|
|
87
|
+
event_type: string | null;
|
|
88
|
+
fhir_resource_id: string | null;
|
|
89
|
+
fhir_resource_type: string | null;
|
|
90
|
+
id: string;
|
|
91
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
92
|
+
}[] | null | undefined;
|
|
38
93
|
id: string;
|
|
39
94
|
judge_analysis: {
|
|
40
|
-
[
|
|
95
|
+
[x: string]: unknown;
|
|
41
96
|
} | null;
|
|
42
97
|
priority: number;
|
|
43
98
|
reason: string;
|
|
@@ -49,15 +104,33 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
49
104
|
assigned_to: string | null;
|
|
50
105
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
51
106
|
completed_at: string | null;
|
|
52
|
-
created_at?: string | null;
|
|
53
|
-
entity?:
|
|
107
|
+
created_at?: string | null | undefined;
|
|
108
|
+
entity?: {
|
|
109
|
+
display_name: string | null;
|
|
110
|
+
entity_type: string | null;
|
|
111
|
+
id: string;
|
|
112
|
+
state: {
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
} | null;
|
|
115
|
+
} | null | undefined;
|
|
54
116
|
entity_id: string | null;
|
|
55
117
|
entity_type: string | null;
|
|
56
118
|
event_ids: string[];
|
|
57
|
-
events?:
|
|
119
|
+
events?: {
|
|
120
|
+
confidence: number;
|
|
121
|
+
created_at?: string | null | undefined;
|
|
122
|
+
data: {
|
|
123
|
+
[x: string]: unknown;
|
|
124
|
+
};
|
|
125
|
+
event_type: string | null;
|
|
126
|
+
fhir_resource_id: string | null;
|
|
127
|
+
fhir_resource_type: string | null;
|
|
128
|
+
id: string;
|
|
129
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
130
|
+
}[] | null | undefined;
|
|
58
131
|
id: string;
|
|
59
132
|
judge_analysis: {
|
|
60
|
-
[
|
|
133
|
+
[x: string]: unknown;
|
|
61
134
|
} | null;
|
|
62
135
|
priority: number;
|
|
63
136
|
reason: string;
|
|
@@ -74,33 +147,130 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
74
147
|
getDashboard(): Promise<{
|
|
75
148
|
completion_rate_24h: number | null;
|
|
76
149
|
pending_by_priority: {
|
|
77
|
-
[
|
|
150
|
+
[x: string]: number;
|
|
78
151
|
};
|
|
79
152
|
pending_by_reason: {
|
|
80
|
-
[
|
|
153
|
+
[x: string]: unknown;
|
|
154
|
+
}[];
|
|
155
|
+
recent_completed: {
|
|
156
|
+
assigned_to: string | null;
|
|
157
|
+
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
158
|
+
completed_at: string | null;
|
|
159
|
+
created_at?: string | null | undefined;
|
|
160
|
+
entity?: {
|
|
161
|
+
display_name: string | null;
|
|
162
|
+
entity_type: string | null;
|
|
163
|
+
id: string;
|
|
164
|
+
state: {
|
|
165
|
+
[x: string]: unknown;
|
|
166
|
+
} | null;
|
|
167
|
+
} | null | undefined;
|
|
168
|
+
entity_id: string | null;
|
|
169
|
+
entity_type: string | null;
|
|
170
|
+
event_ids: string[];
|
|
171
|
+
events?: {
|
|
172
|
+
confidence: number;
|
|
173
|
+
created_at?: string | null | undefined;
|
|
174
|
+
data: {
|
|
175
|
+
[x: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
event_type: string | null;
|
|
178
|
+
fhir_resource_id: string | null;
|
|
179
|
+
fhir_resource_type: string | null;
|
|
180
|
+
id: string;
|
|
181
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
182
|
+
}[] | null | undefined;
|
|
183
|
+
id: string;
|
|
184
|
+
judge_analysis: {
|
|
185
|
+
[x: string]: unknown;
|
|
186
|
+
} | null;
|
|
187
|
+
priority: number;
|
|
188
|
+
reason: string;
|
|
189
|
+
session_id: string;
|
|
190
|
+
status: "pending" | "in_progress" | "completed" | "rejected";
|
|
191
|
+
workspace_id: string;
|
|
81
192
|
}[];
|
|
82
|
-
|
|
83
|
-
|
|
193
|
+
stats: {
|
|
194
|
+
avg_review_minutes: number | null;
|
|
195
|
+
completed: number;
|
|
196
|
+
pending: number;
|
|
197
|
+
rejected: number;
|
|
198
|
+
};
|
|
84
199
|
} & import("../index.js").ResponseMetadata>;
|
|
85
200
|
getMyQueue(params?: ListParams): Promise<{
|
|
86
|
-
continuation_token?: number | null;
|
|
201
|
+
continuation_token?: number | null | undefined;
|
|
87
202
|
has_more: boolean;
|
|
88
|
-
items:
|
|
89
|
-
|
|
203
|
+
items: {
|
|
204
|
+
assigned_to: string | null;
|
|
205
|
+
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
206
|
+
completed_at: string | null;
|
|
207
|
+
created_at?: string | null | undefined;
|
|
208
|
+
entity?: {
|
|
209
|
+
display_name: string | null;
|
|
210
|
+
entity_type: string | null;
|
|
211
|
+
id: string;
|
|
212
|
+
state: {
|
|
213
|
+
[x: string]: unknown;
|
|
214
|
+
} | null;
|
|
215
|
+
} | null | undefined;
|
|
216
|
+
entity_id: string | null;
|
|
217
|
+
entity_type: string | null;
|
|
218
|
+
event_ids: string[];
|
|
219
|
+
events?: {
|
|
220
|
+
confidence: number;
|
|
221
|
+
created_at?: string | null | undefined;
|
|
222
|
+
data: {
|
|
223
|
+
[x: string]: unknown;
|
|
224
|
+
};
|
|
225
|
+
event_type: string | null;
|
|
226
|
+
fhir_resource_id: string | null;
|
|
227
|
+
fhir_resource_type: string | null;
|
|
228
|
+
id: string;
|
|
229
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
230
|
+
}[] | null | undefined;
|
|
231
|
+
id: string;
|
|
232
|
+
judge_analysis: {
|
|
233
|
+
[x: string]: unknown;
|
|
234
|
+
} | null;
|
|
235
|
+
priority: number;
|
|
236
|
+
reason: string;
|
|
237
|
+
session_id: string;
|
|
238
|
+
status: "pending" | "in_progress" | "completed" | "rejected";
|
|
239
|
+
workspace_id: string;
|
|
240
|
+
}[];
|
|
241
|
+
total?: number | null | undefined;
|
|
90
242
|
} & import("../index.js").ResponseMetadata>;
|
|
91
243
|
getMyQueueAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
92
244
|
assigned_to: string | null;
|
|
93
245
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
94
246
|
completed_at: string | null;
|
|
95
|
-
created_at?: string | null;
|
|
96
|
-
entity?:
|
|
247
|
+
created_at?: string | null | undefined;
|
|
248
|
+
entity?: {
|
|
249
|
+
display_name: string | null;
|
|
250
|
+
entity_type: string | null;
|
|
251
|
+
id: string;
|
|
252
|
+
state: {
|
|
253
|
+
[x: string]: unknown;
|
|
254
|
+
} | null;
|
|
255
|
+
} | null | undefined;
|
|
97
256
|
entity_id: string | null;
|
|
98
257
|
entity_type: string | null;
|
|
99
258
|
event_ids: string[];
|
|
100
|
-
events?:
|
|
259
|
+
events?: {
|
|
260
|
+
confidence: number;
|
|
261
|
+
created_at?: string | null | undefined;
|
|
262
|
+
data: {
|
|
263
|
+
[x: string]: unknown;
|
|
264
|
+
};
|
|
265
|
+
event_type: string | null;
|
|
266
|
+
fhir_resource_id: string | null;
|
|
267
|
+
fhir_resource_type: string | null;
|
|
268
|
+
id: string;
|
|
269
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
270
|
+
}[] | null | undefined;
|
|
101
271
|
id: string;
|
|
102
272
|
judge_analysis: {
|
|
103
|
-
[
|
|
273
|
+
[x: string]: unknown;
|
|
104
274
|
} | null;
|
|
105
275
|
priority: number;
|
|
106
276
|
reason: string;
|
|
@@ -112,15 +282,33 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
112
282
|
assigned_to: string | null;
|
|
113
283
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
114
284
|
completed_at: string | null;
|
|
115
|
-
created_at?: string | null;
|
|
116
|
-
entity?:
|
|
285
|
+
created_at?: string | null | undefined;
|
|
286
|
+
entity?: {
|
|
287
|
+
display_name: string | null;
|
|
288
|
+
entity_type: string | null;
|
|
289
|
+
id: string;
|
|
290
|
+
state: {
|
|
291
|
+
[x: string]: unknown;
|
|
292
|
+
} | null;
|
|
293
|
+
} | null | undefined;
|
|
117
294
|
entity_id: string | null;
|
|
118
295
|
entity_type: string | null;
|
|
119
296
|
event_ids: string[];
|
|
120
|
-
events?:
|
|
297
|
+
events?: {
|
|
298
|
+
confidence: number;
|
|
299
|
+
created_at?: string | null | undefined;
|
|
300
|
+
data: {
|
|
301
|
+
[x: string]: unknown;
|
|
302
|
+
};
|
|
303
|
+
event_type: string | null;
|
|
304
|
+
fhir_resource_id: string | null;
|
|
305
|
+
fhir_resource_type: string | null;
|
|
306
|
+
id: string;
|
|
307
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
308
|
+
}[] | null | undefined;
|
|
121
309
|
id: string;
|
|
122
310
|
judge_analysis: {
|
|
123
|
-
[
|
|
311
|
+
[x: string]: unknown;
|
|
124
312
|
} | null;
|
|
125
313
|
priority: number;
|
|
126
314
|
reason: string;
|
|
@@ -132,15 +320,33 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
132
320
|
assigned_to: string | null;
|
|
133
321
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
134
322
|
completed_at: string | null;
|
|
135
|
-
created_at?: string | null;
|
|
136
|
-
entity?:
|
|
323
|
+
created_at?: string | null | undefined;
|
|
324
|
+
entity?: {
|
|
325
|
+
display_name: string | null;
|
|
326
|
+
entity_type: string | null;
|
|
327
|
+
id: string;
|
|
328
|
+
state: {
|
|
329
|
+
[x: string]: unknown;
|
|
330
|
+
} | null;
|
|
331
|
+
} | null | undefined;
|
|
137
332
|
entity_id: string | null;
|
|
138
333
|
entity_type: string | null;
|
|
139
334
|
event_ids: string[];
|
|
140
|
-
events?:
|
|
335
|
+
events?: {
|
|
336
|
+
confidence: number;
|
|
337
|
+
created_at?: string | null | undefined;
|
|
338
|
+
data: {
|
|
339
|
+
[x: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
event_type: string | null;
|
|
342
|
+
fhir_resource_id: string | null;
|
|
343
|
+
fhir_resource_type: string | null;
|
|
344
|
+
id: string;
|
|
345
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
346
|
+
}[] | null | undefined;
|
|
141
347
|
id: string;
|
|
142
348
|
judge_analysis: {
|
|
143
|
-
[
|
|
349
|
+
[x: string]: unknown;
|
|
144
350
|
} | null;
|
|
145
351
|
priority: number;
|
|
146
352
|
reason: string;
|
|
@@ -162,15 +368,33 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
162
368
|
assigned_to: string | null;
|
|
163
369
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
164
370
|
completed_at: string | null;
|
|
165
|
-
created_at?: string | null;
|
|
166
|
-
entity?:
|
|
371
|
+
created_at?: string | null | undefined;
|
|
372
|
+
entity?: {
|
|
373
|
+
display_name: string | null;
|
|
374
|
+
entity_type: string | null;
|
|
375
|
+
id: string;
|
|
376
|
+
state: {
|
|
377
|
+
[x: string]: unknown;
|
|
378
|
+
} | null;
|
|
379
|
+
} | null | undefined;
|
|
167
380
|
entity_id: string | null;
|
|
168
381
|
entity_type: string | null;
|
|
169
382
|
event_ids: string[];
|
|
170
|
-
events?:
|
|
383
|
+
events?: {
|
|
384
|
+
confidence: number;
|
|
385
|
+
created_at?: string | null | undefined;
|
|
386
|
+
data: {
|
|
387
|
+
[x: string]: unknown;
|
|
388
|
+
};
|
|
389
|
+
event_type: string | null;
|
|
390
|
+
fhir_resource_id: string | null;
|
|
391
|
+
fhir_resource_type: string | null;
|
|
392
|
+
id: string;
|
|
393
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
394
|
+
}[] | null | undefined;
|
|
171
395
|
id: string;
|
|
172
396
|
judge_analysis: {
|
|
173
|
-
[
|
|
397
|
+
[x: string]: unknown;
|
|
174
398
|
} | null;
|
|
175
399
|
priority: number;
|
|
176
400
|
reason: string;
|
|
@@ -180,35 +404,90 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
180
404
|
} & import("../index.js").ResponseMetadata>;
|
|
181
405
|
batchApprove(body: components['schemas']['BatchApproveRequest']): Promise<{
|
|
182
406
|
failed: {
|
|
183
|
-
[
|
|
407
|
+
[x: string]: string;
|
|
184
408
|
}[];
|
|
185
409
|
succeeded: string[];
|
|
186
410
|
} & import("../index.js").ResponseMetadata>;
|
|
187
411
|
batchReject(body: components['schemas']['BatchRejectRequest']): Promise<{
|
|
188
412
|
failed: {
|
|
189
|
-
[
|
|
413
|
+
[x: string]: string;
|
|
190
414
|
}[];
|
|
191
415
|
succeeded: string[];
|
|
192
416
|
} & import("../index.js").ResponseMetadata>;
|
|
193
417
|
getHistory(params?: ReviewHistoryParams): Promise<{
|
|
194
|
-
continuation_token?: number | null;
|
|
418
|
+
continuation_token?: number | null | undefined;
|
|
195
419
|
has_more: boolean;
|
|
196
|
-
items:
|
|
197
|
-
|
|
420
|
+
items: {
|
|
421
|
+
assigned_to: string | null;
|
|
422
|
+
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
423
|
+
completed_at: string | null;
|
|
424
|
+
created_at?: string | null | undefined;
|
|
425
|
+
entity?: {
|
|
426
|
+
display_name: string | null;
|
|
427
|
+
entity_type: string | null;
|
|
428
|
+
id: string;
|
|
429
|
+
state: {
|
|
430
|
+
[x: string]: unknown;
|
|
431
|
+
} | null;
|
|
432
|
+
} | null | undefined;
|
|
433
|
+
entity_id: string | null;
|
|
434
|
+
entity_type: string | null;
|
|
435
|
+
event_ids: string[];
|
|
436
|
+
events?: {
|
|
437
|
+
confidence: number;
|
|
438
|
+
created_at?: string | null | undefined;
|
|
439
|
+
data: {
|
|
440
|
+
[x: string]: unknown;
|
|
441
|
+
};
|
|
442
|
+
event_type: string | null;
|
|
443
|
+
fhir_resource_id: string | null;
|
|
444
|
+
fhir_resource_type: string | null;
|
|
445
|
+
id: string;
|
|
446
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
447
|
+
}[] | null | undefined;
|
|
448
|
+
id: string;
|
|
449
|
+
judge_analysis: {
|
|
450
|
+
[x: string]: unknown;
|
|
451
|
+
} | null;
|
|
452
|
+
priority: number;
|
|
453
|
+
reason: string;
|
|
454
|
+
session_id: string;
|
|
455
|
+
status: "pending" | "in_progress" | "completed" | "rejected";
|
|
456
|
+
workspace_id: string;
|
|
457
|
+
}[];
|
|
458
|
+
total?: number | null | undefined;
|
|
198
459
|
} & import("../index.js").ResponseMetadata>;
|
|
199
460
|
getHistoryAutoPaging(params?: ReviewHistoryParams): AsyncGenerator<{
|
|
200
461
|
assigned_to: string | null;
|
|
201
462
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
202
463
|
completed_at: string | null;
|
|
203
|
-
created_at?: string | null;
|
|
204
|
-
entity?:
|
|
464
|
+
created_at?: string | null | undefined;
|
|
465
|
+
entity?: {
|
|
466
|
+
display_name: string | null;
|
|
467
|
+
entity_type: string | null;
|
|
468
|
+
id: string;
|
|
469
|
+
state: {
|
|
470
|
+
[x: string]: unknown;
|
|
471
|
+
} | null;
|
|
472
|
+
} | null | undefined;
|
|
205
473
|
entity_id: string | null;
|
|
206
474
|
entity_type: string | null;
|
|
207
475
|
event_ids: string[];
|
|
208
|
-
events?:
|
|
476
|
+
events?: {
|
|
477
|
+
confidence: number;
|
|
478
|
+
created_at?: string | null | undefined;
|
|
479
|
+
data: {
|
|
480
|
+
[x: string]: unknown;
|
|
481
|
+
};
|
|
482
|
+
event_type: string | null;
|
|
483
|
+
fhir_resource_id: string | null;
|
|
484
|
+
fhir_resource_type: string | null;
|
|
485
|
+
id: string;
|
|
486
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
487
|
+
}[] | null | undefined;
|
|
209
488
|
id: string;
|
|
210
489
|
judge_analysis: {
|
|
211
|
-
[
|
|
490
|
+
[x: string]: unknown;
|
|
212
491
|
} | null;
|
|
213
492
|
priority: number;
|
|
214
493
|
reason: string;
|
|
@@ -219,26 +498,48 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
219
498
|
getTrends(params?: {
|
|
220
499
|
days?: number;
|
|
221
500
|
}): Promise<{
|
|
222
|
-
[
|
|
501
|
+
[x: string]: unknown;
|
|
223
502
|
} & import("../index.js").ResponseMetadata>;
|
|
224
503
|
getPerformance(params?: {
|
|
225
504
|
days?: number;
|
|
226
505
|
}): Promise<{
|
|
227
|
-
[
|
|
506
|
+
[x: string]: unknown;
|
|
228
507
|
} & import("../index.js").ResponseMetadata>;
|
|
229
508
|
getCorrectionSchema(itemId: string): Promise<{
|
|
230
509
|
current_values: {
|
|
231
|
-
[
|
|
510
|
+
[x: string]: unknown;
|
|
232
511
|
};
|
|
233
512
|
fhir_resource_type: string | null;
|
|
234
513
|
fields: {
|
|
235
|
-
[
|
|
514
|
+
[x: string]: unknown;
|
|
236
515
|
};
|
|
237
516
|
} & import("../index.js").ResponseMetadata>;
|
|
238
517
|
getDiff(itemId: string): Promise<{
|
|
239
|
-
corrected_events:
|
|
518
|
+
corrected_events: {
|
|
519
|
+
confidence: number;
|
|
520
|
+
created_at?: string | null | undefined;
|
|
521
|
+
data: {
|
|
522
|
+
[x: string]: unknown;
|
|
523
|
+
};
|
|
524
|
+
event_type: string | null;
|
|
525
|
+
fhir_resource_id: string | null;
|
|
526
|
+
fhir_resource_type: string | null;
|
|
527
|
+
id: string;
|
|
528
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
529
|
+
}[];
|
|
240
530
|
item_id: string;
|
|
241
|
-
original_events:
|
|
531
|
+
original_events: {
|
|
532
|
+
confidence: number;
|
|
533
|
+
created_at?: string | null | undefined;
|
|
534
|
+
data: {
|
|
535
|
+
[x: string]: unknown;
|
|
536
|
+
};
|
|
537
|
+
event_type: string | null;
|
|
538
|
+
fhir_resource_id: string | null;
|
|
539
|
+
fhir_resource_type: string | null;
|
|
540
|
+
id: string;
|
|
541
|
+
review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
|
|
542
|
+
}[];
|
|
242
543
|
} & import("../index.js").ResponseMetadata>;
|
|
243
544
|
}
|
|
244
545
|
//# sourceMappingURL=review-queue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review-queue.d.ts","sourceRoot":"","sources":["../../../src/resources/review-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,UAAU,C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CAAC,qBAAqB,CAAC;;;;;;IAS/D,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC;;;;;;IAS7D,UAAU,CAAC,MAAM,CAAC,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQ7C,oBAAoB,CAAC,MAAM,CAAC,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI3C,SAAS,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;IAQpC,cAAc,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;IAQzC,mBAAmB,CAAC,MAAM,EAAE,MAAM;;;;;;;;;IAQlC,OAAO,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO7B"}
|
|
@@ -31,22 +31,48 @@ export declare class SafetyResource extends WorkspaceScopedResource {
|
|
|
31
31
|
category: string;
|
|
32
32
|
description: string;
|
|
33
33
|
id: string;
|
|
34
|
-
is_composite?: boolean;
|
|
34
|
+
is_composite?: boolean | undefined;
|
|
35
35
|
name: string;
|
|
36
36
|
regulation: string;
|
|
37
|
-
rules:
|
|
38
|
-
|
|
37
|
+
rules: {
|
|
38
|
+
agent_config: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
escalation: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
name: string;
|
|
46
|
+
standalone_threshold: number;
|
|
47
|
+
tags: string[];
|
|
48
|
+
threshold: number;
|
|
49
|
+
triage_hints: string[];
|
|
50
|
+
}[];
|
|
51
|
+
template_ids?: string[] | undefined;
|
|
39
52
|
version: string;
|
|
40
53
|
}[] & import("../index.js").ResponseMetadata>;
|
|
41
54
|
getTemplate(templateId: string): Promise<{
|
|
42
55
|
category: string;
|
|
43
56
|
description: string;
|
|
44
57
|
id: string;
|
|
45
|
-
is_composite?: boolean;
|
|
58
|
+
is_composite?: boolean | undefined;
|
|
46
59
|
name: string;
|
|
47
60
|
regulation: string;
|
|
48
|
-
rules:
|
|
49
|
-
|
|
61
|
+
rules: {
|
|
62
|
+
agent_config: {
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
description: string;
|
|
66
|
+
escalation: {
|
|
67
|
+
[x: string]: unknown;
|
|
68
|
+
};
|
|
69
|
+
name: string;
|
|
70
|
+
standalone_threshold: number;
|
|
71
|
+
tags: string[];
|
|
72
|
+
threshold: number;
|
|
73
|
+
triage_hints: string[];
|
|
74
|
+
}[];
|
|
75
|
+
template_ids?: string[] | undefined;
|
|
50
76
|
version: string;
|
|
51
77
|
} & import("../index.js").ResponseMetadata>;
|
|
52
78
|
applyTemplate(templateId: string, body: components['schemas']['ApplyTemplateRequest']): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../../src/resources/safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,cAAe,SAAQ,uBAAuB;IACnD,SAAS;;;;;;;;;;;;;IAQT,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,2BAA2B,CAAC;;;;;;;;;;;;;IASrE,aAAa
|
|
1
|
+
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../../src/resources/safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,cAAe,SAAQ,uBAAuB;IACnD,SAAS;;;;;;;;;;;;;IAQT,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,2BAA2B,CAAC;;;;;;;;;;;;;IASrE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;IAQb,WAAW,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAQ9B,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;CAQ5F"}
|