@toolproof-npm/schema 0.1.42 → 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 +5 -4
- package/dist/_lib/types/Resource_ResourceFormat.d.ts +5 -4
- package/dist/_lib/types/Resource_ResourceType.d.ts +5 -4
- package/dist/_lib/types/Resource_StatelessStrategy.d.ts +5 -4
- package/dist/_lib/types/types.d.ts +14 -8
- package/dist/genesis/generated/resources/Genesis.json +34 -13
- package/dist/genesis/generated/schemas/Genesis.json +18 -13
- package/dist/genesis/generated/schemas/StatefulStrategy.json +18 -13
- package/dist/genesis/resourceTypes/Genesis.json +24 -13
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -23,10 +23,11 @@ export type ResourceRoleValue = {
|
|
|
23
23
|
} & Documented;
|
|
24
24
|
|
|
25
25
|
export interface CreationContext {
|
|
26
|
-
creationContext:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
creationContext: CreationContextValue;
|
|
27
|
+
}
|
|
28
|
+
export interface CreationContextValue {
|
|
29
|
+
executionId: string;
|
|
30
|
+
resourceRoleId: string;
|
|
30
31
|
}
|
|
31
32
|
export interface ResourceKind {
|
|
32
33
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -18,10 +18,11 @@ export type ResourceFormat = {
|
|
|
18
18
|
export type Documented = Name & Description;
|
|
19
19
|
|
|
20
20
|
export interface CreationContext {
|
|
21
|
-
creationContext:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
creationContext: CreationContextValue;
|
|
22
|
+
}
|
|
23
|
+
export interface CreationContextValue {
|
|
24
|
+
executionId: string;
|
|
25
|
+
resourceRoleId: string;
|
|
25
26
|
}
|
|
26
27
|
export interface ResourceKind {
|
|
27
28
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -36,10 +36,11 @@ export type ExtractionSchemaValue = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export interface CreationContext {
|
|
39
|
-
creationContext:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
creationContext: CreationContextValue;
|
|
40
|
+
}
|
|
41
|
+
export interface CreationContextValue {
|
|
42
|
+
executionId: string;
|
|
43
|
+
resourceRoleId: string;
|
|
43
44
|
}
|
|
44
45
|
export interface ResourceKind {
|
|
45
46
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -46,10 +46,11 @@ export type ForStep = StepKind & {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export interface CreationContext {
|
|
49
|
-
creationContext:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
creationContext: CreationContextValue;
|
|
50
|
+
}
|
|
51
|
+
export interface CreationContextValue {
|
|
52
|
+
executionId: string;
|
|
53
|
+
resourceRoleId: string;
|
|
53
54
|
}
|
|
54
55
|
export interface ResourceKind {
|
|
55
56
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -343,10 +343,15 @@ export type RoleBindingMap = Record<ResourceRoleId, ResourceId>;
|
|
|
343
343
|
* via the `definition` "CreationContext".
|
|
344
344
|
*/
|
|
345
345
|
export interface CreationContext {
|
|
346
|
-
creationContext:
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
creationContext: CreationContextValue;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
350
|
+
* via the `definition` "CreationContextValue".
|
|
351
|
+
*/
|
|
352
|
+
export interface CreationContextValue {
|
|
353
|
+
executionId: ExecutionId;
|
|
354
|
+
resourceRoleId: ResourceRoleId;
|
|
350
355
|
}
|
|
351
356
|
/**
|
|
352
357
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
@@ -700,10 +705,11 @@ export interface ResourceKind {
|
|
|
700
705
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
701
706
|
}
|
|
702
707
|
export interface CreationContext {
|
|
703
|
-
creationContext:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
708
|
+
creationContext: CreationContextValue;
|
|
709
|
+
}
|
|
710
|
+
export interface CreationContextValue {
|
|
711
|
+
executionId: ExecutionId;
|
|
712
|
+
resourceRoleId: ResourceRoleId;
|
|
707
713
|
}
|
|
708
714
|
export interface Timestamp {
|
|
709
715
|
timestamp: string;
|
|
@@ -951,6 +951,39 @@
|
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
|
+
"CreationContextValue": {
|
|
955
|
+
"identity": "RESOURCE-CreationContextValue",
|
|
956
|
+
"resourceTypeId": "TYPE-ResourceType",
|
|
957
|
+
"creationContext": {
|
|
958
|
+
"resourceRoleId": "ROLE-Genesis",
|
|
959
|
+
"executionId": "EXECUTION-CreationContextValue"
|
|
960
|
+
},
|
|
961
|
+
"kind": "materialized",
|
|
962
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
963
|
+
"extractedData": {
|
|
964
|
+
"identity": "TYPE-CreationContextValue",
|
|
965
|
+
"name": "CreationContextValue",
|
|
966
|
+
"description": "dummy-description",
|
|
967
|
+
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
968
|
+
"extractionSchema": {
|
|
969
|
+
"$anchor": "CreationContextValue",
|
|
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
|
+
},
|
|
954
987
|
"CreationContext": {
|
|
955
988
|
"identity": "RESOURCE-CreationContext",
|
|
956
989
|
"resourceTypeId": "TYPE-ResourceType",
|
|
@@ -974,19 +1007,7 @@
|
|
|
974
1007
|
],
|
|
975
1008
|
"properties": {
|
|
976
1009
|
"creationContext": {
|
|
977
|
-
"
|
|
978
|
-
"required": [
|
|
979
|
-
"resourceRoleId",
|
|
980
|
-
"executionId"
|
|
981
|
-
],
|
|
982
|
-
"properties": {
|
|
983
|
-
"resourceRoleId": {
|
|
984
|
-
"$ref": "#/$defs/ResourceRoleId"
|
|
985
|
-
},
|
|
986
|
-
"executionId": {
|
|
987
|
-
"$ref": "#/$defs/ExecutionId"
|
|
988
|
-
}
|
|
989
|
-
}
|
|
1010
|
+
"$ref": "#/$defs/CreationContextValue"
|
|
990
1011
|
}
|
|
991
1012
|
}
|
|
992
1013
|
}
|
|
@@ -65,19 +65,7 @@
|
|
|
65
65
|
"type": "object",
|
|
66
66
|
"properties": {
|
|
67
67
|
"creationContext": {
|
|
68
|
-
"
|
|
69
|
-
"properties": {
|
|
70
|
-
"executionId": {
|
|
71
|
-
"$ref": "#/$defs/ExecutionId"
|
|
72
|
-
},
|
|
73
|
-
"resourceRoleId": {
|
|
74
|
-
"$ref": "#/$defs/ResourceRoleId"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"required": [
|
|
78
|
-
"resourceRoleId",
|
|
79
|
-
"executionId"
|
|
80
|
-
]
|
|
68
|
+
"$ref": "#/$defs/CreationContextValue"
|
|
81
69
|
}
|
|
82
70
|
},
|
|
83
71
|
"required": [
|
|
@@ -85,6 +73,23 @@
|
|
|
85
73
|
],
|
|
86
74
|
"$anchor": "CreationContext"
|
|
87
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
|
+
},
|
|
88
93
|
"Description": {
|
|
89
94
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
90
95
|
"type": "object",
|
|
@@ -491,19 +491,7 @@
|
|
|
491
491
|
"type": "object",
|
|
492
492
|
"properties": {
|
|
493
493
|
"creationContext": {
|
|
494
|
-
"
|
|
495
|
-
"properties": {
|
|
496
|
-
"executionId": {
|
|
497
|
-
"$ref": "#/$defs/ExecutionId"
|
|
498
|
-
},
|
|
499
|
-
"resourceRoleId": {
|
|
500
|
-
"$ref": "#/$defs/ResourceRoleId"
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
"required": [
|
|
504
|
-
"resourceRoleId",
|
|
505
|
-
"executionId"
|
|
506
|
-
]
|
|
494
|
+
"$ref": "#/$defs/CreationContextValue"
|
|
507
495
|
}
|
|
508
496
|
},
|
|
509
497
|
"required": [
|
|
@@ -606,6 +594,23 @@
|
|
|
606
594
|
"$anchor": "ResourceTypeId",
|
|
607
595
|
"pattern": "^TYPE-.+$"
|
|
608
596
|
},
|
|
597
|
+
"CreationContextValue": {
|
|
598
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
599
|
+
"type": "object",
|
|
600
|
+
"properties": {
|
|
601
|
+
"executionId": {
|
|
602
|
+
"$ref": "#/$defs/ExecutionId"
|
|
603
|
+
},
|
|
604
|
+
"resourceRoleId": {
|
|
605
|
+
"$ref": "#/$defs/ResourceRoleId"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"required": [
|
|
609
|
+
"resourceRoleId",
|
|
610
|
+
"executionId"
|
|
611
|
+
],
|
|
612
|
+
"$anchor": "CreationContextValue"
|
|
613
|
+
},
|
|
609
614
|
"Timestamp": {
|
|
610
615
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
611
616
|
"type": "object",
|
|
@@ -699,6 +699,29 @@
|
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
},
|
|
702
|
+
"CreationContextValue": {
|
|
703
|
+
"identity": "TYPE-CreationContextValue",
|
|
704
|
+
"name": "CreationContextValue",
|
|
705
|
+
"description": "dummy-description",
|
|
706
|
+
"resourceFormatId": "FORMAT-ApplicationJson",
|
|
707
|
+
"extractionSchema": {
|
|
708
|
+
"$anchor": "CreationContextValue",
|
|
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
|
+
},
|
|
702
725
|
"CreationContext": {
|
|
703
726
|
"identity": "TYPE-CreationContext",
|
|
704
727
|
"name": "CreationContext",
|
|
@@ -713,19 +736,7 @@
|
|
|
713
736
|
],
|
|
714
737
|
"properties": {
|
|
715
738
|
"creationContext": {
|
|
716
|
-
"
|
|
717
|
-
"required": [
|
|
718
|
-
"resourceRoleId",
|
|
719
|
-
"executionId"
|
|
720
|
-
],
|
|
721
|
-
"properties": {
|
|
722
|
-
"resourceRoleId": {
|
|
723
|
-
"$ref": "#ResourceRoleId"
|
|
724
|
-
},
|
|
725
|
-
"executionId": {
|
|
726
|
-
"$ref": "#ExecutionId"
|
|
727
|
-
}
|
|
728
|
-
}
|
|
739
|
+
"$ref": "#CreationContextValue"
|
|
729
740
|
}
|
|
730
741
|
}
|
|
731
742
|
}
|
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, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
|
|
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';
|