@reviewsensei/cli-win32-x64 0.8.15 → 0.8.17
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.
- package/README.md +1 -1
- package/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/RECORD +1 -1
- package/bin/_internal/review_sensei/schemas/api-run-accounting.schema.json +92 -6
- package/bin/_internal/review_sensei/schemas/eligibility-v4.schema.json +30 -2
- package/bin/_internal/review_sensei/schemas/eligibility-v5.schema.json +30 -2
- package/bin/_internal/review_sensei/schemas/eligibility-v6.schema.json +76 -0
- package/bin/_internal/review_sensei/schemas/eligibility-v7.schema.json +37 -0
- package/bin/_internal/review_sensei/schemas/eligibility-v8.schema.json +126 -0
- package/bin/_internal/review_sensei/schemas/historical-assessment-hold.schema.json +123 -0
- package/bin/_internal/review_sensei/schemas/historical-publication-completion.schema.json +209 -0
- package/bin/_internal/review_sensei/schemas/publication-selection.schema.json +192 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-cursor.schema.json +36 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-event.schema.json +40 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-inventory.schema.json +37 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-origins.schema.json +92 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-state.schema.json +94 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-view.schema.json +89 -0
- package/bin/_internal/review_sensei/schemas/quarantine-lineage.schema.json +101 -0
- package/bin/_internal/review_sensei/schemas/review-convergence-policy.schema.json +1 -0
- package/bin/_internal/review_sensei/schemas/review-result.schema.json +2 -0
- package/bin/_internal/review_sensei/schemas/review-verdict.schema.json +41 -0
- package/bin/_internal/review_sensei/schemas/session-record.schema.json +706 -120
- package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/METADATA +17 -3
- package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/RECORD +58 -28
- package/bin/review-sensei.exe +0 -0
- package/package.json +1 -1
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/INSTALLER +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/REQUESTED +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/WHEEL +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/direct_url.json +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/entry_points.txt +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/licenses/LICENSE +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/top_level.txt +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Install the public launcher, which selects the matching native package:
|
|
|
8
8
|
|
|
9
9
|
<!-- release-installation:package-npm-1:start -->
|
|
10
10
|
```console
|
|
11
|
-
npm install --save-dev @reviewsensei/cli@0.8.
|
|
11
|
+
npm install --save-dev @reviewsensei/cli@0.8.17
|
|
12
12
|
npx review-sensei --help
|
|
13
13
|
```
|
|
14
14
|
<!-- release-installation:package-npm-1:end -->
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
../../Scripts/jsonschema.exe,sha256=
|
|
1
|
+
../../Scripts/jsonschema.exe,sha256=n1AdwGlo8EYymuMsPG2EWSajPE3tkWrn0RCrS_RDQVg,108352
|
|
2
2
|
jsonschema-4.26.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
|
3
3
|
jsonschema-4.26.0.dist-info/METADATA,sha256=BbGJhmypipbaOTS_a4NofO0_-FMlJzt34WtwX22LJtI,7592
|
|
4
4
|
jsonschema-4.26.0.dist-info/RECORD,,
|
|
@@ -163,13 +163,13 @@
|
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
"completed": {
|
|
166
|
-
"type": "array"
|
|
167
|
-
"items": {
|
|
168
|
-
"$ref": "#/$defs/request"
|
|
169
|
-
}
|
|
166
|
+
"type": "array"
|
|
170
167
|
},
|
|
171
168
|
"version": {
|
|
172
|
-
"
|
|
169
|
+
"enum": [
|
|
170
|
+
"caller-requests-v1",
|
|
171
|
+
"caller-requests-v2"
|
|
172
|
+
]
|
|
173
173
|
},
|
|
174
174
|
"previous_record": {
|
|
175
175
|
"oneOf": [
|
|
@@ -197,6 +197,36 @@
|
|
|
197
197
|
"$ref": "evidence-manifest.schema.json"
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "object",
|
|
203
|
+
"additionalProperties": false,
|
|
204
|
+
"required": [
|
|
205
|
+
"run_id",
|
|
206
|
+
"root_sha256",
|
|
207
|
+
"manifest",
|
|
208
|
+
"schema_version",
|
|
209
|
+
"completion"
|
|
210
|
+
],
|
|
211
|
+
"properties": {
|
|
212
|
+
"run_id": {
|
|
213
|
+
"type": "integer",
|
|
214
|
+
"minimum": 1
|
|
215
|
+
},
|
|
216
|
+
"root_sha256": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
219
|
+
},
|
|
220
|
+
"manifest": {
|
|
221
|
+
"$ref": "evidence-manifest.schema.json"
|
|
222
|
+
},
|
|
223
|
+
"schema_version": {
|
|
224
|
+
"const": "caller-run-reference-v2"
|
|
225
|
+
},
|
|
226
|
+
"completion": {
|
|
227
|
+
"$ref": "historical-publication-completion.schema.json"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
200
230
|
}
|
|
201
231
|
]
|
|
202
232
|
},
|
|
@@ -555,6 +585,62 @@
|
|
|
555
585
|
"minimum": 1
|
|
556
586
|
}
|
|
557
587
|
}
|
|
588
|
+
},
|
|
589
|
+
"request-pair": {
|
|
590
|
+
"description": "Completed request encoded as [request_id, deadline_unix_ms]; the decoder is selected by the accounting version.",
|
|
591
|
+
"type": "array",
|
|
592
|
+
"prefixItems": [
|
|
593
|
+
{
|
|
594
|
+
"type": "string",
|
|
595
|
+
"pattern": "^[A-Za-z0-9_.:-]{1,128}$"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "integer",
|
|
599
|
+
"minimum": 1,
|
|
600
|
+
"maximum": 9007199254740991
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"items": false,
|
|
604
|
+
"minItems": 2,
|
|
605
|
+
"maxItems": 2
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"allOf": [
|
|
609
|
+
{
|
|
610
|
+
"if": {
|
|
611
|
+
"properties": {
|
|
612
|
+
"version": {
|
|
613
|
+
"const": "caller-requests-v1"
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"then": {
|
|
618
|
+
"properties": {
|
|
619
|
+
"completed": {
|
|
620
|
+
"items": {
|
|
621
|
+
"$ref": "#/$defs/request"
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"if": {
|
|
629
|
+
"properties": {
|
|
630
|
+
"version": {
|
|
631
|
+
"const": "caller-requests-v2"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"then": {
|
|
636
|
+
"properties": {
|
|
637
|
+
"completed": {
|
|
638
|
+
"items": {
|
|
639
|
+
"$ref": "#/$defs/request-pair"
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
558
644
|
}
|
|
559
|
-
|
|
645
|
+
]
|
|
560
646
|
}
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"schema_version": {
|
|
48
48
|
"enum": [
|
|
49
49
|
"1",
|
|
50
|
-
"2"
|
|
50
|
+
"2",
|
|
51
|
+
"3"
|
|
51
52
|
]
|
|
52
53
|
},
|
|
53
54
|
"enabled": {
|
|
@@ -70,6 +71,9 @@
|
|
|
70
71
|
"confirmed"
|
|
71
72
|
]
|
|
72
73
|
},
|
|
74
|
+
"review_verdict": {
|
|
75
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/review-verdict.schema.json"
|
|
76
|
+
},
|
|
73
77
|
"has_blocking_findings": {
|
|
74
78
|
"type": "boolean"
|
|
75
79
|
},
|
|
@@ -125,7 +129,10 @@
|
|
|
125
129
|
"if": {
|
|
126
130
|
"properties": {
|
|
127
131
|
"schema_version": {
|
|
128
|
-
"
|
|
132
|
+
"enum": [
|
|
133
|
+
"2",
|
|
134
|
+
"3"
|
|
135
|
+
]
|
|
129
136
|
}
|
|
130
137
|
}
|
|
131
138
|
},
|
|
@@ -164,6 +171,27 @@
|
|
|
164
171
|
}
|
|
165
172
|
}
|
|
166
173
|
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"if": {
|
|
177
|
+
"properties": {
|
|
178
|
+
"schema_version": {
|
|
179
|
+
"const": "3"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"then": {
|
|
184
|
+
"required": [
|
|
185
|
+
"review_verdict"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"else": {
|
|
189
|
+
"not": {
|
|
190
|
+
"required": [
|
|
191
|
+
"review_verdict"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
}
|
|
167
195
|
}
|
|
168
196
|
]
|
|
169
197
|
},
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"schema_version": {
|
|
49
49
|
"enum": [
|
|
50
50
|
"1",
|
|
51
|
-
"2"
|
|
51
|
+
"2",
|
|
52
|
+
"3"
|
|
52
53
|
]
|
|
53
54
|
},
|
|
54
55
|
"enabled": {
|
|
@@ -71,6 +72,9 @@
|
|
|
71
72
|
"confirmed"
|
|
72
73
|
]
|
|
73
74
|
},
|
|
75
|
+
"review_verdict": {
|
|
76
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/review-verdict.schema.json"
|
|
77
|
+
},
|
|
74
78
|
"has_blocking_findings": {
|
|
75
79
|
"type": "boolean"
|
|
76
80
|
},
|
|
@@ -126,7 +130,10 @@
|
|
|
126
130
|
"if": {
|
|
127
131
|
"properties": {
|
|
128
132
|
"schema_version": {
|
|
129
|
-
"
|
|
133
|
+
"enum": [
|
|
134
|
+
"2",
|
|
135
|
+
"3"
|
|
136
|
+
]
|
|
130
137
|
}
|
|
131
138
|
}
|
|
132
139
|
},
|
|
@@ -165,6 +172,27 @@
|
|
|
165
172
|
}
|
|
166
173
|
}
|
|
167
174
|
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"if": {
|
|
178
|
+
"properties": {
|
|
179
|
+
"schema_version": {
|
|
180
|
+
"const": "3"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"then": {
|
|
185
|
+
"required": [
|
|
186
|
+
"review_verdict"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"else": {
|
|
190
|
+
"not": {
|
|
191
|
+
"required": [
|
|
192
|
+
"review_verdict"
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
168
196
|
}
|
|
169
197
|
]
|
|
170
198
|
},
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/eligibility-v6.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"current",
|
|
9
|
+
"historical_assessments"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schema_version": {
|
|
13
|
+
"const": "6"
|
|
14
|
+
},
|
|
15
|
+
"current": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": [
|
|
18
|
+
"schema_version"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema_version": {
|
|
22
|
+
"enum": [
|
|
23
|
+
"1",
|
|
24
|
+
"2.0",
|
|
25
|
+
"3",
|
|
26
|
+
"4",
|
|
27
|
+
"5"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"historical_assessments": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": [
|
|
36
|
+
"scope_sha256",
|
|
37
|
+
"state_sha256",
|
|
38
|
+
"pending",
|
|
39
|
+
"fresh_human_pending",
|
|
40
|
+
"review_id",
|
|
41
|
+
"historical_head_sha"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"scope_sha256": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
47
|
+
},
|
|
48
|
+
"state_sha256": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
51
|
+
},
|
|
52
|
+
"pending": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"maxItems": 100,
|
|
55
|
+
"uniqueItems": true,
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"fresh_human_pending": {
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
},
|
|
64
|
+
"review_id": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"minimum": 1,
|
|
67
|
+
"maximum": 9007199254740991
|
|
68
|
+
},
|
|
69
|
+
"historical_head_sha": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/eligibility-v7.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"current",
|
|
9
|
+
"quarantine_assessments"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schema_version": {
|
|
13
|
+
"const": "7"
|
|
14
|
+
},
|
|
15
|
+
"current": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": [
|
|
18
|
+
"schema_version"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema_version": {
|
|
22
|
+
"enum": [
|
|
23
|
+
"1",
|
|
24
|
+
"2.0",
|
|
25
|
+
"3",
|
|
26
|
+
"4",
|
|
27
|
+
"5",
|
|
28
|
+
"6"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"quarantine_assessments": {
|
|
34
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-view.schema.json"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/eligibility-v8.schema.json",
|
|
4
|
+
"title": "Union-aware native publication eligibility v8",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"current",
|
|
10
|
+
"native_union"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"schema_version": {
|
|
14
|
+
"const": "8"
|
|
15
|
+
},
|
|
16
|
+
"current": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [
|
|
19
|
+
"schema_version"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"schema_version": {
|
|
23
|
+
"enum": [
|
|
24
|
+
"1",
|
|
25
|
+
"2.0",
|
|
26
|
+
"3",
|
|
27
|
+
"4",
|
|
28
|
+
"5",
|
|
29
|
+
"6",
|
|
30
|
+
"7"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"native_union": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": [
|
|
39
|
+
"schema_version",
|
|
40
|
+
"repository_id",
|
|
41
|
+
"pull_request",
|
|
42
|
+
"producer_id",
|
|
43
|
+
"head_sha",
|
|
44
|
+
"base_sha",
|
|
45
|
+
"transaction_id",
|
|
46
|
+
"result_sha256",
|
|
47
|
+
"plan_sha256",
|
|
48
|
+
"inline_count",
|
|
49
|
+
"parts"
|
|
50
|
+
],
|
|
51
|
+
"properties": {
|
|
52
|
+
"schema_version": {
|
|
53
|
+
"const": "native-review-union-v1"
|
|
54
|
+
},
|
|
55
|
+
"repository_id": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"minimum": 1,
|
|
58
|
+
"maximum": 9223372036854775807
|
|
59
|
+
},
|
|
60
|
+
"pull_request": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"minimum": 1,
|
|
63
|
+
"maximum": 2147483647
|
|
64
|
+
},
|
|
65
|
+
"producer_id": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"minimum": 1,
|
|
68
|
+
"maximum": 9223372036854775807
|
|
69
|
+
},
|
|
70
|
+
"head_sha": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
73
|
+
},
|
|
74
|
+
"base_sha": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
77
|
+
},
|
|
78
|
+
"transaction_id": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
81
|
+
},
|
|
82
|
+
"result_sha256": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
85
|
+
},
|
|
86
|
+
"plan_sha256": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
89
|
+
},
|
|
90
|
+
"inline_count": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"minimum": 0,
|
|
93
|
+
"maximum": 250
|
|
94
|
+
},
|
|
95
|
+
"parts": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"maxItems": 8,
|
|
98
|
+
"items": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": [
|
|
102
|
+
"native_id",
|
|
103
|
+
"content_sha256",
|
|
104
|
+
"finding_count"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"native_id": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^[1-9][0-9]{0,18}$"
|
|
110
|
+
},
|
|
111
|
+
"content_sha256": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
114
|
+
},
|
|
115
|
+
"finding_count": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 1,
|
|
118
|
+
"maximum": 32
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/historical-assessment-hold.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"source",
|
|
9
|
+
"scope_sha256",
|
|
10
|
+
"assessments",
|
|
11
|
+
"settlements"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schema_version": {
|
|
15
|
+
"const": "historical-assessment-hold-v1"
|
|
16
|
+
},
|
|
17
|
+
"source": {
|
|
18
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/api-run-accounting.schema.json#/properties/previous_record"
|
|
19
|
+
},
|
|
20
|
+
"scope_sha256": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
23
|
+
},
|
|
24
|
+
"assessments": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"minItems": 1,
|
|
27
|
+
"maxItems": 100,
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": [
|
|
32
|
+
"instance",
|
|
33
|
+
"concern"
|
|
34
|
+
],
|
|
35
|
+
"properties": {
|
|
36
|
+
"instance": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
39
|
+
},
|
|
40
|
+
"concern": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "null"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"settlements": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"maxItems": 100,
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"instance",
|
|
62
|
+
"action",
|
|
63
|
+
"actor",
|
|
64
|
+
"role",
|
|
65
|
+
"head_sha",
|
|
66
|
+
"source_id",
|
|
67
|
+
"source_updated_at",
|
|
68
|
+
"source_body_sha256",
|
|
69
|
+
"reason",
|
|
70
|
+
"policy_sha256"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"instance": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
76
|
+
},
|
|
77
|
+
"action": {
|
|
78
|
+
"enum": [
|
|
79
|
+
"dismiss",
|
|
80
|
+
"accept-risk"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"actor": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}$"
|
|
86
|
+
},
|
|
87
|
+
"role": {
|
|
88
|
+
"enum": [
|
|
89
|
+
"admin",
|
|
90
|
+
"maintain"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"head_sha": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
96
|
+
},
|
|
97
|
+
"source_id": {
|
|
98
|
+
"type": "integer",
|
|
99
|
+
"minimum": 1,
|
|
100
|
+
"maximum": 9007199254740991
|
|
101
|
+
},
|
|
102
|
+
"source_updated_at": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
|
|
105
|
+
},
|
|
106
|
+
"source_body_sha256": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
109
|
+
},
|
|
110
|
+
"reason": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"minLength": 1,
|
|
113
|
+
"maxLength": 1024
|
|
114
|
+
},
|
|
115
|
+
"policy_sha256": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|