@toolproof-npm/schema 0.1.38 → 0.1.39
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/types.d.ts +13 -9
- package/dist/genesis/generated/resources/Genesis.json +3 -3
- package/dist/genesis/generated/schemas/Genesis.json +3 -3
- package/dist/genesis/generated/schemas/StatefulStrategy.json +13 -6
- package/dist/genesis/generated/schemas/StatelessStrategy.json +12 -5
- package/dist/genesis/resourceTypes/Genesis.json +3 -3
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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".
|
|
@@ -590,10 +590,12 @@ export type WorkStep =
|
|
|
590
590
|
export type Execution =
|
|
591
591
|
{
|
|
592
592
|
identity: ExecutionId;
|
|
593
|
-
jobId:
|
|
593
|
+
jobId: JobId;
|
|
594
594
|
} & RoleBindingsOuter;
|
|
595
595
|
export type ExecutionId =
|
|
596
596
|
string;
|
|
597
|
+
export type JobId =
|
|
598
|
+
string;
|
|
597
599
|
export type ResourceId =
|
|
598
600
|
string;
|
|
599
601
|
export type WorkStepId =
|
|
@@ -731,10 +733,12 @@ export type WorkStep =
|
|
|
731
733
|
export type Execution =
|
|
732
734
|
{
|
|
733
735
|
identity: ExecutionId;
|
|
734
|
-
jobId:
|
|
736
|
+
jobId: JobId;
|
|
735
737
|
} & RoleBindingsOuter;
|
|
736
738
|
export type ExecutionId =
|
|
737
739
|
string;
|
|
740
|
+
export type JobId =
|
|
741
|
+
string;
|
|
738
742
|
export type ResourceId =
|
|
739
743
|
string;
|
|
740
744
|
export type WorkStepId =
|
|
@@ -1465,7 +1465,7 @@
|
|
|
1465
1465
|
"$ref": "#/$defs/ExecutionId"
|
|
1466
1466
|
},
|
|
1467
1467
|
"jobId": {
|
|
1468
|
-
"$ref": "#/$defs/
|
|
1468
|
+
"$ref": "#/$defs/JobId"
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
},
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
"$anchor": "StatelessStrategyId",
|
|
1874
1874
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1875
1875
|
"type": "string",
|
|
1876
|
-
"pattern": "^
|
|
1876
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
},
|
|
@@ -2010,7 +2010,7 @@
|
|
|
2010
2010
|
"$anchor": "StatefulStrategyId",
|
|
2011
2011
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2012
2012
|
"type": "string",
|
|
2013
|
-
"pattern": "^
|
|
2013
|
+
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
2016
|
},
|
|
@@ -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": [
|
|
@@ -935,7 +935,7 @@
|
|
|
935
935
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
936
936
|
"type": "string",
|
|
937
937
|
"$anchor": "StatefulStrategyId",
|
|
938
|
-
"pattern": "^
|
|
938
|
+
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
939
939
|
},
|
|
940
940
|
"StatelessStrategy": {
|
|
941
941
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
969
969
|
"type": "string",
|
|
970
970
|
"$anchor": "StatelessStrategyId",
|
|
971
|
-
"pattern": "^
|
|
971
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
972
972
|
},
|
|
973
973
|
"Step": {
|
|
974
974
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -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",
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"$ref": "#/$defs/ExecutionId"
|
|
361
361
|
},
|
|
362
362
|
"jobId": {
|
|
363
|
-
"$ref": "#/$defs/
|
|
363
|
+
"$ref": "#/$defs/JobId"
|
|
364
364
|
}
|
|
365
365
|
},
|
|
366
366
|
"required": [
|
|
@@ -531,12 +531,12 @@
|
|
|
531
531
|
],
|
|
532
532
|
"$anchor": "JsonValue"
|
|
533
533
|
},
|
|
534
|
-
"
|
|
534
|
+
"JobId": {
|
|
535
535
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
536
536
|
"type": "string",
|
|
537
|
-
"$anchor": "
|
|
537
|
+
"$anchor": "JobId",
|
|
538
538
|
"$comment": "",
|
|
539
|
-
"pattern": "^
|
|
539
|
+
"pattern": "^JOB-.+$"
|
|
540
540
|
},
|
|
541
541
|
"RoleBindingsOuter": {
|
|
542
542
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -551,6 +551,13 @@
|
|
|
551
551
|
],
|
|
552
552
|
"$anchor": "RoleBindingsOuter"
|
|
553
553
|
},
|
|
554
|
+
"ResourceId": {
|
|
555
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
556
|
+
"type": "string",
|
|
557
|
+
"$anchor": "ResourceId",
|
|
558
|
+
"$comment": "",
|
|
559
|
+
"pattern": "^RESOURCE-.+$"
|
|
560
|
+
},
|
|
554
561
|
"ResourceTypeId": {
|
|
555
562
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
556
563
|
"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",
|
|
@@ -1064,7 +1064,7 @@
|
|
|
1064
1064
|
"$ref": "#ExecutionId"
|
|
1065
1065
|
},
|
|
1066
1066
|
"jobId": {
|
|
1067
|
-
"$ref": "#
|
|
1067
|
+
"$ref": "#JobId"
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
},
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
"$anchor": "StatelessStrategyId",
|
|
1353
1353
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1354
1354
|
"type": "string",
|
|
1355
|
-
"pattern": "^
|
|
1355
|
+
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
1356
1356
|
}
|
|
1357
1357
|
},
|
|
1358
1358
|
"StatelessStrategy": {
|
|
@@ -1449,7 +1449,7 @@
|
|
|
1449
1449
|
"$anchor": "StatefulStrategyId",
|
|
1450
1450
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1451
1451
|
"type": "string",
|
|
1452
|
-
"pattern": "^
|
|
1452
|
+
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
1453
1453
|
}
|
|
1454
1454
|
},
|
|
1455
1455
|
"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';
|