@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
|
@@ -20,79 +20,24 @@ 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;
|
|
24
24
|
has_more: boolean;
|
|
25
|
-
items:
|
|
26
|
-
|
|
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;
|
|
25
|
+
items: components["schemas"]["ReviewItemResponse"][];
|
|
26
|
+
total?: number | null;
|
|
64
27
|
} & import("../index.js").ResponseMetadata>;
|
|
65
28
|
listAutoPaging(params?: ListReviewItemsParams): AsyncGenerator<{
|
|
66
29
|
assigned_to: string | null;
|
|
67
30
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
68
31
|
completed_at: string | null;
|
|
69
|
-
created_at?: string | null
|
|
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;
|
|
32
|
+
created_at?: string | null;
|
|
33
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
78
34
|
entity_id: string | null;
|
|
79
35
|
entity_type: string | null;
|
|
80
36
|
event_ids: string[];
|
|
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;
|
|
37
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
93
38
|
id: string;
|
|
94
39
|
judge_analysis: {
|
|
95
|
-
[
|
|
40
|
+
[key: string]: unknown;
|
|
96
41
|
} | null;
|
|
97
42
|
priority: number;
|
|
98
43
|
reason: string;
|
|
@@ -104,33 +49,15 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
104
49
|
assigned_to: string | null;
|
|
105
50
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
106
51
|
completed_at: string | null;
|
|
107
|
-
created_at?: string | null
|
|
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;
|
|
52
|
+
created_at?: string | null;
|
|
53
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
116
54
|
entity_id: string | null;
|
|
117
55
|
entity_type: string | null;
|
|
118
56
|
event_ids: string[];
|
|
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;
|
|
57
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
131
58
|
id: string;
|
|
132
59
|
judge_analysis: {
|
|
133
|
-
[
|
|
60
|
+
[key: string]: unknown;
|
|
134
61
|
} | null;
|
|
135
62
|
priority: number;
|
|
136
63
|
reason: string;
|
|
@@ -147,130 +74,33 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
147
74
|
getDashboard(): Promise<{
|
|
148
75
|
completion_rate_24h: number | null;
|
|
149
76
|
pending_by_priority: {
|
|
150
|
-
[
|
|
77
|
+
[key: string]: number;
|
|
151
78
|
};
|
|
152
79
|
pending_by_reason: {
|
|
153
|
-
[
|
|
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;
|
|
80
|
+
[key: string]: unknown;
|
|
192
81
|
}[];
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
completed: number;
|
|
196
|
-
pending: number;
|
|
197
|
-
rejected: number;
|
|
198
|
-
};
|
|
82
|
+
recent_completed: components["schemas"]["ReviewItemResponse"][];
|
|
83
|
+
stats: components["schemas"]["ReviewStatsResponse"];
|
|
199
84
|
} & import("../index.js").ResponseMetadata>;
|
|
200
85
|
getMyQueue(params?: ListParams): Promise<{
|
|
201
|
-
continuation_token?: number | null
|
|
86
|
+
continuation_token?: number | null;
|
|
202
87
|
has_more: boolean;
|
|
203
|
-
items:
|
|
204
|
-
|
|
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;
|
|
88
|
+
items: components["schemas"]["ReviewItemResponse"][];
|
|
89
|
+
total?: number | null;
|
|
242
90
|
} & import("../index.js").ResponseMetadata>;
|
|
243
91
|
getMyQueueAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
244
92
|
assigned_to: string | null;
|
|
245
93
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
246
94
|
completed_at: string | null;
|
|
247
|
-
created_at?: string | null
|
|
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;
|
|
95
|
+
created_at?: string | null;
|
|
96
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
256
97
|
entity_id: string | null;
|
|
257
98
|
entity_type: string | null;
|
|
258
99
|
event_ids: string[];
|
|
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;
|
|
100
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
271
101
|
id: string;
|
|
272
102
|
judge_analysis: {
|
|
273
|
-
[
|
|
103
|
+
[key: string]: unknown;
|
|
274
104
|
} | null;
|
|
275
105
|
priority: number;
|
|
276
106
|
reason: string;
|
|
@@ -282,33 +112,15 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
282
112
|
assigned_to: string | null;
|
|
283
113
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
284
114
|
completed_at: string | null;
|
|
285
|
-
created_at?: string | null
|
|
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;
|
|
115
|
+
created_at?: string | null;
|
|
116
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
294
117
|
entity_id: string | null;
|
|
295
118
|
entity_type: string | null;
|
|
296
119
|
event_ids: string[];
|
|
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;
|
|
120
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
309
121
|
id: string;
|
|
310
122
|
judge_analysis: {
|
|
311
|
-
[
|
|
123
|
+
[key: string]: unknown;
|
|
312
124
|
} | null;
|
|
313
125
|
priority: number;
|
|
314
126
|
reason: string;
|
|
@@ -320,33 +132,15 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
320
132
|
assigned_to: string | null;
|
|
321
133
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
322
134
|
completed_at: string | null;
|
|
323
|
-
created_at?: string | null
|
|
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;
|
|
135
|
+
created_at?: string | null;
|
|
136
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
332
137
|
entity_id: string | null;
|
|
333
138
|
entity_type: string | null;
|
|
334
139
|
event_ids: string[];
|
|
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;
|
|
140
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
347
141
|
id: string;
|
|
348
142
|
judge_analysis: {
|
|
349
|
-
[
|
|
143
|
+
[key: string]: unknown;
|
|
350
144
|
} | null;
|
|
351
145
|
priority: number;
|
|
352
146
|
reason: string;
|
|
@@ -368,33 +162,15 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
368
162
|
assigned_to: string | null;
|
|
369
163
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
370
164
|
completed_at: string | null;
|
|
371
|
-
created_at?: string | null
|
|
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;
|
|
165
|
+
created_at?: string | null;
|
|
166
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
380
167
|
entity_id: string | null;
|
|
381
168
|
entity_type: string | null;
|
|
382
169
|
event_ids: string[];
|
|
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;
|
|
170
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
395
171
|
id: string;
|
|
396
172
|
judge_analysis: {
|
|
397
|
-
[
|
|
173
|
+
[key: string]: unknown;
|
|
398
174
|
} | null;
|
|
399
175
|
priority: number;
|
|
400
176
|
reason: string;
|
|
@@ -404,90 +180,35 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
404
180
|
} & import("../index.js").ResponseMetadata>;
|
|
405
181
|
batchApprove(body: components['schemas']['BatchApproveRequest']): Promise<{
|
|
406
182
|
failed: {
|
|
407
|
-
[
|
|
183
|
+
[key: string]: string;
|
|
408
184
|
}[];
|
|
409
185
|
succeeded: string[];
|
|
410
186
|
} & import("../index.js").ResponseMetadata>;
|
|
411
187
|
batchReject(body: components['schemas']['BatchRejectRequest']): Promise<{
|
|
412
188
|
failed: {
|
|
413
|
-
[
|
|
189
|
+
[key: string]: string;
|
|
414
190
|
}[];
|
|
415
191
|
succeeded: string[];
|
|
416
192
|
} & import("../index.js").ResponseMetadata>;
|
|
417
193
|
getHistory(params?: ReviewHistoryParams): Promise<{
|
|
418
|
-
continuation_token?: number | null
|
|
194
|
+
continuation_token?: number | null;
|
|
419
195
|
has_more: boolean;
|
|
420
|
-
items:
|
|
421
|
-
|
|
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;
|
|
196
|
+
items: components["schemas"]["ReviewItemResponse"][];
|
|
197
|
+
total?: number | null;
|
|
459
198
|
} & import("../index.js").ResponseMetadata>;
|
|
460
199
|
getHistoryAutoPaging(params?: ReviewHistoryParams): AsyncGenerator<{
|
|
461
200
|
assigned_to: string | null;
|
|
462
201
|
completed_action: ("approved" | "rejected" | "corrected") | null;
|
|
463
202
|
completed_at: string | null;
|
|
464
|
-
created_at?: string | null
|
|
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;
|
|
203
|
+
created_at?: string | null;
|
|
204
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
473
205
|
entity_id: string | null;
|
|
474
206
|
entity_type: string | null;
|
|
475
207
|
event_ids: string[];
|
|
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;
|
|
208
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
488
209
|
id: string;
|
|
489
210
|
judge_analysis: {
|
|
490
|
-
[
|
|
211
|
+
[key: string]: unknown;
|
|
491
212
|
} | null;
|
|
492
213
|
priority: number;
|
|
493
214
|
reason: string;
|
|
@@ -498,48 +219,26 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
|
498
219
|
getTrends(params?: {
|
|
499
220
|
days?: number;
|
|
500
221
|
}): Promise<{
|
|
501
|
-
[
|
|
222
|
+
[key: string]: unknown;
|
|
502
223
|
} & import("../index.js").ResponseMetadata>;
|
|
503
224
|
getPerformance(params?: {
|
|
504
225
|
days?: number;
|
|
505
226
|
}): Promise<{
|
|
506
|
-
[
|
|
227
|
+
[key: string]: unknown;
|
|
507
228
|
} & import("../index.js").ResponseMetadata>;
|
|
508
229
|
getCorrectionSchema(itemId: string): Promise<{
|
|
509
230
|
current_values: {
|
|
510
|
-
[
|
|
231
|
+
[key: string]: unknown;
|
|
511
232
|
};
|
|
512
233
|
fhir_resource_type: string | null;
|
|
513
234
|
fields: {
|
|
514
|
-
[
|
|
235
|
+
[key: string]: unknown;
|
|
515
236
|
};
|
|
516
237
|
} & import("../index.js").ResponseMetadata>;
|
|
517
238
|
getDiff(itemId: string): Promise<{
|
|
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
|
-
}[];
|
|
239
|
+
corrected_events: components["schemas"]["EventSummary"][];
|
|
530
240
|
item_id: string;
|
|
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
|
-
}[];
|
|
241
|
+
original_events: components["schemas"]["EventSummary"][];
|
|
543
242
|
} & import("../index.js").ResponseMetadata>;
|
|
544
243
|
}
|
|
545
244
|
//# 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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M,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC;;;;;iBAgGikxjB,qBAAsB;;;;iBAAgR,qBAAsB;;;;;;;;;;;IAvFh8xjB,KAAK,CAAC,MAAM,EAAE,MAAM;;;;;IAQpB,OAAO,CAAC,MAAM,EAAE,MAAM;;;;;IAQtB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC;;;;;iBAuE+jxjB,qBAAsB;;;;iBAAgR,qBAAsB;;;;;;;;;;;IA9Dh8xjB,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;;;IAS/D,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC;;;;;;IAS7D,UAAU,CAAC,MAAM,CAAC,EAAE,mBAAmB;;;eA4CixxgB,qBAAsB;;;IApCp1xgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,mBAAmB;;;;;iBAoCylxjB,qBAAsB;;;;iBAAgR,qBAAsB;;;;;;;;;;;IAhCh8xjB,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;0BAQm6vjB,qBAAsB;;yBAA2I,qBAAsB;;CADvnwjB"}
|
|
@@ -31,48 +31,22 @@ 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;
|
|
35
35
|
name: string;
|
|
36
36
|
regulation: string;
|
|
37
|
-
rules:
|
|
38
|
-
|
|
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;
|
|
37
|
+
rules: components["schemas"]["SafetyRuleResponse"][];
|
|
38
|
+
template_ids?: string[];
|
|
52
39
|
version: string;
|
|
53
40
|
}[] & import("../index.js").ResponseMetadata>;
|
|
54
41
|
getTemplate(templateId: string): Promise<{
|
|
55
42
|
category: string;
|
|
56
43
|
description: string;
|
|
57
44
|
id: string;
|
|
58
|
-
is_composite?: boolean
|
|
45
|
+
is_composite?: boolean;
|
|
59
46
|
name: string;
|
|
60
47
|
regulation: string;
|
|
61
|
-
rules:
|
|
62
|
-
|
|
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;
|
|
48
|
+
rules: components["schemas"]["SafetyRuleResponse"][];
|
|
49
|
+
template_ids?: string[];
|
|
76
50
|
version: string;
|
|
77
51
|
} & import("../index.js").ResponseMetadata>;
|
|
78
52
|
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;;;;;;;eAyB6ssjB,qBAAsB;;;;IAjBhvsjB,WAAW,CAAC,UAAU,EAAE,MAAM;;;;;;;eAiB4rsjB,qBAAsB;;;;IAThvsjB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;CAQ5F"}
|