@toolproof-npm/schema 0.1.41 → 0.1.42
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 +6 -6
- package/dist/_lib/types/Resource_ResourceFormat.d.ts +6 -6
- package/dist/_lib/types/Resource_ResourceType.d.ts +6 -6
- package/dist/_lib/types/Resource_StatelessStrategy.d.ts +6 -6
- package/dist/_lib/types/types.d.ts +22 -39
- package/dist/genesis/generated/resources/Genesis.json +22 -70
- package/dist/genesis/generated/schemas/Genesis.json +22 -38
- package/dist/genesis/generated/schemas/StatefulStrategy.json +26 -42
- package/dist/genesis/resourceTypes/Genesis.json +22 -50
- 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,11 +23,10 @@ export type ResourceRoleValue = {
|
|
|
22
23
|
} & Documented;
|
|
23
24
|
|
|
24
25
|
export interface CreationContext {
|
|
25
|
-
creationContext:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
resourceRoleId: string;
|
|
26
|
+
creationContext: {
|
|
27
|
+
executionId: string;
|
|
28
|
+
resourceRoleId: string;
|
|
29
|
+
};
|
|
30
30
|
}
|
|
31
31
|
export interface ResourceKind {
|
|
32
32
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -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,18 +11,17 @@ 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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
resourceRoleId: string;
|
|
21
|
+
creationContext: {
|
|
22
|
+
executionId: string;
|
|
23
|
+
resourceRoleId: string;
|
|
24
|
+
};
|
|
25
25
|
}
|
|
26
26
|
export interface ResourceKind {
|
|
27
27
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -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,11 +36,10 @@ export type ExtractionSchemaValue = {
|
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
export interface CreationContext {
|
|
38
|
-
creationContext:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
resourceRoleId: string;
|
|
39
|
+
creationContext: {
|
|
40
|
+
executionId: string;
|
|
41
|
+
resourceRoleId: string;
|
|
42
|
+
};
|
|
43
43
|
}
|
|
44
44
|
export interface ResourceKind {
|
|
45
45
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -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,11 +46,10 @@ export type ForStep = StepKind & {
|
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
export interface CreationContext {
|
|
48
|
-
creationContext:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
resourceRoleId: string;
|
|
49
|
+
creationContext: {
|
|
50
|
+
executionId: string;
|
|
51
|
+
resourceRoleId: string;
|
|
52
|
+
};
|
|
53
53
|
}
|
|
54
54
|
export interface ResourceKind {
|
|
55
55
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -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,15 +343,10 @@ export type RoleBindingMap = Record<ResourceRoleId, ResourceId>;
|
|
|
339
343
|
* via the `definition` "CreationContext".
|
|
340
344
|
*/
|
|
341
345
|
export interface CreationContext {
|
|
342
|
-
creationContext:
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
* via the `definition` "ResourceSocket".
|
|
347
|
-
*/
|
|
348
|
-
export interface ResourceSocket {
|
|
349
|
-
executionId: ExecutionId;
|
|
350
|
-
resourceRoleId: ResourceRoleId;
|
|
346
|
+
creationContext: {
|
|
347
|
+
executionId: ExecutionId;
|
|
348
|
+
resourceRoleId: ResourceRoleId;
|
|
349
|
+
};
|
|
351
350
|
}
|
|
352
351
|
/**
|
|
353
352
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
@@ -438,17 +437,6 @@ export interface MeritProp {
|
|
|
438
437
|
export interface Path {
|
|
439
438
|
path: string;
|
|
440
439
|
}
|
|
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
440
|
/**
|
|
453
441
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
454
442
|
* via the `definition` "ResourceKind".
|
|
@@ -645,18 +633,20 @@ export type ResourceBase =
|
|
|
645
633
|
{
|
|
646
634
|
identity: ResourceId;
|
|
647
635
|
resourceTypeId: ResourceTypeId;
|
|
648
|
-
}
|
|
636
|
+
};
|
|
649
637
|
export type ResourceTypeId =
|
|
650
638
|
string;
|
|
651
|
-
export type ResourceRoleId =
|
|
652
|
-
string;
|
|
653
639
|
export type ResourcePotentialInput =
|
|
654
640
|
ResourceBase &
|
|
641
|
+
CreationContext &
|
|
655
642
|
ResourceKind & {
|
|
656
643
|
kind: "potential-input";
|
|
657
|
-
}
|
|
644
|
+
};
|
|
645
|
+
export type ResourceRoleId =
|
|
646
|
+
string;
|
|
658
647
|
export type ResourcePotentialOutput =
|
|
659
648
|
ResourceBase &
|
|
649
|
+
CreationContext &
|
|
660
650
|
ResourceKind & {
|
|
661
651
|
kind: "potential-output";
|
|
662
652
|
};
|
|
@@ -668,6 +658,7 @@ export type Resource =
|
|
|
668
658
|
};
|
|
669
659
|
export type ResourceMetaBase =
|
|
670
660
|
ResourceBase &
|
|
661
|
+
CreationContext &
|
|
671
662
|
ResourceKind & {
|
|
672
663
|
kind: "materialized";
|
|
673
664
|
} & Timestamp &
|
|
@@ -705,22 +696,14 @@ export interface StrategyStateValue {
|
|
|
705
696
|
[k: string]: ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
706
697
|
};
|
|
707
698
|
}
|
|
708
|
-
export interface CreationContext {
|
|
709
|
-
creationContext: ResourceSocket;
|
|
710
|
-
}
|
|
711
|
-
export interface ResourceSocket {
|
|
712
|
-
executionId: ExecutionId;
|
|
713
|
-
resourceRoleId: ResourceRoleId;
|
|
714
|
-
}
|
|
715
699
|
export interface ResourceKind {
|
|
716
700
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
717
701
|
}
|
|
718
|
-
export interface
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
resourceRoleId: ResourceRoleId;
|
|
702
|
+
export interface CreationContext {
|
|
703
|
+
creationContext: {
|
|
704
|
+
executionId: ExecutionId;
|
|
705
|
+
resourceRoleId: ResourceRoleId;
|
|
706
|
+
};
|
|
724
707
|
}
|
|
725
708
|
export interface Timestamp {
|
|
726
709
|
timestamp: string;
|
|
@@ -951,39 +951,6 @@
|
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
|
-
"ResourceSocket": {
|
|
955
|
-
"identity": "RESOURCE-ResourceSocket",
|
|
956
|
-
"resourceTypeId": "TYPE-ResourceType",
|
|
957
|
-
"creationContext": {
|
|
958
|
-
"resourceRoleId": "ROLE-Genesis",
|
|
959
|
-
"executionId": "EXECUTION-ResourceSocket"
|
|
960
|
-
},
|
|
961
|
-
"kind": "materialized",
|
|
962
|
-
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
963
|
-
"extractedData": {
|
|
964
|
-
"identity": "TYPE-ResourceSocket",
|
|
965
|
-
"name": "ResourceSocket",
|
|
966
|
-
"description": "dummy-description",
|
|
967
|
-
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
968
|
-
"extractionSchema": {
|
|
969
|
-
"$anchor": "ResourceSocket",
|
|
970
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
971
|
-
"type": "object",
|
|
972
|
-
"required": [
|
|
973
|
-
"resourceRoleId",
|
|
974
|
-
"executionId"
|
|
975
|
-
],
|
|
976
|
-
"properties": {
|
|
977
|
-
"resourceRoleId": {
|
|
978
|
-
"$ref": "#/$defs/ResourceRoleId"
|
|
979
|
-
},
|
|
980
|
-
"executionId": {
|
|
981
|
-
"$ref": "#/$defs/ExecutionId"
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
},
|
|
987
954
|
"CreationContext": {
|
|
988
955
|
"identity": "RESOURCE-CreationContext",
|
|
989
956
|
"resourceTypeId": "TYPE-ResourceType",
|
|
@@ -1007,7 +974,19 @@
|
|
|
1007
974
|
],
|
|
1008
975
|
"properties": {
|
|
1009
976
|
"creationContext": {
|
|
1010
|
-
"
|
|
977
|
+
"type": "object",
|
|
978
|
+
"required": [
|
|
979
|
+
"resourceRoleId",
|
|
980
|
+
"executionId"
|
|
981
|
+
],
|
|
982
|
+
"properties": {
|
|
983
|
+
"resourceRoleId": {
|
|
984
|
+
"$ref": "#/$defs/ResourceRoleId"
|
|
985
|
+
},
|
|
986
|
+
"executionId": {
|
|
987
|
+
"$ref": "#/$defs/ExecutionId"
|
|
988
|
+
}
|
|
989
|
+
}
|
|
1011
990
|
}
|
|
1012
991
|
}
|
|
1013
992
|
}
|
|
@@ -1045,9 +1024,6 @@
|
|
|
1045
1024
|
"$ref": "#/$defs/ResourceTypeId"
|
|
1046
1025
|
}
|
|
1047
1026
|
}
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"$ref": "#/$defs/CreationContext"
|
|
1051
1027
|
}
|
|
1052
1028
|
]
|
|
1053
1029
|
}
|
|
@@ -1127,36 +1103,6 @@
|
|
|
1127
1103
|
}
|
|
1128
1104
|
}
|
|
1129
1105
|
},
|
|
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
1106
|
"ResourcePotentialInput": {
|
|
1161
1107
|
"identity": "RESOURCE-ResourcePotentialInput",
|
|
1162
1108
|
"resourceTypeId": "TYPE-ResourceType",
|
|
@@ -1179,6 +1125,9 @@
|
|
|
1179
1125
|
{
|
|
1180
1126
|
"$ref": "#/$defs/ResourceBase"
|
|
1181
1127
|
},
|
|
1128
|
+
{
|
|
1129
|
+
"$ref": "#/$defs/CreationContext"
|
|
1130
|
+
},
|
|
1182
1131
|
{
|
|
1183
1132
|
"$ref": "#/$defs/ResourceKind"
|
|
1184
1133
|
},
|
|
@@ -1191,9 +1140,6 @@
|
|
|
1191
1140
|
"const": "potential-input"
|
|
1192
1141
|
}
|
|
1193
1142
|
}
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"$ref": "#/$defs/PendingRef"
|
|
1197
1143
|
}
|
|
1198
1144
|
],
|
|
1199
1145
|
"unevaluatedProperties": false
|
|
@@ -1222,6 +1168,9 @@
|
|
|
1222
1168
|
{
|
|
1223
1169
|
"$ref": "#/$defs/ResourceBase"
|
|
1224
1170
|
},
|
|
1171
|
+
{
|
|
1172
|
+
"$ref": "#/$defs/CreationContext"
|
|
1173
|
+
},
|
|
1225
1174
|
{
|
|
1226
1175
|
"$ref": "#/$defs/ResourceKind"
|
|
1227
1176
|
},
|
|
@@ -1321,6 +1270,9 @@
|
|
|
1321
1270
|
{
|
|
1322
1271
|
"$ref": "#/$defs/ResourceBase"
|
|
1323
1272
|
},
|
|
1273
|
+
{
|
|
1274
|
+
"$ref": "#/$defs/CreationContext"
|
|
1275
|
+
},
|
|
1324
1276
|
{
|
|
1325
1277
|
"$ref": "#/$defs/ResourceKind"
|
|
1326
1278
|
},
|
|
@@ -65,7 +65,19 @@
|
|
|
65
65
|
"type": "object",
|
|
66
66
|
"properties": {
|
|
67
67
|
"creationContext": {
|
|
68
|
-
"
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"executionId": {
|
|
71
|
+
"$ref": "#/$defs/ExecutionId"
|
|
72
|
+
},
|
|
73
|
+
"resourceRoleId": {
|
|
74
|
+
"$ref": "#/$defs/ResourceRoleId"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"resourceRoleId",
|
|
79
|
+
"executionId"
|
|
80
|
+
]
|
|
69
81
|
}
|
|
70
82
|
},
|
|
71
83
|
"required": [
|
|
@@ -517,20 +529,6 @@
|
|
|
517
529
|
],
|
|
518
530
|
"$anchor": "Path"
|
|
519
531
|
},
|
|
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
532
|
"Resource": {
|
|
535
533
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
536
534
|
"type": "object",
|
|
@@ -573,9 +571,6 @@
|
|
|
573
571
|
"identity",
|
|
574
572
|
"resourceTypeId"
|
|
575
573
|
]
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"$ref": "#/$defs/CreationContext"
|
|
579
574
|
}
|
|
580
575
|
],
|
|
581
576
|
"$anchor": "ResourceBase"
|
|
@@ -645,6 +640,9 @@
|
|
|
645
640
|
{
|
|
646
641
|
"$ref": "#/$defs/ResourceBase"
|
|
647
642
|
},
|
|
643
|
+
{
|
|
644
|
+
"$ref": "#/$defs/CreationContext"
|
|
645
|
+
},
|
|
648
646
|
{
|
|
649
647
|
"$ref": "#/$defs/ResourceKind"
|
|
650
648
|
},
|
|
@@ -698,6 +696,9 @@
|
|
|
698
696
|
{
|
|
699
697
|
"$ref": "#/$defs/ResourceBase"
|
|
700
698
|
},
|
|
699
|
+
{
|
|
700
|
+
"$ref": "#/$defs/CreationContext"
|
|
701
|
+
},
|
|
701
702
|
{
|
|
702
703
|
"$ref": "#/$defs/ResourceKind"
|
|
703
704
|
},
|
|
@@ -710,9 +711,6 @@
|
|
|
710
711
|
"required": [
|
|
711
712
|
"kind"
|
|
712
713
|
]
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
"$ref": "#/$defs/PendingRef"
|
|
716
714
|
}
|
|
717
715
|
],
|
|
718
716
|
"unevaluatedProperties": false,
|
|
@@ -725,6 +723,9 @@
|
|
|
725
723
|
{
|
|
726
724
|
"$ref": "#/$defs/ResourceBase"
|
|
727
725
|
},
|
|
726
|
+
{
|
|
727
|
+
"$ref": "#/$defs/CreationContext"
|
|
728
|
+
},
|
|
728
729
|
{
|
|
729
730
|
"$ref": "#/$defs/ResourceKind"
|
|
730
731
|
},
|
|
@@ -769,23 +770,6 @@
|
|
|
769
770
|
],
|
|
770
771
|
"$anchor": "ResourceRoleValue"
|
|
771
772
|
},
|
|
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
773
|
"ResourceType": {
|
|
790
774
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
791
775
|
"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,30 @@
|
|
|
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
|
-
"
|
|
493
|
+
"creationContext": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"properties": {
|
|
496
|
+
"executionId": {
|
|
497
|
+
"$ref": "#/$defs/ExecutionId"
|
|
498
|
+
},
|
|
499
|
+
"resourceRoleId": {
|
|
500
|
+
"$ref": "#/$defs/ResourceRoleId"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"required": [
|
|
504
|
+
"resourceRoleId",
|
|
505
|
+
"executionId"
|
|
506
|
+
]
|
|
496
507
|
}
|
|
497
508
|
},
|
|
498
509
|
"required": [
|
|
499
|
-
"
|
|
510
|
+
"creationContext"
|
|
500
511
|
],
|
|
501
|
-
"$anchor": "
|
|
512
|
+
"$anchor": "CreationContext"
|
|
502
513
|
},
|
|
503
514
|
"ResourceMetaBase": {
|
|
504
515
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -507,6 +518,9 @@
|
|
|
507
518
|
{
|
|
508
519
|
"$ref": "#/$defs/ResourceBase"
|
|
509
520
|
},
|
|
521
|
+
{
|
|
522
|
+
"$ref": "#/$defs/CreationContext"
|
|
523
|
+
},
|
|
510
524
|
{
|
|
511
525
|
"$ref": "#/$defs/ResourceKind"
|
|
512
526
|
},
|
|
@@ -592,36 +606,6 @@
|
|
|
592
606
|
"$anchor": "ResourceTypeId",
|
|
593
607
|
"pattern": "^TYPE-.+$"
|
|
594
608
|
},
|
|
595
|
-
"CreationContext": {
|
|
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": {
|
|
609
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
610
|
-
"type": "object",
|
|
611
|
-
"properties": {
|
|
612
|
-
"executionId": {
|
|
613
|
-
"$ref": "#/$defs/ExecutionId"
|
|
614
|
-
},
|
|
615
|
-
"resourceRoleId": {
|
|
616
|
-
"$ref": "#/$defs/ResourceRoleId"
|
|
617
|
-
}
|
|
618
|
-
},
|
|
619
|
-
"required": [
|
|
620
|
-
"resourceRoleId",
|
|
621
|
-
"executionId"
|
|
622
|
-
],
|
|
623
|
-
"$anchor": "ResourceSocket"
|
|
624
|
-
},
|
|
625
609
|
"Timestamp": {
|
|
626
610
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
627
611
|
"type": "object",
|
|
@@ -699,29 +699,6 @@
|
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
},
|
|
702
|
-
"ResourceSocket": {
|
|
703
|
-
"identity": "TYPE-ResourceSocket",
|
|
704
|
-
"name": "ResourceSocket",
|
|
705
|
-
"description": "dummy-description",
|
|
706
|
-
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
707
|
-
"extractionSchema": {
|
|
708
|
-
"$anchor": "ResourceSocket",
|
|
709
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
710
|
-
"type": "object",
|
|
711
|
-
"required": [
|
|
712
|
-
"resourceRoleId",
|
|
713
|
-
"executionId"
|
|
714
|
-
],
|
|
715
|
-
"properties": {
|
|
716
|
-
"resourceRoleId": {
|
|
717
|
-
"$ref": "#ResourceRoleId"
|
|
718
|
-
},
|
|
719
|
-
"executionId": {
|
|
720
|
-
"$ref": "#ExecutionId"
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
},
|
|
725
702
|
"CreationContext": {
|
|
726
703
|
"identity": "TYPE-CreationContext",
|
|
727
704
|
"name": "CreationContext",
|
|
@@ -736,7 +713,19 @@
|
|
|
736
713
|
],
|
|
737
714
|
"properties": {
|
|
738
715
|
"creationContext": {
|
|
739
|
-
"
|
|
716
|
+
"type": "object",
|
|
717
|
+
"required": [
|
|
718
|
+
"resourceRoleId",
|
|
719
|
+
"executionId"
|
|
720
|
+
],
|
|
721
|
+
"properties": {
|
|
722
|
+
"resourceRoleId": {
|
|
723
|
+
"$ref": "#ResourceRoleId"
|
|
724
|
+
},
|
|
725
|
+
"executionId": {
|
|
726
|
+
"$ref": "#ExecutionId"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
740
729
|
}
|
|
741
730
|
}
|
|
742
731
|
}
|
|
@@ -764,9 +753,6 @@
|
|
|
764
753
|
"$ref": "#ResourceTypeId"
|
|
765
754
|
}
|
|
766
755
|
}
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"$ref": "#CreationContext"
|
|
770
756
|
}
|
|
771
757
|
]
|
|
772
758
|
}
|
|
@@ -825,26 +811,6 @@
|
|
|
825
811
|
"unevaluatedProperties": false
|
|
826
812
|
}
|
|
827
813
|
},
|
|
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
814
|
"ResourcePotentialInput": {
|
|
849
815
|
"identity": "TYPE-ResourcePotentialInput",
|
|
850
816
|
"name": "ResourcePotentialInput",
|
|
@@ -858,6 +824,9 @@
|
|
|
858
824
|
{
|
|
859
825
|
"$ref": "#ResourceBase"
|
|
860
826
|
},
|
|
827
|
+
{
|
|
828
|
+
"$ref": "#CreationContext"
|
|
829
|
+
},
|
|
861
830
|
{
|
|
862
831
|
"$ref": "#ResourceKind"
|
|
863
832
|
},
|
|
@@ -870,9 +839,6 @@
|
|
|
870
839
|
"const": "potential-input"
|
|
871
840
|
}
|
|
872
841
|
}
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"$ref": "#PendingRef"
|
|
876
842
|
}
|
|
877
843
|
],
|
|
878
844
|
"unevaluatedProperties": false
|
|
@@ -891,6 +857,9 @@
|
|
|
891
857
|
{
|
|
892
858
|
"$ref": "#ResourceBase"
|
|
893
859
|
},
|
|
860
|
+
{
|
|
861
|
+
"$ref": "#CreationContext"
|
|
862
|
+
},
|
|
894
863
|
{
|
|
895
864
|
"$ref": "#ResourceKind"
|
|
896
865
|
},
|
|
@@ -960,6 +929,9 @@
|
|
|
960
929
|
{
|
|
961
930
|
"$ref": "#ResourceBase"
|
|
962
931
|
},
|
|
932
|
+
{
|
|
933
|
+
"$ref": "#CreationContext"
|
|
934
|
+
},
|
|
963
935
|
{
|
|
964
936
|
"$ref": "#ResourceKind"
|
|
965
937
|
},
|
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, 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';
|