@toolproof-npm/schema 0.1.83 → 0.1.84

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
+
@@ -147,8 +147,7 @@
147
147
  "ExecutionIdentity"
148
148
  ],
149
149
  "StrategyStateDelta": [
150
- "ExecutionSocket",
151
- "ExecutionIdentity"
150
+ "StrategyState"
152
151
  ],
153
152
  "StrategyStateWrapper": [
154
153
  "StrategyState"
@@ -2008,14 +2008,7 @@
2008
2008
  "$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
2009
2009
  "properties": {
2010
2010
  "strategyStateUpdate": {
2011
- "type": "object",
2012
- "propertyNames": {
2013
- "$ref": "#/$defs/ExecutionIdentity"
2014
- },
2015
- "additionalProperties": {
2016
- "$ref": "#/$defs/ExecutionSocket"
2017
- },
2018
- "unevaluatedProperties": false
2011
+ "$ref": "#/$defs/StrategyState"
2019
2012
  }
2020
2013
  }
2021
2014
  }
@@ -2699,14 +2699,7 @@
2699
2699
  "$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
2700
2700
  "properties": {
2701
2701
  "strategyStateUpdate": {
2702
- "type": "object",
2703
- "propertyNames": {
2704
- "$ref": "#/$defs/ExecutionIdentity"
2705
- },
2706
- "additionalProperties": {
2707
- "$ref": "#/$defs/ExecutionSocket"
2708
- },
2709
- "unevaluatedProperties": false
2702
+ "$ref": "#/$defs/StrategyState"
2710
2703
  }
2711
2704
  }
2712
2705
  }
@@ -1743,14 +1743,7 @@
1743
1743
  "type": "object",
1744
1744
  "properties": {
1745
1745
  "strategyStateUpdate": {
1746
- "type": "object",
1747
- "additionalProperties": {
1748
- "$ref": "#/$defs/ExecutionSocket"
1749
- },
1750
- "unevaluatedProperties": false,
1751
- "propertyNames": {
1752
- "$ref": "#/$defs/ExecutionIdentity"
1753
- }
1746
+ "$ref": "#/$defs/StrategyState"
1754
1747
  }
1755
1748
  },
1756
1749
  "$anchor": "StrategyStateDelta",
@@ -425,14 +425,7 @@
425
425
  "type": "object",
426
426
  "properties": {
427
427
  "strategyStateUpdate": {
428
- "type": "object",
429
- "additionalProperties": {
430
- "$ref": "#/$defs/ExecutionSocket"
431
- },
432
- "unevaluatedProperties": false,
433
- "propertyNames": {
434
- "$ref": "#/$defs/ExecutionIdentity"
435
- }
428
+ "$ref": "#/$defs/StrategyState"
436
429
  }
437
430
  },
438
431
  "$anchor": "StrategyStateDelta",
@@ -496,31 +489,6 @@
496
489
  "cancelled"
497
490
  ]
498
491
  },
499
- "ExecutionSocket": {
500
- "$schema": "https://json-schema.org/draft/2020-12/schema",
501
- "type": "object",
502
- "additionalProperties": {
503
- "oneOf": [
504
- {
505
- "$ref": "#/$defs/ResourceMissing"
506
- },
507
- {
508
- "$ref": "#/$defs/ResourcePotentialInput"
509
- },
510
- {
511
- "$ref": "#/$defs/ResourcePotentialOutput"
512
- },
513
- {
514
- "$ref": "#/$defs/Resource"
515
- }
516
- ]
517
- },
518
- "unevaluatedProperties": false,
519
- "$anchor": "ExecutionSocket",
520
- "propertyNames": {
521
- "$ref": "#/$defs/ResourceRoleIdentity"
522
- }
523
- },
524
492
  "WorkStep": {
525
493
  "$schema": "https://json-schema.org/draft/2020-12/schema",
526
494
  "type": "object",
@@ -630,6 +598,91 @@
630
598
  ],
631
599
  "$anchor": "ForStep"
632
600
  },
601
+ "ExecutionSocket": {
602
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
603
+ "type": "object",
604
+ "additionalProperties": {
605
+ "oneOf": [
606
+ {
607
+ "$ref": "#/$defs/ResourceMissing"
608
+ },
609
+ {
610
+ "$ref": "#/$defs/ResourcePotentialInput"
611
+ },
612
+ {
613
+ "$ref": "#/$defs/ResourcePotentialOutput"
614
+ },
615
+ {
616
+ "$ref": "#/$defs/Resource"
617
+ }
618
+ ]
619
+ },
620
+ "unevaluatedProperties": false,
621
+ "$anchor": "ExecutionSocket",
622
+ "propertyNames": {
623
+ "$ref": "#/$defs/ResourceRoleIdentity"
624
+ }
625
+ },
626
+ "StepKind": {
627
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
628
+ "type": "object",
629
+ "properties": {
630
+ "kind": {
631
+ "type": "string",
632
+ "enum": [
633
+ "work",
634
+ "branch",
635
+ "while",
636
+ "for"
637
+ ]
638
+ }
639
+ },
640
+ "required": [
641
+ "kind"
642
+ ],
643
+ "$anchor": "StepKind"
644
+ },
645
+ "Execution": {
646
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
647
+ "type": "object",
648
+ "allOf": [
649
+ {
650
+ "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
651
+ "$ref": "#/$defs/RoleBindingsWrapper"
652
+ }
653
+ ],
654
+ "properties": {
655
+ "identity": {
656
+ "$ref": "#/$defs/ExecutionIdentity"
657
+ },
658
+ "jobRef": {
659
+ "$ref": "#/$defs/JobIdentity"
660
+ }
661
+ },
662
+ "required": [
663
+ "identity",
664
+ "jobRef"
665
+ ],
666
+ "$anchor": "Execution"
667
+ },
668
+ "Conditional": {
669
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
670
+ "type": "object",
671
+ "properties": {
672
+ "what": {
673
+ "$ref": "#/$defs/WorkStep"
674
+ },
675
+ "when": {
676
+ "$ref": "#/$defs/WorkStep"
677
+ }
678
+ },
679
+ "required": [
680
+ "when",
681
+ "what"
682
+ ],
683
+ "unevaluatedProperties": false,
684
+ "$anchor": "Conditional"
685
+ },
633
686
  "ResourceMissing": {
634
687
  "$schema": "https://json-schema.org/draft/2020-12/schema",
635
688
  "type": "object",
@@ -739,65 +792,18 @@
739
792
  "$anchor": "ResourceRoleIdentity",
740
793
  "pattern": "^ROLE-.+$"
741
794
  },
742
- "StepKind": {
743
- "$schema": "https://json-schema.org/draft/2020-12/schema",
744
- "type": "object",
745
- "properties": {
746
- "kind": {
747
- "type": "string",
748
- "enum": [
749
- "work",
750
- "branch",
751
- "while",
752
- "for"
753
- ]
754
- }
755
- },
756
- "required": [
757
- "kind"
758
- ],
759
- "$anchor": "StepKind"
760
- },
761
- "Execution": {
762
- "$schema": "https://json-schema.org/draft/2020-12/schema",
763
- "type": "object",
764
- "allOf": [
765
- {
766
- "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
767
- "$ref": "#/$defs/RoleBindingsWrapper"
768
- }
769
- ],
770
- "properties": {
771
- "identity": {
772
- "$ref": "#/$defs/ExecutionIdentity"
773
- },
774
- "jobRef": {
775
- "$ref": "#/$defs/JobIdentity"
776
- }
777
- },
778
- "required": [
779
- "identity",
780
- "jobRef"
781
- ],
782
- "$anchor": "Execution"
783
- },
784
- "Conditional": {
795
+ "RoleBindingsWrapper": {
785
796
  "$schema": "https://json-schema.org/draft/2020-12/schema",
786
797
  "type": "object",
787
798
  "properties": {
788
- "what": {
789
- "$ref": "#/$defs/WorkStep"
790
- },
791
- "when": {
792
- "$ref": "#/$defs/WorkStep"
799
+ "roleBindings": {
800
+ "$ref": "#/$defs/RoleBindings"
793
801
  }
794
802
  },
795
803
  "required": [
796
- "when",
797
- "what"
804
+ "roleBindings"
798
805
  ],
799
- "unevaluatedProperties": false,
800
- "$anchor": "Conditional"
806
+ "$anchor": "RoleBindingsWrapper"
801
807
  },
802
808
  "ResourceBase": {
803
809
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -909,18 +915,23 @@
909
915
  ],
910
916
  "$anchor": "JsonData"
911
917
  },
912
- "RoleBindingsWrapper": {
918
+ "RoleBindings": {
913
919
  "$schema": "https://json-schema.org/draft/2020-12/schema",
914
920
  "type": "object",
915
921
  "properties": {
916
- "roleBindings": {
917
- "$ref": "#/$defs/RoleBindings"
922
+ "inputBindingMap": {
923
+ "$ref": "#/$defs/RoleBindingMap"
924
+ },
925
+ "outputBindingMap": {
926
+ "$ref": "#/$defs/RoleBindingMap"
918
927
  }
919
928
  },
920
929
  "required": [
921
- "roleBindings"
930
+ "inputBindingMap",
931
+ "outputBindingMap"
922
932
  ],
923
- "$anchor": "RoleBindingsWrapper"
933
+ "unevaluatedProperties": false,
934
+ "$anchor": "RoleBindings"
924
935
  },
925
936
  "ResourceIdentity": {
926
937
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -965,24 +976,6 @@
965
976
  ],
966
977
  "$anchor": "Path"
967
978
  },
968
- "RoleBindings": {
969
- "$schema": "https://json-schema.org/draft/2020-12/schema",
970
- "type": "object",
971
- "properties": {
972
- "inputBindingMap": {
973
- "$ref": "#/$defs/RoleBindingMap"
974
- },
975
- "outputBindingMap": {
976
- "$ref": "#/$defs/RoleBindingMap"
977
- }
978
- },
979
- "required": [
980
- "inputBindingMap",
981
- "outputBindingMap"
982
- ],
983
- "unevaluatedProperties": false,
984
- "$anchor": "RoleBindings"
985
- },
986
979
  "RoleBindingMap": {
987
980
  "$schema": "https://json-schema.org/draft/2020-12/schema",
988
981
  "type": "object",
@@ -597,10 +597,13 @@ export interface RunEventStepMetaData {
597
597
  * via the `definition` "StrategyStateDelta".
598
598
  */
599
599
  export interface StrategyStateDelta {
600
- strategyStateUpdate?: {
601
- [k: string]: ExecutionSocket;
602
- };
600
+ strategyStateUpdate?: StrategyState;
603
601
  }
602
+ /**
603
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
604
+ * via the `definition` "StrategyState".
605
+ */
606
+ export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
604
607
  /**
605
608
  * This interface was referenced by `GenesisJson`'s JSON-Schema
606
609
  * via the `definition` "RunnableStrategyContext".
@@ -621,11 +624,6 @@ export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
621
624
  export interface StrategyStateWrapper {
622
625
  strategyState: StrategyState;
623
626
  }
624
- /**
625
- * This interface was referenced by `GenesisJson`'s JSON-Schema
626
- * via the `definition` "StrategyState".
627
- */
628
- export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
629
627
  /**
630
628
  * This interface was referenced by `GenesisJson`'s JSON-Schema
631
629
  * via the `definition` "IdentityProp".
@@ -1197,10 +1195,13 @@ export interface Conditional {
1197
1195
  * via the `definition` "StrategyStateDelta".
1198
1196
  */
1199
1197
  export interface StrategyStateDelta {
1200
- strategyStateUpdate?: {
1201
- [k: string]: ExecutionSocket;
1202
- };
1198
+ strategyStateUpdate?: StrategyState;
1203
1199
  }
1200
+ /**
1201
+ * This interface was referenced by `Normalized`'s JSON-Schema
1202
+ * via the `definition` "StrategyState".
1203
+ */
1204
+ export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
1204
1205
  /**
1205
1206
  * This interface was referenced by `Normalized`'s JSON-Schema
1206
1207
  * via the `definition` "ExecutionSocket".
@@ -1263,11 +1264,6 @@ export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
1263
1264
  export interface StrategyStateWrapper {
1264
1265
  strategyState: StrategyState;
1265
1266
  }
1266
- /**
1267
- * This interface was referenced by `Normalized`'s JSON-Schema
1268
- * via the `definition` "StrategyState".
1269
- */
1270
- export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
1271
1267
  /**
1272
1268
  * This interface was referenced by `Normalized`'s JSON-Schema
1273
1269
  * via the `definition` "StrategyThreadMapWrapper".
@@ -476,10 +476,8 @@ async function main() {
476
476
  // These are emitted as `[k: string]` by json-schema-to-typescript but are identity-keyed in practice.
477
477
  const executionSocketValueType = 'ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource';
478
478
  ts = ts.replace(/export interface ExecutionSocket\s*\{\s*\[k:\s*string\]:\s*[^;]+;\s*\}/g, `export type ExecutionSocket = Record<${resourceRoleKeyType}, ${executionSocketValueType}>;`);
479
- ts = ts.replace(/export interface ExecutionSocketMaterialized\s*\{\s*\[k:\s*string\]:\s*Resource;\s*\}/g, `export type ExecutionSocketMaterialized = Record<${resourceRoleKeyType}, Resource>;`);
480
479
  ts = ts.replace(/export interface StrategyState\s*\{\s*\[k:\s*string\]:\s*ExecutionSocket;\s*\}/g, `export type StrategyState = Record<${executionKeyType}, ExecutionSocket>;`);
481
- ts = ts.replace(/(strategyStateUpdate:\s*)\{\s*\[k:\s*string\]:\s*ExecutionSocketMaterialized;\s*\};/g, `$1Record<${executionKeyType}, ExecutionSocketMaterialized>;`);
482
- ts = ts.replace(/(strategyStateUpdateWide\??:\s*)\{\s*\[k:\s*string\]:\s*ExecutionSocket;\s*\};/g, `$1Record<${executionKeyType}, ExecutionSocket>;`);
480
+ ts = ts.replace(/(strategyStateUpdate\??:\s*)\{\s*\[k:\s*string\]:\s*ExecutionSocket;\s*\};/g, `$1Record<${executionKeyType}, ExecutionSocket>;`);
483
481
  // Ensure key constraints for strategyThreadMap are preserved as template-literal identity keys.
484
482
  // json-schema-to-typescript emits `[k: string]: Step[];`, but we want keys to be `StrategyThreadIdentity`.
485
483
  ts = ts.replace(/export interface StrategyThreadMap\s*\{\s*\[k:\s*string\]:\s*Step\[\];\s*\}/g, `export type StrategyThreadMap = Record<${strategyThreadKeyType}, Step[]>;`);
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
1
  {
2
- "name": "@toolproof-npm/schema",
3
- "version": "0.1.83",
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"
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"
29
17
  },
30
- "./identityGuards": {
31
- "import": "./dist/identityGuards.js",
32
- "types": "./dist/identityGuards.d.ts"
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"
33
64
  }
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
- }
65
+ }