@amigo-ai/platform-sdk 0.90.0 → 0.92.0

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 (35) hide show
  1. package/README.md +26 -8
  2. package/api.md +2 -24
  3. package/dist/index.cjs +17 -139
  4. package/dist/index.cjs.map +3 -3
  5. package/dist/index.js +0 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +17 -139
  8. package/dist/index.mjs.map +3 -3
  9. package/dist/resources/conversations.js +15 -0
  10. package/dist/resources/conversations.js.map +1 -1
  11. package/dist/types/generated/api.d.ts +64 -1149
  12. package/dist/types/generated/api.d.ts.map +1 -1
  13. package/dist/types/index.d.cts +1 -3
  14. package/dist/types/index.d.cts.map +1 -1
  15. package/dist/types/index.d.ts +1 -3
  16. package/dist/types/index.d.ts.map +1 -1
  17. package/dist/types/resources/conversations.d.ts +10 -0
  18. package/dist/types/resources/conversations.d.ts.map +1 -1
  19. package/dist/types/resources/external-integrations.d.ts.map +1 -1
  20. package/dist/types/resources/intake.d.ts.map +1 -1
  21. package/dist/types/resources/integrations.d.ts.map +1 -1
  22. package/dist/types/resources/metrics.d.ts.map +1 -1
  23. package/dist/types/resources/operators.d.ts.map +1 -1
  24. package/dist/types/resources/services.d.ts.map +1 -1
  25. package/dist/types/resources/settings.d.ts +0 -2
  26. package/dist/types/resources/settings.d.ts.map +1 -1
  27. package/dist/types/resources/simulations.d.ts +20 -0
  28. package/dist/types/resources/simulations.d.ts.map +1 -1
  29. package/dist/types/resources/surfaces.d.ts.map +1 -1
  30. package/dist/types/resources/world.d.ts.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/resources/review-queue.js +0 -103
  33. package/dist/resources/review-queue.js.map +0 -1
  34. package/dist/types/resources/review-queue.d.ts +0 -545
  35. package/dist/types/resources/review-queue.d.ts.map +0 -1
@@ -5082,340 +5082,6 @@ export interface paths {
5082
5082
  patch?: never;
5083
5083
  trace?: never;
5084
5084
  };
5085
- "/v1/{workspace_id}/review-queue": {
5086
- parameters: {
5087
- query?: never;
5088
- header?: never;
5089
- path?: never;
5090
- cookie?: never;
5091
- };
5092
- /**
5093
- * List review queue items
5094
- * @description Returns review items with rich filtering and sorting.
5095
- */
5096
- get: operations["list_review_items_v1__workspace_id__review_queue_get"];
5097
- put?: never;
5098
- post?: never;
5099
- delete?: never;
5100
- options?: never;
5101
- head?: never;
5102
- patch?: never;
5103
- trace?: never;
5104
- };
5105
- "/v1/{workspace_id}/review-queue/batch-approve": {
5106
- parameters: {
5107
- query?: never;
5108
- header?: never;
5109
- path?: never;
5110
- cookie?: never;
5111
- };
5112
- get?: never;
5113
- put?: never;
5114
- /**
5115
- * Batch approve review items
5116
- * @description Approves multiple items in one call. Each item is processed independently.
5117
- */
5118
- post: operations["batch_approve_v1__workspace_id__review_queue_batch_approve_post"];
5119
- delete?: never;
5120
- options?: never;
5121
- head?: never;
5122
- patch?: never;
5123
- trace?: never;
5124
- };
5125
- "/v1/{workspace_id}/review-queue/batch-reject": {
5126
- parameters: {
5127
- query?: never;
5128
- header?: never;
5129
- path?: never;
5130
- cookie?: never;
5131
- };
5132
- get?: never;
5133
- put?: never;
5134
- /**
5135
- * Batch reject review items
5136
- * @description Rejects multiple items in one call. Each item is processed independently.
5137
- */
5138
- post: operations["batch_reject_v1__workspace_id__review_queue_batch_reject_post"];
5139
- delete?: never;
5140
- options?: never;
5141
- head?: never;
5142
- patch?: never;
5143
- trace?: never;
5144
- };
5145
- "/v1/{workspace_id}/review-queue/dashboard": {
5146
- parameters: {
5147
- query?: never;
5148
- header?: never;
5149
- path?: never;
5150
- cookie?: never;
5151
- };
5152
- /**
5153
- * Review queue dashboard composite
5154
- * @description Aggregated view for the review queue page: stats, priority breakdown, recent completions.
5155
- */
5156
- get: operations["review_dashboard_v1__workspace_id__review_queue_dashboard_get"];
5157
- put?: never;
5158
- post?: never;
5159
- delete?: never;
5160
- options?: never;
5161
- head?: never;
5162
- patch?: never;
5163
- trace?: never;
5164
- };
5165
- "/v1/{workspace_id}/review-queue/history": {
5166
- parameters: {
5167
- query?: never;
5168
- header?: never;
5169
- path?: never;
5170
- cookie?: never;
5171
- };
5172
- /**
5173
- * Review history / audit trail
5174
- * @description Returns completed review items for auditing. Filter by action, reviewer, and date range.
5175
- */
5176
- get: operations["review_history_v1__workspace_id__review_queue_history_get"];
5177
- put?: never;
5178
- post?: never;
5179
- delete?: never;
5180
- options?: never;
5181
- head?: never;
5182
- patch?: never;
5183
- trace?: never;
5184
- };
5185
- "/v1/{workspace_id}/review-queue/my-queue": {
5186
- parameters: {
5187
- query?: never;
5188
- header?: never;
5189
- path?: never;
5190
- cookie?: never;
5191
- };
5192
- /** Items assigned to current API key */
5193
- get: operations["my_queue_v1__workspace_id__review_queue_my_queue_get"];
5194
- put?: never;
5195
- post?: never;
5196
- delete?: never;
5197
- options?: never;
5198
- head?: never;
5199
- patch?: never;
5200
- trace?: never;
5201
- };
5202
- "/v1/{workspace_id}/review-queue/performance": {
5203
- parameters: {
5204
- query?: never;
5205
- header?: never;
5206
- path?: never;
5207
- cookie?: never;
5208
- };
5209
- /**
5210
- * Per-reviewer performance stats
5211
- * @description Items reviewed, avg time, approval/reject/correct ratio per reviewer.
5212
- */
5213
- get: operations["reviewer_performance_v1__workspace_id__review_queue_performance_get"];
5214
- put?: never;
5215
- post?: never;
5216
- delete?: never;
5217
- options?: never;
5218
- head?: never;
5219
- patch?: never;
5220
- trace?: never;
5221
- };
5222
- "/v1/{workspace_id}/review-queue/stats": {
5223
- parameters: {
5224
- query?: never;
5225
- header?: never;
5226
- path?: never;
5227
- cookie?: never;
5228
- };
5229
- /** Review queue statistics */
5230
- get: operations["review_stats_v1__workspace_id__review_queue_stats_get"];
5231
- put?: never;
5232
- post?: never;
5233
- delete?: never;
5234
- options?: never;
5235
- head?: never;
5236
- patch?: never;
5237
- trace?: never;
5238
- };
5239
- "/v1/{workspace_id}/review-queue/trends": {
5240
- parameters: {
5241
- query?: never;
5242
- header?: never;
5243
- path?: never;
5244
- cookie?: never;
5245
- };
5246
- /**
5247
- * Review queue trends over time
5248
- * @description Daily buckets: queue depth, completion rate, avg review time.
5249
- */
5250
- get: operations["review_trends_v1__workspace_id__review_queue_trends_get"];
5251
- put?: never;
5252
- post?: never;
5253
- delete?: never;
5254
- options?: never;
5255
- head?: never;
5256
- patch?: never;
5257
- trace?: never;
5258
- };
5259
- "/v1/{workspace_id}/review-queue/{item_id}": {
5260
- parameters: {
5261
- query?: never;
5262
- header?: never;
5263
- path?: never;
5264
- cookie?: never;
5265
- };
5266
- /**
5267
- * Get review item with full context
5268
- * @description Returns review item with inline event data and entity state — no extra calls needed.
5269
- */
5270
- get: operations["get_review_item_v1__workspace_id__review_queue__item_id__get"];
5271
- put?: never;
5272
- post?: never;
5273
- delete?: never;
5274
- options?: never;
5275
- head?: never;
5276
- patch?: never;
5277
- trace?: never;
5278
- };
5279
- "/v1/{workspace_id}/review-queue/{item_id}/approve": {
5280
- parameters: {
5281
- query?: never;
5282
- header?: never;
5283
- path?: never;
5284
- cookie?: never;
5285
- };
5286
- get?: never;
5287
- put?: never;
5288
- /**
5289
- * Approve review item
5290
- * @description Marks the review item approved and lets SDP projections rebuild entity state.
5291
- */
5292
- post: operations["approve_review_item_v1__workspace_id__review_queue__item_id__approve_post"];
5293
- delete?: never;
5294
- options?: never;
5295
- head?: never;
5296
- patch?: never;
5297
- trace?: never;
5298
- };
5299
- "/v1/{workspace_id}/review-queue/{item_id}/claim": {
5300
- parameters: {
5301
- query?: never;
5302
- header?: never;
5303
- path?: never;
5304
- cookie?: never;
5305
- };
5306
- get?: never;
5307
- put?: never;
5308
- /**
5309
- * Claim a review item
5310
- * @description Assigns the review item to the current API key, preventing concurrent reviews.
5311
- */
5312
- post: operations["claim_review_item_v1__workspace_id__review_queue__item_id__claim_post"];
5313
- delete?: never;
5314
- options?: never;
5315
- head?: never;
5316
- patch?: never;
5317
- trace?: never;
5318
- };
5319
- "/v1/{workspace_id}/review-queue/{item_id}/correct": {
5320
- parameters: {
5321
- query?: never;
5322
- header?: never;
5323
- path?: never;
5324
- cookie?: never;
5325
- };
5326
- get?: never;
5327
- put?: never;
5328
- /**
5329
- * Submit corrected data
5330
- * @description Creates a corrected event and lets SDP projections rebuild entity state.
5331
- */
5332
- post: operations["correct_review_item_v1__workspace_id__review_queue__item_id__correct_post"];
5333
- delete?: never;
5334
- options?: never;
5335
- head?: never;
5336
- patch?: never;
5337
- trace?: never;
5338
- };
5339
- "/v1/{workspace_id}/review-queue/{item_id}/correction-schema": {
5340
- parameters: {
5341
- query?: never;
5342
- header?: never;
5343
- path?: never;
5344
- cookie?: never;
5345
- };
5346
- /**
5347
- * Get correction form schema hints
5348
- * @description Returns expected fields for the FHIR resource type, plus current event data as defaults.
5349
- */
5350
- get: operations["get_correction_schema_v1__workspace_id__review_queue__item_id__correction_schema_get"];
5351
- put?: never;
5352
- post?: never;
5353
- delete?: never;
5354
- options?: never;
5355
- head?: never;
5356
- patch?: never;
5357
- trace?: never;
5358
- };
5359
- "/v1/{workspace_id}/review-queue/{item_id}/diff": {
5360
- parameters: {
5361
- query?: never;
5362
- header?: never;
5363
- path?: never;
5364
- cookie?: never;
5365
- };
5366
- /**
5367
- * Get event diff for a corrected review item
5368
- * @description Shows original event data vs corrected event data side-by-side.
5369
- */
5370
- get: operations["get_review_diff_v1__workspace_id__review_queue__item_id__diff_get"];
5371
- put?: never;
5372
- post?: never;
5373
- delete?: never;
5374
- options?: never;
5375
- head?: never;
5376
- patch?: never;
5377
- trace?: never;
5378
- };
5379
- "/v1/{workspace_id}/review-queue/{item_id}/reject": {
5380
- parameters: {
5381
- query?: never;
5382
- header?: never;
5383
- path?: never;
5384
- cookie?: never;
5385
- };
5386
- get?: never;
5387
- put?: never;
5388
- /**
5389
- * Reject review item
5390
- * @description Marks the review item rejected and lets SDP projections rebuild entity state.
5391
- */
5392
- post: operations["reject_review_item_v1__workspace_id__review_queue__item_id__reject_post"];
5393
- delete?: never;
5394
- options?: never;
5395
- head?: never;
5396
- patch?: never;
5397
- trace?: never;
5398
- };
5399
- "/v1/{workspace_id}/review-queue/{item_id}/unclaim": {
5400
- parameters: {
5401
- query?: never;
5402
- header?: never;
5403
- path?: never;
5404
- cookie?: never;
5405
- };
5406
- get?: never;
5407
- put?: never;
5408
- /**
5409
- * Release a claimed review item
5410
- * @description Clears assignment — only the current claimant can unclaim.
5411
- */
5412
- post: operations["unclaim_review_item_v1__workspace_id__review_queue__item_id__unclaim_post"];
5413
- delete?: never;
5414
- options?: never;
5415
- head?: never;
5416
- patch?: never;
5417
- trace?: never;
5418
- };
5419
5085
  "/v1/{workspace_id}/role-grants": {
5420
5086
  parameters: {
5421
5087
  query?: never;
@@ -6182,12 +5848,6 @@ export interface paths {
6182
5848
  * prioritize. Use for specific names, drug names, and org jargon.
6183
5849
  * Example: ``["Dr. Ramirez", "metformin", "HIPAA"]``
6184
5850
  *
6185
- * **Audio Correction Hints**
6186
- * - **correction_categories**: Broad categories of things callers
6187
- * commonly say that speech-to-text gets wrong. Not exact words —
6188
- * just what *kinds* of things to watch for. Example:
6189
- * ``["medication names", "insurance carriers", "doctor last names"]``
6190
- *
6191
5851
  * **Post-Call Intelligence**
6192
5852
  * - **post_call_analysis_enabled**: Run automated quality scoring after
6193
5853
  * each call ends (default ``true``)
@@ -8872,14 +8532,6 @@ export interface components {
8872
8532
  */
8873
8533
  workspace_id: string;
8874
8534
  };
8875
- /**
8876
- * ApproveRequest
8877
- * @description Approve events — promotes confidence to 0.95.
8878
- */
8879
- ApproveRequest: {
8880
- /** Notes */
8881
- notes?: string | null;
8882
- };
8883
8535
  /** ArchiveResponse */
8884
8536
  ArchiveResponse: {
8885
8537
  /**
@@ -9088,28 +8740,6 @@ export interface components {
9088
8740
  */
9089
8741
  type: "barge_in";
9090
8742
  };
9091
- /**
9092
- * BatchActionResponse
9093
- * @description Result of a batch operation.
9094
- */
9095
- BatchActionResponse: {
9096
- /** Failed */
9097
- failed: {
9098
- [key: string]: string;
9099
- }[];
9100
- /** Succeeded */
9101
- succeeded: string[];
9102
- };
9103
- /**
9104
- * BatchApproveRequest
9105
- * @description Batch approve multiple review items.
9106
- */
9107
- BatchApproveRequest: {
9108
- /** Item Ids */
9109
- item_ids: string[];
9110
- /** Notes */
9111
- notes?: string | null;
9112
- };
9113
8743
  /** BatchDetail */
9114
8744
  BatchDetail: {
9115
8745
  /** Created Ts */
@@ -9155,16 +8785,6 @@ export interface components {
9155
8785
  /** Files */
9156
8786
  files: components["schemas"]["FileEntry"][];
9157
8787
  };
9158
- /**
9159
- * BatchRejectRequest
9160
- * @description Batch reject multiple review items.
9161
- */
9162
- BatchRejectRequest: {
9163
- /** Item Ids */
9164
- item_ids: string[];
9165
- /** Reason */
9166
- reason: string;
9167
- };
9168
8788
  /**
9169
8789
  * BatchRow
9170
8790
  * @description A source-sync batch (Batches list / detail).
@@ -10583,15 +10203,6 @@ export interface components {
10583
10203
  */
10584
10204
  message: string;
10585
10205
  };
10586
- /** ClaimResponse */
10587
- ClaimResponse: {
10588
- /** Assigned To */
10589
- assigned_to: string;
10590
- /** Id */
10591
- id: string;
10592
- /** Status */
10593
- status: string;
10594
- };
10595
10206
  /**
10596
10207
  * ClientConfigResponse
10597
10208
  * @description Client-safe configuration values.
@@ -11526,34 +11137,6 @@ export interface components {
11526
11137
  */
11527
11138
  target: "production" | "staging";
11528
11139
  };
11529
- /**
11530
- * CorrectRequest
11531
- * @description Submit corrected data — creates new event at confidence 1.0.
11532
- */
11533
- CorrectRequest: {
11534
- /** Corrected Data */
11535
- corrected_data: {
11536
- [key: string]: unknown;
11537
- };
11538
- /** Notes */
11539
- notes?: string | null;
11540
- };
11541
- /**
11542
- * CorrectionSchemaResponse
11543
- * @description Schema hints for building a correction form.
11544
- */
11545
- CorrectionSchemaResponse: {
11546
- /** Current Values */
11547
- current_values: {
11548
- [key: string]: unknown;
11549
- };
11550
- /** Fhir Resource Type */
11551
- fhir_resource_type: string | null;
11552
- /** Fields */
11553
- fields: {
11554
- [key: string]: unknown;
11555
- };
11556
- };
11557
11140
  /**
11558
11141
  * Counterfactual
11559
11142
  * @description An alternative action that would have meaningfully changed the call outcome.
@@ -14476,25 +14059,6 @@ export interface components {
14476
14059
  /** Total Events */
14477
14060
  total_events: number;
14478
14061
  };
14479
- /**
14480
- * EntitySummary
14481
- * @description Inline entity state for review context.
14482
- */
14483
- EntitySummary: {
14484
- /** Display Name */
14485
- display_name: string | null;
14486
- /** Entity Type */
14487
- entity_type: string | null;
14488
- /**
14489
- * Id
14490
- * Format: uuid
14491
- */
14492
- id: string;
14493
- /** State */
14494
- state: {
14495
- [key: string]: unknown;
14496
- } | null;
14497
- };
14498
14062
  /** EntityTimelineResponse */
14499
14063
  EntityTimelineResponse: {
14500
14064
  /**
@@ -14732,6 +14296,57 @@ export interface components {
14732
14296
  */
14733
14297
  workspace_id: string;
14734
14298
  };
14299
+ /**
14300
+ * EvaluationResultView
14301
+ * @description One check as the console renders it, derived from a single eval result.
14302
+ *
14303
+ * Both metric and assertion verdicts normalize to this shape so the frontend
14304
+ * renders a check without knowing where the value was stored.
14305
+ */
14306
+ EvaluationResultView: {
14307
+ /** Actual */
14308
+ actual?: unknown | null;
14309
+ /** Actual Display */
14310
+ actual_display?: string | null;
14311
+ /** Case Id */
14312
+ case_id?: string | null;
14313
+ /** Evaluation Method */
14314
+ evaluation_method?: ("threshold" | "equals" | "contains" | "regex" | "tool_called" | "llm_judge" | "custom") | null;
14315
+ /** Expected */
14316
+ expected?: unknown | null;
14317
+ /** Expected Display */
14318
+ expected_display?: string | null;
14319
+ /** Key */
14320
+ key: string;
14321
+ /** Label */
14322
+ label?: string | null;
14323
+ /** Rationale */
14324
+ rationale?: string | null;
14325
+ /** References */
14326
+ references?: number[];
14327
+ /** Run Id */
14328
+ run_id?: string | null;
14329
+ /** Score */
14330
+ score?: number | null;
14331
+ /** Score Label */
14332
+ score_label?: string | null;
14333
+ /** Session Id */
14334
+ session_id?: string | null;
14335
+ /**
14336
+ * Source Type
14337
+ * @enum {string}
14338
+ */
14339
+ source_type: "metric" | "assertion";
14340
+ /** Trace Id */
14341
+ trace_id?: string | null;
14342
+ /** Value Type */
14343
+ value_type?: ("numeric" | "boolean" | "categorical" | "text" | "structured") | null;
14344
+ /**
14345
+ * Verdict
14346
+ * @enum {string}
14347
+ */
14348
+ verdict: "passed" | "failed" | "pending" | "skipped" | "error";
14349
+ };
14735
14350
  /**
14736
14351
  * EventBreakdownItem
14737
14352
  * @description Single row in an event breakdown aggregation.
@@ -14791,39 +14406,6 @@ export interface components {
14791
14406
  EventDisplayNameString: string;
14792
14407
  EventOutcomeString: string;
14793
14408
  EventStatusString: string;
14794
- /**
14795
- * EventSummary
14796
- * @description Inline event data for review context — avoids extra API calls.
14797
- */
14798
- EventSummary: {
14799
- /** Confidence */
14800
- confidence: number;
14801
- /**
14802
- * Created At
14803
- * @description When the event was created
14804
- */
14805
- created_at?: string | null;
14806
- /** Data */
14807
- data: {
14808
- [key: string]: unknown;
14809
- };
14810
- /** Event Type */
14811
- event_type: string | null;
14812
- /** Fhir Resource Id */
14813
- fhir_resource_id: string | null;
14814
- /** Fhir Resource Type */
14815
- fhir_resource_type: string | null;
14816
- /**
14817
- * Id
14818
- * Format: uuid
14819
- */
14820
- id: string;
14821
- /**
14822
- * Review Status
14823
- * @enum {string}
14824
- */
14825
- review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
14826
- };
14827
14409
  /** EventTypeRegistryResponse */
14828
14410
  EventTypeRegistryResponse: {
14829
14411
  /** Event Types */
@@ -19363,17 +18945,6 @@ export interface components {
19363
18945
  /** Total */
19364
18946
  total?: number | null;
19365
18947
  };
19366
- /** PaginatedResponse[ReviewItemResponse] */
19367
- PaginatedResponse_ReviewItemResponse_: {
19368
- /** Continuation Token */
19369
- continuation_token?: number | null;
19370
- /** Has More */
19371
- has_more: boolean;
19372
- /** Items */
19373
- items: components["schemas"]["ReviewItemResponse"][];
19374
- /** Total */
19375
- total?: number | null;
19376
- };
19377
18948
  /** PaginatedResponse[SchedulingRuleSetResponse] */
19378
18949
  PaginatedResponse_SchedulingRuleSetResponse_: {
19379
18950
  /** Continuation Token */
@@ -21006,14 +20577,6 @@ export interface components {
21006
20577
  /** Reason */
21007
20578
  reason: string;
21008
20579
  };
21009
- /**
21010
- * RejectRequest
21011
- * @description Reject events — demotes confidence to 0.0.
21012
- */
21013
- RejectRequest: {
21014
- /** Reason */
21015
- reason: string;
21016
- };
21017
20580
  /** RejectSurfaceRequest */
21018
20581
  RejectSurfaceRequest: {
21019
20582
  /** Reason */
@@ -21258,85 +20821,6 @@ export interface components {
21258
20821
  */
21259
20822
  surface_id: string;
21260
20823
  };
21261
- /**
21262
- * ReviewDashboardResponse
21263
- * @description Composite dashboard for the review queue page.
21264
- */
21265
- ReviewDashboardResponse: {
21266
- /** Completion Rate 24H */
21267
- completion_rate_24h: number | null;
21268
- /** Pending By Priority */
21269
- pending_by_priority: {
21270
- [key: string]: number;
21271
- };
21272
- /** Pending By Reason */
21273
- pending_by_reason: {
21274
- [key: string]: unknown;
21275
- }[];
21276
- /** Recent Completed */
21277
- recent_completed: components["schemas"]["ReviewItemResponse"][];
21278
- stats: components["schemas"]["ReviewStatsResponse"];
21279
- };
21280
- /**
21281
- * ReviewDiffResponse
21282
- * @description Original vs corrected event data for a completed correction.
21283
- */
21284
- ReviewDiffResponse: {
21285
- /** Corrected Events */
21286
- corrected_events: components["schemas"]["EventSummary"][];
21287
- /** Item Id */
21288
- item_id: string;
21289
- /** Original Events */
21290
- original_events: components["schemas"]["EventSummary"][];
21291
- };
21292
- /** ReviewItemResponse */
21293
- ReviewItemResponse: {
21294
- /** Assigned To */
21295
- assigned_to: string | null;
21296
- /** Completed Action */
21297
- completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
21298
- /** Completed At */
21299
- completed_at: string | null;
21300
- /**
21301
- * Created At
21302
- * @description When the review item was created
21303
- */
21304
- created_at?: string | null;
21305
- entity?: components["schemas"]["EntitySummary"] | null;
21306
- /** Entity Id */
21307
- entity_id: string | null;
21308
- /** Entity Type */
21309
- entity_type: string | null;
21310
- /** Event Ids */
21311
- event_ids: string[];
21312
- /** Events */
21313
- events?: components["schemas"]["EventSummary"][] | null;
21314
- /**
21315
- * Id
21316
- * Format: uuid
21317
- */
21318
- id: string;
21319
- /** Judge Analysis */
21320
- judge_analysis: {
21321
- [key: string]: unknown;
21322
- } | null;
21323
- /** Priority */
21324
- priority: number;
21325
- /** Reason */
21326
- reason: string;
21327
- /** Session Id */
21328
- session_id: string;
21329
- /**
21330
- * Status
21331
- * @enum {string}
21332
- */
21333
- status: "pending" | "in_progress" | "completed" | "rejected";
21334
- /**
21335
- * Workspace Id
21336
- * Format: uuid
21337
- */
21338
- workspace_id: string;
21339
- };
21340
20824
  /** ReviewMetrics */
21341
20825
  ReviewMetrics: {
21342
20826
  /** Approved 7D */
@@ -21357,17 +20841,6 @@ export interface components {
21357
20841
  */
21358
20842
  total_items?: number;
21359
20843
  };
21360
- /** ReviewStatsResponse */
21361
- ReviewStatsResponse: {
21362
- /** Avg Review Minutes */
21363
- avg_review_minutes: number | null;
21364
- /** Completed */
21365
- completed: number;
21366
- /** Pending */
21367
- pending: number;
21368
- /** Rejected */
21369
- rejected: number;
21370
- };
21371
20844
  /** ReviewSubmittedEvent */
21372
20845
  ReviewSubmittedEvent: {
21373
20846
  /**
@@ -22461,6 +21934,12 @@ export interface components {
22461
21934
  };
22462
21935
  /** SimCaseAssertionResponse */
22463
21936
  SimCaseAssertionResponse: {
21937
+ /**
21938
+ * Checks
21939
+ * @description Normalized per-check view of ``results`` (metric + assertion verdicts),
21940
+ * so the console renders each drill-down verdict without parsing raw shapes.
21941
+ */
21942
+ readonly checks: components["schemas"]["EvaluationResultView"][];
22464
21943
  /** Eval Key */
22465
21944
  eval_key: string;
22466
21945
  /**
@@ -23079,6 +22558,13 @@ export interface components {
23079
22558
  bridge_request?: {
23080
22559
  [key: string]: unknown;
23081
22560
  } | null;
22561
+ /**
22562
+ * Checks
22563
+ * @description Normalized per-check view of ``eval_results``. Raw ``eval_results``
22564
+ * stay intact; this rides alongside so the console renders checks without
22565
+ * reverse-engineering actual.latest vs actual.judge vs score.
22566
+ */
22567
+ readonly checks: components["schemas"]["EvaluationResultView"][];
23082
22568
  /** Completed At */
23083
22569
  completed_at?: string | null;
23084
22570
  /** Created At */
@@ -27617,8 +27103,6 @@ export interface components {
27617
27103
  * are always-on internals managed by engineering.
27618
27104
  */
27619
27105
  VoiceSettingsRequest: {
27620
- /** Correction Categories */
27621
- correction_categories?: string[] | null;
27622
27106
  /** Keyterms */
27623
27107
  keyterms?: string[] | null;
27624
27108
  /** Language */
@@ -27657,8 +27141,6 @@ export interface components {
27657
27141
  * @description Voice experience state — what the PM configured.
27658
27142
  */
27659
27143
  VoiceSettingsResponse: {
27660
- /** Correction Categories */
27661
- correction_categories: string[];
27662
27144
  /** Keyterms */
27663
27145
  keyterms: string[];
27664
27146
  /** Language */
@@ -41393,573 +40875,6 @@ export interface operations {
41393
40875
  };
41394
40876
  };
41395
40877
  };
41396
- list_review_items_v1__workspace_id__review_queue_get: {
41397
- parameters: {
41398
- query?: {
41399
- status?: string | null;
41400
- entity_type?: string | null;
41401
- priority?: number | null;
41402
- reason?: string | null;
41403
- assigned_to?: string | null;
41404
- created_after?: string | null;
41405
- created_before?: string | null;
41406
- sort_by?: string | null;
41407
- sort_order?: string;
41408
- limit?: number;
41409
- continuation_token?: number;
41410
- };
41411
- header?: never;
41412
- path: {
41413
- workspace_id: string;
41414
- };
41415
- cookie?: never;
41416
- };
41417
- requestBody?: never;
41418
- responses: {
41419
- /** @description Successful Response */
41420
- 200: {
41421
- headers: {
41422
- [name: string]: unknown;
41423
- };
41424
- content: {
41425
- "application/json": components["schemas"]["PaginatedResponse_ReviewItemResponse_"];
41426
- };
41427
- };
41428
- /** @description Validation Error */
41429
- 422: {
41430
- headers: {
41431
- [name: string]: unknown;
41432
- };
41433
- content: {
41434
- "application/json": components["schemas"]["HTTPValidationError"];
41435
- };
41436
- };
41437
- };
41438
- };
41439
- batch_approve_v1__workspace_id__review_queue_batch_approve_post: {
41440
- parameters: {
41441
- query?: never;
41442
- header?: never;
41443
- path: {
41444
- workspace_id: string;
41445
- };
41446
- cookie?: never;
41447
- };
41448
- requestBody: {
41449
- content: {
41450
- "application/json": components["schemas"]["BatchApproveRequest"];
41451
- };
41452
- };
41453
- responses: {
41454
- /** @description Successful Response */
41455
- 200: {
41456
- headers: {
41457
- [name: string]: unknown;
41458
- };
41459
- content: {
41460
- "application/json": components["schemas"]["BatchActionResponse"];
41461
- };
41462
- };
41463
- /** @description Validation Error */
41464
- 422: {
41465
- headers: {
41466
- [name: string]: unknown;
41467
- };
41468
- content: {
41469
- "application/json": components["schemas"]["HTTPValidationError"];
41470
- };
41471
- };
41472
- };
41473
- };
41474
- batch_reject_v1__workspace_id__review_queue_batch_reject_post: {
41475
- parameters: {
41476
- query?: never;
41477
- header?: never;
41478
- path: {
41479
- workspace_id: string;
41480
- };
41481
- cookie?: never;
41482
- };
41483
- requestBody: {
41484
- content: {
41485
- "application/json": components["schemas"]["BatchRejectRequest"];
41486
- };
41487
- };
41488
- responses: {
41489
- /** @description Successful Response */
41490
- 200: {
41491
- headers: {
41492
- [name: string]: unknown;
41493
- };
41494
- content: {
41495
- "application/json": components["schemas"]["BatchActionResponse"];
41496
- };
41497
- };
41498
- /** @description Validation Error */
41499
- 422: {
41500
- headers: {
41501
- [name: string]: unknown;
41502
- };
41503
- content: {
41504
- "application/json": components["schemas"]["HTTPValidationError"];
41505
- };
41506
- };
41507
- };
41508
- };
41509
- review_dashboard_v1__workspace_id__review_queue_dashboard_get: {
41510
- parameters: {
41511
- query?: never;
41512
- header?: never;
41513
- path: {
41514
- workspace_id: string;
41515
- };
41516
- cookie?: never;
41517
- };
41518
- requestBody?: never;
41519
- responses: {
41520
- /** @description Successful Response */
41521
- 200: {
41522
- headers: {
41523
- [name: string]: unknown;
41524
- };
41525
- content: {
41526
- "application/json": components["schemas"]["ReviewDashboardResponse"];
41527
- };
41528
- };
41529
- };
41530
- };
41531
- review_history_v1__workspace_id__review_queue_history_get: {
41532
- parameters: {
41533
- query?: {
41534
- action?: string | null;
41535
- reviewed_by?: string | null;
41536
- completed_after?: string | null;
41537
- completed_before?: string | null;
41538
- limit?: number;
41539
- continuation_token?: number;
41540
- };
41541
- header?: never;
41542
- path: {
41543
- workspace_id: string;
41544
- };
41545
- cookie?: never;
41546
- };
41547
- requestBody?: never;
41548
- responses: {
41549
- /** @description Successful Response */
41550
- 200: {
41551
- headers: {
41552
- [name: string]: unknown;
41553
- };
41554
- content: {
41555
- "application/json": components["schemas"]["PaginatedResponse_ReviewItemResponse_"];
41556
- };
41557
- };
41558
- /** @description Validation Error */
41559
- 422: {
41560
- headers: {
41561
- [name: string]: unknown;
41562
- };
41563
- content: {
41564
- "application/json": components["schemas"]["HTTPValidationError"];
41565
- };
41566
- };
41567
- };
41568
- };
41569
- my_queue_v1__workspace_id__review_queue_my_queue_get: {
41570
- parameters: {
41571
- query?: {
41572
- limit?: number;
41573
- continuation_token?: number;
41574
- };
41575
- header?: never;
41576
- path: {
41577
- workspace_id: string;
41578
- };
41579
- cookie?: never;
41580
- };
41581
- requestBody?: never;
41582
- responses: {
41583
- /** @description Successful Response */
41584
- 200: {
41585
- headers: {
41586
- [name: string]: unknown;
41587
- };
41588
- content: {
41589
- "application/json": components["schemas"]["PaginatedResponse_ReviewItemResponse_"];
41590
- };
41591
- };
41592
- /** @description Validation Error */
41593
- 422: {
41594
- headers: {
41595
- [name: string]: unknown;
41596
- };
41597
- content: {
41598
- "application/json": components["schemas"]["HTTPValidationError"];
41599
- };
41600
- };
41601
- };
41602
- };
41603
- reviewer_performance_v1__workspace_id__review_queue_performance_get: {
41604
- parameters: {
41605
- query?: {
41606
- days?: number;
41607
- };
41608
- header?: never;
41609
- path: {
41610
- workspace_id: string;
41611
- };
41612
- cookie?: never;
41613
- };
41614
- requestBody?: never;
41615
- responses: {
41616
- /** @description Successful Response */
41617
- 200: {
41618
- headers: {
41619
- [name: string]: unknown;
41620
- };
41621
- content: {
41622
- "application/json": {
41623
- [key: string]: unknown;
41624
- };
41625
- };
41626
- };
41627
- /** @description Validation Error */
41628
- 422: {
41629
- headers: {
41630
- [name: string]: unknown;
41631
- };
41632
- content: {
41633
- "application/json": components["schemas"]["HTTPValidationError"];
41634
- };
41635
- };
41636
- };
41637
- };
41638
- review_stats_v1__workspace_id__review_queue_stats_get: {
41639
- parameters: {
41640
- query?: never;
41641
- header?: never;
41642
- path: {
41643
- workspace_id: string;
41644
- };
41645
- cookie?: never;
41646
- };
41647
- requestBody?: never;
41648
- responses: {
41649
- /** @description Successful Response */
41650
- 200: {
41651
- headers: {
41652
- [name: string]: unknown;
41653
- };
41654
- content: {
41655
- "application/json": components["schemas"]["ReviewStatsResponse"];
41656
- };
41657
- };
41658
- };
41659
- };
41660
- review_trends_v1__workspace_id__review_queue_trends_get: {
41661
- parameters: {
41662
- query?: {
41663
- days?: number;
41664
- };
41665
- header?: never;
41666
- path: {
41667
- workspace_id: string;
41668
- };
41669
- cookie?: never;
41670
- };
41671
- requestBody?: never;
41672
- responses: {
41673
- /** @description Successful Response */
41674
- 200: {
41675
- headers: {
41676
- [name: string]: unknown;
41677
- };
41678
- content: {
41679
- "application/json": {
41680
- [key: string]: unknown;
41681
- };
41682
- };
41683
- };
41684
- /** @description Validation Error */
41685
- 422: {
41686
- headers: {
41687
- [name: string]: unknown;
41688
- };
41689
- content: {
41690
- "application/json": components["schemas"]["HTTPValidationError"];
41691
- };
41692
- };
41693
- };
41694
- };
41695
- get_review_item_v1__workspace_id__review_queue__item_id__get: {
41696
- parameters: {
41697
- query?: never;
41698
- header?: never;
41699
- path: {
41700
- workspace_id: string;
41701
- item_id: string;
41702
- };
41703
- cookie?: never;
41704
- };
41705
- requestBody?: never;
41706
- responses: {
41707
- /** @description Successful Response */
41708
- 200: {
41709
- headers: {
41710
- [name: string]: unknown;
41711
- };
41712
- content: {
41713
- "application/json": components["schemas"]["ReviewItemResponse"];
41714
- };
41715
- };
41716
- /** @description Validation Error */
41717
- 422: {
41718
- headers: {
41719
- [name: string]: unknown;
41720
- };
41721
- content: {
41722
- "application/json": components["schemas"]["HTTPValidationError"];
41723
- };
41724
- };
41725
- };
41726
- };
41727
- approve_review_item_v1__workspace_id__review_queue__item_id__approve_post: {
41728
- parameters: {
41729
- query?: never;
41730
- header?: never;
41731
- path: {
41732
- workspace_id: string;
41733
- item_id: string;
41734
- };
41735
- cookie?: never;
41736
- };
41737
- requestBody: {
41738
- content: {
41739
- "application/json": components["schemas"]["ApproveRequest"];
41740
- };
41741
- };
41742
- responses: {
41743
- /** @description Successful Response */
41744
- 200: {
41745
- headers: {
41746
- [name: string]: unknown;
41747
- };
41748
- content: {
41749
- "application/json": components["schemas"]["ReviewItemResponse"];
41750
- };
41751
- };
41752
- /** @description Validation Error */
41753
- 422: {
41754
- headers: {
41755
- [name: string]: unknown;
41756
- };
41757
- content: {
41758
- "application/json": components["schemas"]["HTTPValidationError"];
41759
- };
41760
- };
41761
- };
41762
- };
41763
- claim_review_item_v1__workspace_id__review_queue__item_id__claim_post: {
41764
- parameters: {
41765
- query?: never;
41766
- header?: never;
41767
- path: {
41768
- workspace_id: string;
41769
- item_id: string;
41770
- };
41771
- cookie?: never;
41772
- };
41773
- requestBody?: never;
41774
- responses: {
41775
- /** @description Successful Response */
41776
- 200: {
41777
- headers: {
41778
- [name: string]: unknown;
41779
- };
41780
- content: {
41781
- "application/json": components["schemas"]["ClaimResponse"];
41782
- };
41783
- };
41784
- /** @description Validation Error */
41785
- 422: {
41786
- headers: {
41787
- [name: string]: unknown;
41788
- };
41789
- content: {
41790
- "application/json": components["schemas"]["HTTPValidationError"];
41791
- };
41792
- };
41793
- };
41794
- };
41795
- correct_review_item_v1__workspace_id__review_queue__item_id__correct_post: {
41796
- parameters: {
41797
- query?: never;
41798
- header?: never;
41799
- path: {
41800
- workspace_id: string;
41801
- item_id: string;
41802
- };
41803
- cookie?: never;
41804
- };
41805
- requestBody: {
41806
- content: {
41807
- "application/json": components["schemas"]["CorrectRequest"];
41808
- };
41809
- };
41810
- responses: {
41811
- /** @description Successful Response */
41812
- 200: {
41813
- headers: {
41814
- [name: string]: unknown;
41815
- };
41816
- content: {
41817
- "application/json": components["schemas"]["ReviewItemResponse"];
41818
- };
41819
- };
41820
- /** @description Validation Error */
41821
- 422: {
41822
- headers: {
41823
- [name: string]: unknown;
41824
- };
41825
- content: {
41826
- "application/json": components["schemas"]["HTTPValidationError"];
41827
- };
41828
- };
41829
- };
41830
- };
41831
- get_correction_schema_v1__workspace_id__review_queue__item_id__correction_schema_get: {
41832
- parameters: {
41833
- query?: never;
41834
- header?: never;
41835
- path: {
41836
- workspace_id: string;
41837
- item_id: string;
41838
- };
41839
- cookie?: never;
41840
- };
41841
- requestBody?: never;
41842
- responses: {
41843
- /** @description Successful Response */
41844
- 200: {
41845
- headers: {
41846
- [name: string]: unknown;
41847
- };
41848
- content: {
41849
- "application/json": components["schemas"]["CorrectionSchemaResponse"];
41850
- };
41851
- };
41852
- /** @description Validation Error */
41853
- 422: {
41854
- headers: {
41855
- [name: string]: unknown;
41856
- };
41857
- content: {
41858
- "application/json": components["schemas"]["HTTPValidationError"];
41859
- };
41860
- };
41861
- };
41862
- };
41863
- get_review_diff_v1__workspace_id__review_queue__item_id__diff_get: {
41864
- parameters: {
41865
- query?: never;
41866
- header?: never;
41867
- path: {
41868
- workspace_id: string;
41869
- item_id: string;
41870
- };
41871
- cookie?: never;
41872
- };
41873
- requestBody?: never;
41874
- responses: {
41875
- /** @description Successful Response */
41876
- 200: {
41877
- headers: {
41878
- [name: string]: unknown;
41879
- };
41880
- content: {
41881
- "application/json": components["schemas"]["ReviewDiffResponse"];
41882
- };
41883
- };
41884
- /** @description Validation Error */
41885
- 422: {
41886
- headers: {
41887
- [name: string]: unknown;
41888
- };
41889
- content: {
41890
- "application/json": components["schemas"]["HTTPValidationError"];
41891
- };
41892
- };
41893
- };
41894
- };
41895
- reject_review_item_v1__workspace_id__review_queue__item_id__reject_post: {
41896
- parameters: {
41897
- query?: never;
41898
- header?: never;
41899
- path: {
41900
- workspace_id: string;
41901
- item_id: string;
41902
- };
41903
- cookie?: never;
41904
- };
41905
- requestBody: {
41906
- content: {
41907
- "application/json": components["schemas"]["RejectRequest"];
41908
- };
41909
- };
41910
- responses: {
41911
- /** @description Successful Response */
41912
- 200: {
41913
- headers: {
41914
- [name: string]: unknown;
41915
- };
41916
- content: {
41917
- "application/json": components["schemas"]["ReviewItemResponse"];
41918
- };
41919
- };
41920
- /** @description Validation Error */
41921
- 422: {
41922
- headers: {
41923
- [name: string]: unknown;
41924
- };
41925
- content: {
41926
- "application/json": components["schemas"]["HTTPValidationError"];
41927
- };
41928
- };
41929
- };
41930
- };
41931
- unclaim_review_item_v1__workspace_id__review_queue__item_id__unclaim_post: {
41932
- parameters: {
41933
- query?: never;
41934
- header?: never;
41935
- path: {
41936
- workspace_id: string;
41937
- item_id: string;
41938
- };
41939
- cookie?: never;
41940
- };
41941
- requestBody?: never;
41942
- responses: {
41943
- /** @description Successful Response */
41944
- 200: {
41945
- headers: {
41946
- [name: string]: unknown;
41947
- };
41948
- content: {
41949
- "application/json": components["schemas"]["ClaimResponse"];
41950
- };
41951
- };
41952
- /** @description Validation Error */
41953
- 422: {
41954
- headers: {
41955
- [name: string]: unknown;
41956
- };
41957
- content: {
41958
- "application/json": components["schemas"]["HTTPValidationError"];
41959
- };
41960
- };
41961
- };
41962
- };
41963
40878
  "list-role-grants": {
41964
40879
  parameters: {
41965
40880
  query?: {