@toolproof-core/schema 1.0.6 → 1.0.8

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.
@@ -32,8 +32,8 @@ declare const CONSTANTS: {
32
32
  readonly ENUMS: {
33
33
  readonly ResourceKind: {
34
34
  readonly missing: "missing";
35
- readonly 'input-potential': "input-potential";
36
- readonly 'output-potential': "output-potential";
35
+ readonly inputPotential: "inputPotential";
36
+ readonly outputPotential: "outputPotential";
37
37
  readonly materialized: "materialized";
38
38
  };
39
39
  readonly RunEventKind: {
@@ -32,8 +32,8 @@ const CONSTANTS = {
32
32
  ENUMS: {
33
33
  ResourceKind: {
34
34
  missing: 'missing',
35
- 'input-potential': 'input-potential',
36
- 'output-potential': 'output-potential',
35
+ inputPotential: 'inputPotential',
36
+ outputPotential: 'outputPotential',
37
37
  materialized: 'materialized',
38
38
  },
39
39
  RunEventKind: {
@@ -743,8 +743,8 @@
743
743
  "type": "string",
744
744
  "enum": [
745
745
  "missing",
746
- "input-potential",
747
- "output-potential",
746
+ "inputPotential",
747
+ "outputPotential",
748
748
  "materialized"
749
749
  ]
750
750
  }
@@ -798,7 +798,7 @@
798
798
  "type": "object",
799
799
  "properties": {
800
800
  "resourceKind": {
801
- "const": "input-potential"
801
+ "const": "inputPotential"
802
802
  }
803
803
  },
804
804
  "allOf": [
@@ -824,7 +824,7 @@
824
824
  "type": "object",
825
825
  "properties": {
826
826
  "resourceKind": {
827
- "const": "output-potential"
827
+ "const": "outputPotential"
828
828
  }
829
829
  },
830
830
  "allOf": [
@@ -1295,7 +1295,7 @@
1295
1295
  "$ref": "#/$defs/StrategyThreadMapFacet"
1296
1296
  },
1297
1297
  {
1298
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
1298
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1299
1299
  "$ref": "#/$defs/StrategyStateFacet"
1300
1300
  }
1301
1301
  ],
@@ -1115,8 +1115,8 @@
1115
1115
  "type": "string",
1116
1116
  "enum": [
1117
1117
  "missing",
1118
- "input-potential",
1119
- "output-potential",
1118
+ "inputPotential",
1119
+ "outputPotential",
1120
1120
  "materialized"
1121
1121
  ]
1122
1122
  }
@@ -1200,7 +1200,7 @@
1200
1200
  "type": "object",
1201
1201
  "properties": {
1202
1202
  "resourceKind": {
1203
- "const": "input-potential"
1203
+ "const": "inputPotential"
1204
1204
  }
1205
1205
  },
1206
1206
  "allOf": [
@@ -1236,7 +1236,7 @@
1236
1236
  "type": "object",
1237
1237
  "properties": {
1238
1238
  "resourceKind": {
1239
- "const": "output-potential"
1239
+ "const": "outputPotential"
1240
1240
  }
1241
1241
  },
1242
1242
  "allOf": [
@@ -1977,7 +1977,7 @@
1977
1977
  "$ref": "#/$defs/StrategyThreadMapFacet"
1978
1978
  },
1979
1979
  {
1980
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
1980
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1981
1981
  "$ref": "#/$defs/StrategyStateFacet"
1982
1982
  }
1983
1983
  ],
@@ -553,8 +553,8 @@
553
553
  "type": "string",
554
554
  "enum": [
555
555
  "missing",
556
- "input-potential",
557
- "output-potential",
556
+ "inputPotential",
557
+ "outputPotential",
558
558
  "materialized"
559
559
  ]
560
560
  },
@@ -593,7 +593,7 @@
593
593
  "type": "object",
594
594
  "properties": {
595
595
  "resourceKind": {
596
- "const": "input-potential"
596
+ "const": "inputPotential"
597
597
  }
598
598
  },
599
599
  "allOf": [
@@ -614,7 +614,7 @@
614
614
  "type": "object",
615
615
  "properties": {
616
616
  "resourceKind": {
617
- "const": "output-potential"
617
+ "const": "outputPotential"
618
618
  }
619
619
  },
620
620
  "allOf": [
@@ -950,7 +950,7 @@
950
950
  "$ref": "#/$defs/StrategyThreadMapFacet"
951
951
  },
952
952
  {
953
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
953
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
954
954
  "$ref": "#/$defs/StrategyStateFacet"
955
955
  }
956
956
  ],
@@ -362,7 +362,7 @@
362
362
  "type": "object",
363
363
  "properties": {
364
364
  "resourceKind": {
365
- "const": "input-potential"
365
+ "const": "inputPotential"
366
366
  }
367
367
  },
368
368
  "allOf": [
@@ -383,7 +383,7 @@
383
383
  "type": "object",
384
384
  "properties": {
385
385
  "resourceKind": {
386
- "const": "output-potential"
386
+ "const": "outputPotential"
387
387
  }
388
388
  },
389
389
  "allOf": [
@@ -540,8 +540,8 @@
540
540
  "type": "string",
541
541
  "enum": [
542
542
  "missing",
543
- "input-potential",
544
- "output-potential",
543
+ "inputPotential",
544
+ "outputPotential",
545
545
  "materialized"
546
546
  ]
547
547
  },
@@ -19,7 +19,7 @@
19
19
  "$ref": "#/$defs/StrategyThreadMapFacet"
20
20
  },
21
21
  {
22
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
22
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
23
23
  "$ref": "#/$defs/StrategyStateFacet"
24
24
  }
25
25
  ],
@@ -406,7 +406,7 @@
406
406
  "type": "object",
407
407
  "properties": {
408
408
  "resourceKind": {
409
- "const": "input-potential"
409
+ "const": "inputPotential"
410
410
  }
411
411
  },
412
412
  "allOf": [
@@ -427,7 +427,7 @@
427
427
  "type": "object",
428
428
  "properties": {
429
429
  "resourceKind": {
430
- "const": "output-potential"
430
+ "const": "outputPotential"
431
431
  }
432
432
  },
433
433
  "allOf": [
@@ -610,8 +610,8 @@
610
610
  "type": "string",
611
611
  "enum": [
612
612
  "missing",
613
- "input-potential",
614
- "output-potential",
613
+ "inputPotential",
614
+ "outputPotential",
615
615
  "materialized"
616
616
  ]
617
617
  },
@@ -192,7 +192,7 @@
192
192
  "$ref": "#/$defs/StrategyThreadMapFacet"
193
193
  },
194
194
  {
195
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
195
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
196
196
  "$ref": "#/$defs/StrategyStateFacet"
197
197
  }
198
198
  ],
@@ -700,7 +700,7 @@
700
700
  "type": "object",
701
701
  "properties": {
702
702
  "resourceKind": {
703
- "const": "input-potential"
703
+ "const": "inputPotential"
704
704
  }
705
705
  },
706
706
  "allOf": [
@@ -721,7 +721,7 @@
721
721
  "type": "object",
722
722
  "properties": {
723
723
  "resourceKind": {
724
- "const": "output-potential"
724
+ "const": "outputPotential"
725
725
  }
726
726
  },
727
727
  "allOf": [
@@ -878,8 +878,8 @@
878
878
  "type": "string",
879
879
  "enum": [
880
880
  "missing",
881
- "input-potential",
882
- "output-potential",
881
+ "inputPotential",
882
+ "outputPotential",
883
883
  "materialized"
884
884
  ]
885
885
  },
@@ -188,7 +188,7 @@ export type ResourceIdentity =
188
188
  * via the `definition` "ResourceKind".
189
189
  */
190
190
  export type ResourceKind =
191
- "missing" | "input-potential" | "output-potential" | "materialized";
191
+ "missing" | "inputPotential" | "outputPotential" | "materialized";
192
192
  /**
193
193
  * This interface was referenced by `Genesis`'s JSON-Schema
194
194
  * via the `definition` "ShellMissing".
@@ -204,7 +204,7 @@ export type ShellMissing =
204
204
  */
205
205
  export type ShellInputPotential =
206
206
  {
207
- resourceKind?: "input-potential";
207
+ resourceKind?: "inputPotential";
208
208
  } & ResourceShellBase &
209
209
  CreationContextFacet &
210
210
  ResourceKindFacet;
@@ -214,7 +214,7 @@ export type ShellInputPotential =
214
214
  */
215
215
  export type ShellOutputPotential =
216
216
  {
217
- resourceKind?: "output-potential";
217
+ resourceKind?: "outputPotential";
218
218
  } & ResourceShellBase &
219
219
  CreationContextFacet &
220
220
  ResourceKindFacet;
@@ -271,7 +271,7 @@ export type ResourceMissing =
271
271
  */
272
272
  export type ResourceInputPotential =
273
273
  {
274
- resourceKind?: "input-potential";
274
+ resourceKind?: "inputPotential";
275
275
  } & ResourceShellBase &
276
276
  CreationContextFacet &
277
277
  ResourceKindFacet;
@@ -281,7 +281,7 @@ export type ResourceInputPotential =
281
281
  */
282
282
  export type ResourceOutputPotential =
283
283
  {
284
- resourceKind?: "output-potential";
284
+ resourceKind?: "outputPotential";
285
285
  } & ResourceShellBase &
286
286
  CreationContextFacet &
287
287
  ResourceKindFacet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-core/schema",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "JSON schemas and TypeScript types for ToolProof",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/Genesis.json CHANGED
@@ -781,8 +781,8 @@
781
781
  "type": "string",
782
782
  "enum": [
783
783
  "missing",
784
- "input-potential",
785
- "output-potential",
784
+ "inputPotential",
785
+ "outputPotential",
786
786
  "materialized"
787
787
  ]
788
788
  }
@@ -839,7 +839,7 @@
839
839
  "type": "object",
840
840
  "properties": {
841
841
  "resourceKind": {
842
- "const": "input-potential"
842
+ "const": "inputPotential"
843
843
  }
844
844
  },
845
845
  "allOf": [
@@ -866,7 +866,7 @@
866
866
  "type": "object",
867
867
  "properties": {
868
868
  "resourceKind": {
869
- "const": "output-potential"
869
+ "const": "outputPotential"
870
870
  }
871
871
  },
872
872
  "allOf": [
@@ -1364,7 +1364,7 @@
1364
1364
  "$ref": "#StrategyThreadMapFacet"
1365
1365
  },
1366
1366
  {
1367
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
1367
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1368
1368
  "$ref": "#StrategyStateFacet"
1369
1369
  }
1370
1370
  ],
@@ -32,8 +32,8 @@ const CONSTANTS = {
32
32
  ENUMS: {
33
33
  ResourceKind: {
34
34
  missing: 'missing',
35
- 'input-potential': 'input-potential',
36
- 'output-potential': 'output-potential',
35
+ inputPotential: 'inputPotential',
36
+ outputPotential: 'outputPotential',
37
37
  materialized: 'materialized',
38
38
  },
39
39
  RunEventKind: {
@@ -743,8 +743,8 @@
743
743
  "type": "string",
744
744
  "enum": [
745
745
  "missing",
746
- "input-potential",
747
- "output-potential",
746
+ "inputPotential",
747
+ "outputPotential",
748
748
  "materialized"
749
749
  ]
750
750
  }
@@ -798,7 +798,7 @@
798
798
  "type": "object",
799
799
  "properties": {
800
800
  "resourceKind": {
801
- "const": "input-potential"
801
+ "const": "inputPotential"
802
802
  }
803
803
  },
804
804
  "allOf": [
@@ -824,7 +824,7 @@
824
824
  "type": "object",
825
825
  "properties": {
826
826
  "resourceKind": {
827
- "const": "output-potential"
827
+ "const": "outputPotential"
828
828
  }
829
829
  },
830
830
  "allOf": [
@@ -1295,7 +1295,7 @@
1295
1295
  "$ref": "#/$defs/StrategyThreadMapFacet"
1296
1296
  },
1297
1297
  {
1298
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
1298
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1299
1299
  "$ref": "#/$defs/StrategyStateFacet"
1300
1300
  }
1301
1301
  ],
@@ -1115,8 +1115,8 @@
1115
1115
  "type": "string",
1116
1116
  "enum": [
1117
1117
  "missing",
1118
- "input-potential",
1119
- "output-potential",
1118
+ "inputPotential",
1119
+ "outputPotential",
1120
1120
  "materialized"
1121
1121
  ]
1122
1122
  }
@@ -1200,7 +1200,7 @@
1200
1200
  "type": "object",
1201
1201
  "properties": {
1202
1202
  "resourceKind": {
1203
- "const": "input-potential"
1203
+ "const": "inputPotential"
1204
1204
  }
1205
1205
  },
1206
1206
  "allOf": [
@@ -1236,7 +1236,7 @@
1236
1236
  "type": "object",
1237
1237
  "properties": {
1238
1238
  "resourceKind": {
1239
- "const": "output-potential"
1239
+ "const": "outputPotential"
1240
1240
  }
1241
1241
  },
1242
1242
  "allOf": [
@@ -1977,7 +1977,7 @@
1977
1977
  "$ref": "#/$defs/StrategyThreadMapFacet"
1978
1978
  },
1979
1979
  {
1980
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
1980
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1981
1981
  "$ref": "#/$defs/StrategyStateFacet"
1982
1982
  }
1983
1983
  ],
@@ -553,8 +553,8 @@
553
553
  "type": "string",
554
554
  "enum": [
555
555
  "missing",
556
- "input-potential",
557
- "output-potential",
556
+ "inputPotential",
557
+ "outputPotential",
558
558
  "materialized"
559
559
  ]
560
560
  },
@@ -593,7 +593,7 @@
593
593
  "type": "object",
594
594
  "properties": {
595
595
  "resourceKind": {
596
- "const": "input-potential"
596
+ "const": "inputPotential"
597
597
  }
598
598
  },
599
599
  "allOf": [
@@ -614,7 +614,7 @@
614
614
  "type": "object",
615
615
  "properties": {
616
616
  "resourceKind": {
617
- "const": "output-potential"
617
+ "const": "outputPotential"
618
618
  }
619
619
  },
620
620
  "allOf": [
@@ -950,7 +950,7 @@
950
950
  "$ref": "#/$defs/StrategyThreadMapFacet"
951
951
  },
952
952
  {
953
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
953
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
954
954
  "$ref": "#/$defs/StrategyStateFacet"
955
955
  }
956
956
  ],
@@ -362,7 +362,7 @@
362
362
  "type": "object",
363
363
  "properties": {
364
364
  "resourceKind": {
365
- "const": "input-potential"
365
+ "const": "inputPotential"
366
366
  }
367
367
  },
368
368
  "allOf": [
@@ -383,7 +383,7 @@
383
383
  "type": "object",
384
384
  "properties": {
385
385
  "resourceKind": {
386
- "const": "output-potential"
386
+ "const": "outputPotential"
387
387
  }
388
388
  },
389
389
  "allOf": [
@@ -540,8 +540,8 @@
540
540
  "type": "string",
541
541
  "enum": [
542
542
  "missing",
543
- "input-potential",
544
- "output-potential",
543
+ "inputPotential",
544
+ "outputPotential",
545
545
  "materialized"
546
546
  ]
547
547
  },
@@ -19,7 +19,7 @@
19
19
  "$ref": "#/$defs/StrategyThreadMapFacet"
20
20
  },
21
21
  {
22
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
22
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
23
23
  "$ref": "#/$defs/StrategyStateFacet"
24
24
  }
25
25
  ],
@@ -406,7 +406,7 @@
406
406
  "type": "object",
407
407
  "properties": {
408
408
  "resourceKind": {
409
- "const": "input-potential"
409
+ "const": "inputPotential"
410
410
  }
411
411
  },
412
412
  "allOf": [
@@ -427,7 +427,7 @@
427
427
  "type": "object",
428
428
  "properties": {
429
429
  "resourceKind": {
430
- "const": "output-potential"
430
+ "const": "outputPotential"
431
431
  }
432
432
  },
433
433
  "allOf": [
@@ -610,8 +610,8 @@
610
610
  "type": "string",
611
611
  "enum": [
612
612
  "missing",
613
- "input-potential",
614
- "output-potential",
613
+ "inputPotential",
614
+ "outputPotential",
615
615
  "materialized"
616
616
  ]
617
617
  },
@@ -192,7 +192,7 @@
192
192
  "$ref": "#/$defs/StrategyThreadMapFacet"
193
193
  },
194
194
  {
195
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
195
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
196
196
  "$ref": "#/$defs/StrategyStateFacet"
197
197
  }
198
198
  ],
@@ -700,7 +700,7 @@
700
700
  "type": "object",
701
701
  "properties": {
702
702
  "resourceKind": {
703
- "const": "input-potential"
703
+ "const": "inputPotential"
704
704
  }
705
705
  },
706
706
  "allOf": [
@@ -721,7 +721,7 @@
721
721
  "type": "object",
722
722
  "properties": {
723
723
  "resourceKind": {
724
- "const": "output-potential"
724
+ "const": "outputPotential"
725
725
  }
726
726
  },
727
727
  "allOf": [
@@ -878,8 +878,8 @@
878
878
  "type": "string",
879
879
  "enum": [
880
880
  "missing",
881
- "input-potential",
882
- "output-potential",
881
+ "inputPotential",
882
+ "outputPotential",
883
883
  "materialized"
884
884
  ]
885
885
  },
@@ -188,7 +188,7 @@ export type ResourceIdentity =
188
188
  * via the `definition` "ResourceKind".
189
189
  */
190
190
  export type ResourceKind =
191
- "missing" | "input-potential" | "output-potential" | "materialized";
191
+ "missing" | "inputPotential" | "outputPotential" | "materialized";
192
192
  /**
193
193
  * This interface was referenced by `Genesis`'s JSON-Schema
194
194
  * via the `definition` "ShellMissing".
@@ -204,7 +204,7 @@ export type ShellMissing =
204
204
  */
205
205
  export type ShellInputPotential =
206
206
  {
207
- resourceKind?: "input-potential";
207
+ resourceKind?: "inputPotential";
208
208
  } & ResourceShellBase &
209
209
  CreationContextFacet &
210
210
  ResourceKindFacet;
@@ -214,7 +214,7 @@ export type ShellInputPotential =
214
214
  */
215
215
  export type ShellOutputPotential =
216
216
  {
217
- resourceKind?: "output-potential";
217
+ resourceKind?: "outputPotential";
218
218
  } & ResourceShellBase &
219
219
  CreationContextFacet &
220
220
  ResourceKindFacet;
@@ -271,7 +271,7 @@ export type ResourceMissing =
271
271
  */
272
272
  export type ResourceInputPotential =
273
273
  {
274
- resourceKind?: "input-potential";
274
+ resourceKind?: "inputPotential";
275
275
  } & ResourceShellBase &
276
276
  CreationContextFacet &
277
277
  ResourceKindFacet;
@@ -281,7 +281,7 @@ export type ResourceInputPotential =
281
281
  */
282
282
  export type ResourceOutputPotential =
283
283
  {
284
- resourceKind?: "output-potential";
284
+ resourceKind?: "outputPotential";
285
285
  } & ResourceShellBase &
286
286
  CreationContextFacet &
287
287
  ResourceKindFacet;
@@ -70,7 +70,7 @@ export function deriveIdentifiablesFromIdentityPrefixes(identityPrefixes: Record
70
70
  }
71
71
 
72
72
  // PURE: Extract all string enums from `$defs/*Kind|*Status` definitions.
73
- // Shape: { StepKind: { job: 'job', ... }, ResourceKind: { 'input-potential': 'input-potential', ... } }
73
+ // Shape: { StepKind: { job: 'job', ... }, ResourceKind: { inputPotential': 'inputPotential', ... } }
74
74
  export function extractEnums(schema: unknown): Record<string, Record<string, string>> {
75
75
  if (!schema || typeof schema !== 'object') return {};
76
76