@agent-os-sdk/client 0.9.20 → 0.9.22

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.
@@ -1238,6 +1238,60 @@
1238
1238
  }
1239
1239
  }
1240
1240
  },
1241
+ "/v1/api/agents/{id}/publish-preview": {
1242
+ "get": {
1243
+ "tags": [
1244
+ "Agents"
1245
+ ],
1246
+ "summary": "Returns the official publish preview/readiness surface for the saved draft IR.",
1247
+ "parameters": [
1248
+ {
1249
+ "name": "id",
1250
+ "in": "path",
1251
+ "required": true,
1252
+ "schema": {
1253
+ "type": "string",
1254
+ "format": "uuid"
1255
+ }
1256
+ }
1257
+ ],
1258
+ "responses": {
1259
+ "200": {
1260
+ "description": "OK",
1261
+ "content": {
1262
+ "application/json": {
1263
+ "schema": {
1264
+ "$ref": "#/components/schemas/PublishPreviewResponse"
1265
+ }
1266
+ }
1267
+ }
1268
+ },
1269
+ "404": {
1270
+ "description": "Not Found",
1271
+ "content": {
1272
+ "application/json": {
1273
+ "schema": {
1274
+ "$ref": "#/components/schemas/ProblemDetails"
1275
+ }
1276
+ }
1277
+ }
1278
+ },
1279
+ "400": {
1280
+ "description": "Bad Request",
1281
+ "content": {
1282
+ "application/json": {
1283
+ "schema": {
1284
+ "$ref": "#/components/schemas/ProblemDetails"
1285
+ }
1286
+ }
1287
+ }
1288
+ },
1289
+ "503": {
1290
+ "description": "Service Unavailable"
1291
+ }
1292
+ }
1293
+ }
1294
+ },
1241
1295
  "/v1/api/agents/{id}/draft/ir": {
1242
1296
  "get": {
1243
1297
  "tags": [
@@ -6194,13 +6248,13 @@
6194
6248
  }
6195
6249
  }
6196
6250
  },
6197
- "/v1/api/runs/{runId}/operations/transitions": {
6251
+ "/v1/api/runs/{runId}/inspection": {
6198
6252
  "get": {
6199
6253
  "tags": [
6200
6254
  "Runs"
6201
6255
  ],
6202
- "summary": "Returns the causal transition ledger for a run's kernel operations (read-only).",
6203
- "description": "Exposes the raw `runtime.operation_transitions` ledger scoped to a run.\nResults are ordered by `run_attempt_transition_seq` — the global monotonic causal clock\nper `(run_id, attempt_id)`. This is a Wave 2 introspection surface: read-only, no side effects.\n \n**Filtering:**\n- `attemptId`: Restrict to a specific attempt (strongly recommended for large runs)\n- `operationId`: Restrict to a single operation's transitions\n \n**Ordering:** Always by `run_attempt_transition_seq ASC` the canonical causal order.",
6256
+ "summary": "Returns the official runtime inspection surface for a run.",
6257
+ "description": "This endpoint is the supported read model for operational inspection over the canonical runtime ledger.\nIt explains a run through:\n- run summary\n- replay metadata\n- failure summary\n- attempts\n- node execution timeline\n- event timeline\n \nConsumers should prefer this endpoint over raw table archaeology.",
6204
6258
  "parameters": [
6205
6259
  {
6206
6260
  "name": "runId",
@@ -6210,40 +6264,6 @@
6210
6264
  "type": "string",
6211
6265
  "format": "uuid"
6212
6266
  }
6213
- },
6214
- {
6215
- "name": "attemptId",
6216
- "in": "query",
6217
- "schema": {
6218
- "type": "string",
6219
- "format": "uuid"
6220
- }
6221
- },
6222
- {
6223
- "name": "operationId",
6224
- "in": "query",
6225
- "schema": {
6226
- "type": "string",
6227
- "format": "uuid"
6228
- }
6229
- },
6230
- {
6231
- "name": "skip",
6232
- "in": "query",
6233
- "schema": {
6234
- "type": "integer",
6235
- "format": "int32",
6236
- "default": 0
6237
- }
6238
- },
6239
- {
6240
- "name": "take",
6241
- "in": "query",
6242
- "schema": {
6243
- "type": "integer",
6244
- "format": "int32",
6245
- "default": 100
6246
- }
6247
6267
  }
6248
6268
  ],
6249
6269
  "responses": {
@@ -6252,7 +6272,7 @@
6252
6272
  "content": {
6253
6273
  "application/json": {
6254
6274
  "schema": {
6255
- "$ref": "#/components/schemas/OperationTransitionsResponse"
6275
+ "$ref": "#/components/schemas/RunInspectionResponse"
6256
6276
  }
6257
6277
  }
6258
6278
  }
@@ -6270,51 +6290,73 @@
6270
6290
  }
6271
6291
  }
6272
6292
  },
6273
- "/v1/api/runs/{runId}/events": {
6293
+ "/v1/api/runs/failures": {
6274
6294
  "get": {
6275
6295
  "tags": [
6276
6296
  "Runs"
6277
6297
  ],
6278
- "summary": "Get canonical run events from SSOT ledger (polling).",
6279
6298
  "parameters": [
6280
6299
  {
6281
- "name": "runId",
6282
- "in": "path",
6283
- "description": "Run ID.",
6284
- "required": true,
6300
+ "name": "agentId",
6301
+ "in": "query",
6285
6302
  "schema": {
6286
6303
  "type": "string",
6287
6304
  "format": "uuid"
6288
6305
  }
6289
6306
  },
6290
6307
  {
6291
- "name": "attemptId",
6308
+ "name": "capabilityRef",
6309
+ "in": "query",
6310
+ "schema": {
6311
+ "type": "string"
6312
+ }
6313
+ },
6314
+ {
6315
+ "name": "errorCategory",
6316
+ "in": "query",
6317
+ "schema": {
6318
+ "type": "string"
6319
+ }
6320
+ },
6321
+ {
6322
+ "name": "retryable",
6323
+ "in": "query",
6324
+ "schema": {
6325
+ "type": "boolean"
6326
+ }
6327
+ },
6328
+ {
6329
+ "name": "from",
6292
6330
  "in": "query",
6293
- "description": "Attempt ID (required).",
6294
- "required": true,
6295
6331
  "schema": {
6296
6332
  "type": "string",
6297
- "format": "uuid"
6333
+ "format": "date-time"
6298
6334
  }
6299
6335
  },
6300
6336
  {
6301
- "name": "afterSeq",
6337
+ "name": "to",
6302
6338
  "in": "query",
6303
- "description": "Return events with seq greater than this value.",
6304
6339
  "schema": {
6305
- "type": "integer",
6306
- "format": "int64",
6307
- "default": 0
6340
+ "type": "string",
6341
+ "format": "date-time"
6308
6342
  }
6309
6343
  },
6310
6344
  {
6311
6345
  "name": "limit",
6312
6346
  "in": "query",
6313
- "description": "Max events to return (1..500).",
6314
6347
  "schema": {
6315
6348
  "type": "integer",
6316
6349
  "format": "int32",
6317
- "default": 100
6350
+ "default": 50
6351
+ }
6352
+ },
6353
+ {
6354
+ "name": "offset",
6355
+ "in": "query",
6356
+ "schema": {
6357
+ "type": "integer",
6358
+ "format": "int32",
6359
+ "default": 0
6318
6360
  }
6319
6361
  }
6320
6362
  ],
@@ -6324,17 +6366,37 @@
6324
6366
  "content": {
6325
6367
  "application/json": {
6326
6368
  "schema": {
6327
- "$ref": "#/components/schemas/RunEventsPollResponse"
6369
+ "$ref": "#/components/schemas/RunFailureRetentionListResponse"
6328
6370
  }
6329
6371
  }
6330
6372
  }
6331
- },
6332
- "400": {
6333
- "description": "Bad Request",
6373
+ }
6374
+ }
6375
+ }
6376
+ },
6377
+ "/v1/api/runs/failures/{failureId}": {
6378
+ "get": {
6379
+ "tags": [
6380
+ "Runs"
6381
+ ],
6382
+ "parameters": [
6383
+ {
6384
+ "name": "failureId",
6385
+ "in": "path",
6386
+ "required": true,
6387
+ "schema": {
6388
+ "type": "string",
6389
+ "format": "uuid"
6390
+ }
6391
+ }
6392
+ ],
6393
+ "responses": {
6394
+ "200": {
6395
+ "description": "OK",
6334
6396
  "content": {
6335
6397
  "application/json": {
6336
6398
  "schema": {
6337
- "$ref": "#/components/schemas/ProblemDetails"
6399
+ "$ref": "#/components/schemas/RunFailureRetentionDetailResponse"
6338
6400
  }
6339
6401
  }
6340
6402
  }
@@ -6352,71 +6414,44 @@
6352
6414
  }
6353
6415
  }
6354
6416
  },
6355
- "/v1/api/runs/{runId}/events/stream": {
6417
+ "/v1/api/runs/observability/summary": {
6356
6418
  "get": {
6357
6419
  "tags": [
6358
6420
  "Runs"
6359
6421
  ],
6360
- "summary": "Stream canonical run events via SSE using SSOT ledger ordering.",
6361
6422
  "parameters": [
6362
6423
  {
6363
- "name": "runId",
6364
- "in": "path",
6365
- "description": "Run ID.",
6366
- "required": true,
6424
+ "name": "agentId",
6425
+ "in": "query",
6367
6426
  "schema": {
6368
6427
  "type": "string",
6369
6428
  "format": "uuid"
6370
6429
  }
6371
6430
  },
6372
6431
  {
6373
- "name": "attemptId",
6432
+ "name": "from",
6374
6433
  "in": "query",
6375
- "description": "Attempt ID (required).",
6376
- "required": true,
6377
6434
  "schema": {
6378
6435
  "type": "string",
6379
- "format": "uuid"
6436
+ "format": "date-time"
6380
6437
  }
6381
6438
  },
6382
6439
  {
6383
- "name": "afterSeq",
6440
+ "name": "to",
6384
6441
  "in": "query",
6385
- "description": "Start after this sequence number.",
6386
6442
  "schema": {
6387
- "type": "integer",
6388
- "format": "int64",
6389
- "default": 0
6443
+ "type": "string",
6444
+ "format": "date-time"
6390
6445
  }
6391
6446
  }
6392
6447
  ],
6393
6448
  "responses": {
6394
- "400": {
6395
- "description": "Bad Request",
6396
- "content": {
6397
- "text/event-stream": {
6398
- "schema": {
6399
- "$ref": "#/components/schemas/ProblemDetails"
6400
- }
6401
- },
6402
- "application/json": {
6403
- "schema": {
6404
- "$ref": "#/components/schemas/ProblemDetails"
6405
- }
6406
- }
6407
- }
6408
- },
6409
- "404": {
6410
- "description": "Not Found",
6449
+ "200": {
6450
+ "description": "OK",
6411
6451
  "content": {
6412
- "text/event-stream": {
6413
- "schema": {
6414
- "$ref": "#/components/schemas/ProblemDetails"
6415
- }
6416
- },
6417
6452
  "application/json": {
6418
6453
  "schema": {
6419
- "$ref": "#/components/schemas/ProblemDetails"
6454
+ "$ref": "#/components/schemas/RunObservabilitySummaryResponse"
6420
6455
  }
6421
6456
  }
6422
6457
  }
@@ -6424,129 +6459,62 @@
6424
6459
  }
6425
6460
  }
6426
6461
  },
6427
- "/v1/api/runs/wait": {
6428
- "post": {
6462
+ "/v1/api/runs/observability/capabilities": {
6463
+ "get": {
6429
6464
  "tags": [
6430
6465
  "Runs"
6431
6466
  ],
6432
- "summary": "Starts a run and waits for it to complete, returning the result synchronously.",
6433
- "requestBody": {
6434
- "description": "The wait run request.",
6435
- "content": {
6436
- "application/json": {
6437
- "schema": {
6438
- "$ref": "#/components/schemas/WaitRunRequest"
6439
- }
6440
- },
6441
- "text/json": {
6442
- "schema": {
6443
- "$ref": "#/components/schemas/WaitRunRequest"
6444
- }
6445
- },
6446
- "application/*+json": {
6447
- "schema": {
6448
- "$ref": "#/components/schemas/WaitRunRequest"
6449
- }
6450
- }
6451
- }
6452
- },
6453
- "responses": {
6454
- "200": {
6455
- "description": "OK",
6456
- "content": {
6457
- "application/json": {
6458
- "schema": {
6459
- "$ref": "#/components/schemas/WaitRunResponse"
6460
- }
6461
- }
6467
+ "parameters": [
6468
+ {
6469
+ "name": "agentId",
6470
+ "in": "query",
6471
+ "schema": {
6472
+ "type": "string",
6473
+ "format": "uuid"
6462
6474
  }
6463
6475
  },
6464
- "408": {
6465
- "description": "Request Timeout",
6466
- "content": {
6467
- "application/json": {
6468
- "schema": {
6469
- "$ref": "#/components/schemas/ProblemDetails"
6470
- }
6471
- }
6476
+ {
6477
+ "name": "from",
6478
+ "in": "query",
6479
+ "schema": {
6480
+ "type": "string",
6481
+ "format": "date-time"
6472
6482
  }
6473
6483
  },
6474
- "400": {
6475
- "description": "Bad Request",
6476
- "content": {
6477
- "application/json": {
6478
- "schema": {
6479
- "$ref": "#/components/schemas/ProblemDetails"
6480
- }
6481
- }
6484
+ {
6485
+ "name": "to",
6486
+ "in": "query",
6487
+ "schema": {
6488
+ "type": "string",
6489
+ "format": "date-time"
6482
6490
  }
6483
6491
  },
6484
- "422": {
6485
- "description": "Unprocessable Content",
6486
- "content": {
6487
- "application/json": {
6488
- "schema": {
6489
- "$ref": "#/components/schemas/ProblemDetails"
6490
- }
6491
- }
6492
+ {
6493
+ "name": "limit",
6494
+ "in": "query",
6495
+ "schema": {
6496
+ "type": "integer",
6497
+ "format": "int32",
6498
+ "default": 50
6492
6499
  }
6493
- }
6494
- }
6495
- }
6496
- },
6497
- "/v1/api/runs/batch": {
6498
- "post": {
6499
- "tags": [
6500
- "Runs"
6501
- ],
6502
- "summary": "Creates multiple runs in a batch.",
6503
- "requestBody": {
6504
- "description": "The batch run request.",
6505
- "content": {
6506
- "application/json": {
6507
- "schema": {
6508
- "$ref": "#/components/schemas/BatchRunRequest"
6509
- }
6510
- },
6511
- "text/json": {
6512
- "schema": {
6513
- "$ref": "#/components/schemas/BatchRunRequest"
6514
- }
6515
- },
6516
- "application/*+json": {
6517
- "schema": {
6518
- "$ref": "#/components/schemas/BatchRunRequest"
6519
- }
6500
+ },
6501
+ {
6502
+ "name": "offset",
6503
+ "in": "query",
6504
+ "schema": {
6505
+ "type": "integer",
6506
+ "format": "int32",
6507
+ "default": 0
6520
6508
  }
6521
6509
  }
6522
- },
6510
+ ],
6523
6511
  "responses": {
6524
- "201": {
6525
- "description": "Created",
6526
- "content": {
6527
- "application/json": {
6528
- "schema": {
6529
- "$ref": "#/components/schemas/BatchRunResponse"
6530
- }
6531
- }
6532
- }
6533
- },
6534
- "400": {
6535
- "description": "Bad Request",
6536
- "content": {
6537
- "application/json": {
6538
- "schema": {
6539
- "$ref": "#/components/schemas/ProblemDetails"
6540
- }
6541
- }
6542
- }
6543
- },
6544
- "422": {
6545
- "description": "Unprocessable Content",
6512
+ "200": {
6513
+ "description": "OK",
6546
6514
  "content": {
6547
6515
  "application/json": {
6548
6516
  "schema": {
6549
- "$ref": "#/components/schemas/ProblemDetails"
6517
+ "$ref": "#/components/schemas/RunObservabilityCapabilityListResponse"
6550
6518
  }
6551
6519
  }
6552
6520
  }
@@ -6554,61 +6522,62 @@
6554
6522
  }
6555
6523
  }
6556
6524
  },
6557
- "/v1/api/runs/{runId}/rerun": {
6558
- "post": {
6525
+ "/v1/api/runs/observability/bindings": {
6526
+ "get": {
6559
6527
  "tags": [
6560
6528
  "Runs"
6561
6529
  ],
6562
- "summary": "Re-runs an existing run with same inputs (stateless rerun).",
6563
6530
  "parameters": [
6564
6531
  {
6565
- "name": "runId",
6566
- "in": "path",
6567
- "description": "The original run ID to rerun.",
6568
- "required": true,
6532
+ "name": "agentId",
6533
+ "in": "query",
6569
6534
  "schema": {
6570
6535
  "type": "string",
6571
6536
  "format": "uuid"
6572
6537
  }
6573
- }
6574
- ],
6575
- "requestBody": {
6576
- "description": "Optional overrides for the rerun.",
6577
- "content": {
6578
- "application/json": {
6579
- "schema": {
6580
- "$ref": "#/components/schemas/RerunRequest"
6581
- }
6582
- },
6583
- "text/json": {
6584
- "schema": {
6585
- "$ref": "#/components/schemas/RerunRequest"
6586
- }
6587
- },
6588
- "application/*+json": {
6589
- "schema": {
6590
- "$ref": "#/components/schemas/RerunRequest"
6591
- }
6538
+ },
6539
+ {
6540
+ "name": "from",
6541
+ "in": "query",
6542
+ "schema": {
6543
+ "type": "string",
6544
+ "format": "date-time"
6592
6545
  }
6593
- }
6594
- },
6595
- "responses": {
6596
- "201": {
6597
- "description": "Created",
6598
- "content": {
6599
- "application/json": {
6600
- "schema": {
6601
- "$ref": "#/components/schemas/RerunResponse"
6602
- }
6603
- }
6546
+ },
6547
+ {
6548
+ "name": "to",
6549
+ "in": "query",
6550
+ "schema": {
6551
+ "type": "string",
6552
+ "format": "date-time"
6604
6553
  }
6605
6554
  },
6606
- "404": {
6607
- "description": "Not Found",
6555
+ {
6556
+ "name": "limit",
6557
+ "in": "query",
6558
+ "schema": {
6559
+ "type": "integer",
6560
+ "format": "int32",
6561
+ "default": 50
6562
+ }
6563
+ },
6564
+ {
6565
+ "name": "offset",
6566
+ "in": "query",
6567
+ "schema": {
6568
+ "type": "integer",
6569
+ "format": "int32",
6570
+ "default": 0
6571
+ }
6572
+ }
6573
+ ],
6574
+ "responses": {
6575
+ "200": {
6576
+ "description": "OK",
6608
6577
  "content": {
6609
6578
  "application/json": {
6610
6579
  "schema": {
6611
- "$ref": "#/components/schemas/ProblemDetails"
6580
+ "$ref": "#/components/schemas/RunObservabilityBindingListResponse"
6612
6581
  }
6613
6582
  }
6614
6583
  }
@@ -6616,12 +6585,13 @@
6616
6585
  }
6617
6586
  }
6618
6587
  },
6619
- "/v1/api/runs/{runId}/checkpoints/{checkpointId}/replay": {
6620
- "post": {
6588
+ "/v1/api/runs/{runId}/operations/transitions": {
6589
+ "get": {
6621
6590
  "tags": [
6622
6591
  "Runs"
6623
6592
  ],
6624
- "summary": "Replays a run from a specific checkpoint.",
6593
+ "summary": "Returns the causal transition ledger for a run's kernel operations (read-only).",
6594
+ "description": "Exposes the raw `runtime.operation_transitions` ledger scoped to a run.\nResults are ordered by `run_attempt_transition_seq` — the global monotonic causal clock\nper `(run_id, attempt_id)`. This is a Wave 2 introspection surface: read-only, no side effects.\n \n**Filtering:**\n- `attemptId`: Restrict to a specific attempt (strongly recommended for large runs)\n- `operationId`: Restrict to a single operation's transitions\n \n**Ordering:** Always by `run_attempt_transition_seq ASC` — the canonical causal order.",
6625
6595
  "parameters": [
6626
6596
  {
6627
6597
  "name": "runId",
@@ -6633,41 +6603,47 @@
6633
6603
  }
6634
6604
  },
6635
6605
  {
6636
- "name": "checkpointId",
6637
- "in": "path",
6638
- "required": true,
6606
+ "name": "attemptId",
6607
+ "in": "query",
6639
6608
  "schema": {
6640
6609
  "type": "string",
6641
6610
  "format": "uuid"
6642
6611
  }
6643
- }
6644
- ],
6645
- "requestBody": {
6646
- "content": {
6647
- "application/json": {
6648
- "schema": {
6649
- "$ref": "#/components/schemas/RunReplayRequest"
6650
- }
6651
- },
6652
- "text/json": {
6653
- "schema": {
6654
- "$ref": "#/components/schemas/RunReplayRequest"
6655
- }
6656
- },
6657
- "application/*+json": {
6658
- "schema": {
6659
- "$ref": "#/components/schemas/RunReplayRequest"
6660
- }
6612
+ },
6613
+ {
6614
+ "name": "operationId",
6615
+ "in": "query",
6616
+ "schema": {
6617
+ "type": "string",
6618
+ "format": "uuid"
6619
+ }
6620
+ },
6621
+ {
6622
+ "name": "skip",
6623
+ "in": "query",
6624
+ "schema": {
6625
+ "type": "integer",
6626
+ "format": "int32",
6627
+ "default": 0
6628
+ }
6629
+ },
6630
+ {
6631
+ "name": "take",
6632
+ "in": "query",
6633
+ "schema": {
6634
+ "type": "integer",
6635
+ "format": "int32",
6636
+ "default": 100
6661
6637
  }
6662
6638
  }
6663
- },
6639
+ ],
6664
6640
  "responses": {
6665
- "201": {
6666
- "description": "Created",
6641
+ "200": {
6642
+ "description": "OK",
6667
6643
  "content": {
6668
6644
  "application/json": {
6669
6645
  "schema": {
6670
- "$ref": "#/components/schemas/RunReplayResponse"
6646
+ "$ref": "#/components/schemas/OperationTransitionsResponse"
6671
6647
  }
6672
6648
  }
6673
6649
  }
@@ -6685,30 +6661,71 @@
6685
6661
  }
6686
6662
  }
6687
6663
  },
6688
- "/v1/api/runs/{runId}/checkpoints/index": {
6664
+ "/v1/api/runs/{runId}/events": {
6689
6665
  "get": {
6690
6666
  "tags": [
6691
6667
  "Runs"
6692
6668
  ],
6693
- "summary": "Gets checkpoint index for a run (for UI discovery).",
6669
+ "summary": "Get canonical run events from SSOT ledger (polling).",
6694
6670
  "parameters": [
6695
6671
  {
6696
6672
  "name": "runId",
6697
6673
  "in": "path",
6674
+ "description": "Run ID.",
6698
6675
  "required": true,
6699
6676
  "schema": {
6700
6677
  "type": "string",
6701
6678
  "format": "uuid"
6702
6679
  }
6703
- }
6704
- ],
6705
- "responses": {
6706
- "200": {
6707
- "description": "OK",
6708
- "content": {
6709
- "application/json": {
6680
+ },
6681
+ {
6682
+ "name": "attemptId",
6683
+ "in": "query",
6684
+ "description": "Attempt ID (required).",
6685
+ "required": true,
6686
+ "schema": {
6687
+ "type": "string",
6688
+ "format": "uuid"
6689
+ }
6690
+ },
6691
+ {
6692
+ "name": "afterSeq",
6693
+ "in": "query",
6694
+ "description": "Return events with seq greater than this value.",
6695
+ "schema": {
6696
+ "type": "integer",
6697
+ "format": "int64",
6698
+ "default": 0
6699
+ }
6700
+ },
6701
+ {
6702
+ "name": "limit",
6703
+ "in": "query",
6704
+ "description": "Max events to return (1..500).",
6705
+ "schema": {
6706
+ "type": "integer",
6707
+ "format": "int32",
6708
+ "default": 100
6709
+ }
6710
+ }
6711
+ ],
6712
+ "responses": {
6713
+ "200": {
6714
+ "description": "OK",
6715
+ "content": {
6716
+ "application/json": {
6710
6717
  "schema": {
6711
- "$ref": "#/components/schemas/CheckpointIndexResponse"
6718
+ "$ref": "#/components/schemas/RunEventsPollResponse"
6719
+ }
6720
+ }
6721
+ }
6722
+ },
6723
+ "400": {
6724
+ "description": "Bad Request",
6725
+ "content": {
6726
+ "application/json": {
6727
+ "schema": {
6728
+ "$ref": "#/components/schemas/ProblemDetails"
6712
6729
  }
6713
6730
  }
6714
6731
  }
@@ -6726,38 +6743,100 @@
6726
6743
  }
6727
6744
  }
6728
6745
  },
6729
- "/v1/api/runs/{runId}/resume": {
6730
- "post": {
6746
+ "/v1/api/runs/{runId}/events/stream": {
6747
+ "get": {
6731
6748
  "tags": [
6732
6749
  "Runs"
6733
6750
  ],
6734
- "summary": "Resumes a run that is waiting for human input.",
6751
+ "summary": "Stream canonical run events via SSE using SSOT ledger ordering.",
6735
6752
  "parameters": [
6736
6753
  {
6737
6754
  "name": "runId",
6738
6755
  "in": "path",
6756
+ "description": "Run ID.",
6757
+ "required": true,
6758
+ "schema": {
6759
+ "type": "string",
6760
+ "format": "uuid"
6761
+ }
6762
+ },
6763
+ {
6764
+ "name": "attemptId",
6765
+ "in": "query",
6766
+ "description": "Attempt ID (required).",
6739
6767
  "required": true,
6740
6768
  "schema": {
6741
6769
  "type": "string",
6742
6770
  "format": "uuid"
6743
6771
  }
6772
+ },
6773
+ {
6774
+ "name": "afterSeq",
6775
+ "in": "query",
6776
+ "description": "Start after this sequence number.",
6777
+ "schema": {
6778
+ "type": "integer",
6779
+ "format": "int64",
6780
+ "default": 0
6781
+ }
6782
+ }
6783
+ ],
6784
+ "responses": {
6785
+ "400": {
6786
+ "description": "Bad Request",
6787
+ "content": {
6788
+ "text/event-stream": {
6789
+ "schema": {
6790
+ "$ref": "#/components/schemas/ProblemDetails"
6791
+ }
6792
+ },
6793
+ "application/json": {
6794
+ "schema": {
6795
+ "$ref": "#/components/schemas/ProblemDetails"
6796
+ }
6797
+ }
6798
+ }
6799
+ },
6800
+ "404": {
6801
+ "description": "Not Found",
6802
+ "content": {
6803
+ "text/event-stream": {
6804
+ "schema": {
6805
+ "$ref": "#/components/schemas/ProblemDetails"
6806
+ }
6807
+ },
6808
+ "application/json": {
6809
+ "schema": {
6810
+ "$ref": "#/components/schemas/ProblemDetails"
6811
+ }
6812
+ }
6813
+ }
6744
6814
  }
6815
+ }
6816
+ }
6817
+ },
6818
+ "/v1/api/runs/wait": {
6819
+ "post": {
6820
+ "tags": [
6821
+ "Runs"
6745
6822
  ],
6823
+ "summary": "Starts a run and waits for it to complete, returning the result synchronously.",
6746
6824
  "requestBody": {
6825
+ "description": "The wait run request.",
6747
6826
  "content": {
6748
6827
  "application/json": {
6749
6828
  "schema": {
6750
- "$ref": "#/components/schemas/ResumeRequest"
6829
+ "$ref": "#/components/schemas/WaitRunRequest"
6751
6830
  }
6752
6831
  },
6753
6832
  "text/json": {
6754
6833
  "schema": {
6755
- "$ref": "#/components/schemas/ResumeRequest"
6834
+ "$ref": "#/components/schemas/WaitRunRequest"
6756
6835
  }
6757
6836
  },
6758
6837
  "application/*+json": {
6759
6838
  "schema": {
6760
- "$ref": "#/components/schemas/ResumeRequest"
6839
+ "$ref": "#/components/schemas/WaitRunRequest"
6761
6840
  }
6762
6841
  }
6763
6842
  }
@@ -6768,7 +6847,17 @@
6768
6847
  "content": {
6769
6848
  "application/json": {
6770
6849
  "schema": {
6771
- "$ref": "#/components/schemas/ResumeResponse"
6850
+ "$ref": "#/components/schemas/WaitRunResponse"
6851
+ }
6852
+ }
6853
+ }
6854
+ },
6855
+ "408": {
6856
+ "description": "Request Timeout",
6857
+ "content": {
6858
+ "application/json": {
6859
+ "schema": {
6860
+ "$ref": "#/components/schemas/ProblemDetails"
6772
6861
  }
6773
6862
  }
6774
6863
  }
@@ -6783,8 +6872,8 @@
6783
6872
  }
6784
6873
  }
6785
6874
  },
6786
- "404": {
6787
- "description": "Not Found",
6875
+ "422": {
6876
+ "description": "Unprocessable Content",
6788
6877
  "content": {
6789
6878
  "application/json": {
6790
6879
  "schema": {
@@ -6796,16 +6885,77 @@
6796
6885
  }
6797
6886
  }
6798
6887
  },
6799
- "/v1/api/runs/{runId}/cancel": {
6888
+ "/v1/api/runs/batch": {
6800
6889
  "post": {
6801
6890
  "tags": [
6802
6891
  "Runs"
6803
6892
  ],
6804
- "summary": "Cancels a running job with a reason.",
6893
+ "summary": "Creates multiple runs in a batch.",
6894
+ "requestBody": {
6895
+ "description": "The batch run request.",
6896
+ "content": {
6897
+ "application/json": {
6898
+ "schema": {
6899
+ "$ref": "#/components/schemas/BatchRunRequest"
6900
+ }
6901
+ },
6902
+ "text/json": {
6903
+ "schema": {
6904
+ "$ref": "#/components/schemas/BatchRunRequest"
6905
+ }
6906
+ },
6907
+ "application/*+json": {
6908
+ "schema": {
6909
+ "$ref": "#/components/schemas/BatchRunRequest"
6910
+ }
6911
+ }
6912
+ }
6913
+ },
6914
+ "responses": {
6915
+ "201": {
6916
+ "description": "Created",
6917
+ "content": {
6918
+ "application/json": {
6919
+ "schema": {
6920
+ "$ref": "#/components/schemas/BatchRunResponse"
6921
+ }
6922
+ }
6923
+ }
6924
+ },
6925
+ "400": {
6926
+ "description": "Bad Request",
6927
+ "content": {
6928
+ "application/json": {
6929
+ "schema": {
6930
+ "$ref": "#/components/schemas/ProblemDetails"
6931
+ }
6932
+ }
6933
+ }
6934
+ },
6935
+ "422": {
6936
+ "description": "Unprocessable Content",
6937
+ "content": {
6938
+ "application/json": {
6939
+ "schema": {
6940
+ "$ref": "#/components/schemas/ProblemDetails"
6941
+ }
6942
+ }
6943
+ }
6944
+ }
6945
+ }
6946
+ }
6947
+ },
6948
+ "/v1/api/runs/{runId}/rerun": {
6949
+ "post": {
6950
+ "tags": [
6951
+ "Runs"
6952
+ ],
6953
+ "summary": "Re-runs an existing run with same inputs (stateless rerun).",
6805
6954
  "parameters": [
6806
6955
  {
6807
6956
  "name": "runId",
6808
6957
  "in": "path",
6958
+ "description": "The original run ID to rerun.",
6809
6959
  "required": true,
6810
6960
  "schema": {
6811
6961
  "type": "string",
@@ -6814,31 +6964,32 @@
6814
6964
  }
6815
6965
  ],
6816
6966
  "requestBody": {
6967
+ "description": "Optional overrides for the rerun.",
6817
6968
  "content": {
6818
6969
  "application/json": {
6819
6970
  "schema": {
6820
- "$ref": "#/components/schemas/CancelRequest"
6971
+ "$ref": "#/components/schemas/RerunRequest"
6821
6972
  }
6822
6973
  },
6823
6974
  "text/json": {
6824
6975
  "schema": {
6825
- "$ref": "#/components/schemas/CancelRequest"
6976
+ "$ref": "#/components/schemas/RerunRequest"
6826
6977
  }
6827
6978
  },
6828
6979
  "application/*+json": {
6829
6980
  "schema": {
6830
- "$ref": "#/components/schemas/CancelRequest"
6981
+ "$ref": "#/components/schemas/RerunRequest"
6831
6982
  }
6832
6983
  }
6833
6984
  }
6834
6985
  },
6835
6986
  "responses": {
6836
- "200": {
6837
- "description": "OK",
6987
+ "201": {
6988
+ "description": "Created",
6838
6989
  "content": {
6839
6990
  "application/json": {
6840
6991
  "schema": {
6841
- "$ref": "#/components/schemas/CancelRunResponse"
6992
+ "$ref": "#/components/schemas/RerunResponse"
6842
6993
  }
6843
6994
  }
6844
6995
  }
@@ -6856,27 +7007,29 @@
6856
7007
  }
6857
7008
  }
6858
7009
  },
6859
- "/v1/api/store/{ns}/items/{key}": {
6860
- "put": {
7010
+ "/v1/api/runs/{runId}/checkpoints/{checkpointId}/replay": {
7011
+ "post": {
6861
7012
  "tags": [
6862
- "Store"
7013
+ "Runs"
6863
7014
  ],
6864
- "summary": "Put a value in the store.",
7015
+ "summary": "Replays a run from a specific checkpoint.",
6865
7016
  "parameters": [
6866
7017
  {
6867
- "name": "ns",
7018
+ "name": "runId",
6868
7019
  "in": "path",
6869
7020
  "required": true,
6870
7021
  "schema": {
6871
- "type": "string"
7022
+ "type": "string",
7023
+ "format": "uuid"
6872
7024
  }
6873
7025
  },
6874
7026
  {
6875
- "name": "key",
7027
+ "name": "checkpointId",
6876
7028
  "in": "path",
6877
7029
  "required": true,
6878
7030
  "schema": {
6879
- "type": "string"
7031
+ "type": "string",
7032
+ "format": "uuid"
6880
7033
  }
6881
7034
  }
6882
7035
  ],
@@ -6884,37 +7037,275 @@
6884
7037
  "content": {
6885
7038
  "application/json": {
6886
7039
  "schema": {
6887
- "$ref": "#/components/schemas/StoreValueRequest"
7040
+ "$ref": "#/components/schemas/RunReplayRequest"
6888
7041
  }
6889
7042
  },
6890
7043
  "text/json": {
6891
7044
  "schema": {
6892
- "$ref": "#/components/schemas/StoreValueRequest"
7045
+ "$ref": "#/components/schemas/RunReplayRequest"
6893
7046
  }
6894
7047
  },
6895
7048
  "application/*+json": {
6896
7049
  "schema": {
6897
- "$ref": "#/components/schemas/StoreValueRequest"
7050
+ "$ref": "#/components/schemas/RunReplayRequest"
6898
7051
  }
6899
7052
  }
6900
7053
  }
6901
7054
  },
6902
7055
  "responses": {
6903
- "200": {
6904
- "description": "OK"
6905
- }
6906
- }
6907
- },
6908
- "get": {
6909
- "tags": [
6910
- "Store"
6911
- ],
6912
- "summary": "Get a value from the store.",
6913
- "parameters": [
6914
- {
6915
- "name": "ns",
6916
- "in": "path",
6917
- "required": true,
7056
+ "201": {
7057
+ "description": "Created",
7058
+ "content": {
7059
+ "application/json": {
7060
+ "schema": {
7061
+ "$ref": "#/components/schemas/RunReplayResponse"
7062
+ }
7063
+ }
7064
+ }
7065
+ },
7066
+ "404": {
7067
+ "description": "Not Found",
7068
+ "content": {
7069
+ "application/json": {
7070
+ "schema": {
7071
+ "$ref": "#/components/schemas/ProblemDetails"
7072
+ }
7073
+ }
7074
+ }
7075
+ }
7076
+ }
7077
+ }
7078
+ },
7079
+ "/v1/api/runs/{runId}/checkpoints/index": {
7080
+ "get": {
7081
+ "tags": [
7082
+ "Runs"
7083
+ ],
7084
+ "summary": "Gets checkpoint index for a run (for UI discovery).",
7085
+ "parameters": [
7086
+ {
7087
+ "name": "runId",
7088
+ "in": "path",
7089
+ "required": true,
7090
+ "schema": {
7091
+ "type": "string",
7092
+ "format": "uuid"
7093
+ }
7094
+ }
7095
+ ],
7096
+ "responses": {
7097
+ "200": {
7098
+ "description": "OK",
7099
+ "content": {
7100
+ "application/json": {
7101
+ "schema": {
7102
+ "$ref": "#/components/schemas/CheckpointIndexResponse"
7103
+ }
7104
+ }
7105
+ }
7106
+ },
7107
+ "404": {
7108
+ "description": "Not Found",
7109
+ "content": {
7110
+ "application/json": {
7111
+ "schema": {
7112
+ "$ref": "#/components/schemas/ProblemDetails"
7113
+ }
7114
+ }
7115
+ }
7116
+ }
7117
+ }
7118
+ }
7119
+ },
7120
+ "/v1/api/runs/{runId}/resume": {
7121
+ "post": {
7122
+ "tags": [
7123
+ "Runs"
7124
+ ],
7125
+ "summary": "Resumes a run that is waiting for human input.",
7126
+ "parameters": [
7127
+ {
7128
+ "name": "runId",
7129
+ "in": "path",
7130
+ "required": true,
7131
+ "schema": {
7132
+ "type": "string",
7133
+ "format": "uuid"
7134
+ }
7135
+ }
7136
+ ],
7137
+ "requestBody": {
7138
+ "content": {
7139
+ "application/json": {
7140
+ "schema": {
7141
+ "$ref": "#/components/schemas/ResumeRequest"
7142
+ }
7143
+ },
7144
+ "text/json": {
7145
+ "schema": {
7146
+ "$ref": "#/components/schemas/ResumeRequest"
7147
+ }
7148
+ },
7149
+ "application/*+json": {
7150
+ "schema": {
7151
+ "$ref": "#/components/schemas/ResumeRequest"
7152
+ }
7153
+ }
7154
+ }
7155
+ },
7156
+ "responses": {
7157
+ "200": {
7158
+ "description": "OK",
7159
+ "content": {
7160
+ "application/json": {
7161
+ "schema": {
7162
+ "$ref": "#/components/schemas/ResumeResponse"
7163
+ }
7164
+ }
7165
+ }
7166
+ },
7167
+ "400": {
7168
+ "description": "Bad Request",
7169
+ "content": {
7170
+ "application/json": {
7171
+ "schema": {
7172
+ "$ref": "#/components/schemas/ProblemDetails"
7173
+ }
7174
+ }
7175
+ }
7176
+ },
7177
+ "404": {
7178
+ "description": "Not Found",
7179
+ "content": {
7180
+ "application/json": {
7181
+ "schema": {
7182
+ "$ref": "#/components/schemas/ProblemDetails"
7183
+ }
7184
+ }
7185
+ }
7186
+ }
7187
+ }
7188
+ }
7189
+ },
7190
+ "/v1/api/runs/{runId}/cancel": {
7191
+ "post": {
7192
+ "tags": [
7193
+ "Runs"
7194
+ ],
7195
+ "summary": "Cancels a running job with a reason.",
7196
+ "parameters": [
7197
+ {
7198
+ "name": "runId",
7199
+ "in": "path",
7200
+ "required": true,
7201
+ "schema": {
7202
+ "type": "string",
7203
+ "format": "uuid"
7204
+ }
7205
+ }
7206
+ ],
7207
+ "requestBody": {
7208
+ "content": {
7209
+ "application/json": {
7210
+ "schema": {
7211
+ "$ref": "#/components/schemas/CancelRequest"
7212
+ }
7213
+ },
7214
+ "text/json": {
7215
+ "schema": {
7216
+ "$ref": "#/components/schemas/CancelRequest"
7217
+ }
7218
+ },
7219
+ "application/*+json": {
7220
+ "schema": {
7221
+ "$ref": "#/components/schemas/CancelRequest"
7222
+ }
7223
+ }
7224
+ }
7225
+ },
7226
+ "responses": {
7227
+ "200": {
7228
+ "description": "OK",
7229
+ "content": {
7230
+ "application/json": {
7231
+ "schema": {
7232
+ "$ref": "#/components/schemas/CancelRunResponse"
7233
+ }
7234
+ }
7235
+ }
7236
+ },
7237
+ "404": {
7238
+ "description": "Not Found",
7239
+ "content": {
7240
+ "application/json": {
7241
+ "schema": {
7242
+ "$ref": "#/components/schemas/ProblemDetails"
7243
+ }
7244
+ }
7245
+ }
7246
+ }
7247
+ }
7248
+ }
7249
+ },
7250
+ "/v1/api/store/{ns}/items/{key}": {
7251
+ "put": {
7252
+ "tags": [
7253
+ "Store"
7254
+ ],
7255
+ "summary": "Put a value in the store.",
7256
+ "parameters": [
7257
+ {
7258
+ "name": "ns",
7259
+ "in": "path",
7260
+ "required": true,
7261
+ "schema": {
7262
+ "type": "string"
7263
+ }
7264
+ },
7265
+ {
7266
+ "name": "key",
7267
+ "in": "path",
7268
+ "required": true,
7269
+ "schema": {
7270
+ "type": "string"
7271
+ }
7272
+ }
7273
+ ],
7274
+ "requestBody": {
7275
+ "content": {
7276
+ "application/json": {
7277
+ "schema": {
7278
+ "$ref": "#/components/schemas/StoreValueRequest"
7279
+ }
7280
+ },
7281
+ "text/json": {
7282
+ "schema": {
7283
+ "$ref": "#/components/schemas/StoreValueRequest"
7284
+ }
7285
+ },
7286
+ "application/*+json": {
7287
+ "schema": {
7288
+ "$ref": "#/components/schemas/StoreValueRequest"
7289
+ }
7290
+ }
7291
+ }
7292
+ },
7293
+ "responses": {
7294
+ "200": {
7295
+ "description": "OK"
7296
+ }
7297
+ }
7298
+ },
7299
+ "get": {
7300
+ "tags": [
7301
+ "Store"
7302
+ ],
7303
+ "summary": "Get a value from the store.",
7304
+ "parameters": [
7305
+ {
7306
+ "name": "ns",
7307
+ "in": "path",
7308
+ "required": true,
6918
7309
  "schema": {
6919
7310
  "type": "string"
6920
7311
  }
@@ -11963,11 +12354,144 @@
11963
12354
  },
11964
12355
  "additionalProperties": false
11965
12356
  },
11966
- "MetaAgentChatRequest": {
12357
+ "MetaAgentBlastRadius": {
11967
12358
  "type": "object",
11968
12359
  "properties": {
11969
- "message": {
11970
- "type": "string",
12360
+ "affected_node_ids": {
12361
+ "type": "array",
12362
+ "items": {
12363
+ "type": "string"
12364
+ },
12365
+ "nullable": true
12366
+ },
12367
+ "affected_edge_ids": {
12368
+ "type": "array",
12369
+ "items": {
12370
+ "type": "string"
12371
+ },
12372
+ "nullable": true
12373
+ },
12374
+ "added_capabilities": {
12375
+ "type": "array",
12376
+ "items": {
12377
+ "type": "string"
12378
+ },
12379
+ "nullable": true
12380
+ },
12381
+ "removed_capabilities": {
12382
+ "type": "array",
12383
+ "items": {
12384
+ "type": "string"
12385
+ },
12386
+ "nullable": true
12387
+ },
12388
+ "changed_capabilities": {
12389
+ "type": "array",
12390
+ "items": {
12391
+ "type": "string"
12392
+ },
12393
+ "nullable": true
12394
+ },
12395
+ "impacted_credentials": {
12396
+ "type": "array",
12397
+ "items": {
12398
+ "$ref": "#/components/schemas/MetaAgentBlastRadiusCredentialImpact"
12399
+ },
12400
+ "nullable": true
12401
+ },
12402
+ "warnings": {
12403
+ "type": "array",
12404
+ "items": {
12405
+ "$ref": "#/components/schemas/MetaAgentPreviewValidationIssue"
12406
+ },
12407
+ "nullable": true
12408
+ }
12409
+ },
12410
+ "additionalProperties": false
12411
+ },
12412
+ "MetaAgentBlastRadiusCredentialImpact": {
12413
+ "type": "object",
12414
+ "properties": {
12415
+ "required_credential": {
12416
+ "type": "string",
12417
+ "nullable": true
12418
+ },
12419
+ "status": {
12420
+ "type": "string",
12421
+ "nullable": true
12422
+ },
12423
+ "binding_key": {
12424
+ "type": "string",
12425
+ "nullable": true
12426
+ },
12427
+ "credential_instance_ref": {
12428
+ "type": "string",
12429
+ "nullable": true
12430
+ },
12431
+ "credential_name": {
12432
+ "type": "string",
12433
+ "nullable": true
12434
+ }
12435
+ },
12436
+ "additionalProperties": false
12437
+ },
12438
+ "MetaAgentChatRequest": {
12439
+ "type": "object",
12440
+ "properties": {
12441
+ "message": {
12442
+ "type": "string",
12443
+ "nullable": true
12444
+ }
12445
+ },
12446
+ "additionalProperties": false
12447
+ },
12448
+ "MetaAgentDiffPreview": {
12449
+ "type": "object",
12450
+ "properties": {
12451
+ "added_node_ids": {
12452
+ "type": "array",
12453
+ "items": {
12454
+ "type": "string"
12455
+ },
12456
+ "nullable": true
12457
+ },
12458
+ "removed_node_ids": {
12459
+ "type": "array",
12460
+ "items": {
12461
+ "type": "string"
12462
+ },
12463
+ "nullable": true
12464
+ },
12465
+ "updated_node_ids": {
12466
+ "type": "array",
12467
+ "items": {
12468
+ "type": "string"
12469
+ },
12470
+ "nullable": true
12471
+ },
12472
+ "added_edge_ids": {
12473
+ "type": "array",
12474
+ "items": {
12475
+ "type": "string"
12476
+ },
12477
+ "nullable": true
12478
+ },
12479
+ "removed_edge_ids": {
12480
+ "type": "array",
12481
+ "items": {
12482
+ "type": "string"
12483
+ },
12484
+ "nullable": true
12485
+ },
12486
+ "entrypoint_changed": {
12487
+ "type": "boolean"
12488
+ },
12489
+ "before_entrypoint": {
12490
+ "type": "string",
12491
+ "nullable": true
12492
+ },
12493
+ "after_entrypoint": {
12494
+ "type": "string",
11971
12495
  "nullable": true
11972
12496
  }
11973
12497
  },
@@ -12046,32 +12570,14 @@
12046
12570
  "preview_draft_ir": {
12047
12571
  "nullable": true
12048
12572
  },
12049
- "preview_valid": {
12050
- "type": "boolean"
12051
- },
12052
- "preview_errors": {
12053
- "type": "array",
12054
- "items": {
12055
- "$ref": "#/components/schemas/MetaAgentPreviewValidationIssue"
12056
- },
12057
- "nullable": true
12058
- },
12059
- "preview_warnings": {
12060
- "type": "array",
12061
- "items": {
12062
- "$ref": "#/components/schemas/MetaAgentPreviewValidationIssue"
12063
- },
12064
- "nullable": true
12573
+ "diff_preview": {
12574
+ "$ref": "#/components/schemas/MetaAgentDiffPreview"
12065
12575
  },
12066
- "valid": {
12067
- "type": "boolean"
12576
+ "blast_radius": {
12577
+ "$ref": "#/components/schemas/MetaAgentBlastRadius"
12068
12578
  },
12069
- "errors": {
12070
- "type": "array",
12071
- "items": {
12072
- "$ref": "#/components/schemas/MetaAgentPatchValidationIssue"
12073
- },
12074
- "nullable": true
12579
+ "validation_result": {
12580
+ "$ref": "#/components/schemas/MetaAgentValidationResult"
12075
12581
  },
12076
12582
  "message": {
12077
12583
  "type": "string",
@@ -12155,6 +12661,32 @@
12155
12661
  },
12156
12662
  "additionalProperties": false
12157
12663
  },
12664
+ "MetaAgentValidationResult": {
12665
+ "type": "object",
12666
+ "properties": {
12667
+ "valid": {
12668
+ "type": "boolean"
12669
+ },
12670
+ "preview_valid": {
12671
+ "type": "boolean"
12672
+ },
12673
+ "errors": {
12674
+ "type": "array",
12675
+ "items": {
12676
+ "$ref": "#/components/schemas/MetaAgentPatchValidationIssue"
12677
+ },
12678
+ "nullable": true
12679
+ },
12680
+ "warnings": {
12681
+ "type": "array",
12682
+ "items": {
12683
+ "$ref": "#/components/schemas/MetaAgentPreviewValidationIssue"
12684
+ },
12685
+ "nullable": true
12686
+ }
12687
+ },
12688
+ "additionalProperties": false
12689
+ },
12158
12690
  "NodeCatalogResponse": {
12159
12691
  "required": [
12160
12692
  "nodes",
@@ -12339,447 +12871,1338 @@
12339
12871
  "type": "integer",
12340
12872
  "format": "int64"
12341
12873
  },
12342
- "actor_type": {
12874
+ "actor_type": {
12875
+ "type": "string",
12876
+ "nullable": true
12877
+ },
12878
+ "transition_reason": {
12879
+ "type": "string",
12880
+ "nullable": true
12881
+ },
12882
+ "transitioned_at": {
12883
+ "type": "string",
12884
+ "format": "date-time"
12885
+ }
12886
+ },
12887
+ "additionalProperties": false
12888
+ },
12889
+ "OperationTransitionsResponse": {
12890
+ "type": "object",
12891
+ "properties": {
12892
+ "items": {
12893
+ "type": "array",
12894
+ "items": {
12895
+ "$ref": "#/components/schemas/OperationTransitionItem"
12896
+ },
12897
+ "nullable": true
12898
+ },
12899
+ "total": {
12900
+ "type": "integer",
12901
+ "format": "int32"
12902
+ },
12903
+ "skip": {
12904
+ "type": "integer",
12905
+ "format": "int32"
12906
+ },
12907
+ "take": {
12908
+ "type": "integer",
12909
+ "format": "int32"
12910
+ }
12911
+ },
12912
+ "additionalProperties": false
12913
+ },
12914
+ "PathInfoDto": {
12915
+ "type": "object",
12916
+ "properties": {
12917
+ "path": {
12918
+ "type": "string",
12919
+ "nullable": true
12920
+ },
12921
+ "kind": {
12922
+ "type": "string",
12923
+ "nullable": true
12924
+ }
12925
+ },
12926
+ "additionalProperties": false,
12927
+ "description": "A JSONPath with its inferred type."
12928
+ },
12929
+ "PlaygroundRequest": {
12930
+ "type": "object",
12931
+ "properties": {
12932
+ "variables": {
12933
+ "type": "object",
12934
+ "additionalProperties": { },
12935
+ "nullable": true
12936
+ },
12937
+ "version_number": {
12938
+ "type": "integer",
12939
+ "format": "int32",
12940
+ "nullable": true
12941
+ },
12942
+ "execute": {
12943
+ "type": "boolean"
12944
+ },
12945
+ "provider": {
12946
+ "type": "string",
12947
+ "nullable": true
12948
+ },
12949
+ "model": {
12950
+ "type": "string",
12951
+ "nullable": true
12952
+ },
12953
+ "credential_id": {
12954
+ "type": "string",
12955
+ "format": "uuid",
12956
+ "nullable": true
12957
+ },
12958
+ "credential_name": {
12959
+ "type": "string",
12960
+ "nullable": true
12961
+ },
12962
+ "temperature": {
12963
+ "type": "number",
12964
+ "format": "double",
12965
+ "nullable": true
12966
+ },
12967
+ "max_tokens": {
12968
+ "type": "integer",
12969
+ "format": "int32",
12970
+ "nullable": true
12971
+ }
12972
+ },
12973
+ "additionalProperties": false
12974
+ },
12975
+ "PlaygroundRunRequest": {
12976
+ "type": "object",
12977
+ "properties": {
12978
+ "agent_id": {
12979
+ "type": "string",
12980
+ "format": "uuid"
12981
+ },
12982
+ "input": {
12983
+ "nullable": true
12984
+ },
12985
+ "timeout_seconds": {
12986
+ "type": "integer",
12987
+ "format": "int32",
12988
+ "nullable": true
12989
+ }
12990
+ },
12991
+ "additionalProperties": false,
12992
+ "description": "Playground request."
12993
+ },
12994
+ "PresignedDownloadResponse": {
12995
+ "type": "object",
12996
+ "properties": {
12997
+ "file_id": {
12998
+ "type": "string",
12999
+ "format": "uuid"
13000
+ },
13001
+ "download_url": {
13002
+ "type": "string",
13003
+ "nullable": true
13004
+ },
13005
+ "filename": {
13006
+ "type": "string",
13007
+ "nullable": true
13008
+ },
13009
+ "content_type": {
13010
+ "type": "string",
13011
+ "nullable": true
13012
+ },
13013
+ "size_bytes": {
13014
+ "type": "integer",
13015
+ "format": "int64"
13016
+ },
13017
+ "expires_in": {
13018
+ "type": "integer",
13019
+ "format": "int32"
13020
+ }
13021
+ },
13022
+ "additionalProperties": false
13023
+ },
13024
+ "PresignedUploadResponse": {
13025
+ "type": "object",
13026
+ "properties": {
13027
+ "file_id": {
13028
+ "type": "string",
13029
+ "format": "uuid"
13030
+ },
13031
+ "upload_url": {
13032
+ "type": "string",
13033
+ "nullable": true
13034
+ },
13035
+ "expires_in": {
13036
+ "type": "integer",
13037
+ "format": "int32"
13038
+ },
13039
+ "object_key": {
13040
+ "type": "string",
13041
+ "nullable": true
13042
+ }
13043
+ },
13044
+ "additionalProperties": false
13045
+ },
13046
+ "PreviewMappingRequest": {
13047
+ "type": "object",
13048
+ "properties": {
13049
+ "sample_payload": { },
13050
+ "input_mapping_override": { }
13051
+ },
13052
+ "additionalProperties": false,
13053
+ "description": "Request for POST /triggers/{id}/preview-input-mapping"
13054
+ },
13055
+ "PreviewMappingResponse": {
13056
+ "type": "object",
13057
+ "properties": {
13058
+ "result_input": { },
13059
+ "resolution": {
13060
+ "type": "array",
13061
+ "items": {
13062
+ "$ref": "#/components/schemas/ResolutionRowDto"
13063
+ },
13064
+ "nullable": true
13065
+ },
13066
+ "warnings": {
13067
+ "type": "array",
13068
+ "items": {
13069
+ "type": "string"
13070
+ },
13071
+ "nullable": true
13072
+ }
13073
+ },
13074
+ "additionalProperties": false,
13075
+ "description": "Response for POST /triggers/{id}/preview-input-mapping"
13076
+ },
13077
+ "ProblemDetails": {
13078
+ "type": "object",
13079
+ "properties": {
13080
+ "type": {
13081
+ "type": "string",
13082
+ "nullable": true
13083
+ },
13084
+ "title": {
13085
+ "type": "string",
13086
+ "nullable": true
13087
+ },
13088
+ "status": {
13089
+ "type": "integer",
13090
+ "format": "int32",
13091
+ "nullable": true
13092
+ },
13093
+ "detail": {
13094
+ "type": "string",
13095
+ "nullable": true
13096
+ },
13097
+ "instance": {
13098
+ "type": "string",
13099
+ "nullable": true
13100
+ }
13101
+ },
13102
+ "additionalProperties": { }
13103
+ },
13104
+ "PromoteImprovementCaseRequest": {
13105
+ "type": "object",
13106
+ "properties": {
13107
+ "decision_reason": {
13108
+ "type": "string",
13109
+ "nullable": true
13110
+ }
13111
+ },
13112
+ "additionalProperties": false
13113
+ },
13114
+ "PublishAgentRequest": {
13115
+ "type": "object",
13116
+ "properties": {
13117
+ "version_label": {
13118
+ "type": "string",
13119
+ "nullable": true
13120
+ },
13121
+ "set_as_live": {
13122
+ "type": "boolean"
13123
+ },
13124
+ "required_tools": {
13125
+ "type": "array",
13126
+ "items": {
13127
+ "type": "string"
13128
+ },
13129
+ "nullable": true
13130
+ },
13131
+ "tool_credential_bindings": {
13132
+ "type": "object",
13133
+ "additionalProperties": {
13134
+ "type": "string",
13135
+ "format": "uuid"
13136
+ },
13137
+ "nullable": true
13138
+ }
13139
+ },
13140
+ "additionalProperties": false
13141
+ },
13142
+ "PublishPreviewBindingItem": {
13143
+ "type": "object",
13144
+ "properties": {
13145
+ "binding_key": {
13146
+ "type": "string",
13147
+ "nullable": true
13148
+ },
13149
+ "status": {
13150
+ "type": "string",
13151
+ "nullable": true
13152
+ },
13153
+ "required_by_capabilities": {
13154
+ "type": "array",
13155
+ "items": {
13156
+ "type": "string"
13157
+ },
13158
+ "nullable": true
13159
+ },
13160
+ "credential_instance_refs": {
13161
+ "type": "array",
13162
+ "items": {
13163
+ "type": "string"
13164
+ },
13165
+ "nullable": true
13166
+ },
13167
+ "credential_type_refs": {
13168
+ "type": "array",
13169
+ "items": {
13170
+ "type": "string"
13171
+ },
13172
+ "nullable": true
13173
+ }
13174
+ },
13175
+ "additionalProperties": false
13176
+ },
13177
+ "PublishPreviewCapabilityItem": {
13178
+ "type": "object",
13179
+ "properties": {
13180
+ "node_id": {
13181
+ "type": "string",
13182
+ "nullable": true
13183
+ },
13184
+ "capability_ref": {
13185
+ "type": "string",
13186
+ "nullable": true
13187
+ },
13188
+ "capability_version": {
13189
+ "type": "string",
13190
+ "nullable": true
13191
+ },
13192
+ "execution_binding": {
13193
+ "type": "string",
13194
+ "nullable": true
13195
+ },
13196
+ "required_credentials": {
13197
+ "type": "array",
13198
+ "items": {
13199
+ "type": "string"
13200
+ },
13201
+ "nullable": true
13202
+ }
13203
+ },
13204
+ "additionalProperties": false
13205
+ },
13206
+ "PublishPreviewIssue": {
13207
+ "type": "object",
13208
+ "properties": {
13209
+ "code": {
13210
+ "type": "string",
13211
+ "nullable": true
13212
+ },
13213
+ "message": {
13214
+ "type": "string",
13215
+ "nullable": true
13216
+ },
13217
+ "severity": {
13218
+ "type": "string",
13219
+ "nullable": true
13220
+ },
13221
+ "path": {
13222
+ "type": "string",
13223
+ "nullable": true
13224
+ },
13225
+ "node_id": {
13226
+ "type": "string",
13227
+ "nullable": true
13228
+ },
13229
+ "hint": {
13230
+ "type": "string",
13231
+ "nullable": true
13232
+ }
13233
+ },
13234
+ "additionalProperties": false
13235
+ },
13236
+ "PublishPreviewResponse": {
13237
+ "type": "object",
13238
+ "properties": {
13239
+ "agent_id": {
13240
+ "type": "string",
13241
+ "format": "uuid"
13242
+ },
13243
+ "draft_ir_revision": {
13244
+ "type": "string",
13245
+ "nullable": true
13246
+ },
13247
+ "ready": {
13248
+ "type": "boolean"
13249
+ },
13250
+ "validation_result": {
13251
+ "$ref": "#/components/schemas/PublishPreviewValidationResult"
13252
+ },
13253
+ "capabilities": {
13254
+ "type": "array",
13255
+ "items": {
13256
+ "$ref": "#/components/schemas/PublishPreviewCapabilityItem"
13257
+ },
13258
+ "nullable": true
13259
+ },
13260
+ "bindings": {
13261
+ "type": "array",
13262
+ "items": {
13263
+ "$ref": "#/components/schemas/PublishPreviewBindingItem"
13264
+ },
13265
+ "nullable": true
13266
+ },
13267
+ "blockers": {
13268
+ "type": "array",
13269
+ "items": {
13270
+ "$ref": "#/components/schemas/PublishPreviewIssue"
13271
+ },
13272
+ "nullable": true
13273
+ },
13274
+ "warnings": {
13275
+ "type": "array",
13276
+ "items": {
13277
+ "$ref": "#/components/schemas/PublishPreviewIssue"
13278
+ },
13279
+ "nullable": true
13280
+ }
13281
+ },
13282
+ "additionalProperties": false
13283
+ },
13284
+ "PublishPreviewValidationResult": {
13285
+ "type": "object",
13286
+ "properties": {
13287
+ "valid": {
13288
+ "type": "boolean"
13289
+ },
13290
+ "errors": {
13291
+ "type": "array",
13292
+ "items": {
13293
+ "$ref": "#/components/schemas/PublishPreviewIssue"
13294
+ },
13295
+ "nullable": true
13296
+ },
13297
+ "warnings": {
13298
+ "type": "array",
13299
+ "items": {
13300
+ "$ref": "#/components/schemas/PublishPreviewIssue"
13301
+ },
13302
+ "nullable": true
13303
+ }
13304
+ },
13305
+ "additionalProperties": false
13306
+ },
13307
+ "RejectImprovementCaseRequest": {
13308
+ "type": "object",
13309
+ "properties": {
13310
+ "reason": {
13311
+ "type": "string",
13312
+ "nullable": true
13313
+ }
13314
+ },
13315
+ "additionalProperties": false
13316
+ },
13317
+ "ReplayRequest": {
13318
+ "type": "object",
13319
+ "properties": {
13320
+ "modified_input": {
13321
+ "type": "string",
13322
+ "nullable": true
13323
+ },
13324
+ "create_new_thread": {
13325
+ "type": "boolean"
13326
+ }
13327
+ },
13328
+ "additionalProperties": false
13329
+ },
13330
+ "ReplayResponse": {
13331
+ "type": "object",
13332
+ "properties": {
13333
+ "original_run_id": {
13334
+ "type": "string",
13335
+ "format": "uuid"
13336
+ },
13337
+ "original_checkpoint_id": {
13338
+ "type": "string",
13339
+ "format": "uuid"
13340
+ },
13341
+ "new_run_id": {
13342
+ "type": "string",
13343
+ "format": "uuid"
13344
+ },
13345
+ "new_thread_id": {
13346
+ "type": "string",
13347
+ "format": "uuid"
13348
+ },
13349
+ "status": {
13350
+ "type": "string",
13351
+ "nullable": true
13352
+ },
13353
+ "message": {
13354
+ "type": "string",
13355
+ "nullable": true
13356
+ }
13357
+ },
13358
+ "additionalProperties": false
13359
+ },
13360
+ "RerunRequest": {
13361
+ "type": "object",
13362
+ "properties": {
13363
+ "input": {
13364
+ "nullable": true
13365
+ }
13366
+ },
13367
+ "additionalProperties": false
13368
+ },
13369
+ "RerunResponse": {
13370
+ "type": "object",
13371
+ "properties": {
13372
+ "run_id": {
13373
+ "type": "string",
13374
+ "format": "uuid"
13375
+ },
13376
+ "rerun_of_run_id": {
13377
+ "type": "string",
13378
+ "format": "uuid"
13379
+ },
13380
+ "status": {
13381
+ "type": "string",
13382
+ "nullable": true
13383
+ }
13384
+ },
13385
+ "additionalProperties": false
13386
+ },
13387
+ "ResolutionRowDto": {
13388
+ "type": "object",
13389
+ "properties": {
13390
+ "target": {
13391
+ "type": "string",
13392
+ "nullable": true
13393
+ },
13394
+ "source": {
13395
+ "type": "string",
13396
+ "nullable": true
13397
+ },
13398
+ "ok": {
13399
+ "type": "boolean"
13400
+ },
13401
+ "note": {
13402
+ "type": "string",
13403
+ "nullable": true
13404
+ }
13405
+ },
13406
+ "additionalProperties": false,
13407
+ "description": "Resolution row showing how a mapping was resolved."
13408
+ },
13409
+ "ResumeRequest": {
13410
+ "type": "object",
13411
+ "properties": {
13412
+ "input": {
13413
+ "nullable": true
13414
+ },
13415
+ "message": {
13416
+ "type": "string",
13417
+ "nullable": true
13418
+ },
13419
+ "metadata": {
13420
+ "type": "object",
13421
+ "additionalProperties": { },
13422
+ "nullable": true
13423
+ }
13424
+ },
13425
+ "additionalProperties": false
13426
+ },
13427
+ "ResumeResponse": {
13428
+ "type": "object",
13429
+ "properties": {
13430
+ "run_id": {
13431
+ "type": "string",
13432
+ "format": "uuid"
13433
+ },
13434
+ "status": {
13435
+ "type": "string",
13436
+ "nullable": true
13437
+ },
13438
+ "resumed_at": {
13439
+ "type": "string",
13440
+ "format": "date-time"
13441
+ }
13442
+ },
13443
+ "additionalProperties": false
13444
+ },
13445
+ "RoleContextDto": {
13446
+ "type": "object",
13447
+ "properties": {
13448
+ "id": {
13449
+ "type": "string",
13450
+ "format": "uuid"
13451
+ },
13452
+ "name": {
13453
+ "type": "string",
13454
+ "nullable": true
13455
+ },
13456
+ "is_system": {
13457
+ "type": "boolean"
13458
+ },
13459
+ "permissions": {
13460
+ "type": "array",
13461
+ "items": {
13462
+ "type": "string"
13463
+ },
13464
+ "nullable": true
13465
+ }
13466
+ },
13467
+ "additionalProperties": false
13468
+ },
13469
+ "RollbackImprovementCaseRequest": {
13470
+ "type": "object",
13471
+ "properties": {
13472
+ "reason": {
13473
+ "type": "string",
13474
+ "nullable": true
13475
+ }
13476
+ },
13477
+ "additionalProperties": false
13478
+ },
13479
+ "RunDetailResponse": {
13480
+ "type": "object",
13481
+ "properties": {
13482
+ "run_id": {
13483
+ "type": "string",
13484
+ "format": "uuid"
13485
+ },
13486
+ "tenant_id": {
13487
+ "type": "string",
13488
+ "format": "uuid"
13489
+ },
13490
+ "workspace_id": {
13491
+ "type": "string",
13492
+ "format": "uuid"
13493
+ },
13494
+ "agent_id": {
13495
+ "type": "string",
13496
+ "format": "uuid"
13497
+ },
13498
+ "bundle_id": {
13499
+ "type": "string",
13500
+ "format": "uuid"
13501
+ },
13502
+ "thread_id": {
13503
+ "type": "string",
13504
+ "format": "uuid"
13505
+ },
13506
+ "current_attempt_id": {
13507
+ "type": "string",
13508
+ "format": "uuid",
13509
+ "nullable": true
13510
+ },
13511
+ "current_attempt_no": {
13512
+ "type": "integer",
13513
+ "format": "int32",
13514
+ "nullable": true
13515
+ },
13516
+ "latest_seq": {
13517
+ "type": "integer",
13518
+ "format": "int64",
13519
+ "nullable": true
13520
+ },
13521
+ "status": {
13522
+ "$ref": "#/components/schemas/RunStatus"
13523
+ },
13524
+ "input": {
13525
+ "nullable": true
13526
+ },
13527
+ "output": {
13528
+ "nullable": true
13529
+ },
13530
+ "error": {
13531
+ "nullable": true
13532
+ },
13533
+ "metrics": {
13534
+ "nullable": true
13535
+ },
13536
+ "started_at": {
13537
+ "type": "string",
13538
+ "format": "date-time",
13539
+ "nullable": true
13540
+ },
13541
+ "completed_at": {
13542
+ "type": "string",
13543
+ "format": "date-time",
13544
+ "nullable": true
13545
+ },
13546
+ "created_at": {
13547
+ "type": "string",
13548
+ "format": "date-time"
13549
+ },
13550
+ "duration_ms": {
13551
+ "type": "number",
13552
+ "format": "double",
13553
+ "nullable": true
13554
+ },
13555
+ "prompt_hash": {
13556
+ "type": "string",
13557
+ "nullable": true
13558
+ },
13559
+ "toolset_hash": {
13560
+ "type": "string",
13561
+ "nullable": true
13562
+ }
13563
+ },
13564
+ "additionalProperties": false
13565
+ },
13566
+ "RunEventDto": {
13567
+ "type": "object",
13568
+ "properties": {
13569
+ "id": {
13570
+ "type": "string",
13571
+ "format": "uuid"
13572
+ },
13573
+ "seq": {
13574
+ "type": "integer",
13575
+ "format": "int64"
13576
+ },
13577
+ "type": {
13578
+ "type": "string",
13579
+ "nullable": true
13580
+ },
13581
+ "timestamp": {
13582
+ "type": "string",
13583
+ "format": "date-time"
13584
+ },
13585
+ "attempt_id": {
13586
+ "type": "string",
13587
+ "format": "uuid"
13588
+ },
13589
+ "payload": {
13590
+ "nullable": true
13591
+ },
13592
+ "operation_id": {
13593
+ "type": "string",
13594
+ "format": "uuid"
13595
+ },
13596
+ "parent_operation_id": {
13597
+ "type": "string",
13598
+ "format": "uuid",
13599
+ "nullable": true
13600
+ },
13601
+ "root_operation_id": {
13602
+ "type": "string",
13603
+ "format": "uuid"
13604
+ },
13605
+ "truncated": {
13606
+ "type": "boolean"
13607
+ }
13608
+ },
13609
+ "additionalProperties": false
13610
+ },
13611
+ "RunEventsPollResponse": {
13612
+ "type": "object",
13613
+ "properties": {
13614
+ "events": {
13615
+ "type": "array",
13616
+ "items": {
13617
+ "$ref": "#/components/schemas/RunEventDto"
13618
+ },
13619
+ "nullable": true
13620
+ },
13621
+ "latest_seq": {
13622
+ "type": "integer",
13623
+ "format": "int64"
13624
+ },
13625
+ "next_after_seq": {
13626
+ "type": "integer",
13627
+ "format": "int64",
13628
+ "nullable": true
13629
+ },
13630
+ "has_more": {
13631
+ "type": "boolean"
13632
+ }
13633
+ },
13634
+ "additionalProperties": false
13635
+ },
13636
+ "RunFailureRetentionDetailResponse": {
13637
+ "type": "object",
13638
+ "properties": {
13639
+ "failure": {
13640
+ "$ref": "#/components/schemas/RunFailureRetentionItem"
13641
+ },
13642
+ "payload": {
13643
+ "nullable": true
13644
+ }
13645
+ },
13646
+ "additionalProperties": false
13647
+ },
13648
+ "RunFailureRetentionItem": {
13649
+ "type": "object",
13650
+ "properties": {
13651
+ "failure_id": {
13652
+ "type": "string",
13653
+ "format": "uuid"
13654
+ },
13655
+ "failure_scope": {
13656
+ "type": "string",
13657
+ "nullable": true
13658
+ },
13659
+ "run_id": {
13660
+ "type": "string",
13661
+ "format": "uuid"
13662
+ },
13663
+ "attempt_id": {
13664
+ "type": "string",
13665
+ "format": "uuid"
13666
+ },
13667
+ "attempt_no": {
13668
+ "type": "integer",
13669
+ "format": "int32"
13670
+ },
13671
+ "agent_id": {
13672
+ "type": "string",
13673
+ "format": "uuid",
13674
+ "nullable": true
13675
+ },
13676
+ "thread_id": {
13677
+ "type": "string",
13678
+ "format": "uuid"
13679
+ },
13680
+ "node_execution_id": {
13681
+ "type": "string",
13682
+ "format": "uuid",
13683
+ "nullable": true
13684
+ },
13685
+ "operation_id": {
13686
+ "type": "string",
13687
+ "format": "uuid",
13688
+ "nullable": true
13689
+ },
13690
+ "capability_ref": {
13691
+ "type": "string",
13692
+ "nullable": true
13693
+ },
13694
+ "capability_version": {
13695
+ "type": "string",
13696
+ "nullable": true
13697
+ },
13698
+ "execution_binding": {
13699
+ "type": "string",
13700
+ "nullable": true
13701
+ },
13702
+ "source_kind": {
13703
+ "type": "string",
13704
+ "nullable": true
13705
+ },
13706
+ "ancestry_kind": {
13707
+ "type": "string",
13708
+ "nullable": true
13709
+ },
13710
+ "status": {
13711
+ "type": "string",
13712
+ "nullable": true
13713
+ },
13714
+ "error_code": {
13715
+ "type": "string",
13716
+ "nullable": true
13717
+ },
13718
+ "error_category": {
13719
+ "type": "string",
13720
+ "nullable": true
13721
+ },
13722
+ "is_retryable": {
13723
+ "type": "boolean"
13724
+ },
13725
+ "error_source": {
13726
+ "type": "string",
13727
+ "nullable": true
13728
+ },
13729
+ "provider_error_code": {
13730
+ "type": "string",
13731
+ "nullable": true
13732
+ },
13733
+ "error_summary": {
13734
+ "type": "string",
13735
+ "nullable": true
13736
+ },
13737
+ "retried_from_node_execution_id": {
13738
+ "type": "string",
13739
+ "format": "uuid",
13740
+ "nullable": true
13741
+ },
13742
+ "replayed_from_node_execution_id": {
13743
+ "type": "string",
13744
+ "format": "uuid",
13745
+ "nullable": true
13746
+ },
13747
+ "can_retry": {
13748
+ "type": "boolean"
13749
+ },
13750
+ "retry_from_node_execution_id": {
12343
13751
  "type": "string",
13752
+ "format": "uuid",
12344
13753
  "nullable": true
12345
13754
  },
12346
- "transition_reason": {
13755
+ "can_replay": {
13756
+ "type": "boolean"
13757
+ },
13758
+ "replay_from_node_execution_id": {
12347
13759
  "type": "string",
13760
+ "format": "uuid",
12348
13761
  "nullable": true
12349
13762
  },
12350
- "transitioned_at": {
13763
+ "failed_at": {
13764
+ "type": "string",
13765
+ "format": "date-time"
13766
+ },
13767
+ "created_at": {
12351
13768
  "type": "string",
12352
13769
  "format": "date-time"
12353
13770
  }
12354
13771
  },
12355
13772
  "additionalProperties": false
12356
13773
  },
12357
- "OperationTransitionsResponse": {
13774
+ "RunFailureRetentionListResponse": {
12358
13775
  "type": "object",
12359
13776
  "properties": {
12360
13777
  "items": {
12361
13778
  "type": "array",
12362
13779
  "items": {
12363
- "$ref": "#/components/schemas/OperationTransitionItem"
13780
+ "$ref": "#/components/schemas/RunFailureRetentionItem"
12364
13781
  },
12365
13782
  "nullable": true
12366
13783
  },
12367
- "total": {
12368
- "type": "integer",
12369
- "format": "int32"
12370
- },
12371
- "skip": {
12372
- "type": "integer",
12373
- "format": "int32"
12374
- },
12375
- "take": {
13784
+ "count": {
12376
13785
  "type": "integer",
12377
13786
  "format": "int32"
12378
13787
  }
12379
13788
  },
12380
13789
  "additionalProperties": false
12381
13790
  },
12382
- "PathInfoDto": {
13791
+ "RunInspectionAttemptItem": {
12383
13792
  "type": "object",
12384
13793
  "properties": {
12385
- "path": {
13794
+ "attempt_id": {
12386
13795
  "type": "string",
12387
- "nullable": true
13796
+ "format": "uuid"
12388
13797
  },
12389
- "kind": {
13798
+ "attempt_no": {
13799
+ "type": "integer",
13800
+ "format": "int32"
13801
+ },
13802
+ "cause": {
12390
13803
  "type": "string",
12391
13804
  "nullable": true
12392
- }
12393
- },
12394
- "additionalProperties": false,
12395
- "description": "A JSONPath with its inferred type."
12396
- },
12397
- "PlaygroundRequest": {
12398
- "type": "object",
12399
- "properties": {
12400
- "variables": {
12401
- "type": "object",
12402
- "additionalProperties": { },
13805
+ },
13806
+ "status": {
13807
+ "type": "string",
12403
13808
  "nullable": true
12404
13809
  },
12405
- "version_number": {
13810
+ "latest_seq": {
12406
13811
  "type": "integer",
12407
- "format": "int32",
12408
- "nullable": true
13812
+ "format": "int64"
12409
13813
  },
12410
- "execute": {
12411
- "type": "boolean"
13814
+ "lease_epoch": {
13815
+ "type": "integer",
13816
+ "format": "int64"
12412
13817
  },
12413
- "provider": {
13818
+ "replayed_from_attempt_id": {
12414
13819
  "type": "string",
13820
+ "format": "uuid",
12415
13821
  "nullable": true
12416
13822
  },
12417
- "model": {
13823
+ "error_code": {
12418
13824
  "type": "string",
12419
13825
  "nullable": true
12420
13826
  },
12421
- "credential_id": {
13827
+ "error_category": {
12422
13828
  "type": "string",
12423
- "format": "uuid",
12424
13829
  "nullable": true
12425
13830
  },
12426
- "credential_name": {
12427
- "type": "string",
13831
+ "is_retryable": {
13832
+ "type": "boolean",
12428
13833
  "nullable": true
12429
13834
  },
12430
- "temperature": {
12431
- "type": "number",
12432
- "format": "double",
13835
+ "error_source": {
13836
+ "type": "string",
12433
13837
  "nullable": true
12434
13838
  },
12435
- "max_tokens": {
12436
- "type": "integer",
12437
- "format": "int32",
13839
+ "provider_error_code": {
13840
+ "type": "string",
12438
13841
  "nullable": true
12439
- }
12440
- },
12441
- "additionalProperties": false
12442
- },
12443
- "PlaygroundRunRequest": {
12444
- "type": "object",
12445
- "properties": {
12446
- "agent_id": {
13842
+ },
13843
+ "error_summary": {
12447
13844
  "type": "string",
12448
- "format": "uuid"
13845
+ "nullable": true
12449
13846
  },
12450
- "input": {
13847
+ "error": {
12451
13848
  "nullable": true
12452
13849
  },
12453
- "timeout_seconds": {
12454
- "type": "integer",
12455
- "format": "int32",
13850
+ "started_at": {
13851
+ "type": "string",
13852
+ "format": "date-time",
13853
+ "nullable": true
13854
+ },
13855
+ "finished_at": {
13856
+ "type": "string",
13857
+ "format": "date-time",
12456
13858
  "nullable": true
13859
+ },
13860
+ "created_at": {
13861
+ "type": "string",
13862
+ "format": "date-time"
12457
13863
  }
12458
13864
  },
12459
- "additionalProperties": false,
12460
- "description": "Playground request."
13865
+ "additionalProperties": false
12461
13866
  },
12462
- "PresignedDownloadResponse": {
13867
+ "RunInspectionEventItem": {
12463
13868
  "type": "object",
12464
13869
  "properties": {
12465
- "file_id": {
13870
+ "event_id": {
12466
13871
  "type": "string",
12467
13872
  "format": "uuid"
12468
13873
  },
12469
- "download_url": {
13874
+ "attempt_id": {
12470
13875
  "type": "string",
12471
- "nullable": true
13876
+ "format": "uuid"
12472
13877
  },
12473
- "filename": {
13878
+ "attempt_no": {
13879
+ "type": "integer",
13880
+ "format": "int32"
13881
+ },
13882
+ "seq": {
13883
+ "type": "integer",
13884
+ "format": "int64"
13885
+ },
13886
+ "run_attempt_transition_seq": {
13887
+ "type": "integer",
13888
+ "format": "int64"
13889
+ },
13890
+ "event_type_code": {
12474
13891
  "type": "string",
12475
13892
  "nullable": true
12476
13893
  },
12477
- "content_type": {
13894
+ "source_kind": {
12478
13895
  "type": "string",
12479
13896
  "nullable": true
12480
13897
  },
12481
- "size_bytes": {
12482
- "type": "integer",
12483
- "format": "int64"
13898
+ "timestamp": {
13899
+ "type": "string",
13900
+ "format": "date-time"
12484
13901
  },
12485
- "expires_in": {
12486
- "type": "integer",
12487
- "format": "int32"
12488
- }
12489
- },
12490
- "additionalProperties": false
12491
- },
12492
- "PresignedUploadResponse": {
12493
- "type": "object",
12494
- "properties": {
12495
- "file_id": {
13902
+ "operation_id": {
12496
13903
  "type": "string",
12497
13904
  "format": "uuid"
12498
13905
  },
12499
- "upload_url": {
13906
+ "parent_operation_id": {
12500
13907
  "type": "string",
13908
+ "format": "uuid",
12501
13909
  "nullable": true
12502
13910
  },
12503
- "expires_in": {
12504
- "type": "integer",
12505
- "format": "int32"
13911
+ "root_operation_id": {
13912
+ "type": "string",
13913
+ "format": "uuid"
12506
13914
  },
12507
- "object_key": {
13915
+ "node_id": {
12508
13916
  "type": "string",
12509
13917
  "nullable": true
12510
- }
12511
- },
12512
- "additionalProperties": false
12513
- },
12514
- "PreviewMappingRequest": {
12515
- "type": "object",
12516
- "properties": {
12517
- "sample_payload": { },
12518
- "input_mapping_override": { }
12519
- },
12520
- "additionalProperties": false,
12521
- "description": "Request for POST /triggers/{id}/preview-input-mapping"
12522
- },
12523
- "PreviewMappingResponse": {
12524
- "type": "object",
12525
- "properties": {
12526
- "result_input": { },
12527
- "resolution": {
12528
- "type": "array",
12529
- "items": {
12530
- "$ref": "#/components/schemas/ResolutionRowDto"
12531
- },
13918
+ },
13919
+ "capability_ref": {
13920
+ "type": "string",
12532
13921
  "nullable": true
12533
13922
  },
12534
- "warnings": {
12535
- "type": "array",
12536
- "items": {
12537
- "type": "string"
12538
- },
13923
+ "capability_version": {
13924
+ "type": "string",
12539
13925
  "nullable": true
12540
- }
12541
- },
12542
- "additionalProperties": false,
12543
- "description": "Response for POST /triggers/{id}/preview-input-mapping"
12544
- },
12545
- "ProblemDetails": {
12546
- "type": "object",
12547
- "properties": {
12548
- "type": {
13926
+ },
13927
+ "execution_binding": {
12549
13928
  "type": "string",
12550
13929
  "nullable": true
12551
13930
  },
12552
- "title": {
13931
+ "error_code": {
12553
13932
  "type": "string",
12554
13933
  "nullable": true
12555
13934
  },
12556
- "status": {
12557
- "type": "integer",
12558
- "format": "int32",
13935
+ "error_category": {
13936
+ "type": "string",
12559
13937
  "nullable": true
12560
13938
  },
12561
- "detail": {
13939
+ "is_retryable": {
13940
+ "type": "boolean",
13941
+ "nullable": true
13942
+ },
13943
+ "error_source": {
12562
13944
  "type": "string",
12563
13945
  "nullable": true
12564
13946
  },
12565
- "instance": {
13947
+ "provider_error_code": {
12566
13948
  "type": "string",
12567
13949
  "nullable": true
12568
- }
12569
- },
12570
- "additionalProperties": { }
12571
- },
12572
- "PromoteImprovementCaseRequest": {
12573
- "type": "object",
12574
- "properties": {
12575
- "decision_reason": {
13950
+ },
13951
+ "error_summary": {
12576
13952
  "type": "string",
12577
13953
  "nullable": true
13954
+ },
13955
+ "payload": {
13956
+ "nullable": true
12578
13957
  }
12579
13958
  },
12580
13959
  "additionalProperties": false
12581
13960
  },
12582
- "PublishAgentRequest": {
13961
+ "RunInspectionFailureSummary": {
12583
13962
  "type": "object",
12584
13963
  "properties": {
12585
- "version_label": {
13964
+ "has_failures": {
13965
+ "type": "boolean"
13966
+ },
13967
+ "run_error_code": {
12586
13968
  "type": "string",
12587
13969
  "nullable": true
12588
13970
  },
12589
- "set_as_live": {
12590
- "type": "boolean"
12591
- },
12592
- "required_tools": {
12593
- "type": "array",
12594
- "items": {
12595
- "type": "string"
12596
- },
13971
+ "run_error_category": {
13972
+ "type": "string",
12597
13973
  "nullable": true
12598
13974
  },
12599
- "tool_credential_bindings": {
12600
- "type": "object",
12601
- "additionalProperties": {
12602
- "type": "string",
12603
- "format": "uuid"
12604
- },
13975
+ "run_is_retryable": {
13976
+ "type": "boolean",
12605
13977
  "nullable": true
12606
- }
12607
- },
12608
- "additionalProperties": false
12609
- },
12610
- "RejectImprovementCaseRequest": {
12611
- "type": "object",
12612
- "properties": {
12613
- "reason": {
13978
+ },
13979
+ "run_error_source": {
12614
13980
  "type": "string",
12615
13981
  "nullable": true
12616
- }
12617
- },
12618
- "additionalProperties": false
12619
- },
12620
- "ReplayRequest": {
12621
- "type": "object",
12622
- "properties": {
12623
- "modified_input": {
13982
+ },
13983
+ "run_provider_error_code": {
13984
+ "type": "string",
13985
+ "nullable": true
13986
+ },
13987
+ "run_error_summary": {
12624
13988
  "type": "string",
12625
13989
  "nullable": true
12626
13990
  },
12627
- "create_new_thread": {
12628
- "type": "boolean"
13991
+ "run_error": {
13992
+ "nullable": true
13993
+ },
13994
+ "failed_attempt_count": {
13995
+ "type": "integer",
13996
+ "format": "int32"
13997
+ },
13998
+ "failed_node_execution_count": {
13999
+ "type": "integer",
14000
+ "format": "int32"
12629
14001
  }
12630
14002
  },
12631
14003
  "additionalProperties": false
12632
14004
  },
12633
- "ReplayResponse": {
14005
+ "RunInspectionNodeExecutionItem": {
12634
14006
  "type": "object",
12635
14007
  "properties": {
12636
- "original_run_id": {
14008
+ "node_execution_id": {
12637
14009
  "type": "string",
12638
14010
  "format": "uuid"
12639
14011
  },
12640
- "original_checkpoint_id": {
14012
+ "attempt_id": {
12641
14013
  "type": "string",
12642
14014
  "format": "uuid"
12643
14015
  },
12644
- "new_run_id": {
14016
+ "attempt_no": {
14017
+ "type": "integer",
14018
+ "format": "int32"
14019
+ },
14020
+ "operation_id": {
12645
14021
  "type": "string",
12646
14022
  "format": "uuid"
12647
14023
  },
12648
- "new_thread_id": {
14024
+ "parent_operation_id": {
14025
+ "type": "string",
14026
+ "format": "uuid",
14027
+ "nullable": true
14028
+ },
14029
+ "root_operation_id": {
12649
14030
  "type": "string",
12650
14031
  "format": "uuid"
12651
14032
  },
12652
- "status": {
14033
+ "node_id": {
12653
14034
  "type": "string",
12654
14035
  "nullable": true
12655
14036
  },
12656
- "message": {
14037
+ "capability_ref": {
12657
14038
  "type": "string",
12658
14039
  "nullable": true
12659
- }
12660
- },
12661
- "additionalProperties": false
12662
- },
12663
- "RerunRequest": {
12664
- "type": "object",
12665
- "properties": {
12666
- "input": {
14040
+ },
14041
+ "capability_version": {
14042
+ "type": "string",
12667
14043
  "nullable": true
12668
- }
12669
- },
12670
- "additionalProperties": false
12671
- },
12672
- "RerunResponse": {
12673
- "type": "object",
12674
- "properties": {
12675
- "run_id": {
14044
+ },
14045
+ "execution_binding": {
12676
14046
  "type": "string",
12677
- "format": "uuid"
14047
+ "nullable": true
12678
14048
  },
12679
- "rerun_of_run_id": {
14049
+ "source_kind": {
12680
14050
  "type": "string",
12681
- "format": "uuid"
14051
+ "nullable": true
12682
14052
  },
12683
- "status": {
14053
+ "is_root_execution": {
14054
+ "type": "boolean"
14055
+ },
14056
+ "ancestry_kind": {
12684
14057
  "type": "string",
12685
14058
  "nullable": true
12686
- }
12687
- },
12688
- "additionalProperties": false
12689
- },
12690
- "ResolutionRowDto": {
12691
- "type": "object",
12692
- "properties": {
12693
- "target": {
14059
+ },
14060
+ "event_type_code": {
12694
14061
  "type": "string",
12695
14062
  "nullable": true
12696
14063
  },
12697
- "source": {
14064
+ "first_seq": {
14065
+ "type": "integer",
14066
+ "format": "int64"
14067
+ },
14068
+ "last_seq": {
14069
+ "type": "integer",
14070
+ "format": "int64"
14071
+ },
14072
+ "first_run_attempt_transition_seq": {
14073
+ "type": "integer",
14074
+ "format": "int64"
14075
+ },
14076
+ "last_run_attempt_transition_seq": {
14077
+ "type": "integer",
14078
+ "format": "int64"
14079
+ },
14080
+ "latest_transition_reason": {
12698
14081
  "type": "string",
12699
14082
  "nullable": true
12700
14083
  },
12701
- "ok": {
12702
- "type": "boolean"
14084
+ "latest_transition_actor_type": {
14085
+ "type": "string",
14086
+ "nullable": true
12703
14087
  },
12704
- "note": {
14088
+ "status": {
12705
14089
  "type": "string",
12706
14090
  "nullable": true
12707
- }
12708
- },
12709
- "additionalProperties": false,
12710
- "description": "Resolution row showing how a mapping was resolved."
12711
- },
12712
- "ResumeRequest": {
12713
- "type": "object",
12714
- "properties": {
12715
- "input": {
14091
+ },
14092
+ "error_code": {
14093
+ "type": "string",
12716
14094
  "nullable": true
12717
14095
  },
12718
- "message": {
14096
+ "error_category": {
12719
14097
  "type": "string",
12720
14098
  "nullable": true
12721
14099
  },
12722
- "metadata": {
12723
- "type": "object",
12724
- "additionalProperties": { },
14100
+ "is_retryable": {
14101
+ "type": "boolean",
12725
14102
  "nullable": true
12726
- }
12727
- },
12728
- "additionalProperties": false
12729
- },
12730
- "ResumeResponse": {
12731
- "type": "object",
12732
- "properties": {
12733
- "run_id": {
14103
+ },
14104
+ "error_source": {
12734
14105
  "type": "string",
12735
- "format": "uuid"
14106
+ "nullable": true
12736
14107
  },
12737
- "status": {
14108
+ "provider_error_code": {
12738
14109
  "type": "string",
12739
14110
  "nullable": true
12740
14111
  },
12741
- "resumed_at": {
14112
+ "error_summary": {
14113
+ "type": "string",
14114
+ "nullable": true
14115
+ },
14116
+ "started_at": {
12742
14117
  "type": "string",
12743
14118
  "format": "date-time"
14119
+ },
14120
+ "finished_at": {
14121
+ "type": "string",
14122
+ "format": "date-time",
14123
+ "nullable": true
14124
+ },
14125
+ "replayed_from_node_execution_id": {
14126
+ "type": "string",
14127
+ "format": "uuid",
14128
+ "nullable": true
14129
+ },
14130
+ "retried_from_node_execution_id": {
14131
+ "type": "string",
14132
+ "format": "uuid",
14133
+ "nullable": true
14134
+ },
14135
+ "event_count": {
14136
+ "type": "integer",
14137
+ "format": "int32"
12744
14138
  }
12745
14139
  },
12746
14140
  "additionalProperties": false
12747
14141
  },
12748
- "RoleContextDto": {
14142
+ "RunInspectionReplayMetadata": {
12749
14143
  "type": "object",
12750
14144
  "properties": {
12751
- "id": {
14145
+ "replay_mode": {
12752
14146
  "type": "string",
12753
- "format": "uuid"
14147
+ "nullable": true
12754
14148
  },
12755
- "name": {
14149
+ "replay_reason": {
12756
14150
  "type": "string",
12757
14151
  "nullable": true
12758
14152
  },
12759
- "is_system": {
12760
- "type": "boolean"
14153
+ "replayed_from_run_id": {
14154
+ "type": "string",
14155
+ "format": "uuid",
14156
+ "nullable": true
12761
14157
  },
12762
- "permissions": {
12763
- "type": "array",
12764
- "items": {
12765
- "type": "string"
12766
- },
14158
+ "replayed_from_checkpoint_id": {
14159
+ "type": "string",
14160
+ "format": "uuid",
14161
+ "nullable": true
14162
+ },
14163
+ "runtime_contract_snapshot": {
12767
14164
  "nullable": true
12768
14165
  }
12769
14166
  },
12770
14167
  "additionalProperties": false
12771
14168
  },
12772
- "RollbackImprovementCaseRequest": {
14169
+ "RunInspectionResponse": {
12773
14170
  "type": "object",
12774
14171
  "properties": {
12775
- "reason": {
12776
- "type": "string",
14172
+ "run": {
14173
+ "$ref": "#/components/schemas/RunInspectionRunSummary"
14174
+ },
14175
+ "replay": {
14176
+ "$ref": "#/components/schemas/RunInspectionReplayMetadata"
14177
+ },
14178
+ "failure": {
14179
+ "$ref": "#/components/schemas/RunInspectionFailureSummary"
14180
+ },
14181
+ "attempts": {
14182
+ "type": "array",
14183
+ "items": {
14184
+ "$ref": "#/components/schemas/RunInspectionAttemptItem"
14185
+ },
14186
+ "nullable": true
14187
+ },
14188
+ "node_executions": {
14189
+ "type": "array",
14190
+ "items": {
14191
+ "$ref": "#/components/schemas/RunInspectionNodeExecutionItem"
14192
+ },
14193
+ "nullable": true
14194
+ },
14195
+ "events": {
14196
+ "type": "array",
14197
+ "items": {
14198
+ "$ref": "#/components/schemas/RunInspectionEventItem"
14199
+ },
12777
14200
  "nullable": true
12778
14201
  }
12779
14202
  },
12780
14203
  "additionalProperties": false
12781
14204
  },
12782
- "RunDetailResponse": {
14205
+ "RunInspectionRunSummary": {
12783
14206
  "type": "object",
12784
14207
  "properties": {
12785
14208
  "run_id": {
@@ -12796,16 +14219,26 @@
12796
14219
  },
12797
14220
  "agent_id": {
12798
14221
  "type": "string",
12799
- "format": "uuid"
14222
+ "format": "uuid",
14223
+ "nullable": true
12800
14224
  },
12801
14225
  "bundle_id": {
12802
14226
  "type": "string",
12803
- "format": "uuid"
14227
+ "format": "uuid",
14228
+ "nullable": true
14229
+ },
14230
+ "bundle_sha256": {
14231
+ "type": "string",
14232
+ "nullable": true
12804
14233
  },
12805
14234
  "thread_id": {
12806
14235
  "type": "string",
12807
14236
  "format": "uuid"
12808
14237
  },
14238
+ "status": {
14239
+ "type": "string",
14240
+ "nullable": true
14241
+ },
12809
14242
  "current_attempt_id": {
12810
14243
  "type": "string",
12811
14244
  "format": "uuid",
@@ -12821,40 +14254,6 @@
12821
14254
  "format": "int64",
12822
14255
  "nullable": true
12823
14256
  },
12824
- "status": {
12825
- "$ref": "#/components/schemas/RunStatus"
12826
- },
12827
- "input": {
12828
- "nullable": true
12829
- },
12830
- "output": {
12831
- "nullable": true
12832
- },
12833
- "error": {
12834
- "nullable": true
12835
- },
12836
- "metrics": {
12837
- "nullable": true
12838
- },
12839
- "started_at": {
12840
- "type": "string",
12841
- "format": "date-time",
12842
- "nullable": true
12843
- },
12844
- "completed_at": {
12845
- "type": "string",
12846
- "format": "date-time",
12847
- "nullable": true
12848
- },
12849
- "created_at": {
12850
- "type": "string",
12851
- "format": "date-time"
12852
- },
12853
- "duration_ms": {
12854
- "type": "number",
12855
- "format": "double",
12856
- "nullable": true
12857
- },
12858
14257
  "prompt_hash": {
12859
14258
  "type": "string",
12860
14259
  "nullable": true
@@ -12862,76 +14261,34 @@
12862
14261
  "toolset_hash": {
12863
14262
  "type": "string",
12864
14263
  "nullable": true
12865
- }
12866
- },
12867
- "additionalProperties": false
12868
- },
12869
- "RunEventDto": {
12870
- "type": "object",
12871
- "properties": {
12872
- "id": {
12873
- "type": "string",
12874
- "format": "uuid"
12875
- },
12876
- "seq": {
12877
- "type": "integer",
12878
- "format": "int64"
12879
- },
12880
- "type": {
12881
- "type": "string",
12882
- "nullable": true
12883
- },
12884
- "timestamp": {
12885
- "type": "string",
12886
- "format": "date-time"
12887
- },
12888
- "attempt_id": {
12889
- "type": "string",
12890
- "format": "uuid"
12891
- },
12892
- "payload": {
12893
- "nullable": true
12894
14264
  },
12895
- "operation_id": {
14265
+ "started_at": {
12896
14266
  "type": "string",
12897
- "format": "uuid"
14267
+ "format": "date-time",
14268
+ "nullable": true
12898
14269
  },
12899
- "parent_operation_id": {
14270
+ "completed_at": {
12900
14271
  "type": "string",
12901
- "format": "uuid",
14272
+ "format": "date-time",
12902
14273
  "nullable": true
12903
14274
  },
12904
- "root_operation_id": {
14275
+ "created_at": {
12905
14276
  "type": "string",
12906
- "format": "uuid"
14277
+ "format": "date-time"
12907
14278
  },
12908
- "truncated": {
12909
- "type": "boolean"
12910
- }
12911
- },
12912
- "additionalProperties": false
12913
- },
12914
- "RunEventsPollResponse": {
12915
- "type": "object",
12916
- "properties": {
12917
- "events": {
12918
- "type": "array",
12919
- "items": {
12920
- "$ref": "#/components/schemas/RunEventDto"
12921
- },
14279
+ "duration_ms": {
14280
+ "type": "number",
14281
+ "format": "double",
12922
14282
  "nullable": true
12923
14283
  },
12924
- "latest_seq": {
12925
- "type": "integer",
12926
- "format": "int64"
14284
+ "input": {
14285
+ "nullable": true
12927
14286
  },
12928
- "next_after_seq": {
12929
- "type": "integer",
12930
- "format": "int64",
14287
+ "output": {
12931
14288
  "nullable": true
12932
14289
  },
12933
- "has_more": {
12934
- "type": "boolean"
14290
+ "metrics": {
14291
+ "nullable": true
12935
14292
  }
12936
14293
  },
12937
14294
  "additionalProperties": false
@@ -13059,6 +14416,232 @@
13059
14416
  },
13060
14417
  "additionalProperties": false
13061
14418
  },
14419
+ "RunObservabilityBindingItem": {
14420
+ "type": "object",
14421
+ "properties": {
14422
+ "execution_binding": {
14423
+ "type": "string",
14424
+ "nullable": true
14425
+ },
14426
+ "capability_count": {
14427
+ "type": "integer",
14428
+ "format": "int32"
14429
+ },
14430
+ "node_executions_total": {
14431
+ "type": "integer",
14432
+ "format": "int32"
14433
+ },
14434
+ "node_executions_failed": {
14435
+ "type": "integer",
14436
+ "format": "int32"
14437
+ },
14438
+ "failure_rate": {
14439
+ "type": "number",
14440
+ "format": "double"
14441
+ },
14442
+ "avg_latency_ms": {
14443
+ "type": "number",
14444
+ "format": "double"
14445
+ },
14446
+ "retry_count": {
14447
+ "type": "integer",
14448
+ "format": "int32"
14449
+ },
14450
+ "replay_count": {
14451
+ "type": "integer",
14452
+ "format": "int32"
14453
+ },
14454
+ "top_error_category": {
14455
+ "type": "string",
14456
+ "nullable": true
14457
+ },
14458
+ "last_seen_at": {
14459
+ "type": "string",
14460
+ "format": "date-time",
14461
+ "nullable": true
14462
+ }
14463
+ },
14464
+ "additionalProperties": false
14465
+ },
14466
+ "RunObservabilityBindingListResponse": {
14467
+ "type": "object",
14468
+ "properties": {
14469
+ "items": {
14470
+ "type": "array",
14471
+ "items": {
14472
+ "$ref": "#/components/schemas/RunObservabilityBindingItem"
14473
+ },
14474
+ "nullable": true
14475
+ },
14476
+ "count": {
14477
+ "type": "integer",
14478
+ "format": "int32"
14479
+ }
14480
+ },
14481
+ "additionalProperties": false
14482
+ },
14483
+ "RunObservabilityCapabilityItem": {
14484
+ "type": "object",
14485
+ "properties": {
14486
+ "capability_ref": {
14487
+ "type": "string",
14488
+ "nullable": true
14489
+ },
14490
+ "capability_version": {
14491
+ "type": "string",
14492
+ "nullable": true
14493
+ },
14494
+ "execution_binding": {
14495
+ "type": "string",
14496
+ "nullable": true
14497
+ },
14498
+ "node_executions_total": {
14499
+ "type": "integer",
14500
+ "format": "int32"
14501
+ },
14502
+ "node_executions_failed": {
14503
+ "type": "integer",
14504
+ "format": "int32"
14505
+ },
14506
+ "failure_rate": {
14507
+ "type": "number",
14508
+ "format": "double"
14509
+ },
14510
+ "avg_latency_ms": {
14511
+ "type": "number",
14512
+ "format": "double"
14513
+ },
14514
+ "retry_count": {
14515
+ "type": "integer",
14516
+ "format": "int32"
14517
+ },
14518
+ "replay_count": {
14519
+ "type": "integer",
14520
+ "format": "int32"
14521
+ },
14522
+ "top_error_category": {
14523
+ "type": "string",
14524
+ "nullable": true
14525
+ },
14526
+ "last_seen_at": {
14527
+ "type": "string",
14528
+ "format": "date-time",
14529
+ "nullable": true
14530
+ }
14531
+ },
14532
+ "additionalProperties": false
14533
+ },
14534
+ "RunObservabilityCapabilityListResponse": {
14535
+ "type": "object",
14536
+ "properties": {
14537
+ "items": {
14538
+ "type": "array",
14539
+ "items": {
14540
+ "$ref": "#/components/schemas/RunObservabilityCapabilityItem"
14541
+ },
14542
+ "nullable": true
14543
+ },
14544
+ "count": {
14545
+ "type": "integer",
14546
+ "format": "int32"
14547
+ }
14548
+ },
14549
+ "additionalProperties": false
14550
+ },
14551
+ "RunObservabilityErrorCategoryItem": {
14552
+ "type": "object",
14553
+ "properties": {
14554
+ "error_category": {
14555
+ "type": "string",
14556
+ "nullable": true
14557
+ },
14558
+ "count": {
14559
+ "type": "integer",
14560
+ "format": "int32"
14561
+ }
14562
+ },
14563
+ "additionalProperties": false
14564
+ },
14565
+ "RunObservabilitySummaryResponse": {
14566
+ "type": "object",
14567
+ "properties": {
14568
+ "workspace_id": {
14569
+ "type": "string",
14570
+ "format": "uuid"
14571
+ },
14572
+ "agent_id": {
14573
+ "type": "string",
14574
+ "format": "uuid",
14575
+ "nullable": true
14576
+ },
14577
+ "from": {
14578
+ "type": "string",
14579
+ "format": "date-time",
14580
+ "nullable": true
14581
+ },
14582
+ "to": {
14583
+ "type": "string",
14584
+ "format": "date-time",
14585
+ "nullable": true
14586
+ },
14587
+ "runs_total": {
14588
+ "type": "integer",
14589
+ "format": "int32"
14590
+ },
14591
+ "runs_completed": {
14592
+ "type": "integer",
14593
+ "format": "int32"
14594
+ },
14595
+ "runs_failed": {
14596
+ "type": "integer",
14597
+ "format": "int32"
14598
+ },
14599
+ "node_executions_total": {
14600
+ "type": "integer",
14601
+ "format": "int32"
14602
+ },
14603
+ "node_executions_failed": {
14604
+ "type": "integer",
14605
+ "format": "int32"
14606
+ },
14607
+ "retry_count": {
14608
+ "type": "integer",
14609
+ "format": "int32"
14610
+ },
14611
+ "replay_count": {
14612
+ "type": "integer",
14613
+ "format": "int32"
14614
+ },
14615
+ "handoff_count": {
14616
+ "type": "integer",
14617
+ "format": "int32"
14618
+ },
14619
+ "avg_run_latency_ms": {
14620
+ "type": "number",
14621
+ "format": "double"
14622
+ },
14623
+ "p95_run_latency_ms": {
14624
+ "type": "number",
14625
+ "format": "double"
14626
+ },
14627
+ "avg_node_latency_ms": {
14628
+ "type": "number",
14629
+ "format": "double"
14630
+ },
14631
+ "failure_rate": {
14632
+ "type": "number",
14633
+ "format": "double"
14634
+ },
14635
+ "top_error_categories": {
14636
+ "type": "array",
14637
+ "items": {
14638
+ "$ref": "#/components/schemas/RunObservabilityErrorCategoryItem"
14639
+ },
14640
+ "nullable": true
14641
+ }
14642
+ },
14643
+ "additionalProperties": false
14644
+ },
13062
14645
  "RunOutcomeDetailItem": {
13063
14646
  "type": "object",
13064
14647
  "properties": {
@@ -13936,31 +15519,45 @@
13936
15519
  },
13937
15520
  "TriggerTemplateDto": {
13938
15521
  "required": [
15522
+ "capability_ref",
15523
+ "capability_version",
15524
+ "execution_binding",
13939
15525
  "kind",
15526
+ "required_credentials",
13940
15527
  "slug",
13941
15528
  "title"
13942
15529
  ],
13943
15530
  "type": "object",
13944
15531
  "properties": {
13945
15532
  "capability_ref": {
13946
- "type": "string",
13947
- "nullable": true
15533
+ "minLength": 1,
15534
+ "type": "string"
13948
15535
  },
13949
15536
  "capability_version": {
13950
- "type": "string",
13951
- "nullable": true
15537
+ "minLength": 1,
15538
+ "type": "string"
15539
+ },
15540
+ "execution_binding": {
15541
+ "minLength": 1,
15542
+ "type": "string"
15543
+ },
15544
+ "required_credentials": {
15545
+ "type": "array",
15546
+ "items": {
15547
+ "type": "string"
15548
+ }
13952
15549
  },
13953
15550
  "slug": {
13954
- "type": "string",
13955
- "nullable": true
15551
+ "minLength": 1,
15552
+ "type": "string"
13956
15553
  },
13957
15554
  "kind": {
13958
- "type": "string",
13959
- "nullable": true
15555
+ "minLength": 1,
15556
+ "type": "string"
13960
15557
  },
13961
15558
  "title": {
13962
- "type": "string",
13963
- "nullable": true
15559
+ "minLength": 1,
15560
+ "type": "string"
13964
15561
  },
13965
15562
  "description": {
13966
15563
  "type": "string",