@toolproof-npm/schema 0.1.79 → 0.1.81
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/resourceTypes/Genesis.json +380 -15
- package/dist/genesis/generated/resources/Genesis.json +512 -17
- package/dist/genesis/generated/schemas/Genesis.json +305 -18
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +13 -0
- package/dist/genesis/generated/types/types.d.ts +210 -90
- package/dist/identityGuards.d.ts +3 -0
- package/dist/identityGuards.js +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +5 -1
|
@@ -2017,27 +2017,17 @@
|
|
|
2017
2017
|
"unevaluatedProperties": false
|
|
2018
2018
|
}
|
|
2019
2019
|
},
|
|
2020
|
-
"
|
|
2021
|
-
"identity": "TYPE-
|
|
2022
|
-
"name": "
|
|
2020
|
+
"StrategyStateDelta": {
|
|
2021
|
+
"identity": "TYPE-StrategyStateDelta",
|
|
2022
|
+
"name": "StrategyStateDelta",
|
|
2023
2023
|
"description": "dummy-description",
|
|
2024
2024
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2025
2025
|
"extractionSchema": {
|
|
2026
|
-
"$anchor": "
|
|
2026
|
+
"$anchor": "StrategyStateDelta",
|
|
2027
2027
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2028
2028
|
"type": "object",
|
|
2029
|
-
"
|
|
2030
|
-
"strategyRunRef",
|
|
2031
|
-
"strategyStateUpdate"
|
|
2032
|
-
],
|
|
2029
|
+
"$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
|
|
2033
2030
|
"properties": {
|
|
2034
|
-
"strategyRunRef": {
|
|
2035
|
-
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2036
|
-
},
|
|
2037
|
-
"strategyRun": {
|
|
2038
|
-
"$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
|
|
2039
|
-
"$ref": "#/$defs/StrategyRun"
|
|
2040
|
-
},
|
|
2041
2031
|
"strategyStateUpdate": {
|
|
2042
2032
|
"type": "object",
|
|
2043
2033
|
"propertyNames": {
|
|
@@ -2058,9 +2048,384 @@
|
|
|
2058
2048
|
},
|
|
2059
2049
|
"unevaluatedProperties": false
|
|
2060
2050
|
}
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
"StrategyRunUpdate": {
|
|
2055
|
+
"identity": "TYPE-StrategyRunUpdate",
|
|
2056
|
+
"name": "StrategyRunUpdate",
|
|
2057
|
+
"description": "dummy-description",
|
|
2058
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2059
|
+
"extractionSchema": {
|
|
2060
|
+
"$anchor": "StrategyRunUpdate",
|
|
2061
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2062
|
+
"type": "object",
|
|
2063
|
+
"required": [
|
|
2064
|
+
"strategyRunRef",
|
|
2065
|
+
"strategyStateUpdate"
|
|
2066
|
+
],
|
|
2067
|
+
"properties": {
|
|
2068
|
+
"strategyRunRef": {
|
|
2069
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2070
|
+
},
|
|
2071
|
+
"strategyRun": {
|
|
2072
|
+
"$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
|
|
2073
|
+
"$ref": "#/$defs/StrategyRun"
|
|
2074
|
+
}
|
|
2061
2075
|
},
|
|
2076
|
+
"allOf": [
|
|
2077
|
+
{
|
|
2078
|
+
"$ref": "#/$defs/StrategyStateDelta"
|
|
2079
|
+
}
|
|
2080
|
+
],
|
|
2062
2081
|
"unevaluatedProperties": false
|
|
2063
2082
|
}
|
|
2083
|
+
},
|
|
2084
|
+
"RunEventKind": {
|
|
2085
|
+
"identity": "TYPE-RunEventKind",
|
|
2086
|
+
"name": "RunEventKind",
|
|
2087
|
+
"description": "dummy-description",
|
|
2088
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2089
|
+
"extractionSchema": {
|
|
2090
|
+
"$anchor": "RunEventKind",
|
|
2091
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2092
|
+
"type": "string",
|
|
2093
|
+
"enum": [
|
|
2094
|
+
"graph_start",
|
|
2095
|
+
"tick",
|
|
2096
|
+
"interrupt",
|
|
2097
|
+
"graph_end"
|
|
2098
|
+
]
|
|
2099
|
+
}
|
|
2100
|
+
},
|
|
2101
|
+
"RunEventCounters": {
|
|
2102
|
+
"identity": "TYPE-RunEventCounters",
|
|
2103
|
+
"name": "RunEventCounters",
|
|
2104
|
+
"description": "dummy-description",
|
|
2105
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2106
|
+
"extractionSchema": {
|
|
2107
|
+
"$anchor": "RunEventCounters",
|
|
2108
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2109
|
+
"type": "object",
|
|
2110
|
+
"properties": {
|
|
2111
|
+
"stepCounterAfter": {
|
|
2112
|
+
"type": "integer"
|
|
2113
|
+
},
|
|
2114
|
+
"iterationCounterAfter": {
|
|
2115
|
+
"type": "integer"
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
"RunEventStepKind": {
|
|
2121
|
+
"identity": "TYPE-RunEventStepKind",
|
|
2122
|
+
"name": "RunEventStepKind",
|
|
2123
|
+
"description": "dummy-description",
|
|
2124
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2125
|
+
"extractionSchema": {
|
|
2126
|
+
"$anchor": "RunEventStepKind",
|
|
2127
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2128
|
+
"type": "string",
|
|
2129
|
+
"enum": [
|
|
2130
|
+
"work",
|
|
2131
|
+
"branch",
|
|
2132
|
+
"while",
|
|
2133
|
+
"for"
|
|
2134
|
+
]
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
2137
|
+
"RunEventStepMetaData": {
|
|
2138
|
+
"identity": "TYPE-RunEventStepMetaData",
|
|
2139
|
+
"name": "RunEventStepMetaData",
|
|
2140
|
+
"description": "dummy-description",
|
|
2141
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2142
|
+
"extractionSchema": {
|
|
2143
|
+
"$anchor": "RunEventStepMetaData",
|
|
2144
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2145
|
+
"type": "object",
|
|
2146
|
+
"required": [
|
|
2147
|
+
"stepRef",
|
|
2148
|
+
"stepKind",
|
|
2149
|
+
"threadStepIndex"
|
|
2150
|
+
],
|
|
2151
|
+
"properties": {
|
|
2152
|
+
"stepRef": {
|
|
2153
|
+
"oneOf": [
|
|
2154
|
+
{
|
|
2155
|
+
"$ref": "#/$defs/WorkStepIdentity"
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
"$ref": "#/$defs/BranchStepIdentity"
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
"$ref": "#/$defs/WhileStepIdentity"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"$ref": "#/$defs/ForStepIdentity"
|
|
2165
|
+
}
|
|
2166
|
+
]
|
|
2167
|
+
},
|
|
2168
|
+
"stepKind": {
|
|
2169
|
+
"$ref": "#/$defs/RunEventStepKind"
|
|
2170
|
+
},
|
|
2171
|
+
"threadStepIndex": {
|
|
2172
|
+
"type": "integer"
|
|
2173
|
+
},
|
|
2174
|
+
"executionRef": {
|
|
2175
|
+
"$ref": "#/$defs/ExecutionIdentity"
|
|
2176
|
+
},
|
|
2177
|
+
"jobRef": {
|
|
2178
|
+
"$ref": "#/$defs/JobIdentity"
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
"RunEventUpdates": {
|
|
2184
|
+
"identity": "TYPE-RunEventUpdates",
|
|
2185
|
+
"name": "RunEventUpdates",
|
|
2186
|
+
"description": "dummy-description",
|
|
2187
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2188
|
+
"extractionSchema": {
|
|
2189
|
+
"$anchor": "RunEventUpdates",
|
|
2190
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2191
|
+
"type": "object",
|
|
2192
|
+
"allOf": [
|
|
2193
|
+
{
|
|
2194
|
+
"$ref": "#/$defs/StrategyStateDelta"
|
|
2195
|
+
}
|
|
2196
|
+
],
|
|
2197
|
+
"properties": {
|
|
2198
|
+
"stepsMutation": {
|
|
2199
|
+
"type": "object",
|
|
2200
|
+
"required": [
|
|
2201
|
+
"insertAt",
|
|
2202
|
+
"inserted"
|
|
2203
|
+
],
|
|
2204
|
+
"properties": {
|
|
2205
|
+
"insertAt": {
|
|
2206
|
+
"type": "integer"
|
|
2207
|
+
},
|
|
2208
|
+
"inserted": {
|
|
2209
|
+
"type": "array",
|
|
2210
|
+
"items": {
|
|
2211
|
+
"$ref": "#/$defs/Step"
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
},
|
|
2216
|
+
"interruptData": {
|
|
2217
|
+
"$comment": "Kept permissive; the engine may evolve interrupt payloads.",
|
|
2218
|
+
"type": [
|
|
2219
|
+
"object",
|
|
2220
|
+
"null"
|
|
2221
|
+
]
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2226
|
+
"RunEventBase": {
|
|
2227
|
+
"identity": "TYPE-RunEventBase",
|
|
2228
|
+
"name": "RunEventBase",
|
|
2229
|
+
"description": "dummy-description",
|
|
2230
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2231
|
+
"extractionSchema": {
|
|
2232
|
+
"$anchor": "RunEventBase",
|
|
2233
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2234
|
+
"type": "object",
|
|
2235
|
+
"required": [
|
|
2236
|
+
"kind",
|
|
2237
|
+
"strategyRunRef",
|
|
2238
|
+
"strategyThreadRef",
|
|
2239
|
+
"createdAt",
|
|
2240
|
+
"nodeName",
|
|
2241
|
+
"eventSeq"
|
|
2242
|
+
],
|
|
2243
|
+
"properties": {
|
|
2244
|
+
"kind": {
|
|
2245
|
+
"$ref": "#/$defs/RunEventKind"
|
|
2246
|
+
},
|
|
2247
|
+
"strategyRunRef": {
|
|
2248
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2249
|
+
},
|
|
2250
|
+
"strategyThreadRef": {
|
|
2251
|
+
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
2252
|
+
},
|
|
2253
|
+
"createdAt": {
|
|
2254
|
+
"$ref": "#/$defs/Timestamp"
|
|
2255
|
+
},
|
|
2256
|
+
"nodeName": {
|
|
2257
|
+
"type": "string"
|
|
2258
|
+
},
|
|
2259
|
+
"eventSeq": {
|
|
2260
|
+
"type": "integer"
|
|
2261
|
+
},
|
|
2262
|
+
"counters": {
|
|
2263
|
+
"$ref": "#/$defs/RunEventCounters"
|
|
2264
|
+
},
|
|
2265
|
+
"stepMetaData": {
|
|
2266
|
+
"$ref": "#/$defs/RunEventStepMetaData"
|
|
2267
|
+
},
|
|
2268
|
+
"updates": {
|
|
2269
|
+
"$ref": "#/$defs/RunEventUpdates"
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
},
|
|
2274
|
+
"GraphStartRunEvent": {
|
|
2275
|
+
"identity": "TYPE-GraphStartRunEvent",
|
|
2276
|
+
"name": "GraphStartRunEvent",
|
|
2277
|
+
"description": "dummy-description",
|
|
2278
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2279
|
+
"extractionSchema": {
|
|
2280
|
+
"$anchor": "GraphStartRunEvent",
|
|
2281
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2282
|
+
"allOf": [
|
|
2283
|
+
{
|
|
2284
|
+
"$ref": "#/$defs/RunEventBase"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"type": "object",
|
|
2288
|
+
"required": [
|
|
2289
|
+
"strategyRunSeed"
|
|
2290
|
+
],
|
|
2291
|
+
"properties": {
|
|
2292
|
+
"kind": {
|
|
2293
|
+
"const": "graph_start"
|
|
2294
|
+
},
|
|
2295
|
+
"strategyRunSeed": {
|
|
2296
|
+
"$ref": "#/$defs/StrategyRun"
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
]
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2303
|
+
"TickRunEvent": {
|
|
2304
|
+
"identity": "TYPE-TickRunEvent",
|
|
2305
|
+
"name": "TickRunEvent",
|
|
2306
|
+
"description": "dummy-description",
|
|
2307
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2308
|
+
"extractionSchema": {
|
|
2309
|
+
"$anchor": "TickRunEvent",
|
|
2310
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2311
|
+
"allOf": [
|
|
2312
|
+
{
|
|
2313
|
+
"$ref": "#/$defs/RunEventBase"
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"type": "object",
|
|
2317
|
+
"properties": {
|
|
2318
|
+
"kind": {
|
|
2319
|
+
"const": "tick"
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
]
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
"InterruptRunEvent": {
|
|
2327
|
+
"identity": "TYPE-InterruptRunEvent",
|
|
2328
|
+
"name": "InterruptRunEvent",
|
|
2329
|
+
"description": "dummy-description",
|
|
2330
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2331
|
+
"extractionSchema": {
|
|
2332
|
+
"$anchor": "InterruptRunEvent",
|
|
2333
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2334
|
+
"allOf": [
|
|
2335
|
+
{
|
|
2336
|
+
"$ref": "#/$defs/RunEventBase"
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
"type": "object",
|
|
2340
|
+
"properties": {
|
|
2341
|
+
"kind": {
|
|
2342
|
+
"const": "interrupt"
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
]
|
|
2347
|
+
}
|
|
2348
|
+
},
|
|
2349
|
+
"GraphEndRunEvent": {
|
|
2350
|
+
"identity": "TYPE-GraphEndRunEvent",
|
|
2351
|
+
"name": "GraphEndRunEvent",
|
|
2352
|
+
"description": "dummy-description",
|
|
2353
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2354
|
+
"extractionSchema": {
|
|
2355
|
+
"$anchor": "GraphEndRunEvent",
|
|
2356
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2357
|
+
"allOf": [
|
|
2358
|
+
{
|
|
2359
|
+
"$ref": "#/$defs/RunEventBase"
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
"type": "object",
|
|
2363
|
+
"properties": {
|
|
2364
|
+
"kind": {
|
|
2365
|
+
"const": "graph_end"
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
]
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2372
|
+
"RunEvent": {
|
|
2373
|
+
"identity": "TYPE-RunEvent",
|
|
2374
|
+
"name": "RunEvent",
|
|
2375
|
+
"description": "dummy-description",
|
|
2376
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2377
|
+
"extractionSchema": {
|
|
2378
|
+
"$anchor": "RunEvent",
|
|
2379
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2380
|
+
"oneOf": [
|
|
2381
|
+
{
|
|
2382
|
+
"$ref": "#/$defs/GraphStartRunEvent"
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"$ref": "#/$defs/TickRunEvent"
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"$ref": "#/$defs/InterruptRunEvent"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"$ref": "#/$defs/GraphEndRunEvent"
|
|
2392
|
+
}
|
|
2393
|
+
]
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"RunRecording": {
|
|
2397
|
+
"identity": "TYPE-RunRecording",
|
|
2398
|
+
"name": "RunRecording",
|
|
2399
|
+
"description": "dummy-description",
|
|
2400
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2401
|
+
"extractionSchema": {
|
|
2402
|
+
"$anchor": "RunRecording",
|
|
2403
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2404
|
+
"type": "object",
|
|
2405
|
+
"required": [
|
|
2406
|
+
"runEvents"
|
|
2407
|
+
],
|
|
2408
|
+
"properties": {
|
|
2409
|
+
"strategyRunRef": {
|
|
2410
|
+
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
2411
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2412
|
+
},
|
|
2413
|
+
"strategyThreadRef": {
|
|
2414
|
+
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
2415
|
+
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
2416
|
+
},
|
|
2417
|
+
"recordedAt": {
|
|
2418
|
+
"$comment": "Optional recording timestamp.",
|
|
2419
|
+
"$ref": "#/$defs/Timestamp"
|
|
2420
|
+
},
|
|
2421
|
+
"runEvents": {
|
|
2422
|
+
"type": "array",
|
|
2423
|
+
"items": {
|
|
2424
|
+
"$ref": "#/$defs/RunEvent"
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2064
2429
|
}
|
|
2065
2430
|
}
|
|
2066
2431
|
}
|