@adea-ai/sdk 4.1.0 → 4.2.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.
@@ -7322,9 +7322,9 @@
7322
7322
  "security": [{ "serviceBearer": [] }]
7323
7323
  }
7324
7324
  },
7325
- "/v1/device-sync/log/append": {
7325
+ "/v1/device-sync/log/ack": {
7326
7326
  "post": {
7327
- "operationId": "device-sync.append",
7327
+ "operationId": "device-sync.ack",
7328
7328
  "requestBody": {
7329
7329
  "content": {
7330
7330
  "application/json": {
@@ -7382,61 +7382,18 @@
7382
7382
  "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))$",
7383
7383
  "type": "string"
7384
7384
  },
7385
- "operation": { "const": "device-sync.append", "type": "string" },
7385
+ "operation": { "const": "device-sync.ack", "type": "string" },
7386
7386
  "payload": {
7387
7387
  "additionalProperties": false,
7388
7388
  "properties": {
7389
- "entries": {
7390
- "items": {
7391
- "additionalProperties": false,
7392
- "properties": {
7393
- "authorKeyId": {
7394
- "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$",
7395
- "type": "string"
7396
- },
7397
- "ciphertext": {
7398
- "maxLength": 21867,
7399
- "minLength": 1,
7400
- "pattern": "^[A-Za-z0-9_-]+$",
7401
- "type": "string"
7402
- },
7403
- "ckv": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" },
7404
- "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
7405
- "nonce": {
7406
- "maxLength": 16,
7407
- "minLength": 16,
7408
- "pattern": "^[A-Za-z0-9_-]+$",
7409
- "type": "string"
7410
- },
7411
- "objectIds": {
7412
- "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
7413
- "maxItems": 1,
7414
- "type": "array"
7415
- },
7416
- "signature": {
7417
- "maxLength": 86,
7418
- "minLength": 86,
7419
- "pattern": "^[A-Za-z0-9_-]+$",
7420
- "type": "string"
7421
- }
7422
- },
7423
- "required": [
7424
- "entryId",
7425
- "authorKeyId",
7426
- "objectIds",
7427
- "ckv",
7428
- "nonce",
7429
- "ciphertext",
7430
- "signature"
7431
- ],
7432
- "type": "object"
7433
- },
7434
- "maxItems": 100,
7435
- "minItems": 1,
7436
- "type": "array"
7437
- }
7389
+ "appliedSeq": {
7390
+ "maximum": 9007199254740991,
7391
+ "minimum": 0,
7392
+ "type": "integer"
7393
+ },
7394
+ "readerKeyId": { "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$", "type": "string" }
7438
7395
  },
7439
- "required": ["entries"],
7396
+ "required": ["appliedSeq", "readerKeyId"],
7440
7397
  "type": "object"
7441
7398
  },
7442
7399
  "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
@@ -7496,24 +7453,13 @@
7496
7453
  "data": {
7497
7454
  "additionalProperties": false,
7498
7455
  "properties": {
7499
- "entries": {
7500
- "items": {
7501
- "additionalProperties": false,
7502
- "properties": {
7503
- "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
7504
- "seq": {
7505
- "maximum": 9007199254740991,
7506
- "minimum": 1,
7507
- "type": "integer"
7508
- }
7509
- },
7510
- "required": ["entryId", "seq"],
7511
- "type": "object"
7512
- },
7513
- "type": "array"
7456
+ "appliedSeq": {
7457
+ "maximum": 9007199254740991,
7458
+ "minimum": 0,
7459
+ "type": "integer"
7514
7460
  }
7515
7461
  },
7516
- "required": ["entries"],
7462
+ "required": ["appliedSeq"],
7517
7463
  "type": "object"
7518
7464
  },
7519
7465
  "requestId": {}
@@ -7614,9 +7560,9 @@
7614
7560
  "security": [{ "serviceBearer": [] }]
7615
7561
  }
7616
7562
  },
7617
- "/v1/device-sync/log/read": {
7563
+ "/v1/device-sync/log/append": {
7618
7564
  "post": {
7619
- "operationId": "device-sync.log",
7565
+ "operationId": "device-sync.append",
7620
7566
  "requestBody": {
7621
7567
  "content": {
7622
7568
  "application/json": {
@@ -7634,6 +7580,7 @@
7634
7580
  "required": ["servicePrincipalId"],
7635
7581
  "type": "object"
7636
7582
  },
7583
+ "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
7637
7584
  "contractVersion": {
7638
7585
  "additionalProperties": false,
7639
7586
  "properties": {
@@ -7662,23 +7609,77 @@
7662
7609
  "required": ["traceId"],
7663
7610
  "type": "object"
7664
7611
  },
7665
- "operation": { "const": "device-sync.log", "type": "string" },
7666
- "parameters": {
7612
+ "idempotencyKey": {
7613
+ "maxLength": 128,
7614
+ "minLength": 16,
7615
+ "pattern": "^[A-Za-z0-9._:-]+$",
7616
+ "type": "string"
7617
+ },
7618
+ "issuedAt": {
7619
+ "format": "date-time",
7620
+ "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))$",
7621
+ "type": "string"
7622
+ },
7623
+ "operation": { "const": "device-sync.append", "type": "string" },
7624
+ "payload": {
7667
7625
  "additionalProperties": false,
7668
7626
  "properties": {
7669
- "afterSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" },
7670
- "limit": { "maximum": 500, "minimum": 1, "type": "integer" }
7627
+ "entries": {
7628
+ "items": {
7629
+ "additionalProperties": false,
7630
+ "properties": {
7631
+ "authorKeyId": {
7632
+ "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$",
7633
+ "type": "string"
7634
+ },
7635
+ "ciphertext": {
7636
+ "maxLength": 21867,
7637
+ "minLength": 1,
7638
+ "pattern": "^[A-Za-z0-9_-]+$",
7639
+ "type": "string"
7640
+ },
7641
+ "ckv": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" },
7642
+ "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
7643
+ "nonce": {
7644
+ "maxLength": 16,
7645
+ "minLength": 16,
7646
+ "pattern": "^[A-Za-z0-9_-]+$",
7647
+ "type": "string"
7648
+ },
7649
+ "objectIds": {
7650
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
7651
+ "maxItems": 1,
7652
+ "type": "array"
7653
+ },
7654
+ "signature": {
7655
+ "maxLength": 86,
7656
+ "minLength": 86,
7657
+ "pattern": "^[A-Za-z0-9_-]+$",
7658
+ "type": "string"
7659
+ }
7660
+ },
7661
+ "required": [
7662
+ "entryId",
7663
+ "authorKeyId",
7664
+ "objectIds",
7665
+ "ckv",
7666
+ "nonce",
7667
+ "ciphertext",
7668
+ "signature"
7669
+ ],
7670
+ "type": "object"
7671
+ },
7672
+ "maxItems": 100,
7673
+ "minItems": 1,
7674
+ "type": "array"
7675
+ }
7671
7676
  },
7672
- "required": ["afterSeq"],
7677
+ "required": ["entries"],
7673
7678
  "type": "object"
7674
7679
  },
7680
+ "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
7675
7681
  "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
7676
7682
  "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
7677
- "requestedAt": {
7678
- "format": "date-time",
7679
- "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))$",
7680
- "type": "string"
7681
- },
7682
7683
  "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
7683
7684
  },
7684
7685
  "required": [
@@ -7687,9 +7688,12 @@
7687
7688
  "requestId",
7688
7689
  "workspaceId",
7689
7690
  "correlation",
7691
+ "commandId",
7692
+ "idempotencyKey",
7693
+ "payloadHash",
7690
7694
  "operation",
7691
- "requestedAt",
7692
- "parameters"
7695
+ "issuedAt",
7696
+ "payload"
7693
7697
  ],
7694
7698
  "type": "object"
7695
7699
  }
@@ -7734,68 +7738,20 @@
7734
7738
  "items": {
7735
7739
  "additionalProperties": false,
7736
7740
  "properties": {
7737
- "authorKeyId": {
7738
- "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$",
7739
- "type": "string"
7740
- },
7741
- "ciphertext": {
7742
- "maxLength": 21867,
7743
- "minLength": 1,
7744
- "pattern": "^[A-Za-z0-9_-]+$",
7745
- "type": "string"
7746
- },
7747
- "ckv": {
7748
- "maximum": 9007199254740991,
7749
- "minimum": 1,
7750
- "type": "integer"
7751
- },
7752
- "createdAt": {
7753
- "format": "date-time",
7754
- "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))$",
7755
- "type": "string"
7756
- },
7757
7741
  "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
7758
- "nonce": {
7759
- "maxLength": 16,
7760
- "minLength": 16,
7761
- "pattern": "^[A-Za-z0-9_-]+$",
7762
- "type": "string"
7763
- },
7764
- "objectIds": {
7765
- "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
7766
- "maxItems": 1,
7767
- "type": "array"
7768
- },
7769
7742
  "seq": {
7770
7743
  "maximum": 9007199254740991,
7771
7744
  "minimum": 1,
7772
7745
  "type": "integer"
7773
- },
7774
- "signature": {
7775
- "maxLength": 86,
7776
- "minLength": 86,
7777
- "pattern": "^[A-Za-z0-9_-]+$",
7778
- "type": "string"
7779
7746
  }
7780
7747
  },
7781
- "required": [
7782
- "entryId",
7783
- "authorKeyId",
7784
- "objectIds",
7785
- "ckv",
7786
- "nonce",
7787
- "ciphertext",
7788
- "signature",
7789
- "seq",
7790
- "createdAt"
7791
- ],
7748
+ "required": ["entryId", "seq"],
7792
7749
  "type": "object"
7793
7750
  },
7794
7751
  "type": "array"
7795
- },
7796
- "headSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
7752
+ }
7797
7753
  },
7798
- "required": ["entries", "headSeq"],
7754
+ "required": ["entries"],
7799
7755
  "type": "object"
7800
7756
  },
7801
7757
  "requestId": {}
@@ -7896,9 +7852,9 @@
7896
7852
  "security": [{ "serviceBearer": [] }]
7897
7853
  }
7898
7854
  },
7899
- "/v1/device-sync/releases": {
7855
+ "/v1/device-sync/log/checkpoint": {
7900
7856
  "post": {
7901
- "operationId": "device-sync.release",
7857
+ "operationId": "device-sync.checkpoint",
7902
7858
  "requestBody": {
7903
7859
  "content": {
7904
7860
  "application/json": {
@@ -7916,7 +7872,6 @@
7916
7872
  "required": ["servicePrincipalId"],
7917
7873
  "type": "object"
7918
7874
  },
7919
- "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
7920
7875
  "contractVersion": {
7921
7876
  "additionalProperties": false,
7922
7877
  "properties": {
@@ -7945,34 +7900,21 @@
7945
7900
  "required": ["traceId"],
7946
7901
  "type": "object"
7947
7902
  },
7948
- "idempotencyKey": {
7949
- "maxLength": 128,
7950
- "minLength": 16,
7951
- "pattern": "^[A-Za-z0-9._:-]+$",
7952
- "type": "string"
7953
- },
7954
- "issuedAt": {
7955
- "format": "date-time",
7956
- "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))$",
7957
- "type": "string"
7958
- },
7959
- "operation": { "const": "device-sync.release", "type": "string" },
7960
- "payload": {
7903
+ "operation": { "const": "device-sync.checkpoint", "type": "string" },
7904
+ "parameters": {
7961
7905
  "additionalProperties": false,
7962
7906
  "properties": {
7963
- "objectIds": {
7964
- "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
7965
- "maxItems": 100,
7966
- "minItems": 1,
7967
- "type": "array"
7968
- }
7907
+ "readerKeyId": { "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$", "type": "string" }
7969
7908
  },
7970
- "required": ["objectIds"],
7971
7909
  "type": "object"
7972
7910
  },
7973
- "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
7974
7911
  "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
7975
7912
  "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
7913
+ "requestedAt": {
7914
+ "format": "date-time",
7915
+ "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))$",
7916
+ "type": "string"
7917
+ },
7976
7918
  "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
7977
7919
  },
7978
7920
  "required": [
@@ -7981,12 +7923,9 @@
7981
7923
  "requestId",
7982
7924
  "workspaceId",
7983
7925
  "correlation",
7984
- "commandId",
7985
- "idempotencyKey",
7986
- "payloadHash",
7987
7926
  "operation",
7988
- "issuedAt",
7989
- "payload"
7927
+ "requestedAt",
7928
+ "parameters"
7990
7929
  ],
7991
7930
  "type": "object"
7992
7931
  }
@@ -8027,10 +7966,195 @@
8027
7966
  "data": {
8028
7967
  "additionalProperties": false,
8029
7968
  "properties": {
8030
- "released": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8031
- },
8032
- "required": ["released"],
8033
- "type": "object"
7969
+ "checkpoint": {
7970
+ "anyOf": [
7971
+ {
7972
+ "additionalProperties": false,
7973
+ "properties": {
7974
+ "authorKeyId": {
7975
+ "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$",
7976
+ "type": "string"
7977
+ },
7978
+ "ciphertext": {
7979
+ "maxLength": 21867,
7980
+ "minLength": 1,
7981
+ "pattern": "^[A-Za-z0-9_-]+$",
7982
+ "type": "string"
7983
+ },
7984
+ "ckv": {
7985
+ "maximum": 9007199254740991,
7986
+ "minimum": 1,
7987
+ "type": "integer"
7988
+ },
7989
+ "createdAt": {
7990
+ "format": "date-time",
7991
+ "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))$",
7992
+ "type": "string"
7993
+ },
7994
+ "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
7995
+ "nonce": {
7996
+ "maxLength": 16,
7997
+ "minLength": 16,
7998
+ "pattern": "^[A-Za-z0-9_-]+$",
7999
+ "type": "string"
8000
+ },
8001
+ "objectIds": {
8002
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8003
+ "maxItems": 1,
8004
+ "type": "array"
8005
+ },
8006
+ "partObjectIds": {
8007
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8008
+ "maxItems": 31,
8009
+ "type": "array"
8010
+ },
8011
+ "prevEntryId": {
8012
+ "anyOf": [
8013
+ { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8014
+ { "type": "null" }
8015
+ ]
8016
+ },
8017
+ "registeredAt": {
8018
+ "format": "date-time",
8019
+ "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))$",
8020
+ "type": "string"
8021
+ },
8022
+ "seq": {
8023
+ "maximum": 9007199254740991,
8024
+ "minimum": 1,
8025
+ "type": "integer"
8026
+ },
8027
+ "signature": {
8028
+ "maxLength": 86,
8029
+ "minLength": 86,
8030
+ "pattern": "^[A-Za-z0-9_-]+$",
8031
+ "type": "string"
8032
+ },
8033
+ "throughSeq": {
8034
+ "maximum": 9007199254740991,
8035
+ "minimum": 0,
8036
+ "type": "integer"
8037
+ }
8038
+ },
8039
+ "required": [
8040
+ "entryId",
8041
+ "authorKeyId",
8042
+ "objectIds",
8043
+ "ckv",
8044
+ "nonce",
8045
+ "ciphertext",
8046
+ "signature",
8047
+ "seq",
8048
+ "createdAt",
8049
+ "throughSeq",
8050
+ "prevEntryId",
8051
+ "partObjectIds",
8052
+ "registeredAt"
8053
+ ],
8054
+ "type": "object"
8055
+ },
8056
+ { "type": "null" }
8057
+ ]
8058
+ },
8059
+ "floorSeq": {
8060
+ "maximum": 9007199254740991,
8061
+ "minimum": 0,
8062
+ "type": "integer"
8063
+ },
8064
+ "headSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" },
8065
+ "previous": {
8066
+ "anyOf": [
8067
+ {
8068
+ "additionalProperties": false,
8069
+ "properties": {
8070
+ "authorKeyId": {
8071
+ "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$",
8072
+ "type": "string"
8073
+ },
8074
+ "ciphertext": {
8075
+ "maxLength": 21867,
8076
+ "minLength": 1,
8077
+ "pattern": "^[A-Za-z0-9_-]+$",
8078
+ "type": "string"
8079
+ },
8080
+ "ckv": {
8081
+ "maximum": 9007199254740991,
8082
+ "minimum": 1,
8083
+ "type": "integer"
8084
+ },
8085
+ "createdAt": {
8086
+ "format": "date-time",
8087
+ "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))$",
8088
+ "type": "string"
8089
+ },
8090
+ "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8091
+ "nonce": {
8092
+ "maxLength": 16,
8093
+ "minLength": 16,
8094
+ "pattern": "^[A-Za-z0-9_-]+$",
8095
+ "type": "string"
8096
+ },
8097
+ "objectIds": {
8098
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8099
+ "maxItems": 1,
8100
+ "type": "array"
8101
+ },
8102
+ "partObjectIds": {
8103
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8104
+ "maxItems": 31,
8105
+ "type": "array"
8106
+ },
8107
+ "prevEntryId": {
8108
+ "anyOf": [
8109
+ { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8110
+ { "type": "null" }
8111
+ ]
8112
+ },
8113
+ "registeredAt": {
8114
+ "format": "date-time",
8115
+ "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))$",
8116
+ "type": "string"
8117
+ },
8118
+ "seq": {
8119
+ "maximum": 9007199254740991,
8120
+ "minimum": 1,
8121
+ "type": "integer"
8122
+ },
8123
+ "signature": {
8124
+ "maxLength": 86,
8125
+ "minLength": 86,
8126
+ "pattern": "^[A-Za-z0-9_-]+$",
8127
+ "type": "string"
8128
+ },
8129
+ "throughSeq": {
8130
+ "maximum": 9007199254740991,
8131
+ "minimum": 0,
8132
+ "type": "integer"
8133
+ }
8134
+ },
8135
+ "required": [
8136
+ "entryId",
8137
+ "authorKeyId",
8138
+ "objectIds",
8139
+ "ckv",
8140
+ "nonce",
8141
+ "ciphertext",
8142
+ "signature",
8143
+ "seq",
8144
+ "createdAt",
8145
+ "throughSeq",
8146
+ "prevEntryId",
8147
+ "partObjectIds",
8148
+ "registeredAt"
8149
+ ],
8150
+ "type": "object"
8151
+ },
8152
+ { "type": "null" }
8153
+ ]
8154
+ }
8155
+ },
8156
+ "required": ["checkpoint", "previous", "floorSeq", "headSeq"],
8157
+ "type": "object"
8034
8158
  },
8035
8159
  "requestId": {}
8036
8160
  },
@@ -8130,9 +8254,9 @@
8130
8254
  "security": [{ "serviceBearer": [] }]
8131
8255
  }
8132
8256
  },
8133
- "/v1/device-sync/uploads": {
8257
+ "/v1/device-sync/log/checkpoint/register": {
8134
8258
  "post": {
8135
- "operationId": "device-sync.upload",
8259
+ "operationId": "device-sync.register-checkpoint",
8136
8260
  "requestBody": {
8137
8261
  "content": {
8138
8262
  "application/json": {
@@ -8190,16 +8314,26 @@
8190
8314
  "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))$",
8191
8315
  "type": "string"
8192
8316
  },
8193
- "operation": { "const": "device-sync.upload", "type": "string" },
8317
+ "operation": { "const": "device-sync.register-checkpoint", "type": "string" },
8194
8318
  "payload": {
8195
8319
  "additionalProperties": false,
8196
8320
  "properties": {
8197
8321
  "authorKeyId": { "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$", "type": "string" },
8198
- "ciphertextSha256": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
8199
- "objectId": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8200
- "size": { "maximum": 276828300, "minimum": 36, "type": "integer" }
8322
+ "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8323
+ "partObjectIds": {
8324
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8325
+ "maxItems": 31,
8326
+ "type": "array"
8327
+ },
8328
+ "prevEntryId": {
8329
+ "anyOf": [
8330
+ { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8331
+ { "type": "null" }
8332
+ ]
8333
+ },
8334
+ "throughSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8201
8335
  },
8202
- "required": ["objectId", "size", "ciphertextSha256", "authorKeyId"],
8336
+ "required": ["entryId", "throughSeq", "prevEntryId", "authorKeyId"],
8203
8337
  "type": "object"
8204
8338
  },
8205
8339
  "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
@@ -8259,20 +8393,21 @@
8259
8393
  "data": {
8260
8394
  "additionalProperties": false,
8261
8395
  "properties": {
8262
- "expiresAt": {
8263
- "format": "date-time",
8264
- "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))$",
8265
- "type": "string"
8266
- },
8267
- "headers": {
8268
- "additionalProperties": { "type": "string" },
8269
- "propertyNames": { "type": "string" },
8270
- "type": "object"
8396
+ "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8397
+ "prevEntryId": {
8398
+ "anyOf": [
8399
+ { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8400
+ { "type": "null" }
8401
+ ]
8271
8402
  },
8272
- "objectId": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8273
- "url": { "format": "uri", "maxLength": 4096, "type": "string" }
8403
+ "seq": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" },
8404
+ "throughSeq": {
8405
+ "maximum": 9007199254740991,
8406
+ "minimum": 0,
8407
+ "type": "integer"
8408
+ }
8274
8409
  },
8275
- "required": ["objectId", "url", "headers", "expiresAt"],
8410
+ "required": ["entryId", "seq", "throughSeq", "prevEntryId"],
8276
8411
  "type": "object"
8277
8412
  },
8278
8413
  "requestId": {}
@@ -8373,9 +8508,9 @@
8373
8508
  "security": [{ "serviceBearer": [] }]
8374
8509
  }
8375
8510
  },
8376
- "/v1/device-sync/usage": {
8511
+ "/v1/device-sync/log/read": {
8377
8512
  "post": {
8378
- "operationId": "device-sync.usage",
8513
+ "operationId": "device-sync.log",
8379
8514
  "requestBody": {
8380
8515
  "content": {
8381
8516
  "application/json": {
@@ -8421,10 +8556,15 @@
8421
8556
  "required": ["traceId"],
8422
8557
  "type": "object"
8423
8558
  },
8424
- "operation": { "const": "device-sync.usage", "type": "string" },
8559
+ "operation": { "const": "device-sync.log", "type": "string" },
8425
8560
  "parameters": {
8426
8561
  "additionalProperties": false,
8427
- "properties": {},
8562
+ "properties": {
8563
+ "afterSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" },
8564
+ "limit": { "maximum": 500, "minimum": 1, "type": "integer" },
8565
+ "readerKeyId": { "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$", "type": "string" }
8566
+ },
8567
+ "required": ["afterSeq"],
8428
8568
  "type": "object"
8429
8569
  },
8430
8570
  "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
@@ -8485,18 +8625,72 @@
8485
8625
  "data": {
8486
8626
  "additionalProperties": false,
8487
8627
  "properties": {
8488
- "quotaBytes": {
8489
- "maximum": 9007199254740991,
8490
- "minimum": 0,
8491
- "type": "integer"
8628
+ "entries": {
8629
+ "items": {
8630
+ "additionalProperties": false,
8631
+ "properties": {
8632
+ "authorKeyId": {
8633
+ "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$",
8634
+ "type": "string"
8635
+ },
8636
+ "ciphertext": {
8637
+ "maxLength": 21867,
8638
+ "minLength": 1,
8639
+ "pattern": "^[A-Za-z0-9_-]+$",
8640
+ "type": "string"
8641
+ },
8642
+ "ckv": {
8643
+ "maximum": 9007199254740991,
8644
+ "minimum": 1,
8645
+ "type": "integer"
8646
+ },
8647
+ "createdAt": {
8648
+ "format": "date-time",
8649
+ "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))$",
8650
+ "type": "string"
8651
+ },
8652
+ "entryId": { "pattern": "^sen_[a-f0-9]{32}$", "type": "string" },
8653
+ "nonce": {
8654
+ "maxLength": 16,
8655
+ "minLength": 16,
8656
+ "pattern": "^[A-Za-z0-9_-]+$",
8657
+ "type": "string"
8658
+ },
8659
+ "objectIds": {
8660
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8661
+ "maxItems": 1,
8662
+ "type": "array"
8663
+ },
8664
+ "seq": {
8665
+ "maximum": 9007199254740991,
8666
+ "minimum": 1,
8667
+ "type": "integer"
8668
+ },
8669
+ "signature": {
8670
+ "maxLength": 86,
8671
+ "minLength": 86,
8672
+ "pattern": "^[A-Za-z0-9_-]+$",
8673
+ "type": "string"
8674
+ }
8675
+ },
8676
+ "required": [
8677
+ "entryId",
8678
+ "authorKeyId",
8679
+ "objectIds",
8680
+ "ckv",
8681
+ "nonce",
8682
+ "ciphertext",
8683
+ "signature",
8684
+ "seq",
8685
+ "createdAt"
8686
+ ],
8687
+ "type": "object"
8688
+ },
8689
+ "type": "array"
8492
8690
  },
8493
- "usedBytes": {
8494
- "maximum": 9007199254740991,
8495
- "minimum": 0,
8496
- "type": "integer"
8497
- }
8691
+ "headSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8498
8692
  },
8499
- "required": ["usedBytes", "quotaBytes"],
8693
+ "required": ["entries", "headSeq"],
8500
8694
  "type": "object"
8501
8695
  },
8502
8696
  "requestId": {}
@@ -8597,9 +8791,9 @@
8597
8791
  "security": [{ "serviceBearer": [] }]
8598
8792
  }
8599
8793
  },
8600
- "/v1/executions/accept": {
8794
+ "/v1/device-sync/releases": {
8601
8795
  "post": {
8602
- "operationId": "execution.accept",
8796
+ "operationId": "device-sync.release",
8603
8797
  "requestBody": {
8604
8798
  "content": {
8605
8799
  "application/json": {
@@ -8657,69 +8851,18 @@
8657
8851
  "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))$",
8658
8852
  "type": "string"
8659
8853
  },
8660
- "operation": { "const": "execution.accept", "type": "string" },
8854
+ "operation": { "const": "device-sync.release", "type": "string" },
8661
8855
  "payload": {
8856
+ "additionalProperties": false,
8662
8857
  "properties": {
8663
- "agentId": { "pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
8664
- "deadlineAt": {
8665
- "format": "date-time",
8666
- "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))$",
8667
- "type": "string"
8668
- },
8669
- "executionPlan": {
8670
- "properties": {
8671
- "contentDigest": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
8672
- "executionPlanId": {
8673
- "pattern": "^pln_[0-9A-HJKMNP-TV-Z]{26}$",
8674
- "type": "string"
8675
- },
8676
- "schemaVersion": {
8677
- "exclusiveMinimum": 0,
8678
- "maximum": 9007199254740991,
8679
- "type": "integer"
8680
- }
8681
- },
8682
- "required": ["executionPlanId", "contentDigest", "schemaVersion"],
8683
- "type": "object"
8684
- },
8685
- "marketplacePluginReferences": {
8686
- "items": {
8687
- "additionalProperties": false,
8688
- "properties": {
8689
- "canonicalContentDigest": {
8690
- "pattern": "^sha256:[a-f0-9]{64}$",
8691
- "type": "string"
8692
- },
8693
- "pluginId": {
8694
- "pattern": "^plugin:[a-z0-9-]+:[a-z0-9][a-z0-9-]{1,127}$",
8695
- "type": "string"
8696
- },
8697
- "releaseId": { "pattern": "^release:[a-f0-9]{64}$", "type": "string" }
8698
- },
8699
- "required": ["canonicalContentDigest", "pluginId", "releaseId"],
8700
- "type": "object"
8701
- },
8702
- "maxItems": 128,
8858
+ "objectIds": {
8859
+ "items": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
8860
+ "maxItems": 100,
8861
+ "minItems": 1,
8703
8862
  "type": "array"
8704
- },
8705
- "modelId": {
8706
- "maxLength": 128,
8707
- "minLength": 1,
8708
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._/-]*$",
8709
- "type": "string"
8710
- },
8711
- "parentExecutionId": {
8712
- "pattern": "^exe_[0-9A-HJKMNP-TV-Z]{26}$",
8713
- "type": "string"
8714
- },
8715
- "retentionExpiresAt": {
8716
- "format": "date-time",
8717
- "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))$",
8718
- "type": "string"
8719
- },
8720
- "taskId": { "pattern": "^tsk_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
8863
+ }
8721
8864
  },
8722
- "required": ["taskId", "agentId", "executionPlan", "retentionExpiresAt"],
8865
+ "required": ["objectIds"],
8723
8866
  "type": "object"
8724
8867
  },
8725
8868
  "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
@@ -8732,7 +8875,6 @@
8732
8875
  "contractVersion",
8733
8876
  "requestId",
8734
8877
  "workspaceId",
8735
- "projectId",
8736
8878
  "correlation",
8737
8879
  "commandId",
8738
8880
  "idempotencyKey",
@@ -8780,51 +8922,9 @@
8780
8922
  "data": {
8781
8923
  "additionalProperties": false,
8782
8924
  "properties": {
8783
- "commandId": {},
8784
- "errorReference": {
8785
- "maxLength": 512,
8786
- "minLength": 1,
8787
- "pattern": "^[a-z][a-z0-9+.-]*:\\/\\/\\S+$",
8788
- "type": "string"
8789
- },
8790
- "executionId": {},
8791
- "executionPlan": {
8792
- "additionalProperties": false,
8793
- "properties": {
8794
- "contentDigest": {
8795
- "pattern": "^sha256:[a-f0-9]{64}$",
8796
- "type": "string"
8797
- },
8798
- "executionPlanId": {},
8799
- "schemaVersion": {
8800
- "exclusiveMinimum": 0,
8801
- "maximum": 9007199254740991,
8802
- "type": "integer"
8803
- }
8804
- },
8805
- "required": ["executionPlanId", "contentDigest", "schemaVersion"],
8806
- "type": "object"
8807
- },
8808
- "replayed": { "type": "boolean" },
8809
- "resultReference": {},
8810
- "status": {
8811
- "enum": [
8812
- "accepted",
8813
- "processing",
8814
- "completed",
8815
- "failed",
8816
- "reconciliation_required"
8817
- ],
8818
- "type": "string"
8819
- }
8925
+ "released": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
8820
8926
  },
8821
- "required": [
8822
- "commandId",
8823
- "executionId",
8824
- "executionPlan",
8825
- "status",
8826
- "replayed"
8827
- ],
8927
+ "required": ["released"],
8828
8928
  "type": "object"
8829
8929
  },
8830
8930
  "requestId": {}
@@ -8925,14 +9025,13 @@
8925
9025
  "security": [{ "serviceBearer": [] }]
8926
9026
  }
8927
9027
  },
8928
- "/v1/executions/cancel": {
9028
+ "/v1/device-sync/uploads": {
8929
9029
  "post": {
8930
- "operationId": "execution.cancel",
9030
+ "operationId": "device-sync.upload",
8931
9031
  "requestBody": {
8932
9032
  "content": {
8933
9033
  "application/json": {
8934
9034
  "schema": {
8935
- "additionalProperties": false,
8936
9035
  "properties": {
8937
9036
  "caller": {
8938
9037
  "properties": {
@@ -8975,32 +9074,6 @@
8975
9074
  "required": ["traceId"],
8976
9075
  "type": "object"
8977
9076
  },
8978
- "executionScope": {
8979
- "oneOf": [
8980
- {
8981
- "additionalProperties": false,
8982
- "properties": {
8983
- "kind": { "const": "workspace", "type": "string" },
8984
- "schemaVersion": { "const": 1, "type": "number" }
8985
- },
8986
- "required": ["schemaVersion", "kind"],
8987
- "type": "object"
8988
- },
8989
- {
8990
- "additionalProperties": false,
8991
- "properties": {
8992
- "kind": { "const": "project", "type": "string" },
8993
- "projectId": {
8994
- "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$",
8995
- "type": "string"
8996
- },
8997
- "schemaVersion": { "const": 1, "type": "number" }
8998
- },
8999
- "required": ["schemaVersion", "kind", "projectId"],
9000
- "type": "object"
9001
- }
9002
- ]
9003
- },
9004
9077
  "idempotencyKey": {
9005
9078
  "maxLength": 128,
9006
9079
  "minLength": 16,
@@ -9012,13 +9085,16 @@
9012
9085
  "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))$",
9013
9086
  "type": "string"
9014
9087
  },
9015
- "operation": { "const": "execution.cancel", "type": "string" },
9088
+ "operation": { "const": "device-sync.upload", "type": "string" },
9016
9089
  "payload": {
9017
9090
  "additionalProperties": false,
9018
9091
  "properties": {
9019
- "executionId": { "pattern": "^exe_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9092
+ "authorKeyId": { "pattern": "^(?:spk|dpk)_[a-f0-9]{32}$", "type": "string" },
9093
+ "ciphertextSha256": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
9094
+ "objectId": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
9095
+ "size": { "maximum": 276828300, "minimum": 36, "type": "integer" }
9020
9096
  },
9021
- "required": ["executionId"],
9097
+ "required": ["objectId", "size", "ciphertextSha256", "authorKeyId"],
9022
9098
  "type": "object"
9023
9099
  },
9024
9100
  "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
@@ -9046,7 +9122,7 @@
9046
9122
  "required": true
9047
9123
  },
9048
9124
  "responses": {
9049
- "202": {
9125
+ "200": {
9050
9126
  "content": {
9051
9127
  "application/json": {
9052
9128
  "schema": {
@@ -9078,12 +9154,20 @@
9078
9154
  "data": {
9079
9155
  "additionalProperties": false,
9080
9156
  "properties": {
9081
- "commandId": {},
9082
- "executionId": {},
9083
- "replayed": { "type": "boolean" },
9084
- "status": { "const": "accepted", "type": "string" }
9157
+ "expiresAt": {
9158
+ "format": "date-time",
9159
+ "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))$",
9160
+ "type": "string"
9161
+ },
9162
+ "headers": {
9163
+ "additionalProperties": { "type": "string" },
9164
+ "propertyNames": { "type": "string" },
9165
+ "type": "object"
9166
+ },
9167
+ "objectId": { "pattern": "^sob_[a-f0-9]{32}$", "type": "string" },
9168
+ "url": { "format": "uri", "maxLength": 4096, "type": "string" }
9085
9169
  },
9086
- "required": ["commandId", "executionId", "status", "replayed"],
9170
+ "required": ["objectId", "url", "headers", "expiresAt"],
9087
9171
  "type": "object"
9088
9172
  },
9089
9173
  "requestId": {}
@@ -9184,9 +9268,9 @@
9184
9268
  "security": [{ "serviceBearer": [] }]
9185
9269
  }
9186
9270
  },
9187
- "/v1/executions/validate": {
9271
+ "/v1/device-sync/usage": {
9188
9272
  "post": {
9189
- "operationId": "execution.validate",
9273
+ "operationId": "device-sync.usage",
9190
9274
  "requestBody": {
9191
9275
  "content": {
9192
9276
  "application/json": {
@@ -9204,7 +9288,6 @@
9204
9288
  "required": ["servicePrincipalId"],
9205
9289
  "type": "object"
9206
9290
  },
9207
- "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9208
9291
  "contractVersion": {
9209
9292
  "additionalProperties": false,
9210
9293
  "properties": {
@@ -9233,103 +9316,915 @@
9233
9316
  "required": ["traceId"],
9234
9317
  "type": "object"
9235
9318
  },
9236
- "idempotencyKey": {
9237
- "maxLength": 128,
9238
- "minLength": 16,
9239
- "pattern": "^[A-Za-z0-9._:-]+$",
9240
- "type": "string"
9319
+ "operation": { "const": "device-sync.usage", "type": "string" },
9320
+ "parameters": {
9321
+ "additionalProperties": false,
9322
+ "properties": {},
9323
+ "type": "object"
9241
9324
  },
9242
- "issuedAt": {
9325
+ "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9326
+ "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9327
+ "requestedAt": {
9243
9328
  "format": "date-time",
9244
9329
  "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))$",
9245
9330
  "type": "string"
9246
9331
  },
9247
- "operation": { "const": "execution.validate", "type": "string" },
9248
- "payload": {
9249
- "anyOf": [
9250
- {
9251
- "properties": {
9252
- "agentId": {
9253
- "pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
9254
- "type": "string"
9255
- },
9256
- "contextInputs": { "not": {} },
9257
- "contextPackage": {
9258
- "properties": {
9259
- "compilerVersion": {
9260
- "maxLength": 64,
9261
- "minLength": 1,
9262
- "type": "string"
9263
- },
9264
- "contentDigest": {
9265
- "pattern": "^sha256:[a-f0-9]{64}$",
9266
- "type": "string"
9267
- },
9268
- "contextPackageId": {
9269
- "pattern": "^ctx_[0-9A-HJKMNP-TV-Z]{26}$",
9270
- "type": "string"
9271
- },
9272
- "schemaVersion": {
9273
- "exclusiveMinimum": 0,
9274
- "maximum": 9007199254740991,
9275
- "type": "integer"
9276
- }
9277
- },
9278
- "required": [
9279
- "contextPackageId",
9280
- "contentDigest",
9281
- "schemaVersion",
9282
- "compilerVersion"
9283
- ],
9284
- "type": "object"
9285
- },
9286
- "outputContractRef": {
9287
- "maxLength": 512,
9288
- "minLength": 1,
9289
- "type": "string"
9290
- },
9291
- "policySnapshot": {
9292
- "properties": {
9293
- "contentDigest": {
9294
- "pattern": "^sha256:[a-f0-9]{64}$",
9295
- "type": "string"
9296
- },
9297
- "policySnapshotId": {
9298
- "maxLength": 256,
9299
- "minLength": 1,
9300
- "type": "string"
9301
- },
9302
- "revision": {
9303
- "exclusiveMinimum": 0,
9304
- "maximum": 9007199254740991,
9305
- "type": "integer"
9306
- }
9307
- },
9308
- "required": ["policySnapshotId", "revision", "contentDigest"],
9309
- "type": "object"
9310
- },
9311
- "profileVersionId": {
9312
- "pattern": "^pfv_[0-9A-HJKMNP-TV-Z]{26}$",
9313
- "type": "string"
9314
- },
9315
- "projectState": {
9316
- "properties": {
9317
- "projectId": {
9318
- "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$",
9319
- "type": "string"
9320
- },
9321
- "revision": {
9322
- "maximum": 9007199254740991,
9323
- "minimum": 0,
9324
- "type": "integer"
9325
- },
9326
- "workspaceId": {
9327
- "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$",
9328
- "type": "string"
9329
- }
9330
- },
9331
- "required": ["workspaceId", "projectId", "revision"],
9332
- "type": "object"
9332
+ "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9333
+ },
9334
+ "required": [
9335
+ "caller",
9336
+ "contractVersion",
9337
+ "requestId",
9338
+ "workspaceId",
9339
+ "correlation",
9340
+ "operation",
9341
+ "requestedAt",
9342
+ "parameters"
9343
+ ],
9344
+ "type": "object"
9345
+ }
9346
+ }
9347
+ },
9348
+ "required": true
9349
+ },
9350
+ "responses": {
9351
+ "200": {
9352
+ "content": {
9353
+ "application/json": {
9354
+ "schema": {
9355
+ "additionalProperties": false,
9356
+ "properties": {
9357
+ "contractVersion": {
9358
+ "additionalProperties": false,
9359
+ "properties": {
9360
+ "major": {
9361
+ "exclusiveMinimum": 0,
9362
+ "maximum": 9007199254740991,
9363
+ "type": "integer"
9364
+ },
9365
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9366
+ },
9367
+ "required": ["major", "minor"],
9368
+ "type": "object"
9369
+ },
9370
+ "correlation": {
9371
+ "additionalProperties": false,
9372
+ "properties": {
9373
+ "causationCommandId": {},
9374
+ "parentEventId": {},
9375
+ "traceId": {}
9376
+ },
9377
+ "required": ["traceId"],
9378
+ "type": "object"
9379
+ },
9380
+ "data": {
9381
+ "additionalProperties": false,
9382
+ "properties": {
9383
+ "quotaBytes": {
9384
+ "maximum": 9007199254740991,
9385
+ "minimum": 0,
9386
+ "type": "integer"
9387
+ },
9388
+ "usedBytes": {
9389
+ "maximum": 9007199254740991,
9390
+ "minimum": 0,
9391
+ "type": "integer"
9392
+ }
9393
+ },
9394
+ "required": ["usedBytes", "quotaBytes"],
9395
+ "type": "object"
9396
+ },
9397
+ "requestId": {}
9398
+ },
9399
+ "required": ["contractVersion", "requestId", "correlation", "data"],
9400
+ "type": "object"
9401
+ }
9402
+ }
9403
+ },
9404
+ "description": "Successful response"
9405
+ },
9406
+ "default": {
9407
+ "content": {
9408
+ "application/json": {
9409
+ "schema": {
9410
+ "additionalProperties": false,
9411
+ "properties": {
9412
+ "contractVersion": {
9413
+ "additionalProperties": false,
9414
+ "properties": {
9415
+ "major": {
9416
+ "exclusiveMinimum": 0,
9417
+ "maximum": 9007199254740991,
9418
+ "type": "integer"
9419
+ },
9420
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9421
+ },
9422
+ "required": ["major", "minor"],
9423
+ "type": "object"
9424
+ },
9425
+ "correlation": {
9426
+ "additionalProperties": false,
9427
+ "properties": {
9428
+ "causationCommandId": {},
9429
+ "parentEventId": {},
9430
+ "traceId": {}
9431
+ },
9432
+ "required": ["traceId"],
9433
+ "type": "object"
9434
+ },
9435
+ "error": {
9436
+ "additionalProperties": false,
9437
+ "properties": {
9438
+ "class": {
9439
+ "enum": [
9440
+ "validation",
9441
+ "authentication",
9442
+ "authorization",
9443
+ "conflict",
9444
+ "stale_reference",
9445
+ "capability_mismatch",
9446
+ "runtime_unavailable",
9447
+ "internal"
9448
+ ],
9449
+ "type": "string"
9450
+ },
9451
+ "code": {
9452
+ "maxLength": 96,
9453
+ "minLength": 1,
9454
+ "pattern": "^[A-Z][A-Z0-9_]*$",
9455
+ "type": "string"
9456
+ },
9457
+ "details": {
9458
+ "additionalProperties": {},
9459
+ "propertyNames": { "maxLength": 64, "type": "string" },
9460
+ "type": "object"
9461
+ },
9462
+ "message": { "maxLength": 512, "minLength": 1, "type": "string" },
9463
+ "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
9464
+ "retryable": { "type": "boolean" },
9465
+ "source": {
9466
+ "enum": [
9467
+ "client",
9468
+ "auth",
9469
+ "policy",
9470
+ "runtime",
9471
+ "provider",
9472
+ "persistence",
9473
+ "workflow",
9474
+ "system"
9475
+ ],
9476
+ "type": "string"
9477
+ }
9478
+ },
9479
+ "required": ["class", "code", "message", "retryable", "source"],
9480
+ "type": "object"
9481
+ },
9482
+ "requestId": {}
9483
+ },
9484
+ "required": ["contractVersion", "requestId", "correlation", "error"],
9485
+ "type": "object"
9486
+ }
9487
+ }
9488
+ },
9489
+ "description": "Normalized error response"
9490
+ }
9491
+ },
9492
+ "security": [{ "serviceBearer": [] }]
9493
+ }
9494
+ },
9495
+ "/v1/executions/accept": {
9496
+ "post": {
9497
+ "operationId": "execution.accept",
9498
+ "requestBody": {
9499
+ "content": {
9500
+ "application/json": {
9501
+ "schema": {
9502
+ "properties": {
9503
+ "caller": {
9504
+ "properties": {
9505
+ "servicePrincipalId": {
9506
+ "maxLength": 64,
9507
+ "minLength": 5,
9508
+ "pattern": "^svc_[a-z][a-z0-9-]*$",
9509
+ "type": "string"
9510
+ }
9511
+ },
9512
+ "required": ["servicePrincipalId"],
9513
+ "type": "object"
9514
+ },
9515
+ "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9516
+ "contractVersion": {
9517
+ "additionalProperties": false,
9518
+ "properties": {
9519
+ "major": {
9520
+ "exclusiveMinimum": 0,
9521
+ "maximum": 9007199254740991,
9522
+ "type": "integer"
9523
+ },
9524
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9525
+ },
9526
+ "required": ["major", "minor"],
9527
+ "type": "object"
9528
+ },
9529
+ "correlation": {
9530
+ "properties": {
9531
+ "causationCommandId": {
9532
+ "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
9533
+ "type": "string"
9534
+ },
9535
+ "parentEventId": {
9536
+ "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
9537
+ "type": "string"
9538
+ },
9539
+ "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9540
+ },
9541
+ "required": ["traceId"],
9542
+ "type": "object"
9543
+ },
9544
+ "idempotencyKey": {
9545
+ "maxLength": 128,
9546
+ "minLength": 16,
9547
+ "pattern": "^[A-Za-z0-9._:-]+$",
9548
+ "type": "string"
9549
+ },
9550
+ "issuedAt": {
9551
+ "format": "date-time",
9552
+ "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))$",
9553
+ "type": "string"
9554
+ },
9555
+ "operation": { "const": "execution.accept", "type": "string" },
9556
+ "payload": {
9557
+ "properties": {
9558
+ "agentId": { "pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9559
+ "deadlineAt": {
9560
+ "format": "date-time",
9561
+ "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))$",
9562
+ "type": "string"
9563
+ },
9564
+ "executionPlan": {
9565
+ "properties": {
9566
+ "contentDigest": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
9567
+ "executionPlanId": {
9568
+ "pattern": "^pln_[0-9A-HJKMNP-TV-Z]{26}$",
9569
+ "type": "string"
9570
+ },
9571
+ "schemaVersion": {
9572
+ "exclusiveMinimum": 0,
9573
+ "maximum": 9007199254740991,
9574
+ "type": "integer"
9575
+ }
9576
+ },
9577
+ "required": ["executionPlanId", "contentDigest", "schemaVersion"],
9578
+ "type": "object"
9579
+ },
9580
+ "marketplacePluginReferences": {
9581
+ "items": {
9582
+ "additionalProperties": false,
9583
+ "properties": {
9584
+ "canonicalContentDigest": {
9585
+ "pattern": "^sha256:[a-f0-9]{64}$",
9586
+ "type": "string"
9587
+ },
9588
+ "pluginId": {
9589
+ "pattern": "^plugin:[a-z0-9-]+:[a-z0-9][a-z0-9-]{1,127}$",
9590
+ "type": "string"
9591
+ },
9592
+ "releaseId": { "pattern": "^release:[a-f0-9]{64}$", "type": "string" }
9593
+ },
9594
+ "required": ["canonicalContentDigest", "pluginId", "releaseId"],
9595
+ "type": "object"
9596
+ },
9597
+ "maxItems": 128,
9598
+ "type": "array"
9599
+ },
9600
+ "modelId": {
9601
+ "maxLength": 128,
9602
+ "minLength": 1,
9603
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._/-]*$",
9604
+ "type": "string"
9605
+ },
9606
+ "parentExecutionId": {
9607
+ "pattern": "^exe_[0-9A-HJKMNP-TV-Z]{26}$",
9608
+ "type": "string"
9609
+ },
9610
+ "retentionExpiresAt": {
9611
+ "format": "date-time",
9612
+ "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))$",
9613
+ "type": "string"
9614
+ },
9615
+ "taskId": { "pattern": "^tsk_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9616
+ },
9617
+ "required": ["taskId", "agentId", "executionPlan", "retentionExpiresAt"],
9618
+ "type": "object"
9619
+ },
9620
+ "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
9621
+ "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9622
+ "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9623
+ "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9624
+ },
9625
+ "required": [
9626
+ "caller",
9627
+ "contractVersion",
9628
+ "requestId",
9629
+ "workspaceId",
9630
+ "projectId",
9631
+ "correlation",
9632
+ "commandId",
9633
+ "idempotencyKey",
9634
+ "payloadHash",
9635
+ "operation",
9636
+ "issuedAt",
9637
+ "payload"
9638
+ ],
9639
+ "type": "object"
9640
+ }
9641
+ }
9642
+ },
9643
+ "required": true
9644
+ },
9645
+ "responses": {
9646
+ "200": {
9647
+ "content": {
9648
+ "application/json": {
9649
+ "schema": {
9650
+ "additionalProperties": false,
9651
+ "properties": {
9652
+ "contractVersion": {
9653
+ "additionalProperties": false,
9654
+ "properties": {
9655
+ "major": {
9656
+ "exclusiveMinimum": 0,
9657
+ "maximum": 9007199254740991,
9658
+ "type": "integer"
9659
+ },
9660
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9661
+ },
9662
+ "required": ["major", "minor"],
9663
+ "type": "object"
9664
+ },
9665
+ "correlation": {
9666
+ "additionalProperties": false,
9667
+ "properties": {
9668
+ "causationCommandId": {},
9669
+ "parentEventId": {},
9670
+ "traceId": {}
9671
+ },
9672
+ "required": ["traceId"],
9673
+ "type": "object"
9674
+ },
9675
+ "data": {
9676
+ "additionalProperties": false,
9677
+ "properties": {
9678
+ "commandId": {},
9679
+ "errorReference": {
9680
+ "maxLength": 512,
9681
+ "minLength": 1,
9682
+ "pattern": "^[a-z][a-z0-9+.-]*:\\/\\/\\S+$",
9683
+ "type": "string"
9684
+ },
9685
+ "executionId": {},
9686
+ "executionPlan": {
9687
+ "additionalProperties": false,
9688
+ "properties": {
9689
+ "contentDigest": {
9690
+ "pattern": "^sha256:[a-f0-9]{64}$",
9691
+ "type": "string"
9692
+ },
9693
+ "executionPlanId": {},
9694
+ "schemaVersion": {
9695
+ "exclusiveMinimum": 0,
9696
+ "maximum": 9007199254740991,
9697
+ "type": "integer"
9698
+ }
9699
+ },
9700
+ "required": ["executionPlanId", "contentDigest", "schemaVersion"],
9701
+ "type": "object"
9702
+ },
9703
+ "replayed": { "type": "boolean" },
9704
+ "resultReference": {},
9705
+ "status": {
9706
+ "enum": [
9707
+ "accepted",
9708
+ "processing",
9709
+ "completed",
9710
+ "failed",
9711
+ "reconciliation_required"
9712
+ ],
9713
+ "type": "string"
9714
+ }
9715
+ },
9716
+ "required": [
9717
+ "commandId",
9718
+ "executionId",
9719
+ "executionPlan",
9720
+ "status",
9721
+ "replayed"
9722
+ ],
9723
+ "type": "object"
9724
+ },
9725
+ "requestId": {}
9726
+ },
9727
+ "required": ["contractVersion", "requestId", "correlation", "data"],
9728
+ "type": "object"
9729
+ }
9730
+ }
9731
+ },
9732
+ "description": "Successful response"
9733
+ },
9734
+ "default": {
9735
+ "content": {
9736
+ "application/json": {
9737
+ "schema": {
9738
+ "additionalProperties": false,
9739
+ "properties": {
9740
+ "contractVersion": {
9741
+ "additionalProperties": false,
9742
+ "properties": {
9743
+ "major": {
9744
+ "exclusiveMinimum": 0,
9745
+ "maximum": 9007199254740991,
9746
+ "type": "integer"
9747
+ },
9748
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9749
+ },
9750
+ "required": ["major", "minor"],
9751
+ "type": "object"
9752
+ },
9753
+ "correlation": {
9754
+ "additionalProperties": false,
9755
+ "properties": {
9756
+ "causationCommandId": {},
9757
+ "parentEventId": {},
9758
+ "traceId": {}
9759
+ },
9760
+ "required": ["traceId"],
9761
+ "type": "object"
9762
+ },
9763
+ "error": {
9764
+ "additionalProperties": false,
9765
+ "properties": {
9766
+ "class": {
9767
+ "enum": [
9768
+ "validation",
9769
+ "authentication",
9770
+ "authorization",
9771
+ "conflict",
9772
+ "stale_reference",
9773
+ "capability_mismatch",
9774
+ "runtime_unavailable",
9775
+ "internal"
9776
+ ],
9777
+ "type": "string"
9778
+ },
9779
+ "code": {
9780
+ "maxLength": 96,
9781
+ "minLength": 1,
9782
+ "pattern": "^[A-Z][A-Z0-9_]*$",
9783
+ "type": "string"
9784
+ },
9785
+ "details": {
9786
+ "additionalProperties": {},
9787
+ "propertyNames": { "maxLength": 64, "type": "string" },
9788
+ "type": "object"
9789
+ },
9790
+ "message": { "maxLength": 512, "minLength": 1, "type": "string" },
9791
+ "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
9792
+ "retryable": { "type": "boolean" },
9793
+ "source": {
9794
+ "enum": [
9795
+ "client",
9796
+ "auth",
9797
+ "policy",
9798
+ "runtime",
9799
+ "provider",
9800
+ "persistence",
9801
+ "workflow",
9802
+ "system"
9803
+ ],
9804
+ "type": "string"
9805
+ }
9806
+ },
9807
+ "required": ["class", "code", "message", "retryable", "source"],
9808
+ "type": "object"
9809
+ },
9810
+ "requestId": {}
9811
+ },
9812
+ "required": ["contractVersion", "requestId", "correlation", "error"],
9813
+ "type": "object"
9814
+ }
9815
+ }
9816
+ },
9817
+ "description": "Normalized error response"
9818
+ }
9819
+ },
9820
+ "security": [{ "serviceBearer": [] }]
9821
+ }
9822
+ },
9823
+ "/v1/executions/cancel": {
9824
+ "post": {
9825
+ "operationId": "execution.cancel",
9826
+ "requestBody": {
9827
+ "content": {
9828
+ "application/json": {
9829
+ "schema": {
9830
+ "additionalProperties": false,
9831
+ "properties": {
9832
+ "caller": {
9833
+ "properties": {
9834
+ "servicePrincipalId": {
9835
+ "maxLength": 64,
9836
+ "minLength": 5,
9837
+ "pattern": "^svc_[a-z][a-z0-9-]*$",
9838
+ "type": "string"
9839
+ }
9840
+ },
9841
+ "required": ["servicePrincipalId"],
9842
+ "type": "object"
9843
+ },
9844
+ "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9845
+ "contractVersion": {
9846
+ "additionalProperties": false,
9847
+ "properties": {
9848
+ "major": {
9849
+ "exclusiveMinimum": 0,
9850
+ "maximum": 9007199254740991,
9851
+ "type": "integer"
9852
+ },
9853
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9854
+ },
9855
+ "required": ["major", "minor"],
9856
+ "type": "object"
9857
+ },
9858
+ "correlation": {
9859
+ "properties": {
9860
+ "causationCommandId": {
9861
+ "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
9862
+ "type": "string"
9863
+ },
9864
+ "parentEventId": {
9865
+ "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
9866
+ "type": "string"
9867
+ },
9868
+ "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9869
+ },
9870
+ "required": ["traceId"],
9871
+ "type": "object"
9872
+ },
9873
+ "executionScope": {
9874
+ "oneOf": [
9875
+ {
9876
+ "additionalProperties": false,
9877
+ "properties": {
9878
+ "kind": { "const": "workspace", "type": "string" },
9879
+ "schemaVersion": { "const": 1, "type": "number" }
9880
+ },
9881
+ "required": ["schemaVersion", "kind"],
9882
+ "type": "object"
9883
+ },
9884
+ {
9885
+ "additionalProperties": false,
9886
+ "properties": {
9887
+ "kind": { "const": "project", "type": "string" },
9888
+ "projectId": {
9889
+ "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$",
9890
+ "type": "string"
9891
+ },
9892
+ "schemaVersion": { "const": 1, "type": "number" }
9893
+ },
9894
+ "required": ["schemaVersion", "kind", "projectId"],
9895
+ "type": "object"
9896
+ }
9897
+ ]
9898
+ },
9899
+ "idempotencyKey": {
9900
+ "maxLength": 128,
9901
+ "minLength": 16,
9902
+ "pattern": "^[A-Za-z0-9._:-]+$",
9903
+ "type": "string"
9904
+ },
9905
+ "issuedAt": {
9906
+ "format": "date-time",
9907
+ "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))$",
9908
+ "type": "string"
9909
+ },
9910
+ "operation": { "const": "execution.cancel", "type": "string" },
9911
+ "payload": {
9912
+ "additionalProperties": false,
9913
+ "properties": {
9914
+ "executionId": { "pattern": "^exe_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9915
+ },
9916
+ "required": ["executionId"],
9917
+ "type": "object"
9918
+ },
9919
+ "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
9920
+ "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9921
+ "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
9922
+ "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
9923
+ },
9924
+ "required": [
9925
+ "caller",
9926
+ "contractVersion",
9927
+ "requestId",
9928
+ "workspaceId",
9929
+ "correlation",
9930
+ "commandId",
9931
+ "idempotencyKey",
9932
+ "payloadHash",
9933
+ "operation",
9934
+ "issuedAt",
9935
+ "payload"
9936
+ ],
9937
+ "type": "object"
9938
+ }
9939
+ }
9940
+ },
9941
+ "required": true
9942
+ },
9943
+ "responses": {
9944
+ "202": {
9945
+ "content": {
9946
+ "application/json": {
9947
+ "schema": {
9948
+ "additionalProperties": false,
9949
+ "properties": {
9950
+ "contractVersion": {
9951
+ "additionalProperties": false,
9952
+ "properties": {
9953
+ "major": {
9954
+ "exclusiveMinimum": 0,
9955
+ "maximum": 9007199254740991,
9956
+ "type": "integer"
9957
+ },
9958
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
9959
+ },
9960
+ "required": ["major", "minor"],
9961
+ "type": "object"
9962
+ },
9963
+ "correlation": {
9964
+ "additionalProperties": false,
9965
+ "properties": {
9966
+ "causationCommandId": {},
9967
+ "parentEventId": {},
9968
+ "traceId": {}
9969
+ },
9970
+ "required": ["traceId"],
9971
+ "type": "object"
9972
+ },
9973
+ "data": {
9974
+ "additionalProperties": false,
9975
+ "properties": {
9976
+ "commandId": {},
9977
+ "executionId": {},
9978
+ "replayed": { "type": "boolean" },
9979
+ "status": { "const": "accepted", "type": "string" }
9980
+ },
9981
+ "required": ["commandId", "executionId", "status", "replayed"],
9982
+ "type": "object"
9983
+ },
9984
+ "requestId": {}
9985
+ },
9986
+ "required": ["contractVersion", "requestId", "correlation", "data"],
9987
+ "type": "object"
9988
+ }
9989
+ }
9990
+ },
9991
+ "description": "Successful response"
9992
+ },
9993
+ "default": {
9994
+ "content": {
9995
+ "application/json": {
9996
+ "schema": {
9997
+ "additionalProperties": false,
9998
+ "properties": {
9999
+ "contractVersion": {
10000
+ "additionalProperties": false,
10001
+ "properties": {
10002
+ "major": {
10003
+ "exclusiveMinimum": 0,
10004
+ "maximum": 9007199254740991,
10005
+ "type": "integer"
10006
+ },
10007
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
10008
+ },
10009
+ "required": ["major", "minor"],
10010
+ "type": "object"
10011
+ },
10012
+ "correlation": {
10013
+ "additionalProperties": false,
10014
+ "properties": {
10015
+ "causationCommandId": {},
10016
+ "parentEventId": {},
10017
+ "traceId": {}
10018
+ },
10019
+ "required": ["traceId"],
10020
+ "type": "object"
10021
+ },
10022
+ "error": {
10023
+ "additionalProperties": false,
10024
+ "properties": {
10025
+ "class": {
10026
+ "enum": [
10027
+ "validation",
10028
+ "authentication",
10029
+ "authorization",
10030
+ "conflict",
10031
+ "stale_reference",
10032
+ "capability_mismatch",
10033
+ "runtime_unavailable",
10034
+ "internal"
10035
+ ],
10036
+ "type": "string"
10037
+ },
10038
+ "code": {
10039
+ "maxLength": 96,
10040
+ "minLength": 1,
10041
+ "pattern": "^[A-Z][A-Z0-9_]*$",
10042
+ "type": "string"
10043
+ },
10044
+ "details": {
10045
+ "additionalProperties": {},
10046
+ "propertyNames": { "maxLength": 64, "type": "string" },
10047
+ "type": "object"
10048
+ },
10049
+ "message": { "maxLength": 512, "minLength": 1, "type": "string" },
10050
+ "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
10051
+ "retryable": { "type": "boolean" },
10052
+ "source": {
10053
+ "enum": [
10054
+ "client",
10055
+ "auth",
10056
+ "policy",
10057
+ "runtime",
10058
+ "provider",
10059
+ "persistence",
10060
+ "workflow",
10061
+ "system"
10062
+ ],
10063
+ "type": "string"
10064
+ }
10065
+ },
10066
+ "required": ["class", "code", "message", "retryable", "source"],
10067
+ "type": "object"
10068
+ },
10069
+ "requestId": {}
10070
+ },
10071
+ "required": ["contractVersion", "requestId", "correlation", "error"],
10072
+ "type": "object"
10073
+ }
10074
+ }
10075
+ },
10076
+ "description": "Normalized error response"
10077
+ }
10078
+ },
10079
+ "security": [{ "serviceBearer": [] }]
10080
+ }
10081
+ },
10082
+ "/v1/executions/validate": {
10083
+ "post": {
10084
+ "operationId": "execution.validate",
10085
+ "requestBody": {
10086
+ "content": {
10087
+ "application/json": {
10088
+ "schema": {
10089
+ "properties": {
10090
+ "caller": {
10091
+ "properties": {
10092
+ "servicePrincipalId": {
10093
+ "maxLength": 64,
10094
+ "minLength": 5,
10095
+ "pattern": "^svc_[a-z][a-z0-9-]*$",
10096
+ "type": "string"
10097
+ }
10098
+ },
10099
+ "required": ["servicePrincipalId"],
10100
+ "type": "object"
10101
+ },
10102
+ "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
10103
+ "contractVersion": {
10104
+ "additionalProperties": false,
10105
+ "properties": {
10106
+ "major": {
10107
+ "exclusiveMinimum": 0,
10108
+ "maximum": 9007199254740991,
10109
+ "type": "integer"
10110
+ },
10111
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
10112
+ },
10113
+ "required": ["major", "minor"],
10114
+ "type": "object"
10115
+ },
10116
+ "correlation": {
10117
+ "properties": {
10118
+ "causationCommandId": {
10119
+ "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
10120
+ "type": "string"
10121
+ },
10122
+ "parentEventId": {
10123
+ "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
10124
+ "type": "string"
10125
+ },
10126
+ "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
10127
+ },
10128
+ "required": ["traceId"],
10129
+ "type": "object"
10130
+ },
10131
+ "idempotencyKey": {
10132
+ "maxLength": 128,
10133
+ "minLength": 16,
10134
+ "pattern": "^[A-Za-z0-9._:-]+$",
10135
+ "type": "string"
10136
+ },
10137
+ "issuedAt": {
10138
+ "format": "date-time",
10139
+ "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))$",
10140
+ "type": "string"
10141
+ },
10142
+ "operation": { "const": "execution.validate", "type": "string" },
10143
+ "payload": {
10144
+ "anyOf": [
10145
+ {
10146
+ "properties": {
10147
+ "agentId": {
10148
+ "pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
10149
+ "type": "string"
10150
+ },
10151
+ "contextInputs": { "not": {} },
10152
+ "contextPackage": {
10153
+ "properties": {
10154
+ "compilerVersion": {
10155
+ "maxLength": 64,
10156
+ "minLength": 1,
10157
+ "type": "string"
10158
+ },
10159
+ "contentDigest": {
10160
+ "pattern": "^sha256:[a-f0-9]{64}$",
10161
+ "type": "string"
10162
+ },
10163
+ "contextPackageId": {
10164
+ "pattern": "^ctx_[0-9A-HJKMNP-TV-Z]{26}$",
10165
+ "type": "string"
10166
+ },
10167
+ "schemaVersion": {
10168
+ "exclusiveMinimum": 0,
10169
+ "maximum": 9007199254740991,
10170
+ "type": "integer"
10171
+ }
10172
+ },
10173
+ "required": [
10174
+ "contextPackageId",
10175
+ "contentDigest",
10176
+ "schemaVersion",
10177
+ "compilerVersion"
10178
+ ],
10179
+ "type": "object"
10180
+ },
10181
+ "outputContractRef": {
10182
+ "maxLength": 512,
10183
+ "minLength": 1,
10184
+ "type": "string"
10185
+ },
10186
+ "policySnapshot": {
10187
+ "properties": {
10188
+ "contentDigest": {
10189
+ "pattern": "^sha256:[a-f0-9]{64}$",
10190
+ "type": "string"
10191
+ },
10192
+ "policySnapshotId": {
10193
+ "maxLength": 256,
10194
+ "minLength": 1,
10195
+ "type": "string"
10196
+ },
10197
+ "revision": {
10198
+ "exclusiveMinimum": 0,
10199
+ "maximum": 9007199254740991,
10200
+ "type": "integer"
10201
+ }
10202
+ },
10203
+ "required": ["policySnapshotId", "revision", "contentDigest"],
10204
+ "type": "object"
10205
+ },
10206
+ "profileVersionId": {
10207
+ "pattern": "^pfv_[0-9A-HJKMNP-TV-Z]{26}$",
10208
+ "type": "string"
10209
+ },
10210
+ "projectState": {
10211
+ "properties": {
10212
+ "projectId": {
10213
+ "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$",
10214
+ "type": "string"
10215
+ },
10216
+ "revision": {
10217
+ "maximum": 9007199254740991,
10218
+ "minimum": 0,
10219
+ "type": "integer"
10220
+ },
10221
+ "workspaceId": {
10222
+ "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$",
10223
+ "type": "string"
10224
+ }
10225
+ },
10226
+ "required": ["workspaceId", "projectId", "revision"],
10227
+ "type": "object"
9333
10228
  },
9334
10229
  "runtimeRequirements": {
9335
10230
  "items": {
@@ -11651,9 +12546,259 @@
11651
12546
  ],
11652
12547
  "type": "object"
11653
12548
  },
11654
- "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
12549
+ "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
12550
+ "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
12551
+ "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
12552
+ "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
12553
+ },
12554
+ "required": [
12555
+ "caller",
12556
+ "contractVersion",
12557
+ "requestId",
12558
+ "workspaceId",
12559
+ "correlation",
12560
+ "commandId",
12561
+ "idempotencyKey",
12562
+ "payloadHash",
12563
+ "operation",
12564
+ "issuedAt",
12565
+ "payload"
12566
+ ],
12567
+ "type": "object"
12568
+ }
12569
+ }
12570
+ },
12571
+ "required": true
12572
+ },
12573
+ "responses": {
12574
+ "200": {
12575
+ "content": {
12576
+ "application/json": {
12577
+ "schema": {
12578
+ "additionalProperties": false,
12579
+ "properties": {
12580
+ "contractVersion": {
12581
+ "additionalProperties": false,
12582
+ "properties": {
12583
+ "major": {
12584
+ "exclusiveMinimum": 0,
12585
+ "maximum": 9007199254740991,
12586
+ "type": "integer"
12587
+ },
12588
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
12589
+ },
12590
+ "required": ["major", "minor"],
12591
+ "type": "object"
12592
+ },
12593
+ "correlation": {
12594
+ "additionalProperties": false,
12595
+ "properties": {
12596
+ "causationCommandId": {},
12597
+ "parentEventId": {},
12598
+ "traceId": {}
12599
+ },
12600
+ "required": ["traceId"],
12601
+ "type": "object"
12602
+ },
12603
+ "data": {
12604
+ "additionalProperties": {},
12605
+ "properties": {
12606
+ "allowedToActivate": { "const": false, "type": "boolean" },
12607
+ "approvalRequired": { "const": true, "type": "boolean" },
12608
+ "compatibility": {
12609
+ "enum": ["full", "partial", "unsupported"],
12610
+ "type": "string"
12611
+ },
12612
+ "instanceId": { "minLength": 1, "type": "string" },
12613
+ "planVersion": { "const": 2, "type": "number" },
12614
+ "pluginId": { "minLength": 1, "type": "string" },
12615
+ "releaseId": { "minLength": 1, "type": "string" },
12616
+ "strategy": {
12617
+ "enum": ["native-agent-plugin", "component-adapter", "unavailable"],
12618
+ "type": "string"
12619
+ }
12620
+ },
12621
+ "required": [
12622
+ "planVersion",
12623
+ "pluginId",
12624
+ "releaseId",
12625
+ "instanceId",
12626
+ "strategy",
12627
+ "compatibility",
12628
+ "allowedToActivate",
12629
+ "approvalRequired"
12630
+ ],
12631
+ "type": "object"
12632
+ },
12633
+ "requestId": {}
12634
+ },
12635
+ "required": ["contractVersion", "requestId", "correlation", "data"],
12636
+ "type": "object"
12637
+ }
12638
+ }
12639
+ },
12640
+ "description": "Successful response"
12641
+ },
12642
+ "default": {
12643
+ "content": {
12644
+ "application/json": {
12645
+ "schema": {
12646
+ "additionalProperties": false,
12647
+ "properties": {
12648
+ "contractVersion": {
12649
+ "additionalProperties": false,
12650
+ "properties": {
12651
+ "major": {
12652
+ "exclusiveMinimum": 0,
12653
+ "maximum": 9007199254740991,
12654
+ "type": "integer"
12655
+ },
12656
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
12657
+ },
12658
+ "required": ["major", "minor"],
12659
+ "type": "object"
12660
+ },
12661
+ "correlation": {
12662
+ "additionalProperties": false,
12663
+ "properties": {
12664
+ "causationCommandId": {},
12665
+ "parentEventId": {},
12666
+ "traceId": {}
12667
+ },
12668
+ "required": ["traceId"],
12669
+ "type": "object"
12670
+ },
12671
+ "error": {
12672
+ "additionalProperties": false,
12673
+ "properties": {
12674
+ "class": {
12675
+ "enum": [
12676
+ "validation",
12677
+ "authentication",
12678
+ "authorization",
12679
+ "conflict",
12680
+ "stale_reference",
12681
+ "capability_mismatch",
12682
+ "runtime_unavailable",
12683
+ "internal"
12684
+ ],
12685
+ "type": "string"
12686
+ },
12687
+ "code": {
12688
+ "maxLength": 96,
12689
+ "minLength": 1,
12690
+ "pattern": "^[A-Z][A-Z0-9_]*$",
12691
+ "type": "string"
12692
+ },
12693
+ "details": {
12694
+ "additionalProperties": {},
12695
+ "propertyNames": { "maxLength": 64, "type": "string" },
12696
+ "type": "object"
12697
+ },
12698
+ "message": { "maxLength": 512, "minLength": 1, "type": "string" },
12699
+ "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
12700
+ "retryable": { "type": "boolean" },
12701
+ "source": {
12702
+ "enum": [
12703
+ "client",
12704
+ "auth",
12705
+ "policy",
12706
+ "runtime",
12707
+ "provider",
12708
+ "persistence",
12709
+ "workflow",
12710
+ "system"
12711
+ ],
12712
+ "type": "string"
12713
+ }
12714
+ },
12715
+ "required": ["class", "code", "message", "retryable", "source"],
12716
+ "type": "object"
12717
+ },
12718
+ "requestId": {}
12719
+ },
12720
+ "required": ["contractVersion", "requestId", "correlation", "error"],
12721
+ "type": "object"
12722
+ }
12723
+ }
12724
+ },
12725
+ "description": "Normalized error response"
12726
+ }
12727
+ },
12728
+ "security": [{ "serviceBearer": [] }]
12729
+ }
12730
+ },
12731
+ "/v1/marketplace/installations/get": {
12732
+ "post": {
12733
+ "operationId": "marketplace.installation.get",
12734
+ "requestBody": {
12735
+ "content": {
12736
+ "application/json": {
12737
+ "schema": {
12738
+ "properties": {
12739
+ "caller": {
12740
+ "properties": {
12741
+ "servicePrincipalId": {
12742
+ "maxLength": 64,
12743
+ "minLength": 5,
12744
+ "pattern": "^svc_[a-z][a-z0-9-]*$",
12745
+ "type": "string"
12746
+ }
12747
+ },
12748
+ "required": ["servicePrincipalId"],
12749
+ "type": "object"
12750
+ },
12751
+ "contractVersion": {
12752
+ "additionalProperties": false,
12753
+ "properties": {
12754
+ "major": {
12755
+ "exclusiveMinimum": 0,
12756
+ "maximum": 9007199254740991,
12757
+ "type": "integer"
12758
+ },
12759
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
12760
+ },
12761
+ "required": ["major", "minor"],
12762
+ "type": "object"
12763
+ },
12764
+ "correlation": {
12765
+ "properties": {
12766
+ "causationCommandId": {
12767
+ "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
12768
+ "type": "string"
12769
+ },
12770
+ "parentEventId": {
12771
+ "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
12772
+ "type": "string"
12773
+ },
12774
+ "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
12775
+ },
12776
+ "required": ["traceId"],
12777
+ "type": "object"
12778
+ },
12779
+ "operation": { "const": "marketplace.installation.get", "type": "string" },
12780
+ "parameters": {
12781
+ "properties": {
12782
+ "installationId": { "pattern": "^ins_[a-z0-9]{1,124}$", "type": "string" },
12783
+ "workspaceIdentity": {
12784
+ "properties": {
12785
+ "userId": { "maxLength": 128, "minLength": 1, "type": "string" },
12786
+ "workspaceId": { "maxLength": 128, "minLength": 1, "type": "string" }
12787
+ },
12788
+ "required": ["workspaceId", "userId"],
12789
+ "type": "object"
12790
+ }
12791
+ },
12792
+ "required": ["installationId", "workspaceIdentity"],
12793
+ "type": "object"
12794
+ },
11655
12795
  "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
11656
12796
  "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
12797
+ "requestedAt": {
12798
+ "format": "date-time",
12799
+ "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))$",
12800
+ "type": "string"
12801
+ },
11657
12802
  "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
11658
12803
  },
11659
12804
  "required": [
@@ -11662,12 +12807,9 @@
11662
12807
  "requestId",
11663
12808
  "workspaceId",
11664
12809
  "correlation",
11665
- "commandId",
11666
- "idempotencyKey",
11667
- "payloadHash",
11668
12810
  "operation",
11669
- "issuedAt",
11670
- "payload"
12811
+ "requestedAt",
12812
+ "parameters"
11671
12813
  ],
11672
12814
  "type": "object"
11673
12815
  }
@@ -11706,33 +12848,85 @@
11706
12848
  "type": "object"
11707
12849
  },
11708
12850
  "data": {
11709
- "additionalProperties": {},
12851
+ "additionalProperties": false,
11710
12852
  "properties": {
11711
- "allowedToActivate": { "const": false, "type": "boolean" },
11712
- "approvalRequired": { "const": true, "type": "boolean" },
11713
- "compatibility": {
11714
- "enum": ["full", "partial", "unsupported"],
11715
- "type": "string"
11716
- },
11717
- "instanceId": { "minLength": 1, "type": "string" },
11718
- "planVersion": { "const": 2, "type": "number" },
11719
- "pluginId": { "minLength": 1, "type": "string" },
11720
- "releaseId": { "minLength": 1, "type": "string" },
11721
- "strategy": {
11722
- "enum": ["native-agent-plugin", "component-adapter", "unavailable"],
11723
- "type": "string"
12853
+ "installation": {
12854
+ "additionalProperties": false,
12855
+ "properties": {
12856
+ "canonicalContentDigest": {
12857
+ "pattern": "^sha256:[a-f0-9]{64}$",
12858
+ "type": "string"
12859
+ },
12860
+ "catalogId": { "pattern": "^catalog:[a-f0-9]{64}$", "type": "string" },
12861
+ "installationId": {
12862
+ "maxLength": 128,
12863
+ "minLength": 1,
12864
+ "type": "string"
12865
+ },
12866
+ "installationInstanceId": {
12867
+ "maxLength": 256,
12868
+ "minLength": 1,
12869
+ "type": "string"
12870
+ },
12871
+ "installedAt": {
12872
+ "format": "date-time",
12873
+ "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))$",
12874
+ "type": "string"
12875
+ },
12876
+ "installedBy": { "maxLength": 256, "minLength": 1, "type": "string" },
12877
+ "packageDigest": {
12878
+ "pattern": "^sha256:[a-f0-9]{64}$",
12879
+ "type": "string"
12880
+ },
12881
+ "pluginId": {
12882
+ "pattern": "^plugin:[a-z0-9-]+:[a-z0-9][a-z0-9-]{1,127}$",
12883
+ "type": "string"
12884
+ },
12885
+ "releaseId": { "pattern": "^release:[a-f0-9]{64}$", "type": "string" },
12886
+ "requestedHarness": {
12887
+ "maxLength": 128,
12888
+ "minLength": 1,
12889
+ "type": "string"
12890
+ },
12891
+ "state": {
12892
+ "enum": [
12893
+ "pending-authorization",
12894
+ "unavailable",
12895
+ "rejected-by-policy",
12896
+ "installed",
12897
+ "superseded",
12898
+ "uninstalled"
12899
+ ],
12900
+ "type": "string"
12901
+ },
12902
+ "uninstalledAt": {
12903
+ "format": "date-time",
12904
+ "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))$",
12905
+ "type": "string"
12906
+ },
12907
+ "uninstalledBy": { "maxLength": 256, "minLength": 1, "type": "string" },
12908
+ "updatedAt": {
12909
+ "format": "date-time",
12910
+ "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))$",
12911
+ "type": "string"
12912
+ }
12913
+ },
12914
+ "required": [
12915
+ "pluginId",
12916
+ "releaseId",
12917
+ "canonicalContentDigest",
12918
+ "installationId",
12919
+ "catalogId",
12920
+ "requestedHarness",
12921
+ "state",
12922
+ "installedBy",
12923
+ "installedAt",
12924
+ "updatedAt"
12925
+ ],
12926
+ "type": "object"
11724
12927
  }
11725
12928
  },
11726
- "required": [
11727
- "planVersion",
11728
- "pluginId",
11729
- "releaseId",
11730
- "instanceId",
11731
- "strategy",
11732
- "compatibility",
11733
- "allowedToActivate",
11734
- "approvalRequired"
11735
- ],
12929
+ "required": ["installation"],
11736
12930
  "type": "object"
11737
12931
  },
11738
12932
  "requestId": {}
@@ -11833,9 +13027,9 @@
11833
13027
  "security": [{ "serviceBearer": [] }]
11834
13028
  }
11835
13029
  },
11836
- "/v1/marketplace/installations/get": {
13030
+ "/v1/marketplace/installations/list": {
11837
13031
  "post": {
11838
- "operationId": "marketplace.installation.get",
13032
+ "operationId": "marketplace.installation.list",
11839
13033
  "requestBody": {
11840
13034
  "content": {
11841
13035
  "application/json": {
@@ -11881,10 +13075,17 @@
11881
13075
  "required": ["traceId"],
11882
13076
  "type": "object"
11883
13077
  },
11884
- "operation": { "const": "marketplace.installation.get", "type": "string" },
13078
+ "operation": { "const": "marketplace.installation.list", "type": "string" },
11885
13079
  "parameters": {
11886
13080
  "properties": {
11887
- "installationId": { "pattern": "^ins_[a-z0-9]{1,124}$", "type": "string" },
13081
+ "cursor": {
13082
+ "maxLength": 512,
13083
+ "minLength": 8,
13084
+ "pattern": "^cur_[A-Za-z0-9_-]+$",
13085
+ "type": "string"
13086
+ },
13087
+ "installedBy": { "maxLength": 128, "minLength": 1, "type": "string" },
13088
+ "limit": { "maximum": 100, "minimum": 1, "type": "integer" },
11888
13089
  "workspaceIdentity": {
11889
13090
  "properties": {
11890
13091
  "userId": { "maxLength": 128, "minLength": 1, "type": "string" },
@@ -11894,7 +13095,7 @@
11894
13095
  "type": "object"
11895
13096
  }
11896
13097
  },
11897
- "required": ["installationId", "workspaceIdentity"],
13098
+ "required": ["workspaceIdentity"],
11898
13099
  "type": "object"
11899
13100
  },
11900
13101
  "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
@@ -11955,83 +13156,72 @@
11955
13156
  "data": {
11956
13157
  "additionalProperties": false,
11957
13158
  "properties": {
11958
- "installation": {
13159
+ "installations": {
13160
+ "items": {
13161
+ "additionalProperties": false,
13162
+ "properties": {
13163
+ "canonicalContentDigest": {
13164
+ "pattern": "^sha256:[a-f0-9]{64}$",
13165
+ "type": "string"
13166
+ },
13167
+ "installationId": {
13168
+ "maxLength": 128,
13169
+ "minLength": 1,
13170
+ "type": "string"
13171
+ },
13172
+ "installationInstanceId": {
13173
+ "maxLength": 256,
13174
+ "minLength": 1,
13175
+ "type": "string"
13176
+ },
13177
+ "packageDigest": {
13178
+ "pattern": "^sha256:[a-f0-9]{64}$",
13179
+ "type": "string"
13180
+ },
13181
+ "pluginId": {
13182
+ "pattern": "^plugin:[a-z0-9-]+:[a-z0-9][a-z0-9-]{1,127}$",
13183
+ "type": "string"
13184
+ },
13185
+ "releaseId": {
13186
+ "pattern": "^release:[a-f0-9]{64}$",
13187
+ "type": "string"
13188
+ },
13189
+ "state": {
13190
+ "enum": [
13191
+ "pending-authorization",
13192
+ "unavailable",
13193
+ "rejected-by-policy",
13194
+ "installed",
13195
+ "superseded"
13196
+ ],
13197
+ "type": "string"
13198
+ }
13199
+ },
13200
+ "required": [
13201
+ "pluginId",
13202
+ "releaseId",
13203
+ "canonicalContentDigest",
13204
+ "state"
13205
+ ],
13206
+ "type": "object"
13207
+ },
13208
+ "maxItems": 100,
13209
+ "type": "array"
13210
+ },
13211
+ "installationsPage": {
11959
13212
  "additionalProperties": false,
11960
13213
  "properties": {
11961
- "canonicalContentDigest": {
11962
- "pattern": "^sha256:[a-f0-9]{64}$",
11963
- "type": "string"
11964
- },
11965
- "catalogId": { "pattern": "^catalog:[a-f0-9]{64}$", "type": "string" },
11966
- "installationId": {
11967
- "maxLength": 128,
11968
- "minLength": 1,
11969
- "type": "string"
11970
- },
11971
- "installationInstanceId": {
11972
- "maxLength": 256,
11973
- "minLength": 1,
11974
- "type": "string"
11975
- },
11976
- "installedAt": {
11977
- "format": "date-time",
11978
- "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))$",
11979
- "type": "string"
11980
- },
11981
- "installedBy": { "maxLength": 256, "minLength": 1, "type": "string" },
11982
- "packageDigest": {
11983
- "pattern": "^sha256:[a-f0-9]{64}$",
11984
- "type": "string"
11985
- },
11986
- "pluginId": {
11987
- "pattern": "^plugin:[a-z0-9-]+:[a-z0-9][a-z0-9-]{1,127}$",
11988
- "type": "string"
11989
- },
11990
- "releaseId": { "pattern": "^release:[a-f0-9]{64}$", "type": "string" },
11991
- "requestedHarness": {
11992
- "maxLength": 128,
11993
- "minLength": 1,
11994
- "type": "string"
11995
- },
11996
- "state": {
11997
- "enum": [
11998
- "pending-authorization",
11999
- "unavailable",
12000
- "rejected-by-policy",
12001
- "installed",
12002
- "superseded",
12003
- "uninstalled"
12004
- ],
12005
- "type": "string"
12006
- },
12007
- "uninstalledAt": {
12008
- "format": "date-time",
12009
- "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))$",
12010
- "type": "string"
12011
- },
12012
- "uninstalledBy": { "maxLength": 256, "minLength": 1, "type": "string" },
12013
- "updatedAt": {
12014
- "format": "date-time",
12015
- "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))$",
13214
+ "nextCursor": {
13215
+ "maxLength": 512,
13216
+ "minLength": 8,
13217
+ "pattern": "^cur_[A-Za-z0-9_-]+$",
12016
13218
  "type": "string"
12017
13219
  }
12018
13220
  },
12019
- "required": [
12020
- "pluginId",
12021
- "releaseId",
12022
- "canonicalContentDigest",
12023
- "installationId",
12024
- "catalogId",
12025
- "requestedHarness",
12026
- "state",
12027
- "installedBy",
12028
- "installedAt",
12029
- "updatedAt"
12030
- ],
12031
13221
  "type": "object"
12032
13222
  }
12033
13223
  },
12034
- "required": ["installation"],
13224
+ "required": ["installations", "installationsPage"],
12035
13225
  "type": "object"
12036
13226
  },
12037
13227
  "requestId": {}