@toolproof-npm/schema 0.1.81 → 0.1.83

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/genesis/generated/dependencies_ordered.json +69 -21
  2. package/dist/genesis/generated/resourceTypes/Genesis.json +46 -76
  3. package/dist/genesis/generated/resources/Genesis.json +56 -96
  4. package/dist/genesis/generated/schemas/Genesis.json +104 -128
  5. package/dist/genesis/generated/schemas/RunRecording.d.ts +2 -0
  6. package/dist/genesis/generated/schemas/RunRecording.js +2 -0
  7. package/dist/genesis/generated/schemas/RunRecording.json +998 -0
  8. package/dist/genesis/generated/schemas/RunnableStrategy.d.ts +2 -0
  9. package/dist/genesis/generated/schemas/RunnableStrategy.js +2 -0
  10. package/dist/genesis/generated/schemas/{StrategyRun.json → RunnableStrategy.json} +21 -23
  11. package/dist/genesis/generated/schemas/StatefulStrategy.json +0 -2
  12. package/dist/genesis/generated/terminals.json +2 -1
  13. package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +5 -6
  14. package/dist/genesis/generated/types/Resource_RunnableStrategy.d.ts +3 -0
  15. package/dist/genesis/generated/types/types.d.ts +661 -209
  16. package/dist/index.d.ts +4 -3
  17. package/dist/index.js +2 -1
  18. package/package.json +2 -2
  19. package/dist/genesis/generated/resource-envelopes/Genesis.d.ts +0 -2
  20. package/dist/genesis/generated/resource-envelopes/Genesis.js +0 -2
  21. package/dist/genesis/generated/resource-envelopes/Genesis.json +0 -2337
  22. package/dist/genesis/generated/resource-type-envelopes/Genesis.d.ts +0 -2
  23. package/dist/genesis/generated/resource-type-envelopes/Genesis.js +0 -2
  24. package/dist/genesis/generated/resource-type-envelopes/Genesis.json +0 -1757
  25. package/dist/genesis/generated/schemas/StrategyRun.d.ts +0 -2
  26. package/dist/genesis/generated/schemas/StrategyRun.js +0 -2
  27. package/dist/genesis/generated/types/Resource_StrategyRun.d.ts +0 -3
  28. /package/dist/genesis/generated/types/{Resource_StrategyRun.js → Resource_RunnableStrategy.js} +0 -0
@@ -0,0 +1,2 @@
1
+ import schema from './RunnableStrategy.json';
2
+ export default schema;
@@ -0,0 +1,2 @@
1
+ import schema from './RunnableStrategy.json' with { type: 'json' };
2
+ export default schema;
@@ -7,28 +7,28 @@
7
7
  "$ref": "#/$defs/StrategyThreadMapWrapper"
8
8
  },
9
9
  {
10
- "$comment": "Reusing StrategyStateWrapper to include the strategy state in the StrategyRun. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
10
+ "$comment": "Reusing StrategyStateWrapper to include the strategy state in the RunnableStrategy. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
11
11
  "$ref": "#/$defs/StrategyStateWrapper"
12
12
  }
13
13
  ],
14
14
  "properties": {
15
15
  "identity": {
16
- "$ref": "#/$defs/StrategyRunIdentity"
16
+ "$ref": "#/$defs/RunnableStrategyIdentity"
17
+ },
18
+ "runnableStrategyContext": {
19
+ "$ref": "#/$defs/RunnableStrategyContext"
17
20
  },
18
21
  "statefulStrategyRef": {
19
22
  "$ref": "#/$defs/StatefulStrategyIdentity"
20
- },
21
- "strategyRunContext": {
22
- "$ref": "#/$defs/StrategyRunContext"
23
23
  }
24
24
  },
25
25
  "required": [
26
26
  "identity",
27
27
  "statefulStrategyRef",
28
- "strategyRunContext"
28
+ "runnableStrategyContext"
29
29
  ],
30
30
  "unevaluatedProperties": false,
31
- "$anchor": "StrategyRun",
31
+ "$anchor": "RunnableStrategy",
32
32
  "$defs": {
33
33
  "StrategyThreadMapWrapper": {
34
34
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -41,7 +41,6 @@
41
41
  "required": [
42
42
  "strategyThreadMap"
43
43
  ],
44
- "unevaluatedProperties": false,
45
44
  "$anchor": "StrategyThreadMapWrapper"
46
45
  },
47
46
  "StrategyStateWrapper": {
@@ -55,22 +54,15 @@
55
54
  "required": [
56
55
  "strategyState"
57
56
  ],
58
- "unevaluatedProperties": false,
59
57
  "$anchor": "StrategyStateWrapper"
60
58
  },
61
- "StrategyRunIdentity": {
62
- "$schema": "https://json-schema.org/draft/2020-12/schema",
63
- "type": "string",
64
- "$anchor": "StrategyRunIdentity",
65
- "pattern": "^STRATEGY_RUN-.+$"
66
- },
67
- "StatefulStrategyIdentity": {
59
+ "RunnableStrategyIdentity": {
68
60
  "$schema": "https://json-schema.org/draft/2020-12/schema",
69
61
  "type": "string",
70
- "$anchor": "StatefulStrategyIdentity",
71
- "pattern": "^STATEFUL_STRATEGY-.+$"
62
+ "$anchor": "RunnableStrategyIdentity",
63
+ "pattern": "^RUNNABLE_STRATEGY-.+$"
72
64
  },
73
- "StrategyRunContext": {
65
+ "RunnableStrategyContext": {
74
66
  "$schema": "https://json-schema.org/draft/2020-12/schema",
75
67
  "type": "object",
76
68
  "properties": {
@@ -81,14 +73,20 @@
81
73
  "$ref": "#/$defs/Timestamp"
82
74
  },
83
75
  "status": {
84
- "$ref": "#/$defs/StrategyRunStatus"
76
+ "$ref": "#/$defs/RunnableStrategyStatus"
85
77
  }
86
78
  },
87
79
  "required": [
88
80
  "status"
89
81
  ],
90
82
  "unevaluatedProperties": false,
91
- "$anchor": "StrategyRunContext"
83
+ "$anchor": "RunnableStrategyContext"
84
+ },
85
+ "StatefulStrategyIdentity": {
86
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
87
+ "type": "string",
88
+ "$anchor": "StatefulStrategyIdentity",
89
+ "pattern": "^STATEFUL_STRATEGY-.+$"
92
90
  },
93
91
  "StrategyThreadMap": {
94
92
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -130,10 +128,10 @@
130
128
  ],
131
129
  "$anchor": "Timestamp"
132
130
  },
133
- "StrategyRunStatus": {
131
+ "RunnableStrategyStatus": {
134
132
  "$schema": "https://json-schema.org/draft/2020-12/schema",
135
133
  "type": "string",
136
- "$anchor": "StrategyRunStatus",
134
+ "$anchor": "RunnableStrategyStatus",
137
135
  "enum": [
138
136
  "pending",
139
137
  "running",
@@ -31,7 +31,6 @@
31
31
  "required": [
32
32
  "statelessStrategy"
33
33
  ],
34
- "unevaluatedProperties": false,
35
34
  "$anchor": "StatelessStrategyWrapper"
36
35
  },
37
36
  "StrategyStateWrapper": {
@@ -45,7 +44,6 @@
45
44
  "required": [
46
45
  "strategyState"
47
46
  ],
48
- "unevaluatedProperties": false,
49
47
  "$anchor": "StrategyStateWrapper"
50
48
  },
51
49
  "StatefulStrategyIdentity": {
@@ -5,5 +5,6 @@
5
5
  "ResourceMeta",
6
6
  "Job",
7
7
  "StatefulStrategy",
8
- "StrategyRunUpdate"
8
+ "RunnableStrategyUpdate",
9
+ "RunRecording"
9
10
  ]
@@ -13,7 +13,6 @@ export type ResourceTypeGenesis = {
13
13
  "Execution": ResourceType;
14
14
  "ExecutionIdentity": ResourceType;
15
15
  "ExecutionSocket": ResourceType;
16
- "ExecutionSocketMaterialized": ResourceType;
17
16
  "ExtractionSchema": ResourceType;
18
17
  "ExtractionSchemaWrapper": ResourceType;
19
18
  "ForStep": ResourceType;
@@ -60,6 +59,11 @@ export type ResourceTypeGenesis = {
60
59
  "RunEventStepKind": ResourceType;
61
60
  "RunEventStepMetaData": ResourceType;
62
61
  "RunEventUpdates": ResourceType;
62
+ "RunnableStrategy": ResourceType;
63
+ "RunnableStrategyContext": ResourceType;
64
+ "RunnableStrategyIdentity": ResourceType;
65
+ "RunnableStrategyStatus": ResourceType;
66
+ "RunnableStrategyUpdate": ResourceType;
63
67
  "RunRecording": ResourceType;
64
68
  "StatefulStrategy": ResourceType;
65
69
  "StatefulStrategyIdentity": ResourceType;
@@ -68,11 +72,6 @@ export type ResourceTypeGenesis = {
68
72
  "StatelessStrategyWrapper": ResourceType;
69
73
  "Step": ResourceType;
70
74
  "StepKind": ResourceType;
71
- "StrategyRun": ResourceType;
72
- "StrategyRunContext": ResourceType;
73
- "StrategyRunIdentity": ResourceType;
74
- "StrategyRunStatus": ResourceType;
75
- "StrategyRunUpdate": ResourceType;
76
75
  "StrategyState": ResourceType;
77
76
  "StrategyStateDelta": ResourceType;
78
77
  "StrategyStateWrapper": ResourceType;
@@ -0,0 +1,3 @@
1
+ // Auto-generated strict composite type. Do not edit.
2
+ import type { ResourceMetaBase, RunnableStrategy as ExtractedData } from './types.js';
3
+ export type Resource_RunnableStrategy = ResourceMetaBase & { extractedData: ExtractedData };