@amigo-ai/platform-sdk 0.91.0 → 0.93.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 (38) 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 +99 -1334
  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/context-graphs.d.ts +12 -36
  18. package/dist/types/resources/context-graphs.d.ts.map +1 -1
  19. package/dist/types/resources/conversations.d.ts +10 -0
  20. package/dist/types/resources/conversations.d.ts.map +1 -1
  21. package/dist/types/resources/external-integrations.d.ts.map +1 -1
  22. package/dist/types/resources/intake.d.ts.map +1 -1
  23. package/dist/types/resources/integrations.d.ts.map +1 -1
  24. package/dist/types/resources/metrics.d.ts.map +1 -1
  25. package/dist/types/resources/operators.d.ts.map +1 -1
  26. package/dist/types/resources/services.d.ts +0 -120
  27. package/dist/types/resources/services.d.ts.map +1 -1
  28. package/dist/types/resources/settings.d.ts +0 -2
  29. package/dist/types/resources/settings.d.ts.map +1 -1
  30. package/dist/types/resources/simulations.d.ts +20 -0
  31. package/dist/types/resources/simulations.d.ts.map +1 -1
  32. package/dist/types/resources/surfaces.d.ts.map +1 -1
  33. package/dist/types/resources/world.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/dist/resources/review-queue.js +0 -103
  36. package/dist/resources/review-queue.js.map +0 -1
  37. package/dist/types/resources/review-queue.d.ts +0 -545
  38. 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``)
@@ -8056,7 +7716,6 @@ export interface components {
8056
7716
  channel_overrides?: {
8057
7717
  [key: string]: components["schemas"]["ChannelOverride"];
8058
7718
  };
8059
- escalation_config?: components["schemas"]["StateRiskOverride"] | null;
8060
7719
  /**
8061
7720
  * Exit Condition Tool Call Specs
8062
7721
  * @default []
@@ -8110,7 +7769,6 @@ export interface components {
8110
7769
  channel_overrides?: {
8111
7770
  [key: string]: components["schemas"]["ChannelOverride"];
8112
7771
  };
8113
- escalation_config?: components["schemas"]["StateRiskOverride"] | null;
8114
7772
  /**
8115
7773
  * Exit Condition Tool Call Specs
8116
7774
  * @default []
@@ -8872,14 +8530,6 @@ export interface components {
8872
8530
  */
8873
8531
  workspace_id: string;
8874
8532
  };
8875
- /**
8876
- * ApproveRequest
8877
- * @description Approve events — promotes confidence to 0.95.
8878
- */
8879
- ApproveRequest: {
8880
- /** Notes */
8881
- notes?: string | null;
8882
- };
8883
8533
  /** ArchiveResponse */
8884
8534
  ArchiveResponse: {
8885
8535
  /**
@@ -9088,28 +8738,6 @@ export interface components {
9088
8738
  */
9089
8739
  type: "barge_in";
9090
8740
  };
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
8741
  /** BatchDetail */
9114
8742
  BatchDetail: {
9115
8743
  /** Created Ts */
@@ -9155,16 +8783,6 @@ export interface components {
9155
8783
  /** Files */
9156
8784
  files: components["schemas"]["FileEntry"][];
9157
8785
  };
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
8786
  /**
9169
8787
  * BatchRow
9170
8788
  * @description A source-sync batch (Batches list / detail).
@@ -10583,15 +10201,6 @@ export interface components {
10583
10201
  */
10584
10202
  message: string;
10585
10203
  };
10586
- /** ClaimResponse */
10587
- ClaimResponse: {
10588
- /** Assigned To */
10589
- assigned_to: string;
10590
- /** Id */
10591
- id: string;
10592
- /** Status */
10593
- status: string;
10594
- };
10595
10204
  /**
10596
10205
  * ClientConfigResponse
10597
10206
  * @description Client-safe configuration values.
@@ -11377,6 +10986,32 @@ export interface components {
11377
10986
  /** Total */
11378
10987
  total: number;
11379
10988
  };
10989
+ /** ConversationStatusTransitionRequest */
10990
+ ConversationStatusTransitionRequest: {
10991
+ /**
10992
+ * Reason
10993
+ * @description Low-cardinality transition tag (e.g. hsm_terminal, use_case_rebind) recorded on the audit event and the conversation world event.
10994
+ */
10995
+ reason: string;
10996
+ /**
10997
+ * Status
10998
+ * @enum {string}
10999
+ */
11000
+ status: "completed" | "closed";
11001
+ };
11002
+ /** ConversationStatusTransitionResponse */
11003
+ ConversationStatusTransitionResponse: {
11004
+ /**
11005
+ * Conversation Id
11006
+ * Format: uuid
11007
+ */
11008
+ conversation_id: string;
11009
+ /**
11010
+ * Status
11011
+ * @enum {string}
11012
+ */
11013
+ status: "completed" | "closed";
11014
+ };
11380
11015
  /** ConversationThreadRequest */
11381
11016
  ConversationThreadRequest: {
11382
11017
  channel_kind: components["schemas"]["ChannelKind"];
@@ -11526,34 +11161,6 @@ export interface components {
11526
11161
  */
11527
11162
  target: "production" | "staging";
11528
11163
  };
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
11164
  /**
11558
11165
  * Counterfactual
11559
11166
  * @description An alternative action that would have meaningfully changed the call outcome.
@@ -11727,6 +11334,12 @@ export interface components {
11727
11334
  channel?: components["schemas"]["ChannelKind"];
11728
11335
  /** Entity Id */
11729
11336
  entity_id?: string | null;
11337
+ /**
11338
+ * Force New
11339
+ * @description Outbound thread-keyed channels (sms/imessage) only: close any existing ACTIVE conversation on the computed provider thread (recipient + use case) before dispatching, so the opener materializes a brand-new conversation instead of continuing the old thread. Rejected with 422 on channel=web — every web create already starts a new conversation, so force_new is meaningless there.
11340
+ * @default false
11341
+ */
11342
+ force_new?: boolean;
11730
11343
  /** @description Optional context steering what the agent opens with on an outbound conversation. */
11731
11344
  instruction?: components["schemas"]["BackgroundString"] | null;
11732
11345
  /** @description Destination address for an outbound conversation (E.164 for sms/imessage). Required for non-web. */
@@ -12036,7 +11649,6 @@ export interface components {
12036
11649
  * @enum {string}
12037
11650
  */
12038
11651
  environment?: "sandbox" | "production";
12039
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
12040
11652
  /**
12041
11653
  * Is Active
12042
11654
  * @default true
@@ -12045,11 +11657,6 @@ export interface components {
12045
11657
  /** Keyterms */
12046
11658
  keyterms?: string[];
12047
11659
  name: components["schemas"]["NameString"];
12048
- /**
12049
- * Safety Filters Enabled
12050
- * @default true
12051
- */
12052
- safety_filters_enabled?: boolean;
12053
11660
  /** Tags */
12054
11661
  tags?: components["schemas"]["ServiceTag"][];
12055
11662
  /**
@@ -14476,25 +14083,6 @@ export interface components {
14476
14083
  /** Total Events */
14477
14084
  total_events: number;
14478
14085
  };
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
14086
  /** EntityTimelineResponse */
14499
14087
  EntityTimelineResponse: {
14500
14088
  /**
@@ -14636,34 +14224,6 @@ export interface components {
14636
14224
  */
14637
14225
  workspace_id: string;
14638
14226
  };
14639
- /**
14640
- * EscalationPolicy
14641
- * @description Per-service routing for engine-detected escalation triggers.
14642
- *
14643
- * Each trigger source maps to one EscalationAction. The three enumerated
14644
- * fields below are the trigger_sources actually emitted by the agent-engine
14645
- * today; new triggers can be added as fields without breaking back-compat.
14646
- *
14647
- * Partial policies are intentional: every field defaults to OperatorAction,
14648
- * so a PUT body like ``{"context_window_exhaustion": {"type": "forward"}}``
14649
- * overrides only that trigger and leaves the others on the operator default.
14650
- * To opt the entire service back to today's behavior, set
14651
- * ``Service.escalation_policy = None`` (caveat: the platform-api Service
14652
- * update path uses ``exclude_none=True`` and currently has no clears-via-null
14653
- * branch, so this requires a direct config edit; see follow-up issue).
14654
- *
14655
- * Resolution lookup is done against ``model_fields``: a trigger_source that
14656
- * is not an enumerated field name falls through to OperatorAction, never
14657
- * a non-Action Pydantic internal.
14658
- */
14659
- EscalationPolicy: {
14660
- /** Context Window Exhaustion */
14661
- context_window_exhaustion?: components["schemas"]["OperatorAction"] | components["schemas"]["ForwardAction"] | components["schemas"]["HangupAction"];
14662
- /** Conversation Monitor */
14663
- conversation_monitor?: components["schemas"]["OperatorAction"] | components["schemas"]["ForwardAction"] | components["schemas"]["HangupAction"];
14664
- /** Risk Scorer */
14665
- risk_scorer?: components["schemas"]["OperatorAction"] | components["schemas"]["ForwardAction"] | components["schemas"]["HangupAction"];
14666
- };
14667
14227
  /** EscalationState */
14668
14228
  EscalationState: {
14669
14229
  /** Agent Confidence */
@@ -14732,6 +14292,57 @@ export interface components {
14732
14292
  */
14733
14293
  workspace_id: string;
14734
14294
  };
14295
+ /**
14296
+ * EvaluationResultView
14297
+ * @description One check as the console renders it, derived from a single eval result.
14298
+ *
14299
+ * Both metric and assertion verdicts normalize to this shape so the frontend
14300
+ * renders a check without knowing where the value was stored.
14301
+ */
14302
+ EvaluationResultView: {
14303
+ /** Actual */
14304
+ actual?: unknown | null;
14305
+ /** Actual Display */
14306
+ actual_display?: string | null;
14307
+ /** Case Id */
14308
+ case_id?: string | null;
14309
+ /** Evaluation Method */
14310
+ evaluation_method?: ("threshold" | "equals" | "contains" | "regex" | "tool_called" | "llm_judge" | "custom") | null;
14311
+ /** Expected */
14312
+ expected?: unknown | null;
14313
+ /** Expected Display */
14314
+ expected_display?: string | null;
14315
+ /** Key */
14316
+ key: string;
14317
+ /** Label */
14318
+ label?: string | null;
14319
+ /** Rationale */
14320
+ rationale?: string | null;
14321
+ /** References */
14322
+ references?: number[];
14323
+ /** Run Id */
14324
+ run_id?: string | null;
14325
+ /** Score */
14326
+ score?: number | null;
14327
+ /** Score Label */
14328
+ score_label?: string | null;
14329
+ /** Session Id */
14330
+ session_id?: string | null;
14331
+ /**
14332
+ * Source Type
14333
+ * @enum {string}
14334
+ */
14335
+ source_type: "metric" | "assertion";
14336
+ /** Trace Id */
14337
+ trace_id?: string | null;
14338
+ /** Value Type */
14339
+ value_type?: ("numeric" | "boolean" | "categorical" | "text" | "structured") | null;
14340
+ /**
14341
+ * Verdict
14342
+ * @enum {string}
14343
+ */
14344
+ verdict: "passed" | "failed" | "pending" | "skipped" | "error";
14345
+ };
14735
14346
  /**
14736
14347
  * EventBreakdownItem
14737
14348
  * @description Single row in an event breakdown aggregation.
@@ -14791,39 +14402,6 @@ export interface components {
14791
14402
  EventDisplayNameString: string;
14792
14403
  EventOutcomeString: string;
14793
14404
  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
14405
  /** EventTypeRegistryResponse */
14828
14406
  EventTypeRegistryResponse: {
14829
14407
  /** Event Types */
@@ -16120,26 +15698,6 @@ export interface components {
16120
15698
  /** Templates */
16121
15699
  templates: components["schemas"]["FormTemplate-Input"][];
16122
15700
  };
16123
- /**
16124
- * ForwardAction
16125
- * @description Cold-transfer the caller to the service's configured forwarding
16126
- * destination (set via ``Service.voice_config.forwarding``).
16127
- *
16128
- * No agent-side decision and no operator dashboard required — the engine
16129
- * invokes the same forwarding callback used by the LLM-driven
16130
- * ``forward_call`` tool, with no location override, which falls through to
16131
- * the per-service ``ServiceForwardingConfig``.
16132
- *
16133
- * If ``voice_config.forwarding`` is unset, the dispatcher falls back to the
16134
- * operator path (audit event + SSE only).
16135
- */
16136
- ForwardAction: {
16137
- /**
16138
- * @description discriminator enum property added by openapi-typescript
16139
- * @enum {string}
16140
- */
16141
- type: "forward";
16142
- };
16143
15701
  /** ForwardCallResolvedEvent */
16144
15702
  ForwardCallResolvedEvent: {
16145
15703
  /**
@@ -16391,43 +15949,6 @@ export interface components {
16391
15949
  /** Detail */
16392
15950
  detail?: components["schemas"]["ValidationError"][];
16393
15951
  };
16394
- /**
16395
- * HangupAction
16396
- * @description End the call gracefully via the existing speaker-drain hangup path.
16397
- */
16398
- HangupAction: {
16399
- /**
16400
- * @description discriminator enum property added by openapi-typescript
16401
- * @enum {string}
16402
- */
16403
- type: "hangup";
16404
- };
16405
- /**
16406
- * HardEscalationRule
16407
- * @description Non-negotiable escalation rule for healthcare compliance.
16408
- */
16409
- HardEscalationRule: {
16410
- /**
16411
- * Detection
16412
- * @enum {string}
16413
- */
16414
- detection: "intent" | "state" | "fhir";
16415
- /**
16416
- * Immediate
16417
- * @default false
16418
- */
16419
- immediate?: boolean;
16420
- /** Intent Patterns */
16421
- intent_patterns?: string[] | null;
16422
- /** Name */
16423
- name: string;
16424
- /** Operator Type */
16425
- operator_type: string;
16426
- /** Reason */
16427
- reason: string;
16428
- /** Regulatory Basis */
16429
- regulatory_basis: string;
16430
- };
16431
15952
  /**
16432
15953
  * HarnessContext
16433
15954
  * @description The neutral, retrievable session-bootstrap context for ANY framework.
@@ -18562,18 +18083,6 @@ export interface components {
18562
18083
  [key: string]: unknown;
18563
18084
  };
18564
18085
  };
18565
- /**
18566
- * OperatorAction
18567
- * @description Today's behavior — write escalation.requested + publish SSE, wait for a
18568
- * human operator to join via the dashboard. No-op if no operators are staffed.
18569
- */
18570
- OperatorAction: {
18571
- /**
18572
- * @description discriminator enum property added by openapi-typescript
18573
- * @enum {string}
18574
- */
18575
- type: "operator";
18576
- };
18577
18086
  /**
18578
18087
  * OperatorIntelligenceSummary
18579
18088
  * @description Operator intervention summary.
@@ -19363,17 +18872,6 @@ export interface components {
19363
18872
  /** Total */
19364
18873
  total?: number | null;
19365
18874
  };
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
18875
  /** PaginatedResponse[SchedulingRuleSetResponse] */
19378
18876
  PaginatedResponse_SchedulingRuleSetResponse_: {
19379
18877
  /** Continuation Token */
@@ -21006,14 +20504,6 @@ export interface components {
21006
20504
  /** Reason */
21007
20505
  reason: string;
21008
20506
  };
21009
- /**
21010
- * RejectRequest
21011
- * @description Reject events — demotes confidence to 0.0.
21012
- */
21013
- RejectRequest: {
21014
- /** Reason */
21015
- reason: string;
21016
- };
21017
20507
  /** RejectSurfaceRequest */
21018
20508
  RejectSurfaceRequest: {
21019
20509
  /** Reason */
@@ -21258,85 +20748,6 @@ export interface components {
21258
20748
  */
21259
20749
  surface_id: string;
21260
20750
  };
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
20751
  /** ReviewMetrics */
21341
20752
  ReviewMetrics: {
21342
20753
  /** Approved 7D */
@@ -21357,17 +20768,6 @@ export interface components {
21357
20768
  */
21358
20769
  total_items?: number;
21359
20770
  };
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
20771
  /** ReviewSubmittedEvent */
21372
20772
  ReviewSubmittedEvent: {
21373
20773
  /**
@@ -21401,39 +20801,6 @@ export interface components {
21401
20801
  */
21402
20802
  item_id?: string | null;
21403
20803
  };
21404
- /**
21405
- * RiskSignalConfig
21406
- * @description Per-workspace risk scoring config. Stored on Service.
21407
- */
21408
- RiskSignalConfig: {
21409
- /**
21410
- * Alert Threshold
21411
- * @default 50
21412
- */
21413
- alert_threshold?: number;
21414
- /**
21415
- * Auto Escalate Threshold
21416
- * @default 70
21417
- */
21418
- auto_escalate_threshold?: number;
21419
- /**
21420
- * Enabled
21421
- * @default true
21422
- */
21423
- enabled?: boolean;
21424
- /**
21425
- * Monitor Threshold
21426
- * @default 30
21427
- */
21428
- monitor_threshold?: number;
21429
- /**
21430
- * Weights
21431
- * @default {}
21432
- */
21433
- weights?: {
21434
- [key: string]: number;
21435
- };
21436
- };
21437
20804
  /**
21438
20805
  * RiskSummary
21439
20806
  * @description Aggregated risk signals across the call.
@@ -21929,12 +21296,6 @@ export interface components {
21929
21296
  * @enum {string}
21930
21297
  */
21931
21298
  environment?: "sandbox" | "production";
21932
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
21933
- /**
21934
- * Hard Escalation Rules
21935
- * @default []
21936
- */
21937
- hard_escalation_rules?: components["schemas"]["HardEscalationRule"][];
21938
21299
  /**
21939
21300
  * Id
21940
21301
  * Format: uuid
@@ -21946,12 +21307,6 @@ export interface components {
21946
21307
  keyterms: string[];
21947
21308
  /** Name */
21948
21309
  name: string;
21949
- risk_signal_config?: components["schemas"]["RiskSignalConfig"] | null;
21950
- /**
21951
- * Safety Filters Enabled
21952
- * @default true
21953
- */
21954
- safety_filters_enabled?: boolean;
21955
21310
  /** Tags */
21956
21311
  tags: components["schemas"]["ServiceTag"][];
21957
21312
  /**
@@ -22012,11 +21367,8 @@ export interface components {
22012
21367
  * ServiceForwardingConfig
22013
21368
  * @description Per-service call-forwarding destination + transfer mechanism.
22014
21369
  *
22015
- * Read by:
22016
- * - LLM-driven ``forward_call`` tool (tier 3 fallback when the LLM doesn't
22017
- * pass an explicit ``phone_number`` and no EHR location is configured).
22018
- * - ``EscalationPolicy.ForwardAction`` — engine-fired escalation with no
22019
- * overrides falls through to the same path.
21370
+ * Read by the LLM-driven ``forward_call`` tool (tier 3 fallback when the LLM
21371
+ * doesn't pass an explicit ``phone_number`` and no EHR location is configured).
22020
21372
  *
22021
21373
  * Per-service forwarding is a binary presence — set means tier 3 resolves
22022
21374
  * to it, None means tier 3 has no static target. (The legacy per-phone
@@ -22071,7 +21423,6 @@ export interface components {
22071
21423
  * @enum {string}
22072
21424
  */
22073
21425
  environment?: "sandbox" | "production";
22074
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
22075
21426
  /**
22076
21427
  * Id
22077
21428
  * Format: uuid
@@ -22088,11 +21439,6 @@ export interface components {
22088
21439
  keyterms: string[];
22089
21440
  /** Name */
22090
21441
  name: string;
22091
- /**
22092
- * Safety Filters Enabled
22093
- * @default true
22094
- */
22095
- safety_filters_enabled?: boolean;
22096
21442
  /** Tags */
22097
21443
  tags: components["schemas"]["ServiceTag"][];
22098
21444
  /** Tool Capacity */
@@ -22461,6 +21807,12 @@ export interface components {
22461
21807
  };
22462
21808
  /** SimCaseAssertionResponse */
22463
21809
  SimCaseAssertionResponse: {
21810
+ /**
21811
+ * Checks
21812
+ * @description Normalized per-check view of ``results`` (metric + assertion verdicts),
21813
+ * so the console renders each drill-down verdict without parsing raw shapes.
21814
+ */
21815
+ readonly checks: components["schemas"]["EvaluationResultView"][];
22464
21816
  /** Eval Key */
22465
21817
  eval_key: string;
22466
21818
  /**
@@ -23079,6 +22431,13 @@ export interface components {
23079
22431
  bridge_request?: {
23080
22432
  [key: string]: unknown;
23081
22433
  } | null;
22434
+ /**
22435
+ * Checks
22436
+ * @description Normalized per-check view of ``eval_results``. Raw ``eval_results``
22437
+ * stay intact; this rides alongside so the console renders checks without
22438
+ * reverse-engineering actual.latest vs actual.judge vs score.
22439
+ */
22440
+ readonly checks: components["schemas"]["EvaluationResultView"][];
23082
22441
  /** Completed At */
23083
22442
  completed_at?: string | null;
23084
22443
  /** Created At */
@@ -24000,26 +23359,6 @@ export interface components {
24000
23359
  */
24001
23360
  session_status: "created" | "already_active";
24002
23361
  };
24003
- /**
24004
- * StateRiskOverride
24005
- * @description Per-state escalation tuning. Stored on ActionState.
24006
- */
24007
- StateRiskOverride: {
24008
- /** Auto Escalate Threshold */
24009
- auto_escalate_threshold?: number | null;
24010
- /**
24011
- * Max Loop Count
24012
- * @default 3
24013
- */
24014
- max_loop_count?: number;
24015
- /** Operator Skill */
24016
- operator_skill?: string | null;
24017
- /**
24018
- * Topic Risk Score
24019
- * @default 0
24020
- */
24021
- topic_risk_score?: number;
24022
- };
24023
23362
  /** StateTransition */
24024
23363
  StateTransition: {
24025
23364
  /** Annotation */
@@ -26532,7 +25871,7 @@ export interface components {
26532
25871
  * @default full
26533
25872
  * @enum {string}
26534
25873
  */
26535
- context_strategy?: "full" | "summarize" | "compact";
25874
+ context_strategy?: "full" | "compact";
26536
25875
  /**
26537
25876
  * Degradation Threshold
26538
25877
  * @default -1
@@ -26842,14 +26181,11 @@ export interface components {
26842
26181
  description?: components["schemas"]["DescriptionString"] | null;
26843
26182
  /** Environment */
26844
26183
  environment?: ("sandbox" | "production") | null;
26845
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
26846
26184
  /** Is Active */
26847
26185
  is_active?: boolean | null;
26848
26186
  /** Keyterms */
26849
26187
  keyterms?: string[] | null;
26850
26188
  name?: components["schemas"]["NameString"] | null;
26851
- /** Safety Filters Enabled */
26852
- safety_filters_enabled?: boolean | null;
26853
26189
  /** Tags */
26854
26190
  tags?: components["schemas"]["ServiceTag"][] | null;
26855
26191
  /** Tool Capacity */
@@ -27617,8 +26953,6 @@ export interface components {
27617
26953
  * are always-on internals managed by engineering.
27618
26954
  */
27619
26955
  VoiceSettingsRequest: {
27620
- /** Correction Categories */
27621
- correction_categories?: string[] | null;
27622
26956
  /** Keyterms */
27623
26957
  keyterms?: string[] | null;
27624
26958
  /** Language */
@@ -27657,8 +26991,6 @@ export interface components {
27657
26991
  * @description Voice experience state — what the PM configured.
27658
26992
  */
27659
26993
  VoiceSettingsResponse: {
27660
- /** Correction Categories */
27661
- correction_categories: string[];
27662
26994
  /** Keyterms */
27663
26995
  keyterms: string[];
27664
26996
  /** Language */
@@ -41393,573 +40725,6 @@ export interface operations {
41393
40725
  };
41394
40726
  };
41395
40727
  };
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
40728
  "list-role-grants": {
41964
40729
  parameters: {
41965
40730
  query?: {