@amigo-ai/platform-sdk 0.5.3 → 0.5.4

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.
Files changed (32) hide show
  1. package/dist/types/generated/api.d.ts +13860 -13131
  2. package/dist/types/generated/api.d.ts.map +1 -1
  3. package/dist/types/resources/actions.d.ts +166 -166
  4. package/dist/types/resources/agents.d.ts +88 -88
  5. package/dist/types/resources/analytics.d.ts +39 -39
  6. package/dist/types/resources/api-keys.d.ts +29 -29
  7. package/dist/types/resources/audit.d.ts +73 -73
  8. package/dist/types/resources/billing.d.ts +36 -36
  9. package/dist/types/resources/calls.d.ts +106 -106
  10. package/dist/types/resources/compliance.d.ts +17 -17
  11. package/dist/types/resources/context-graphs.d.ts +633 -633
  12. package/dist/types/resources/data-sources.d.ts +81 -81
  13. package/dist/types/resources/functions.d.ts +22 -22
  14. package/dist/types/resources/functions.d.ts.map +1 -1
  15. package/dist/types/resources/integrations.d.ts +258 -258
  16. package/dist/types/resources/memory.d.ts +35 -35
  17. package/dist/types/resources/operators.d.ts +147 -147
  18. package/dist/types/resources/personas.d.ts +37 -37
  19. package/dist/types/resources/phone-numbers.d.ts +62 -62
  20. package/dist/types/resources/recordings.d.ts +9 -9
  21. package/dist/types/resources/review-queue.d.ts +331 -331
  22. package/dist/types/resources/safety.d.ts +33 -33
  23. package/dist/types/resources/services.d.ts +142 -142
  24. package/dist/types/resources/settings.d.ts +254 -254
  25. package/dist/types/resources/settings.d.ts.map +1 -1
  26. package/dist/types/resources/simulations.d.ts +73 -73
  27. package/dist/types/resources/skills.d.ts +163 -163
  28. package/dist/types/resources/triggers.d.ts +74 -74
  29. package/dist/types/resources/webhook-destinations.d.ts +57 -57
  30. package/dist/types/resources/workspaces.d.ts +50 -50
  31. package/dist/types/resources/world.d.ts +216 -216
  32. package/package.json +1 -1
@@ -20,137 +20,132 @@ 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 | undefined;
24
+ has_more: boolean;
23
25
  items: {
24
- id: string;
25
- workspace_id: string;
26
- session_id: string;
27
- event_ids: string[];
28
- entity_id: string | null;
29
- entity_type: string | null;
30
- priority: number;
31
- reason: string;
32
- judge_analysis: {
33
- [x: string]: unknown;
34
- } | null;
35
- status: "pending" | "in_progress" | "completed" | "rejected";
36
26
  assigned_to: string | null;
37
- created_at?: string | null | undefined;
38
- completed_at: string | null;
39
27
  completed_action: ("approved" | "rejected" | "corrected") | null;
40
- events?: {
41
- id: string;
42
- event_type: string | null;
43
- fhir_resource_type: string | null;
44
- fhir_resource_id: string | null;
45
- data: {
46
- [x: string]: unknown;
47
- };
48
- confidence: number;
49
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
50
- created_at?: string | null | undefined;
51
- }[] | null | undefined;
28
+ completed_at: string | null;
29
+ created_at?: string | null | undefined;
52
30
  entity?: {
53
- id: string;
54
- entity_type: string | null;
55
31
  display_name: string | null;
32
+ entity_type: string | null;
33
+ id: string;
56
34
  state: {
57
35
  [x: string]: unknown;
58
36
  } | null;
59
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;
60
62
  }[];
61
- has_more: boolean;
62
- continuation_token?: number | null | undefined;
63
63
  total?: number | null | undefined;
64
64
  } & import("../index.js").ResponseMetadata>;
65
65
  listAutoPaging(params?: ListReviewItemsParams): AsyncGenerator<{
66
- id: string;
67
- workspace_id: string;
68
- session_id: string;
69
- event_ids: string[];
70
- entity_id: string | null;
71
- entity_type: string | null;
72
- priority: number;
73
- reason: string;
74
- judge_analysis: {
75
- [x: string]: unknown;
76
- } | null;
77
- status: "pending" | "in_progress" | "completed" | "rejected";
78
66
  assigned_to: string | null;
79
- created_at?: string | null | undefined;
80
- completed_at: string | null;
81
67
  completed_action: ("approved" | "rejected" | "corrected") | null;
82
- events?: {
83
- id: string;
84
- event_type: string | null;
85
- fhir_resource_type: string | null;
86
- fhir_resource_id: string | null;
87
- data: {
88
- [x: string]: unknown;
89
- };
90
- confidence: number;
91
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
92
- created_at?: string | null | undefined;
93
- }[] | null | undefined;
68
+ completed_at: string | null;
69
+ created_at?: string | null | undefined;
94
70
  entity?: {
95
- id: string;
96
- entity_type: string | null;
97
71
  display_name: string | null;
72
+ entity_type: string | null;
73
+ id: string;
98
74
  state: {
99
75
  [x: string]: unknown;
100
76
  } | null;
101
77
  } | null | undefined;
102
- }, any, any>;
103
- get(itemId: string): Promise<{
104
- id: string;
105
- workspace_id: string;
106
- session_id: string;
107
- event_ids: string[];
108
78
  entity_id: string | null;
109
79
  entity_type: string | null;
110
- priority: number;
111
- reason: string;
112
- judge_analysis: {
113
- [x: string]: unknown;
114
- } | null;
115
- status: "pending" | "in_progress" | "completed" | "rejected";
116
- assigned_to: string | null;
117
- created_at?: string | null | undefined;
118
- completed_at: string | null;
119
- completed_action: ("approved" | "rejected" | "corrected") | null;
80
+ event_ids: string[];
120
81
  events?: {
121
- id: string;
122
- event_type: string | null;
123
- fhir_resource_type: string | null;
124
- fhir_resource_id: string | null;
82
+ confidence: number;
83
+ created_at?: string | null | undefined;
125
84
  data: {
126
85
  [x: string]: unknown;
127
86
  };
128
- confidence: number;
87
+ event_type: string | null;
88
+ fhir_resource_id: string | null;
89
+ fhir_resource_type: string | null;
90
+ id: string;
129
91
  review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
130
- created_at?: string | null | undefined;
131
92
  }[] | null | undefined;
93
+ id: string;
94
+ judge_analysis: {
95
+ [x: string]: unknown;
96
+ } | null;
97
+ priority: number;
98
+ reason: string;
99
+ session_id: string;
100
+ status: "pending" | "in_progress" | "completed" | "rejected";
101
+ workspace_id: string;
102
+ }, any, any>;
103
+ get(itemId: string): Promise<{
104
+ assigned_to: string | null;
105
+ completed_action: ("approved" | "rejected" | "corrected") | null;
106
+ completed_at: string | null;
107
+ created_at?: string | null | undefined;
132
108
  entity?: {
133
- id: string;
134
- entity_type: string | null;
135
109
  display_name: string | null;
110
+ entity_type: string | null;
111
+ id: string;
136
112
  state: {
137
113
  [x: string]: unknown;
138
114
  } | null;
139
115
  } | null | undefined;
116
+ entity_id: string | null;
117
+ entity_type: string | null;
118
+ 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;
131
+ id: string;
132
+ judge_analysis: {
133
+ [x: string]: unknown;
134
+ } | null;
135
+ priority: number;
136
+ reason: string;
137
+ session_id: string;
138
+ status: "pending" | "in_progress" | "completed" | "rejected";
139
+ workspace_id: string;
140
140
  } & import("../index.js").ResponseMetadata>;
141
141
  getStats(): Promise<{
142
- pending: number;
142
+ avg_review_minutes: number | null;
143
143
  completed: number;
144
+ pending: number;
144
145
  rejected: number;
145
- avg_review_minutes: number | null;
146
146
  } & import("../index.js").ResponseMetadata>;
147
147
  getDashboard(): Promise<{
148
- stats: {
149
- pending: number;
150
- completed: number;
151
- rejected: number;
152
- avg_review_minutes: number | null;
153
- };
148
+ completion_rate_24h: number | null;
154
149
  pending_by_priority: {
155
150
  [x: string]: number;
156
151
  };
@@ -158,342 +153,347 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
158
153
  [x: string]: unknown;
159
154
  }[];
160
155
  recent_completed: {
161
- id: string;
162
- workspace_id: string;
163
- session_id: string;
164
- event_ids: string[];
165
- entity_id: string | null;
166
- entity_type: string | null;
167
- priority: number;
168
- reason: string;
169
- judge_analysis: {
170
- [x: string]: unknown;
171
- } | null;
172
- status: "pending" | "in_progress" | "completed" | "rejected";
173
156
  assigned_to: string | null;
174
- created_at?: string | null | undefined;
175
- completed_at: string | null;
176
157
  completed_action: ("approved" | "rejected" | "corrected") | null;
177
- events?: {
178
- id: string;
179
- event_type: string | null;
180
- fhir_resource_type: string | null;
181
- fhir_resource_id: string | null;
182
- data: {
183
- [x: string]: unknown;
184
- };
185
- confidence: number;
186
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
187
- created_at?: string | null | undefined;
188
- }[] | null | undefined;
158
+ completed_at: string | null;
159
+ created_at?: string | null | undefined;
189
160
  entity?: {
190
- id: string;
191
- entity_type: string | null;
192
161
  display_name: string | null;
162
+ entity_type: string | null;
163
+ id: string;
193
164
  state: {
194
165
  [x: string]: unknown;
195
166
  } | null;
196
167
  } | null | undefined;
197
- }[];
198
- completion_rate_24h: number | null;
199
- } & import("../index.js").ResponseMetadata>;
200
- getMyQueue(params?: ListParams): Promise<{
201
- items: {
202
- id: string;
203
- workspace_id: string;
204
- session_id: string;
205
- event_ids: string[];
206
168
  entity_id: string | null;
207
169
  entity_type: string | null;
208
- priority: number;
209
- reason: string;
210
- judge_analysis: {
211
- [x: string]: unknown;
212
- } | null;
213
- status: "pending" | "in_progress" | "completed" | "rejected";
214
- assigned_to: string | null;
215
- created_at?: string | null | undefined;
216
- completed_at: string | null;
217
- completed_action: ("approved" | "rejected" | "corrected") | null;
170
+ event_ids: string[];
218
171
  events?: {
219
- id: string;
220
- event_type: string | null;
221
- fhir_resource_type: string | null;
222
- fhir_resource_id: string | null;
172
+ confidence: number;
173
+ created_at?: string | null | undefined;
223
174
  data: {
224
175
  [x: string]: unknown;
225
176
  };
226
- confidence: number;
177
+ event_type: string | null;
178
+ fhir_resource_id: string | null;
179
+ fhir_resource_type: string | null;
180
+ id: string;
227
181
  review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
228
- created_at?: string | null | undefined;
229
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;
192
+ }[];
193
+ stats: {
194
+ avg_review_minutes: number | null;
195
+ completed: number;
196
+ pending: number;
197
+ rejected: number;
198
+ };
199
+ } & import("../index.js").ResponseMetadata>;
200
+ getMyQueue(params?: ListParams): Promise<{
201
+ continuation_token?: number | null | undefined;
202
+ has_more: boolean;
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;
230
208
  entity?: {
231
- id: string;
232
- entity_type: string | null;
233
209
  display_name: string | null;
210
+ entity_type: string | null;
211
+ id: string;
234
212
  state: {
235
213
  [x: string]: unknown;
236
214
  } | null;
237
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;
238
240
  }[];
239
- has_more: boolean;
240
- continuation_token?: number | null | undefined;
241
241
  total?: number | null | undefined;
242
242
  } & import("../index.js").ResponseMetadata>;
243
243
  getMyQueueAutoPaging(params?: ListParams): AsyncGenerator<{
244
- id: string;
245
- workspace_id: string;
246
- session_id: string;
247
- event_ids: string[];
248
- entity_id: string | null;
249
- entity_type: string | null;
250
- priority: number;
251
- reason: string;
252
- judge_analysis: {
253
- [x: string]: unknown;
254
- } | null;
255
- status: "pending" | "in_progress" | "completed" | "rejected";
256
244
  assigned_to: string | null;
257
- created_at?: string | null | undefined;
258
- completed_at: string | null;
259
245
  completed_action: ("approved" | "rejected" | "corrected") | null;
260
- events?: {
261
- id: string;
262
- event_type: string | null;
263
- fhir_resource_type: string | null;
264
- fhir_resource_id: string | null;
265
- data: {
266
- [x: string]: unknown;
267
- };
268
- confidence: number;
269
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
270
- created_at?: string | null | undefined;
271
- }[] | null | undefined;
246
+ completed_at: string | null;
247
+ created_at?: string | null | undefined;
272
248
  entity?: {
273
- id: string;
274
- entity_type: string | null;
275
249
  display_name: string | null;
250
+ entity_type: string | null;
251
+ id: string;
276
252
  state: {
277
253
  [x: string]: unknown;
278
254
  } | null;
279
255
  } | null | undefined;
280
- }, any, any>;
281
- approve(itemId: string, body: components['schemas']['ApproveRequest']): Promise<{
282
- id: string;
283
- workspace_id: string;
284
- session_id: string;
285
- event_ids: string[];
286
256
  entity_id: string | null;
287
257
  entity_type: string | null;
288
- priority: number;
289
- reason: string;
258
+ 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;
271
+ id: string;
290
272
  judge_analysis: {
291
273
  [x: string]: unknown;
292
274
  } | null;
275
+ priority: number;
276
+ reason: string;
277
+ session_id: string;
293
278
  status: "pending" | "in_progress" | "completed" | "rejected";
279
+ workspace_id: string;
280
+ }, any, any>;
281
+ approve(itemId: string, body: components['schemas']['ApproveRequest']): Promise<{
294
282
  assigned_to: string | null;
295
- created_at?: string | null | undefined;
296
- completed_at: string | null;
297
283
  completed_action: ("approved" | "rejected" | "corrected") | null;
298
- events?: {
284
+ completed_at: string | null;
285
+ created_at?: string | null | undefined;
286
+ entity?: {
287
+ display_name: string | null;
288
+ entity_type: string | null;
299
289
  id: string;
300
- event_type: string | null;
301
- fhir_resource_type: string | null;
302
- fhir_resource_id: string | null;
290
+ state: {
291
+ [x: string]: unknown;
292
+ } | null;
293
+ } | null | undefined;
294
+ entity_id: string | null;
295
+ entity_type: string | null;
296
+ event_ids: string[];
297
+ events?: {
298
+ confidence: number;
299
+ created_at?: string | null | undefined;
303
300
  data: {
304
301
  [x: string]: unknown;
305
302
  };
306
- confidence: number;
303
+ event_type: string | null;
304
+ fhir_resource_id: string | null;
305
+ fhir_resource_type: string | null;
306
+ id: string;
307
307
  review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
308
- created_at?: string | null | undefined;
309
308
  }[] | null | undefined;
309
+ id: string;
310
+ judge_analysis: {
311
+ [x: string]: unknown;
312
+ } | null;
313
+ priority: number;
314
+ reason: string;
315
+ session_id: string;
316
+ status: "pending" | "in_progress" | "completed" | "rejected";
317
+ workspace_id: string;
318
+ } & import("../index.js").ResponseMetadata>;
319
+ reject(itemId: string, body: components['schemas']['RejectRequest']): Promise<{
320
+ assigned_to: string | null;
321
+ completed_action: ("approved" | "rejected" | "corrected") | null;
322
+ completed_at: string | null;
323
+ created_at?: string | null | undefined;
310
324
  entity?: {
311
- id: string;
312
- entity_type: string | null;
313
325
  display_name: string | null;
326
+ entity_type: string | null;
327
+ id: string;
314
328
  state: {
315
329
  [x: string]: unknown;
316
330
  } | null;
317
331
  } | null | undefined;
318
- } & import("../index.js").ResponseMetadata>;
319
- reject(itemId: string, body: components['schemas']['RejectRequest']): Promise<{
320
- id: string;
321
- workspace_id: string;
322
- session_id: string;
323
- event_ids: string[];
324
332
  entity_id: string | null;
325
333
  entity_type: string | null;
326
- priority: number;
327
- reason: string;
328
- judge_analysis: {
329
- [x: string]: unknown;
330
- } | null;
331
- status: "pending" | "in_progress" | "completed" | "rejected";
332
- assigned_to: string | null;
333
- created_at?: string | null | undefined;
334
- completed_at: string | null;
335
- completed_action: ("approved" | "rejected" | "corrected") | null;
334
+ event_ids: string[];
336
335
  events?: {
337
- id: string;
338
- event_type: string | null;
339
- fhir_resource_type: string | null;
340
- fhir_resource_id: string | null;
336
+ confidence: number;
337
+ created_at?: string | null | undefined;
341
338
  data: {
342
339
  [x: string]: unknown;
343
340
  };
344
- confidence: number;
341
+ event_type: string | null;
342
+ fhir_resource_id: string | null;
343
+ fhir_resource_type: string | null;
344
+ id: string;
345
345
  review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
346
- created_at?: string | null | undefined;
347
346
  }[] | null | undefined;
348
- entity?: {
349
- id: string;
350
- entity_type: string | null;
351
- display_name: string | null;
352
- state: {
353
- [x: string]: unknown;
354
- } | null;
355
- } | null | undefined;
347
+ id: string;
348
+ judge_analysis: {
349
+ [x: string]: unknown;
350
+ } | null;
351
+ priority: number;
352
+ reason: string;
353
+ session_id: string;
354
+ status: "pending" | "in_progress" | "completed" | "rejected";
355
+ workspace_id: string;
356
356
  } & import("../index.js").ResponseMetadata>;
357
357
  claim(itemId: string): Promise<{
358
- id: string;
359
358
  assigned_to: string;
359
+ id: string;
360
360
  status: string;
361
361
  } & import("../index.js").ResponseMetadata>;
362
362
  unclaim(itemId: string): Promise<{
363
- id: string;
364
363
  assigned_to: string;
364
+ id: string;
365
365
  status: string;
366
366
  } & import("../index.js").ResponseMetadata>;
367
367
  correct(itemId: string, body: components['schemas']['CorrectRequest']): Promise<{
368
- id: string;
369
- workspace_id: string;
370
- session_id: string;
371
- event_ids: string[];
372
- entity_id: string | null;
373
- entity_type: string | null;
374
- priority: number;
375
- reason: string;
376
- judge_analysis: {
377
- [x: string]: unknown;
378
- } | null;
379
- status: "pending" | "in_progress" | "completed" | "rejected";
380
368
  assigned_to: string | null;
381
- created_at?: string | null | undefined;
382
- completed_at: string | null;
383
369
  completed_action: ("approved" | "rejected" | "corrected") | null;
384
- events?: {
385
- id: string;
386
- event_type: string | null;
387
- fhir_resource_type: string | null;
388
- fhir_resource_id: string | null;
389
- data: {
390
- [x: string]: unknown;
391
- };
392
- confidence: number;
393
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
394
- created_at?: string | null | undefined;
395
- }[] | null | undefined;
370
+ completed_at: string | null;
371
+ created_at?: string | null | undefined;
396
372
  entity?: {
397
- id: string;
398
- entity_type: string | null;
399
373
  display_name: string | null;
374
+ entity_type: string | null;
375
+ id: string;
400
376
  state: {
401
377
  [x: string]: unknown;
402
378
  } | null;
403
379
  } | null | undefined;
380
+ entity_id: string | null;
381
+ entity_type: string | null;
382
+ 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;
395
+ id: string;
396
+ judge_analysis: {
397
+ [x: string]: unknown;
398
+ } | null;
399
+ priority: number;
400
+ reason: string;
401
+ session_id: string;
402
+ status: "pending" | "in_progress" | "completed" | "rejected";
403
+ workspace_id: string;
404
404
  } & import("../index.js").ResponseMetadata>;
405
405
  batchApprove(body: components['schemas']['BatchApproveRequest']): Promise<{
406
- succeeded: string[];
407
406
  failed: {
408
407
  [x: string]: string;
409
408
  }[];
409
+ succeeded: string[];
410
410
  } & import("../index.js").ResponseMetadata>;
411
411
  batchReject(body: components['schemas']['BatchRejectRequest']): Promise<{
412
- succeeded: string[];
413
412
  failed: {
414
413
  [x: string]: string;
415
414
  }[];
415
+ succeeded: string[];
416
416
  } & import("../index.js").ResponseMetadata>;
417
417
  getHistory(params?: ReviewHistoryParams): Promise<{
418
+ continuation_token?: number | null | undefined;
419
+ has_more: boolean;
418
420
  items: {
419
- id: string;
420
- workspace_id: string;
421
- session_id: string;
422
- event_ids: string[];
423
- entity_id: string | null;
424
- entity_type: string | null;
425
- priority: number;
426
- reason: string;
427
- judge_analysis: {
428
- [x: string]: unknown;
429
- } | null;
430
- status: "pending" | "in_progress" | "completed" | "rejected";
431
421
  assigned_to: string | null;
432
- created_at?: string | null | undefined;
433
- completed_at: string | null;
434
422
  completed_action: ("approved" | "rejected" | "corrected") | null;
435
- events?: {
436
- id: string;
437
- event_type: string | null;
438
- fhir_resource_type: string | null;
439
- fhir_resource_id: string | null;
440
- data: {
441
- [x: string]: unknown;
442
- };
443
- confidence: number;
444
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
445
- created_at?: string | null | undefined;
446
- }[] | null | undefined;
423
+ completed_at: string | null;
424
+ created_at?: string | null | undefined;
447
425
  entity?: {
448
- id: string;
449
- entity_type: string | null;
450
426
  display_name: string | null;
427
+ entity_type: string | null;
428
+ id: string;
451
429
  state: {
452
430
  [x: string]: unknown;
453
431
  } | null;
454
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;
455
457
  }[];
456
- has_more: boolean;
457
- continuation_token?: number | null | undefined;
458
458
  total?: number | null | undefined;
459
459
  } & import("../index.js").ResponseMetadata>;
460
460
  getHistoryAutoPaging(params?: ReviewHistoryParams): AsyncGenerator<{
461
- id: string;
462
- workspace_id: string;
463
- session_id: string;
464
- event_ids: string[];
465
- entity_id: string | null;
466
- entity_type: string | null;
467
- priority: number;
468
- reason: string;
469
- judge_analysis: {
470
- [x: string]: unknown;
471
- } | null;
472
- status: "pending" | "in_progress" | "completed" | "rejected";
473
461
  assigned_to: string | null;
474
- created_at?: string | null | undefined;
475
- completed_at: string | null;
476
462
  completed_action: ("approved" | "rejected" | "corrected") | null;
477
- events?: {
478
- id: string;
479
- event_type: string | null;
480
- fhir_resource_type: string | null;
481
- fhir_resource_id: string | null;
482
- data: {
483
- [x: string]: unknown;
484
- };
485
- confidence: number;
486
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
487
- created_at?: string | null | undefined;
488
- }[] | null | undefined;
463
+ completed_at: string | null;
464
+ created_at?: string | null | undefined;
489
465
  entity?: {
490
- id: string;
491
- entity_type: string | null;
492
466
  display_name: string | null;
467
+ entity_type: string | null;
468
+ id: string;
493
469
  state: {
494
470
  [x: string]: unknown;
495
471
  } | null;
496
472
  } | null | undefined;
473
+ entity_id: string | null;
474
+ entity_type: string | null;
475
+ 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;
488
+ id: string;
489
+ judge_analysis: {
490
+ [x: string]: unknown;
491
+ } | null;
492
+ priority: number;
493
+ reason: string;
494
+ session_id: string;
495
+ status: "pending" | "in_progress" | "completed" | "rejected";
496
+ workspace_id: string;
497
497
  }, any, any>;
498
498
  getTrends(params?: {
499
499
  days?: number;
@@ -506,39 +506,39 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
506
506
  [x: string]: unknown;
507
507
  } & import("../index.js").ResponseMetadata>;
508
508
  getCorrectionSchema(itemId: string): Promise<{
509
- fhir_resource_type: string | null;
510
- fields: {
509
+ current_values: {
511
510
  [x: string]: unknown;
512
511
  };
513
- current_values: {
512
+ fhir_resource_type: string | null;
513
+ fields: {
514
514
  [x: string]: unknown;
515
515
  };
516
516
  } & import("../index.js").ResponseMetadata>;
517
517
  getDiff(itemId: string): Promise<{
518
- item_id: string;
519
- original_events: {
520
- id: string;
521
- event_type: string | null;
522
- fhir_resource_type: string | null;
523
- fhir_resource_id: string | null;
518
+ corrected_events: {
519
+ confidence: number;
520
+ created_at?: string | null | undefined;
524
521
  data: {
525
522
  [x: string]: unknown;
526
523
  };
527
- confidence: number;
528
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
529
- created_at?: string | null | undefined;
530
- }[];
531
- corrected_events: {
532
- id: string;
533
524
  event_type: string | null;
534
- fhir_resource_type: string | null;
535
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
+ }[];
530
+ item_id: string;
531
+ original_events: {
532
+ confidence: number;
533
+ created_at?: string | null | undefined;
536
534
  data: {
537
535
  [x: string]: unknown;
538
536
  };
539
- confidence: number;
537
+ event_type: string | null;
538
+ fhir_resource_id: string | null;
539
+ fhir_resource_type: string | null;
540
+ id: string;
540
541
  review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
541
- created_at?: string | null | undefined;
542
542
  }[];
543
543
  } & import("../index.js").ResponseMetadata>;
544
544
  }