@toolproof-npm/schema 0.1.72 → 0.1.73

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.
@@ -80,26 +80,7 @@
80
80
  "$schema": "https://json-schema.org/draft/2020-12/schema",
81
81
  "type": "object",
82
82
  "additionalProperties": {
83
- "type": "object",
84
- "additionalProperties": {
85
- "oneOf": [
86
- {
87
- "$ref": "#/$defs/ResourceMissing"
88
- },
89
- {
90
- "$ref": "#/$defs/ResourcePotentialInput"
91
- },
92
- {
93
- "$ref": "#/$defs/ResourcePotentialOutput"
94
- },
95
- {
96
- "$ref": "#/$defs/Resource"
97
- }
98
- ]
99
- },
100
- "propertyNames": {
101
- "$ref": "#/$defs/ResourceRoleIdentity"
102
- }
83
+ "$ref": "#/$defs/ExecutionSocket"
103
84
  },
104
85
  "$anchor": "StrategyState",
105
86
  "propertyNames": {
@@ -132,6 +113,146 @@
132
113
  "unevaluatedProperties": false,
133
114
  "$anchor": "Step"
134
115
  },
116
+ "ExecutionSocket": {
117
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
118
+ "type": "object",
119
+ "additionalProperties": {
120
+ "oneOf": [
121
+ {
122
+ "$ref": "#/$defs/ResourceMissing"
123
+ },
124
+ {
125
+ "$ref": "#/$defs/ResourcePotentialInput"
126
+ },
127
+ {
128
+ "$ref": "#/$defs/ResourcePotentialOutput"
129
+ },
130
+ {
131
+ "$ref": "#/$defs/Resource"
132
+ }
133
+ ]
134
+ },
135
+ "unevaluatedProperties": false,
136
+ "$anchor": "ExecutionSocket",
137
+ "propertyNames": {
138
+ "$ref": "#/$defs/ResourceRoleIdentity"
139
+ }
140
+ },
141
+ "ExecutionIdentity": {
142
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
143
+ "type": "string",
144
+ "$anchor": "ExecutionIdentity",
145
+ "pattern": "^EXECUTION-.+$"
146
+ },
147
+ "WorkStep": {
148
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
149
+ "type": "object",
150
+ "allOf": [
151
+ {
152
+ "$ref": "#/$defs/StepKind"
153
+ }
154
+ ],
155
+ "properties": {
156
+ "execution": {
157
+ "$ref": "#/$defs/Execution"
158
+ },
159
+ "identity": {
160
+ "$ref": "#/$defs/WorkStepIdentity"
161
+ },
162
+ "kind": {
163
+ "const": "work"
164
+ }
165
+ },
166
+ "required": [
167
+ "identity",
168
+ "kind",
169
+ "execution"
170
+ ],
171
+ "$anchor": "WorkStep"
172
+ },
173
+ "BranchStep": {
174
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
175
+ "type": "object",
176
+ "allOf": [
177
+ {
178
+ "$ref": "#/$defs/StepKind"
179
+ }
180
+ ],
181
+ "properties": {
182
+ "cases": {
183
+ "type": "array",
184
+ "items": {
185
+ "$ref": "#/$defs/Conditional"
186
+ },
187
+ "minItems": 1,
188
+ "uniqueItems": true
189
+ },
190
+ "identity": {
191
+ "$ref": "#/$defs/BranchStepIdentity"
192
+ },
193
+ "kind": {
194
+ "const": "branch"
195
+ }
196
+ },
197
+ "required": [
198
+ "identity",
199
+ "kind",
200
+ "cases"
201
+ ],
202
+ "$anchor": "BranchStep"
203
+ },
204
+ "WhileStep": {
205
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
206
+ "type": "object",
207
+ "allOf": [
208
+ {
209
+ "$ref": "#/$defs/StepKind"
210
+ }
211
+ ],
212
+ "properties": {
213
+ "case": {
214
+ "$ref": "#/$defs/Conditional"
215
+ },
216
+ "identity": {
217
+ "$ref": "#/$defs/WhileStepIdentity"
218
+ },
219
+ "kind": {
220
+ "const": "while"
221
+ }
222
+ },
223
+ "required": [
224
+ "identity",
225
+ "kind",
226
+ "case"
227
+ ],
228
+ "$anchor": "WhileStep"
229
+ },
230
+ "ForStep": {
231
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
232
+ "type": "object",
233
+ "allOf": [
234
+ {
235
+ "$ref": "#/$defs/StepKind"
236
+ }
237
+ ],
238
+ "properties": {
239
+ "case": {
240
+ "$ref": "#/$defs/Conditional"
241
+ },
242
+ "identity": {
243
+ "$ref": "#/$defs/ForStepIdentity"
244
+ },
245
+ "kind": {
246
+ "const": "for"
247
+ }
248
+ },
249
+ "required": [
250
+ "identity",
251
+ "kind",
252
+ "case"
253
+ ],
254
+ "$anchor": "ForStep"
255
+ },
135
256
  "ResourceMissing": {
136
257
  "$schema": "https://json-schema.org/draft/2020-12/schema",
137
258
  "type": "object",
@@ -241,120 +362,89 @@
241
362
  "$anchor": "ResourceRoleIdentity",
242
363
  "pattern": "^ROLE-.+$"
243
364
  },
244
- "ExecutionIdentity": {
245
- "$schema": "https://json-schema.org/draft/2020-12/schema",
246
- "type": "string",
247
- "$anchor": "ExecutionIdentity",
248
- "pattern": "^EXECUTION-.+$"
249
- },
250
- "WorkStep": {
365
+ "StepKind": {
251
366
  "$schema": "https://json-schema.org/draft/2020-12/schema",
252
367
  "type": "object",
253
- "allOf": [
254
- {
255
- "$ref": "#/$defs/StepKind"
256
- }
257
- ],
258
368
  "properties": {
259
- "execution": {
260
- "$ref": "#/$defs/Execution"
261
- },
262
- "identity": {
263
- "$ref": "#/$defs/WorkStepIdentity"
264
- },
265
369
  "kind": {
266
- "const": "work"
370
+ "type": "string",
371
+ "enum": [
372
+ "work",
373
+ "branch",
374
+ "while",
375
+ "for"
376
+ ]
267
377
  }
268
378
  },
269
379
  "required": [
270
- "identity",
271
- "kind",
272
- "execution"
380
+ "kind"
273
381
  ],
274
- "$anchor": "WorkStep"
382
+ "$anchor": "StepKind"
275
383
  },
276
- "BranchStep": {
384
+ "Execution": {
277
385
  "$schema": "https://json-schema.org/draft/2020-12/schema",
278
386
  "type": "object",
279
387
  "allOf": [
280
388
  {
281
- "$ref": "#/$defs/StepKind"
389
+ "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
390
+ "$ref": "#/$defs/RoleBindingsWrapper"
282
391
  }
283
392
  ],
284
393
  "properties": {
285
- "cases": {
286
- "type": "array",
287
- "items": {
288
- "$ref": "#/$defs/Conditional"
289
- },
290
- "minItems": 1,
291
- "uniqueItems": true
292
- },
293
394
  "identity": {
294
- "$ref": "#/$defs/BranchStepIdentity"
395
+ "$ref": "#/$defs/ExecutionIdentity"
295
396
  },
296
- "kind": {
297
- "const": "branch"
397
+ "jobRef": {
398
+ "$ref": "#/$defs/JobIdentity"
298
399
  }
299
400
  },
300
401
  "required": [
301
402
  "identity",
302
- "kind",
303
- "cases"
403
+ "jobRef"
304
404
  ],
305
- "$anchor": "BranchStep"
405
+ "$anchor": "Execution"
306
406
  },
307
- "WhileStep": {
407
+ "WorkStepIdentity": {
308
408
  "$schema": "https://json-schema.org/draft/2020-12/schema",
309
- "type": "object",
310
- "allOf": [
311
- {
312
- "$ref": "#/$defs/StepKind"
313
- }
314
- ],
315
- "properties": {
316
- "case": {
317
- "$ref": "#/$defs/Conditional"
318
- },
319
- "identity": {
320
- "$ref": "#/$defs/WhileStepIdentity"
321
- },
322
- "kind": {
323
- "const": "while"
324
- }
325
- },
326
- "required": [
327
- "identity",
328
- "kind",
329
- "case"
330
- ],
331
- "$anchor": "WhileStep"
409
+ "type": "string",
410
+ "$anchor": "WorkStepIdentity",
411
+ "pattern": "^WORKSTEP-.+$"
332
412
  },
333
- "ForStep": {
413
+ "Conditional": {
334
414
  "$schema": "https://json-schema.org/draft/2020-12/schema",
335
415
  "type": "object",
336
- "allOf": [
337
- {
338
- "$ref": "#/$defs/StepKind"
339
- }
340
- ],
341
416
  "properties": {
342
- "case": {
343
- "$ref": "#/$defs/Conditional"
344
- },
345
- "identity": {
346
- "$ref": "#/$defs/ForStepIdentity"
417
+ "what": {
418
+ "$ref": "#/$defs/WorkStep"
347
419
  },
348
- "kind": {
349
- "const": "for"
420
+ "when": {
421
+ "$ref": "#/$defs/WorkStep"
350
422
  }
351
423
  },
352
424
  "required": [
353
- "identity",
354
- "kind",
355
- "case"
425
+ "when",
426
+ "what"
356
427
  ],
357
- "$anchor": "ForStep"
428
+ "unevaluatedProperties": false,
429
+ "$anchor": "Conditional"
430
+ },
431
+ "BranchStepIdentity": {
432
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
433
+ "type": "string",
434
+ "$anchor": "BranchStepIdentity",
435
+ "pattern": "^BRANCHSTEP-.+$"
436
+ },
437
+ "WhileStepIdentity": {
438
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
439
+ "type": "string",
440
+ "$anchor": "WhileStepIdentity",
441
+ "pattern": "^WHILESTEP-.+$"
442
+ },
443
+ "ForStepIdentity": {
444
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
445
+ "type": "string",
446
+ "$anchor": "ForStepIdentity",
447
+ "pattern": "^FORSTEP-.+$"
358
448
  },
359
449
  "ResourceBase": {
360
450
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -466,89 +556,25 @@
466
556
  ],
467
557
  "$anchor": "JsonData"
468
558
  },
469
- "StepKind": {
470
- "$schema": "https://json-schema.org/draft/2020-12/schema",
471
- "type": "object",
472
- "properties": {
473
- "kind": {
474
- "type": "string",
475
- "enum": [
476
- "work",
477
- "branch",
478
- "while",
479
- "for"
480
- ]
481
- }
482
- },
483
- "required": [
484
- "kind"
485
- ],
486
- "$anchor": "StepKind"
487
- },
488
- "Execution": {
489
- "$schema": "https://json-schema.org/draft/2020-12/schema",
490
- "type": "object",
491
- "allOf": [
492
- {
493
- "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
494
- "$ref": "#/$defs/RoleBindingsWrapper"
495
- }
496
- ],
497
- "properties": {
498
- "identity": {
499
- "$ref": "#/$defs/ExecutionIdentity"
500
- },
501
- "jobRef": {
502
- "$ref": "#/$defs/JobIdentity"
503
- }
504
- },
505
- "required": [
506
- "identity",
507
- "jobRef"
508
- ],
509
- "$anchor": "Execution"
510
- },
511
- "WorkStepIdentity": {
512
- "$schema": "https://json-schema.org/draft/2020-12/schema",
513
- "type": "string",
514
- "$anchor": "WorkStepIdentity",
515
- "pattern": "^WORKSTEP-.+$"
516
- },
517
- "Conditional": {
559
+ "RoleBindingsWrapper": {
518
560
  "$schema": "https://json-schema.org/draft/2020-12/schema",
519
561
  "type": "object",
520
562
  "properties": {
521
- "what": {
522
- "$ref": "#/$defs/WorkStep"
523
- },
524
- "when": {
525
- "$ref": "#/$defs/WorkStep"
563
+ "roleBindings": {
564
+ "$ref": "#/$defs/RoleBindings"
526
565
  }
527
566
  },
528
567
  "required": [
529
- "when",
530
- "what"
568
+ "roleBindings"
531
569
  ],
532
- "unevaluatedProperties": false,
533
- "$anchor": "Conditional"
534
- },
535
- "BranchStepIdentity": {
536
- "$schema": "https://json-schema.org/draft/2020-12/schema",
537
- "type": "string",
538
- "$anchor": "BranchStepIdentity",
539
- "pattern": "^BRANCHSTEP-.+$"
540
- },
541
- "WhileStepIdentity": {
542
- "$schema": "https://json-schema.org/draft/2020-12/schema",
543
- "type": "string",
544
- "$anchor": "WhileStepIdentity",
545
- "pattern": "^WHILESTEP-.+$"
570
+ "$anchor": "RoleBindingsWrapper"
546
571
  },
547
- "ForStepIdentity": {
572
+ "JobIdentity": {
548
573
  "$schema": "https://json-schema.org/draft/2020-12/schema",
549
574
  "type": "string",
550
- "$anchor": "ForStepIdentity",
551
- "pattern": "^FORSTEP-.+$"
575
+ "$anchor": "JobIdentity",
576
+ "$comment": "",
577
+ "pattern": "^JOB-.+$"
552
578
  },
553
579
  "ResourceIdentity": {
554
580
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -607,26 +633,6 @@
607
633
  ],
608
634
  "$anchor": "Path"
609
635
  },
610
- "RoleBindingsWrapper": {
611
- "$schema": "https://json-schema.org/draft/2020-12/schema",
612
- "type": "object",
613
- "properties": {
614
- "roleBindings": {
615
- "$ref": "#/$defs/RoleBindings"
616
- }
617
- },
618
- "required": [
619
- "roleBindings"
620
- ],
621
- "$anchor": "RoleBindingsWrapper"
622
- },
623
- "JobIdentity": {
624
- "$schema": "https://json-schema.org/draft/2020-12/schema",
625
- "type": "string",
626
- "$anchor": "JobIdentity",
627
- "$comment": "",
628
- "pattern": "^JOB-.+$"
629
- },
630
636
  "RoleBindings": {
631
637
  "$schema": "https://json-schema.org/draft/2020-12/schema",
632
638
  "type": "object",