@reviewsensei/cli-linux-x64-gnu 0.8.20 → 0.8.23

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.
@@ -21,6 +21,207 @@
21
21
  "expires_at",
22
22
  "record_sha256"
23
23
  ],
24
+ "$defs": {
25
+ "accepted_semantic_history_record": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "required": [
29
+ "operation_key",
30
+ "purpose",
31
+ "source",
32
+ "snapshot",
33
+ "made_progress",
34
+ "target_base_sha",
35
+ "target_head_sha"
36
+ ],
37
+ "properties": {
38
+ "operation_key": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 256
42
+ },
43
+ "purpose": {
44
+ "enum": [
45
+ "command",
46
+ "reply"
47
+ ]
48
+ },
49
+ "source": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "kind",
54
+ "id",
55
+ "updated_at",
56
+ "body_sha256"
57
+ ],
58
+ "properties": {
59
+ "kind": {
60
+ "enum": [
61
+ "issue_comment",
62
+ "review_comment"
63
+ ]
64
+ },
65
+ "id": {
66
+ "type": "integer",
67
+ "minimum": 1,
68
+ "maximum": 9007199254740991
69
+ },
70
+ "updated_at": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "maxLength": 128
74
+ },
75
+ "body_sha256": {
76
+ "type": "string",
77
+ "pattern": "^[a-f0-9]{64}$"
78
+ }
79
+ }
80
+ },
81
+ "snapshot": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": [
85
+ "inventory_sha256",
86
+ "unresolved_sha256",
87
+ "enumerated_sha256",
88
+ "reviewed_sha256",
89
+ "uncertain_sha256",
90
+ "pending_sha256",
91
+ "receipts_sha256",
92
+ "base_sha",
93
+ "head_sha",
94
+ "unresolved_count",
95
+ "reviewed_count",
96
+ "uncertain_count",
97
+ "pending_count",
98
+ "review_complete",
99
+ "enumeration_complete",
100
+ "fully_reviewed",
101
+ "unknown_trust_effect"
102
+ ],
103
+ "properties": {
104
+ "inventory_sha256": {
105
+ "type": "string",
106
+ "pattern": "^[a-f0-9]{64}$"
107
+ },
108
+ "unresolved_sha256": {
109
+ "type": "string",
110
+ "pattern": "^[a-f0-9]{64}$"
111
+ },
112
+ "enumerated_sha256": {
113
+ "type": "string",
114
+ "pattern": "^[a-f0-9]{64}$"
115
+ },
116
+ "reviewed_sha256": {
117
+ "type": "string",
118
+ "pattern": "^[a-f0-9]{64}$"
119
+ },
120
+ "uncertain_sha256": {
121
+ "type": "string",
122
+ "pattern": "^[a-f0-9]{64}$"
123
+ },
124
+ "pending_sha256": {
125
+ "type": "string",
126
+ "pattern": "^[a-f0-9]{64}$"
127
+ },
128
+ "receipts_sha256": {
129
+ "type": "string",
130
+ "pattern": "^[a-f0-9]{64}$"
131
+ },
132
+ "base_sha": {
133
+ "type": "string",
134
+ "pattern": "^[a-f0-9]{40}$"
135
+ },
136
+ "head_sha": {
137
+ "type": "string",
138
+ "pattern": "^[a-f0-9]{40}$"
139
+ },
140
+ "unresolved_count": {
141
+ "type": "integer",
142
+ "minimum": 0,
143
+ "maximum": 100000
144
+ },
145
+ "reviewed_count": {
146
+ "type": "integer",
147
+ "minimum": 0,
148
+ "maximum": 100000
149
+ },
150
+ "uncertain_count": {
151
+ "type": "integer",
152
+ "minimum": 0,
153
+ "maximum": 100000
154
+ },
155
+ "pending_count": {
156
+ "type": "integer",
157
+ "minimum": 0,
158
+ "maximum": 100000
159
+ },
160
+ "review_complete": {
161
+ "type": "boolean"
162
+ },
163
+ "enumeration_complete": {
164
+ "type": "boolean"
165
+ },
166
+ "fully_reviewed": {
167
+ "type": "boolean"
168
+ },
169
+ "unknown_trust_effect": {
170
+ "type": "boolean"
171
+ }
172
+ }
173
+ },
174
+ "made_progress": {
175
+ "type": "boolean"
176
+ },
177
+ "target_base_sha": {
178
+ "anyOf": [
179
+ {
180
+ "type": "string",
181
+ "pattern": "^[a-f0-9]{40}$"
182
+ },
183
+ {
184
+ "type": "null"
185
+ }
186
+ ]
187
+ },
188
+ "target_head_sha": {
189
+ "anyOf": [
190
+ {
191
+ "type": "string",
192
+ "pattern": "^[a-f0-9]{40}$"
193
+ },
194
+ {
195
+ "type": "null"
196
+ }
197
+ ]
198
+ },
199
+ "disposition_entry": {
200
+ "type": "boolean",
201
+ "const": true
202
+ }
203
+ },
204
+ "allOf": [
205
+ {
206
+ "if": {
207
+ "required": [
208
+ "disposition_entry"
209
+ ]
210
+ },
211
+ "then": {
212
+ "properties": {
213
+ "purpose": {
214
+ "const": "command"
215
+ },
216
+ "made_progress": {
217
+ "const": false
218
+ }
219
+ }
220
+ }
221
+ }
222
+ ]
223
+ }
224
+ },
24
225
  "properties": {
25
226
  "historical_assessments": {
26
227
  "$ref": "https://reviewsensei.dev/schemas/v1/historical-assessment-hold.schema.json"
@@ -38,7 +239,10 @@
38
239
  ],
39
240
  "properties": {
40
241
  "schema_version": {
41
- "enum": ["1.0", "2.0"]
242
+ "enum": [
243
+ "1.0",
244
+ "2.0"
245
+ ]
42
246
  },
43
247
  "result_digest": {
44
248
  "type": "string",
@@ -607,6 +811,9 @@
607
811
  },
608
812
  "blocking": {
609
813
  "type": "boolean"
814
+ },
815
+ "needs_human": {
816
+ "type": "boolean"
610
817
  }
611
818
  }
612
819
  }
@@ -770,135 +977,683 @@
770
977
  "$ref": "https://reviewsensei.dev/schemas/v1/quarantine-lineage.schema.json"
771
978
  },
772
979
  "publication_staging": {
773
- "description": "Closed bounded frontier for a multipart native publication. Unknown attempts are retained.",
980
+ "oneOf": [
981
+ {
982
+ "description": "Closed bounded frontier for a multipart native publication. Unknown attempts are retained.",
983
+ "type": "object",
984
+ "additionalProperties": false,
985
+ "required": [
986
+ "schema_version",
987
+ "transaction_id",
988
+ "result_sha256",
989
+ "plan_sha256",
990
+ "part_count",
991
+ "attempted_parts",
992
+ "attempt_tokens",
993
+ "receipts",
994
+ "final_attempted",
995
+ "final_token",
996
+ "final_receipt",
997
+ "manifest_required",
998
+ "manifest_attempted",
999
+ "manifest_token",
1000
+ "manifest_receipt"
1001
+ ],
1002
+ "properties": {
1003
+ "schema_version": {
1004
+ "const": "publication-staging-v2"
1005
+ },
1006
+ "transaction_id": {
1007
+ "type": "string",
1008
+ "pattern": "^[a-f0-9]{64}$"
1009
+ },
1010
+ "result_sha256": {
1011
+ "type": "string",
1012
+ "pattern": "^[a-f0-9]{64}$"
1013
+ },
1014
+ "plan_sha256": {
1015
+ "type": "string",
1016
+ "pattern": "^[a-f0-9]{64}$"
1017
+ },
1018
+ "part_count": {
1019
+ "type": "integer",
1020
+ "minimum": 0,
1021
+ "maximum": 8
1022
+ },
1023
+ "attempted_parts": {
1024
+ "type": "integer",
1025
+ "minimum": 0,
1026
+ "maximum": 8
1027
+ },
1028
+ "attempt_tokens": {
1029
+ "type": "array",
1030
+ "maxItems": 8,
1031
+ "uniqueItems": true,
1032
+ "items": {
1033
+ "type": "string",
1034
+ "pattern": "^[a-f0-9]{32}$"
1035
+ }
1036
+ },
1037
+ "receipts": {
1038
+ "type": "array",
1039
+ "maxItems": 8,
1040
+ "items": {
1041
+ "type": "object",
1042
+ "additionalProperties": false,
1043
+ "required": [
1044
+ "native_id",
1045
+ "content_sha256"
1046
+ ],
1047
+ "properties": {
1048
+ "native_id": {
1049
+ "type": "string",
1050
+ "pattern": "^[A-Za-z0-9_:.=-]{1,64}$"
1051
+ },
1052
+ "content_sha256": {
1053
+ "type": "string",
1054
+ "pattern": "^[a-f0-9]{64}$"
1055
+ }
1056
+ }
1057
+ }
1058
+ },
1059
+ "final_attempted": {
1060
+ "type": "boolean"
1061
+ },
1062
+ "final_token": {
1063
+ "anyOf": [
1064
+ {
1065
+ "type": "string",
1066
+ "pattern": "^[a-f0-9]{32}$"
1067
+ },
1068
+ {
1069
+ "type": "null"
1070
+ }
1071
+ ]
1072
+ },
1073
+ "manifest_required": {
1074
+ "type": "boolean"
1075
+ },
1076
+ "manifest_attempted": {
1077
+ "type": "boolean"
1078
+ },
1079
+ "manifest_token": {
1080
+ "anyOf": [
1081
+ {
1082
+ "type": "string",
1083
+ "pattern": "^[a-f0-9]{32}$"
1084
+ },
1085
+ {
1086
+ "type": "null"
1087
+ }
1088
+ ]
1089
+ },
1090
+ "manifest_receipt": {
1091
+ "anyOf": [
1092
+ {
1093
+ "type": "object",
1094
+ "additionalProperties": false,
1095
+ "required": [
1096
+ "native_id",
1097
+ "content_sha256"
1098
+ ],
1099
+ "properties": {
1100
+ "native_id": {
1101
+ "type": "string",
1102
+ "pattern": "^[A-Za-z0-9_:.=-]{1,64}$"
1103
+ },
1104
+ "content_sha256": {
1105
+ "type": "string",
1106
+ "pattern": "^[a-f0-9]{64}$"
1107
+ }
1108
+ }
1109
+ },
1110
+ {
1111
+ "type": "null"
1112
+ }
1113
+ ]
1114
+ },
1115
+ "final_receipt": {
1116
+ "anyOf": [
1117
+ {
1118
+ "type": "object",
1119
+ "additionalProperties": false,
1120
+ "required": [
1121
+ "native_id",
1122
+ "content_sha256"
1123
+ ],
1124
+ "properties": {
1125
+ "native_id": {
1126
+ "type": "string",
1127
+ "pattern": "^[A-Za-z0-9_:.=-]{1,64}$"
1128
+ },
1129
+ "content_sha256": {
1130
+ "type": "string",
1131
+ "pattern": "^[a-f0-9]{64}$"
1132
+ }
1133
+ }
1134
+ },
1135
+ {
1136
+ "type": "null"
1137
+ }
1138
+ ]
1139
+ }
1140
+ }
1141
+ },
1142
+ {
1143
+ "description": "Finite grouped declarations are preservation data, never native replay authority. Runtime validation additionally enforces exact scope, ordering and signed-63 native identities.",
1144
+ "type": "object",
1145
+ "additionalProperties": false,
1146
+ "required": [
1147
+ "schema_version",
1148
+ "transaction_id",
1149
+ "result_sha256",
1150
+ "plan_sha256",
1151
+ "part_count",
1152
+ "declarations",
1153
+ "phase",
1154
+ "part_receipt",
1155
+ "manifest_receipt",
1156
+ "final_request_sha256",
1157
+ "final_receipt"
1158
+ ],
1159
+ "properties": {
1160
+ "schema_version": {
1161
+ "const": "publication-staging-v3"
1162
+ },
1163
+ "transaction_id": {
1164
+ "type": "string",
1165
+ "pattern": "^[a-f0-9]{64}$"
1166
+ },
1167
+ "result_sha256": {
1168
+ "type": "string",
1169
+ "pattern": "^[a-f0-9]{64}$"
1170
+ },
1171
+ "plan_sha256": {
1172
+ "type": "string",
1173
+ "pattern": "^[a-f0-9]{64}$"
1174
+ },
1175
+ "part_count": {
1176
+ "const": 1
1177
+ },
1178
+ "declarations": {
1179
+ "type": "array",
1180
+ "minItems": 3,
1181
+ "maxItems": 3,
1182
+ "prefixItems": [
1183
+ {
1184
+ "type": "object",
1185
+ "additionalProperties": false,
1186
+ "required": [
1187
+ "role",
1188
+ "token"
1189
+ ],
1190
+ "properties": {
1191
+ "role": {
1192
+ "const": "part"
1193
+ },
1194
+ "token": {
1195
+ "type": "string",
1196
+ "pattern": "^[a-f0-9]{32}$"
1197
+ }
1198
+ }
1199
+ },
1200
+ {
1201
+ "type": "object",
1202
+ "additionalProperties": false,
1203
+ "required": [
1204
+ "role",
1205
+ "token"
1206
+ ],
1207
+ "properties": {
1208
+ "role": {
1209
+ "const": "manifest"
1210
+ },
1211
+ "token": {
1212
+ "type": "string",
1213
+ "pattern": "^[a-f0-9]{32}$"
1214
+ }
1215
+ }
1216
+ },
1217
+ {
1218
+ "type": "object",
1219
+ "additionalProperties": false,
1220
+ "required": [
1221
+ "role",
1222
+ "token"
1223
+ ],
1224
+ "properties": {
1225
+ "role": {
1226
+ "const": "final"
1227
+ },
1228
+ "token": {
1229
+ "type": "string",
1230
+ "pattern": "^[a-f0-9]{32}$"
1231
+ }
1232
+ }
1233
+ }
1234
+ ]
1235
+ },
1236
+ "phase": {
1237
+ "enum": [
1238
+ "declared",
1239
+ "final-intent",
1240
+ "finished",
1241
+ "held"
1242
+ ]
1243
+ },
1244
+ "part_receipt": {
1245
+ "anyOf": [
1246
+ {
1247
+ "type": "null"
1248
+ },
1249
+ {
1250
+ "type": "object",
1251
+ "additionalProperties": false,
1252
+ "required": [
1253
+ "native_id",
1254
+ "content_sha256"
1255
+ ],
1256
+ "properties": {
1257
+ "native_id": {
1258
+ "type": "string",
1259
+ "pattern": "^[1-9][0-9]{0,18}$"
1260
+ },
1261
+ "content_sha256": {
1262
+ "type": "string",
1263
+ "pattern": "^[a-f0-9]{64}$"
1264
+ }
1265
+ }
1266
+ }
1267
+ ]
1268
+ },
1269
+ "manifest_receipt": {
1270
+ "anyOf": [
1271
+ {
1272
+ "type": "null"
1273
+ },
1274
+ {
1275
+ "type": "object",
1276
+ "additionalProperties": false,
1277
+ "required": [
1278
+ "native_id",
1279
+ "content_sha256"
1280
+ ],
1281
+ "properties": {
1282
+ "native_id": {
1283
+ "type": "string",
1284
+ "pattern": "^issue:[1-9][0-9]{0,18}$"
1285
+ },
1286
+ "content_sha256": {
1287
+ "type": "string",
1288
+ "pattern": "^[a-f0-9]{64}$"
1289
+ }
1290
+ }
1291
+ }
1292
+ ]
1293
+ },
1294
+ "final_request_sha256": {
1295
+ "anyOf": [
1296
+ {
1297
+ "type": "string",
1298
+ "pattern": "^[a-f0-9]{64}$"
1299
+ },
1300
+ {
1301
+ "type": "null"
1302
+ }
1303
+ ]
1304
+ },
1305
+ "final_receipt": {
1306
+ "anyOf": [
1307
+ {
1308
+ "type": "null"
1309
+ },
1310
+ {
1311
+ "type": "object",
1312
+ "additionalProperties": false,
1313
+ "required": [
1314
+ "native_id",
1315
+ "content_sha256"
1316
+ ],
1317
+ "properties": {
1318
+ "native_id": {
1319
+ "type": "string",
1320
+ "pattern": "^[1-9][0-9]{0,18}$"
1321
+ },
1322
+ "content_sha256": {
1323
+ "type": "string",
1324
+ "pattern": "^[a-f0-9]{64}$"
1325
+ }
1326
+ }
1327
+ }
1328
+ ]
1329
+ }
1330
+ }
1331
+ }
1332
+ ]
1333
+ },
1334
+ "finding_lifecycle": {
774
1335
  "type": "object",
775
1336
  "additionalProperties": false,
776
1337
  "required": [
777
1338
  "schema_version",
778
- "transaction_id",
779
- "result_sha256",
780
- "plan_sha256",
781
- "part_count",
782
- "attempted_parts",
783
- "attempt_tokens",
784
- "receipts",
785
- "final_attempted",
786
- "final_token",
787
- "final_receipt",
788
- "manifest_required",
789
- "manifest_attempted",
790
- "manifest_token",
791
- "manifest_receipt"
1339
+ "operation_id",
1340
+ "previous_root_sha256",
1341
+ "previous_snapshot_sha256",
1342
+ "manifest"
792
1343
  ],
793
1344
  "properties": {
794
1345
  "schema_version": {
795
- "const": "publication-staging-v2"
796
- },
797
- "transaction_id": {
798
- "type": "string",
799
- "pattern": "^[a-f0-9]{64}$"
1346
+ "enum": [
1347
+ "finding-lifecycle-reference-v1",
1348
+ "finding-lifecycle-reference-v2"
1349
+ ]
800
1350
  },
801
- "result_sha256": {
1351
+ "operation_id": {
802
1352
  "type": "string",
803
1353
  "pattern": "^[a-f0-9]{64}$"
804
1354
  },
805
- "plan_sha256": {
1355
+ "previous_root_sha256": {
806
1356
  "type": "string",
807
1357
  "pattern": "^[a-f0-9]{64}$"
808
1358
  },
809
- "part_count": {
810
- "type": "integer",
811
- "minimum": 0,
812
- "maximum": 8
813
- },
814
- "attempted_parts": {
815
- "type": "integer",
816
- "minimum": 0,
817
- "maximum": 8
818
- },
819
- "attempt_tokens": {
820
- "type": "array",
821
- "maxItems": 8,
822
- "uniqueItems": true,
823
- "items": {"type": "string", "pattern": "^[a-f0-9]{32}$"}
824
- },
825
- "receipts": {
826
- "type": "array",
827
- "maxItems": 8,
828
- "items": {
829
- "type": "object",
830
- "additionalProperties": false,
831
- "required": [
832
- "native_id",
833
- "content_sha256"
834
- ],
835
- "properties": {
836
- "native_id": {
837
- "type": "string",
838
- "pattern": "^[A-Za-z0-9_:.=-]{1,64}$"
839
- },
840
- "content_sha256": {
841
- "type": "string",
842
- "pattern": "^[a-f0-9]{64}$"
843
- }
844
- }
845
- }
846
- },
847
- "final_attempted": {
848
- "type": "boolean"
849
- },
850
- "final_token": {
851
- "anyOf": [
852
- {"type": "string", "pattern": "^[a-f0-9]{32}$"},
853
- {"type": "null"}
854
- ]
855
- },
856
- "manifest_required": {"type": "boolean"},
857
- "manifest_attempted": {"type": "boolean"},
858
- "manifest_token": {
1359
+ "previous_snapshot_sha256": {
859
1360
  "anyOf": [
860
- {"type": "string", "pattern": "^[a-f0-9]{32}$"},
861
- {"type": "null"}
1361
+ {
1362
+ "type": "string",
1363
+ "pattern": "^[a-f0-9]{64}$"
1364
+ },
1365
+ {
1366
+ "type": "null"
1367
+ }
862
1368
  ]
863
1369
  },
864
- "manifest_receipt": {
1370
+ "manifest": {
865
1371
  "anyOf": [
866
1372
  {
867
- "type": "object", "additionalProperties": false,
868
- "required": ["native_id", "content_sha256"],
1373
+ "$ref": "https://reviewsensei.dev/schemas/v1/evidence-manifest.schema.json"
1374
+ },
1375
+ {
1376
+ "type": "object",
1377
+ "additionalProperties": false,
1378
+ "required": [
1379
+ "encoding",
1380
+ "binding",
1381
+ "item_count",
1382
+ "sha256",
1383
+ "document"
1384
+ ],
869
1385
  "properties": {
870
- "native_id": {"type": "string", "pattern": "^[A-Za-z0-9_:.=-]{1,64}$"},
871
- "content_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
1386
+ "encoding": {
1387
+ "const": "inline-json-v1"
1388
+ },
1389
+ "binding": {
1390
+ "type": "object",
1391
+ "additionalProperties": false,
1392
+ "required": [
1393
+ "repository",
1394
+ "repository_id",
1395
+ "pull_request",
1396
+ "base_sha",
1397
+ "head_sha",
1398
+ "policy_digest",
1399
+ "configuration_digest",
1400
+ "generation",
1401
+ "producer",
1402
+ "purpose",
1403
+ "schema_version"
1404
+ ],
1405
+ "properties": {
1406
+ "repository": {
1407
+ "type": "string",
1408
+ "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$",
1409
+ "maxLength": 256
1410
+ },
1411
+ "repository_id": {
1412
+ "type": [
1413
+ "integer",
1414
+ "null"
1415
+ ],
1416
+ "minimum": 1,
1417
+ "maximum": 2147483647
1418
+ },
1419
+ "pull_request": {
1420
+ "type": "integer",
1421
+ "minimum": 1,
1422
+ "maximum": 2147483647
1423
+ },
1424
+ "base_sha": {
1425
+ "type": "string",
1426
+ "pattern": "^[a-f0-9]{40}$"
1427
+ },
1428
+ "head_sha": {
1429
+ "type": "string",
1430
+ "pattern": "^[a-f0-9]{40}$"
1431
+ },
1432
+ "policy_digest": {
1433
+ "type": "string",
1434
+ "pattern": "^[a-f0-9]{64}$"
1435
+ },
1436
+ "configuration_digest": {
1437
+ "type": "string",
1438
+ "pattern": "^[a-f0-9]{64}$"
1439
+ },
1440
+ "generation": {
1441
+ "type": "integer",
1442
+ "minimum": 0,
1443
+ "maximum": 2147483647
1444
+ },
1445
+ "producer": {
1446
+ "type": "string",
1447
+ "pattern": "^(local-ledger|github-bot:[1-9][0-9]{0,18})$"
1448
+ },
1449
+ "purpose": {
1450
+ "enum": [
1451
+ "baseline",
1452
+ "human-inventory",
1453
+ "feedback",
1454
+ "evidence",
1455
+ "queue",
1456
+ "dispositions",
1457
+ "finding-lifecycle"
1458
+ ]
1459
+ },
1460
+ "schema_version": {
1461
+ "const": "1.0"
1462
+ }
1463
+ }
1464
+ },
1465
+ "item_count": {
1466
+ "type": "integer",
1467
+ "minimum": 0,
1468
+ "maximum": 4096
1469
+ },
1470
+ "sha256": {
1471
+ "type": "string",
1472
+ "pattern": "^[a-f0-9]{64}$"
1473
+ },
1474
+ "document": {
1475
+ "type": "object"
1476
+ }
872
1477
  }
873
- },
874
- {"type": "null"}
1478
+ }
875
1479
  ]
876
1480
  },
877
- "final_receipt": {
878
- "anyOf": [
1481
+ "accepted_semantic_history": {
1482
+ "oneOf": [
879
1483
  {
880
1484
  "type": "object",
881
1485
  "additionalProperties": false,
882
1486
  "required": [
883
- "native_id",
884
- "content_sha256"
1487
+ "schema_version",
1488
+ "repository_id",
1489
+ "pull_request",
1490
+ "streak",
1491
+ "records"
885
1492
  ],
886
1493
  "properties": {
887
- "native_id": {
888
- "type": "string",
889
- "pattern": "^[A-Za-z0-9_:.=-]{1,64}$"
1494
+ "schema_version": {
1495
+ "const": "accepted-semantic-history-v1"
890
1496
  },
891
- "content_sha256": {
892
- "type": "string",
893
- "pattern": "^[a-f0-9]{64}$"
1497
+ "repository_id": {
1498
+ "type": "integer",
1499
+ "minimum": 1
1500
+ },
1501
+ "pull_request": {
1502
+ "type": "integer",
1503
+ "minimum": 1
1504
+ },
1505
+ "streak": {
1506
+ "type": "integer",
1507
+ "minimum": 0,
1508
+ "maximum": 2
1509
+ },
1510
+ "records": {
1511
+ "type": "array",
1512
+ "minItems": 1,
1513
+ "maxItems": 2,
1514
+ "items": {
1515
+ "$ref": "#/$defs/accepted_semantic_history_record"
1516
+ }
894
1517
  }
895
1518
  }
896
1519
  },
897
1520
  {
898
- "type": "null"
1521
+ "type": "object",
1522
+ "additionalProperties": false,
1523
+ "required": [
1524
+ "schema_version",
1525
+ "qualification",
1526
+ "reason"
1527
+ ],
1528
+ "properties": {
1529
+ "schema_version": {
1530
+ "const": "accepted-semantic-history-v1"
1531
+ },
1532
+ "qualification": {
1533
+ "const": "unavailable"
1534
+ },
1535
+ "reason": {
1536
+ "type": "string",
1537
+ "minLength": 1,
1538
+ "maxLength": 128
1539
+ },
1540
+ "prior": {
1541
+ "anyOf": [
1542
+ {
1543
+ "type": "object",
1544
+ "additionalProperties": false,
1545
+ "required": [
1546
+ "schema_version",
1547
+ "repository_id",
1548
+ "pull_request",
1549
+ "streak",
1550
+ "records"
1551
+ ],
1552
+ "properties": {
1553
+ "schema_version": {
1554
+ "const": "accepted-semantic-history-v1"
1555
+ },
1556
+ "repository_id": {
1557
+ "type": "integer",
1558
+ "minimum": 1
1559
+ },
1560
+ "pull_request": {
1561
+ "type": "integer",
1562
+ "minimum": 1
1563
+ },
1564
+ "streak": {
1565
+ "type": "integer",
1566
+ "minimum": 0,
1567
+ "maximum": 2
1568
+ },
1569
+ "records": {
1570
+ "type": "array",
1571
+ "minItems": 1,
1572
+ "maxItems": 2,
1573
+ "items": {
1574
+ "$ref": "#/$defs/accepted_semantic_history_record"
1575
+ }
1576
+ }
1577
+ }
1578
+ },
1579
+ {
1580
+ "type": "null"
1581
+ }
1582
+ ]
1583
+ }
1584
+ }
899
1585
  }
900
1586
  ]
901
1587
  }
1588
+ },
1589
+ "allOf": [
1590
+ {
1591
+ "if": {
1592
+ "properties": {
1593
+ "schema_version": {
1594
+ "const": "finding-lifecycle-reference-v2"
1595
+ }
1596
+ }
1597
+ },
1598
+ "then": {
1599
+ "required": [
1600
+ "accepted_semantic_history"
1601
+ ]
1602
+ },
1603
+ "else": {
1604
+ "not": {
1605
+ "required": [
1606
+ "accepted_semantic_history"
1607
+ ]
1608
+ }
1609
+ }
1610
+ }
1611
+ ]
1612
+ },
1613
+ "trust_enrollment": {
1614
+ "type": "object",
1615
+ "additionalProperties": false,
1616
+ "required": [
1617
+ "schema_version",
1618
+ "document",
1619
+ "sha256"
1620
+ ],
1621
+ "properties": {
1622
+ "schema_version": {
1623
+ "const": "trust-enrollment-reference-v1"
1624
+ },
1625
+ "document": {
1626
+ "type": "object",
1627
+ "additionalProperties": false,
1628
+ "required": [
1629
+ "schema_version",
1630
+ "authority",
1631
+ "app_id",
1632
+ "generation"
1633
+ ],
1634
+ "properties": {
1635
+ "schema_version": {
1636
+ "const": "original-trust-enrollment-v1"
1637
+ },
1638
+ "authority": {
1639
+ "type": "object"
1640
+ },
1641
+ "app_id": {
1642
+ "type": "integer",
1643
+ "minimum": 1,
1644
+ "maximum": 9007199254740991
1645
+ },
1646
+ "generation": {
1647
+ "type": "integer",
1648
+ "minimum": 0,
1649
+ "maximum": 2147483647
1650
+ }
1651
+ }
1652
+ },
1653
+ "sha256": {
1654
+ "type": "string",
1655
+ "pattern": "^[a-f0-9]{64}$"
1656
+ }
902
1657
  }
903
1658
  }
904
1659
  },