@toolproof-npm/schema 0.1.51 → 0.1.53

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.
@@ -5,39 +5,33 @@
5
5
  * via the `definition` "BranchStep".
6
6
  */
7
7
  export type BranchStep =
8
- StepKind & {
8
+ {
9
9
  /**
10
10
  * @minItems 1
11
11
  */
12
12
  cases: [Conditional, ...Conditional[]];
13
13
  identity: BranchStepIdentity;
14
14
  kind: "branch";
15
- };
15
+ } & StepKind;
16
16
  /**
17
17
  * This interface was referenced by `GenesisJson`'s JSON-Schema
18
18
  * via the `definition` "WorkStep".
19
19
  */
20
20
  export type WorkStep =
21
- StepKind & {
21
+ {
22
22
  execution: Execution;
23
23
  identity: WorkStepIdentity;
24
24
  kind: "work";
25
- };
25
+ } & StepKind;
26
26
  /**
27
27
  * This interface was referenced by `GenesisJson`'s JSON-Schema
28
28
  * via the `definition` "Execution".
29
29
  */
30
30
  export type Execution =
31
- RoleBindingsWrapper & {
31
+ {
32
32
  identity: ExecutionIdentity;
33
33
  jobRef: JobIdentity;
34
- };
35
- /**
36
- * This interface was referenced by `GenesisJson`'s JSON-Schema
37
- * via the `definition` "ResourceIdentity".
38
- */
39
- export type ResourceIdentity =
40
- `RESOURCE-${string}`;
34
+ } & RoleBindingsWrapper;
41
35
  /**
42
36
  * This interface was referenced by `GenesisJson`'s JSON-Schema
43
37
  * via the `definition` "ExecutionIdentity".
@@ -50,6 +44,12 @@ export type ExecutionIdentity =
50
44
  */
51
45
  export type JobIdentity =
52
46
  `JOB-${string}`;
47
+ /**
48
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
49
+ * via the `definition` "ResourceIdentity".
50
+ */
51
+ export type ResourceIdentity =
52
+ `RESOURCE-${string}`;
53
53
  /**
54
54
  * This interface was referenced by `GenesisJson`'s JSON-Schema
55
55
  * via the `definition` "WorkStepIdentity".
@@ -80,7 +80,6 @@ export type Documented =
80
80
  */
81
81
  export type ExtractionSchema =
82
82
  {
83
- } & {
84
83
  $schema: "https://json-schema.org/draft/2020-12/schema";
85
84
  $defs?: Record<string, unknown>;
86
85
  type: "object";
@@ -90,17 +89,18 @@ export type ExtractionSchema =
90
89
  additionalProperties?: false;
91
90
  unevaluatedProperties?: false;
92
91
  $anchor: string;
92
+ } & {
93
93
  };
94
94
  /**
95
95
  * This interface was referenced by `GenesisJson`'s JSON-Schema
96
96
  * via the `definition` "ForStep".
97
97
  */
98
98
  export type ForStep =
99
- StepKind & {
99
+ {
100
100
  case: Conditional;
101
101
  identity: ForStepIdentity;
102
102
  kind: "for";
103
- };
103
+ } & StepKind;
104
104
  /**
105
105
  * This interface was referenced by `GenesisJson`'s JSON-Schema
106
106
  * via the `definition` "ForStepIdentity".
@@ -116,7 +116,6 @@ export type ForStepIdentity =
116
116
  */
117
117
  export type IdentitySchema =
118
118
  {
119
- } & {
120
119
  $schema?: "https://json-schema.org/draft/2020-12/schema";
121
120
  type: "string" | "number" | "integer" | "boolean";
122
121
  $anchor?: string;
@@ -129,13 +128,18 @@ export type IdentitySchema =
129
128
  maxLength?: number;
130
129
  minLength?: number;
131
130
  pattern?: string;
131
+ } & {
132
132
  };
133
133
  /**
134
134
  * This interface was referenced by `GenesisJson`'s JSON-Schema
135
135
  * via the `definition` "Job".
136
136
  */
137
137
  export type Job =
138
- Documented & RolesWrapper;
138
+ {
139
+ identity: JobIdentity;
140
+ implementationUri: string;
141
+ } & Documented &
142
+ RolesWrapper;
139
143
  /**
140
144
  * This interface was referenced by `GenesisJson`'s JSON-Schema
141
145
  * via the `definition` "ResourceRoleValue".
@@ -172,7 +176,6 @@ export type JsonData =
172
176
  */
173
177
  export type MeritSchema =
174
178
  {
175
- } & {
176
179
  $schema?: "https://json-schema.org/draft/2020-12/schema";
177
180
  type?: "number" | "integer";
178
181
  $anchor?: string;
@@ -186,6 +189,7 @@ export type MeritSchema =
186
189
  maximum?: number;
187
190
  minimum?: number;
188
191
  multipleOf?: number;
192
+ } & {
189
193
  } & MeritSchema1;
190
194
  export type MeritSchema1 =
191
195
  | {
@@ -202,10 +206,11 @@ export type MeritSchema1 =
202
206
  * via the `definition` "Resource".
203
207
  */
204
208
  export type Resource =
205
- ResourceMetaBase & {
206
- extractedData: {
207
- [k: string]: JsonData;
208
- };
209
+ {
210
+ } & ResourceMetaBase & {
211
+ extractedData: {
212
+ [k: string]: JsonData;
213
+ };
209
214
  };
210
215
  /**
211
216
  * This interface was referenced by `GenesisJson`'s JSON-Schema
@@ -223,7 +228,9 @@ export type ResourceMetaBase =
223
228
  * via the `definition` "ResourceFormat".
224
229
  */
225
230
  export type ResourceFormat =
226
- Documented;
231
+ {
232
+ identity: ResourceFormatIdentity;
233
+ } & Documented;
227
234
  /**
228
235
  * This interface was referenced by `GenesisJson`'s JSON-Schema
229
236
  * via the `definition` "ResourceFormatIdentity".
@@ -246,7 +253,8 @@ export type ResourceMetaBase1 =
246
253
  * via the `definition` "ResourceMissing".
247
254
  */
248
255
  export type ResourceMissing =
249
- ResourceBase &
256
+ {
257
+ } & ResourceBase &
250
258
  ResourceKind & {
251
259
  kind: "missing";
252
260
  };
@@ -255,7 +263,8 @@ export type ResourceMissing =
255
263
  * via the `definition` "ResourcePotentialInput".
256
264
  */
257
265
  export type ResourcePotentialInput =
258
- ResourceBase &
266
+ {
267
+ } & ResourceBase &
259
268
  CreationContextWrapper &
260
269
  ResourceKind & {
261
270
  kind: "potential-input";
@@ -265,7 +274,8 @@ export type ResourcePotentialInput =
265
274
  * via the `definition` "ResourcePotentialOutput".
266
275
  */
267
276
  export type ResourcePotentialOutput =
268
- ResourceBase &
277
+ {
278
+ } & ResourceBase &
269
279
  CreationContextWrapper &
270
280
  ResourceKind & {
271
281
  kind: "potential-output";
@@ -275,7 +285,10 @@ export type ResourcePotentialOutput =
275
285
  * via the `definition` "ResourceType".
276
286
  */
277
287
  export type ResourceType =
278
- Documented &
288
+ {
289
+ identity: ResourceTypeIdentity;
290
+ resourceFormatRef: ResourceFormatIdentity;
291
+ } & Documented &
279
292
  ExtractionSchemaWrapper & {
280
293
  };
281
294
  /**
@@ -283,7 +296,10 @@ export type ResourceType =
283
296
  * via the `definition` "StatefulStrategy".
284
297
  */
285
298
  export type StatefulStrategy =
286
- StrategyStateWrapper;
299
+ {
300
+ identity: StatefulStrategyIdentity;
301
+ statelessStrategy: StatelessStrategy;
302
+ } & StrategyStateWrapper;
287
303
  /**
288
304
  * This interface was referenced by `GenesisJson`'s JSON-Schema
289
305
  * via the `definition` "StatefulStrategyIdentity".
@@ -307,11 +323,11 @@ export type Step =
307
323
  * via the `definition` "WhileStep".
308
324
  */
309
325
  export type WhileStep =
310
- StepKind & {
326
+ {
311
327
  case: Conditional;
312
328
  identity: WhileStepIdentity;
313
329
  kind: "while";
314
- };
330
+ } & StepKind;
315
331
  /**
316
332
  * This interface was referenced by `GenesisJson`'s JSON-Schema
317
333
  * via the `definition` "WhileStepIdentity".
@@ -321,13 +337,6 @@ export type WhileStepIdentity =
321
337
 
322
338
  export interface GenesisJson {
323
339
  }
324
- /**
325
- * This interface was referenced by `GenesisJson`'s JSON-Schema
326
- * via the `definition` "StepKind".
327
- */
328
- export interface StepKind {
329
- kind: "work" | "branch" | "while" | "for";
330
- }
331
340
  /**
332
341
  * This interface was referenced by `GenesisJson`'s JSON-Schema
333
342
  * via the `definition` "Conditional".
@@ -352,6 +361,13 @@ export interface RoleBindings {
352
361
  * via the `definition` "RoleBindingMap".
353
362
  */
354
363
  export type RoleBindingMap = Record<ResourceRoleIdentity, ResourceIdentity>;
364
+ /**
365
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
366
+ * via the `definition` "StepKind".
367
+ */
368
+ export interface StepKind {
369
+ kind: "work" | "branch" | "while" | "for";
370
+ }
355
371
  /**
356
372
  * This interface was referenced by `GenesisJson`'s JSON-Schema
357
373
  * via the `definition` "CreationContext".
@@ -482,6 +498,14 @@ export interface Timestamp {
482
498
  export interface RoleBindingsWrapper1 {
483
499
  roleBindings: RoleBindings;
484
500
  }
501
+ /**
502
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
503
+ * via the `definition` "StatelessStrategy".
504
+ */
505
+ export interface StatelessStrategy {
506
+ identity: StatelessStrategyIdentity;
507
+ steps: Step[];
508
+ }
485
509
  /**
486
510
  * This interface was referenced by `GenesisJson`'s JSON-Schema
487
511
  * via the `definition` "StrategyStateWrapper".
@@ -494,141 +518,70 @@ export interface StrategyStateWrapper {
494
518
  * via the `definition` "StrategyState".
495
519
  */
496
520
  export type StrategyState = Record<ExecutionIdentity, Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>>;
497
- /**
498
- * This interface was referenced by `GenesisJson`'s JSON-Schema
499
- * via the `definition` "StatelessStrategy".
500
- */
501
- export interface StatelessStrategy {
502
- identity: StatelessStrategyIdentity;
503
- steps: Step[];
504
- }
505
521
 
506
522
  export type Normalized =
507
- Documented &
508
- RolesWrapper & {
509
- identity: JobIdentity;
510
- implementationUri: string;
511
- };
512
- /**
513
- * This interface was referenced by `undefined`'s JSON-Schema
514
- * via the `definition` "Documented".
515
- */
523
+ {
524
+ identity: JobIdentity;
525
+ implementationUri: string;
526
+ } & Documented &
527
+ RolesWrapper;
528
+ export type JobIdentity =
529
+ `JOB-${string}`;
516
530
  export type Documented =
517
531
  Named & Described;
518
- /**
519
- * This interface was referenced by `undefined`'s JSON-Schema
520
- * via the `definition` "ResourceRoleValue".
521
- */
522
532
  export type ResourceRoleValue =
523
533
  {
524
534
  resourceTypeRef: ResourceTypeIdentity;
525
535
  } & Documented;
526
- /**
527
- * This interface was referenced by `undefined`'s JSON-Schema
528
- * via the `definition` "ResourceTypeIdentity".
529
- */
530
536
  export type ResourceTypeIdentity =
531
537
  `TYPE-${string}`;
532
- /**
533
- * This interface was referenced by `undefined`'s JSON-Schema
534
- * via the `definition` "JobIdentity".
535
- */
536
- export type JobIdentity =
537
- `JOB-${string}`;
538
- /**
539
- * This interface was referenced by `undefined`'s JSON-Schema
540
- * via the `definition` "ResourceRoleIdentity".
541
- */
542
- export type ResourceRoleIdentity =
543
- `ROLE-${string}`;
544
538
 
545
- /**
546
- * This interface was referenced by `undefined`'s JSON-Schema
547
- * via the `definition` "Named".
548
- */
549
539
  export interface Named {
550
540
  name: string;
551
541
  }
552
- /**
553
- * This interface was referenced by `undefined`'s JSON-Schema
554
- * via the `definition` "Described".
555
- */
556
542
  export interface Described {
557
543
  description: string;
558
544
  }
559
- /**
560
- * This interface was referenced by `undefined`'s JSON-Schema
561
- * via the `definition` "RolesWrapper".
562
- */
563
545
  export interface RolesWrapper {
564
546
  roles: Roles;
565
547
  }
566
- /**
567
- * This interface was referenced by `undefined`'s JSON-Schema
568
- * via the `definition` "Roles".
569
- */
570
548
  export interface Roles {
571
549
  inputMap: RoleMap;
572
550
  outputMap: RoleMap;
573
551
  }
574
- /**
575
- * This interface was referenced by `undefined`'s JSON-Schema
576
- * via the `definition` "RoleMap".
577
- */
578
552
  export type RoleMap = Record<ResourceRoleIdentity, ResourceRoleValue>;
579
553
 
580
554
  export type Normalized =
581
- Documented & {
555
+ {
582
556
  identity: ResourceFormatIdentity;
583
- };
584
- /**
585
- * This interface was referenced by `undefined`'s JSON-Schema
586
- * via the `definition` "Documented".
587
- */
588
- export type Documented =
589
- Named & Described;
590
- /**
591
- * This interface was referenced by `undefined`'s JSON-Schema
592
- * via the `definition` "ResourceFormatIdentity".
593
- */
557
+ } & Documented;
594
558
  export type ResourceFormatIdentity =
595
559
  `FORMAT-${string}`;
560
+ export type Documented =
561
+ Named & Described;
596
562
 
597
- /**
598
- * This interface was referenced by `undefined`'s JSON-Schema
599
- * via the `definition` "Named".
600
- */
601
563
  export interface Named {
602
564
  name: string;
603
565
  }
604
- /**
605
- * This interface was referenced by `undefined`'s JSON-Schema
606
- * via the `definition` "Described".
607
- */
608
566
  export interface Described {
609
567
  description: string;
610
568
  }
611
569
 
612
570
  export type Normalized =
613
- Documented &
571
+ {
572
+ identity: ResourceTypeIdentity;
573
+ resourceFormatRef: ResourceFormatIdentity;
574
+ } & Documented &
614
575
  ExtractionSchemaWrapper & {
615
- } & {
616
- identity: ResourceTypeIdentity;
617
- resourceFormatRef: ResourceFormatIdentity;
618
576
  };
619
- /**
620
- * This interface was referenced by `undefined`'s JSON-Schema
621
- * via the `definition` "Documented".
622
- */
577
+ export type ResourceTypeIdentity =
578
+ `TYPE-${string}`;
579
+ export type ResourceFormatIdentity =
580
+ `FORMAT-${string}`;
623
581
  export type Documented =
624
582
  Named & Described;
625
- /**
626
- * This interface was referenced by `undefined`'s JSON-Schema
627
- * via the `definition` "ExtractionSchema".
628
- */
629
583
  export type ExtractionSchema =
630
584
  {
631
- } & {
632
585
  $schema: "https://json-schema.org/draft/2020-12/schema";
633
586
  $defs?: Record<string, unknown>;
634
587
  type: "object";
@@ -638,432 +591,167 @@ export type ExtractionSchema =
638
591
  additionalProperties?: false;
639
592
  unevaluatedProperties?: false;
640
593
  $anchor: string;
641
- };
642
- /**
643
- * This interface was referenced by `undefined`'s JSON-Schema
644
- * via the `definition` "ResourceTypeIdentity".
645
- */
646
- export type ResourceTypeIdentity =
647
- `TYPE-${string}`;
648
- /**
649
- * This interface was referenced by `undefined`'s JSON-Schema
650
- * via the `definition` "ResourceFormatIdentity".
651
- */
652
- export type ResourceFormatIdentity =
653
- `FORMAT-${string}`;
654
- /**
655
- * This interface was referenced by `undefined`'s JSON-Schema definition
656
- * via the `patternProperty` "^[A-Za-z][A-Za-z0-9._-]*Identity$".
657
- *
658
- * This interface was referenced by `undefined`'s JSON-Schema
659
- * via the `definition` "IdentitySchema".
660
- */
661
- export type IdentitySchema =
662
- {
663
- } & {
664
- $schema?: "https://json-schema.org/draft/2020-12/schema";
665
- type: "string" | "number" | "integer" | "boolean";
666
- $anchor?: string;
667
- $comment?: string;
668
- /**
669
- * @minItems 1
670
- */
671
- enum?: [unknown, ...unknown[]];
672
- format?: string;
673
- maxLength?: number;
674
- minLength?: number;
675
- pattern?: string;
676
- };
677
- /**
678
- * This interface was referenced by `undefined`'s JSON-Schema definition
679
- * via the `patternProperty` "^[A-Za-z][A-Za-z0-9._-]*Merit$".
680
- *
681
- * This interface was referenced by `undefined`'s JSON-Schema
682
- * via the `definition` "MeritSchema".
683
- */
684
- export type MeritSchema =
685
- {
686
594
  } & {
687
- $schema?: "https://json-schema.org/draft/2020-12/schema";
688
- type?: "number" | "integer";
689
- $anchor?: string;
690
- $comment?: string;
691
- /**
692
- * @minItems 1
693
- */
694
- enum?: [number, ...number[]];
695
- exclusiveMaximum?: number;
696
- exclusiveMinimum?: number;
697
- maximum?: number;
698
- minimum?: number;
699
- multipleOf?: number;
700
- } & MeritSchema1;
701
- export type MeritSchema1 =
702
- | {
703
- type: "number" | "integer";
704
- }
705
- | {
706
- /**
707
- * @minItems 1
708
- */
709
- enum: [number, ...number[]];
710
595
  };
711
596
 
712
- /**
713
- * This interface was referenced by `undefined`'s JSON-Schema
714
- * via the `definition` "Named".
715
- */
716
597
  export interface Named {
717
598
  name: string;
718
599
  }
719
- /**
720
- * This interface was referenced by `undefined`'s JSON-Schema
721
- * via the `definition` "Described".
722
- */
723
600
  export interface Described {
724
601
  description: string;
725
602
  }
726
- /**
727
- * This interface was referenced by `undefined`'s JSON-Schema
728
- * via the `definition` "ExtractionSchemaWrapper".
729
- */
730
603
  export interface ExtractionSchemaWrapper {
731
604
  extractionSchema: ExtractionSchema;
732
605
  }
733
- /**
734
- * This interface was referenced by `undefined`'s JSON-Schema
735
- * via the `definition` "IdentityProp".
736
- */
737
- export interface IdentityProp {
738
- $defs: Record<string, unknown>;
739
- properties: {
740
- identity: IdentitySchemaRef;
741
- };
742
- required: string[];
743
- additionalProperties?: unknown;
744
- }
745
- /**
746
- * This interface was referenced by `undefined`'s JSON-Schema
747
- * via the `definition` "IdentitySchemaRef".
748
- */
749
- export interface IdentitySchemaRef {
750
- $ref: string;
751
- }
752
- /**
753
- * This interface was referenced by `undefined`'s JSON-Schema
754
- * via the `definition` "MeritProp".
755
- */
756
- export interface MeritProp {
757
- $defs: Record<string, unknown>;
758
- properties: {
759
- merit: MeritSchemaRef;
760
- };
761
- required: string[];
762
- additionalProperties?: unknown;
763
- }
764
- /**
765
- * This interface was referenced by `undefined`'s JSON-Schema
766
- * via the `definition` "MeritSchemaRef".
767
- */
768
- export interface MeritSchemaRef {
769
- $ref: string;
770
- }
771
606
 
772
607
  export type Normalized =
773
- StrategyStateWrapper & {
608
+ {
774
609
  identity: StatefulStrategyIdentity;
775
610
  statelessStrategy: StatelessStrategy;
776
- };
777
- /**
778
- * This interface was referenced by `undefined`'s JSON-Schema
779
- * via the `definition` "ResourceMissing".
780
- */
781
- export type ResourceMissing =
782
- ResourceBase &
783
- ResourceKind & {
784
- kind: "missing";
785
- };
786
- /**
787
- * This interface was referenced by `undefined`'s JSON-Schema
788
- * via the `definition` "ResourceIdentity".
789
- */
790
- export type ResourceIdentity =
791
- `RESOURCE-${string}`;
792
- /**
793
- * This interface was referenced by `undefined`'s JSON-Schema
794
- * via the `definition` "ResourceTypeIdentity".
795
- */
796
- export type ResourceTypeIdentity =
797
- `TYPE-${string}`;
798
- /**
799
- * This interface was referenced by `undefined`'s JSON-Schema
800
- * via the `definition` "ResourcePotentialInput".
801
- */
802
- export type ResourcePotentialInput =
803
- ResourceBase &
804
- CreationContextWrapper &
805
- ResourceKind & {
806
- kind: "potential-input";
807
- };
808
- /**
809
- * This interface was referenced by `undefined`'s JSON-Schema
810
- * via the `definition` "ExecutionIdentity".
811
- */
812
- export type ExecutionIdentity =
813
- `EXECUTION-${string}`;
814
- /**
815
- * This interface was referenced by `undefined`'s JSON-Schema
816
- * via the `definition` "ResourceRoleIdentity".
817
- */
818
- export type ResourceRoleIdentity =
819
- `ROLE-${string}`;
820
- /**
821
- * This interface was referenced by `undefined`'s JSON-Schema
822
- * via the `definition` "ResourcePotentialOutput".
823
- */
824
- export type ResourcePotentialOutput =
825
- ResourceBase &
826
- CreationContextWrapper &
827
- ResourceKind & {
828
- kind: "potential-output";
829
- };
830
- /**
831
- * This interface was referenced by `undefined`'s JSON-Schema
832
- * via the `definition` "Resource".
833
- */
834
- export type Resource =
835
- ResourceMetaBase & {
836
- extractedData: {
837
- [k: string]: JsonData;
838
- };
839
- };
840
- /**
841
- * This interface was referenced by `undefined`'s JSON-Schema
842
- * via the `definition` "ResourceMetaBase".
843
- */
844
- export type ResourceMetaBase =
845
- ResourceBase &
846
- CreationContextWrapper &
847
- ResourceKind & {
848
- kind: "materialized";
849
- } & Timestamp &
850
- Path;
851
- /**
852
- * This interface was referenced by `undefined`'s JSON-Schema
853
- * via the `definition` "JsonData".
854
- */
855
- export type JsonData =
856
- | null
857
- | boolean
858
- | number
859
- | string
860
- | JsonData
861
- | {
862
- [k: string]: JsonData;
863
- };
864
- /**
865
- * This interface was referenced by `undefined`'s JSON-Schema
866
- * via the `definition` "StatefulStrategyIdentity".
867
- */
611
+ } & StrategyStateWrapper;
868
612
  export type StatefulStrategyIdentity =
869
613
  `STATEFUL_STRATEGY-${string}`;
870
- /**
871
- * This interface was referenced by `undefined`'s JSON-Schema
872
- * via the `definition` "StatelessStrategyIdentity".
873
- */
874
614
  export type StatelessStrategyIdentity =
875
615
  `STATELESS_STRATEGY-${string}`;
876
- /**
877
- * This interface was referenced by `undefined`'s JSON-Schema
878
- * via the `definition` "Step".
879
- */
880
616
  export type Step =
881
617
  WorkStep | BranchStep | WhileStep | ForStep;
882
- /**
883
- * This interface was referenced by `undefined`'s JSON-Schema
884
- * via the `definition` "WorkStep".
885
- */
886
618
  export type WorkStep =
887
- StepKind & {
619
+ {
888
620
  execution: Execution;
889
621
  identity: WorkStepIdentity;
890
622
  kind: "work";
891
- };
892
- /**
893
- * This interface was referenced by `undefined`'s JSON-Schema
894
- * via the `definition` "Execution".
895
- */
623
+ } & StepKind;
896
624
  export type Execution =
897
- RoleBindingsWrapper & {
625
+ {
898
626
  identity: ExecutionIdentity;
899
627
  jobRef: JobIdentity;
900
- };
901
- /**
902
- * This interface was referenced by `undefined`'s JSON-Schema
903
- * via the `definition` "JobIdentity".
904
- */
628
+ } & RoleBindingsWrapper;
629
+ export type ExecutionIdentity =
630
+ `EXECUTION-${string}`;
905
631
  export type JobIdentity =
906
632
  `JOB-${string}`;
907
- /**
908
- * This interface was referenced by `undefined`'s JSON-Schema
909
- * via the `definition` "WorkStepIdentity".
910
- */
633
+ export type ResourceIdentity =
634
+ `RESOURCE-${string}`;
911
635
  export type WorkStepIdentity =
912
636
  `WORKSTEP-${string}`;
913
- /**
914
- * This interface was referenced by `undefined`'s JSON-Schema
915
- * via the `definition` "BranchStep".
916
- */
917
637
  export type BranchStep =
918
- StepKind & {
638
+ {
919
639
  /**
920
640
  * @minItems 1
921
641
  */
922
642
  cases: [Conditional, ...Conditional[]];
923
643
  identity: BranchStepIdentity;
924
644
  kind: "branch";
925
- };
926
- /**
927
- * This interface was referenced by `undefined`'s JSON-Schema
928
- * via the `definition` "BranchStepIdentity".
929
- */
645
+ } & StepKind;
930
646
  export type BranchStepIdentity =
931
647
  `BRANCHSTEP-${string}`;
932
- /**
933
- * This interface was referenced by `undefined`'s JSON-Schema
934
- * via the `definition` "WhileStep".
935
- */
936
648
  export type WhileStep =
937
- StepKind & {
649
+ {
938
650
  case: Conditional;
939
651
  identity: WhileStepIdentity;
940
652
  kind: "while";
941
- };
942
- /**
943
- * This interface was referenced by `undefined`'s JSON-Schema
944
- * via the `definition` "WhileStepIdentity".
945
- */
653
+ } & StepKind;
946
654
  export type WhileStepIdentity =
947
655
  `WHILESTEP-${string}`;
948
- /**
949
- * This interface was referenced by `undefined`'s JSON-Schema
950
- * via the `definition` "ForStep".
951
- */
952
656
  export type ForStep =
953
- StepKind & {
657
+ {
954
658
  case: Conditional;
955
659
  identity: ForStepIdentity;
956
660
  kind: "for";
957
- };
958
- /**
959
- * This interface was referenced by `undefined`'s JSON-Schema
960
- * via the `definition` "ForStepIdentity".
961
- */
661
+ } & StepKind;
962
662
  export type ForStepIdentity =
963
663
  `FORSTEP-${string}`;
664
+ export type ResourceMissing =
665
+ {
666
+ } & ResourceBase &
667
+ ResourceKind & {
668
+ kind: "missing";
669
+ };
670
+ export type ResourceTypeIdentity =
671
+ `TYPE-${string}`;
672
+ export type ResourcePotentialInput =
673
+ {
674
+ } & ResourceBase &
675
+ CreationContextWrapper &
676
+ ResourceKind & {
677
+ kind: "potential-input";
678
+ };
679
+ export type ResourceRoleIdentity =
680
+ `ROLE-${string}`;
681
+ export type ResourcePotentialOutput =
682
+ {
683
+ } & ResourceBase &
684
+ CreationContextWrapper &
685
+ ResourceKind & {
686
+ kind: "potential-output";
687
+ };
688
+ export type Resource =
689
+ {
690
+ } & ResourceMetaBase & {
691
+ extractedData: {
692
+ [k: string]: JsonData;
693
+ };
694
+ };
695
+ export type ResourceMetaBase =
696
+ ResourceBase &
697
+ CreationContextWrapper &
698
+ ResourceKind & {
699
+ kind: "materialized";
700
+ } & Timestamp &
701
+ Path;
702
+ export type JsonData =
703
+ | null
704
+ | boolean
705
+ | number
706
+ | string
707
+ | JsonData
708
+ | {
709
+ [k: string]: JsonData;
710
+ };
964
711
 
965
- /**
966
- * This interface was referenced by `undefined`'s JSON-Schema
967
- * via the `definition` "StrategyStateWrapper".
968
- */
712
+ export interface StatelessStrategy {
713
+ identity: StatelessStrategyIdentity;
714
+ steps: Step[];
715
+ }
716
+ export interface RoleBindingsWrapper {
717
+ roleBindings: RoleBindings;
718
+ }
719
+ export interface RoleBindings {
720
+ inputBindingMap: RoleBindingMap;
721
+ outputBindingMap: RoleBindingMap;
722
+ }
723
+ export type RoleBindingMap = Record<ResourceRoleIdentity, ResourceIdentity>;
724
+ export interface StepKind {
725
+ kind: "work" | "branch" | "while" | "for";
726
+ }
727
+ export interface Conditional {
728
+ what: WorkStep;
729
+ when: WorkStep;
730
+ }
969
731
  export interface StrategyStateWrapper {
970
732
  strategyState: StrategyState;
971
733
  }
972
- /**
973
- * This interface was referenced by `undefined`'s JSON-Schema
974
- * via the `definition` "StrategyState".
975
- */
976
734
  export type StrategyState = Record<ExecutionIdentity, Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>>;
977
- /**
978
- * This interface was referenced by `undefined`'s JSON-Schema
979
- * via the `definition` "ResourceBase".
980
- */
981
735
  export interface ResourceBase {
982
736
  identity: ResourceIdentity;
983
737
  resourceTypeRef: ResourceTypeIdentity;
984
738
  }
985
- /**
986
- * This interface was referenced by `undefined`'s JSON-Schema
987
- * via the `definition` "ResourceKind".
988
- */
989
739
  export interface ResourceKind {
990
740
  kind: "missing" | "potential-input" | "potential-output" | "materialized";
991
741
  }
992
- /**
993
- * This interface was referenced by `undefined`'s JSON-Schema
994
- * via the `definition` "CreationContextWrapper".
995
- */
996
742
  export interface CreationContextWrapper {
997
743
  creationContext: CreationContext;
998
744
  }
999
- /**
1000
- * This interface was referenced by `undefined`'s JSON-Schema
1001
- * via the `definition` "CreationContext".
1002
- */
1003
745
  export interface CreationContext {
1004
746
  executionRef: ExecutionIdentity;
1005
747
  resourceRoleRef: ResourceRoleIdentity;
1006
748
  }
1007
- /**
1008
- * This interface was referenced by `undefined`'s JSON-Schema
1009
- * via the `definition` "Timestamp".
1010
- */
1011
749
  export interface Timestamp {
1012
750
  timestamp: string;
1013
751
  }
1014
- /**
1015
- * This interface was referenced by `undefined`'s JSON-Schema
1016
- * via the `definition` "Path".
1017
- */
1018
752
  export interface Path {
1019
753
  path: string;
1020
754
  }
1021
- /**
1022
- * This interface was referenced by `undefined`'s JSON-Schema
1023
- * via the `definition` "StatelessStrategy".
1024
- */
1025
- export interface StatelessStrategy {
1026
- identity: StatelessStrategyIdentity;
1027
- steps: Step[];
1028
- }
1029
- /**
1030
- * This interface was referenced by `undefined`'s JSON-Schema
1031
- * via the `definition` "StepKind".
1032
- */
1033
- export interface StepKind {
1034
- kind: "work" | "branch" | "while" | "for";
1035
- }
1036
- export interface RoleBindingsWrapper {
1037
- roleBindings: RoleBindings;
1038
- }
1039
- /**
1040
- * This interface was referenced by `undefined`'s JSON-Schema
1041
- * via the `definition` "RoleBindings".
1042
- */
1043
- export interface RoleBindings {
1044
- inputBindingMap: RoleBindingMap;
1045
- outputBindingMap: RoleBindingMap;
1046
- }
1047
- /**
1048
- * This interface was referenced by `undefined`'s JSON-Schema
1049
- * via the `definition` "RoleBindingMap".
1050
- */
1051
- export type RoleBindingMap = Record<ResourceRoleIdentity, ResourceIdentity>;
1052
- /**
1053
- * This interface was referenced by `undefined`'s JSON-Schema
1054
- * via the `definition` "Conditional".
1055
- */
1056
- export interface Conditional {
1057
- what: WorkStep;
1058
- when: WorkStep;
1059
- }
1060
- /**
1061
- * This interface was referenced by `undefined`'s JSON-Schema
1062
- * via the `definition` "RoleBindingsWrapper".
1063
- */
1064
- export interface RoleBindingsWrapper1 {
1065
- roleBindings: RoleBindings;
1066
- }
1067
755
 
1068
756
  /**
1069
757
  * This interface was referenced by `Normalized`'s JSON-Schema
@@ -1082,26 +770,20 @@ export type Step =
1082
770
  * via the `definition` "WorkStep".
1083
771
  */
1084
772
  export type WorkStep =
1085
- StepKind & {
773
+ {
1086
774
  execution: Execution;
1087
775
  identity: WorkStepIdentity;
1088
776
  kind: "work";
1089
- };
777
+ } & StepKind;
1090
778
  /**
1091
779
  * This interface was referenced by `Normalized`'s JSON-Schema
1092
780
  * via the `definition` "Execution".
1093
781
  */
1094
782
  export type Execution =
1095
- RoleBindingsWrapper & {
783
+ {
1096
784
  identity: ExecutionIdentity;
1097
785
  jobRef: JobIdentity;
1098
- };
1099
- /**
1100
- * This interface was referenced by `Normalized`'s JSON-Schema
1101
- * via the `definition` "ResourceIdentity".
1102
- */
1103
- export type ResourceIdentity =
1104
- `RESOURCE-${string}`;
786
+ } & RoleBindingsWrapper;
1105
787
  /**
1106
788
  * This interface was referenced by `Normalized`'s JSON-Schema
1107
789
  * via the `definition` "ExecutionIdentity".
@@ -1114,6 +796,12 @@ export type ExecutionIdentity =
1114
796
  */
1115
797
  export type JobIdentity =
1116
798
  `JOB-${string}`;
799
+ /**
800
+ * This interface was referenced by `Normalized`'s JSON-Schema
801
+ * via the `definition` "ResourceIdentity".
802
+ */
803
+ export type ResourceIdentity =
804
+ `RESOURCE-${string}`;
1117
805
  /**
1118
806
  * This interface was referenced by `Normalized`'s JSON-Schema
1119
807
  * via the `definition` "WorkStepIdentity".
@@ -1125,14 +813,14 @@ export type WorkStepIdentity =
1125
813
  * via the `definition` "BranchStep".
1126
814
  */
1127
815
  export type BranchStep =
1128
- StepKind & {
816
+ {
1129
817
  /**
1130
818
  * @minItems 1
1131
819
  */
1132
820
  cases: [Conditional, ...Conditional[]];
1133
821
  identity: BranchStepIdentity;
1134
822
  kind: "branch";
1135
- };
823
+ } & StepKind;
1136
824
  /**
1137
825
  * This interface was referenced by `Normalized`'s JSON-Schema
1138
826
  * via the `definition` "BranchStepIdentity".
@@ -1144,11 +832,11 @@ export type BranchStepIdentity =
1144
832
  * via the `definition` "WhileStep".
1145
833
  */
1146
834
  export type WhileStep =
1147
- StepKind & {
835
+ {
1148
836
  case: Conditional;
1149
837
  identity: WhileStepIdentity;
1150
838
  kind: "while";
1151
- };
839
+ } & StepKind;
1152
840
  /**
1153
841
  * This interface was referenced by `Normalized`'s JSON-Schema
1154
842
  * via the `definition` "WhileStepIdentity".
@@ -1160,11 +848,11 @@ export type WhileStepIdentity =
1160
848
  * via the `definition` "ForStep".
1161
849
  */
1162
850
  export type ForStep =
1163
- StepKind & {
851
+ {
1164
852
  case: Conditional;
1165
853
  identity: ForStepIdentity;
1166
854
  kind: "for";
1167
- };
855
+ } & StepKind;
1168
856
  /**
1169
857
  * This interface was referenced by `Normalized`'s JSON-Schema
1170
858
  * via the `definition` "ForStepIdentity".
@@ -1182,13 +870,6 @@ export interface Normalized {
1182
870
  identity: StatelessStrategyIdentity;
1183
871
  steps: Step[];
1184
872
  }
1185
- /**
1186
- * This interface was referenced by `Normalized`'s JSON-Schema
1187
- * via the `definition` "StepKind".
1188
- */
1189
- export interface StepKind {
1190
- kind: "work" | "branch" | "while" | "for";
1191
- }
1192
873
  export interface RoleBindingsWrapper {
1193
874
  roleBindings: RoleBindings;
1194
875
  }
@@ -1205,6 +886,13 @@ export interface RoleBindings {
1205
886
  * via the `definition` "RoleBindingMap".
1206
887
  */
1207
888
  export type RoleBindingMap = Record<ResourceRoleIdentity, ResourceIdentity>;
889
+ /**
890
+ * This interface was referenced by `Normalized`'s JSON-Schema
891
+ * via the `definition` "StepKind".
892
+ */
893
+ export interface StepKind {
894
+ kind: "work" | "branch" | "while" | "for";
895
+ }
1208
896
  /**
1209
897
  * This interface was referenced by `Normalized`'s JSON-Schema
1210
898
  * via the `definition` "Conditional".