@toolproof-npm/schema 0.1.72 → 0.1.74

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.
@@ -109,26 +109,7 @@
109
109
  "$schema": "https://json-schema.org/draft/2020-12/schema",
110
110
  "type": "object",
111
111
  "additionalProperties": {
112
- "type": "object",
113
- "additionalProperties": {
114
- "oneOf": [
115
- {
116
- "$ref": "#/$defs/ResourceMissing"
117
- },
118
- {
119
- "$ref": "#/$defs/ResourcePotentialInput"
120
- },
121
- {
122
- "$ref": "#/$defs/ResourcePotentialOutput"
123
- },
124
- {
125
- "$ref": "#/$defs/Resource"
126
- }
127
- ]
128
- },
129
- "propertyNames": {
130
- "$ref": "#/$defs/ResourceRoleIdentity"
131
- }
112
+ "$ref": "#/$defs/ExecutionSocket"
132
113
  },
133
114
  "$anchor": "StrategyState",
134
115
  "propertyNames": {
@@ -187,6 +168,146 @@
187
168
  "$anchor": "StrategyThreadIdentity",
188
169
  "pattern": "^STRATEGY_THREAD-.+$"
189
170
  },
171
+ "ExecutionSocket": {
172
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
173
+ "type": "object",
174
+ "additionalProperties": {
175
+ "oneOf": [
176
+ {
177
+ "$ref": "#/$defs/ResourceMissing"
178
+ },
179
+ {
180
+ "$ref": "#/$defs/ResourcePotentialInput"
181
+ },
182
+ {
183
+ "$ref": "#/$defs/ResourcePotentialOutput"
184
+ },
185
+ {
186
+ "$ref": "#/$defs/Resource"
187
+ }
188
+ ]
189
+ },
190
+ "unevaluatedProperties": false,
191
+ "$anchor": "ExecutionSocket",
192
+ "propertyNames": {
193
+ "$ref": "#/$defs/ResourceRoleIdentity"
194
+ }
195
+ },
196
+ "ExecutionIdentity": {
197
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
198
+ "type": "string",
199
+ "$anchor": "ExecutionIdentity",
200
+ "pattern": "^EXECUTION-.+$"
201
+ },
202
+ "WorkStep": {
203
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
204
+ "type": "object",
205
+ "allOf": [
206
+ {
207
+ "$ref": "#/$defs/StepKind"
208
+ }
209
+ ],
210
+ "properties": {
211
+ "execution": {
212
+ "$ref": "#/$defs/Execution"
213
+ },
214
+ "identity": {
215
+ "$ref": "#/$defs/WorkStepIdentity"
216
+ },
217
+ "kind": {
218
+ "const": "work"
219
+ }
220
+ },
221
+ "required": [
222
+ "identity",
223
+ "kind",
224
+ "execution"
225
+ ],
226
+ "$anchor": "WorkStep"
227
+ },
228
+ "BranchStep": {
229
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
230
+ "type": "object",
231
+ "allOf": [
232
+ {
233
+ "$ref": "#/$defs/StepKind"
234
+ }
235
+ ],
236
+ "properties": {
237
+ "cases": {
238
+ "type": "array",
239
+ "items": {
240
+ "$ref": "#/$defs/Conditional"
241
+ },
242
+ "minItems": 1,
243
+ "uniqueItems": true
244
+ },
245
+ "identity": {
246
+ "$ref": "#/$defs/BranchStepIdentity"
247
+ },
248
+ "kind": {
249
+ "const": "branch"
250
+ }
251
+ },
252
+ "required": [
253
+ "identity",
254
+ "kind",
255
+ "cases"
256
+ ],
257
+ "$anchor": "BranchStep"
258
+ },
259
+ "WhileStep": {
260
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
261
+ "type": "object",
262
+ "allOf": [
263
+ {
264
+ "$ref": "#/$defs/StepKind"
265
+ }
266
+ ],
267
+ "properties": {
268
+ "case": {
269
+ "$ref": "#/$defs/Conditional"
270
+ },
271
+ "identity": {
272
+ "$ref": "#/$defs/WhileStepIdentity"
273
+ },
274
+ "kind": {
275
+ "const": "while"
276
+ }
277
+ },
278
+ "required": [
279
+ "identity",
280
+ "kind",
281
+ "case"
282
+ ],
283
+ "$anchor": "WhileStep"
284
+ },
285
+ "ForStep": {
286
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
287
+ "type": "object",
288
+ "allOf": [
289
+ {
290
+ "$ref": "#/$defs/StepKind"
291
+ }
292
+ ],
293
+ "properties": {
294
+ "case": {
295
+ "$ref": "#/$defs/Conditional"
296
+ },
297
+ "identity": {
298
+ "$ref": "#/$defs/ForStepIdentity"
299
+ },
300
+ "kind": {
301
+ "const": "for"
302
+ }
303
+ },
304
+ "required": [
305
+ "identity",
306
+ "kind",
307
+ "case"
308
+ ],
309
+ "$anchor": "ForStep"
310
+ },
190
311
  "ResourceMissing": {
191
312
  "$schema": "https://json-schema.org/draft/2020-12/schema",
192
313
  "type": "object",
@@ -296,120 +417,89 @@
296
417
  "$anchor": "ResourceRoleIdentity",
297
418
  "pattern": "^ROLE-.+$"
298
419
  },
299
- "ExecutionIdentity": {
300
- "$schema": "https://json-schema.org/draft/2020-12/schema",
301
- "type": "string",
302
- "$anchor": "ExecutionIdentity",
303
- "pattern": "^EXECUTION-.+$"
304
- },
305
- "WorkStep": {
420
+ "StepKind": {
306
421
  "$schema": "https://json-schema.org/draft/2020-12/schema",
307
422
  "type": "object",
308
- "allOf": [
309
- {
310
- "$ref": "#/$defs/StepKind"
311
- }
312
- ],
313
423
  "properties": {
314
- "execution": {
315
- "$ref": "#/$defs/Execution"
316
- },
317
- "identity": {
318
- "$ref": "#/$defs/WorkStepIdentity"
319
- },
320
424
  "kind": {
321
- "const": "work"
425
+ "type": "string",
426
+ "enum": [
427
+ "work",
428
+ "branch",
429
+ "while",
430
+ "for"
431
+ ]
322
432
  }
323
433
  },
324
434
  "required": [
325
- "identity",
326
- "kind",
327
- "execution"
435
+ "kind"
328
436
  ],
329
- "$anchor": "WorkStep"
437
+ "$anchor": "StepKind"
330
438
  },
331
- "BranchStep": {
439
+ "Execution": {
332
440
  "$schema": "https://json-schema.org/draft/2020-12/schema",
333
441
  "type": "object",
334
442
  "allOf": [
335
443
  {
336
- "$ref": "#/$defs/StepKind"
444
+ "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
445
+ "$ref": "#/$defs/RoleBindingsWrapper"
337
446
  }
338
447
  ],
339
448
  "properties": {
340
- "cases": {
341
- "type": "array",
342
- "items": {
343
- "$ref": "#/$defs/Conditional"
344
- },
345
- "minItems": 1,
346
- "uniqueItems": true
347
- },
348
449
  "identity": {
349
- "$ref": "#/$defs/BranchStepIdentity"
450
+ "$ref": "#/$defs/ExecutionIdentity"
350
451
  },
351
- "kind": {
352
- "const": "branch"
452
+ "jobRef": {
453
+ "$ref": "#/$defs/JobIdentity"
353
454
  }
354
455
  },
355
456
  "required": [
356
457
  "identity",
357
- "kind",
358
- "cases"
458
+ "jobRef"
359
459
  ],
360
- "$anchor": "BranchStep"
460
+ "$anchor": "Execution"
361
461
  },
362
- "WhileStep": {
462
+ "WorkStepIdentity": {
363
463
  "$schema": "https://json-schema.org/draft/2020-12/schema",
364
- "type": "object",
365
- "allOf": [
366
- {
367
- "$ref": "#/$defs/StepKind"
368
- }
369
- ],
370
- "properties": {
371
- "case": {
372
- "$ref": "#/$defs/Conditional"
373
- },
374
- "identity": {
375
- "$ref": "#/$defs/WhileStepIdentity"
376
- },
377
- "kind": {
378
- "const": "while"
379
- }
380
- },
381
- "required": [
382
- "identity",
383
- "kind",
384
- "case"
385
- ],
386
- "$anchor": "WhileStep"
464
+ "type": "string",
465
+ "$anchor": "WorkStepIdentity",
466
+ "pattern": "^WORKSTEP-.+$"
387
467
  },
388
- "ForStep": {
468
+ "Conditional": {
389
469
  "$schema": "https://json-schema.org/draft/2020-12/schema",
390
470
  "type": "object",
391
- "allOf": [
392
- {
393
- "$ref": "#/$defs/StepKind"
394
- }
395
- ],
396
471
  "properties": {
397
- "case": {
398
- "$ref": "#/$defs/Conditional"
399
- },
400
- "identity": {
401
- "$ref": "#/$defs/ForStepIdentity"
472
+ "what": {
473
+ "$ref": "#/$defs/WorkStep"
402
474
  },
403
- "kind": {
404
- "const": "for"
475
+ "when": {
476
+ "$ref": "#/$defs/WorkStep"
405
477
  }
406
478
  },
407
479
  "required": [
408
- "identity",
409
- "kind",
410
- "case"
480
+ "when",
481
+ "what"
411
482
  ],
412
- "$anchor": "ForStep"
483
+ "unevaluatedProperties": false,
484
+ "$anchor": "Conditional"
485
+ },
486
+ "BranchStepIdentity": {
487
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
488
+ "type": "string",
489
+ "$anchor": "BranchStepIdentity",
490
+ "pattern": "^BRANCHSTEP-.+$"
491
+ },
492
+ "WhileStepIdentity": {
493
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
494
+ "type": "string",
495
+ "$anchor": "WhileStepIdentity",
496
+ "pattern": "^WHILESTEP-.+$"
497
+ },
498
+ "ForStepIdentity": {
499
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
500
+ "type": "string",
501
+ "$anchor": "ForStepIdentity",
502
+ "pattern": "^FORSTEP-.+$"
413
503
  },
414
504
  "ResourceBase": {
415
505
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -521,89 +611,25 @@
521
611
  ],
522
612
  "$anchor": "JsonData"
523
613
  },
524
- "StepKind": {
525
- "$schema": "https://json-schema.org/draft/2020-12/schema",
526
- "type": "object",
527
- "properties": {
528
- "kind": {
529
- "type": "string",
530
- "enum": [
531
- "work",
532
- "branch",
533
- "while",
534
- "for"
535
- ]
536
- }
537
- },
538
- "required": [
539
- "kind"
540
- ],
541
- "$anchor": "StepKind"
542
- },
543
- "Execution": {
544
- "$schema": "https://json-schema.org/draft/2020-12/schema",
545
- "type": "object",
546
- "allOf": [
547
- {
548
- "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
549
- "$ref": "#/$defs/RoleBindingsWrapper"
550
- }
551
- ],
552
- "properties": {
553
- "identity": {
554
- "$ref": "#/$defs/ExecutionIdentity"
555
- },
556
- "jobRef": {
557
- "$ref": "#/$defs/JobIdentity"
558
- }
559
- },
560
- "required": [
561
- "identity",
562
- "jobRef"
563
- ],
564
- "$anchor": "Execution"
565
- },
566
- "WorkStepIdentity": {
567
- "$schema": "https://json-schema.org/draft/2020-12/schema",
568
- "type": "string",
569
- "$anchor": "WorkStepIdentity",
570
- "pattern": "^WORKSTEP-.+$"
571
- },
572
- "Conditional": {
614
+ "RoleBindingsWrapper": {
573
615
  "$schema": "https://json-schema.org/draft/2020-12/schema",
574
616
  "type": "object",
575
617
  "properties": {
576
- "what": {
577
- "$ref": "#/$defs/WorkStep"
578
- },
579
- "when": {
580
- "$ref": "#/$defs/WorkStep"
618
+ "roleBindings": {
619
+ "$ref": "#/$defs/RoleBindings"
581
620
  }
582
621
  },
583
622
  "required": [
584
- "when",
585
- "what"
623
+ "roleBindings"
586
624
  ],
587
- "unevaluatedProperties": false,
588
- "$anchor": "Conditional"
589
- },
590
- "BranchStepIdentity": {
591
- "$schema": "https://json-schema.org/draft/2020-12/schema",
592
- "type": "string",
593
- "$anchor": "BranchStepIdentity",
594
- "pattern": "^BRANCHSTEP-.+$"
595
- },
596
- "WhileStepIdentity": {
597
- "$schema": "https://json-schema.org/draft/2020-12/schema",
598
- "type": "string",
599
- "$anchor": "WhileStepIdentity",
600
- "pattern": "^WHILESTEP-.+$"
625
+ "$anchor": "RoleBindingsWrapper"
601
626
  },
602
- "ForStepIdentity": {
627
+ "JobIdentity": {
603
628
  "$schema": "https://json-schema.org/draft/2020-12/schema",
604
629
  "type": "string",
605
- "$anchor": "ForStepIdentity",
606
- "pattern": "^FORSTEP-.+$"
630
+ "$anchor": "JobIdentity",
631
+ "$comment": "",
632
+ "pattern": "^JOB-.+$"
607
633
  },
608
634
  "ResourceIdentity": {
609
635
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -648,26 +674,6 @@
648
674
  ],
649
675
  "$anchor": "Path"
650
676
  },
651
- "RoleBindingsWrapper": {
652
- "$schema": "https://json-schema.org/draft/2020-12/schema",
653
- "type": "object",
654
- "properties": {
655
- "roleBindings": {
656
- "$ref": "#/$defs/RoleBindings"
657
- }
658
- },
659
- "required": [
660
- "roleBindings"
661
- ],
662
- "$anchor": "RoleBindingsWrapper"
663
- },
664
- "JobIdentity": {
665
- "$schema": "https://json-schema.org/draft/2020-12/schema",
666
- "type": "string",
667
- "$anchor": "JobIdentity",
668
- "$comment": "",
669
- "pattern": "^JOB-.+$"
670
- },
671
677
  "RoleBindings": {
672
678
  "$schema": "https://json-schema.org/draft/2020-12/schema",
673
679
  "type": "object",
@@ -12,6 +12,8 @@ export type ResourceTypeGenesis = {
12
12
  "Error": ResourceType;
13
13
  "Execution": ResourceType;
14
14
  "ExecutionIdentity": ResourceType;
15
+ "ExecutionSocket": ResourceType;
16
+ "ExecutionSocketMaterialized": ResourceType;
15
17
  "ExtractionSchema": ResourceType;
16
18
  "ExtractionSchemaWrapper": ResourceType;
17
19
  "ForStep": ResourceType;