@toolproof-npm/schema 0.1.84 → 0.1.85

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 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
+
@@ -62,11 +62,16 @@
62
62
  "JsonData"
63
63
  ],
64
64
  "BranchStepIdentity": [],
65
+ "Domain": [],
65
66
  "Error": [
66
67
  "Documented"
67
68
  ],
68
69
  "ForStepIdentity": [],
69
70
  "JobIdentity": [],
71
+ "Goal": [
72
+ "Domain",
73
+ "JobIdentity"
74
+ ],
70
75
  "ResourceFormat": [
71
76
  "Documented",
72
77
  "ResourceFormatIdentity"
@@ -127,6 +132,7 @@
127
132
  ],
128
133
  "Job": [
129
134
  "Documented",
135
+ "Domain",
130
136
  "RolesWrapper",
131
137
  "JobIdentity"
132
138
  ],
@@ -938,6 +938,33 @@
938
938
  }
939
939
  }
940
940
  },
941
+ "Domain": {
942
+ "identity": "TYPE-Domain",
943
+ "name": "Domain",
944
+ "description": "dummy-description",
945
+ "resourceFormatRef": "FORMAT-ApplicationJson",
946
+ "extractionSchema": {
947
+ "$anchor": "Domain",
948
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
949
+ "type": "object",
950
+ "$comment": "",
951
+ "required": [
952
+ "domain"
953
+ ],
954
+ "properties": {
955
+ "domain": {
956
+ "type": "string",
957
+ "enum": [
958
+ "internal",
959
+ "numerical",
960
+ "biological",
961
+ "logical",
962
+ "augmental"
963
+ ]
964
+ }
965
+ }
966
+ }
967
+ },
941
968
  "JobIdentity": {
942
969
  "identity": "TYPE-JobIdentity",
943
970
  "name": "JobIdentity",
@@ -978,6 +1005,9 @@
978
1005
  {
979
1006
  "$ref": "#/$defs/Documented"
980
1007
  },
1008
+ {
1009
+ "$ref": "#/$defs/Domain"
1010
+ },
981
1011
  {
982
1012
  "$ref": "#/$defs/RolesWrapper"
983
1013
  }
@@ -2389,6 +2419,47 @@
2389
2419
  },
2390
2420
  "unevaluatedProperties": false
2391
2421
  }
2422
+ },
2423
+ "Goal": {
2424
+ "identity": "TYPE-Goal",
2425
+ "name": "Goal",
2426
+ "description": "dummy-description",
2427
+ "resourceFormatRef": "FORMAT-ApplicationJson",
2428
+ "extractionSchema": {
2429
+ "$anchor": "Goal",
2430
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2431
+ "type": "object",
2432
+ "required": [
2433
+ "target"
2434
+ ],
2435
+ "properties": {
2436
+ "target": {
2437
+ "type": "integer",
2438
+ "minimum": 0
2439
+ },
2440
+ "disallowedJobs": {
2441
+ "type": "array",
2442
+ "items": {
2443
+ "$ref": "#/$defs/JobIdentity"
2444
+ }
2445
+ },
2446
+ "disallowedSequences": {
2447
+ "type": "array",
2448
+ "items": {
2449
+ "type": "array",
2450
+ "items": {
2451
+ "$ref": "#/$defs/JobIdentity"
2452
+ }
2453
+ }
2454
+ }
2455
+ },
2456
+ "allOf": [
2457
+ {
2458
+ "$ref": "#/$defs/Domain"
2459
+ }
2460
+ ],
2461
+ "unevaluatedProperties": false
2462
+ }
2392
2463
  }
2393
2464
  }
2394
2465
  }
@@ -1160,6 +1160,43 @@
1160
1160
  }
1161
1161
  }
1162
1162
  },
1163
+ "Domain": {
1164
+ "identity": "RESOURCE-Domain",
1165
+ "resourceTypeRef": "TYPE-ResourceType",
1166
+ "creationContext": {
1167
+ "resourceRoleRef": "ROLE-Genesis",
1168
+ "executionRef": "EXECUTION-Domain"
1169
+ },
1170
+ "kind": "materialized",
1171
+ "timestamp": "2025-11-30T00:00:00.000Z",
1172
+ "extractedData": {
1173
+ "identity": "TYPE-Domain",
1174
+ "name": "Domain",
1175
+ "description": "dummy-description",
1176
+ "resourceFormatRef": "FORMAT-ApplicationJson",
1177
+ "extractionSchema": {
1178
+ "$anchor": "Domain",
1179
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1180
+ "type": "object",
1181
+ "$comment": "",
1182
+ "required": [
1183
+ "domain"
1184
+ ],
1185
+ "properties": {
1186
+ "domain": {
1187
+ "type": "string",
1188
+ "enum": [
1189
+ "internal",
1190
+ "numerical",
1191
+ "biological",
1192
+ "logical",
1193
+ "augmental"
1194
+ ]
1195
+ }
1196
+ }
1197
+ }
1198
+ }
1199
+ },
1163
1200
  "JobIdentity": {
1164
1201
  "identity": "RESOURCE-JobIdentity",
1165
1202
  "resourceTypeRef": "TYPE-ResourceType",
@@ -1219,6 +1256,9 @@
1219
1256
  {
1220
1257
  "$ref": "#/$defs/Documented"
1221
1258
  },
1259
+ {
1260
+ "$ref": "#/$defs/Domain"
1261
+ },
1222
1262
  {
1223
1263
  "$ref": "#/$defs/RolesWrapper"
1224
1264
  }
@@ -3211,5 +3251,56 @@
3211
3251
  "unevaluatedProperties": false
3212
3252
  }
3213
3253
  }
3254
+ },
3255
+ "Goal": {
3256
+ "identity": "RESOURCE-Goal",
3257
+ "resourceTypeRef": "TYPE-ResourceType",
3258
+ "creationContext": {
3259
+ "resourceRoleRef": "ROLE-Genesis",
3260
+ "executionRef": "EXECUTION-Goal"
3261
+ },
3262
+ "kind": "materialized",
3263
+ "timestamp": "2025-11-30T00:00:00.000Z",
3264
+ "extractedData": {
3265
+ "identity": "TYPE-Goal",
3266
+ "name": "Goal",
3267
+ "description": "dummy-description",
3268
+ "resourceFormatRef": "FORMAT-ApplicationJson",
3269
+ "extractionSchema": {
3270
+ "$anchor": "Goal",
3271
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3272
+ "type": "object",
3273
+ "required": [
3274
+ "target"
3275
+ ],
3276
+ "properties": {
3277
+ "target": {
3278
+ "type": "integer",
3279
+ "minimum": 0
3280
+ },
3281
+ "disallowedJobs": {
3282
+ "type": "array",
3283
+ "items": {
3284
+ "$ref": "#/$defs/JobIdentity"
3285
+ }
3286
+ },
3287
+ "disallowedSequences": {
3288
+ "type": "array",
3289
+ "items": {
3290
+ "type": "array",
3291
+ "items": {
3292
+ "$ref": "#/$defs/JobIdentity"
3293
+ }
3294
+ }
3295
+ }
3296
+ },
3297
+ "allOf": [
3298
+ {
3299
+ "$ref": "#/$defs/Domain"
3300
+ }
3301
+ ],
3302
+ "unevaluatedProperties": false
3303
+ }
3304
+ }
3214
3305
  }
3215
3306
  }
@@ -116,6 +116,27 @@
116
116
  ],
117
117
  "$anchor": "Documented"
118
118
  },
119
+ "Domain": {
120
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
121
+ "type": "object",
122
+ "properties": {
123
+ "domain": {
124
+ "type": "string",
125
+ "enum": [
126
+ "internal",
127
+ "numerical",
128
+ "biological",
129
+ "logical",
130
+ "augmental"
131
+ ]
132
+ }
133
+ },
134
+ "required": [
135
+ "domain"
136
+ ],
137
+ "$anchor": "Domain",
138
+ "$comment": ""
139
+ },
119
140
  "Error": {
120
141
  "$schema": "https://json-schema.org/draft/2020-12/schema",
121
142
  "type": "object",
@@ -362,6 +383,41 @@
362
383
  "$anchor": "ForStepIdentity",
363
384
  "pattern": "^FORSTEP-.+$"
364
385
  },
386
+ "Goal": {
387
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
388
+ "type": "object",
389
+ "allOf": [
390
+ {
391
+ "$ref": "#/$defs/Domain"
392
+ }
393
+ ],
394
+ "properties": {
395
+ "disallowedJobs": {
396
+ "type": "array",
397
+ "items": {
398
+ "$ref": "#/$defs/JobIdentity"
399
+ }
400
+ },
401
+ "disallowedSequences": {
402
+ "type": "array",
403
+ "items": {
404
+ "type": "array",
405
+ "items": {
406
+ "$ref": "#/$defs/JobIdentity"
407
+ }
408
+ }
409
+ },
410
+ "target": {
411
+ "type": "integer",
412
+ "minimum": 0
413
+ }
414
+ },
415
+ "required": [
416
+ "target"
417
+ ],
418
+ "unevaluatedProperties": false,
419
+ "$anchor": "Goal"
420
+ },
365
421
  "GraphEndRunEvent": {
366
422
  "$schema": "https://json-schema.org/draft/2020-12/schema",
367
423
  "allOf": [
@@ -637,6 +693,9 @@
637
693
  {
638
694
  "$ref": "#/$defs/Documented"
639
695
  },
696
+ {
697
+ "$ref": "#/$defs/Domain"
698
+ },
640
699
  {
641
700
  "$ref": "#/$defs/RolesWrapper"
642
701
  }
@@ -5,6 +5,9 @@
5
5
  {
6
6
  "$ref": "#/$defs/Documented"
7
7
  },
8
+ {
9
+ "$ref": "#/$defs/Domain"
10
+ },
8
11
  {
9
12
  "$ref": "#/$defs/RolesWrapper"
10
13
  }
@@ -38,6 +41,27 @@
38
41
  ],
39
42
  "$anchor": "Documented"
40
43
  },
44
+ "Domain": {
45
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
46
+ "type": "object",
47
+ "properties": {
48
+ "domain": {
49
+ "type": "string",
50
+ "enum": [
51
+ "internal",
52
+ "numerical",
53
+ "biological",
54
+ "logical",
55
+ "augmental"
56
+ ]
57
+ }
58
+ },
59
+ "required": [
60
+ "domain"
61
+ ],
62
+ "$anchor": "Domain",
63
+ "$comment": ""
64
+ },
41
65
  "RolesWrapper": {
42
66
  "$schema": "https://json-schema.org/draft/2020-12/schema",
43
67
  "type": "object",
@@ -1,6 +1,7 @@
1
1
  [
2
2
  "ResourceType",
3
3
  "Error",
4
+ "Goal",
4
5
  "ResourceFormat",
5
6
  "ResourceMeta",
6
7
  "Job",
@@ -9,6 +9,7 @@ export type ResourceTypeGenesis = {
9
9
  "CreationContextWrapper": ResourceType;
10
10
  "Described": ResourceType;
11
11
  "Documented": ResourceType;
12
+ "Domain": ResourceType;
12
13
  "Error": ResourceType;
13
14
  "Execution": ResourceType;
14
15
  "ExecutionIdentity": ResourceType;
@@ -17,6 +18,7 @@ export type ResourceTypeGenesis = {
17
18
  "ExtractionSchemaWrapper": ResourceType;
18
19
  "ForStep": ResourceType;
19
20
  "ForStepIdentity": ResourceType;
21
+ "Goal": ResourceType;
20
22
  "GraphEndRunEvent": ResourceType;
21
23
  "GraphStartRunEvent": ResourceType;
22
24
  "IdentityProp": ResourceType;
@@ -190,6 +190,16 @@ export type ForStep =
190
190
  */
191
191
  export type ForStepIdentity =
192
192
  `FORSTEP-${string}`;
193
+ /**
194
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
195
+ * via the `definition` "Goal".
196
+ */
197
+ export type Goal =
198
+ {
199
+ disallowedJobs?: JobIdentity[];
200
+ disallowedSequences?: JobIdentity[][];
201
+ target: number;
202
+ } & Domain;
193
203
  /**
194
204
  * This interface was referenced by `GenesisJson`'s JSON-Schema
195
205
  * via the `definition` "GraphEndRunEvent".
@@ -329,6 +339,7 @@ export type Job =
329
339
  identity: JobIdentity;
330
340
  implementationUri: string;
331
341
  } & Documented &
342
+ Domain &
332
343
  RolesWrapper;
333
344
  /**
334
345
  * This interface was referenced by `GenesisJson`'s JSON-Schema
@@ -517,6 +528,13 @@ export interface Described {
517
528
  export interface Named {
518
529
  name: string;
519
530
  }
531
+ /**
532
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
533
+ * via the `definition` "Domain".
534
+ */
535
+ export interface Domain {
536
+ domain: "internal" | "numerical" | "biological" | "logical" | "augmental";
537
+ }
520
538
  /**
521
539
  * This interface was referenced by `GenesisJson`'s JSON-Schema
522
540
  * via the `definition` "ExecutionSocket".
@@ -743,6 +761,7 @@ export type Normalized =
743
761
  identity: JobIdentity;
744
762
  implementationUri: string;
745
763
  } & Documented &
764
+ Domain &
746
765
  RolesWrapper;
747
766
  export type JobIdentity =
748
767
  `JOB-${string}`;
@@ -761,6 +780,9 @@ export interface Named {
761
780
  export interface Described {
762
781
  description: string;
763
782
  }
783
+ export interface Domain {
784
+ domain: "internal" | "numerical" | "biological" | "logical" | "augmental";
785
+ }
764
786
  export interface RolesWrapper {
765
787
  roles: Roles;
766
788
  }
package/dist/index.d.ts CHANGED
@@ -14,5 +14,5 @@ export type { Resource_StatefulStrategy as Resource_StatefulStrategyJson } from
14
14
  export type { Resource_RunnableStrategy as Resource_RunnableStrategyJson } from './genesis/generated/types/Resource_RunnableStrategy.js';
15
15
  export type StepIdentityJson = WorkStepIdentity | BranchStepIdentity | WhileStepIdentity | ForStepIdentity;
16
16
  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, StepKind as StepKindJson, Step as StepJson, CreationContext as CreationContextJson, ResourceMissing as ResourceMissingJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
17
- Resource as ResourceJson, StrategyState as StrategyStateJson, StatelessStrategyIdentity as StatelessStrategyIdentityJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyIdentity as StatefulStrategyIdentityJson, StatefulStrategy as StatefulStrategyJson, RunnableStrategyIdentity as RunnableStrategyIdentityJson, RunnableStrategyStatus as RunnableStrategyStatusJson, RunnableStrategy as RunnableStrategyJson, RunnableStrategyUpdate as RunnableStrategyUpdateJson, JobIdentity as JobIdentityJson, Job as JobJson, JsonData as JsonDataJson, StrategyThreadIdentity as StrategyThreadIdentityJson, StrategyThreadMap as StrategyThreadMapJson, ExecutionSocket as ExecutionSocketJson, Timestamp as TimestampJson, } from './genesis/generated/types/types.js';
17
+ Resource as ResourceJson, StrategyState as StrategyStateJson, StatelessStrategyIdentity as StatelessStrategyIdentityJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyIdentity as StatefulStrategyIdentityJson, StatefulStrategy as StatefulStrategyJson, RunnableStrategyIdentity as RunnableStrategyIdentityJson, RunnableStrategyStatus as RunnableStrategyStatusJson, RunnableStrategy as RunnableStrategyJson, RunnableStrategyUpdate as RunnableStrategyUpdateJson, Domain as DomainJson, JobIdentity as JobIdentityJson, Job as JobJson, JsonData as JsonDataJson, StrategyThreadIdentity as StrategyThreadIdentityJson, StrategyThreadMap as StrategyThreadMapJson, ExecutionSocket as ExecutionSocketJson, Timestamp as TimestampJson, } from './genesis/generated/types/types.js';
18
18
  export { isResourceRoleIdentityJson, isStrategyThreadIdentityJson } from './identityGuards.js';
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
1
  {
2
- "name": "@toolproof-npm/schema",
3
- "version": "0.1.84",
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"
2
+ "name": "@toolproof-npm/schema",
3
+ "version": "0.1.85",
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"
17
29
  },
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"
29
- },
30
- "./identityGuards": {
31
- "import": "./dist/identityGuards.js",
32
- "types": "./dist/identityGuards.d.ts"
33
- }
34
- },
35
- "scripts": {
36
- "build": "tsc -b",
37
- "build:scripts": "tsc -p tsconfig.scripts.json",
38
- "rewriteAnchors": "node ./dist/scripts/rewriteAnchors.js",
39
- "extractSchemas": "node ./dist/scripts/extractSchemas.js",
40
- "extractSubschema": "node ./dist/scripts/extractSubschemaWithDefs.js",
41
- "resolveRefsInGenesisStory": "pnpm run build:scripts && node ./dist/scripts/resolveRefsInGenesisStory.js",
42
- "generateTypes": "node ./dist/scripts/generateTypes.js",
43
- "generateResourceTypeGenesisType": "node ./dist/scripts/generateResourceTypeGenesisType.js",
44
- "generateResourceTypeType": "node ./dist/scripts/generateResourceTypeType.js",
45
- "generateResourceEnvelopes": "node ./dist/scripts/generateResourceEnvelopes.js",
46
- "generateSchemaShims": "node ./dist/scripts/generateSchemaShims.js",
47
- "generateDependencies": "node ./dist/scripts/generateDependencies.js",
48
- "generateDependenciesOrdered": "node ./dist/scripts/generateDependenciesOrdered.js",
49
- "generateTerminals": "node ./dist/scripts/generateTerminals.js",
50
- "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 RunnableStrategy && pnpm run extractSubschema -- --name RunRecording && 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 RunnableStrategy && pnpm run generateResourceTypeGenesisType && pnpm run generateDependencies && pnpm run generateDependenciesOrdered && pnpm run generateTerminals && pnpm run build"
51
- },
52
- "files": [
53
- "dist",
54
- "README.md"
55
- ],
56
- "devDependencies": {
57
- "@apidevtools/json-schema-ref-parser": "^14.2.1",
58
- "@types/node": "^20.8.1",
59
- "ajv-cli": "^5.0.0",
60
- "ajv-formats": "^3.0.1",
61
- "json-schema-to-typescript": "^15.0.4",
62
- "rimraf": "^5.0.0",
63
- "typescript": "^5.0.0"
30
+ "./identityGuards": {
31
+ "import": "./dist/identityGuards.js",
32
+ "types": "./dist/identityGuards.d.ts"
64
33
  }
65
- }
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "README.md"
38
+ ],
39
+ "devDependencies": {
40
+ "@apidevtools/json-schema-ref-parser": "^14.2.1",
41
+ "@types/node": "^20.8.1",
42
+ "ajv-cli": "^5.0.0",
43
+ "ajv-formats": "^3.0.1",
44
+ "json-schema-to-typescript": "^15.0.4",
45
+ "rimraf": "^5.0.0",
46
+ "typescript": "^5.0.0"
47
+ },
48
+ "scripts": {
49
+ "build": "tsc -b",
50
+ "build:scripts": "tsc -p tsconfig.scripts.json",
51
+ "rewriteAnchors": "node ./dist/scripts/rewriteAnchors.js",
52
+ "extractSchemas": "node ./dist/scripts/extractSchemas.js",
53
+ "extractSubschema": "node ./dist/scripts/extractSubschemaWithDefs.js",
54
+ "resolveRefsInGenesisStory": "pnpm run build:scripts && node ./dist/scripts/resolveRefsInGenesisStory.js",
55
+ "generateTypes": "node ./dist/scripts/generateTypes.js",
56
+ "generateResourceTypeGenesisType": "node ./dist/scripts/generateResourceTypeGenesisType.js",
57
+ "generateResourceTypeType": "node ./dist/scripts/generateResourceTypeType.js",
58
+ "generateResourceEnvelopes": "node ./dist/scripts/generateResourceEnvelopes.js",
59
+ "generateSchemaShims": "node ./dist/scripts/generateSchemaShims.js",
60
+ "generateDependencies": "node ./dist/scripts/generateDependencies.js",
61
+ "generateDependenciesOrdered": "node ./dist/scripts/generateDependenciesOrdered.js",
62
+ "generateTerminals": "node ./dist/scripts/generateTerminals.js",
63
+ "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 RunnableStrategy && pnpm run extractSubschema -- --name RunRecording && 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 RunnableStrategy && pnpm run generateResourceTypeGenesisType && pnpm run generateDependencies && pnpm run generateDependenciesOrdered && pnpm run generateTerminals && pnpm run build"
64
+ }
65
+ }