@toolproof-npm/schema 0.1.41 → 0.1.43
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 +4 -3
- package/dist/_lib/types/Resource_ResourceFormat.d.ts +4 -3
- package/dist/_lib/types/Resource_ResourceType.d.ts +4 -3
- package/dist/_lib/types/Resource_StatelessStrategy.d.ts +4 -3
- package/dist/_lib/types/types.d.ts +19 -30
- package/dist/genesis/generated/resources/Genesis.json +16 -43
- package/dist/genesis/generated/schemas/Genesis.json +27 -38
- package/dist/genesis/generated/schemas/StatefulStrategy.json +16 -27
- package/dist/genesis/resourceTypes/Genesis.json +14 -31
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export type Resource_Job = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: Job;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
+
CreationContext &
|
|
6
7
|
ResourceKind & {
|
|
7
8
|
kind: "materialized";
|
|
8
9
|
} & Timestamp &
|
|
@@ -10,7 +11,7 @@ export type ResourceMetaBase = ResourceBase &
|
|
|
10
11
|
export type ResourceBase = {
|
|
11
12
|
identity: string;
|
|
12
13
|
resourceTypeId: string;
|
|
13
|
-
}
|
|
14
|
+
};
|
|
14
15
|
export type Job = {
|
|
15
16
|
identity: string;
|
|
16
17
|
implementation: string;
|
|
@@ -22,9 +23,9 @@ export type ResourceRoleValue = {
|
|
|
22
23
|
} & Documented;
|
|
23
24
|
|
|
24
25
|
export interface CreationContext {
|
|
25
|
-
creationContext:
|
|
26
|
+
creationContext: CreationContextValue;
|
|
26
27
|
}
|
|
27
|
-
export interface
|
|
28
|
+
export interface CreationContextValue {
|
|
28
29
|
executionId: string;
|
|
29
30
|
resourceRoleId: string;
|
|
30
31
|
}
|
|
@@ -3,6 +3,7 @@ export type Resource_ResourceFormat = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: ResourceFormat;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
+
CreationContext &
|
|
6
7
|
ResourceKind & {
|
|
7
8
|
kind: "materialized";
|
|
8
9
|
} & Timestamp &
|
|
@@ -10,16 +11,16 @@ export type ResourceMetaBase = ResourceBase &
|
|
|
10
11
|
export type ResourceBase = {
|
|
11
12
|
identity: string;
|
|
12
13
|
resourceTypeId: string;
|
|
13
|
-
}
|
|
14
|
+
};
|
|
14
15
|
export type ResourceFormat = {
|
|
15
16
|
identity: string;
|
|
16
17
|
} & Documented;
|
|
17
18
|
export type Documented = Name & Description;
|
|
18
19
|
|
|
19
20
|
export interface CreationContext {
|
|
20
|
-
creationContext:
|
|
21
|
+
creationContext: CreationContextValue;
|
|
21
22
|
}
|
|
22
|
-
export interface
|
|
23
|
+
export interface CreationContextValue {
|
|
23
24
|
executionId: string;
|
|
24
25
|
resourceRoleId: string;
|
|
25
26
|
}
|
|
@@ -3,6 +3,7 @@ export type Resource_ResourceType = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: ResourceType;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
+
CreationContext &
|
|
6
7
|
ResourceKind & {
|
|
7
8
|
kind: "materialized";
|
|
8
9
|
} & Timestamp &
|
|
@@ -10,7 +11,7 @@ export type ResourceMetaBase = ResourceBase &
|
|
|
10
11
|
export type ResourceBase = {
|
|
11
12
|
identity: string;
|
|
12
13
|
resourceTypeId: string;
|
|
13
|
-
}
|
|
14
|
+
};
|
|
14
15
|
export type ResourceType = {
|
|
15
16
|
identity: string;
|
|
16
17
|
resourceFormatId: string;
|
|
@@ -35,9 +36,9 @@ export type ExtractionSchemaValue = {
|
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
export interface CreationContext {
|
|
38
|
-
creationContext:
|
|
39
|
+
creationContext: CreationContextValue;
|
|
39
40
|
}
|
|
40
|
-
export interface
|
|
41
|
+
export interface CreationContextValue {
|
|
41
42
|
executionId: string;
|
|
42
43
|
resourceRoleId: string;
|
|
43
44
|
}
|
|
@@ -3,6 +3,7 @@ export type Resource_StatelessStrategy = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: StatelessStrategy;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
+
CreationContext &
|
|
6
7
|
ResourceKind & {
|
|
7
8
|
kind: "materialized";
|
|
8
9
|
} & Timestamp &
|
|
@@ -10,7 +11,7 @@ export type ResourceMetaBase = ResourceBase &
|
|
|
10
11
|
export type ResourceBase = {
|
|
11
12
|
identity: string;
|
|
12
13
|
resourceTypeId: string;
|
|
13
|
-
}
|
|
14
|
+
};
|
|
14
15
|
export type StatelessStrategy = {
|
|
15
16
|
identity: string;
|
|
16
17
|
steps: Step[];
|
|
@@ -45,9 +46,9 @@ export type ForStep = StepKind & {
|
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
export interface CreationContext {
|
|
48
|
-
creationContext:
|
|
49
|
+
creationContext: CreationContextValue;
|
|
49
50
|
}
|
|
50
|
-
export interface
|
|
51
|
+
export interface CreationContextValue {
|
|
51
52
|
executionId: string;
|
|
52
53
|
resourceRoleId: string;
|
|
53
54
|
}
|
|
@@ -173,6 +173,7 @@ export type Resource =
|
|
|
173
173
|
*/
|
|
174
174
|
export type ResourceMetaBase =
|
|
175
175
|
ResourceBase &
|
|
176
|
+
CreationContext &
|
|
176
177
|
ResourceKind & {
|
|
177
178
|
kind: "materialized";
|
|
178
179
|
} & Timestamp &
|
|
@@ -185,7 +186,7 @@ export type ResourceBase =
|
|
|
185
186
|
{
|
|
186
187
|
identity: ResourceId;
|
|
187
188
|
resourceTypeId: ResourceTypeId;
|
|
188
|
-
}
|
|
189
|
+
};
|
|
189
190
|
/**
|
|
190
191
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
191
192
|
* via the `definition` "ResourceFormat".
|
|
@@ -206,6 +207,7 @@ export type ResourceFormatId =
|
|
|
206
207
|
*/
|
|
207
208
|
export type ResourceMetaBase1 =
|
|
208
209
|
ResourceBase &
|
|
210
|
+
CreationContext &
|
|
209
211
|
ResourceKind & {
|
|
210
212
|
kind: "materialized";
|
|
211
213
|
} & Timestamp &
|
|
@@ -225,15 +227,17 @@ export type ResourceMissing =
|
|
|
225
227
|
*/
|
|
226
228
|
export type ResourcePotentialInput =
|
|
227
229
|
ResourceBase &
|
|
230
|
+
CreationContext &
|
|
228
231
|
ResourceKind & {
|
|
229
232
|
kind: "potential-input";
|
|
230
|
-
}
|
|
233
|
+
};
|
|
231
234
|
/**
|
|
232
235
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
233
236
|
* via the `definition` "ResourcePotentialOutput".
|
|
234
237
|
*/
|
|
235
238
|
export type ResourcePotentialOutput =
|
|
236
239
|
ResourceBase &
|
|
240
|
+
CreationContext &
|
|
237
241
|
ResourceKind & {
|
|
238
242
|
kind: "potential-output";
|
|
239
243
|
};
|
|
@@ -339,13 +343,13 @@ export type RoleBindingMap = Record<ResourceRoleId, ResourceId>;
|
|
|
339
343
|
* via the `definition` "CreationContext".
|
|
340
344
|
*/
|
|
341
345
|
export interface CreationContext {
|
|
342
|
-
creationContext:
|
|
346
|
+
creationContext: CreationContextValue;
|
|
343
347
|
}
|
|
344
348
|
/**
|
|
345
349
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
346
|
-
* via the `definition` "
|
|
350
|
+
* via the `definition` "CreationContextValue".
|
|
347
351
|
*/
|
|
348
|
-
export interface
|
|
352
|
+
export interface CreationContextValue {
|
|
349
353
|
executionId: ExecutionId;
|
|
350
354
|
resourceRoleId: ResourceRoleId;
|
|
351
355
|
}
|
|
@@ -438,17 +442,6 @@ export interface MeritProp {
|
|
|
438
442
|
export interface Path {
|
|
439
443
|
path: string;
|
|
440
444
|
}
|
|
441
|
-
/**
|
|
442
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
443
|
-
* via the `definition` "PendingRef".
|
|
444
|
-
*/
|
|
445
|
-
export interface PendingRef {
|
|
446
|
-
pendingRef: ResourceSocket1;
|
|
447
|
-
}
|
|
448
|
-
export interface ResourceSocket1 {
|
|
449
|
-
executionId: ExecutionId;
|
|
450
|
-
resourceRoleId: ResourceRoleId;
|
|
451
|
-
}
|
|
452
445
|
/**
|
|
453
446
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
454
447
|
* via the `definition` "ResourceKind".
|
|
@@ -645,18 +638,20 @@ export type ResourceBase =
|
|
|
645
638
|
{
|
|
646
639
|
identity: ResourceId;
|
|
647
640
|
resourceTypeId: ResourceTypeId;
|
|
648
|
-
}
|
|
641
|
+
};
|
|
649
642
|
export type ResourceTypeId =
|
|
650
643
|
string;
|
|
651
|
-
export type ResourceRoleId =
|
|
652
|
-
string;
|
|
653
644
|
export type ResourcePotentialInput =
|
|
654
645
|
ResourceBase &
|
|
646
|
+
CreationContext &
|
|
655
647
|
ResourceKind & {
|
|
656
648
|
kind: "potential-input";
|
|
657
|
-
}
|
|
649
|
+
};
|
|
650
|
+
export type ResourceRoleId =
|
|
651
|
+
string;
|
|
658
652
|
export type ResourcePotentialOutput =
|
|
659
653
|
ResourceBase &
|
|
654
|
+
CreationContext &
|
|
660
655
|
ResourceKind & {
|
|
661
656
|
kind: "potential-output";
|
|
662
657
|
};
|
|
@@ -668,6 +663,7 @@ export type Resource =
|
|
|
668
663
|
};
|
|
669
664
|
export type ResourceMetaBase =
|
|
670
665
|
ResourceBase &
|
|
666
|
+
CreationContext &
|
|
671
667
|
ResourceKind & {
|
|
672
668
|
kind: "materialized";
|
|
673
669
|
} & Timestamp &
|
|
@@ -705,20 +701,13 @@ export interface StrategyStateValue {
|
|
|
705
701
|
[k: string]: ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
706
702
|
};
|
|
707
703
|
}
|
|
708
|
-
export interface CreationContext {
|
|
709
|
-
creationContext: ResourceSocket;
|
|
710
|
-
}
|
|
711
|
-
export interface ResourceSocket {
|
|
712
|
-
executionId: ExecutionId;
|
|
713
|
-
resourceRoleId: ResourceRoleId;
|
|
714
|
-
}
|
|
715
704
|
export interface ResourceKind {
|
|
716
705
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
717
706
|
}
|
|
718
|
-
export interface
|
|
719
|
-
|
|
707
|
+
export interface CreationContext {
|
|
708
|
+
creationContext: CreationContextValue;
|
|
720
709
|
}
|
|
721
|
-
export interface
|
|
710
|
+
export interface CreationContextValue {
|
|
722
711
|
executionId: ExecutionId;
|
|
723
712
|
resourceRoleId: ResourceRoleId;
|
|
724
713
|
}
|
|
@@ -951,22 +951,22 @@
|
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
|
-
"
|
|
955
|
-
"identity": "RESOURCE-
|
|
954
|
+
"CreationContextValue": {
|
|
955
|
+
"identity": "RESOURCE-CreationContextValue",
|
|
956
956
|
"resourceTypeId": "TYPE-ResourceType",
|
|
957
957
|
"creationContext": {
|
|
958
958
|
"resourceRoleId": "ROLE-Genesis",
|
|
959
|
-
"executionId": "EXECUTION-
|
|
959
|
+
"executionId": "EXECUTION-CreationContextValue"
|
|
960
960
|
},
|
|
961
961
|
"kind": "materialized",
|
|
962
962
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
963
963
|
"extractedData": {
|
|
964
|
-
"identity": "TYPE-
|
|
965
|
-
"name": "
|
|
964
|
+
"identity": "TYPE-CreationContextValue",
|
|
965
|
+
"name": "CreationContextValue",
|
|
966
966
|
"description": "dummy-description",
|
|
967
967
|
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
968
968
|
"extractionSchema": {
|
|
969
|
-
"$anchor": "
|
|
969
|
+
"$anchor": "CreationContextValue",
|
|
970
970
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
971
971
|
"type": "object",
|
|
972
972
|
"required": [
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
],
|
|
1008
1008
|
"properties": {
|
|
1009
1009
|
"creationContext": {
|
|
1010
|
-
"$ref": "#/$defs/
|
|
1010
|
+
"$ref": "#/$defs/CreationContextValue"
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
@@ -1045,9 +1045,6 @@
|
|
|
1045
1045
|
"$ref": "#/$defs/ResourceTypeId"
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"$ref": "#/$defs/CreationContext"
|
|
1051
1048
|
}
|
|
1052
1049
|
]
|
|
1053
1050
|
}
|
|
@@ -1127,36 +1124,6 @@
|
|
|
1127
1124
|
}
|
|
1128
1125
|
}
|
|
1129
1126
|
},
|
|
1130
|
-
"PendingRef": {
|
|
1131
|
-
"identity": "RESOURCE-PendingRef",
|
|
1132
|
-
"resourceTypeId": "TYPE-ResourceType",
|
|
1133
|
-
"creationContext": {
|
|
1134
|
-
"resourceRoleId": "ROLE-Genesis",
|
|
1135
|
-
"executionId": "EXECUTION-PendingRef"
|
|
1136
|
-
},
|
|
1137
|
-
"kind": "materialized",
|
|
1138
|
-
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
1139
|
-
"extractedData": {
|
|
1140
|
-
"identity": "TYPE-PendingRef",
|
|
1141
|
-
"name": "PendingRef",
|
|
1142
|
-
"description": "dummy-description",
|
|
1143
|
-
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
1144
|
-
"extractionSchema": {
|
|
1145
|
-
"$anchor": "PendingRef",
|
|
1146
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1147
|
-
"type": "object",
|
|
1148
|
-
"required": [
|
|
1149
|
-
"pendingRef"
|
|
1150
|
-
],
|
|
1151
|
-
"properties": {
|
|
1152
|
-
"pendingRef": {
|
|
1153
|
-
"$comment": "This points to a resource created at a previous step in the same execution. This resource is not yet materialized at the time of defining the execution, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
|
|
1154
|
-
"$ref": "#/$defs/ResourceSocket"
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
1127
|
"ResourcePotentialInput": {
|
|
1161
1128
|
"identity": "RESOURCE-ResourcePotentialInput",
|
|
1162
1129
|
"resourceTypeId": "TYPE-ResourceType",
|
|
@@ -1179,6 +1146,9 @@
|
|
|
1179
1146
|
{
|
|
1180
1147
|
"$ref": "#/$defs/ResourceBase"
|
|
1181
1148
|
},
|
|
1149
|
+
{
|
|
1150
|
+
"$ref": "#/$defs/CreationContext"
|
|
1151
|
+
},
|
|
1182
1152
|
{
|
|
1183
1153
|
"$ref": "#/$defs/ResourceKind"
|
|
1184
1154
|
},
|
|
@@ -1191,9 +1161,6 @@
|
|
|
1191
1161
|
"const": "potential-input"
|
|
1192
1162
|
}
|
|
1193
1163
|
}
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"$ref": "#/$defs/PendingRef"
|
|
1197
1164
|
}
|
|
1198
1165
|
],
|
|
1199
1166
|
"unevaluatedProperties": false
|
|
@@ -1222,6 +1189,9 @@
|
|
|
1222
1189
|
{
|
|
1223
1190
|
"$ref": "#/$defs/ResourceBase"
|
|
1224
1191
|
},
|
|
1192
|
+
{
|
|
1193
|
+
"$ref": "#/$defs/CreationContext"
|
|
1194
|
+
},
|
|
1225
1195
|
{
|
|
1226
1196
|
"$ref": "#/$defs/ResourceKind"
|
|
1227
1197
|
},
|
|
@@ -1321,6 +1291,9 @@
|
|
|
1321
1291
|
{
|
|
1322
1292
|
"$ref": "#/$defs/ResourceBase"
|
|
1323
1293
|
},
|
|
1294
|
+
{
|
|
1295
|
+
"$ref": "#/$defs/CreationContext"
|
|
1296
|
+
},
|
|
1324
1297
|
{
|
|
1325
1298
|
"$ref": "#/$defs/ResourceKind"
|
|
1326
1299
|
},
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"type": "object",
|
|
66
66
|
"properties": {
|
|
67
67
|
"creationContext": {
|
|
68
|
-
"$ref": "#/$defs/
|
|
68
|
+
"$ref": "#/$defs/CreationContextValue"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"required": [
|
|
@@ -73,6 +73,23 @@
|
|
|
73
73
|
],
|
|
74
74
|
"$anchor": "CreationContext"
|
|
75
75
|
},
|
|
76
|
+
"CreationContextValue": {
|
|
77
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
78
|
+
"type": "object",
|
|
79
|
+
"properties": {
|
|
80
|
+
"executionId": {
|
|
81
|
+
"$ref": "#/$defs/ExecutionId"
|
|
82
|
+
},
|
|
83
|
+
"resourceRoleId": {
|
|
84
|
+
"$ref": "#/$defs/ResourceRoleId"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"resourceRoleId",
|
|
89
|
+
"executionId"
|
|
90
|
+
],
|
|
91
|
+
"$anchor": "CreationContextValue"
|
|
92
|
+
},
|
|
76
93
|
"Description": {
|
|
77
94
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
78
95
|
"type": "object",
|
|
@@ -517,20 +534,6 @@
|
|
|
517
534
|
],
|
|
518
535
|
"$anchor": "Path"
|
|
519
536
|
},
|
|
520
|
-
"PendingRef": {
|
|
521
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
522
|
-
"type": "object",
|
|
523
|
-
"properties": {
|
|
524
|
-
"pendingRef": {
|
|
525
|
-
"$comment": "This points to a resource created at a previous step in the same execution. This resource is not yet materialized at the time of defining the execution, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
|
|
526
|
-
"$ref": "#/$defs/ResourceSocket"
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
"required": [
|
|
530
|
-
"pendingRef"
|
|
531
|
-
],
|
|
532
|
-
"$anchor": "PendingRef"
|
|
533
|
-
},
|
|
534
537
|
"Resource": {
|
|
535
538
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
536
539
|
"type": "object",
|
|
@@ -573,9 +576,6 @@
|
|
|
573
576
|
"identity",
|
|
574
577
|
"resourceTypeId"
|
|
575
578
|
]
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"$ref": "#/$defs/CreationContext"
|
|
579
579
|
}
|
|
580
580
|
],
|
|
581
581
|
"$anchor": "ResourceBase"
|
|
@@ -645,6 +645,9 @@
|
|
|
645
645
|
{
|
|
646
646
|
"$ref": "#/$defs/ResourceBase"
|
|
647
647
|
},
|
|
648
|
+
{
|
|
649
|
+
"$ref": "#/$defs/CreationContext"
|
|
650
|
+
},
|
|
648
651
|
{
|
|
649
652
|
"$ref": "#/$defs/ResourceKind"
|
|
650
653
|
},
|
|
@@ -698,6 +701,9 @@
|
|
|
698
701
|
{
|
|
699
702
|
"$ref": "#/$defs/ResourceBase"
|
|
700
703
|
},
|
|
704
|
+
{
|
|
705
|
+
"$ref": "#/$defs/CreationContext"
|
|
706
|
+
},
|
|
701
707
|
{
|
|
702
708
|
"$ref": "#/$defs/ResourceKind"
|
|
703
709
|
},
|
|
@@ -710,9 +716,6 @@
|
|
|
710
716
|
"required": [
|
|
711
717
|
"kind"
|
|
712
718
|
]
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
"$ref": "#/$defs/PendingRef"
|
|
716
719
|
}
|
|
717
720
|
],
|
|
718
721
|
"unevaluatedProperties": false,
|
|
@@ -725,6 +728,9 @@
|
|
|
725
728
|
{
|
|
726
729
|
"$ref": "#/$defs/ResourceBase"
|
|
727
730
|
},
|
|
731
|
+
{
|
|
732
|
+
"$ref": "#/$defs/CreationContext"
|
|
733
|
+
},
|
|
728
734
|
{
|
|
729
735
|
"$ref": "#/$defs/ResourceKind"
|
|
730
736
|
},
|
|
@@ -769,23 +775,6 @@
|
|
|
769
775
|
],
|
|
770
776
|
"$anchor": "ResourceRoleValue"
|
|
771
777
|
},
|
|
772
|
-
"ResourceSocket": {
|
|
773
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
774
|
-
"type": "object",
|
|
775
|
-
"properties": {
|
|
776
|
-
"executionId": {
|
|
777
|
-
"$ref": "#/$defs/ExecutionId"
|
|
778
|
-
},
|
|
779
|
-
"resourceRoleId": {
|
|
780
|
-
"$ref": "#/$defs/ResourceRoleId"
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
"required": [
|
|
784
|
-
"resourceRoleId",
|
|
785
|
-
"executionId"
|
|
786
|
-
],
|
|
787
|
-
"$anchor": "ResourceSocket"
|
|
788
|
-
},
|
|
789
778
|
"ResourceType": {
|
|
790
779
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
791
780
|
"type": "object",
|
|
@@ -276,6 +276,9 @@
|
|
|
276
276
|
{
|
|
277
277
|
"$ref": "#/$defs/ResourceBase"
|
|
278
278
|
},
|
|
279
|
+
{
|
|
280
|
+
"$ref": "#/$defs/CreationContext"
|
|
281
|
+
},
|
|
279
282
|
{
|
|
280
283
|
"$ref": "#/$defs/ResourceKind"
|
|
281
284
|
},
|
|
@@ -288,9 +291,6 @@
|
|
|
288
291
|
"required": [
|
|
289
292
|
"kind"
|
|
290
293
|
]
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"$ref": "#/$defs/PendingRef"
|
|
294
294
|
}
|
|
295
295
|
],
|
|
296
296
|
"unevaluatedProperties": false,
|
|
@@ -303,6 +303,9 @@
|
|
|
303
303
|
{
|
|
304
304
|
"$ref": "#/$defs/ResourceBase"
|
|
305
305
|
},
|
|
306
|
+
{
|
|
307
|
+
"$ref": "#/$defs/CreationContext"
|
|
308
|
+
},
|
|
306
309
|
{
|
|
307
310
|
"$ref": "#/$defs/ResourceKind"
|
|
308
311
|
},
|
|
@@ -461,9 +464,6 @@
|
|
|
461
464
|
"identity",
|
|
462
465
|
"resourceTypeId"
|
|
463
466
|
]
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"$ref": "#/$defs/CreationContext"
|
|
467
467
|
}
|
|
468
468
|
],
|
|
469
469
|
"$anchor": "ResourceBase"
|
|
@@ -486,19 +486,18 @@
|
|
|
486
486
|
],
|
|
487
487
|
"$anchor": "ResourceKind"
|
|
488
488
|
},
|
|
489
|
-
"
|
|
489
|
+
"CreationContext": {
|
|
490
490
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
491
491
|
"type": "object",
|
|
492
492
|
"properties": {
|
|
493
|
-
"
|
|
494
|
-
"$
|
|
495
|
-
"$ref": "#/$defs/ResourceSocket"
|
|
493
|
+
"creationContext": {
|
|
494
|
+
"$ref": "#/$defs/CreationContextValue"
|
|
496
495
|
}
|
|
497
496
|
},
|
|
498
497
|
"required": [
|
|
499
|
-
"
|
|
498
|
+
"creationContext"
|
|
500
499
|
],
|
|
501
|
-
"$anchor": "
|
|
500
|
+
"$anchor": "CreationContext"
|
|
502
501
|
},
|
|
503
502
|
"ResourceMetaBase": {
|
|
504
503
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -507,6 +506,9 @@
|
|
|
507
506
|
{
|
|
508
507
|
"$ref": "#/$defs/ResourceBase"
|
|
509
508
|
},
|
|
509
|
+
{
|
|
510
|
+
"$ref": "#/$defs/CreationContext"
|
|
511
|
+
},
|
|
510
512
|
{
|
|
511
513
|
"$ref": "#/$defs/ResourceKind"
|
|
512
514
|
},
|
|
@@ -592,20 +594,7 @@
|
|
|
592
594
|
"$anchor": "ResourceTypeId",
|
|
593
595
|
"pattern": "^TYPE-.+$"
|
|
594
596
|
},
|
|
595
|
-
"
|
|
596
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
597
|
-
"type": "object",
|
|
598
|
-
"properties": {
|
|
599
|
-
"creationContext": {
|
|
600
|
-
"$ref": "#/$defs/ResourceSocket"
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
"required": [
|
|
604
|
-
"creationContext"
|
|
605
|
-
],
|
|
606
|
-
"$anchor": "CreationContext"
|
|
607
|
-
},
|
|
608
|
-
"ResourceSocket": {
|
|
597
|
+
"CreationContextValue": {
|
|
609
598
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
610
599
|
"type": "object",
|
|
611
600
|
"properties": {
|
|
@@ -620,7 +609,7 @@
|
|
|
620
609
|
"resourceRoleId",
|
|
621
610
|
"executionId"
|
|
622
611
|
],
|
|
623
|
-
"$anchor": "
|
|
612
|
+
"$anchor": "CreationContextValue"
|
|
624
613
|
},
|
|
625
614
|
"Timestamp": {
|
|
626
615
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -699,13 +699,13 @@
|
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
},
|
|
702
|
-
"
|
|
703
|
-
"identity": "TYPE-
|
|
704
|
-
"name": "
|
|
702
|
+
"CreationContextValue": {
|
|
703
|
+
"identity": "TYPE-CreationContextValue",
|
|
704
|
+
"name": "CreationContextValue",
|
|
705
705
|
"description": "dummy-description",
|
|
706
706
|
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
707
707
|
"extractionSchema": {
|
|
708
|
-
"$anchor": "
|
|
708
|
+
"$anchor": "CreationContextValue",
|
|
709
709
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
710
710
|
"type": "object",
|
|
711
711
|
"required": [
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
],
|
|
737
737
|
"properties": {
|
|
738
738
|
"creationContext": {
|
|
739
|
-
"$ref": "#
|
|
739
|
+
"$ref": "#CreationContextValue"
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
}
|
|
@@ -764,9 +764,6 @@
|
|
|
764
764
|
"$ref": "#ResourceTypeId"
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"$ref": "#CreationContext"
|
|
770
767
|
}
|
|
771
768
|
]
|
|
772
769
|
}
|
|
@@ -825,26 +822,6 @@
|
|
|
825
822
|
"unevaluatedProperties": false
|
|
826
823
|
}
|
|
827
824
|
},
|
|
828
|
-
"PendingRef": {
|
|
829
|
-
"identity": "TYPE-PendingRef",
|
|
830
|
-
"name": "PendingRef",
|
|
831
|
-
"description": "dummy-description",
|
|
832
|
-
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
833
|
-
"extractionSchema": {
|
|
834
|
-
"$anchor": "PendingRef",
|
|
835
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
836
|
-
"type": "object",
|
|
837
|
-
"required": [
|
|
838
|
-
"pendingRef"
|
|
839
|
-
],
|
|
840
|
-
"properties": {
|
|
841
|
-
"pendingRef": {
|
|
842
|
-
"$comment": "This points to a resource created at a previous step in the same execution. This resource is not yet materialized at the time of defining the execution, but will be materialized when the step using this resource is executed.The Engine resolves this ref at runtime.",
|
|
843
|
-
"$ref": "#ResourceSocket"
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
825
|
"ResourcePotentialInput": {
|
|
849
826
|
"identity": "TYPE-ResourcePotentialInput",
|
|
850
827
|
"name": "ResourcePotentialInput",
|
|
@@ -858,6 +835,9 @@
|
|
|
858
835
|
{
|
|
859
836
|
"$ref": "#ResourceBase"
|
|
860
837
|
},
|
|
838
|
+
{
|
|
839
|
+
"$ref": "#CreationContext"
|
|
840
|
+
},
|
|
861
841
|
{
|
|
862
842
|
"$ref": "#ResourceKind"
|
|
863
843
|
},
|
|
@@ -870,9 +850,6 @@
|
|
|
870
850
|
"const": "potential-input"
|
|
871
851
|
}
|
|
872
852
|
}
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"$ref": "#PendingRef"
|
|
876
853
|
}
|
|
877
854
|
],
|
|
878
855
|
"unevaluatedProperties": false
|
|
@@ -891,6 +868,9 @@
|
|
|
891
868
|
{
|
|
892
869
|
"$ref": "#ResourceBase"
|
|
893
870
|
},
|
|
871
|
+
{
|
|
872
|
+
"$ref": "#CreationContext"
|
|
873
|
+
},
|
|
894
874
|
{
|
|
895
875
|
"$ref": "#ResourceKind"
|
|
896
876
|
},
|
|
@@ -960,6 +940,9 @@
|
|
|
960
940
|
{
|
|
961
941
|
"$ref": "#ResourceBase"
|
|
962
942
|
},
|
|
943
|
+
{
|
|
944
|
+
"$ref": "#CreationContext"
|
|
945
|
+
},
|
|
963
946
|
{
|
|
964
947
|
"$ref": "#ResourceKind"
|
|
965
948
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export { default as JobSchema } from './genesis/generated/schemas/Job.js';
|
|
|
4
4
|
export type { Resource_ResourceFormat as Resource_ResourceFormatJson } from './_lib/types/Resource_ResourceFormat.js';
|
|
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
|
-
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,
|
|
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, CreationContextValue as CreationContextValueJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
|
|
8
8
|
Resource as ResourceJson, StrategyState as StrategyStateJson, StrategyStateValue as StrategyStateValueJson, StatelessStrategyId as StatelessStrategyIdJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyId as StatefulStrategyIdJson, StatefulStrategy as StatefulStrategyJson, JobId as JobIdJson, 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';
|