@adea-ai/sdk 1.27.0 → 2.0.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.
@@ -6515,40 +6515,6 @@
6515
6515
  ],
6516
6516
  "type": "object"
6517
6517
  },
6518
- "graph": {
6519
- "additionalProperties": false,
6520
- "properties": {
6521
- "input": {
6522
- "additionalProperties": {},
6523
- "description": "Plain JSON object, at most 65536 serialized UTF-8 bytes, 4096 values and 16 nested levels; executable and non-finite values are rejected.",
6524
- "maxProperties": 4096,
6525
- "type": "object"
6526
- },
6527
- "reference": {
6528
- "additionalProperties": false,
6529
- "properties": {
6530
- "contentDigest": {
6531
- "pattern": "^sha256:[a-f0-9]{64}$",
6532
- "type": "string"
6533
- },
6534
- "graphDefinitionId": {
6535
- "maxLength": 256,
6536
- "minLength": 1,
6537
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
6538
- "type": "string"
6539
- },
6540
- "graphVersion": {
6541
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
6542
- "type": "string"
6543
- }
6544
- },
6545
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
6546
- "type": "object"
6547
- }
6548
- },
6549
- "required": ["reference", "input"],
6550
- "type": "object"
6551
- },
6552
6518
  "outputContractRef": {
6553
6519
  "maxLength": 512,
6554
6520
  "minLength": 1,
@@ -6712,40 +6678,6 @@
6712
6678
  "type": "object"
6713
6679
  },
6714
6680
  "contextPackage": { "not": {} },
6715
- "graph": {
6716
- "additionalProperties": false,
6717
- "properties": {
6718
- "input": {
6719
- "additionalProperties": {},
6720
- "description": "Plain JSON object, at most 65536 serialized UTF-8 bytes, 4096 values and 16 nested levels; executable and non-finite values are rejected.",
6721
- "maxProperties": 4096,
6722
- "type": "object"
6723
- },
6724
- "reference": {
6725
- "additionalProperties": false,
6726
- "properties": {
6727
- "contentDigest": {
6728
- "pattern": "^sha256:[a-f0-9]{64}$",
6729
- "type": "string"
6730
- },
6731
- "graphDefinitionId": {
6732
- "maxLength": 256,
6733
- "minLength": 1,
6734
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
6735
- "type": "string"
6736
- },
6737
- "graphVersion": {
6738
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
6739
- "type": "string"
6740
- }
6741
- },
6742
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
6743
- "type": "object"
6744
- }
6745
- },
6746
- "required": ["reference", "input"],
6747
- "type": "object"
6748
- },
6749
6681
  "outputContractRef": {
6750
6682
  "maxLength": 512,
6751
6683
  "minLength": 1,
@@ -7965,2374 +7897,6 @@
7965
7897
  "security": [{ "serviceBearer": [] }]
7966
7898
  }
7967
7899
  },
7968
- "/v1/graphs/deprecate": {
7969
- "post": {
7970
- "operationId": "graph.deprecate",
7971
- "requestBody": {
7972
- "content": {
7973
- "application/json": {
7974
- "schema": {
7975
- "additionalProperties": false,
7976
- "properties": {
7977
- "caller": {
7978
- "properties": {
7979
- "servicePrincipalId": {
7980
- "maxLength": 64,
7981
- "minLength": 5,
7982
- "pattern": "^svc_[a-z][a-z0-9-]*$",
7983
- "type": "string"
7984
- }
7985
- },
7986
- "required": ["servicePrincipalId"],
7987
- "type": "object"
7988
- },
7989
- "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
7990
- "contractVersion": {
7991
- "additionalProperties": false,
7992
- "properties": {
7993
- "major": {
7994
- "exclusiveMinimum": 0,
7995
- "maximum": 9007199254740991,
7996
- "type": "integer"
7997
- },
7998
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
7999
- },
8000
- "required": ["major", "minor"],
8001
- "type": "object"
8002
- },
8003
- "correlation": {
8004
- "properties": {
8005
- "causationCommandId": {
8006
- "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
8007
- "type": "string"
8008
- },
8009
- "parentEventId": {
8010
- "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
8011
- "type": "string"
8012
- },
8013
- "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
8014
- },
8015
- "required": ["traceId"],
8016
- "type": "object"
8017
- },
8018
- "idempotencyKey": {
8019
- "maxLength": 128,
8020
- "minLength": 16,
8021
- "pattern": "^[A-Za-z0-9._:-]+$",
8022
- "type": "string"
8023
- },
8024
- "issuedAt": {
8025
- "format": "date-time",
8026
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
8027
- "type": "string"
8028
- },
8029
- "operation": { "const": "graph.deprecate", "type": "string" },
8030
- "payload": {
8031
- "additionalProperties": false,
8032
- "properties": {
8033
- "expectedRevision": {
8034
- "exclusiveMinimum": 0,
8035
- "maximum": 9007199254740991,
8036
- "type": "integer"
8037
- },
8038
- "reason": { "maxLength": 1024, "minLength": 1, "type": "string" },
8039
- "reference": {
8040
- "additionalProperties": false,
8041
- "properties": {
8042
- "contentDigest": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
8043
- "graphDefinitionId": {
8044
- "maxLength": 256,
8045
- "minLength": 1,
8046
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8047
- "type": "string"
8048
- },
8049
- "graphVersion": {
8050
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8051
- "type": "string"
8052
- }
8053
- },
8054
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
8055
- "type": "object"
8056
- }
8057
- },
8058
- "required": ["reference", "expectedRevision", "reason"],
8059
- "type": "object"
8060
- },
8061
- "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
8062
- "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
8063
- "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
8064
- },
8065
- "required": [
8066
- "caller",
8067
- "contractVersion",
8068
- "requestId",
8069
- "workspaceId",
8070
- "correlation",
8071
- "commandId",
8072
- "idempotencyKey",
8073
- "payloadHash",
8074
- "operation",
8075
- "issuedAt",
8076
- "payload"
8077
- ],
8078
- "type": "object"
8079
- }
8080
- }
8081
- },
8082
- "required": true
8083
- },
8084
- "responses": {
8085
- "200": {
8086
- "content": {
8087
- "application/json": {
8088
- "schema": {
8089
- "additionalProperties": false,
8090
- "properties": {
8091
- "contractVersion": {
8092
- "additionalProperties": false,
8093
- "properties": {
8094
- "major": {
8095
- "exclusiveMinimum": 0,
8096
- "maximum": 9007199254740991,
8097
- "type": "integer"
8098
- },
8099
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8100
- },
8101
- "required": ["major", "minor"],
8102
- "type": "object"
8103
- },
8104
- "correlation": {
8105
- "additionalProperties": false,
8106
- "properties": {
8107
- "causationCommandId": {},
8108
- "parentEventId": {},
8109
- "traceId": {}
8110
- },
8111
- "required": ["traceId"],
8112
- "type": "object"
8113
- },
8114
- "data": {
8115
- "additionalProperties": false,
8116
- "properties": {
8117
- "definition": {
8118
- "additionalProperties": false,
8119
- "properties": {
8120
- "changedAt": {
8121
- "format": "date-time",
8122
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
8123
- "type": "string"
8124
- },
8125
- "content": {
8126
- "additionalProperties": false,
8127
- "properties": {
8128
- "compatibility": {
8129
- "additionalProperties": false,
8130
- "properties": {
8131
- "adapterVersions": {
8132
- "items": {
8133
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8134
- "type": "string"
8135
- },
8136
- "minItems": 1,
8137
- "type": "array"
8138
- },
8139
- "compilerVersions": {
8140
- "items": {
8141
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8142
- "type": "string"
8143
- },
8144
- "minItems": 1,
8145
- "type": "array"
8146
- },
8147
- "contractMajorVersions": {
8148
- "items": {
8149
- "exclusiveMinimum": 0,
8150
- "maximum": 9007199254740991,
8151
- "type": "integer"
8152
- },
8153
- "minItems": 1,
8154
- "type": "array"
8155
- }
8156
- },
8157
- "required": [
8158
- "contractMajorVersions",
8159
- "compilerVersions",
8160
- "adapterVersions"
8161
- ],
8162
- "type": "object"
8163
- },
8164
- "edges": {
8165
- "items": {
8166
- "additionalProperties": false,
8167
- "properties": {
8168
- "from": {
8169
- "anyOf": [
8170
- {
8171
- "maxLength": 128,
8172
- "minLength": 1,
8173
- "pattern": "^[a-z][a-z0-9._-]*$",
8174
- "type": "string"
8175
- },
8176
- { "const": "__start__", "type": "string" }
8177
- ]
8178
- },
8179
- "to": {
8180
- "anyOf": [
8181
- {
8182
- "maxLength": 128,
8183
- "minLength": 1,
8184
- "pattern": "^[a-z][a-z0-9._-]*$",
8185
- "type": "string"
8186
- },
8187
- { "const": "__end__", "type": "string" }
8188
- ]
8189
- },
8190
- "when": {
8191
- "additionalProperties": false,
8192
- "properties": {
8193
- "equals": {
8194
- "anyOf": [
8195
- { "maxLength": 4096, "type": "string" },
8196
- { "type": "number" },
8197
- { "type": "boolean" },
8198
- { "type": "null" }
8199
- ]
8200
- },
8201
- "path": {
8202
- "items": {
8203
- "maxLength": 256,
8204
- "minLength": 1,
8205
- "type": "string"
8206
- },
8207
- "maxItems": 16,
8208
- "minItems": 1,
8209
- "type": "array"
8210
- }
8211
- },
8212
- "required": ["path", "equals"],
8213
- "type": "object"
8214
- }
8215
- },
8216
- "required": ["from", "to"],
8217
- "type": "object"
8218
- },
8219
- "maxItems": 1024,
8220
- "minItems": 1,
8221
- "type": "array"
8222
- },
8223
- "graphDefinitionId": {
8224
- "maxLength": 256,
8225
- "minLength": 1,
8226
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8227
- "type": "string"
8228
- },
8229
- "graphVersion": {
8230
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8231
- "type": "string"
8232
- },
8233
- "nodes": {
8234
- "items": {
8235
- "additionalProperties": false,
8236
- "properties": {
8237
- "join": { "enum": ["all", "any"], "type": "string" },
8238
- "node": {
8239
- "maxLength": 128,
8240
- "minLength": 1,
8241
- "pattern": "^[a-z][a-z0-9._-]*$",
8242
- "type": "string"
8243
- },
8244
- "operation": {
8245
- "oneOf": [
8246
- {
8247
- "additionalProperties": false,
8248
- "properties": {
8249
- "kind": {
8250
- "enum": ["runtime", "model", "delegation"],
8251
- "type": "string"
8252
- },
8253
- "name": {
8254
- "maxLength": 256,
8255
- "minLength": 1,
8256
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8257
- "type": "string"
8258
- }
8259
- },
8260
- "required": ["kind", "name"],
8261
- "type": "object"
8262
- },
8263
- {
8264
- "additionalProperties": false,
8265
- "properties": {
8266
- "kind": { "const": "tool", "type": "string" },
8267
- "name": {
8268
- "maxLength": 256,
8269
- "minLength": 1,
8270
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8271
- "type": "string"
8272
- },
8273
- "toolPin": {
8274
- "additionalProperties": false,
8275
- "properties": {
8276
- "contentDigest": {
8277
- "pattern": "^sha256:[a-f0-9]{64}$",
8278
- "type": "string"
8279
- },
8280
- "operation": {
8281
- "maxLength": 128,
8282
- "minLength": 1,
8283
- "pattern": "^[a-z][a-z0-9.-]*$",
8284
- "type": "string"
8285
- },
8286
- "toolDefinitionId": {},
8287
- "toolVersionId": {}
8288
- },
8289
- "required": [
8290
- "toolDefinitionId",
8291
- "toolVersionId",
8292
- "contentDigest",
8293
- "operation"
8294
- ],
8295
- "type": "object"
8296
- }
8297
- },
8298
- "required": ["kind", "name"],
8299
- "type": "object"
8300
- }
8301
- ]
8302
- }
8303
- },
8304
- "required": ["node", "operation"],
8305
- "type": "object"
8306
- },
8307
- "maxItems": 256,
8308
- "minItems": 1,
8309
- "type": "array"
8310
- },
8311
- "requiredCapabilities": {
8312
- "items": {
8313
- "maxLength": 128,
8314
- "minLength": 1,
8315
- "pattern": "^[a-z][a-z0-9.-]*$",
8316
- "type": "string"
8317
- },
8318
- "maxItems": 128,
8319
- "type": "array"
8320
- },
8321
- "schemaVersion": { "const": 1, "type": "number" },
8322
- "schemas": {
8323
- "additionalProperties": false,
8324
- "properties": {
8325
- "input": {
8326
- "maxLength": 256,
8327
- "minLength": 1,
8328
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8329
- "type": "string"
8330
- },
8331
- "output": {
8332
- "maxLength": 256,
8333
- "minLength": 1,
8334
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8335
- "type": "string"
8336
- },
8337
- "state": {
8338
- "maxLength": 256,
8339
- "minLength": 1,
8340
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8341
- "type": "string"
8342
- }
8343
- },
8344
- "required": ["input", "state", "output"],
8345
- "type": "object"
8346
- }
8347
- },
8348
- "required": [
8349
- "graphDefinitionId",
8350
- "graphVersion",
8351
- "schemaVersion",
8352
- "nodes",
8353
- "edges",
8354
- "schemas",
8355
- "requiredCapabilities",
8356
- "compatibility"
8357
- ],
8358
- "type": "object"
8359
- },
8360
- "digestVersion": { "const": "canonical-json-v1", "type": "string" },
8361
- "lifecycle": {
8362
- "enum": ["published", "deprecated", "revoked"],
8363
- "type": "string"
8364
- },
8365
- "publishedAt": {
8366
- "format": "date-time",
8367
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
8368
- "type": "string"
8369
- },
8370
- "reason": { "maxLength": 1024, "minLength": 1, "type": "string" },
8371
- "reference": {
8372
- "additionalProperties": false,
8373
- "properties": {
8374
- "contentDigest": {
8375
- "pattern": "^sha256:[a-f0-9]{64}$",
8376
- "type": "string"
8377
- },
8378
- "graphDefinitionId": {
8379
- "maxLength": 256,
8380
- "minLength": 1,
8381
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8382
- "type": "string"
8383
- },
8384
- "graphVersion": {
8385
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8386
- "type": "string"
8387
- }
8388
- },
8389
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
8390
- "type": "object"
8391
- },
8392
- "revision": {
8393
- "exclusiveMinimum": 0,
8394
- "maximum": 9007199254740991,
8395
- "type": "integer"
8396
- }
8397
- },
8398
- "required": [
8399
- "reference",
8400
- "revision",
8401
- "lifecycle",
8402
- "content",
8403
- "publishedAt",
8404
- "changedAt"
8405
- ],
8406
- "type": "object"
8407
- }
8408
- },
8409
- "required": ["definition"],
8410
- "type": "object"
8411
- },
8412
- "requestId": {}
8413
- },
8414
- "required": ["contractVersion", "requestId", "correlation", "data"],
8415
- "type": "object"
8416
- }
8417
- }
8418
- },
8419
- "description": "Successful response"
8420
- },
8421
- "default": {
8422
- "content": {
8423
- "application/json": {
8424
- "schema": {
8425
- "additionalProperties": false,
8426
- "properties": {
8427
- "contractVersion": {
8428
- "additionalProperties": false,
8429
- "properties": {
8430
- "major": {
8431
- "exclusiveMinimum": 0,
8432
- "maximum": 9007199254740991,
8433
- "type": "integer"
8434
- },
8435
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8436
- },
8437
- "required": ["major", "minor"],
8438
- "type": "object"
8439
- },
8440
- "correlation": {
8441
- "additionalProperties": false,
8442
- "properties": {
8443
- "causationCommandId": {},
8444
- "parentEventId": {},
8445
- "traceId": {}
8446
- },
8447
- "required": ["traceId"],
8448
- "type": "object"
8449
- },
8450
- "error": {
8451
- "additionalProperties": false,
8452
- "properties": {
8453
- "class": {
8454
- "enum": [
8455
- "validation",
8456
- "authentication",
8457
- "authorization",
8458
- "conflict",
8459
- "stale_reference",
8460
- "capability_mismatch",
8461
- "runtime_unavailable",
8462
- "internal"
8463
- ],
8464
- "type": "string"
8465
- },
8466
- "code": {
8467
- "maxLength": 96,
8468
- "minLength": 1,
8469
- "pattern": "^[A-Z][A-Z0-9_]*$",
8470
- "type": "string"
8471
- },
8472
- "details": {
8473
- "additionalProperties": {},
8474
- "propertyNames": { "maxLength": 64, "type": "string" },
8475
- "type": "object"
8476
- },
8477
- "message": { "maxLength": 512, "minLength": 1, "type": "string" },
8478
- "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
8479
- "retryable": { "type": "boolean" },
8480
- "source": {
8481
- "enum": [
8482
- "client",
8483
- "auth",
8484
- "policy",
8485
- "runtime",
8486
- "provider",
8487
- "persistence",
8488
- "workflow",
8489
- "system"
8490
- ],
8491
- "type": "string"
8492
- }
8493
- },
8494
- "required": ["class", "code", "message", "retryable", "source"],
8495
- "type": "object"
8496
- },
8497
- "requestId": {}
8498
- },
8499
- "required": ["contractVersion", "requestId", "correlation", "error"],
8500
- "type": "object"
8501
- }
8502
- }
8503
- },
8504
- "description": "Normalized error response"
8505
- }
8506
- },
8507
- "security": [{ "serviceBearer": [] }]
8508
- }
8509
- },
8510
- "/v1/graphs/publish": {
8511
- "post": {
8512
- "operationId": "graph.publish",
8513
- "requestBody": {
8514
- "content": {
8515
- "application/json": {
8516
- "schema": {
8517
- "additionalProperties": false,
8518
- "properties": {
8519
- "caller": {
8520
- "properties": {
8521
- "servicePrincipalId": {
8522
- "maxLength": 64,
8523
- "minLength": 5,
8524
- "pattern": "^svc_[a-z][a-z0-9-]*$",
8525
- "type": "string"
8526
- }
8527
- },
8528
- "required": ["servicePrincipalId"],
8529
- "type": "object"
8530
- },
8531
- "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
8532
- "contractVersion": {
8533
- "additionalProperties": false,
8534
- "properties": {
8535
- "major": {
8536
- "exclusiveMinimum": 0,
8537
- "maximum": 9007199254740991,
8538
- "type": "integer"
8539
- },
8540
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8541
- },
8542
- "required": ["major", "minor"],
8543
- "type": "object"
8544
- },
8545
- "correlation": {
8546
- "properties": {
8547
- "causationCommandId": {
8548
- "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
8549
- "type": "string"
8550
- },
8551
- "parentEventId": {
8552
- "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
8553
- "type": "string"
8554
- },
8555
- "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
8556
- },
8557
- "required": ["traceId"],
8558
- "type": "object"
8559
- },
8560
- "idempotencyKey": {
8561
- "maxLength": 128,
8562
- "minLength": 16,
8563
- "pattern": "^[A-Za-z0-9._:-]+$",
8564
- "type": "string"
8565
- },
8566
- "issuedAt": {
8567
- "format": "date-time",
8568
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
8569
- "type": "string"
8570
- },
8571
- "operation": { "const": "graph.publish", "type": "string" },
8572
- "payload": {
8573
- "additionalProperties": false,
8574
- "properties": {
8575
- "definition": {
8576
- "additionalProperties": false,
8577
- "properties": {
8578
- "compatibility": {
8579
- "additionalProperties": false,
8580
- "properties": {
8581
- "adapterVersions": {
8582
- "items": {
8583
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8584
- "type": "string"
8585
- },
8586
- "minItems": 1,
8587
- "type": "array"
8588
- },
8589
- "compilerVersions": {
8590
- "items": {
8591
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8592
- "type": "string"
8593
- },
8594
- "minItems": 1,
8595
- "type": "array"
8596
- },
8597
- "contractMajorVersions": {
8598
- "items": {
8599
- "exclusiveMinimum": 0,
8600
- "maximum": 9007199254740991,
8601
- "type": "integer"
8602
- },
8603
- "minItems": 1,
8604
- "type": "array"
8605
- }
8606
- },
8607
- "required": [
8608
- "contractMajorVersions",
8609
- "compilerVersions",
8610
- "adapterVersions"
8611
- ],
8612
- "type": "object"
8613
- },
8614
- "edges": {
8615
- "items": {
8616
- "additionalProperties": false,
8617
- "properties": {
8618
- "from": {
8619
- "anyOf": [
8620
- {
8621
- "maxLength": 128,
8622
- "minLength": 1,
8623
- "pattern": "^[a-z][a-z0-9._-]*$",
8624
- "type": "string"
8625
- },
8626
- { "const": "__start__", "type": "string" }
8627
- ]
8628
- },
8629
- "to": {
8630
- "anyOf": [
8631
- {
8632
- "maxLength": 128,
8633
- "minLength": 1,
8634
- "pattern": "^[a-z][a-z0-9._-]*$",
8635
- "type": "string"
8636
- },
8637
- { "const": "__end__", "type": "string" }
8638
- ]
8639
- },
8640
- "when": {
8641
- "additionalProperties": false,
8642
- "properties": {
8643
- "equals": {
8644
- "anyOf": [
8645
- { "maxLength": 4096, "type": "string" },
8646
- { "type": "number" },
8647
- { "type": "boolean" },
8648
- { "type": "null" }
8649
- ]
8650
- },
8651
- "path": {
8652
- "items": {
8653
- "maxLength": 256,
8654
- "minLength": 1,
8655
- "type": "string"
8656
- },
8657
- "maxItems": 16,
8658
- "minItems": 1,
8659
- "type": "array"
8660
- }
8661
- },
8662
- "required": ["path", "equals"],
8663
- "type": "object"
8664
- }
8665
- },
8666
- "required": ["from", "to"],
8667
- "type": "object"
8668
- },
8669
- "maxItems": 1024,
8670
- "minItems": 1,
8671
- "type": "array"
8672
- },
8673
- "graphDefinitionId": {
8674
- "maxLength": 256,
8675
- "minLength": 1,
8676
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8677
- "type": "string"
8678
- },
8679
- "graphVersion": {
8680
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8681
- "type": "string"
8682
- },
8683
- "nodes": {
8684
- "items": {
8685
- "additionalProperties": false,
8686
- "properties": {
8687
- "join": { "enum": ["all", "any"], "type": "string" },
8688
- "node": {
8689
- "maxLength": 128,
8690
- "minLength": 1,
8691
- "pattern": "^[a-z][a-z0-9._-]*$",
8692
- "type": "string"
8693
- },
8694
- "operation": {
8695
- "oneOf": [
8696
- {
8697
- "additionalProperties": false,
8698
- "properties": {
8699
- "kind": {
8700
- "enum": ["runtime", "model", "delegation"],
8701
- "type": "string"
8702
- },
8703
- "name": {
8704
- "maxLength": 256,
8705
- "minLength": 1,
8706
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8707
- "type": "string"
8708
- }
8709
- },
8710
- "required": ["kind", "name"],
8711
- "type": "object"
8712
- },
8713
- {
8714
- "additionalProperties": false,
8715
- "properties": {
8716
- "kind": { "const": "tool", "type": "string" },
8717
- "name": {
8718
- "maxLength": 256,
8719
- "minLength": 1,
8720
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8721
- "type": "string"
8722
- },
8723
- "toolPin": {
8724
- "additionalProperties": false,
8725
- "properties": {
8726
- "contentDigest": {
8727
- "pattern": "^sha256:[a-f0-9]{64}$",
8728
- "type": "string"
8729
- },
8730
- "operation": {
8731
- "maxLength": 128,
8732
- "minLength": 1,
8733
- "pattern": "^[a-z][a-z0-9.-]*$",
8734
- "type": "string"
8735
- },
8736
- "toolDefinitionId": {
8737
- "pattern": "^tld_[0-9A-HJKMNP-TV-Z]{26}$",
8738
- "type": "string"
8739
- },
8740
- "toolVersionId": {
8741
- "pattern": "^tlv_[0-9A-HJKMNP-TV-Z]{26}$",
8742
- "type": "string"
8743
- }
8744
- },
8745
- "required": [
8746
- "toolDefinitionId",
8747
- "toolVersionId",
8748
- "contentDigest",
8749
- "operation"
8750
- ],
8751
- "type": "object"
8752
- }
8753
- },
8754
- "required": ["kind", "name"],
8755
- "type": "object"
8756
- }
8757
- ]
8758
- }
8759
- },
8760
- "required": ["node", "operation"],
8761
- "type": "object"
8762
- },
8763
- "maxItems": 256,
8764
- "minItems": 1,
8765
- "type": "array"
8766
- },
8767
- "requiredCapabilities": {
8768
- "items": {
8769
- "maxLength": 128,
8770
- "minLength": 1,
8771
- "pattern": "^[a-z][a-z0-9.-]*$",
8772
- "type": "string"
8773
- },
8774
- "maxItems": 128,
8775
- "type": "array"
8776
- },
8777
- "schemaVersion": { "const": 1, "type": "number" },
8778
- "schemas": {
8779
- "additionalProperties": false,
8780
- "properties": {
8781
- "input": {
8782
- "maxLength": 256,
8783
- "minLength": 1,
8784
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8785
- "type": "string"
8786
- },
8787
- "output": {
8788
- "maxLength": 256,
8789
- "minLength": 1,
8790
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8791
- "type": "string"
8792
- },
8793
- "state": {
8794
- "maxLength": 256,
8795
- "minLength": 1,
8796
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8797
- "type": "string"
8798
- }
8799
- },
8800
- "required": ["input", "state", "output"],
8801
- "type": "object"
8802
- }
8803
- },
8804
- "required": [
8805
- "graphDefinitionId",
8806
- "graphVersion",
8807
- "schemaVersion",
8808
- "nodes",
8809
- "edges",
8810
- "schemas",
8811
- "requiredCapabilities",
8812
- "compatibility"
8813
- ],
8814
- "type": "object"
8815
- }
8816
- },
8817
- "required": ["definition"],
8818
- "type": "object"
8819
- },
8820
- "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
8821
- "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
8822
- "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
8823
- },
8824
- "required": [
8825
- "caller",
8826
- "contractVersion",
8827
- "requestId",
8828
- "workspaceId",
8829
- "correlation",
8830
- "commandId",
8831
- "idempotencyKey",
8832
- "payloadHash",
8833
- "operation",
8834
- "issuedAt",
8835
- "payload"
8836
- ],
8837
- "type": "object"
8838
- }
8839
- }
8840
- },
8841
- "required": true
8842
- },
8843
- "responses": {
8844
- "200": {
8845
- "content": {
8846
- "application/json": {
8847
- "schema": {
8848
- "additionalProperties": false,
8849
- "properties": {
8850
- "contractVersion": {
8851
- "additionalProperties": false,
8852
- "properties": {
8853
- "major": {
8854
- "exclusiveMinimum": 0,
8855
- "maximum": 9007199254740991,
8856
- "type": "integer"
8857
- },
8858
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8859
- },
8860
- "required": ["major", "minor"],
8861
- "type": "object"
8862
- },
8863
- "correlation": {
8864
- "additionalProperties": false,
8865
- "properties": {
8866
- "causationCommandId": {},
8867
- "parentEventId": {},
8868
- "traceId": {}
8869
- },
8870
- "required": ["traceId"],
8871
- "type": "object"
8872
- },
8873
- "data": {
8874
- "additionalProperties": false,
8875
- "properties": {
8876
- "definition": {
8877
- "additionalProperties": false,
8878
- "properties": {
8879
- "changedAt": {
8880
- "format": "date-time",
8881
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
8882
- "type": "string"
8883
- },
8884
- "content": {
8885
- "additionalProperties": false,
8886
- "properties": {
8887
- "compatibility": {
8888
- "additionalProperties": false,
8889
- "properties": {
8890
- "adapterVersions": {
8891
- "items": {
8892
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8893
- "type": "string"
8894
- },
8895
- "minItems": 1,
8896
- "type": "array"
8897
- },
8898
- "compilerVersions": {
8899
- "items": {
8900
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8901
- "type": "string"
8902
- },
8903
- "minItems": 1,
8904
- "type": "array"
8905
- },
8906
- "contractMajorVersions": {
8907
- "items": {
8908
- "exclusiveMinimum": 0,
8909
- "maximum": 9007199254740991,
8910
- "type": "integer"
8911
- },
8912
- "minItems": 1,
8913
- "type": "array"
8914
- }
8915
- },
8916
- "required": [
8917
- "contractMajorVersions",
8918
- "compilerVersions",
8919
- "adapterVersions"
8920
- ],
8921
- "type": "object"
8922
- },
8923
- "edges": {
8924
- "items": {
8925
- "additionalProperties": false,
8926
- "properties": {
8927
- "from": {
8928
- "anyOf": [
8929
- {
8930
- "maxLength": 128,
8931
- "minLength": 1,
8932
- "pattern": "^[a-z][a-z0-9._-]*$",
8933
- "type": "string"
8934
- },
8935
- { "const": "__start__", "type": "string" }
8936
- ]
8937
- },
8938
- "to": {
8939
- "anyOf": [
8940
- {
8941
- "maxLength": 128,
8942
- "minLength": 1,
8943
- "pattern": "^[a-z][a-z0-9._-]*$",
8944
- "type": "string"
8945
- },
8946
- { "const": "__end__", "type": "string" }
8947
- ]
8948
- },
8949
- "when": {
8950
- "additionalProperties": false,
8951
- "properties": {
8952
- "equals": {
8953
- "anyOf": [
8954
- { "maxLength": 4096, "type": "string" },
8955
- { "type": "number" },
8956
- { "type": "boolean" },
8957
- { "type": "null" }
8958
- ]
8959
- },
8960
- "path": {
8961
- "items": {
8962
- "maxLength": 256,
8963
- "minLength": 1,
8964
- "type": "string"
8965
- },
8966
- "maxItems": 16,
8967
- "minItems": 1,
8968
- "type": "array"
8969
- }
8970
- },
8971
- "required": ["path", "equals"],
8972
- "type": "object"
8973
- }
8974
- },
8975
- "required": ["from", "to"],
8976
- "type": "object"
8977
- },
8978
- "maxItems": 1024,
8979
- "minItems": 1,
8980
- "type": "array"
8981
- },
8982
- "graphDefinitionId": {
8983
- "maxLength": 256,
8984
- "minLength": 1,
8985
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
8986
- "type": "string"
8987
- },
8988
- "graphVersion": {
8989
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
8990
- "type": "string"
8991
- },
8992
- "nodes": {
8993
- "items": {
8994
- "additionalProperties": false,
8995
- "properties": {
8996
- "join": { "enum": ["all", "any"], "type": "string" },
8997
- "node": {
8998
- "maxLength": 128,
8999
- "minLength": 1,
9000
- "pattern": "^[a-z][a-z0-9._-]*$",
9001
- "type": "string"
9002
- },
9003
- "operation": {
9004
- "oneOf": [
9005
- {
9006
- "additionalProperties": false,
9007
- "properties": {
9008
- "kind": {
9009
- "enum": ["runtime", "model", "delegation"],
9010
- "type": "string"
9011
- },
9012
- "name": {
9013
- "maxLength": 256,
9014
- "minLength": 1,
9015
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9016
- "type": "string"
9017
- }
9018
- },
9019
- "required": ["kind", "name"],
9020
- "type": "object"
9021
- },
9022
- {
9023
- "additionalProperties": false,
9024
- "properties": {
9025
- "kind": { "const": "tool", "type": "string" },
9026
- "name": {
9027
- "maxLength": 256,
9028
- "minLength": 1,
9029
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9030
- "type": "string"
9031
- },
9032
- "toolPin": {
9033
- "additionalProperties": false,
9034
- "properties": {
9035
- "contentDigest": {
9036
- "pattern": "^sha256:[a-f0-9]{64}$",
9037
- "type": "string"
9038
- },
9039
- "operation": {
9040
- "maxLength": 128,
9041
- "minLength": 1,
9042
- "pattern": "^[a-z][a-z0-9.-]*$",
9043
- "type": "string"
9044
- },
9045
- "toolDefinitionId": {},
9046
- "toolVersionId": {}
9047
- },
9048
- "required": [
9049
- "toolDefinitionId",
9050
- "toolVersionId",
9051
- "contentDigest",
9052
- "operation"
9053
- ],
9054
- "type": "object"
9055
- }
9056
- },
9057
- "required": ["kind", "name"],
9058
- "type": "object"
9059
- }
9060
- ]
9061
- }
9062
- },
9063
- "required": ["node", "operation"],
9064
- "type": "object"
9065
- },
9066
- "maxItems": 256,
9067
- "minItems": 1,
9068
- "type": "array"
9069
- },
9070
- "requiredCapabilities": {
9071
- "items": {
9072
- "maxLength": 128,
9073
- "minLength": 1,
9074
- "pattern": "^[a-z][a-z0-9.-]*$",
9075
- "type": "string"
9076
- },
9077
- "maxItems": 128,
9078
- "type": "array"
9079
- },
9080
- "schemaVersion": { "const": 1, "type": "number" },
9081
- "schemas": {
9082
- "additionalProperties": false,
9083
- "properties": {
9084
- "input": {
9085
- "maxLength": 256,
9086
- "minLength": 1,
9087
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9088
- "type": "string"
9089
- },
9090
- "output": {
9091
- "maxLength": 256,
9092
- "minLength": 1,
9093
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9094
- "type": "string"
9095
- },
9096
- "state": {
9097
- "maxLength": 256,
9098
- "minLength": 1,
9099
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9100
- "type": "string"
9101
- }
9102
- },
9103
- "required": ["input", "state", "output"],
9104
- "type": "object"
9105
- }
9106
- },
9107
- "required": [
9108
- "graphDefinitionId",
9109
- "graphVersion",
9110
- "schemaVersion",
9111
- "nodes",
9112
- "edges",
9113
- "schemas",
9114
- "requiredCapabilities",
9115
- "compatibility"
9116
- ],
9117
- "type": "object"
9118
- },
9119
- "digestVersion": { "const": "canonical-json-v1", "type": "string" },
9120
- "lifecycle": {
9121
- "enum": ["published", "deprecated", "revoked"],
9122
- "type": "string"
9123
- },
9124
- "publishedAt": {
9125
- "format": "date-time",
9126
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
9127
- "type": "string"
9128
- },
9129
- "reason": { "maxLength": 1024, "minLength": 1, "type": "string" },
9130
- "reference": {
9131
- "additionalProperties": false,
9132
- "properties": {
9133
- "contentDigest": {
9134
- "pattern": "^sha256:[a-f0-9]{64}$",
9135
- "type": "string"
9136
- },
9137
- "graphDefinitionId": {
9138
- "maxLength": 256,
9139
- "minLength": 1,
9140
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9141
- "type": "string"
9142
- },
9143
- "graphVersion": {
9144
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9145
- "type": "string"
9146
- }
9147
- },
9148
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
9149
- "type": "object"
9150
- },
9151
- "revision": {
9152
- "exclusiveMinimum": 0,
9153
- "maximum": 9007199254740991,
9154
- "type": "integer"
9155
- }
9156
- },
9157
- "required": [
9158
- "reference",
9159
- "revision",
9160
- "lifecycle",
9161
- "content",
9162
- "publishedAt",
9163
- "changedAt"
9164
- ],
9165
- "type": "object"
9166
- }
9167
- },
9168
- "required": ["definition"],
9169
- "type": "object"
9170
- },
9171
- "requestId": {}
9172
- },
9173
- "required": ["contractVersion", "requestId", "correlation", "data"],
9174
- "type": "object"
9175
- }
9176
- }
9177
- },
9178
- "description": "Successful response"
9179
- },
9180
- "default": {
9181
- "content": {
9182
- "application/json": {
9183
- "schema": {
9184
- "additionalProperties": false,
9185
- "properties": {
9186
- "contractVersion": {
9187
- "additionalProperties": false,
9188
- "properties": {
9189
- "major": {
9190
- "exclusiveMinimum": 0,
9191
- "maximum": 9007199254740991,
9192
- "type": "integer"
9193
- },
9194
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9195
- },
9196
- "required": ["major", "minor"],
9197
- "type": "object"
9198
- },
9199
- "correlation": {
9200
- "additionalProperties": false,
9201
- "properties": {
9202
- "causationCommandId": {},
9203
- "parentEventId": {},
9204
- "traceId": {}
9205
- },
9206
- "required": ["traceId"],
9207
- "type": "object"
9208
- },
9209
- "error": {
9210
- "additionalProperties": false,
9211
- "properties": {
9212
- "class": {
9213
- "enum": [
9214
- "validation",
9215
- "authentication",
9216
- "authorization",
9217
- "conflict",
9218
- "stale_reference",
9219
- "capability_mismatch",
9220
- "runtime_unavailable",
9221
- "internal"
9222
- ],
9223
- "type": "string"
9224
- },
9225
- "code": {
9226
- "maxLength": 96,
9227
- "minLength": 1,
9228
- "pattern": "^[A-Z][A-Z0-9_]*$",
9229
- "type": "string"
9230
- },
9231
- "details": {
9232
- "additionalProperties": {},
9233
- "propertyNames": { "maxLength": 64, "type": "string" },
9234
- "type": "object"
9235
- },
9236
- "message": { "maxLength": 512, "minLength": 1, "type": "string" },
9237
- "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
9238
- "retryable": { "type": "boolean" },
9239
- "source": {
9240
- "enum": [
9241
- "client",
9242
- "auth",
9243
- "policy",
9244
- "runtime",
9245
- "provider",
9246
- "persistence",
9247
- "workflow",
9248
- "system"
9249
- ],
9250
- "type": "string"
9251
- }
9252
- },
9253
- "required": ["class", "code", "message", "retryable", "source"],
9254
- "type": "object"
9255
- },
9256
- "requestId": {}
9257
- },
9258
- "required": ["contractVersion", "requestId", "correlation", "error"],
9259
- "type": "object"
9260
- }
9261
- }
9262
- },
9263
- "description": "Normalized error response"
9264
- }
9265
- },
9266
- "security": [{ "serviceBearer": [] }]
9267
- }
9268
- },
9269
- "/v1/graphs/resolve": {
9270
- "post": {
9271
- "operationId": "graph.resolve",
9272
- "requestBody": {
9273
- "content": {
9274
- "application/json": {
9275
- "schema": {
9276
- "additionalProperties": false,
9277
- "properties": {
9278
- "caller": {
9279
- "properties": {
9280
- "servicePrincipalId": {
9281
- "maxLength": 64,
9282
- "minLength": 5,
9283
- "pattern": "^svc_[a-z][a-z0-9-]*$",
9284
- "type": "string"
9285
- }
9286
- },
9287
- "required": ["servicePrincipalId"],
9288
- "type": "object"
9289
- },
9290
- "contractVersion": {
9291
- "additionalProperties": false,
9292
- "properties": {
9293
- "major": {
9294
- "exclusiveMinimum": 0,
9295
- "maximum": 9007199254740991,
9296
- "type": "integer"
9297
- },
9298
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9299
- },
9300
- "required": ["major", "minor"],
9301
- "type": "object"
9302
- },
9303
- "correlation": {
9304
- "properties": {
9305
- "causationCommandId": {
9306
- "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
9307
- "type": "string"
9308
- },
9309
- "parentEventId": {
9310
- "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
9311
- "type": "string"
9312
- },
9313
- "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9314
- },
9315
- "required": ["traceId"],
9316
- "type": "object"
9317
- },
9318
- "operation": { "const": "graph.resolve", "type": "string" },
9319
- "parameters": {
9320
- "additionalProperties": false,
9321
- "properties": {
9322
- "reference": {
9323
- "additionalProperties": false,
9324
- "properties": {
9325
- "contentDigest": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
9326
- "graphDefinitionId": {
9327
- "maxLength": 256,
9328
- "minLength": 1,
9329
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9330
- "type": "string"
9331
- },
9332
- "graphVersion": {
9333
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9334
- "type": "string"
9335
- }
9336
- },
9337
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
9338
- "type": "object"
9339
- }
9340
- },
9341
- "required": ["reference"],
9342
- "type": "object"
9343
- },
9344
- "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9345
- "requestedAt": {
9346
- "format": "date-time",
9347
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
9348
- "type": "string"
9349
- },
9350
- "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9351
- },
9352
- "required": [
9353
- "caller",
9354
- "contractVersion",
9355
- "requestId",
9356
- "workspaceId",
9357
- "correlation",
9358
- "operation",
9359
- "requestedAt",
9360
- "parameters"
9361
- ],
9362
- "type": "object"
9363
- }
9364
- }
9365
- },
9366
- "required": true
9367
- },
9368
- "responses": {
9369
- "200": {
9370
- "content": {
9371
- "application/json": {
9372
- "schema": {
9373
- "additionalProperties": false,
9374
- "properties": {
9375
- "contractVersion": {
9376
- "additionalProperties": false,
9377
- "properties": {
9378
- "major": {
9379
- "exclusiveMinimum": 0,
9380
- "maximum": 9007199254740991,
9381
- "type": "integer"
9382
- },
9383
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9384
- },
9385
- "required": ["major", "minor"],
9386
- "type": "object"
9387
- },
9388
- "correlation": {
9389
- "additionalProperties": false,
9390
- "properties": {
9391
- "causationCommandId": {},
9392
- "parentEventId": {},
9393
- "traceId": {}
9394
- },
9395
- "required": ["traceId"],
9396
- "type": "object"
9397
- },
9398
- "data": {
9399
- "additionalProperties": false,
9400
- "properties": {
9401
- "definition": {
9402
- "additionalProperties": false,
9403
- "properties": {
9404
- "changedAt": {
9405
- "format": "date-time",
9406
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
9407
- "type": "string"
9408
- },
9409
- "content": {
9410
- "additionalProperties": false,
9411
- "properties": {
9412
- "compatibility": {
9413
- "additionalProperties": false,
9414
- "properties": {
9415
- "adapterVersions": {
9416
- "items": {
9417
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9418
- "type": "string"
9419
- },
9420
- "minItems": 1,
9421
- "type": "array"
9422
- },
9423
- "compilerVersions": {
9424
- "items": {
9425
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9426
- "type": "string"
9427
- },
9428
- "minItems": 1,
9429
- "type": "array"
9430
- },
9431
- "contractMajorVersions": {
9432
- "items": {
9433
- "exclusiveMinimum": 0,
9434
- "maximum": 9007199254740991,
9435
- "type": "integer"
9436
- },
9437
- "minItems": 1,
9438
- "type": "array"
9439
- }
9440
- },
9441
- "required": [
9442
- "contractMajorVersions",
9443
- "compilerVersions",
9444
- "adapterVersions"
9445
- ],
9446
- "type": "object"
9447
- },
9448
- "edges": {
9449
- "items": {
9450
- "additionalProperties": false,
9451
- "properties": {
9452
- "from": {
9453
- "anyOf": [
9454
- {
9455
- "maxLength": 128,
9456
- "minLength": 1,
9457
- "pattern": "^[a-z][a-z0-9._-]*$",
9458
- "type": "string"
9459
- },
9460
- { "const": "__start__", "type": "string" }
9461
- ]
9462
- },
9463
- "to": {
9464
- "anyOf": [
9465
- {
9466
- "maxLength": 128,
9467
- "minLength": 1,
9468
- "pattern": "^[a-z][a-z0-9._-]*$",
9469
- "type": "string"
9470
- },
9471
- { "const": "__end__", "type": "string" }
9472
- ]
9473
- },
9474
- "when": {
9475
- "additionalProperties": false,
9476
- "properties": {
9477
- "equals": {
9478
- "anyOf": [
9479
- { "maxLength": 4096, "type": "string" },
9480
- { "type": "number" },
9481
- { "type": "boolean" },
9482
- { "type": "null" }
9483
- ]
9484
- },
9485
- "path": {
9486
- "items": {
9487
- "maxLength": 256,
9488
- "minLength": 1,
9489
- "type": "string"
9490
- },
9491
- "maxItems": 16,
9492
- "minItems": 1,
9493
- "type": "array"
9494
- }
9495
- },
9496
- "required": ["path", "equals"],
9497
- "type": "object"
9498
- }
9499
- },
9500
- "required": ["from", "to"],
9501
- "type": "object"
9502
- },
9503
- "maxItems": 1024,
9504
- "minItems": 1,
9505
- "type": "array"
9506
- },
9507
- "graphDefinitionId": {
9508
- "maxLength": 256,
9509
- "minLength": 1,
9510
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9511
- "type": "string"
9512
- },
9513
- "graphVersion": {
9514
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9515
- "type": "string"
9516
- },
9517
- "nodes": {
9518
- "items": {
9519
- "additionalProperties": false,
9520
- "properties": {
9521
- "join": { "enum": ["all", "any"], "type": "string" },
9522
- "node": {
9523
- "maxLength": 128,
9524
- "minLength": 1,
9525
- "pattern": "^[a-z][a-z0-9._-]*$",
9526
- "type": "string"
9527
- },
9528
- "operation": {
9529
- "oneOf": [
9530
- {
9531
- "additionalProperties": false,
9532
- "properties": {
9533
- "kind": {
9534
- "enum": ["runtime", "model", "delegation"],
9535
- "type": "string"
9536
- },
9537
- "name": {
9538
- "maxLength": 256,
9539
- "minLength": 1,
9540
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9541
- "type": "string"
9542
- }
9543
- },
9544
- "required": ["kind", "name"],
9545
- "type": "object"
9546
- },
9547
- {
9548
- "additionalProperties": false,
9549
- "properties": {
9550
- "kind": { "const": "tool", "type": "string" },
9551
- "name": {
9552
- "maxLength": 256,
9553
- "minLength": 1,
9554
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9555
- "type": "string"
9556
- },
9557
- "toolPin": {
9558
- "additionalProperties": false,
9559
- "properties": {
9560
- "contentDigest": {
9561
- "pattern": "^sha256:[a-f0-9]{64}$",
9562
- "type": "string"
9563
- },
9564
- "operation": {
9565
- "maxLength": 128,
9566
- "minLength": 1,
9567
- "pattern": "^[a-z][a-z0-9.-]*$",
9568
- "type": "string"
9569
- },
9570
- "toolDefinitionId": {},
9571
- "toolVersionId": {}
9572
- },
9573
- "required": [
9574
- "toolDefinitionId",
9575
- "toolVersionId",
9576
- "contentDigest",
9577
- "operation"
9578
- ],
9579
- "type": "object"
9580
- }
9581
- },
9582
- "required": ["kind", "name"],
9583
- "type": "object"
9584
- }
9585
- ]
9586
- }
9587
- },
9588
- "required": ["node", "operation"],
9589
- "type": "object"
9590
- },
9591
- "maxItems": 256,
9592
- "minItems": 1,
9593
- "type": "array"
9594
- },
9595
- "requiredCapabilities": {
9596
- "items": {
9597
- "maxLength": 128,
9598
- "minLength": 1,
9599
- "pattern": "^[a-z][a-z0-9.-]*$",
9600
- "type": "string"
9601
- },
9602
- "maxItems": 128,
9603
- "type": "array"
9604
- },
9605
- "schemaVersion": { "const": 1, "type": "number" },
9606
- "schemas": {
9607
- "additionalProperties": false,
9608
- "properties": {
9609
- "input": {
9610
- "maxLength": 256,
9611
- "minLength": 1,
9612
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9613
- "type": "string"
9614
- },
9615
- "output": {
9616
- "maxLength": 256,
9617
- "minLength": 1,
9618
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9619
- "type": "string"
9620
- },
9621
- "state": {
9622
- "maxLength": 256,
9623
- "minLength": 1,
9624
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9625
- "type": "string"
9626
- }
9627
- },
9628
- "required": ["input", "state", "output"],
9629
- "type": "object"
9630
- }
9631
- },
9632
- "required": [
9633
- "graphDefinitionId",
9634
- "graphVersion",
9635
- "schemaVersion",
9636
- "nodes",
9637
- "edges",
9638
- "schemas",
9639
- "requiredCapabilities",
9640
- "compatibility"
9641
- ],
9642
- "type": "object"
9643
- },
9644
- "digestVersion": { "const": "canonical-json-v1", "type": "string" },
9645
- "lifecycle": {
9646
- "enum": ["published", "deprecated", "revoked"],
9647
- "type": "string"
9648
- },
9649
- "publishedAt": {
9650
- "format": "date-time",
9651
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
9652
- "type": "string"
9653
- },
9654
- "reason": { "maxLength": 1024, "minLength": 1, "type": "string" },
9655
- "reference": {
9656
- "additionalProperties": false,
9657
- "properties": {
9658
- "contentDigest": {
9659
- "pattern": "^sha256:[a-f0-9]{64}$",
9660
- "type": "string"
9661
- },
9662
- "graphDefinitionId": {
9663
- "maxLength": 256,
9664
- "minLength": 1,
9665
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9666
- "type": "string"
9667
- },
9668
- "graphVersion": {
9669
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9670
- "type": "string"
9671
- }
9672
- },
9673
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
9674
- "type": "object"
9675
- },
9676
- "revision": {
9677
- "exclusiveMinimum": 0,
9678
- "maximum": 9007199254740991,
9679
- "type": "integer"
9680
- }
9681
- },
9682
- "required": [
9683
- "reference",
9684
- "revision",
9685
- "lifecycle",
9686
- "content",
9687
- "publishedAt",
9688
- "changedAt"
9689
- ],
9690
- "type": "object"
9691
- }
9692
- },
9693
- "required": ["definition"],
9694
- "type": "object"
9695
- },
9696
- "requestId": {}
9697
- },
9698
- "required": ["contractVersion", "requestId", "correlation", "data"],
9699
- "type": "object"
9700
- }
9701
- }
9702
- },
9703
- "description": "Successful response"
9704
- },
9705
- "default": {
9706
- "content": {
9707
- "application/json": {
9708
- "schema": {
9709
- "additionalProperties": false,
9710
- "properties": {
9711
- "contractVersion": {
9712
- "additionalProperties": false,
9713
- "properties": {
9714
- "major": {
9715
- "exclusiveMinimum": 0,
9716
- "maximum": 9007199254740991,
9717
- "type": "integer"
9718
- },
9719
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9720
- },
9721
- "required": ["major", "minor"],
9722
- "type": "object"
9723
- },
9724
- "correlation": {
9725
- "additionalProperties": false,
9726
- "properties": {
9727
- "causationCommandId": {},
9728
- "parentEventId": {},
9729
- "traceId": {}
9730
- },
9731
- "required": ["traceId"],
9732
- "type": "object"
9733
- },
9734
- "error": {
9735
- "additionalProperties": false,
9736
- "properties": {
9737
- "class": {
9738
- "enum": [
9739
- "validation",
9740
- "authentication",
9741
- "authorization",
9742
- "conflict",
9743
- "stale_reference",
9744
- "capability_mismatch",
9745
- "runtime_unavailable",
9746
- "internal"
9747
- ],
9748
- "type": "string"
9749
- },
9750
- "code": {
9751
- "maxLength": 96,
9752
- "minLength": 1,
9753
- "pattern": "^[A-Z][A-Z0-9_]*$",
9754
- "type": "string"
9755
- },
9756
- "details": {
9757
- "additionalProperties": {},
9758
- "propertyNames": { "maxLength": 64, "type": "string" },
9759
- "type": "object"
9760
- },
9761
- "message": { "maxLength": 512, "minLength": 1, "type": "string" },
9762
- "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
9763
- "retryable": { "type": "boolean" },
9764
- "source": {
9765
- "enum": [
9766
- "client",
9767
- "auth",
9768
- "policy",
9769
- "runtime",
9770
- "provider",
9771
- "persistence",
9772
- "workflow",
9773
- "system"
9774
- ],
9775
- "type": "string"
9776
- }
9777
- },
9778
- "required": ["class", "code", "message", "retryable", "source"],
9779
- "type": "object"
9780
- },
9781
- "requestId": {}
9782
- },
9783
- "required": ["contractVersion", "requestId", "correlation", "error"],
9784
- "type": "object"
9785
- }
9786
- }
9787
- },
9788
- "description": "Normalized error response"
9789
- }
9790
- },
9791
- "security": [{ "serviceBearer": [] }]
9792
- }
9793
- },
9794
- "/v1/graphs/revoke": {
9795
- "post": {
9796
- "operationId": "graph.revoke",
9797
- "requestBody": {
9798
- "content": {
9799
- "application/json": {
9800
- "schema": {
9801
- "additionalProperties": false,
9802
- "properties": {
9803
- "caller": {
9804
- "properties": {
9805
- "servicePrincipalId": {
9806
- "maxLength": 64,
9807
- "minLength": 5,
9808
- "pattern": "^svc_[a-z][a-z0-9-]*$",
9809
- "type": "string"
9810
- }
9811
- },
9812
- "required": ["servicePrincipalId"],
9813
- "type": "object"
9814
- },
9815
- "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9816
- "contractVersion": {
9817
- "additionalProperties": false,
9818
- "properties": {
9819
- "major": {
9820
- "exclusiveMinimum": 0,
9821
- "maximum": 9007199254740991,
9822
- "type": "integer"
9823
- },
9824
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9825
- },
9826
- "required": ["major", "minor"],
9827
- "type": "object"
9828
- },
9829
- "correlation": {
9830
- "properties": {
9831
- "causationCommandId": {
9832
- "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
9833
- "type": "string"
9834
- },
9835
- "parentEventId": {
9836
- "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
9837
- "type": "string"
9838
- },
9839
- "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9840
- },
9841
- "required": ["traceId"],
9842
- "type": "object"
9843
- },
9844
- "idempotencyKey": {
9845
- "maxLength": 128,
9846
- "minLength": 16,
9847
- "pattern": "^[A-Za-z0-9._:-]+$",
9848
- "type": "string"
9849
- },
9850
- "issuedAt": {
9851
- "format": "date-time",
9852
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
9853
- "type": "string"
9854
- },
9855
- "operation": { "const": "graph.revoke", "type": "string" },
9856
- "payload": {
9857
- "additionalProperties": false,
9858
- "properties": {
9859
- "expectedRevision": {
9860
- "exclusiveMinimum": 0,
9861
- "maximum": 9007199254740991,
9862
- "type": "integer"
9863
- },
9864
- "reason": { "maxLength": 1024, "minLength": 1, "type": "string" },
9865
- "reference": {
9866
- "additionalProperties": false,
9867
- "properties": {
9868
- "contentDigest": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
9869
- "graphDefinitionId": {
9870
- "maxLength": 256,
9871
- "minLength": 1,
9872
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
9873
- "type": "string"
9874
- },
9875
- "graphVersion": {
9876
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9877
- "type": "string"
9878
- }
9879
- },
9880
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
9881
- "type": "object"
9882
- }
9883
- },
9884
- "required": ["reference", "expectedRevision", "reason"],
9885
- "type": "object"
9886
- },
9887
- "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
9888
- "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9889
- "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9890
- },
9891
- "required": [
9892
- "caller",
9893
- "contractVersion",
9894
- "requestId",
9895
- "workspaceId",
9896
- "correlation",
9897
- "commandId",
9898
- "idempotencyKey",
9899
- "payloadHash",
9900
- "operation",
9901
- "issuedAt",
9902
- "payload"
9903
- ],
9904
- "type": "object"
9905
- }
9906
- }
9907
- },
9908
- "required": true
9909
- },
9910
- "responses": {
9911
- "200": {
9912
- "content": {
9913
- "application/json": {
9914
- "schema": {
9915
- "additionalProperties": false,
9916
- "properties": {
9917
- "contractVersion": {
9918
- "additionalProperties": false,
9919
- "properties": {
9920
- "major": {
9921
- "exclusiveMinimum": 0,
9922
- "maximum": 9007199254740991,
9923
- "type": "integer"
9924
- },
9925
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9926
- },
9927
- "required": ["major", "minor"],
9928
- "type": "object"
9929
- },
9930
- "correlation": {
9931
- "additionalProperties": false,
9932
- "properties": {
9933
- "causationCommandId": {},
9934
- "parentEventId": {},
9935
- "traceId": {}
9936
- },
9937
- "required": ["traceId"],
9938
- "type": "object"
9939
- },
9940
- "data": {
9941
- "additionalProperties": false,
9942
- "properties": {
9943
- "definition": {
9944
- "additionalProperties": false,
9945
- "properties": {
9946
- "changedAt": {
9947
- "format": "date-time",
9948
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
9949
- "type": "string"
9950
- },
9951
- "content": {
9952
- "additionalProperties": false,
9953
- "properties": {
9954
- "compatibility": {
9955
- "additionalProperties": false,
9956
- "properties": {
9957
- "adapterVersions": {
9958
- "items": {
9959
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9960
- "type": "string"
9961
- },
9962
- "minItems": 1,
9963
- "type": "array"
9964
- },
9965
- "compilerVersions": {
9966
- "items": {
9967
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
9968
- "type": "string"
9969
- },
9970
- "minItems": 1,
9971
- "type": "array"
9972
- },
9973
- "contractMajorVersions": {
9974
- "items": {
9975
- "exclusiveMinimum": 0,
9976
- "maximum": 9007199254740991,
9977
- "type": "integer"
9978
- },
9979
- "minItems": 1,
9980
- "type": "array"
9981
- }
9982
- },
9983
- "required": [
9984
- "contractMajorVersions",
9985
- "compilerVersions",
9986
- "adapterVersions"
9987
- ],
9988
- "type": "object"
9989
- },
9990
- "edges": {
9991
- "items": {
9992
- "additionalProperties": false,
9993
- "properties": {
9994
- "from": {
9995
- "anyOf": [
9996
- {
9997
- "maxLength": 128,
9998
- "minLength": 1,
9999
- "pattern": "^[a-z][a-z0-9._-]*$",
10000
- "type": "string"
10001
- },
10002
- { "const": "__start__", "type": "string" }
10003
- ]
10004
- },
10005
- "to": {
10006
- "anyOf": [
10007
- {
10008
- "maxLength": 128,
10009
- "minLength": 1,
10010
- "pattern": "^[a-z][a-z0-9._-]*$",
10011
- "type": "string"
10012
- },
10013
- { "const": "__end__", "type": "string" }
10014
- ]
10015
- },
10016
- "when": {
10017
- "additionalProperties": false,
10018
- "properties": {
10019
- "equals": {
10020
- "anyOf": [
10021
- { "maxLength": 4096, "type": "string" },
10022
- { "type": "number" },
10023
- { "type": "boolean" },
10024
- { "type": "null" }
10025
- ]
10026
- },
10027
- "path": {
10028
- "items": {
10029
- "maxLength": 256,
10030
- "minLength": 1,
10031
- "type": "string"
10032
- },
10033
- "maxItems": 16,
10034
- "minItems": 1,
10035
- "type": "array"
10036
- }
10037
- },
10038
- "required": ["path", "equals"],
10039
- "type": "object"
10040
- }
10041
- },
10042
- "required": ["from", "to"],
10043
- "type": "object"
10044
- },
10045
- "maxItems": 1024,
10046
- "minItems": 1,
10047
- "type": "array"
10048
- },
10049
- "graphDefinitionId": {
10050
- "maxLength": 256,
10051
- "minLength": 1,
10052
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
10053
- "type": "string"
10054
- },
10055
- "graphVersion": {
10056
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
10057
- "type": "string"
10058
- },
10059
- "nodes": {
10060
- "items": {
10061
- "additionalProperties": false,
10062
- "properties": {
10063
- "join": { "enum": ["all", "any"], "type": "string" },
10064
- "node": {
10065
- "maxLength": 128,
10066
- "minLength": 1,
10067
- "pattern": "^[a-z][a-z0-9._-]*$",
10068
- "type": "string"
10069
- },
10070
- "operation": {
10071
- "oneOf": [
10072
- {
10073
- "additionalProperties": false,
10074
- "properties": {
10075
- "kind": {
10076
- "enum": ["runtime", "model", "delegation"],
10077
- "type": "string"
10078
- },
10079
- "name": {
10080
- "maxLength": 256,
10081
- "minLength": 1,
10082
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
10083
- "type": "string"
10084
- }
10085
- },
10086
- "required": ["kind", "name"],
10087
- "type": "object"
10088
- },
10089
- {
10090
- "additionalProperties": false,
10091
- "properties": {
10092
- "kind": { "const": "tool", "type": "string" },
10093
- "name": {
10094
- "maxLength": 256,
10095
- "minLength": 1,
10096
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
10097
- "type": "string"
10098
- },
10099
- "toolPin": {
10100
- "additionalProperties": false,
10101
- "properties": {
10102
- "contentDigest": {
10103
- "pattern": "^sha256:[a-f0-9]{64}$",
10104
- "type": "string"
10105
- },
10106
- "operation": {
10107
- "maxLength": 128,
10108
- "minLength": 1,
10109
- "pattern": "^[a-z][a-z0-9.-]*$",
10110
- "type": "string"
10111
- },
10112
- "toolDefinitionId": {},
10113
- "toolVersionId": {}
10114
- },
10115
- "required": [
10116
- "toolDefinitionId",
10117
- "toolVersionId",
10118
- "contentDigest",
10119
- "operation"
10120
- ],
10121
- "type": "object"
10122
- }
10123
- },
10124
- "required": ["kind", "name"],
10125
- "type": "object"
10126
- }
10127
- ]
10128
- }
10129
- },
10130
- "required": ["node", "operation"],
10131
- "type": "object"
10132
- },
10133
- "maxItems": 256,
10134
- "minItems": 1,
10135
- "type": "array"
10136
- },
10137
- "requiredCapabilities": {
10138
- "items": {
10139
- "maxLength": 128,
10140
- "minLength": 1,
10141
- "pattern": "^[a-z][a-z0-9.-]*$",
10142
- "type": "string"
10143
- },
10144
- "maxItems": 128,
10145
- "type": "array"
10146
- },
10147
- "schemaVersion": { "const": 1, "type": "number" },
10148
- "schemas": {
10149
- "additionalProperties": false,
10150
- "properties": {
10151
- "input": {
10152
- "maxLength": 256,
10153
- "minLength": 1,
10154
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
10155
- "type": "string"
10156
- },
10157
- "output": {
10158
- "maxLength": 256,
10159
- "minLength": 1,
10160
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
10161
- "type": "string"
10162
- },
10163
- "state": {
10164
- "maxLength": 256,
10165
- "minLength": 1,
10166
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
10167
- "type": "string"
10168
- }
10169
- },
10170
- "required": ["input", "state", "output"],
10171
- "type": "object"
10172
- }
10173
- },
10174
- "required": [
10175
- "graphDefinitionId",
10176
- "graphVersion",
10177
- "schemaVersion",
10178
- "nodes",
10179
- "edges",
10180
- "schemas",
10181
- "requiredCapabilities",
10182
- "compatibility"
10183
- ],
10184
- "type": "object"
10185
- },
10186
- "digestVersion": { "const": "canonical-json-v1", "type": "string" },
10187
- "lifecycle": {
10188
- "enum": ["published", "deprecated", "revoked"],
10189
- "type": "string"
10190
- },
10191
- "publishedAt": {
10192
- "format": "date-time",
10193
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
10194
- "type": "string"
10195
- },
10196
- "reason": { "maxLength": 1024, "minLength": 1, "type": "string" },
10197
- "reference": {
10198
- "additionalProperties": false,
10199
- "properties": {
10200
- "contentDigest": {
10201
- "pattern": "^sha256:[a-f0-9]{64}$",
10202
- "type": "string"
10203
- },
10204
- "graphDefinitionId": {
10205
- "maxLength": 256,
10206
- "minLength": 1,
10207
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
10208
- "type": "string"
10209
- },
10210
- "graphVersion": {
10211
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$",
10212
- "type": "string"
10213
- }
10214
- },
10215
- "required": ["graphDefinitionId", "graphVersion", "contentDigest"],
10216
- "type": "object"
10217
- },
10218
- "revision": {
10219
- "exclusiveMinimum": 0,
10220
- "maximum": 9007199254740991,
10221
- "type": "integer"
10222
- }
10223
- },
10224
- "required": [
10225
- "reference",
10226
- "revision",
10227
- "lifecycle",
10228
- "content",
10229
- "publishedAt",
10230
- "changedAt"
10231
- ],
10232
- "type": "object"
10233
- }
10234
- },
10235
- "required": ["definition"],
10236
- "type": "object"
10237
- },
10238
- "requestId": {}
10239
- },
10240
- "required": ["contractVersion", "requestId", "correlation", "data"],
10241
- "type": "object"
10242
- }
10243
- }
10244
- },
10245
- "description": "Successful response"
10246
- },
10247
- "default": {
10248
- "content": {
10249
- "application/json": {
10250
- "schema": {
10251
- "additionalProperties": false,
10252
- "properties": {
10253
- "contractVersion": {
10254
- "additionalProperties": false,
10255
- "properties": {
10256
- "major": {
10257
- "exclusiveMinimum": 0,
10258
- "maximum": 9007199254740991,
10259
- "type": "integer"
10260
- },
10261
- "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
10262
- },
10263
- "required": ["major", "minor"],
10264
- "type": "object"
10265
- },
10266
- "correlation": {
10267
- "additionalProperties": false,
10268
- "properties": {
10269
- "causationCommandId": {},
10270
- "parentEventId": {},
10271
- "traceId": {}
10272
- },
10273
- "required": ["traceId"],
10274
- "type": "object"
10275
- },
10276
- "error": {
10277
- "additionalProperties": false,
10278
- "properties": {
10279
- "class": {
10280
- "enum": [
10281
- "validation",
10282
- "authentication",
10283
- "authorization",
10284
- "conflict",
10285
- "stale_reference",
10286
- "capability_mismatch",
10287
- "runtime_unavailable",
10288
- "internal"
10289
- ],
10290
- "type": "string"
10291
- },
10292
- "code": {
10293
- "maxLength": 96,
10294
- "minLength": 1,
10295
- "pattern": "^[A-Z][A-Z0-9_]*$",
10296
- "type": "string"
10297
- },
10298
- "details": {
10299
- "additionalProperties": {},
10300
- "propertyNames": { "maxLength": 64, "type": "string" },
10301
- "type": "object"
10302
- },
10303
- "message": { "maxLength": 512, "minLength": 1, "type": "string" },
10304
- "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
10305
- "retryable": { "type": "boolean" },
10306
- "source": {
10307
- "enum": [
10308
- "client",
10309
- "auth",
10310
- "policy",
10311
- "runtime",
10312
- "provider",
10313
- "persistence",
10314
- "workflow",
10315
- "system"
10316
- ],
10317
- "type": "string"
10318
- }
10319
- },
10320
- "required": ["class", "code", "message", "retryable", "source"],
10321
- "type": "object"
10322
- },
10323
- "requestId": {}
10324
- },
10325
- "required": ["contractVersion", "requestId", "correlation", "error"],
10326
- "type": "object"
10327
- }
10328
- }
10329
- },
10330
- "description": "Normalized error response"
10331
- }
10332
- },
10333
- "security": [{ "serviceBearer": [] }]
10334
- }
10335
- },
10336
7900
  "/v1/interactions/respond": {
10337
7901
  "post": {
10338
7902
  "operationId": "interaction.respond",