@amigo-ai/platform-sdk 0.5.1 → 0.5.3

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