@toolproof-npm/schema 0.1.32 → 0.1.33
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Auto-generated strict composite type. Do not edit.
|
|
2
|
-
export type ResourceData_Job =
|
|
2
|
+
export type ResourceData_Job = ResourceMetaBase & {
|
|
3
3
|
extractedData: Job;
|
|
4
4
|
};
|
|
5
|
-
export type
|
|
5
|
+
export type ResourceMetaBase = ResourceBase &
|
|
6
6
|
ResourceKind & {
|
|
7
7
|
kind: "realized";
|
|
8
8
|
} & Path &
|
|
@@ -27,8 +27,6 @@ export type CombinedEntry =
|
|
|
27
27
|
| Path
|
|
28
28
|
| PendingRef
|
|
29
29
|
| ResourceBase
|
|
30
|
-
| ResourceCanonicalMeta
|
|
31
|
-
| ResourceCanonicalMetaBase
|
|
32
30
|
| ResourceData
|
|
33
31
|
| ResourceFormatData
|
|
34
32
|
| ResourceFormatId
|
|
@@ -37,11 +35,14 @@ export type CombinedEntry =
|
|
|
37
35
|
| ResourceKind
|
|
38
36
|
| ResourceMap
|
|
39
37
|
| ResourceMeta
|
|
38
|
+
| ResourceMetaBase
|
|
40
39
|
| ResourcePotentialInput
|
|
41
40
|
| ResourcePotentialOutput
|
|
41
|
+
| ResourceRawMeta
|
|
42
42
|
| ResourceRoleId
|
|
43
43
|
| ResourceRoleValue
|
|
44
44
|
| ResourceSocket
|
|
45
|
+
| ResourceTypeBase
|
|
45
46
|
| ResourceTypeData
|
|
46
47
|
| ResourceTypeId
|
|
47
48
|
| ResourceTypeMeta
|
|
@@ -55,7 +56,6 @@ export type CombinedEntry =
|
|
|
55
56
|
| StepId
|
|
56
57
|
| StepKind
|
|
57
58
|
| Timestamp
|
|
58
|
-
| TypeBase
|
|
59
59
|
| Uri
|
|
60
60
|
| WhileStep
|
|
61
61
|
| WhileStepId
|
|
@@ -298,30 +298,25 @@ export type ResourceBase = Identifiable & {
|
|
|
298
298
|
* via the `definition` "ResourceTypeId".
|
|
299
299
|
*/
|
|
300
300
|
export type ResourceTypeId = string;
|
|
301
|
-
export type ResourceCanonicalMeta = ResourceBase &
|
|
302
|
-
ResourceKind & {
|
|
303
|
-
kind: "realized";
|
|
304
|
-
} & Path &
|
|
305
|
-
Timestamp;
|
|
306
|
-
/**
|
|
307
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
308
|
-
* via the `definition` "ResourceCanonicalMetaBase".
|
|
309
|
-
*/
|
|
310
|
-
export type ResourceCanonicalMetaBase = ResourceBase &
|
|
311
|
-
ResourceKind & {
|
|
312
|
-
kind: "realized";
|
|
313
|
-
} & Path &
|
|
314
|
-
Timestamp;
|
|
315
301
|
/**
|
|
316
302
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
317
303
|
* via the `definition` "ResourceData".
|
|
318
304
|
*/
|
|
319
|
-
export type ResourceData =
|
|
305
|
+
export type ResourceData = ResourceMetaBase & {
|
|
320
306
|
extractedData: {
|
|
321
307
|
identity: string | number | boolean;
|
|
322
308
|
[k: string]: JsonValue;
|
|
323
309
|
};
|
|
324
310
|
};
|
|
311
|
+
/**
|
|
312
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
313
|
+
* via the `definition` "ResourceMetaBase".
|
|
314
|
+
*/
|
|
315
|
+
export type ResourceMetaBase = ResourceBase &
|
|
316
|
+
ResourceKind & {
|
|
317
|
+
kind: "realized";
|
|
318
|
+
} & Path &
|
|
319
|
+
Timestamp;
|
|
325
320
|
/**
|
|
326
321
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
327
322
|
* via the `definition` "ResourceFormatData".
|
|
@@ -348,11 +343,16 @@ export type ResourcePotentialOutput = ResourceBase &
|
|
|
348
343
|
ResourceKind & {
|
|
349
344
|
kind: "potential-output";
|
|
350
345
|
};
|
|
346
|
+
export type ResourceMeta = ResourceBase &
|
|
347
|
+
ResourceKind & {
|
|
348
|
+
kind: "realized";
|
|
349
|
+
} & Path &
|
|
350
|
+
Timestamp;
|
|
351
351
|
/**
|
|
352
352
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
353
|
-
* via the `definition` "
|
|
353
|
+
* via the `definition` "ResourceRawMeta".
|
|
354
354
|
*/
|
|
355
|
-
export type
|
|
355
|
+
export type ResourceRawMeta = ResourceBase & CanonicalRef & Timestamp;
|
|
356
356
|
/**
|
|
357
357
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
358
358
|
* via the `definition` "ResourceRoleValue".
|
|
@@ -362,22 +362,22 @@ export type ResourceRoleValue = {
|
|
|
362
362
|
} & Documented;
|
|
363
363
|
/**
|
|
364
364
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
365
|
-
* via the `definition` "
|
|
366
|
-
*/
|
|
367
|
-
export type ResourceTypeData = TypeBase & ExtractionSchema;
|
|
368
|
-
/**
|
|
369
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
370
|
-
* via the `definition` "TypeBase".
|
|
365
|
+
* via the `definition` "ResourceTypeBase".
|
|
371
366
|
*/
|
|
372
|
-
export type
|
|
367
|
+
export type ResourceTypeBase = IdentifiableDocumented & {
|
|
373
368
|
id: ResourceTypeId;
|
|
374
369
|
resourceFormatId: ResourceFormatId;
|
|
375
370
|
};
|
|
371
|
+
/**
|
|
372
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
373
|
+
* via the `definition` "ResourceTypeData".
|
|
374
|
+
*/
|
|
375
|
+
export type ResourceTypeData = ResourceTypeBase & ExtractionSchema;
|
|
376
376
|
/**
|
|
377
377
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
378
378
|
* via the `definition` "ResourceTypeMeta".
|
|
379
379
|
*/
|
|
380
|
-
export type ResourceTypeMeta =
|
|
380
|
+
export type ResourceTypeMeta = ResourceTypeBase &
|
|
381
381
|
Path & {
|
|
382
382
|
};
|
|
383
383
|
/**
|
|
@@ -434,9 +434,9 @@ export type WorkflowSpec = Identifiable & {
|
|
|
434
434
|
export type WorkflowSpecId = string;
|
|
435
435
|
/**
|
|
436
436
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
437
|
-
* via the `definition` "
|
|
437
|
+
* via the `definition` "ResourceMeta".
|
|
438
438
|
*/
|
|
439
|
-
export type
|
|
439
|
+
export type ResourceMetaBase1 = ResourceBase &
|
|
440
440
|
ResourceKind & {
|
|
441
441
|
kind: "realized";
|
|
442
442
|
} & Path &
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as GenesisSchema } from './schemas/Genesis.js';
|
|
2
2
|
export { default as JobSchema } from './schemas/Job.js';
|
|
3
3
|
export type { ResourceData_Job as ResourceData_JobJson } from './_lib/types/ResourceData_Job.js';
|
|
4
|
-
export type { Identifiable as IdentifiableJson, Documented as DocumentedJson, IdentifiableDocumented as IdentifiableDocumentedJson, ResourceFormatId as ResourceFormatIdJson, ResourceFormatMeta as ResourceFormatMetaJson, ResourceFormatData as ResourceFormatDataJson, ExtractionSchema as ExtractionSchemaJson, ExtractionSchemaValue as ExtractionSchemaValueJson, IdentityProp as IdentityPropJson, MeritProp as MeritPropJson, ResourceTypeId as ResourceTypeIdJson, ResourceTypeMeta as ResourceTypeMetaJson, ResourceTypeData as ResourceTypeDataJson, 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, StepId as StepIdJson, Step as StepJson, ResourceSocket as ResourceSocketJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMeta as ResourceMetaJson, ResourceData as ResourceDataJson, ResourceMap as ResourceMapJson, WorkflowId as WorkflowIdJson, Workflow as WorkflowJson, WorkflowSpecId as WorkflowSpecIdJson, WorkflowSpec as WorkflowSpecJson, Job as JobJson, JsonValue as JsonValueJson, } from './_lib/types/types.js';
|
|
4
|
+
export type { Identifiable as IdentifiableJson, Documented as DocumentedJson, IdentifiableDocumented as IdentifiableDocumentedJson, ResourceFormatId as ResourceFormatIdJson, ResourceFormatMeta as ResourceFormatMetaJson, ResourceFormatData as ResourceFormatDataJson, ExtractionSchema as ExtractionSchemaJson, ExtractionSchemaValue as ExtractionSchemaValueJson, IdentityProp as IdentityPropJson, MeritProp as MeritPropJson, ResourceTypeId as ResourceTypeIdJson, ResourceTypeMeta as ResourceTypeMetaJson, ResourceTypeData as ResourceTypeDataJson, 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, StepId as StepIdJson, Step as StepJson, ResourceSocket as ResourceSocketJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceRawMeta as ResourceRawMetaJson, ResourceMeta as ResourceMetaJson, ResourceData as ResourceDataJson, ResourceMap as ResourceMapJson, WorkflowId as WorkflowIdJson, Workflow as WorkflowJson, WorkflowSpecId as WorkflowSpecIdJson, WorkflowSpec as WorkflowSpecJson, Job as JobJson, JsonValue as JsonValueJson, } from './_lib/types/types.js';
|
|
5
5
|
export { unsafeBrand, asResourceTypeId, asResourceRoleId, asExecutionId, asResourceId, asWorkStepId, asBranchStepId, asForStepId, asResourceFormatId, asWhileStepId, asWorkflowId, asWorkflowSpecId, asResourceTypeIds, asResourceRoleIds, asExecutionIds, asResourceIds, asWorkStepIds, asBranchStepIds, asForStepIds, asResourceFormatIds, asWhileStepIds, asWorkflowIds, asWorkflowSpecIds, } from './scripts/brandFactories.js';
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
"type": "object",
|
|
534
534
|
"properties": {
|
|
535
535
|
"pendingRef": {
|
|
536
|
-
"$comment": "This points to a resource created at a previous step in the same workflow. This resource is not yet realized at the time of defining the workflow, but will be realized when the step using this resource is executed.The Engine resolves this
|
|
536
|
+
"$comment": "This points to a resource created at a previous step in the same workflow. This resource is not yet realized at the time of defining the workflow, but will be realized when the step using this resource is executed.The Engine resolves this ref at runtime.",
|
|
537
537
|
"$ref": "#/$defs/ResourceSocket"
|
|
538
538
|
}
|
|
539
539
|
},
|
|
@@ -575,48 +575,12 @@
|
|
|
575
575
|
],
|
|
576
576
|
"$anchor": "ResourceBase"
|
|
577
577
|
},
|
|
578
|
-
"ResourceCanonicalMeta": {
|
|
579
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
580
|
-
"type": "object",
|
|
581
|
-
"unevaluatedProperties": false,
|
|
582
|
-
"$anchor": "ResourceCanonicalMeta",
|
|
583
|
-
"$ref": "#/$defs/ResourceCanonicalMetaBase"
|
|
584
|
-
},
|
|
585
|
-
"ResourceCanonicalMetaBase": {
|
|
586
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
587
|
-
"type": "object",
|
|
588
|
-
"allOf": [
|
|
589
|
-
{
|
|
590
|
-
"$ref": "#/$defs/ResourceBase"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"$ref": "#/$defs/ResourceKind"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"properties": {
|
|
597
|
-
"kind": {
|
|
598
|
-
"const": "realized"
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
"required": [
|
|
602
|
-
"kind"
|
|
603
|
-
]
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"$ref": "#/$defs/Path"
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
"$ref": "#/$defs/Timestamp"
|
|
610
|
-
}
|
|
611
|
-
],
|
|
612
|
-
"$anchor": "ResourceCanonicalMetaBase"
|
|
613
|
-
},
|
|
614
578
|
"ResourceData": {
|
|
615
579
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
616
580
|
"type": "object",
|
|
617
581
|
"allOf": [
|
|
618
582
|
{
|
|
619
|
-
"$ref": "#/$defs/
|
|
583
|
+
"$ref": "#/$defs/ResourceMetaBase"
|
|
620
584
|
},
|
|
621
585
|
{
|
|
622
586
|
"properties": {
|
|
@@ -731,6 +695,13 @@
|
|
|
731
695
|
}
|
|
732
696
|
},
|
|
733
697
|
"ResourceMeta": {
|
|
698
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
699
|
+
"type": "object",
|
|
700
|
+
"unevaluatedProperties": false,
|
|
701
|
+
"$anchor": "ResourceMeta",
|
|
702
|
+
"$ref": "#/$defs/ResourceMetaBase"
|
|
703
|
+
},
|
|
704
|
+
"ResourceMetaBase": {
|
|
734
705
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
735
706
|
"type": "object",
|
|
736
707
|
"allOf": [
|
|
@@ -738,14 +709,26 @@
|
|
|
738
709
|
"$ref": "#/$defs/ResourceBase"
|
|
739
710
|
},
|
|
740
711
|
{
|
|
741
|
-
"$ref": "#/$defs/
|
|
712
|
+
"$ref": "#/$defs/ResourceKind"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"properties": {
|
|
716
|
+
"kind": {
|
|
717
|
+
"const": "realized"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"required": [
|
|
721
|
+
"kind"
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"$ref": "#/$defs/Path"
|
|
742
726
|
},
|
|
743
727
|
{
|
|
744
728
|
"$ref": "#/$defs/Timestamp"
|
|
745
729
|
}
|
|
746
730
|
],
|
|
747
|
-
"
|
|
748
|
-
"$anchor": "ResourceMeta"
|
|
731
|
+
"$anchor": "ResourceMetaBase"
|
|
749
732
|
},
|
|
750
733
|
"ResourcePotentialInput": {
|
|
751
734
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -798,6 +781,23 @@
|
|
|
798
781
|
"unevaluatedProperties": false,
|
|
799
782
|
"$anchor": "ResourcePotentialOutput"
|
|
800
783
|
},
|
|
784
|
+
"ResourceRawMeta": {
|
|
785
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
786
|
+
"type": "object",
|
|
787
|
+
"allOf": [
|
|
788
|
+
{
|
|
789
|
+
"$ref": "#/$defs/ResourceBase"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"$ref": "#/$defs/CanonicalRef"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"$ref": "#/$defs/Timestamp"
|
|
796
|
+
}
|
|
797
|
+
],
|
|
798
|
+
"unevaluatedProperties": false,
|
|
799
|
+
"$anchor": "ResourceRawMeta"
|
|
800
|
+
},
|
|
801
801
|
"ResourceRoleId": {
|
|
802
802
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
803
803
|
"type": "string",
|
|
@@ -841,12 +841,36 @@
|
|
|
841
841
|
],
|
|
842
842
|
"$anchor": "ResourceSocket"
|
|
843
843
|
},
|
|
844
|
+
"ResourceTypeBase": {
|
|
845
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
846
|
+
"type": "object",
|
|
847
|
+
"allOf": [
|
|
848
|
+
{
|
|
849
|
+
"$ref": "#/$defs/IdentifiableDocumented"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"properties": {
|
|
853
|
+
"id": {
|
|
854
|
+
"$ref": "#/$defs/ResourceTypeId"
|
|
855
|
+
},
|
|
856
|
+
"resourceFormatId": {
|
|
857
|
+
"$ref": "#/$defs/ResourceFormatId"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"required": [
|
|
861
|
+
"id",
|
|
862
|
+
"resourceFormatId"
|
|
863
|
+
]
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"$anchor": "ResourceTypeBase"
|
|
867
|
+
},
|
|
844
868
|
"ResourceTypeData": {
|
|
845
869
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
846
870
|
"type": "object",
|
|
847
871
|
"allOf": [
|
|
848
872
|
{
|
|
849
|
-
"$ref": "#/$defs/
|
|
873
|
+
"$ref": "#/$defs/ResourceTypeBase"
|
|
850
874
|
},
|
|
851
875
|
{
|
|
852
876
|
"$ref": "#/$defs/ExtractionSchema"
|
|
@@ -865,7 +889,7 @@
|
|
|
865
889
|
"type": "object",
|
|
866
890
|
"allOf": [
|
|
867
891
|
{
|
|
868
|
-
"$ref": "#/$defs/
|
|
892
|
+
"$ref": "#/$defs/ResourceTypeBase"
|
|
869
893
|
},
|
|
870
894
|
{
|
|
871
895
|
"$ref": "#/$defs/Path"
|
|
@@ -1048,30 +1072,6 @@
|
|
|
1048
1072
|
],
|
|
1049
1073
|
"$anchor": "Timestamp"
|
|
1050
1074
|
},
|
|
1051
|
-
"TypeBase": {
|
|
1052
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1053
|
-
"type": "object",
|
|
1054
|
-
"allOf": [
|
|
1055
|
-
{
|
|
1056
|
-
"$ref": "#/$defs/IdentifiableDocumented"
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
"properties": {
|
|
1060
|
-
"id": {
|
|
1061
|
-
"$ref": "#/$defs/ResourceTypeId"
|
|
1062
|
-
},
|
|
1063
|
-
"resourceFormatId": {
|
|
1064
|
-
"$ref": "#/$defs/ResourceFormatId"
|
|
1065
|
-
}
|
|
1066
|
-
},
|
|
1067
|
-
"required": [
|
|
1068
|
-
"id",
|
|
1069
|
-
"resourceFormatId"
|
|
1070
|
-
]
|
|
1071
|
-
}
|
|
1072
|
-
],
|
|
1073
|
-
"$anchor": "TypeBase"
|
|
1074
|
-
},
|
|
1075
1075
|
"Uri": {
|
|
1076
1076
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1077
1077
|
"type": "object",
|
|
@@ -52,7 +52,7 @@ async function main() {
|
|
|
52
52
|
title: `ResourceData_${name}`,
|
|
53
53
|
type: 'object',
|
|
54
54
|
allOf: [
|
|
55
|
-
{ $ref: './Genesis.json#/$defs/
|
|
55
|
+
{ $ref: './Genesis.json#/$defs/ResourceMetaBase' },
|
|
56
56
|
{
|
|
57
57
|
type: 'object',
|
|
58
58
|
required: ['extractedData'],
|