@toolproof-npm/schema 0.1.68 → 0.1.70
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/README.md +59 -59
- package/dist/genesis/generated/dependencies_ordered.json +4 -1
- package/dist/genesis/generated/resourceTypes/Genesis.json +25 -3
- package/dist/genesis/generated/resources/Genesis.json +35 -3
- package/dist/genesis/generated/schemas/Genesis.json +17 -1
- package/dist/genesis/generated/schemas/StatefulStrategy.json +2 -0
- package/dist/genesis/generated/schemas/StrategyRun.json +202 -187
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +1 -0
- package/dist/genesis/generated/types/types.d.ts +15 -5
- package/dist/index.d.ts +1 -1
- package/package.json +59 -59
package/README.md
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
# @toolproof-npm/schema
|
|
2
|
-
|
|
3
|
-
JSON schemas and TypeScript types for ToolProof...
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pnpm add @toolproof-npm/schema
|
|
9
|
-
# or
|
|
10
|
-
npm install @toolproof-npm/schema
|
|
11
|
-
# or
|
|
12
|
-
yarn add @toolproof-npm/schema
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
### Import Schemas and Types
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { /* schemas and types */ } from '@toolproof-npm/schema';
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Features
|
|
24
|
-
|
|
25
|
-
- JSON Schema definitions with $defs subschemas
|
|
26
|
-
- Generated TypeScript types from JSON schemas
|
|
27
|
-
- Runtime schema validation support
|
|
28
|
-
- Extractors for non-JSON resource types
|
|
29
|
-
- Schema bundling utilities
|
|
30
|
-
|
|
31
|
-
## Development
|
|
32
|
-
|
|
33
|
-
### Generate Types
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
pnpm run generateTypes
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Build
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
pnpm run build
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Update (Clean build + generate types)
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
pnpm run update
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Requirements
|
|
52
|
-
|
|
53
|
-
- Node.js 16+
|
|
54
|
-
- TypeScript 4.5+ (for TypeScript projects)
|
|
55
|
-
|
|
56
|
-
## License
|
|
57
|
-
|
|
58
|
-
MIT
|
|
59
|
-
|
|
1
|
+
# @toolproof-npm/schema
|
|
2
|
+
|
|
3
|
+
JSON schemas and TypeScript types for ToolProof...
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @toolproof-npm/schema
|
|
9
|
+
# or
|
|
10
|
+
npm install @toolproof-npm/schema
|
|
11
|
+
# or
|
|
12
|
+
yarn add @toolproof-npm/schema
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
### Import Schemas and Types
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { /* schemas and types */ } from '@toolproof-npm/schema';
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
- JSON Schema definitions with $defs subschemas
|
|
26
|
+
- Generated TypeScript types from JSON schemas
|
|
27
|
+
- Runtime schema validation support
|
|
28
|
+
- Extractors for non-JSON resource types
|
|
29
|
+
- Schema bundling utilities
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
### Generate Types
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm run generateTypes
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Build
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pnpm run build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Update (Clean build + generate types)
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pnpm run update
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Requirements
|
|
52
|
+
|
|
53
|
+
- Node.js 16+
|
|
54
|
+
- TypeScript 4.5+ (for TypeScript projects)
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT
|
|
59
|
+
|
|
@@ -191,8 +191,11 @@
|
|
|
191
191
|
"Step",
|
|
192
192
|
"StrategyThreadIdentity"
|
|
193
193
|
],
|
|
194
|
+
"StrategyThreadMapWrapper": [
|
|
195
|
+
"StrategyThreadMap"
|
|
196
|
+
],
|
|
194
197
|
"StrategyRun": [
|
|
195
|
-
"
|
|
198
|
+
"StrategyThreadMapWrapper",
|
|
196
199
|
"StrategyStateWrapper",
|
|
197
200
|
"StrategyRunIdentity",
|
|
198
201
|
"StatefulStrategyIdentity",
|
|
@@ -1740,7 +1740,8 @@
|
|
|
1740
1740
|
"statelessStrategy": {
|
|
1741
1741
|
"$ref": "#/$defs/StatelessStrategy"
|
|
1742
1742
|
}
|
|
1743
|
-
}
|
|
1743
|
+
},
|
|
1744
|
+
"unevaluatedProperties": false
|
|
1744
1745
|
}
|
|
1745
1746
|
},
|
|
1746
1747
|
"StrategyState": {
|
|
@@ -1795,7 +1796,8 @@
|
|
|
1795
1796
|
"strategyState": {
|
|
1796
1797
|
"$ref": "#/$defs/StrategyState"
|
|
1797
1798
|
}
|
|
1798
|
-
}
|
|
1799
|
+
},
|
|
1800
|
+
"unevaluatedProperties": false
|
|
1799
1801
|
}
|
|
1800
1802
|
},
|
|
1801
1803
|
"StatefulStrategyIdentity": {
|
|
@@ -1927,6 +1929,26 @@
|
|
|
1927
1929
|
"$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
|
|
1928
1930
|
}
|
|
1929
1931
|
},
|
|
1932
|
+
"StrategyThreadMapWrapper": {
|
|
1933
|
+
"identity": "TYPE-StrategyThreadMapWrapper",
|
|
1934
|
+
"name": "StrategyThreadMapWrapper",
|
|
1935
|
+
"description": "dummy-description",
|
|
1936
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1937
|
+
"extractionSchema": {
|
|
1938
|
+
"$anchor": "StrategyThreadMapWrapper",
|
|
1939
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1940
|
+
"type": "object",
|
|
1941
|
+
"required": [
|
|
1942
|
+
"strategyThreadMap"
|
|
1943
|
+
],
|
|
1944
|
+
"properties": {
|
|
1945
|
+
"strategyThreadMap": {
|
|
1946
|
+
"$ref": "#/$defs/StrategyThreadMap"
|
|
1947
|
+
}
|
|
1948
|
+
},
|
|
1949
|
+
"unevaluatedProperties": false
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1930
1952
|
"StrategyRun": {
|
|
1931
1953
|
"identity": "TYPE-StrategyRun",
|
|
1932
1954
|
"name": "StrategyRun",
|
|
@@ -1955,7 +1977,7 @@
|
|
|
1955
1977
|
"allOf": [
|
|
1956
1978
|
{
|
|
1957
1979
|
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
1958
|
-
"$ref": "#/$defs/
|
|
1980
|
+
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
1959
1981
|
},
|
|
1960
1982
|
{
|
|
1961
1983
|
"$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.",
|
|
@@ -2301,7 +2301,8 @@
|
|
|
2301
2301
|
"statelessStrategy": {
|
|
2302
2302
|
"$ref": "#/$defs/StatelessStrategy"
|
|
2303
2303
|
}
|
|
2304
|
-
}
|
|
2304
|
+
},
|
|
2305
|
+
"unevaluatedProperties": false
|
|
2305
2306
|
}
|
|
2306
2307
|
}
|
|
2307
2308
|
},
|
|
@@ -2376,7 +2377,8 @@
|
|
|
2376
2377
|
"strategyState": {
|
|
2377
2378
|
"$ref": "#/$defs/StrategyState"
|
|
2378
2379
|
}
|
|
2379
|
-
}
|
|
2380
|
+
},
|
|
2381
|
+
"unevaluatedProperties": false
|
|
2380
2382
|
}
|
|
2381
2383
|
}
|
|
2382
2384
|
},
|
|
@@ -2579,6 +2581,36 @@
|
|
|
2579
2581
|
}
|
|
2580
2582
|
}
|
|
2581
2583
|
},
|
|
2584
|
+
"StrategyThreadMapWrapper": {
|
|
2585
|
+
"identity": "RESOURCE-StrategyThreadMapWrapper",
|
|
2586
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2587
|
+
"creationContext": {
|
|
2588
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2589
|
+
"executionRef": "EXECUTION-StrategyThreadMapWrapper"
|
|
2590
|
+
},
|
|
2591
|
+
"kind": "materialized",
|
|
2592
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2593
|
+
"extractedData": {
|
|
2594
|
+
"identity": "TYPE-StrategyThreadMapWrapper",
|
|
2595
|
+
"name": "StrategyThreadMapWrapper",
|
|
2596
|
+
"description": "dummy-description",
|
|
2597
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2598
|
+
"extractionSchema": {
|
|
2599
|
+
"$anchor": "StrategyThreadMapWrapper",
|
|
2600
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2601
|
+
"type": "object",
|
|
2602
|
+
"required": [
|
|
2603
|
+
"strategyThreadMap"
|
|
2604
|
+
],
|
|
2605
|
+
"properties": {
|
|
2606
|
+
"strategyThreadMap": {
|
|
2607
|
+
"$ref": "#/$defs/StrategyThreadMap"
|
|
2608
|
+
}
|
|
2609
|
+
},
|
|
2610
|
+
"unevaluatedProperties": false
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2582
2614
|
"StrategyRun": {
|
|
2583
2615
|
"identity": "RESOURCE-StrategyRun",
|
|
2584
2616
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
@@ -2616,7 +2648,7 @@
|
|
|
2616
2648
|
"allOf": [
|
|
2617
2649
|
{
|
|
2618
2650
|
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
2619
|
-
"$ref": "#/$defs/
|
|
2651
|
+
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
2620
2652
|
},
|
|
2621
2653
|
{
|
|
2622
2654
|
"$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.",
|
|
@@ -1309,6 +1309,7 @@
|
|
|
1309
1309
|
"required": [
|
|
1310
1310
|
"statelessStrategy"
|
|
1311
1311
|
],
|
|
1312
|
+
"unevaluatedProperties": false,
|
|
1312
1313
|
"$anchor": "StatelessStrategyWrapper"
|
|
1313
1314
|
},
|
|
1314
1315
|
"Step": {
|
|
@@ -1356,7 +1357,7 @@
|
|
|
1356
1357
|
"allOf": [
|
|
1357
1358
|
{
|
|
1358
1359
|
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
1359
|
-
"$ref": "#/$defs/
|
|
1360
|
+
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
1360
1361
|
},
|
|
1361
1362
|
{
|
|
1362
1363
|
"$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.",
|
|
@@ -1461,6 +1462,7 @@
|
|
|
1461
1462
|
"required": [
|
|
1462
1463
|
"strategyState"
|
|
1463
1464
|
],
|
|
1465
|
+
"unevaluatedProperties": false,
|
|
1464
1466
|
"$anchor": "StrategyStateWrapper"
|
|
1465
1467
|
},
|
|
1466
1468
|
"StrategyThreadIdentity": {
|
|
@@ -1484,6 +1486,20 @@
|
|
|
1484
1486
|
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
1485
1487
|
}
|
|
1486
1488
|
},
|
|
1489
|
+
"StrategyThreadMapWrapper": {
|
|
1490
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1491
|
+
"type": "object",
|
|
1492
|
+
"properties": {
|
|
1493
|
+
"strategyThreadMap": {
|
|
1494
|
+
"$ref": "#/$defs/StrategyThreadMap"
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
"required": [
|
|
1498
|
+
"strategyThreadMap"
|
|
1499
|
+
],
|
|
1500
|
+
"unevaluatedProperties": false,
|
|
1501
|
+
"$anchor": "StrategyThreadMapWrapper"
|
|
1502
|
+
},
|
|
1487
1503
|
"Timestamp": {
|
|
1488
1504
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1489
1505
|
"type": "object",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"required": [
|
|
32
32
|
"statelessStrategy"
|
|
33
33
|
],
|
|
34
|
+
"unevaluatedProperties": false,
|
|
34
35
|
"$anchor": "StatelessStrategyWrapper"
|
|
35
36
|
},
|
|
36
37
|
"StrategyStateWrapper": {
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
"required": [
|
|
45
46
|
"strategyState"
|
|
46
47
|
],
|
|
48
|
+
"unevaluatedProperties": false,
|
|
47
49
|
"$anchor": "StrategyStateWrapper"
|
|
48
50
|
},
|
|
49
51
|
"StatefulStrategyIdentity": {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
6
|
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
7
|
-
"$ref": "#/$defs/
|
|
7
|
+
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
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.",
|
|
@@ -30,20 +30,19 @@
|
|
|
30
30
|
"unevaluatedProperties": false,
|
|
31
31
|
"$anchor": "StrategyRun",
|
|
32
32
|
"$defs": {
|
|
33
|
-
"
|
|
33
|
+
"StrategyThreadMapWrapper": {
|
|
34
34
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
35
35
|
"type": "object",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"$ref": "#/$defs/Step"
|
|
36
|
+
"properties": {
|
|
37
|
+
"strategyThreadMap": {
|
|
38
|
+
"$ref": "#/$defs/StrategyThreadMap"
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
"required": [
|
|
42
|
+
"strategyThreadMap"
|
|
43
|
+
],
|
|
44
|
+
"unevaluatedProperties": false,
|
|
45
|
+
"$anchor": "StrategyThreadMapWrapper"
|
|
47
46
|
},
|
|
48
47
|
"StrategyStateWrapper": {
|
|
49
48
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -56,6 +55,7 @@
|
|
|
56
55
|
"required": [
|
|
57
56
|
"strategyState"
|
|
58
57
|
],
|
|
58
|
+
"unevaluatedProperties": false,
|
|
59
59
|
"$anchor": "StrategyStateWrapper"
|
|
60
60
|
},
|
|
61
61
|
"StrategyRunIdentity": {
|
|
@@ -90,31 +90,20 @@
|
|
|
90
90
|
"unevaluatedProperties": false,
|
|
91
91
|
"$anchor": "StrategyRunContext"
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"StrategyThreadMap": {
|
|
94
94
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
95
95
|
"type": "object",
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
{
|
|
101
|
-
"$ref": "#/$defs/BranchStep"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"$ref": "#/$defs/WhileStep"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"$ref": "#/$defs/ForStep"
|
|
96
|
+
"additionalProperties": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": {
|
|
99
|
+
"$ref": "#/$defs/Step"
|
|
108
100
|
}
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
"$
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"type": "string",
|
|
116
|
-
"$anchor": "StrategyThreadIdentity",
|
|
117
|
-
"pattern": "^STRATEGY_THREAD-.+$"
|
|
101
|
+
},
|
|
102
|
+
"$anchor": "StrategyThreadMap",
|
|
103
|
+
"$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads.",
|
|
104
|
+
"propertyNames": {
|
|
105
|
+
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
106
|
+
}
|
|
118
107
|
},
|
|
119
108
|
"StrategyState": {
|
|
120
109
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -172,114 +161,31 @@
|
|
|
172
161
|
"cancelled"
|
|
173
162
|
]
|
|
174
163
|
},
|
|
175
|
-
"
|
|
164
|
+
"Step": {
|
|
176
165
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
177
166
|
"type": "object",
|
|
178
|
-
"
|
|
167
|
+
"oneOf": [
|
|
179
168
|
{
|
|
180
|
-
"$ref": "#/$defs/
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"properties": {
|
|
184
|
-
"execution": {
|
|
185
|
-
"$ref": "#/$defs/Execution"
|
|
186
|
-
},
|
|
187
|
-
"identity": {
|
|
188
|
-
"$ref": "#/$defs/WorkStepIdentity"
|
|
169
|
+
"$ref": "#/$defs/WorkStep"
|
|
189
170
|
},
|
|
190
|
-
"kind": {
|
|
191
|
-
"const": "work"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"required": [
|
|
195
|
-
"identity",
|
|
196
|
-
"kind",
|
|
197
|
-
"execution"
|
|
198
|
-
],
|
|
199
|
-
"$anchor": "WorkStep"
|
|
200
|
-
},
|
|
201
|
-
"BranchStep": {
|
|
202
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
203
|
-
"type": "object",
|
|
204
|
-
"allOf": [
|
|
205
171
|
{
|
|
206
|
-
"$ref": "#/$defs/
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
"properties": {
|
|
210
|
-
"cases": {
|
|
211
|
-
"type": "array",
|
|
212
|
-
"items": {
|
|
213
|
-
"$ref": "#/$defs/Conditional"
|
|
214
|
-
},
|
|
215
|
-
"minItems": 1,
|
|
216
|
-
"uniqueItems": true
|
|
217
|
-
},
|
|
218
|
-
"identity": {
|
|
219
|
-
"$ref": "#/$defs/BranchStepIdentity"
|
|
172
|
+
"$ref": "#/$defs/BranchStep"
|
|
220
173
|
},
|
|
221
|
-
"kind": {
|
|
222
|
-
"const": "branch"
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"required": [
|
|
226
|
-
"identity",
|
|
227
|
-
"kind",
|
|
228
|
-
"cases"
|
|
229
|
-
],
|
|
230
|
-
"$anchor": "BranchStep"
|
|
231
|
-
},
|
|
232
|
-
"WhileStep": {
|
|
233
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
234
|
-
"type": "object",
|
|
235
|
-
"allOf": [
|
|
236
174
|
{
|
|
237
|
-
"$ref": "#/$defs/
|
|
238
|
-
}
|
|
239
|
-
],
|
|
240
|
-
"properties": {
|
|
241
|
-
"case": {
|
|
242
|
-
"$ref": "#/$defs/Conditional"
|
|
243
|
-
},
|
|
244
|
-
"identity": {
|
|
245
|
-
"$ref": "#/$defs/WhileStepIdentity"
|
|
175
|
+
"$ref": "#/$defs/WhileStep"
|
|
246
176
|
},
|
|
247
|
-
|
|
248
|
-
"
|
|
177
|
+
{
|
|
178
|
+
"$ref": "#/$defs/ForStep"
|
|
249
179
|
}
|
|
250
|
-
},
|
|
251
|
-
"required": [
|
|
252
|
-
"identity",
|
|
253
|
-
"kind",
|
|
254
|
-
"case"
|
|
255
180
|
],
|
|
256
|
-
"
|
|
181
|
+
"unevaluatedProperties": false,
|
|
182
|
+
"$anchor": "Step"
|
|
257
183
|
},
|
|
258
|
-
"
|
|
184
|
+
"StrategyThreadIdentity": {
|
|
259
185
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
260
|
-
"type": "
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
"$ref": "#/$defs/StepKind"
|
|
264
|
-
}
|
|
265
|
-
],
|
|
266
|
-
"properties": {
|
|
267
|
-
"case": {
|
|
268
|
-
"$ref": "#/$defs/Conditional"
|
|
269
|
-
},
|
|
270
|
-
"identity": {
|
|
271
|
-
"$ref": "#/$defs/ForStepIdentity"
|
|
272
|
-
},
|
|
273
|
-
"kind": {
|
|
274
|
-
"const": "for"
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
"required": [
|
|
278
|
-
"identity",
|
|
279
|
-
"kind",
|
|
280
|
-
"case"
|
|
281
|
-
],
|
|
282
|
-
"$anchor": "ForStep"
|
|
186
|
+
"type": "string",
|
|
187
|
+
"$anchor": "StrategyThreadIdentity",
|
|
188
|
+
"pattern": "^STRATEGY_THREAD-.+$"
|
|
283
189
|
},
|
|
284
190
|
"ResourceMissing": {
|
|
285
191
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -396,89 +302,114 @@
|
|
|
396
302
|
"$anchor": "ExecutionIdentity",
|
|
397
303
|
"pattern": "^EXECUTION-.+$"
|
|
398
304
|
},
|
|
399
|
-
"
|
|
305
|
+
"WorkStep": {
|
|
400
306
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
401
307
|
"type": "object",
|
|
308
|
+
"allOf": [
|
|
309
|
+
{
|
|
310
|
+
"$ref": "#/$defs/StepKind"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
402
313
|
"properties": {
|
|
314
|
+
"execution": {
|
|
315
|
+
"$ref": "#/$defs/Execution"
|
|
316
|
+
},
|
|
317
|
+
"identity": {
|
|
318
|
+
"$ref": "#/$defs/WorkStepIdentity"
|
|
319
|
+
},
|
|
403
320
|
"kind": {
|
|
404
|
-
"
|
|
405
|
-
"enum": [
|
|
406
|
-
"work",
|
|
407
|
-
"branch",
|
|
408
|
-
"while",
|
|
409
|
-
"for"
|
|
410
|
-
]
|
|
321
|
+
"const": "work"
|
|
411
322
|
}
|
|
412
323
|
},
|
|
413
324
|
"required": [
|
|
414
|
-
"
|
|
325
|
+
"identity",
|
|
326
|
+
"kind",
|
|
327
|
+
"execution"
|
|
415
328
|
],
|
|
416
|
-
"$anchor": "
|
|
329
|
+
"$anchor": "WorkStep"
|
|
417
330
|
},
|
|
418
|
-
"
|
|
331
|
+
"BranchStep": {
|
|
419
332
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
420
333
|
"type": "object",
|
|
421
334
|
"allOf": [
|
|
422
335
|
{
|
|
423
|
-
"$
|
|
424
|
-
"$ref": "#/$defs/RoleBindingsWrapper"
|
|
336
|
+
"$ref": "#/$defs/StepKind"
|
|
425
337
|
}
|
|
426
338
|
],
|
|
427
339
|
"properties": {
|
|
340
|
+
"cases": {
|
|
341
|
+
"type": "array",
|
|
342
|
+
"items": {
|
|
343
|
+
"$ref": "#/$defs/Conditional"
|
|
344
|
+
},
|
|
345
|
+
"minItems": 1,
|
|
346
|
+
"uniqueItems": true
|
|
347
|
+
},
|
|
428
348
|
"identity": {
|
|
429
|
-
"$ref": "#/$defs/
|
|
349
|
+
"$ref": "#/$defs/BranchStepIdentity"
|
|
430
350
|
},
|
|
431
|
-
"
|
|
432
|
-
"
|
|
351
|
+
"kind": {
|
|
352
|
+
"const": "branch"
|
|
433
353
|
}
|
|
434
354
|
},
|
|
435
355
|
"required": [
|
|
436
356
|
"identity",
|
|
437
|
-
"
|
|
357
|
+
"kind",
|
|
358
|
+
"cases"
|
|
438
359
|
],
|
|
439
|
-
"$anchor": "
|
|
440
|
-
},
|
|
441
|
-
"WorkStepIdentity": {
|
|
442
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
443
|
-
"type": "string",
|
|
444
|
-
"$anchor": "WorkStepIdentity",
|
|
445
|
-
"pattern": "^WORKSTEP-.+$"
|
|
360
|
+
"$anchor": "BranchStep"
|
|
446
361
|
},
|
|
447
|
-
"
|
|
362
|
+
"WhileStep": {
|
|
448
363
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
449
364
|
"type": "object",
|
|
365
|
+
"allOf": [
|
|
366
|
+
{
|
|
367
|
+
"$ref": "#/$defs/StepKind"
|
|
368
|
+
}
|
|
369
|
+
],
|
|
450
370
|
"properties": {
|
|
451
|
-
"
|
|
452
|
-
"$ref": "#/$defs/
|
|
371
|
+
"case": {
|
|
372
|
+
"$ref": "#/$defs/Conditional"
|
|
453
373
|
},
|
|
454
|
-
"
|
|
455
|
-
"$ref": "#/$defs/
|
|
374
|
+
"identity": {
|
|
375
|
+
"$ref": "#/$defs/WhileStepIdentity"
|
|
376
|
+
},
|
|
377
|
+
"kind": {
|
|
378
|
+
"const": "while"
|
|
456
379
|
}
|
|
457
380
|
},
|
|
458
381
|
"required": [
|
|
459
|
-
"
|
|
460
|
-
"
|
|
382
|
+
"identity",
|
|
383
|
+
"kind",
|
|
384
|
+
"case"
|
|
461
385
|
],
|
|
462
|
-
"
|
|
463
|
-
"$anchor": "Conditional"
|
|
464
|
-
},
|
|
465
|
-
"BranchStepIdentity": {
|
|
466
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
467
|
-
"type": "string",
|
|
468
|
-
"$anchor": "BranchStepIdentity",
|
|
469
|
-
"pattern": "^BRANCHSTEP-.+$"
|
|
470
|
-
},
|
|
471
|
-
"WhileStepIdentity": {
|
|
472
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
473
|
-
"type": "string",
|
|
474
|
-
"$anchor": "WhileStepIdentity",
|
|
475
|
-
"pattern": "^WHILESTEP-.+$"
|
|
386
|
+
"$anchor": "WhileStep"
|
|
476
387
|
},
|
|
477
|
-
"
|
|
388
|
+
"ForStep": {
|
|
478
389
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
479
|
-
"type": "
|
|
480
|
-
"
|
|
481
|
-
|
|
390
|
+
"type": "object",
|
|
391
|
+
"allOf": [
|
|
392
|
+
{
|
|
393
|
+
"$ref": "#/$defs/StepKind"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
"properties": {
|
|
397
|
+
"case": {
|
|
398
|
+
"$ref": "#/$defs/Conditional"
|
|
399
|
+
},
|
|
400
|
+
"identity": {
|
|
401
|
+
"$ref": "#/$defs/ForStepIdentity"
|
|
402
|
+
},
|
|
403
|
+
"kind": {
|
|
404
|
+
"const": "for"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"required": [
|
|
408
|
+
"identity",
|
|
409
|
+
"kind",
|
|
410
|
+
"case"
|
|
411
|
+
],
|
|
412
|
+
"$anchor": "ForStep"
|
|
482
413
|
},
|
|
483
414
|
"ResourceBase": {
|
|
484
415
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -590,25 +521,89 @@
|
|
|
590
521
|
],
|
|
591
522
|
"$anchor": "JsonData"
|
|
592
523
|
},
|
|
593
|
-
"
|
|
524
|
+
"StepKind": {
|
|
594
525
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
595
526
|
"type": "object",
|
|
596
527
|
"properties": {
|
|
597
|
-
"
|
|
598
|
-
"
|
|
528
|
+
"kind": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"enum": [
|
|
531
|
+
"work",
|
|
532
|
+
"branch",
|
|
533
|
+
"while",
|
|
534
|
+
"for"
|
|
535
|
+
]
|
|
599
536
|
}
|
|
600
537
|
},
|
|
601
538
|
"required": [
|
|
602
|
-
"
|
|
539
|
+
"kind"
|
|
603
540
|
],
|
|
604
|
-
"$anchor": "
|
|
541
|
+
"$anchor": "StepKind"
|
|
605
542
|
},
|
|
606
|
-
"
|
|
543
|
+
"Execution": {
|
|
544
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
545
|
+
"type": "object",
|
|
546
|
+
"allOf": [
|
|
547
|
+
{
|
|
548
|
+
"$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
|
|
549
|
+
"$ref": "#/$defs/RoleBindingsWrapper"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"properties": {
|
|
553
|
+
"identity": {
|
|
554
|
+
"$ref": "#/$defs/ExecutionIdentity"
|
|
555
|
+
},
|
|
556
|
+
"jobRef": {
|
|
557
|
+
"$ref": "#/$defs/JobIdentity"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"required": [
|
|
561
|
+
"identity",
|
|
562
|
+
"jobRef"
|
|
563
|
+
],
|
|
564
|
+
"$anchor": "Execution"
|
|
565
|
+
},
|
|
566
|
+
"WorkStepIdentity": {
|
|
607
567
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
608
568
|
"type": "string",
|
|
609
|
-
"$anchor": "
|
|
610
|
-
"
|
|
611
|
-
|
|
569
|
+
"$anchor": "WorkStepIdentity",
|
|
570
|
+
"pattern": "^WORKSTEP-.+$"
|
|
571
|
+
},
|
|
572
|
+
"Conditional": {
|
|
573
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
574
|
+
"type": "object",
|
|
575
|
+
"properties": {
|
|
576
|
+
"what": {
|
|
577
|
+
"$ref": "#/$defs/WorkStep"
|
|
578
|
+
},
|
|
579
|
+
"when": {
|
|
580
|
+
"$ref": "#/$defs/WorkStep"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"required": [
|
|
584
|
+
"when",
|
|
585
|
+
"what"
|
|
586
|
+
],
|
|
587
|
+
"unevaluatedProperties": false,
|
|
588
|
+
"$anchor": "Conditional"
|
|
589
|
+
},
|
|
590
|
+
"BranchStepIdentity": {
|
|
591
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
592
|
+
"type": "string",
|
|
593
|
+
"$anchor": "BranchStepIdentity",
|
|
594
|
+
"pattern": "^BRANCHSTEP-.+$"
|
|
595
|
+
},
|
|
596
|
+
"WhileStepIdentity": {
|
|
597
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
598
|
+
"type": "string",
|
|
599
|
+
"$anchor": "WhileStepIdentity",
|
|
600
|
+
"pattern": "^WHILESTEP-.+$"
|
|
601
|
+
},
|
|
602
|
+
"ForStepIdentity": {
|
|
603
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
604
|
+
"type": "string",
|
|
605
|
+
"$anchor": "ForStepIdentity",
|
|
606
|
+
"pattern": "^FORSTEP-.+$"
|
|
612
607
|
},
|
|
613
608
|
"ResourceIdentity": {
|
|
614
609
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -653,6 +648,26 @@
|
|
|
653
648
|
],
|
|
654
649
|
"$anchor": "Path"
|
|
655
650
|
},
|
|
651
|
+
"RoleBindingsWrapper": {
|
|
652
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
653
|
+
"type": "object",
|
|
654
|
+
"properties": {
|
|
655
|
+
"roleBindings": {
|
|
656
|
+
"$ref": "#/$defs/RoleBindings"
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"required": [
|
|
660
|
+
"roleBindings"
|
|
661
|
+
],
|
|
662
|
+
"$anchor": "RoleBindingsWrapper"
|
|
663
|
+
},
|
|
664
|
+
"JobIdentity": {
|
|
665
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
666
|
+
"type": "string",
|
|
667
|
+
"$anchor": "JobIdentity",
|
|
668
|
+
"$comment": "",
|
|
669
|
+
"pattern": "^JOB-.+$"
|
|
670
|
+
},
|
|
656
671
|
"RoleBindings": {
|
|
657
672
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
658
673
|
"type": "object",
|
|
@@ -63,6 +63,7 @@ export type ResourceTypeGenesis = {
|
|
|
63
63
|
"StrategyStateWrapper": ResourceType;
|
|
64
64
|
"StrategyThreadIdentity": ResourceType;
|
|
65
65
|
"StrategyThreadMap": ResourceType;
|
|
66
|
+
"StrategyThreadMapWrapper": ResourceType;
|
|
66
67
|
"Timestamp": ResourceType;
|
|
67
68
|
"WhileStep": ResourceType;
|
|
68
69
|
"WhileStepIdentity": ResourceType;
|
|
@@ -354,7 +354,7 @@ export type StrategyRun =
|
|
|
354
354
|
identity: StrategyRunIdentity;
|
|
355
355
|
statefulStrategyRef: StatefulStrategyIdentity;
|
|
356
356
|
strategyRunContext: StrategyRunContext;
|
|
357
|
-
} &
|
|
357
|
+
} & StrategyThreadMapWrapper &
|
|
358
358
|
StrategyStateWrapper1;
|
|
359
359
|
/**
|
|
360
360
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
@@ -580,6 +580,13 @@ export interface StrategyRunContext {
|
|
|
580
580
|
startedAt?: Timestamp;
|
|
581
581
|
status: StrategyRunStatus;
|
|
582
582
|
}
|
|
583
|
+
export interface StrategyThreadMapWrapper {
|
|
584
|
+
strategyThreadMap: StrategyThreadMap;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
588
|
+
* via the `definition` "StrategyThreadMap".
|
|
589
|
+
*/
|
|
583
590
|
export interface StrategyThreadMap {
|
|
584
591
|
[k: string]: Step[];
|
|
585
592
|
}
|
|
@@ -588,10 +595,10 @@ export interface StrategyStateWrapper1 {
|
|
|
588
595
|
}
|
|
589
596
|
/**
|
|
590
597
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
591
|
-
* via the `definition` "
|
|
598
|
+
* via the `definition` "StrategyThreadMapWrapper".
|
|
592
599
|
*/
|
|
593
|
-
export interface
|
|
594
|
-
|
|
600
|
+
export interface StrategyThreadMapWrapper1 {
|
|
601
|
+
strategyThreadMap: StrategyThreadMap;
|
|
595
602
|
}
|
|
596
603
|
|
|
597
604
|
export type Normalized =
|
|
@@ -999,7 +1006,7 @@ export type Normalized =
|
|
|
999
1006
|
identity: StrategyRunIdentity;
|
|
1000
1007
|
statefulStrategyRef: StatefulStrategyIdentity;
|
|
1001
1008
|
strategyRunContext: StrategyRunContext;
|
|
1002
|
-
} &
|
|
1009
|
+
} & StrategyThreadMapWrapper &
|
|
1003
1010
|
StrategyStateWrapper;
|
|
1004
1011
|
export type StrategyRunIdentity =
|
|
1005
1012
|
`STRATEGY_RUN-${string}`;
|
|
@@ -1111,6 +1118,9 @@ export interface StrategyRunContext {
|
|
|
1111
1118
|
export interface Timestamp {
|
|
1112
1119
|
timestamp: string;
|
|
1113
1120
|
}
|
|
1121
|
+
export interface StrategyThreadMapWrapper {
|
|
1122
|
+
strategyThreadMap: StrategyThreadMap;
|
|
1123
|
+
}
|
|
1114
1124
|
export interface StrategyThreadMap {
|
|
1115
1125
|
[k: string]: Step[];
|
|
1116
1126
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export type { Resource_StatelessStrategy as Resource_StatelessStrategyJson } fro
|
|
|
11
11
|
export type { Resource_StatefulStrategy as Resource_StatefulStrategyJson } from './genesis/generated/types/Resource_StatefulStrategy.js';
|
|
12
12
|
export type { Resource_StrategyRun as Resource_StrategyRunJson } from './genesis/generated/types/Resource_StrategyRun.js';
|
|
13
13
|
export type { Documented as DocumentedJson, ResourceFormatIdentity as ResourceFormatIdentityJson, ResourceFormat as ResourceFormatJson, ExtractionSchema as ExtractionSchemaJson, IdentityProp as IdentityPropJson, MeritProp as MeritPropJson, ResourceTypeIdentity as ResourceTypeIdentityJson, ResourceType as ResourceTypeJson, ResourceRoleIdentity as ResourceRoleIdentityJson, ResourceRoleValue as ResourceRoleValueJson, ExecutionIdentity as ExecutionIdentityJson, Execution as ExecutionJson, Conditional as ConditionalJson, RoleMap as RoleMapJson, Roles as RolesJson, RoleBindingMap as RoleBindingMapJson, RoleBindings as RoleBindingsJson, ResourceIdentity as ResourceIdentityJson, WorkStepIdentity as WorkStepIdentityJson, BranchStepIdentity as BranchStepIdentityJson, WhileStepIdentity as WhileStepIdentityJson, ForStepIdentity as ForStepIdentityJson, WorkStep as WorkStepJson, BranchStep as BranchStepJson, WhileStep as WhileStepJson, ForStep as ForStepJson, Step as StepJson, CreationContext as CreationContextJson, ResourceMissing as ResourceMissingJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
|
|
14
|
-
Resource as ResourceJson, StrategyState as StrategyStateJson, StatelessStrategyIdentity as StatelessStrategyIdentityJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyIdentity as StatefulStrategyIdentityJson, StatefulStrategy as StatefulStrategyJson, StrategyRun as StrategyRunJson, JobIdentity as JobIdentityJson, Job as JobJson, JsonData as JsonDataJson, } from './genesis/generated/types/types.js';
|
|
14
|
+
Resource as ResourceJson, StrategyState as StrategyStateJson, StatelessStrategyIdentity as StatelessStrategyIdentityJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyIdentity as StatefulStrategyIdentityJson, StatefulStrategy as StatefulStrategyJson, StrategyRunIdentity as StrategyRunIdentityJson, StrategyRun as StrategyRunJson, JobIdentity as JobIdentityJson, Job as JobJson, JsonData as JsonDataJson, } from './genesis/generated/types/types.js';
|
|
15
15
|
export { unsafeBrand, asResourceTypeIdentity, asResourceRoleIdentity, asExecutionIdentity, asResourceIdentity, asWorkStepIdentity, asBranchStepIdentity, asForStepIdentity, asResourceFormatIdentity, asWhileStepIdentity, asStatelessStrategyIdentity, asStatefulStrategyIdentity, asResourceTypeIdentities, asResourceRoleIdentities, asExecutionIdentities, asResourceIdentities, asWorkStepIdentities, asBranchStepIdentities, asForStepIdentities, asResourceFormatIdentities, asWhileStepIdentities, asStatelessStrategyIdentities, asStatefulStrategyIdentities, } from './scripts/brandFactories.js';
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "tsc -b",
|
|
33
|
-
"build:scripts": "tsc -p tsconfig.scripts.json",
|
|
34
|
-
"rewriteAnchors": "node ./dist/scripts/rewriteAnchors.js",
|
|
35
|
-
"extractSchemas": "node ./dist/scripts/extractSchemas.js",
|
|
36
|
-
"extractSubschema": "node ./dist/scripts/extractSubschemaWithDefs.js",
|
|
37
|
-
"resolveRefsInGenesisStory": "pnpm run build:scripts && node ./dist/scripts/resolveRefsInGenesisStory.js",
|
|
38
|
-
"generateTypes": "node ./dist/scripts/generateTypes.js",
|
|
39
|
-
"generateResourceTypeGenesisType": "node ./dist/scripts/generateResourceTypeGenesisType.js",
|
|
40
|
-
"generateResourceTypeType": "node ./dist/scripts/generateResourceTypeType.js",
|
|
41
|
-
"generateResourceEnvelopes": "node ./dist/scripts/generateResourceEnvelopes.js",
|
|
42
|
-
"generateSchemaShims": "node ./dist/scripts/generateSchemaShims.js",
|
|
43
|
-
"generateDependencies": "node ./dist/scripts/generateDependencies.js",
|
|
44
|
-
"generateDependenciesOrdered": "node ./dist/scripts/generateDependenciesOrdered.js",
|
|
45
|
-
"generateTerminals": "node ./dist/scripts/generateTerminals.js",
|
|
46
|
-
"update": "rimraf /s /q dist && pnpm run build:scripts && pnpm run rewriteAnchors && pnpm run generateResourceEnvelopes && pnpm run extractSchemas && pnpm run extractSubschema -- --name Job && pnpm run extractSubschema -- --name ResourceFormat && pnpm run extractSubschema -- --name ResourceType && pnpm run extractSubschema -- --name StatelessStrategy && pnpm run extractSubschema -- --name StatefulStrategy && pnpm run extractSubschema -- --name StrategyRun && pnpm run generateSchemaShims && pnpm run generateTypes && pnpm run generateResourceTypeType -- --name Job && pnpm run generateResourceTypeType -- --name ResourceFormat && pnpm run generateResourceTypeType -- --name ResourceType && pnpm run generateResourceTypeType -- --name StatelessStrategy && pnpm run generateResourceTypeType -- --name StatefulStrategy && pnpm run generateResourceTypeType -- --name StrategyRun && pnpm run generateResourceTypeGenesisType && pnpm run build && pnpm run generateDependencies && pnpm run generateDependenciesOrdered && pnpm run generateTerminals"
|
|
47
|
-
},
|
|
48
|
-
"files": [
|
|
49
|
-
"dist",
|
|
50
|
-
"README.md"
|
|
51
|
-
],
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@apidevtools/json-schema-ref-parser": "^14.2.1",
|
|
54
|
-
"@types/node": "^20.8.1",
|
|
55
|
-
"ajv-cli": "^5.0.0",
|
|
56
|
-
"ajv-formats": "^3.0.1",
|
|
57
|
-
"json-schema-to-typescript": "^15.0.4",
|
|
58
|
-
"rimraf": "^5.0.0",
|
|
59
|
-
"typescript": "^5.0.0"
|
|
2
|
+
"name": "@toolproof-npm/schema",
|
|
3
|
+
"version": "0.1.70",
|
|
4
|
+
"description": "JSON schemas and TypeScript types for ToolProof",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"toolproof",
|
|
7
|
+
"schemas",
|
|
8
|
+
"json-schema",
|
|
9
|
+
"typescript"
|
|
10
|
+
],
|
|
11
|
+
"author": "ToolProof Team",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/ToolProof/core.git",
|
|
16
|
+
"directory": "packages/_schemas"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/ToolProof/core#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/ToolProof/core/issues"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "dist/index.js",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
60
29
|
}
|
|
61
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@apidevtools/json-schema-ref-parser": "^14.2.1",
|
|
37
|
+
"@types/node": "^20.8.1",
|
|
38
|
+
"ajv-cli": "^5.0.0",
|
|
39
|
+
"ajv-formats": "^3.0.1",
|
|
40
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
41
|
+
"rimraf": "^5.0.0",
|
|
42
|
+
"typescript": "^5.0.0"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsc -b",
|
|
46
|
+
"build:scripts": "tsc -p tsconfig.scripts.json",
|
|
47
|
+
"rewriteAnchors": "node ./dist/scripts/rewriteAnchors.js",
|
|
48
|
+
"extractSchemas": "node ./dist/scripts/extractSchemas.js",
|
|
49
|
+
"extractSubschema": "node ./dist/scripts/extractSubschemaWithDefs.js",
|
|
50
|
+
"resolveRefsInGenesisStory": "pnpm run build:scripts && node ./dist/scripts/resolveRefsInGenesisStory.js",
|
|
51
|
+
"generateTypes": "node ./dist/scripts/generateTypes.js",
|
|
52
|
+
"generateResourceTypeGenesisType": "node ./dist/scripts/generateResourceTypeGenesisType.js",
|
|
53
|
+
"generateResourceTypeType": "node ./dist/scripts/generateResourceTypeType.js",
|
|
54
|
+
"generateResourceEnvelopes": "node ./dist/scripts/generateResourceEnvelopes.js",
|
|
55
|
+
"generateSchemaShims": "node ./dist/scripts/generateSchemaShims.js",
|
|
56
|
+
"generateDependencies": "node ./dist/scripts/generateDependencies.js",
|
|
57
|
+
"generateDependenciesOrdered": "node ./dist/scripts/generateDependenciesOrdered.js",
|
|
58
|
+
"generateTerminals": "node ./dist/scripts/generateTerminals.js",
|
|
59
|
+
"update": "rimraf /s /q dist && pnpm run build:scripts && pnpm run rewriteAnchors && pnpm run generateResourceEnvelopes && pnpm run extractSchemas && pnpm run extractSubschema -- --name Job && pnpm run extractSubschema -- --name ResourceFormat && pnpm run extractSubschema -- --name ResourceType && pnpm run extractSubschema -- --name StatelessStrategy && pnpm run extractSubschema -- --name StatefulStrategy && pnpm run extractSubschema -- --name StrategyRun && pnpm run generateSchemaShims && pnpm run generateTypes && pnpm run generateResourceTypeType -- --name Job && pnpm run generateResourceTypeType -- --name ResourceFormat && pnpm run generateResourceTypeType -- --name ResourceType && pnpm run generateResourceTypeType -- --name StatelessStrategy && pnpm run generateResourceTypeType -- --name StatefulStrategy && pnpm run generateResourceTypeType -- --name StrategyRun && pnpm run generateResourceTypeGenesisType && pnpm run build && pnpm run generateDependencies && pnpm run generateDependenciesOrdered && pnpm run generateTerminals"
|
|
60
|
+
}
|
|
61
|
+
}
|