@amigo-ai/platform-sdk 0.98.1 → 0.100.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.
@@ -1311,6 +1311,26 @@ export interface paths {
1311
1311
  patch?: never;
1312
1312
  trace?: never;
1313
1313
  };
1314
+ "/v1/{workspace_id}/api-keys/permission-catalog": {
1315
+ parameters: {
1316
+ query?: never;
1317
+ header?: never;
1318
+ path?: never;
1319
+ cookie?: never;
1320
+ };
1321
+ /**
1322
+ * Get the API-key role/permission catalog
1323
+ * @description Return the authoritative role→permission model: each role's default permission set (what an API key of that role may carry) plus the full permission universe. Clients use this to build the create-key form instead of hard-coding the matrix. Requires `ApiKey.view` permission.
1324
+ */
1325
+ get: operations["get-api-key-permission-catalog"];
1326
+ put?: never;
1327
+ post?: never;
1328
+ delete?: never;
1329
+ options?: never;
1330
+ head?: never;
1331
+ patch?: never;
1332
+ trace?: never;
1333
+ };
1314
1334
  "/v1/{workspace_id}/api-keys/{key_id}": {
1315
1335
  parameters: {
1316
1336
  query?: never;
@@ -3403,22 +3423,7 @@ export interface paths {
3403
3423
  };
3404
3424
  get?: never;
3405
3425
  put?: never;
3406
- /**
3407
- * Process Intake Batch
3408
- * @description Start processing a batch (idempotent + resumable). Dispatches only the
3409
- * still-``received`` files, so re-running picks up any that weren't triggered:
3410
- *
3411
- * * **Snapshot/CSV — ordered:** CDC depends on the prior curated baseline, so
3412
- * only the lowest-version file fires now; each verdict chains the next via the
3413
- * status write-back.
3414
- * * **Documents — one batch run:** a single extract-job run processes every
3415
- * received file (it pulls them from the processing-manifest). NOT one run-now
3416
- * per file — that serialised on the request path and 504'd for large batches.
3417
- *
3418
- * The batch rolls up to completed/failed (via the write-back) once every file
3419
- * reaches a terminal verdict. Allowed from ``ready`` or ``processing`` (re-kick
3420
- * a partially-dispatched batch); a terminal batch is a 409.
3421
- */
3426
+ /** Process Intake Batch */
3422
3427
  post: operations["process_intake_batch_v1__workspace_id__intake_batches__batch_id__process_post"];
3423
3428
  delete?: never;
3424
3429
  options?: never;
@@ -3466,6 +3471,31 @@ export interface paths {
3466
3471
  patch?: never;
3467
3472
  trace?: never;
3468
3473
  };
3474
+ "/v1/{workspace_id}/intake/datasets/{dataset}/update": {
3475
+ parameters: {
3476
+ query?: never;
3477
+ header?: never;
3478
+ path?: never;
3479
+ cookie?: never;
3480
+ };
3481
+ get?: never;
3482
+ put?: never;
3483
+ /**
3484
+ * Update Intake Dataset
3485
+ * @description Run the customer-facing dataset update flow.
3486
+ *
3487
+ * This is the one-click orchestration path for the console: check mapped Drive
3488
+ * folders, prepare any newly landed files, and publish immediately when no
3489
+ * preparation is needed. If preparation is async, the run remains durable and
3490
+ * is advanced by file write-backs or by refresh.
3491
+ */
3492
+ post: operations["update_intake_dataset_v1__workspace_id__intake_datasets__dataset__update_post"];
3493
+ delete?: never;
3494
+ options?: never;
3495
+ head?: never;
3496
+ patch?: never;
3497
+ trace?: never;
3498
+ };
3469
3499
  "/v1/{workspace_id}/intake/files": {
3470
3500
  parameters: {
3471
3501
  query?: never;
@@ -3725,6 +3755,23 @@ export interface paths {
3725
3755
  patch?: never;
3726
3756
  trace?: never;
3727
3757
  };
3758
+ "/v1/{workspace_id}/intake/update-runs/{run_id}": {
3759
+ parameters: {
3760
+ query?: never;
3761
+ header?: never;
3762
+ path?: never;
3763
+ cookie?: never;
3764
+ };
3765
+ /** Get Intake Update Run */
3766
+ get: operations["get_intake_update_run_v1__workspace_id__intake_update_runs__run_id__get"];
3767
+ put?: never;
3768
+ post?: never;
3769
+ delete?: never;
3770
+ options?: never;
3771
+ head?: never;
3772
+ patch?: never;
3773
+ trace?: never;
3774
+ };
3728
3775
  "/v1/{workspace_id}/integrations": {
3729
3776
  parameters: {
3730
3777
  query?: never;
@@ -5192,6 +5239,66 @@ export interface paths {
5192
5239
  patch?: never;
5193
5240
  trace?: never;
5194
5241
  };
5242
+ "/v1/{workspace_id}/runs/{run_id}": {
5243
+ parameters: {
5244
+ query?: never;
5245
+ header?: never;
5246
+ path?: never;
5247
+ cookie?: never;
5248
+ };
5249
+ /**
5250
+ * Get one run (framework or conversation) by run_id
5251
+ * @description Resolve a single run by its channel-neutral ``run_id`` and return the canonical ``Run`` — at any status (live, completed, failed, timed out). Federates the Delta ``world.runs`` MV (framework runs), Lakebase ``world.conversations`` (conversation runs), and the live-voice registry, matched by ``run_id`` and scoped to the workspace. Use the returned ``kind`` / ``channel`` / ``source_*`` fields to open the channel-appropriate detail (voice call, text conversation, framework trace). 404 if the run does not exist in this workspace.
5252
+ */
5253
+ get: operations["get_run_v1__workspace_id__runs__run_id__get"];
5254
+ put?: never;
5255
+ post?: never;
5256
+ delete?: never;
5257
+ options?: never;
5258
+ head?: never;
5259
+ patch?: never;
5260
+ trace?: never;
5261
+ };
5262
+ "/v1/{workspace_id}/runs/{run_id}/access-token": {
5263
+ parameters: {
5264
+ query?: never;
5265
+ header?: never;
5266
+ path?: never;
5267
+ cookie?: never;
5268
+ };
5269
+ get?: never;
5270
+ put?: never;
5271
+ /**
5272
+ * Mint a browser-audio access token for an operator on a live run
5273
+ * @description Generate the Twilio browser-audio credentials the console needs to attach the operator's WebRTC leg to a live run, addressed by ``run_id``. This is the media plane companion to ``/takeover`` (the control plane). Requires ``admin`` (Operator:Update), bound to the caller's own operator identity. 404 if the run is not live in this workspace; 409 if its channel has no browser-audio leg.
5274
+ */
5275
+ post: operations["mint_run_access_token_v1__workspace_id__runs__run_id__access_token_post"];
5276
+ delete?: never;
5277
+ options?: never;
5278
+ head?: never;
5279
+ patch?: never;
5280
+ trace?: never;
5281
+ };
5282
+ "/v1/{workspace_id}/runs/{run_id}/authored-turn": {
5283
+ parameters: {
5284
+ query?: never;
5285
+ header?: never;
5286
+ path?: never;
5287
+ cookie?: never;
5288
+ };
5289
+ get?: never;
5290
+ put?: never;
5291
+ /**
5292
+ * Author the next turn on a non-voice run under takeover
5293
+ * @description Stage an operator-authored reply for a NON-voice run (text/sms/email/web) the caller has taken over. The agent-engine send-gate substitutes it for the agent's next outbound (exactly-once), so the caller receives the operator's words while the agent stays suspended. Repeatable — each call stages the next turn. Addressed by the channel-neutral ``run_id``. Requires ``admin`` (Operator:Update), bound to the caller's own operator identity (no impersonation). 404 if the run is not live in this workspace; 409 for voice (voice takeover drives the live audio leg — use the conference, not an authored turn).
5294
+ */
5295
+ post: operations["author_run_turn_v1__workspace_id__runs__run_id__authored_turn_post"];
5296
+ delete?: never;
5297
+ options?: never;
5298
+ head?: never;
5299
+ patch?: never;
5300
+ trace?: never;
5301
+ };
5195
5302
  "/v1/{workspace_id}/runs/{run_id}/guidance": {
5196
5303
  parameters: {
5197
5304
  query?: never;
@@ -5232,6 +5339,26 @@ export interface paths {
5232
5339
  patch?: never;
5233
5340
  trace?: never;
5234
5341
  };
5342
+ "/v1/{workspace_id}/runs/{run_id}/switch-mode": {
5343
+ parameters: {
5344
+ query?: never;
5345
+ header?: never;
5346
+ path?: never;
5347
+ cookie?: never;
5348
+ };
5349
+ get?: never;
5350
+ put?: never;
5351
+ /**
5352
+ * Switch an operator between listen and takeover on a live run
5353
+ * @description Toggle the operator between ``listen`` (monitor) and ``takeover`` (drive) on a run they have already joined, addressed by the channel-neutral ``run_id``. For voice this mutes/unmutes the operator's conference participant. Requires ``admin`` (Operator:Update), bound to the caller's own operator identity (no impersonation). 404 if the run is not live in this workspace; 409 if its channel does not support live takeover yet.
5354
+ */
5355
+ post: operations["switch_run_mode_v1__workspace_id__runs__run_id__switch_mode_post"];
5356
+ delete?: never;
5357
+ options?: never;
5358
+ head?: never;
5359
+ patch?: never;
5360
+ trace?: never;
5361
+ };
5235
5362
  "/v1/{workspace_id}/runs/{run_id}/takeover": {
5236
5363
  parameters: {
5237
5364
  query?: never;
@@ -5252,6 +5379,26 @@ export interface paths {
5252
5379
  patch?: never;
5253
5380
  trace?: never;
5254
5381
  };
5382
+ "/v1/{workspace_id}/runs/{run_id}/trajectory": {
5383
+ parameters: {
5384
+ query?: never;
5385
+ header?: never;
5386
+ path?: never;
5387
+ cookie?: never;
5388
+ };
5389
+ /**
5390
+ * Get a framework run's step-by-step trajectory
5391
+ * @description Ordered structural steps (perception / decision / tool / completion) of a FRAMEWORK run, read from the durable Delta trace source by the run's correlation id. 404 if the run does not exist in this workspace; 409 if the run is a conversation run (use ``/conversations/{id}`` for per-turn detail).
5392
+ */
5393
+ get: operations["get_run_trajectory_v1__workspace_id__runs__run_id__trajectory_get"];
5394
+ put?: never;
5395
+ post?: never;
5396
+ delete?: never;
5397
+ options?: never;
5398
+ head?: never;
5399
+ patch?: never;
5400
+ trace?: never;
5401
+ };
5255
5402
  "/v1/{workspace_id}/scheduling-rule-sets": {
5256
5403
  parameters: {
5257
5404
  query?: never;
@@ -11105,7 +11252,7 @@ export interface components {
11105
11252
  * Status
11106
11253
  * @enum {string}
11107
11254
  */
11108
- status: "active" | "closed" | "completed" | "in-progress" | "failed";
11255
+ status: "active" | "closed" | "completed" | "in-progress" | "failed" | "paused";
11109
11256
  /**
11110
11257
  * Turn Count
11111
11258
  * @default 0
@@ -12896,6 +13043,34 @@ export interface components {
12896
13043
  /** Schema Version */
12897
13044
  schema_version: string;
12898
13045
  };
13046
+ /**
13047
+ * DatasetUpdateRunResponse
13048
+ * @description Durable status for one dataset update action.
13049
+ */
13050
+ DatasetUpdateRunResponse: {
13051
+ /** Batch Ids */
13052
+ batch_ids: string[];
13053
+ /** Completed At */
13054
+ completed_at?: string | null;
13055
+ /** Created At */
13056
+ created_at: string;
13057
+ /** Dataset */
13058
+ dataset: string;
13059
+ /** Error */
13060
+ error?: string | null;
13061
+ /** Materialize Run Id */
13062
+ materialize_run_id?: number | null;
13063
+ /**
13064
+ * Run Id
13065
+ * Format: uuid
13066
+ */
13067
+ run_id: string;
13068
+ /** Source Ids */
13069
+ source_ids: string[];
13070
+ status: components["schemas"]["_DatasetUpdateStatus"];
13071
+ /** Updated At */
13072
+ updated_at: string;
13073
+ };
12899
13074
  /**
12900
13075
  * DecisionFactor
12901
13076
  * @description A specific audio input that drove an agent decision.
@@ -16404,7 +16579,7 @@ export interface components {
16404
16579
  */
16405
16580
  created_at: string;
16406
16581
  customer_slug: components["schemas"]["SlugString"];
16407
- display_name: components["schemas"]["NameString"] | null;
16582
+ display_name: components["schemas"]["DescriptionString"] | null;
16408
16583
  /**
16409
16584
  * Expires At
16410
16585
  * Format: date-time
@@ -17174,11 +17349,8 @@ export interface components {
17174
17349
  * @description Stable URL-safe customer identifier.
17175
17350
  */
17176
17351
  customer_slug: string;
17177
- /**
17178
- * Display Name
17179
- * @description Human-readable display name (falls back to customer slug).
17180
- */
17181
- display_name: string;
17352
+ /** @description Human-readable display name (falls back to customer slug). */
17353
+ display_name: components["schemas"]["DescriptionString"];
17182
17354
  /**
17183
17355
  * Max Upload Bytes
17184
17356
  * @description Maximum allowed upload size in bytes.
@@ -19598,6 +19770,32 @@ export interface components {
19598
19770
  */
19599
19771
  workspace_id: string;
19600
19772
  };
19773
+ /**
19774
+ * PermissionCatalogResponse
19775
+ * @description The authoritative role→permission model for API-key creation.
19776
+ *
19777
+ * Serves the server-side source of truth (``DEFAULT_ROLE_DEFINITIONS``) so
19778
+ * clients (console, SDK) stop hand-copying the matrix and drifting out of
19779
+ * sync — a drift previously shipped `Data:Query` as a viewer default and
19780
+ * made the default create flow 422. Human-facing labels/descriptions for
19781
+ * individual permissions stay client-side (pure presentation); this payload
19782
+ * is authorization truth only.
19783
+ */
19784
+ PermissionCatalogResponse: {
19785
+ /** Permissions */
19786
+ permissions: components["schemas"]["PermissionEntry"][];
19787
+ /** Roles */
19788
+ roles: components["schemas"]["RoleEntry"][];
19789
+ };
19790
+ /** PermissionEntry */
19791
+ PermissionEntry: {
19792
+ /** Action */
19793
+ action: string;
19794
+ /** Name */
19795
+ name: string;
19796
+ /** Namespace */
19797
+ namespace: string;
19798
+ };
19601
19799
  PhoneE164: string;
19602
19800
  /** PhoneNumberCallVolume */
19603
19801
  PhoneNumberCallVolume: {
@@ -21006,6 +21204,17 @@ export interface components {
21006
21204
  */
21007
21205
  level?: "low" | "medium" | "high" | "critical";
21008
21206
  };
21207
+ /** RoleEntry */
21208
+ RoleEntry: {
21209
+ /** Description */
21210
+ description: string;
21211
+ /** Name */
21212
+ name: string;
21213
+ /** Permission Names */
21214
+ permission_names: string[];
21215
+ /** Priority */
21216
+ priority: number;
21217
+ };
21009
21218
  /** RoleGrantItem */
21010
21219
  RoleGrantItem: {
21011
21220
  access: components["schemas"]["_Access"];
@@ -21117,6 +21326,47 @@ export interface components {
21117
21326
  */
21118
21327
  workspace_id: string;
21119
21328
  };
21329
+ /** RunAccessTokenRequest */
21330
+ RunAccessTokenRequest: {
21331
+ /**
21332
+ * Operator Id
21333
+ * Format: uuid
21334
+ */
21335
+ operator_id: string;
21336
+ };
21337
+ /** RunAccessTokenResponse */
21338
+ RunAccessTokenResponse: {
21339
+ /** Conference Sid */
21340
+ conference_sid?: string | null;
21341
+ /** Connect Params */
21342
+ connect_params?: {
21343
+ [key: string]: string;
21344
+ };
21345
+ /** Identity */
21346
+ identity: string;
21347
+ /** Token */
21348
+ token: string;
21349
+ };
21350
+ /** RunAuthoredTurnRequest */
21351
+ RunAuthoredTurnRequest: {
21352
+ /**
21353
+ * Operator Id
21354
+ * Format: uuid
21355
+ */
21356
+ operator_id: string;
21357
+ /** Text */
21358
+ text: string;
21359
+ };
21360
+ /** RunAuthoredTurnResponse */
21361
+ RunAuthoredTurnResponse: {
21362
+ /**
21363
+ * Run Id
21364
+ * Format: uuid
21365
+ */
21366
+ run_id: string;
21367
+ /** Staged */
21368
+ staged: boolean;
21369
+ };
21120
21370
  /**
21121
21371
  * RunGuidanceRequest
21122
21372
  * @description Operator guidance for a live run. ``operator_id`` is in the body because this
@@ -21224,6 +21474,34 @@ export interface components {
21224
21474
  /** Tags */
21225
21475
  tags?: string[];
21226
21476
  };
21477
+ /** RunSwitchModeRequest */
21478
+ RunSwitchModeRequest: {
21479
+ /**
21480
+ * Mode
21481
+ * @enum {string}
21482
+ */
21483
+ mode: "listen" | "takeover";
21484
+ /**
21485
+ * Operator Id
21486
+ * Format: uuid
21487
+ */
21488
+ operator_id: string;
21489
+ /** Participant Call Sid */
21490
+ participant_call_sid: string;
21491
+ };
21492
+ /** RunSwitchModeResponse */
21493
+ RunSwitchModeResponse: {
21494
+ /**
21495
+ * Mode
21496
+ * @enum {string}
21497
+ */
21498
+ mode: "listen" | "takeover";
21499
+ /**
21500
+ * Run Id
21501
+ * Format: uuid
21502
+ */
21503
+ run_id: string;
21504
+ };
21227
21505
  /** RunTakeoverRequest */
21228
21506
  RunTakeoverRequest: {
21229
21507
  /**
@@ -21255,6 +21533,13 @@ export interface components {
21255
21533
  */
21256
21534
  run_id: string;
21257
21535
  };
21536
+ /** RunTrajectoryResponse */
21537
+ RunTrajectoryResponse: {
21538
+ /** Steps */
21539
+ steps: components["schemas"]["TrajectoryStep"][];
21540
+ /** Truncated */
21541
+ truncated: boolean;
21542
+ };
21258
21543
  /** RunsResponse */
21259
21544
  RunsResponse: {
21260
21545
  /** Continuation Token */
@@ -25651,6 +25936,36 @@ export interface components {
25651
25936
  */
25652
25937
  resourceSpans: components["schemas"]["ResourceSpans"][];
25653
25938
  };
25939
+ /**
25940
+ * TrajectoryStep
25941
+ * @description One structural step of a framework run's trajectory. Fields are best-effort
25942
+ * (only those the step actually carries are present), all optional, and free ``str``
25943
+ * for the same read-model resilience the ``Run`` descriptive fields use.
25944
+ */
25945
+ TrajectoryStep: {
25946
+ /** Actor */
25947
+ actor?: string | null;
25948
+ /** Decision From State */
25949
+ decision_from_state?: string | null;
25950
+ /** Decision To State */
25951
+ decision_to_state?: string | null;
25952
+ /** Effective At */
25953
+ effective_at?: string | null;
25954
+ /** Kind */
25955
+ kind?: string | null;
25956
+ /** Seq */
25957
+ seq?: number | null;
25958
+ /** State */
25959
+ state?: string | null;
25960
+ /** Tool Input Summary */
25961
+ tool_input_summary?: string | null;
25962
+ /** Tool Name */
25963
+ tool_name?: string | null;
25964
+ /** Tool Result Summary */
25965
+ tool_result_summary?: string | null;
25966
+ /** Tool Succeeded */
25967
+ tool_succeeded?: boolean | null;
25968
+ };
25654
25969
  /** TranscriptSegment */
25655
25970
  TranscriptSegment: {
25656
25971
  /** Confidence */
@@ -26080,7 +26395,7 @@ export interface components {
26080
26395
  * Status
26081
26396
  * @enum {string}
26082
26397
  */
26083
- status: "active" | "closed" | "completed" | "in-progress" | "failed";
26398
+ status: "active" | "closed" | "completed" | "in-progress" | "failed" | "paused";
26084
26399
  /**
26085
26400
  * Turn Count
26086
26401
  * @default 0
@@ -27670,6 +27985,8 @@ export interface components {
27670
27985
  /** @enum {string} */
27671
27986
  _Access: "read" | "write";
27672
27987
  _DatasetSlug: string;
27988
+ /** @enum {string} */
27989
+ _DatasetUpdateStatus: "checking_drive" | "preparing" | "publishing" | "completed" | "needs_review" | "failed";
27673
27990
  /**
27674
27991
  * _DayHours
27675
27992
  * @description Open-hours window for one weekday. Times in 24h ``HH:MM`` form,
@@ -27908,7 +28225,7 @@ export interface components {
27908
28225
  * Status
27909
28226
  * @enum {string}
27910
28227
  */
27911
- status: "active" | "closed" | "completed" | "in-progress" | "failed";
28228
+ status: "active" | "closed" | "completed" | "in-progress" | "failed" | "paused";
27912
28229
  /**
27913
28230
  * Turn Count
27914
28231
  * @default 0
@@ -32021,6 +32338,42 @@ export interface operations {
32021
32338
  };
32022
32339
  };
32023
32340
  };
32341
+ "get-api-key-permission-catalog": {
32342
+ parameters: {
32343
+ query?: never;
32344
+ header?: never;
32345
+ path: {
32346
+ workspace_id: string;
32347
+ };
32348
+ cookie?: never;
32349
+ };
32350
+ requestBody?: never;
32351
+ responses: {
32352
+ /** @description Successful Response */
32353
+ 200: {
32354
+ headers: {
32355
+ [name: string]: unknown;
32356
+ };
32357
+ content: {
32358
+ "application/json": components["schemas"]["PermissionCatalogResponse"];
32359
+ };
32360
+ };
32361
+ /** @description Missing or invalid API key. */
32362
+ 401: {
32363
+ headers: {
32364
+ [name: string]: unknown;
32365
+ };
32366
+ content?: never;
32367
+ };
32368
+ /** @description Insufficient permissions. */
32369
+ 403: {
32370
+ headers: {
32371
+ [name: string]: unknown;
32372
+ };
32373
+ content?: never;
32374
+ };
32375
+ };
32376
+ };
32024
32377
  "delete-api-key": {
32025
32378
  parameters: {
32026
32379
  query?: never;
@@ -33852,7 +34205,7 @@ export interface operations {
33852
34205
  /** @description Filter by channel */
33853
34206
  channel_kind?: components["schemas"]["ChannelKind"] | null;
33854
34207
  /** @description Filter by status */
33855
- status?: ("active" | "closed" | "completed" | "in-progress" | "failed") | null;
34208
+ status?: ("active" | "closed" | "completed" | "in-progress" | "failed" | "paused") | null;
33856
34209
  limit?: number;
33857
34210
  offset?: number;
33858
34211
  };
@@ -37265,6 +37618,38 @@ export interface operations {
37265
37618
  };
37266
37619
  };
37267
37620
  };
37621
+ update_intake_dataset_v1__workspace_id__intake_datasets__dataset__update_post: {
37622
+ parameters: {
37623
+ query?: never;
37624
+ header?: never;
37625
+ path: {
37626
+ workspace_id: string;
37627
+ dataset: string;
37628
+ };
37629
+ cookie?: never;
37630
+ };
37631
+ requestBody?: never;
37632
+ responses: {
37633
+ /** @description Successful Response */
37634
+ 202: {
37635
+ headers: {
37636
+ [name: string]: unknown;
37637
+ };
37638
+ content: {
37639
+ "application/json": components["schemas"]["DatasetUpdateRunResponse"];
37640
+ };
37641
+ };
37642
+ /** @description Validation Error */
37643
+ 422: {
37644
+ headers: {
37645
+ [name: string]: unknown;
37646
+ };
37647
+ content: {
37648
+ "application/json": components["schemas"]["HTTPValidationError"];
37649
+ };
37650
+ };
37651
+ };
37652
+ };
37268
37653
  list_intake_files_v1__workspace_id__intake_files_get: {
37269
37654
  parameters: {
37270
37655
  query?: {
@@ -37834,6 +38219,38 @@ export interface operations {
37834
38219
  };
37835
38220
  };
37836
38221
  };
38222
+ get_intake_update_run_v1__workspace_id__intake_update_runs__run_id__get: {
38223
+ parameters: {
38224
+ query?: never;
38225
+ header?: never;
38226
+ path: {
38227
+ workspace_id: string;
38228
+ run_id: string;
38229
+ };
38230
+ cookie?: never;
38231
+ };
38232
+ requestBody?: never;
38233
+ responses: {
38234
+ /** @description Successful Response */
38235
+ 200: {
38236
+ headers: {
38237
+ [name: string]: unknown;
38238
+ };
38239
+ content: {
38240
+ "application/json": components["schemas"]["DatasetUpdateRunResponse"];
38241
+ };
38242
+ };
38243
+ /** @description Validation Error */
38244
+ 422: {
38245
+ headers: {
38246
+ [name: string]: unknown;
38247
+ };
38248
+ content: {
38249
+ "application/json": components["schemas"]["HTTPValidationError"];
38250
+ };
38251
+ };
38252
+ };
38253
+ };
37837
38254
  "list-integrations": {
37838
38255
  parameters: {
37839
38256
  query?: {
@@ -41257,9 +41674,9 @@ export interface operations {
41257
41674
  sort_by?: string[];
41258
41675
  limit?: number;
41259
41676
  continuation_token?: unknown;
41260
- status?: ("live" | "running" | "paused" | "completed" | "failed" | "timed_out") | null;
41261
- kind?: ("conversation" | "framework") | null;
41262
- channel?: ("voice" | "text" | "sms" | "email" | "web") | null;
41677
+ status?: ("live" | "running" | "paused" | "completed" | "failed" | "timed_out")[];
41678
+ kind?: ("conversation" | "framework")[];
41679
+ channel?: ("voice" | "text" | "sms" | "email" | "web")[];
41263
41680
  };
41264
41681
  header?: never;
41265
41682
  path: {
@@ -41292,8 +41709,8 @@ export interface operations {
41292
41709
  runs_summary_v1__workspace_id__runs_summary_get: {
41293
41710
  parameters: {
41294
41711
  query?: {
41295
- kind?: ("conversation" | "framework") | null;
41296
- channel?: ("voice" | "text" | "sms" | "email" | "web") | null;
41712
+ kind?: ("conversation" | "framework")[];
41713
+ channel?: ("voice" | "text" | "sms" | "email" | "web")[];
41297
41714
  };
41298
41715
  header?: never;
41299
41716
  path: {
@@ -41323,6 +41740,110 @@ export interface operations {
41323
41740
  };
41324
41741
  };
41325
41742
  };
41743
+ get_run_v1__workspace_id__runs__run_id__get: {
41744
+ parameters: {
41745
+ query?: never;
41746
+ header?: never;
41747
+ path: {
41748
+ workspace_id: string;
41749
+ run_id: string;
41750
+ };
41751
+ cookie?: never;
41752
+ };
41753
+ requestBody?: never;
41754
+ responses: {
41755
+ /** @description Successful Response */
41756
+ 200: {
41757
+ headers: {
41758
+ [name: string]: unknown;
41759
+ };
41760
+ content: {
41761
+ "application/json": components["schemas"]["Run"];
41762
+ };
41763
+ };
41764
+ /** @description Validation Error */
41765
+ 422: {
41766
+ headers: {
41767
+ [name: string]: unknown;
41768
+ };
41769
+ content: {
41770
+ "application/json": components["schemas"]["HTTPValidationError"];
41771
+ };
41772
+ };
41773
+ };
41774
+ };
41775
+ mint_run_access_token_v1__workspace_id__runs__run_id__access_token_post: {
41776
+ parameters: {
41777
+ query?: never;
41778
+ header?: never;
41779
+ path: {
41780
+ workspace_id: string;
41781
+ run_id: string;
41782
+ };
41783
+ cookie?: never;
41784
+ };
41785
+ requestBody: {
41786
+ content: {
41787
+ "application/json": components["schemas"]["RunAccessTokenRequest"];
41788
+ };
41789
+ };
41790
+ responses: {
41791
+ /** @description Successful Response */
41792
+ 200: {
41793
+ headers: {
41794
+ [name: string]: unknown;
41795
+ };
41796
+ content: {
41797
+ "application/json": components["schemas"]["RunAccessTokenResponse"];
41798
+ };
41799
+ };
41800
+ /** @description Validation Error */
41801
+ 422: {
41802
+ headers: {
41803
+ [name: string]: unknown;
41804
+ };
41805
+ content: {
41806
+ "application/json": components["schemas"]["HTTPValidationError"];
41807
+ };
41808
+ };
41809
+ };
41810
+ };
41811
+ author_run_turn_v1__workspace_id__runs__run_id__authored_turn_post: {
41812
+ parameters: {
41813
+ query?: never;
41814
+ header?: never;
41815
+ path: {
41816
+ workspace_id: string;
41817
+ run_id: string;
41818
+ };
41819
+ cookie?: never;
41820
+ };
41821
+ requestBody: {
41822
+ content: {
41823
+ "application/json": components["schemas"]["RunAuthoredTurnRequest"];
41824
+ };
41825
+ };
41826
+ responses: {
41827
+ /** @description Successful Response */
41828
+ 200: {
41829
+ headers: {
41830
+ [name: string]: unknown;
41831
+ };
41832
+ content: {
41833
+ "application/json": components["schemas"]["RunAuthoredTurnResponse"];
41834
+ };
41835
+ };
41836
+ /** @description Validation Error */
41837
+ 422: {
41838
+ headers: {
41839
+ [name: string]: unknown;
41840
+ };
41841
+ content: {
41842
+ "application/json": components["schemas"]["HTTPValidationError"];
41843
+ };
41844
+ };
41845
+ };
41846
+ };
41326
41847
  send_run_guidance_v1__workspace_id__runs__run_id__guidance_post: {
41327
41848
  parameters: {
41328
41849
  query?: never;
@@ -41395,6 +41916,42 @@ export interface operations {
41395
41916
  };
41396
41917
  };
41397
41918
  };
41919
+ switch_run_mode_v1__workspace_id__runs__run_id__switch_mode_post: {
41920
+ parameters: {
41921
+ query?: never;
41922
+ header?: never;
41923
+ path: {
41924
+ workspace_id: string;
41925
+ run_id: string;
41926
+ };
41927
+ cookie?: never;
41928
+ };
41929
+ requestBody: {
41930
+ content: {
41931
+ "application/json": components["schemas"]["RunSwitchModeRequest"];
41932
+ };
41933
+ };
41934
+ responses: {
41935
+ /** @description Successful Response */
41936
+ 200: {
41937
+ headers: {
41938
+ [name: string]: unknown;
41939
+ };
41940
+ content: {
41941
+ "application/json": components["schemas"]["RunSwitchModeResponse"];
41942
+ };
41943
+ };
41944
+ /** @description Validation Error */
41945
+ 422: {
41946
+ headers: {
41947
+ [name: string]: unknown;
41948
+ };
41949
+ content: {
41950
+ "application/json": components["schemas"]["HTTPValidationError"];
41951
+ };
41952
+ };
41953
+ };
41954
+ };
41398
41955
  take_over_run_v1__workspace_id__runs__run_id__takeover_post: {
41399
41956
  parameters: {
41400
41957
  query?: never;
@@ -41431,6 +41988,38 @@ export interface operations {
41431
41988
  };
41432
41989
  };
41433
41990
  };
41991
+ get_run_trajectory_v1__workspace_id__runs__run_id__trajectory_get: {
41992
+ parameters: {
41993
+ query?: never;
41994
+ header?: never;
41995
+ path: {
41996
+ workspace_id: string;
41997
+ run_id: string;
41998
+ };
41999
+ cookie?: never;
42000
+ };
42001
+ requestBody?: never;
42002
+ responses: {
42003
+ /** @description Successful Response */
42004
+ 200: {
42005
+ headers: {
42006
+ [name: string]: unknown;
42007
+ };
42008
+ content: {
42009
+ "application/json": components["schemas"]["RunTrajectoryResponse"];
42010
+ };
42011
+ };
42012
+ /** @description Validation Error */
42013
+ 422: {
42014
+ headers: {
42015
+ [name: string]: unknown;
42016
+ };
42017
+ content: {
42018
+ "application/json": components["schemas"]["HTTPValidationError"];
42019
+ };
42020
+ };
42021
+ };
42022
+ };
41434
42023
  "list-scheduling-rule-sets": {
41435
42024
  parameters: {
41436
42025
  query?: {