@toolproof-npm/schema 0.1.44 → 0.1.45

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.
Files changed (28) hide show
  1. package/dist/_lib/test.js +38 -31
  2. package/dist/genesis/generated/resources/Genesis.json +742 -452
  3. package/dist/genesis/generated/schemas/Genesis.json +441 -166
  4. package/dist/genesis/generated/schemas/Job.json +26 -26
  5. package/dist/genesis/generated/schemas/ResourceFormat.json +9 -9
  6. package/dist/genesis/generated/schemas/ResourceType.json +317 -42
  7. package/dist/genesis/generated/schemas/StatefulStrategy.json +76 -76
  8. package/dist/genesis/generated/schemas/StatelessStrategy.json +40 -40
  9. package/dist/{_lib → genesis/generated}/types/Resource_Job.d.ts +16 -16
  10. package/dist/{_lib → genesis/generated}/types/Resource_ResourceFormat.d.ts +10 -10
  11. package/dist/{_lib → genesis/generated}/types/Resource_ResourceType.d.ts +15 -15
  12. package/dist/{_lib → genesis/generated}/types/Resource_StatelessStrategy.d.ts +16 -16
  13. package/dist/{_lib → genesis/generated}/types/types.d.ts +289 -261
  14. package/dist/genesis/resourceTypes/Genesis.json +530 -250
  15. package/dist/index.d.ts +6 -6
  16. package/dist/index.js +2 -2
  17. package/dist/scripts/_lib/config.js +2 -2
  18. package/dist/scripts/brandFactories.d.ts +37 -23
  19. package/dist/scripts/brandFactories.js +26 -29
  20. package/dist/scripts/extractSchemas.js +1 -1
  21. package/dist/scripts/generateResourceEnvelopes.js +6 -6
  22. package/dist/scripts/generateTypes.js +38 -26
  23. package/package.json +1 -1
  24. /package/dist/{_lib → genesis/generated}/types/Resource_Job.js +0 -0
  25. /package/dist/{_lib → genesis/generated}/types/Resource_ResourceFormat.js +0 -0
  26. /package/dist/{_lib → genesis/generated}/types/Resource_ResourceType.js +0 -0
  27. /package/dist/{_lib → genesis/generated}/types/Resource_StatelessStrategy.js +0 -0
  28. /package/dist/{_lib → genesis/generated}/types/types.js +0 -0
@@ -3,31 +3,31 @@ export type Resource_Job = ResourceMetaBase & {
3
3
  extractedData: Job;
4
4
  };
5
5
  export type ResourceMetaBase = ResourceBase &
6
- CreationContext &
6
+ CreationContextWrapper &
7
7
  ResourceKind & {
8
8
  kind: "materialized";
9
9
  } & Timestamp &
10
10
  Path;
11
11
  export type ResourceBase = {
12
12
  identity: string;
13
- resourceTypeId: string;
13
+ resourceTypeRef: string;
14
14
  };
15
15
  export type Job = {
16
16
  identity: string;
17
- implementation: string;
17
+ implementationUri: string;
18
18
  } & Documented &
19
- RolesOuter;
20
- export type Documented = Name & Description;
19
+ RolesWrapper;
20
+ export type Documented = Named & Described;
21
21
  export type ResourceRoleValue = {
22
- resourceTypeId: string;
22
+ resourceTypeRef: string;
23
23
  } & Documented;
24
24
 
25
- export interface CreationContext {
26
- creationContext: CreationContextValue;
25
+ export interface CreationContextWrapper {
26
+ creationContext: CreationContext;
27
27
  }
28
- export interface CreationContextValue {
29
- executionId: string;
30
- resourceRoleId: string;
28
+ export interface CreationContext {
29
+ executionRef: string;
30
+ resourceRoleRef: string;
31
31
  }
32
32
  export interface ResourceKind {
33
33
  kind: "missing" | "potential-input" | "potential-output" | "materialized";
@@ -38,16 +38,16 @@ export interface Timestamp {
38
38
  export interface Path {
39
39
  path: string;
40
40
  }
41
- export interface Name {
41
+ export interface Named {
42
42
  name: string;
43
43
  }
44
- export interface Description {
44
+ export interface Described {
45
45
  description: string;
46
46
  }
47
- export interface RolesOuter {
48
- roles: RolesInner;
47
+ export interface RolesWrapper {
48
+ roles: Roles;
49
49
  }
50
- export interface RolesInner {
50
+ export interface Roles {
51
51
  inputMap: RoleMap;
52
52
  outputMap: RoleMap;
53
53
  }
@@ -3,26 +3,26 @@ export type Resource_ResourceFormat = ResourceMetaBase & {
3
3
  extractedData: ResourceFormat;
4
4
  };
5
5
  export type ResourceMetaBase = ResourceBase &
6
- CreationContext &
6
+ CreationContextWrapper &
7
7
  ResourceKind & {
8
8
  kind: "materialized";
9
9
  } & Timestamp &
10
10
  Path;
11
11
  export type ResourceBase = {
12
12
  identity: string;
13
- resourceTypeId: string;
13
+ resourceTypeRef: string;
14
14
  };
15
15
  export type ResourceFormat = {
16
16
  identity: string;
17
17
  } & Documented;
18
- export type Documented = Name & Description;
18
+ export type Documented = Named & Described;
19
19
 
20
- export interface CreationContext {
21
- creationContext: CreationContextValue;
20
+ export interface CreationContextWrapper {
21
+ creationContext: CreationContext;
22
22
  }
23
- export interface CreationContextValue {
24
- executionId: string;
25
- resourceRoleId: string;
23
+ export interface CreationContext {
24
+ executionRef: string;
25
+ resourceRoleRef: string;
26
26
  }
27
27
  export interface ResourceKind {
28
28
  kind: "missing" | "potential-input" | "potential-output" | "materialized";
@@ -33,9 +33,9 @@ export interface Timestamp {
33
33
  export interface Path {
34
34
  path: string;
35
35
  }
36
- export interface Name {
36
+ export interface Named {
37
37
  name: string;
38
38
  }
39
- export interface Description {
39
+ export interface Described {
40
40
  description: string;
41
41
  }
@@ -3,23 +3,23 @@ export type Resource_ResourceType = ResourceMetaBase & {
3
3
  extractedData: ResourceType;
4
4
  };
5
5
  export type ResourceMetaBase = ResourceBase &
6
- CreationContext &
6
+ CreationContextWrapper &
7
7
  ResourceKind & {
8
8
  kind: "materialized";
9
9
  } & Timestamp &
10
10
  Path;
11
11
  export type ResourceBase = {
12
12
  identity: string;
13
- resourceTypeId: string;
13
+ resourceTypeRef: string;
14
14
  };
15
15
  export type ResourceType = {
16
16
  identity: string;
17
- resourceFormatId: string;
17
+ resourceFormatRef: string;
18
18
  } & Documented &
19
- ExtractionSchema & {
19
+ ExtractionSchemaWrapper & {
20
20
  };
21
- export type Documented = Name & Description;
22
- export type ExtractionSchemaValue = {
21
+ export type Documented = Named & Described;
22
+ export type ExtractionSchema = {
23
23
  } & {
24
24
  $schema: "https://json-schema.org/draft/2020-12/schema";
25
25
  $defs?: {
@@ -35,12 +35,12 @@ export type ExtractionSchemaValue = {
35
35
  $anchor: string;
36
36
  };
37
37
 
38
- export interface CreationContext {
39
- creationContext: CreationContextValue;
38
+ export interface CreationContextWrapper {
39
+ creationContext: CreationContext;
40
40
  }
41
- export interface CreationContextValue {
42
- executionId: string;
43
- resourceRoleId: string;
41
+ export interface CreationContext {
42
+ executionRef: string;
43
+ resourceRoleRef: string;
44
44
  }
45
45
  export interface ResourceKind {
46
46
  kind: "missing" | "potential-input" | "potential-output" | "materialized";
@@ -51,12 +51,12 @@ export interface Timestamp {
51
51
  export interface Path {
52
52
  path: string;
53
53
  }
54
- export interface Name {
54
+ export interface Named {
55
55
  name: string;
56
56
  }
57
- export interface Description {
57
+ export interface Described {
58
58
  description: string;
59
59
  }
60
- export interface ExtractionSchema {
61
- extractionSchema: ExtractionSchemaValue;
60
+ export interface ExtractionSchemaWrapper {
61
+ extractionSchema: ExtractionSchema;
62
62
  }
@@ -3,14 +3,14 @@ export type Resource_StatelessStrategy = ResourceMetaBase & {
3
3
  extractedData: StatelessStrategy;
4
4
  };
5
5
  export type ResourceMetaBase = ResourceBase &
6
- CreationContext &
6
+ CreationContextWrapper &
7
7
  ResourceKind & {
8
8
  kind: "materialized";
9
9
  } & Timestamp &
10
10
  Path;
11
11
  export type ResourceBase = {
12
12
  identity: string;
13
- resourceTypeId: string;
13
+ resourceTypeRef: string;
14
14
  };
15
15
  export type StatelessStrategy = {
16
16
  identity: string;
@@ -24,33 +24,33 @@ export type WorkStep = StepKind & {
24
24
  };
25
25
  export type Execution = {
26
26
  identity: string;
27
- jobId: string;
28
- } & RoleBindingsOuter;
27
+ jobRef: string;
28
+ } & RoleBindingsWrapper;
29
29
  export type BranchStep = StepKind & {
30
30
  /**
31
31
  * @minItems 1
32
32
  */
33
- cases: [ConditionalWrapper, ...ConditionalWrapper[]];
33
+ cases: [Conditional, ...Conditional[]];
34
34
  identity: string;
35
35
  kind: "branch";
36
36
  };
37
37
  export type WhileStep = StepKind & {
38
- case: ConditionalWrapper;
38
+ case: Conditional;
39
39
  identity: string;
40
40
  kind: "while";
41
41
  };
42
42
  export type ForStep = StepKind & {
43
- case: ConditionalWrapper;
43
+ case: Conditional;
44
44
  identity: string;
45
45
  kind: "for";
46
46
  };
47
47
 
48
- export interface CreationContext {
49
- creationContext: CreationContextValue;
48
+ export interface CreationContextWrapper {
49
+ creationContext: CreationContext;
50
50
  }
51
- export interface CreationContextValue {
52
- executionId: string;
53
- resourceRoleId: string;
51
+ export interface CreationContext {
52
+ executionRef: string;
53
+ resourceRoleRef: string;
54
54
  }
55
55
  export interface ResourceKind {
56
56
  kind: "missing" | "potential-input" | "potential-output" | "materialized";
@@ -64,17 +64,17 @@ export interface Path {
64
64
  export interface StepKind {
65
65
  kind: "work" | "branch" | "while" | "for";
66
66
  }
67
- export interface RoleBindingsOuter {
68
- roleBindings: RoleBindingsInner;
67
+ export interface RoleBindingsWrapper {
68
+ roleBindings: RoleBindings;
69
69
  }
70
- export interface RoleBindingsInner {
70
+ export interface RoleBindings {
71
71
  inputBindingMap: RoleBindingMap;
72
72
  outputBindingMap: RoleBindingMap;
73
73
  }
74
74
  export interface RoleBindingMap {
75
75
  [k: string]: string;
76
76
  }
77
- export interface ConditionalWrapper {
77
+ export interface Conditional {
78
78
  what: WorkStep;
79
79
  when: WorkStep;
80
80
  }