@toolproof-npm/schema 0.1.83 → 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/dist/genesis/generated/dependencies_ordered.json +7 -2
- package/dist/genesis/generated/resourceTypes/Genesis.json +72 -8
- package/dist/genesis/generated/resources/Genesis.json +92 -8
- package/dist/genesis/generated/schemas/Genesis.json +60 -8
- package/dist/genesis/generated/schemas/Job.json +24 -0
- package/dist/genesis/generated/schemas/RunRecording.json +101 -108
- package/dist/genesis/generated/terminals.json +1 -0
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +2 -0
- package/dist/genesis/generated/types/types.d.ts +34 -16
- package/dist/index.d.ts +1 -1
- package/dist/scripts/generateTypes.js +1 -3
- package/package.json +1 -1
|
@@ -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
|
],
|
|
@@ -147,8 +153,7 @@
|
|
|
147
153
|
"ExecutionIdentity"
|
|
148
154
|
],
|
|
149
155
|
"StrategyStateDelta": [
|
|
150
|
-
"
|
|
151
|
-
"ExecutionIdentity"
|
|
156
|
+
"StrategyState"
|
|
152
157
|
],
|
|
153
158
|
"StrategyStateWrapper": [
|
|
154
159
|
"StrategyState"
|
|
@@ -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
|
}
|
|
@@ -2008,14 +2038,7 @@
|
|
|
2008
2038
|
"$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
|
|
2009
2039
|
"properties": {
|
|
2010
2040
|
"strategyStateUpdate": {
|
|
2011
|
-
"
|
|
2012
|
-
"propertyNames": {
|
|
2013
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
2014
|
-
},
|
|
2015
|
-
"additionalProperties": {
|
|
2016
|
-
"$ref": "#/$defs/ExecutionSocket"
|
|
2017
|
-
},
|
|
2018
|
-
"unevaluatedProperties": false
|
|
2041
|
+
"$ref": "#/$defs/StrategyState"
|
|
2019
2042
|
}
|
|
2020
2043
|
}
|
|
2021
2044
|
}
|
|
@@ -2396,6 +2419,47 @@
|
|
|
2396
2419
|
},
|
|
2397
2420
|
"unevaluatedProperties": false
|
|
2398
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
|
+
}
|
|
2399
2463
|
}
|
|
2400
2464
|
}
|
|
2401
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
|
}
|
|
@@ -2699,14 +2739,7 @@
|
|
|
2699
2739
|
"$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
|
|
2700
2740
|
"properties": {
|
|
2701
2741
|
"strategyStateUpdate": {
|
|
2702
|
-
"
|
|
2703
|
-
"propertyNames": {
|
|
2704
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
2705
|
-
},
|
|
2706
|
-
"additionalProperties": {
|
|
2707
|
-
"$ref": "#/$defs/ExecutionSocket"
|
|
2708
|
-
},
|
|
2709
|
-
"unevaluatedProperties": false
|
|
2742
|
+
"$ref": "#/$defs/StrategyState"
|
|
2710
2743
|
}
|
|
2711
2744
|
}
|
|
2712
2745
|
}
|
|
@@ -3218,5 +3251,56 @@
|
|
|
3218
3251
|
"unevaluatedProperties": false
|
|
3219
3252
|
}
|
|
3220
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
|
+
}
|
|
3221
3305
|
}
|
|
3222
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
|
}
|
|
@@ -1743,14 +1802,7 @@
|
|
|
1743
1802
|
"type": "object",
|
|
1744
1803
|
"properties": {
|
|
1745
1804
|
"strategyStateUpdate": {
|
|
1746
|
-
"
|
|
1747
|
-
"additionalProperties": {
|
|
1748
|
-
"$ref": "#/$defs/ExecutionSocket"
|
|
1749
|
-
},
|
|
1750
|
-
"unevaluatedProperties": false,
|
|
1751
|
-
"propertyNames": {
|
|
1752
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
1753
|
-
}
|
|
1805
|
+
"$ref": "#/$defs/StrategyState"
|
|
1754
1806
|
}
|
|
1755
1807
|
},
|
|
1756
1808
|
"$anchor": "StrategyStateDelta",
|
|
@@ -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",
|
|
@@ -425,14 +425,7 @@
|
|
|
425
425
|
"type": "object",
|
|
426
426
|
"properties": {
|
|
427
427
|
"strategyStateUpdate": {
|
|
428
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
789
|
-
"$ref": "#/$defs/
|
|
790
|
-
},
|
|
791
|
-
"when": {
|
|
792
|
-
"$ref": "#/$defs/WorkStep"
|
|
799
|
+
"roleBindings": {
|
|
800
|
+
"$ref": "#/$defs/RoleBindings"
|
|
793
801
|
}
|
|
794
802
|
},
|
|
795
803
|
"required": [
|
|
796
|
-
"
|
|
797
|
-
"what"
|
|
804
|
+
"roleBindings"
|
|
798
805
|
],
|
|
799
|
-
"
|
|
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
|
-
"
|
|
918
|
+
"RoleBindings": {
|
|
913
919
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
914
920
|
"type": "object",
|
|
915
921
|
"properties": {
|
|
916
|
-
"
|
|
917
|
-
"$ref": "#/$defs/
|
|
922
|
+
"inputBindingMap": {
|
|
923
|
+
"$ref": "#/$defs/RoleBindingMap"
|
|
924
|
+
},
|
|
925
|
+
"outputBindingMap": {
|
|
926
|
+
"$ref": "#/$defs/RoleBindingMap"
|
|
918
927
|
}
|
|
919
928
|
},
|
|
920
929
|
"required": [
|
|
921
|
-
"
|
|
930
|
+
"inputBindingMap",
|
|
931
|
+
"outputBindingMap"
|
|
922
932
|
],
|
|
923
|
-
"
|
|
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",
|
|
@@ -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".
|
|
@@ -597,10 +615,13 @@ export interface RunEventStepMetaData {
|
|
|
597
615
|
* via the `definition` "StrategyStateDelta".
|
|
598
616
|
*/
|
|
599
617
|
export interface StrategyStateDelta {
|
|
600
|
-
strategyStateUpdate?:
|
|
601
|
-
[k: string]: ExecutionSocket;
|
|
602
|
-
};
|
|
618
|
+
strategyStateUpdate?: StrategyState;
|
|
603
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
622
|
+
* via the `definition` "StrategyState".
|
|
623
|
+
*/
|
|
624
|
+
export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
|
|
604
625
|
/**
|
|
605
626
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
606
627
|
* via the `definition` "RunnableStrategyContext".
|
|
@@ -621,11 +642,6 @@ export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
|
|
|
621
642
|
export interface StrategyStateWrapper {
|
|
622
643
|
strategyState: StrategyState;
|
|
623
644
|
}
|
|
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
645
|
/**
|
|
630
646
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
631
647
|
* via the `definition` "IdentityProp".
|
|
@@ -745,6 +761,7 @@ export type Normalized =
|
|
|
745
761
|
identity: JobIdentity;
|
|
746
762
|
implementationUri: string;
|
|
747
763
|
} & Documented &
|
|
764
|
+
Domain &
|
|
748
765
|
RolesWrapper;
|
|
749
766
|
export type JobIdentity =
|
|
750
767
|
`JOB-${string}`;
|
|
@@ -763,6 +780,9 @@ export interface Named {
|
|
|
763
780
|
export interface Described {
|
|
764
781
|
description: string;
|
|
765
782
|
}
|
|
783
|
+
export interface Domain {
|
|
784
|
+
domain: "internal" | "numerical" | "biological" | "logical" | "augmental";
|
|
785
|
+
}
|
|
766
786
|
export interface RolesWrapper {
|
|
767
787
|
roles: Roles;
|
|
768
788
|
}
|
|
@@ -1197,10 +1217,13 @@ export interface Conditional {
|
|
|
1197
1217
|
* via the `definition` "StrategyStateDelta".
|
|
1198
1218
|
*/
|
|
1199
1219
|
export interface StrategyStateDelta {
|
|
1200
|
-
strategyStateUpdate?:
|
|
1201
|
-
[k: string]: ExecutionSocket;
|
|
1202
|
-
};
|
|
1220
|
+
strategyStateUpdate?: StrategyState;
|
|
1203
1221
|
}
|
|
1222
|
+
/**
|
|
1223
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1224
|
+
* via the `definition` "StrategyState".
|
|
1225
|
+
*/
|
|
1226
|
+
export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
|
|
1204
1227
|
/**
|
|
1205
1228
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1206
1229
|
* via the `definition` "ExecutionSocket".
|
|
@@ -1263,11 +1286,6 @@ export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
|
|
|
1263
1286
|
export interface StrategyStateWrapper {
|
|
1264
1287
|
strategyState: StrategyState;
|
|
1265
1288
|
}
|
|
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
1289
|
/**
|
|
1272
1290
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1273
1291
|
* via the `definition` "StrategyThreadMapWrapper".
|
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';
|
|
@@ -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
|
|
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[]>;`);
|