@toolproof-npm/schema 0.1.38 → 0.1.40
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/dist/_lib/types/Resource_Job.d.ts +1 -1
- package/dist/_lib/types/Resource_ResourceFormat.d.ts +1 -1
- package/dist/_lib/types/Resource_ResourceType.d.ts +1 -1
- package/dist/_lib/types/Resource_StatelessStrategy.d.ts +1 -1
- package/dist/_lib/types/types.d.ts +34 -16
- package/dist/genesis/generated/resources/Genesis.json +47 -3
- package/dist/genesis/generated/schemas/Genesis.json +31 -3
- package/dist/genesis/generated/schemas/StatefulStrategy.json +41 -6
- package/dist/genesis/generated/schemas/StatelessStrategy.json +12 -5
- package/dist/genesis/resourceTypes/Genesis.json +37 -3
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ export interface ResourceSocket {
|
|
|
29
29
|
resourceRoleId: string;
|
|
30
30
|
}
|
|
31
31
|
export interface ResourceKind {
|
|
32
|
-
kind: "potential-input" | "potential-output" | "materialized";
|
|
32
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
33
33
|
}
|
|
34
34
|
export interface Timestamp {
|
|
35
35
|
timestamp: string;
|
|
@@ -24,7 +24,7 @@ export interface ResourceSocket {
|
|
|
24
24
|
resourceRoleId: string;
|
|
25
25
|
}
|
|
26
26
|
export interface ResourceKind {
|
|
27
|
-
kind: "potential-input" | "potential-output" | "materialized";
|
|
27
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
28
28
|
}
|
|
29
29
|
export interface Timestamp {
|
|
30
30
|
timestamp: string;
|
|
@@ -42,7 +42,7 @@ export interface ResourceSocket {
|
|
|
42
42
|
resourceRoleId: string;
|
|
43
43
|
}
|
|
44
44
|
export interface ResourceKind {
|
|
45
|
-
kind: "potential-input" | "potential-output" | "materialized";
|
|
45
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
46
46
|
}
|
|
47
47
|
export interface Timestamp {
|
|
48
48
|
timestamp: string;
|
|
@@ -52,7 +52,7 @@ export interface ResourceSocket {
|
|
|
52
52
|
resourceRoleId: string;
|
|
53
53
|
}
|
|
54
54
|
export interface ResourceKind {
|
|
55
|
-
kind: "potential-input" | "potential-output" | "materialized";
|
|
55
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
56
56
|
}
|
|
57
57
|
export interface Timestamp {
|
|
58
58
|
timestamp: string;
|
|
@@ -30,7 +30,7 @@ export type WorkStep =
|
|
|
30
30
|
export type Execution =
|
|
31
31
|
{
|
|
32
32
|
identity: ExecutionId;
|
|
33
|
-
jobId:
|
|
33
|
+
jobId: JobId;
|
|
34
34
|
} & RoleBindingsOuter;
|
|
35
35
|
/**
|
|
36
36
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
@@ -38,6 +38,12 @@ export type Execution =
|
|
|
38
38
|
*/
|
|
39
39
|
export type ExecutionId =
|
|
40
40
|
string;
|
|
41
|
+
/**
|
|
42
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
43
|
+
* via the `definition` "JobId".
|
|
44
|
+
*/
|
|
45
|
+
export type JobId =
|
|
46
|
+
string;
|
|
41
47
|
/**
|
|
42
48
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
43
49
|
* via the `definition` "ResourceId".
|
|
@@ -113,12 +119,6 @@ export type Job =
|
|
|
113
119
|
implementation: string;
|
|
114
120
|
} & Documented &
|
|
115
121
|
RolesOuter;
|
|
116
|
-
/**
|
|
117
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
118
|
-
* via the `definition` "JobId".
|
|
119
|
-
*/
|
|
120
|
-
export type JobId =
|
|
121
|
-
string;
|
|
122
122
|
/**
|
|
123
123
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
124
124
|
* via the `definition` "ResourceRoleValue".
|
|
@@ -210,6 +210,15 @@ export type ResourceMetaBase1 =
|
|
|
210
210
|
kind: "materialized";
|
|
211
211
|
} & Timestamp &
|
|
212
212
|
Path;
|
|
213
|
+
/**
|
|
214
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
215
|
+
* via the `definition` "ResourceMissing".
|
|
216
|
+
*/
|
|
217
|
+
export type ResourceMissing =
|
|
218
|
+
ResourceBase &
|
|
219
|
+
ResourceKind & {
|
|
220
|
+
kind: "missing";
|
|
221
|
+
};
|
|
213
222
|
/**
|
|
214
223
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
215
224
|
* via the `definition` "ResourcePotentialInput".
|
|
@@ -445,7 +454,7 @@ export interface ResourceSocket1 {
|
|
|
445
454
|
* via the `definition` "ResourceKind".
|
|
446
455
|
*/
|
|
447
456
|
export interface ResourceKind {
|
|
448
|
-
kind: "potential-input" | "potential-output" | "materialized";
|
|
457
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
449
458
|
}
|
|
450
459
|
/**
|
|
451
460
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
@@ -474,7 +483,7 @@ export interface StrategyState {
|
|
|
474
483
|
*/
|
|
475
484
|
export interface StrategyStateValue {
|
|
476
485
|
[k: string]: {
|
|
477
|
-
[k: string]: ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
486
|
+
[k: string]: ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
478
487
|
};
|
|
479
488
|
}
|
|
480
489
|
|
|
@@ -590,10 +599,12 @@ export type WorkStep =
|
|
|
590
599
|
export type Execution =
|
|
591
600
|
{
|
|
592
601
|
identity: ExecutionId;
|
|
593
|
-
jobId:
|
|
602
|
+
jobId: JobId;
|
|
594
603
|
} & RoleBindingsOuter;
|
|
595
604
|
export type ExecutionId =
|
|
596
605
|
string;
|
|
606
|
+
export type JobId =
|
|
607
|
+
string;
|
|
597
608
|
export type ResourceId =
|
|
598
609
|
string;
|
|
599
610
|
export type WorkStepId =
|
|
@@ -625,11 +636,11 @@ export type ForStep =
|
|
|
625
636
|
};
|
|
626
637
|
export type ForStepId =
|
|
627
638
|
string;
|
|
628
|
-
export type
|
|
639
|
+
export type ResourceMissing =
|
|
629
640
|
ResourceBase &
|
|
630
641
|
ResourceKind & {
|
|
631
|
-
kind: "
|
|
632
|
-
}
|
|
642
|
+
kind: "missing";
|
|
643
|
+
};
|
|
633
644
|
export type ResourceBase =
|
|
634
645
|
{
|
|
635
646
|
identity: ResourceId;
|
|
@@ -639,6 +650,11 @@ export type ResourceTypeId =
|
|
|
639
650
|
string;
|
|
640
651
|
export type ResourceRoleId =
|
|
641
652
|
string;
|
|
653
|
+
export type ResourcePotentialInput =
|
|
654
|
+
ResourceBase &
|
|
655
|
+
ResourceKind & {
|
|
656
|
+
kind: "potential-input";
|
|
657
|
+
} & PendingRef;
|
|
642
658
|
export type ResourcePotentialOutput =
|
|
643
659
|
ResourceBase &
|
|
644
660
|
ResourceKind & {
|
|
@@ -686,7 +702,7 @@ export interface StrategyState {
|
|
|
686
702
|
}
|
|
687
703
|
export interface StrategyStateValue {
|
|
688
704
|
[k: string]: {
|
|
689
|
-
[k: string]: ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
705
|
+
[k: string]: ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
690
706
|
};
|
|
691
707
|
}
|
|
692
708
|
export interface CreationContext {
|
|
@@ -697,7 +713,7 @@ export interface ResourceSocket {
|
|
|
697
713
|
resourceRoleId: ResourceRoleId;
|
|
698
714
|
}
|
|
699
715
|
export interface ResourceKind {
|
|
700
|
-
kind: "potential-input" | "potential-output" | "materialized";
|
|
716
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
701
717
|
}
|
|
702
718
|
export interface PendingRef {
|
|
703
719
|
pendingRef: ResourceSocket1;
|
|
@@ -731,10 +747,12 @@ export type WorkStep =
|
|
|
731
747
|
export type Execution =
|
|
732
748
|
{
|
|
733
749
|
identity: ExecutionId;
|
|
734
|
-
jobId:
|
|
750
|
+
jobId: JobId;
|
|
735
751
|
} & RoleBindingsOuter;
|
|
736
752
|
export type ExecutionId =
|
|
737
753
|
string;
|
|
754
|
+
export type JobId =
|
|
755
|
+
string;
|
|
738
756
|
export type ResourceId =
|
|
739
757
|
string;
|
|
740
758
|
export type WorkStepId =
|
|
@@ -1077,6 +1077,7 @@
|
|
|
1077
1077
|
"properties": {
|
|
1078
1078
|
"kind": {
|
|
1079
1079
|
"enum": [
|
|
1080
|
+
"missing",
|
|
1080
1081
|
"potential-input",
|
|
1081
1082
|
"potential-output",
|
|
1082
1083
|
"materialized"
|
|
@@ -1086,6 +1087,46 @@
|
|
|
1086
1087
|
}
|
|
1087
1088
|
}
|
|
1088
1089
|
},
|
|
1090
|
+
"ResourceMissing": {
|
|
1091
|
+
"identity": "RESOURCE-ResourceMissing",
|
|
1092
|
+
"resourceTypeId": "TYPE-ResourceType",
|
|
1093
|
+
"creationContext": {
|
|
1094
|
+
"resourceRoleId": "ROLE-Genesis",
|
|
1095
|
+
"executionId": "EXECUTION-ResourceMissing"
|
|
1096
|
+
},
|
|
1097
|
+
"kind": "materialized",
|
|
1098
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
1099
|
+
"extractedData": {
|
|
1100
|
+
"identity": "TYPE-ResourceMissing",
|
|
1101
|
+
"name": "ResourceMissing",
|
|
1102
|
+
"description": "dummy-description",
|
|
1103
|
+
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
1104
|
+
"extractionSchema": {
|
|
1105
|
+
"$anchor": "ResourceMissing",
|
|
1106
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1107
|
+
"type": "object",
|
|
1108
|
+
"allOf": [
|
|
1109
|
+
{
|
|
1110
|
+
"$ref": "#/$defs/ResourceBase"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"$ref": "#/$defs/ResourceKind"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"required": [
|
|
1117
|
+
"kind"
|
|
1118
|
+
],
|
|
1119
|
+
"properties": {
|
|
1120
|
+
"kind": {
|
|
1121
|
+
"const": "missing"
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
"unevaluatedProperties": false
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1089
1130
|
"PendingRef": {
|
|
1090
1131
|
"identity": "RESOURCE-PendingRef",
|
|
1091
1132
|
"resourceTypeId": "TYPE-ResourceType",
|
|
@@ -1465,7 +1506,7 @@
|
|
|
1465
1506
|
"$ref": "#/$defs/ExecutionId"
|
|
1466
1507
|
},
|
|
1467
1508
|
"jobId": {
|
|
1468
|
-
"$ref": "#/$defs/
|
|
1509
|
+
"$ref": "#/$defs/JobId"
|
|
1469
1510
|
}
|
|
1470
1511
|
}
|
|
1471
1512
|
},
|
|
@@ -1873,7 +1914,7 @@
|
|
|
1873
1914
|
"$anchor": "StatelessStrategyId",
|
|
1874
1915
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1875
1916
|
"type": "string",
|
|
1876
|
-
"pattern": "^
|
|
1917
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
1877
1918
|
}
|
|
1878
1919
|
}
|
|
1879
1920
|
},
|
|
@@ -1948,6 +1989,9 @@
|
|
|
1948
1989
|
},
|
|
1949
1990
|
"additionalProperties": {
|
|
1950
1991
|
"oneOf": [
|
|
1992
|
+
{
|
|
1993
|
+
"$ref": "#/$defs/ResourceMissing"
|
|
1994
|
+
},
|
|
1951
1995
|
{
|
|
1952
1996
|
"$ref": "#/$defs/ResourcePotentialInput"
|
|
1953
1997
|
},
|
|
@@ -2010,7 +2054,7 @@
|
|
|
2010
2054
|
"$anchor": "StatefulStrategyId",
|
|
2011
2055
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2012
2056
|
"type": "string",
|
|
2013
|
-
"pattern": "^
|
|
2057
|
+
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
2014
2058
|
}
|
|
2015
2059
|
}
|
|
2016
2060
|
},
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"$ref": "#/$defs/ExecutionId"
|
|
114
114
|
},
|
|
115
115
|
"jobId": {
|
|
116
|
-
"$ref": "#/$defs/
|
|
116
|
+
"$ref": "#/$defs/JobId"
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
"required": [
|
|
@@ -619,6 +619,7 @@
|
|
|
619
619
|
"properties": {
|
|
620
620
|
"kind": {
|
|
621
621
|
"enum": [
|
|
622
|
+
"missing",
|
|
622
623
|
"potential-input",
|
|
623
624
|
"potential-output",
|
|
624
625
|
"materialized"
|
|
@@ -666,6 +667,30 @@
|
|
|
666
667
|
],
|
|
667
668
|
"$anchor": "ResourceMetaBase"
|
|
668
669
|
},
|
|
670
|
+
"ResourceMissing": {
|
|
671
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
672
|
+
"type": "object",
|
|
673
|
+
"allOf": [
|
|
674
|
+
{
|
|
675
|
+
"$ref": "#/$defs/ResourceBase"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"$ref": "#/$defs/ResourceKind"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"properties": {
|
|
682
|
+
"kind": {
|
|
683
|
+
"const": "missing"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"required": [
|
|
687
|
+
"kind"
|
|
688
|
+
]
|
|
689
|
+
}
|
|
690
|
+
],
|
|
691
|
+
"unevaluatedProperties": false,
|
|
692
|
+
"$anchor": "ResourceMissing"
|
|
693
|
+
},
|
|
669
694
|
"ResourcePotentialInput": {
|
|
670
695
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
671
696
|
"type": "object",
|
|
@@ -935,7 +960,7 @@
|
|
|
935
960
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
936
961
|
"type": "string",
|
|
937
962
|
"$anchor": "StatefulStrategyId",
|
|
938
|
-
"pattern": "^
|
|
963
|
+
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
939
964
|
},
|
|
940
965
|
"StatelessStrategy": {
|
|
941
966
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -968,7 +993,7 @@
|
|
|
968
993
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
969
994
|
"type": "string",
|
|
970
995
|
"$anchor": "StatelessStrategyId",
|
|
971
|
-
"pattern": "^
|
|
996
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
972
997
|
},
|
|
973
998
|
"Step": {
|
|
974
999
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -1029,6 +1054,9 @@
|
|
|
1029
1054
|
"type": "object",
|
|
1030
1055
|
"additionalProperties": {
|
|
1031
1056
|
"oneOf": [
|
|
1057
|
+
{
|
|
1058
|
+
"$ref": "#/$defs/ResourceMissing"
|
|
1059
|
+
},
|
|
1032
1060
|
{
|
|
1033
1061
|
"$ref": "#/$defs/ResourcePotentialInput"
|
|
1034
1062
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
27
27
|
"type": "string",
|
|
28
28
|
"$anchor": "StatefulStrategyId",
|
|
29
|
-
"pattern": "^
|
|
29
|
+
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
30
30
|
},
|
|
31
31
|
"StatelessStrategy": {
|
|
32
32
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
73
73
|
"type": "string",
|
|
74
74
|
"$anchor": "StatelessStrategyId",
|
|
75
|
-
"pattern": "^
|
|
75
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
76
76
|
},
|
|
77
77
|
"Step": {
|
|
78
78
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -101,6 +101,9 @@
|
|
|
101
101
|
"type": "object",
|
|
102
102
|
"additionalProperties": {
|
|
103
103
|
"oneOf": [
|
|
104
|
+
{
|
|
105
|
+
"$ref": "#/$defs/ResourceMissing"
|
|
106
|
+
},
|
|
104
107
|
{
|
|
105
108
|
"$ref": "#/$defs/ResourcePotentialInput"
|
|
106
109
|
},
|
|
@@ -242,6 +245,30 @@
|
|
|
242
245
|
],
|
|
243
246
|
"$anchor": "ForStep"
|
|
244
247
|
},
|
|
248
|
+
"ResourceMissing": {
|
|
249
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
250
|
+
"type": "object",
|
|
251
|
+
"allOf": [
|
|
252
|
+
{
|
|
253
|
+
"$ref": "#/$defs/ResourceBase"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"$ref": "#/$defs/ResourceKind"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"properties": {
|
|
260
|
+
"kind": {
|
|
261
|
+
"const": "missing"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"required": [
|
|
265
|
+
"kind"
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"unevaluatedProperties": false,
|
|
270
|
+
"$anchor": "ResourceMissing"
|
|
271
|
+
},
|
|
245
272
|
"ResourcePotentialInput": {
|
|
246
273
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
247
274
|
"type": "object",
|
|
@@ -360,7 +387,7 @@
|
|
|
360
387
|
"$ref": "#/$defs/ExecutionId"
|
|
361
388
|
},
|
|
362
389
|
"jobId": {
|
|
363
|
-
"$ref": "#/$defs/
|
|
390
|
+
"$ref": "#/$defs/JobId"
|
|
364
391
|
}
|
|
365
392
|
},
|
|
366
393
|
"required": [
|
|
@@ -447,6 +474,7 @@
|
|
|
447
474
|
"properties": {
|
|
448
475
|
"kind": {
|
|
449
476
|
"enum": [
|
|
477
|
+
"missing",
|
|
450
478
|
"potential-input",
|
|
451
479
|
"potential-output",
|
|
452
480
|
"materialized"
|
|
@@ -531,12 +559,12 @@
|
|
|
531
559
|
],
|
|
532
560
|
"$anchor": "JsonValue"
|
|
533
561
|
},
|
|
534
|
-
"
|
|
562
|
+
"JobId": {
|
|
535
563
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
536
564
|
"type": "string",
|
|
537
|
-
"$anchor": "
|
|
565
|
+
"$anchor": "JobId",
|
|
538
566
|
"$comment": "",
|
|
539
|
-
"pattern": "^
|
|
567
|
+
"pattern": "^JOB-.+$"
|
|
540
568
|
},
|
|
541
569
|
"RoleBindingsOuter": {
|
|
542
570
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -551,6 +579,13 @@
|
|
|
551
579
|
],
|
|
552
580
|
"$anchor": "RoleBindingsOuter"
|
|
553
581
|
},
|
|
582
|
+
"ResourceId": {
|
|
583
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
584
|
+
"type": "string",
|
|
585
|
+
"$anchor": "ResourceId",
|
|
586
|
+
"$comment": "",
|
|
587
|
+
"pattern": "^RESOURCE-.+$"
|
|
588
|
+
},
|
|
554
589
|
"ResourceTypeId": {
|
|
555
590
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
556
591
|
"type": "string",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
30
30
|
"type": "string",
|
|
31
31
|
"$anchor": "StatelessStrategyId",
|
|
32
|
-
"pattern": "^
|
|
32
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
33
33
|
},
|
|
34
34
|
"Step": {
|
|
35
35
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"$ref": "#/$defs/ExecutionId"
|
|
203
203
|
},
|
|
204
204
|
"jobId": {
|
|
205
|
-
"$ref": "#/$defs/
|
|
205
|
+
"$ref": "#/$defs/JobId"
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
"required": [
|
|
@@ -265,12 +265,12 @@
|
|
|
265
265
|
"$anchor": "ExecutionId",
|
|
266
266
|
"pattern": "^EXECUTION-.+$"
|
|
267
267
|
},
|
|
268
|
-
"
|
|
268
|
+
"JobId": {
|
|
269
269
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
270
270
|
"type": "string",
|
|
271
|
-
"$anchor": "
|
|
271
|
+
"$anchor": "JobId",
|
|
272
272
|
"$comment": "",
|
|
273
|
-
"pattern": "^
|
|
273
|
+
"pattern": "^JOB-.+$"
|
|
274
274
|
},
|
|
275
275
|
"RoleBindingsOuter": {
|
|
276
276
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -314,6 +314,13 @@
|
|
|
314
314
|
"$ref": "#/$defs/ResourceRoleId"
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
+
"ResourceId": {
|
|
318
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
319
|
+
"type": "string",
|
|
320
|
+
"$anchor": "ResourceId",
|
|
321
|
+
"$comment": "",
|
|
322
|
+
"pattern": "^RESOURCE-.+$"
|
|
323
|
+
},
|
|
317
324
|
"ResourceRoleId": {
|
|
318
325
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
319
326
|
"type": "string",
|
|
@@ -786,6 +786,7 @@
|
|
|
786
786
|
"properties": {
|
|
787
787
|
"kind": {
|
|
788
788
|
"enum": [
|
|
789
|
+
"missing",
|
|
789
790
|
"potential-input",
|
|
790
791
|
"potential-output",
|
|
791
792
|
"materialized"
|
|
@@ -794,6 +795,36 @@
|
|
|
794
795
|
}
|
|
795
796
|
}
|
|
796
797
|
},
|
|
798
|
+
"ResourceMissing": {
|
|
799
|
+
"identity": "TYPE-ResourceMissing",
|
|
800
|
+
"name": "ResourceMissing",
|
|
801
|
+
"description": "dummy-description",
|
|
802
|
+
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
803
|
+
"extractionSchema": {
|
|
804
|
+
"$anchor": "ResourceMissing",
|
|
805
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
806
|
+
"type": "object",
|
|
807
|
+
"allOf": [
|
|
808
|
+
{
|
|
809
|
+
"$ref": "#ResourceBase"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"$ref": "#ResourceKind"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"required": [
|
|
816
|
+
"kind"
|
|
817
|
+
],
|
|
818
|
+
"properties": {
|
|
819
|
+
"kind": {
|
|
820
|
+
"const": "missing"
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
],
|
|
825
|
+
"unevaluatedProperties": false
|
|
826
|
+
}
|
|
827
|
+
},
|
|
797
828
|
"PendingRef": {
|
|
798
829
|
"identity": "TYPE-PendingRef",
|
|
799
830
|
"name": "PendingRef",
|
|
@@ -1064,7 +1095,7 @@
|
|
|
1064
1095
|
"$ref": "#ExecutionId"
|
|
1065
1096
|
},
|
|
1066
1097
|
"jobId": {
|
|
1067
|
-
"$ref": "#
|
|
1098
|
+
"$ref": "#JobId"
|
|
1068
1099
|
}
|
|
1069
1100
|
}
|
|
1070
1101
|
},
|
|
@@ -1352,7 +1383,7 @@
|
|
|
1352
1383
|
"$anchor": "StatelessStrategyId",
|
|
1353
1384
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1354
1385
|
"type": "string",
|
|
1355
|
-
"pattern": "^
|
|
1386
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
1356
1387
|
}
|
|
1357
1388
|
},
|
|
1358
1389
|
"StatelessStrategy": {
|
|
@@ -1407,6 +1438,9 @@
|
|
|
1407
1438
|
},
|
|
1408
1439
|
"additionalProperties": {
|
|
1409
1440
|
"oneOf": [
|
|
1441
|
+
{
|
|
1442
|
+
"$ref": "#ResourceMissing"
|
|
1443
|
+
},
|
|
1410
1444
|
{
|
|
1411
1445
|
"$ref": "#ResourcePotentialInput"
|
|
1412
1446
|
},
|
|
@@ -1449,7 +1483,7 @@
|
|
|
1449
1483
|
"$anchor": "StatefulStrategyId",
|
|
1450
1484
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1451
1485
|
"type": "string",
|
|
1452
|
-
"pattern": "^
|
|
1486
|
+
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
1453
1487
|
}
|
|
1454
1488
|
},
|
|
1455
1489
|
"StatefulStrategy": {
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export type { Resource_ResourceFormat as Resource_ResourceFormatJson } from './_
|
|
|
5
5
|
export type { Resource_ResourceType as Resource_ResourceTypeJson } from './_lib/types/Resource_ResourceType.js';
|
|
6
6
|
export type { Resource_Job as Resource_JobJson } from './_lib/types/Resource_Job.js';
|
|
7
7
|
export type { Documented as DocumentedJson, ResourceFormatId as ResourceFormatIdJson, ResourceFormat as ResourceFormatJson, ExtractionSchema as ExtractionSchemaJson, ExtractionSchemaValue as ExtractionSchemaValueJson, IdentityProp as IdentityPropJson, MeritProp as MeritPropJson, ResourceTypeId as ResourceTypeIdJson, ResourceType as ResourceTypeJson, ResourceRoleId as ResourceRoleIdJson, ResourceRoleValue as ResourceRoleValueJson, ExecutionId as ExecutionIdJson, Execution as ExecutionJson, ConditionalWrapper as ConditionalWrapperJson, RoleMap as RoleMapJson, RolesOuter as RolesOuterJson, RoleBindingMap as RoleBindingMapJson, RoleBindingsOuter as RoleBindingsOuterJson, ResourceId as ResourceIdJson, WorkStepId as WorkStepIdJson, BranchStepId as BranchStepIdJson, WhileStepId as WhileStepIdJson, ForStepId as ForStepIdJson, WorkStep as WorkStepJson, BranchStep as BranchStepJson, WhileStep as WhileStepJson, ForStep as ForStepJson, Step as StepJson, ResourceSocket as ResourceSocketJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
|
|
8
|
-
Resource as ResourceJson, StrategyState as StrategyStateJson, StrategyStateValue as StrategyStateValueJson,
|
|
8
|
+
Resource as ResourceJson, StrategyState as StrategyStateJson, StrategyStateValue as StrategyStateValueJson, StatelessStrategyId as StatelessStrategyIdJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyId as StatefulStrategyIdJson, StatefulStrategy as StatefulStrategyJson, Job as JobJson, JsonValue as JsonValueJson, } from './_lib/types/types.js';
|
|
9
9
|
export { unsafeBrand, asResourceTypeId, asResourceRoleId, asExecutionId, asResourceId, asWorkStepId, asBranchStepId, asForStepId, asResourceFormatId, asWhileStepId, asStatelessStrategyId, asStatefulStrategyId, asResourceTypeIds, asResourceRoleIds, asExecutionIds, asResourceIds, asWorkStepIds, asBranchStepIds, asForStepIds, asResourceFormatIds, asWhileStepIds, asStatelessStrategyIds, asStatefulStrategyIds, } from './scripts/brandFactories.js';
|