@toolproof-npm/schema 0.1.82 → 0.1.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/genesis/generated/dependencies_ordered.json +18 -23
  2. package/dist/genesis/generated/resourceTypes/Genesis.json +41 -69
  3. package/dist/genesis/generated/resources/Genesis.json +51 -89
  4. package/dist/genesis/generated/schemas/Genesis.json +103 -125
  5. package/dist/genesis/generated/schemas/RunRecording.json +123 -145
  6. package/dist/genesis/generated/schemas/RunnableStrategy.d.ts +2 -0
  7. package/dist/genesis/generated/schemas/RunnableStrategy.js +2 -0
  8. package/dist/genesis/generated/schemas/{StrategyRun.json → RunnableStrategy.json} +21 -21
  9. package/dist/genesis/generated/terminals.json +1 -1
  10. package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +5 -6
  11. package/dist/genesis/generated/types/Resource_RunnableStrategy.d.ts +3 -0
  12. package/dist/genesis/generated/types/types.d.ts +274 -286
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +1 -1
  15. package/package.json +2 -2
  16. package/dist/genesis/generated/resource-envelopes/Genesis.d.ts +0 -2
  17. package/dist/genesis/generated/resource-envelopes/Genesis.js +0 -2
  18. package/dist/genesis/generated/resource-envelopes/Genesis.json +0 -2337
  19. package/dist/genesis/generated/resource-type-envelopes/Genesis.d.ts +0 -2
  20. package/dist/genesis/generated/resource-type-envelopes/Genesis.js +0 -2
  21. package/dist/genesis/generated/resource-type-envelopes/Genesis.json +0 -1757
  22. package/dist/genesis/generated/schemas/StrategyRun.d.ts +0 -2
  23. package/dist/genesis/generated/schemas/StrategyRun.js +0 -2
  24. package/dist/genesis/generated/types/Resource_StrategyRun.d.ts +0 -3
  25. /package/dist/genesis/generated/types/{Resource_StrategyRun.js → Resource_RunnableStrategy.js} +0 -0
@@ -12,9 +12,9 @@
12
12
  "$ref": "#/$defs/RunEvent"
13
13
  }
14
14
  },
15
- "strategyRunRef": {
15
+ "runnableStrategyRef": {
16
16
  "$comment": "Optional; derived from the first event but useful for indexing.",
17
- "$ref": "#/$defs/StrategyRunIdentity"
17
+ "$ref": "#/$defs/RunnableStrategyIdentity"
18
18
  },
19
19
  "strategyThreadRef": {
20
20
  "$comment": "Optional; derived from the first event but useful for indexing.",
@@ -59,11 +59,11 @@
59
59
  ],
60
60
  "$anchor": "RunEvent"
61
61
  },
62
- "StrategyRunIdentity": {
62
+ "RunnableStrategyIdentity": {
63
63
  "$schema": "https://json-schema.org/draft/2020-12/schema",
64
64
  "type": "string",
65
- "$anchor": "StrategyRunIdentity",
66
- "pattern": "^STRATEGY_RUN-.+$"
65
+ "$anchor": "RunnableStrategyIdentity",
66
+ "pattern": "^RUNNABLE_STRATEGY-.+$"
67
67
  },
68
68
  "StrategyThreadIdentity": {
69
69
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -83,12 +83,12 @@
83
83
  "kind": {
84
84
  "const": "graph_start"
85
85
  },
86
- "strategyRunSeed": {
87
- "$ref": "#/$defs/StrategyRun"
86
+ "runnableStrategySeed": {
87
+ "$ref": "#/$defs/RunnableStrategy"
88
88
  }
89
89
  },
90
90
  "required": [
91
- "strategyRunSeed"
91
+ "runnableStrategySeed"
92
92
  ]
93
93
  }
94
94
  ],
@@ -164,12 +164,12 @@
164
164
  "nodeName": {
165
165
  "type": "string"
166
166
  },
167
+ "runnableStrategyRef": {
168
+ "$ref": "#/$defs/RunnableStrategyIdentity"
169
+ },
167
170
  "stepMetaData": {
168
171
  "$ref": "#/$defs/RunEventStepMetaData"
169
172
  },
170
- "strategyRunRef": {
171
- "$ref": "#/$defs/StrategyRunIdentity"
172
- },
173
173
  "strategyThreadRef": {
174
174
  "$ref": "#/$defs/StrategyThreadIdentity"
175
175
  },
@@ -179,7 +179,7 @@
179
179
  },
180
180
  "required": [
181
181
  "kind",
182
- "strategyRunRef",
182
+ "runnableStrategyRef",
183
183
  "strategyThreadRef",
184
184
  "createdAt",
185
185
  "nodeName",
@@ -187,7 +187,7 @@
187
187
  ],
188
188
  "$anchor": "RunEventBase"
189
189
  },
190
- "StrategyRun": {
190
+ "RunnableStrategy": {
191
191
  "$schema": "https://json-schema.org/draft/2020-12/schema",
192
192
  "type": "object",
193
193
  "allOf": [
@@ -196,28 +196,28 @@
196
196
  "$ref": "#/$defs/StrategyThreadMapWrapper"
197
197
  },
198
198
  {
199
- "$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.",
199
+ "$comment": "Reusing StrategyStateWrapper to include the strategy state in the RunnableStrategy. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
200
200
  "$ref": "#/$defs/StrategyStateWrapper"
201
201
  }
202
202
  ],
203
203
  "properties": {
204
204
  "identity": {
205
- "$ref": "#/$defs/StrategyRunIdentity"
205
+ "$ref": "#/$defs/RunnableStrategyIdentity"
206
+ },
207
+ "runnableStrategyContext": {
208
+ "$ref": "#/$defs/RunnableStrategyContext"
206
209
  },
207
210
  "statefulStrategyRef": {
208
211
  "$ref": "#/$defs/StatefulStrategyIdentity"
209
- },
210
- "strategyRunContext": {
211
- "$ref": "#/$defs/StrategyRunContext"
212
212
  }
213
213
  },
214
214
  "required": [
215
215
  "identity",
216
216
  "statefulStrategyRef",
217
- "strategyRunContext"
217
+ "runnableStrategyContext"
218
218
  ],
219
219
  "unevaluatedProperties": false,
220
- "$anchor": "StrategyRun"
220
+ "$anchor": "RunnableStrategy"
221
221
  },
222
222
  "RunEventCounters": {
223
223
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -346,13 +346,7 @@
346
346
  ],
347
347
  "$anchor": "StrategyStateWrapper"
348
348
  },
349
- "StatefulStrategyIdentity": {
350
- "$schema": "https://json-schema.org/draft/2020-12/schema",
351
- "type": "string",
352
- "$anchor": "StatefulStrategyIdentity",
353
- "pattern": "^STATEFUL_STRATEGY-.+$"
354
- },
355
- "StrategyRunContext": {
349
+ "RunnableStrategyContext": {
356
350
  "$schema": "https://json-schema.org/draft/2020-12/schema",
357
351
  "type": "object",
358
352
  "properties": {
@@ -363,14 +357,20 @@
363
357
  "$ref": "#/$defs/Timestamp"
364
358
  },
365
359
  "status": {
366
- "$ref": "#/$defs/StrategyRunStatus"
360
+ "$ref": "#/$defs/RunnableStrategyStatus"
367
361
  }
368
362
  },
369
363
  "required": [
370
364
  "status"
371
365
  ],
372
366
  "unevaluatedProperties": false,
373
- "$anchor": "StrategyRunContext"
367
+ "$anchor": "RunnableStrategyContext"
368
+ },
369
+ "StatefulStrategyIdentity": {
370
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
371
+ "type": "string",
372
+ "$anchor": "StatefulStrategyIdentity",
373
+ "pattern": "^STATEFUL_STRATEGY-.+$"
374
374
  },
375
375
  "ExecutionIdentity": {
376
376
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -425,16 +425,6 @@
425
425
  "type": "object",
426
426
  "properties": {
427
427
  "strategyStateUpdate": {
428
- "type": "object",
429
- "additionalProperties": {
430
- "$ref": "#/$defs/ExecutionSocketMaterialized"
431
- },
432
- "unevaluatedProperties": false,
433
- "propertyNames": {
434
- "$ref": "#/$defs/ExecutionIdentity"
435
- }
436
- },
437
- "strategyStateUpdateWide": {
438
428
  "type": "object",
439
429
  "additionalProperties": {
440
430
  "$ref": "#/$defs/ExecutionSocket"
@@ -494,10 +484,10 @@
494
484
  "$ref": "#/$defs/ExecutionIdentity"
495
485
  }
496
486
  },
497
- "StrategyRunStatus": {
487
+ "RunnableStrategyStatus": {
498
488
  "$schema": "https://json-schema.org/draft/2020-12/schema",
499
489
  "type": "string",
500
- "$anchor": "StrategyRunStatus",
490
+ "$anchor": "RunnableStrategyStatus",
501
491
  "enum": [
502
492
  "pending",
503
493
  "running",
@@ -506,18 +496,6 @@
506
496
  "cancelled"
507
497
  ]
508
498
  },
509
- "ExecutionSocketMaterialized": {
510
- "$schema": "https://json-schema.org/draft/2020-12/schema",
511
- "type": "object",
512
- "additionalProperties": {
513
- "$ref": "#/$defs/Resource"
514
- },
515
- "unevaluatedProperties": false,
516
- "$anchor": "ExecutionSocketMaterialized",
517
- "propertyNames": {
518
- "$ref": "#/$defs/ResourceRoleIdentity"
519
- }
520
- },
521
499
  "ExecutionSocket": {
522
500
  "$schema": "https://json-schema.org/draft/2020-12/schema",
523
501
  "type": "object",
@@ -652,37 +630,6 @@
652
630
  ],
653
631
  "$anchor": "ForStep"
654
632
  },
655
- "Resource": {
656
- "$schema": "https://json-schema.org/draft/2020-12/schema",
657
- "type": "object",
658
- "allOf": [
659
- {
660
- "$ref": "#/$defs/ResourceMetaBase"
661
- },
662
- {
663
- "properties": {
664
- "extractedData": {
665
- "type": "object",
666
- "additionalProperties": {
667
- "$ref": "#/$defs/JsonData"
668
- },
669
- "$comment": "This will be overlayed at runtime to match the data structure of the underlying type's extractionSchema. At compile time, we guarantee it has an identity property."
670
- }
671
- },
672
- "required": [
673
- "extractedData"
674
- ]
675
- }
676
- ],
677
- "unevaluatedProperties": false,
678
- "$anchor": "Resource"
679
- },
680
- "ResourceRoleIdentity": {
681
- "$schema": "https://json-schema.org/draft/2020-12/schema",
682
- "type": "string",
683
- "$anchor": "ResourceRoleIdentity",
684
- "pattern": "^ROLE-.+$"
685
- },
686
633
  "ResourceMissing": {
687
634
  "$schema": "https://json-schema.org/draft/2020-12/schema",
688
635
  "type": "object",
@@ -761,6 +708,37 @@
761
708
  "unevaluatedProperties": false,
762
709
  "$anchor": "ResourcePotentialOutput"
763
710
  },
711
+ "Resource": {
712
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
713
+ "type": "object",
714
+ "allOf": [
715
+ {
716
+ "$ref": "#/$defs/ResourceMetaBase"
717
+ },
718
+ {
719
+ "properties": {
720
+ "extractedData": {
721
+ "type": "object",
722
+ "additionalProperties": {
723
+ "$ref": "#/$defs/JsonData"
724
+ },
725
+ "$comment": "This will be overlayed at runtime to match the data structure of the underlying type's extractionSchema. At compile time, we guarantee it has an identity property."
726
+ }
727
+ },
728
+ "required": [
729
+ "extractedData"
730
+ ]
731
+ }
732
+ ],
733
+ "unevaluatedProperties": false,
734
+ "$anchor": "Resource"
735
+ },
736
+ "ResourceRoleIdentity": {
737
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
738
+ "type": "string",
739
+ "$anchor": "ResourceRoleIdentity",
740
+ "pattern": "^ROLE-.+$"
741
+ },
764
742
  "StepKind": {
765
743
  "$schema": "https://json-schema.org/draft/2020-12/schema",
766
744
  "type": "object",
@@ -821,6 +799,54 @@
821
799
  "unevaluatedProperties": false,
822
800
  "$anchor": "Conditional"
823
801
  },
802
+ "ResourceBase": {
803
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
804
+ "type": "object",
805
+ "properties": {
806
+ "identity": {
807
+ "$ref": "#/$defs/ResourceIdentity"
808
+ },
809
+ "resourceTypeRef": {
810
+ "$ref": "#/$defs/ResourceTypeIdentity"
811
+ }
812
+ },
813
+ "required": [
814
+ "identity",
815
+ "resourceTypeRef"
816
+ ],
817
+ "$anchor": "ResourceBase"
818
+ },
819
+ "ResourceKind": {
820
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
821
+ "type": "object",
822
+ "properties": {
823
+ "kind": {
824
+ "enum": [
825
+ "missing",
826
+ "potential-input",
827
+ "potential-output",
828
+ "materialized"
829
+ ]
830
+ }
831
+ },
832
+ "required": [
833
+ "kind"
834
+ ],
835
+ "$anchor": "ResourceKind"
836
+ },
837
+ "CreationContextWrapper": {
838
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
839
+ "type": "object",
840
+ "properties": {
841
+ "creationContext": {
842
+ "$ref": "#/$defs/CreationContext"
843
+ }
844
+ },
845
+ "required": [
846
+ "creationContext"
847
+ ],
848
+ "$anchor": "CreationContextWrapper"
849
+ },
824
850
  "ResourceMetaBase": {
825
851
  "$schema": "https://json-schema.org/draft/2020-12/schema",
826
852
  "type": "object",
@@ -883,54 +909,6 @@
883
909
  ],
884
910
  "$anchor": "JsonData"
885
911
  },
886
- "ResourceBase": {
887
- "$schema": "https://json-schema.org/draft/2020-12/schema",
888
- "type": "object",
889
- "properties": {
890
- "identity": {
891
- "$ref": "#/$defs/ResourceIdentity"
892
- },
893
- "resourceTypeRef": {
894
- "$ref": "#/$defs/ResourceTypeIdentity"
895
- }
896
- },
897
- "required": [
898
- "identity",
899
- "resourceTypeRef"
900
- ],
901
- "$anchor": "ResourceBase"
902
- },
903
- "ResourceKind": {
904
- "$schema": "https://json-schema.org/draft/2020-12/schema",
905
- "type": "object",
906
- "properties": {
907
- "kind": {
908
- "enum": [
909
- "missing",
910
- "potential-input",
911
- "potential-output",
912
- "materialized"
913
- ]
914
- }
915
- },
916
- "required": [
917
- "kind"
918
- ],
919
- "$anchor": "ResourceKind"
920
- },
921
- "CreationContextWrapper": {
922
- "$schema": "https://json-schema.org/draft/2020-12/schema",
923
- "type": "object",
924
- "properties": {
925
- "creationContext": {
926
- "$ref": "#/$defs/CreationContext"
927
- }
928
- },
929
- "required": [
930
- "creationContext"
931
- ],
932
- "$anchor": "CreationContextWrapper"
933
- },
934
912
  "RoleBindingsWrapper": {
935
913
  "$schema": "https://json-schema.org/draft/2020-12/schema",
936
914
  "type": "object",
@@ -944,19 +922,6 @@
944
922
  ],
945
923
  "$anchor": "RoleBindingsWrapper"
946
924
  },
947
- "Path": {
948
- "$schema": "https://json-schema.org/draft/2020-12/schema",
949
- "type": "object",
950
- "properties": {
951
- "path": {
952
- "type": "string"
953
- }
954
- },
955
- "required": [
956
- "path"
957
- ],
958
- "$anchor": "Path"
959
- },
960
925
  "ResourceIdentity": {
961
926
  "$schema": "https://json-schema.org/draft/2020-12/schema",
962
927
  "type": "string",
@@ -987,6 +952,19 @@
987
952
  ],
988
953
  "$anchor": "CreationContext"
989
954
  },
955
+ "Path": {
956
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
957
+ "type": "object",
958
+ "properties": {
959
+ "path": {
960
+ "type": "string"
961
+ }
962
+ },
963
+ "required": [
964
+ "path"
965
+ ],
966
+ "$anchor": "Path"
967
+ },
990
968
  "RoleBindings": {
991
969
  "$schema": "https://json-schema.org/draft/2020-12/schema",
992
970
  "type": "object",
@@ -0,0 +1,2 @@
1
+ import schema from './RunnableStrategy.json';
2
+ export default schema;
@@ -0,0 +1,2 @@
1
+ import schema from './RunnableStrategy.json' with { type: 'json' };
2
+ export default schema;
@@ -7,28 +7,28 @@
7
7
  "$ref": "#/$defs/StrategyThreadMapWrapper"
8
8
  },
9
9
  {
10
- "$comment": "Reusing StrategyStateWrapper to include the strategy state in the StrategyRun. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
10
+ "$comment": "Reusing StrategyStateWrapper to include the strategy state in the RunnableStrategy. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
11
11
  "$ref": "#/$defs/StrategyStateWrapper"
12
12
  }
13
13
  ],
14
14
  "properties": {
15
15
  "identity": {
16
- "$ref": "#/$defs/StrategyRunIdentity"
16
+ "$ref": "#/$defs/RunnableStrategyIdentity"
17
+ },
18
+ "runnableStrategyContext": {
19
+ "$ref": "#/$defs/RunnableStrategyContext"
17
20
  },
18
21
  "statefulStrategyRef": {
19
22
  "$ref": "#/$defs/StatefulStrategyIdentity"
20
- },
21
- "strategyRunContext": {
22
- "$ref": "#/$defs/StrategyRunContext"
23
23
  }
24
24
  },
25
25
  "required": [
26
26
  "identity",
27
27
  "statefulStrategyRef",
28
- "strategyRunContext"
28
+ "runnableStrategyContext"
29
29
  ],
30
30
  "unevaluatedProperties": false,
31
- "$anchor": "StrategyRun",
31
+ "$anchor": "RunnableStrategy",
32
32
  "$defs": {
33
33
  "StrategyThreadMapWrapper": {
34
34
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -56,19 +56,13 @@
56
56
  ],
57
57
  "$anchor": "StrategyStateWrapper"
58
58
  },
59
- "StrategyRunIdentity": {
59
+ "RunnableStrategyIdentity": {
60
60
  "$schema": "https://json-schema.org/draft/2020-12/schema",
61
61
  "type": "string",
62
- "$anchor": "StrategyRunIdentity",
63
- "pattern": "^STRATEGY_RUN-.+$"
64
- },
65
- "StatefulStrategyIdentity": {
66
- "$schema": "https://json-schema.org/draft/2020-12/schema",
67
- "type": "string",
68
- "$anchor": "StatefulStrategyIdentity",
69
- "pattern": "^STATEFUL_STRATEGY-.+$"
62
+ "$anchor": "RunnableStrategyIdentity",
63
+ "pattern": "^RUNNABLE_STRATEGY-.+$"
70
64
  },
71
- "StrategyRunContext": {
65
+ "RunnableStrategyContext": {
72
66
  "$schema": "https://json-schema.org/draft/2020-12/schema",
73
67
  "type": "object",
74
68
  "properties": {
@@ -79,14 +73,20 @@
79
73
  "$ref": "#/$defs/Timestamp"
80
74
  },
81
75
  "status": {
82
- "$ref": "#/$defs/StrategyRunStatus"
76
+ "$ref": "#/$defs/RunnableStrategyStatus"
83
77
  }
84
78
  },
85
79
  "required": [
86
80
  "status"
87
81
  ],
88
82
  "unevaluatedProperties": false,
89
- "$anchor": "StrategyRunContext"
83
+ "$anchor": "RunnableStrategyContext"
84
+ },
85
+ "StatefulStrategyIdentity": {
86
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
87
+ "type": "string",
88
+ "$anchor": "StatefulStrategyIdentity",
89
+ "pattern": "^STATEFUL_STRATEGY-.+$"
90
90
  },
91
91
  "StrategyThreadMap": {
92
92
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -128,10 +128,10 @@
128
128
  ],
129
129
  "$anchor": "Timestamp"
130
130
  },
131
- "StrategyRunStatus": {
131
+ "RunnableStrategyStatus": {
132
132
  "$schema": "https://json-schema.org/draft/2020-12/schema",
133
133
  "type": "string",
134
- "$anchor": "StrategyRunStatus",
134
+ "$anchor": "RunnableStrategyStatus",
135
135
  "enum": [
136
136
  "pending",
137
137
  "running",
@@ -5,6 +5,6 @@
5
5
  "ResourceMeta",
6
6
  "Job",
7
7
  "StatefulStrategy",
8
- "StrategyRunUpdate",
8
+ "RunnableStrategyUpdate",
9
9
  "RunRecording"
10
10
  ]
@@ -13,7 +13,6 @@ export type ResourceTypeGenesis = {
13
13
  "Execution": ResourceType;
14
14
  "ExecutionIdentity": ResourceType;
15
15
  "ExecutionSocket": ResourceType;
16
- "ExecutionSocketMaterialized": ResourceType;
17
16
  "ExtractionSchema": ResourceType;
18
17
  "ExtractionSchemaWrapper": ResourceType;
19
18
  "ForStep": ResourceType;
@@ -60,6 +59,11 @@ export type ResourceTypeGenesis = {
60
59
  "RunEventStepKind": ResourceType;
61
60
  "RunEventStepMetaData": ResourceType;
62
61
  "RunEventUpdates": ResourceType;
62
+ "RunnableStrategy": ResourceType;
63
+ "RunnableStrategyContext": ResourceType;
64
+ "RunnableStrategyIdentity": ResourceType;
65
+ "RunnableStrategyStatus": ResourceType;
66
+ "RunnableStrategyUpdate": ResourceType;
63
67
  "RunRecording": ResourceType;
64
68
  "StatefulStrategy": ResourceType;
65
69
  "StatefulStrategyIdentity": ResourceType;
@@ -68,11 +72,6 @@ export type ResourceTypeGenesis = {
68
72
  "StatelessStrategyWrapper": ResourceType;
69
73
  "Step": ResourceType;
70
74
  "StepKind": ResourceType;
71
- "StrategyRun": ResourceType;
72
- "StrategyRunContext": ResourceType;
73
- "StrategyRunIdentity": ResourceType;
74
- "StrategyRunStatus": ResourceType;
75
- "StrategyRunUpdate": ResourceType;
76
75
  "StrategyState": ResourceType;
77
76
  "StrategyStateDelta": ResourceType;
78
77
  "StrategyStateWrapper": ResourceType;
@@ -0,0 +1,3 @@
1
+ // Auto-generated strict composite type. Do not edit.
2
+ import type { ResourceMetaBase, RunnableStrategy as ExtractedData } from './types.js';
3
+ export type Resource_RunnableStrategy = ResourceMetaBase & { extractedData: ExtractedData };