@toolproof-npm/schema 0.1.70 → 0.1.71
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 +6 -0
- package/dist/genesis/generated/resourceTypes/Genesis.json +48 -0
- package/dist/genesis/generated/resources/Genesis.json +58 -0
- package/dist/genesis/generated/schemas/Genesis.json +42 -0
- package/dist/genesis/generated/terminals.json +1 -1
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +1 -0
- package/dist/genesis/generated/types/types.d.ts +21 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1986,6 +1986,54 @@
|
|
|
1986
1986
|
],
|
|
1987
1987
|
"unevaluatedProperties": false
|
|
1988
1988
|
}
|
|
1989
|
+
},
|
|
1990
|
+
"StrategyRunUpdate": {
|
|
1991
|
+
"identity": "TYPE-StrategyRunUpdate",
|
|
1992
|
+
"name": "StrategyRunUpdate",
|
|
1993
|
+
"description": "dummy-description",
|
|
1994
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1995
|
+
"extractionSchema": {
|
|
1996
|
+
"$anchor": "StrategyRunUpdate",
|
|
1997
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1998
|
+
"type": "object",
|
|
1999
|
+
"required": [
|
|
2000
|
+
"strategyRunRef",
|
|
2001
|
+
"strategyStateUpdate"
|
|
2002
|
+
],
|
|
2003
|
+
"properties": {
|
|
2004
|
+
"strategyRunRef": {
|
|
2005
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2006
|
+
},
|
|
2007
|
+
"strategyRun": {
|
|
2008
|
+
"$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
|
|
2009
|
+
"$ref": "#/$defs/StrategyRun"
|
|
2010
|
+
},
|
|
2011
|
+
"strategyStateUpdate": {
|
|
2012
|
+
"$comment": "A StrategyState containing exactly one ExecutionIdentity key (an update for a single execution).",
|
|
2013
|
+
"allOf": [
|
|
2014
|
+
{
|
|
2015
|
+
"$ref": "#/$defs/StrategyState"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"type": "object",
|
|
2019
|
+
"minProperties": 1,
|
|
2020
|
+
"maxProperties": 1
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"$comment": "In this update bucket, only materialized Resources are allowed (no missing/potential placeholders).",
|
|
2024
|
+
"type": "object",
|
|
2025
|
+
"additionalProperties": {
|
|
2026
|
+
"type": "object",
|
|
2027
|
+
"additionalProperties": {
|
|
2028
|
+
"$ref": "#/$defs/Resource"
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
]
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
"unevaluatedProperties": false
|
|
2036
|
+
}
|
|
1989
2037
|
}
|
|
1990
2038
|
}
|
|
1991
2039
|
}
|
|
@@ -2658,5 +2658,63 @@
|
|
|
2658
2658
|
"unevaluatedProperties": false
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
|
+
},
|
|
2662
|
+
"StrategyRunUpdate": {
|
|
2663
|
+
"identity": "RESOURCE-StrategyRunUpdate",
|
|
2664
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2665
|
+
"creationContext": {
|
|
2666
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2667
|
+
"executionRef": "EXECUTION-StrategyRunUpdate"
|
|
2668
|
+
},
|
|
2669
|
+
"kind": "materialized",
|
|
2670
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2671
|
+
"extractedData": {
|
|
2672
|
+
"identity": "TYPE-StrategyRunUpdate",
|
|
2673
|
+
"name": "StrategyRunUpdate",
|
|
2674
|
+
"description": "dummy-description",
|
|
2675
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2676
|
+
"extractionSchema": {
|
|
2677
|
+
"$anchor": "StrategyRunUpdate",
|
|
2678
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2679
|
+
"type": "object",
|
|
2680
|
+
"required": [
|
|
2681
|
+
"strategyRunRef",
|
|
2682
|
+
"strategyStateUpdate"
|
|
2683
|
+
],
|
|
2684
|
+
"properties": {
|
|
2685
|
+
"strategyRunRef": {
|
|
2686
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2687
|
+
},
|
|
2688
|
+
"strategyRun": {
|
|
2689
|
+
"$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
|
|
2690
|
+
"$ref": "#/$defs/StrategyRun"
|
|
2691
|
+
},
|
|
2692
|
+
"strategyStateUpdate": {
|
|
2693
|
+
"$comment": "A StrategyState containing exactly one ExecutionIdentity key (an update for a single execution).",
|
|
2694
|
+
"allOf": [
|
|
2695
|
+
{
|
|
2696
|
+
"$ref": "#/$defs/StrategyState"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"type": "object",
|
|
2700
|
+
"minProperties": 1,
|
|
2701
|
+
"maxProperties": 1
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"$comment": "In this update bucket, only materialized Resources are allowed (no missing/potential placeholders).",
|
|
2705
|
+
"type": "object",
|
|
2706
|
+
"additionalProperties": {
|
|
2707
|
+
"type": "object",
|
|
2708
|
+
"additionalProperties": {
|
|
2709
|
+
"$ref": "#/$defs/Resource"
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
]
|
|
2714
|
+
}
|
|
2715
|
+
},
|
|
2716
|
+
"unevaluatedProperties": false
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2661
2719
|
}
|
|
2662
2720
|
}
|
|
@@ -1421,6 +1421,48 @@
|
|
|
1421
1421
|
"cancelled"
|
|
1422
1422
|
]
|
|
1423
1423
|
},
|
|
1424
|
+
"StrategyRunUpdate": {
|
|
1425
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1426
|
+
"type": "object",
|
|
1427
|
+
"properties": {
|
|
1428
|
+
"strategyRun": {
|
|
1429
|
+
"$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
|
|
1430
|
+
"$ref": "#/$defs/StrategyRun"
|
|
1431
|
+
},
|
|
1432
|
+
"strategyRunRef": {
|
|
1433
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1434
|
+
},
|
|
1435
|
+
"strategyStateUpdate": {
|
|
1436
|
+
"allOf": [
|
|
1437
|
+
{
|
|
1438
|
+
"$ref": "#/$defs/StrategyState"
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"type": "object",
|
|
1442
|
+
"maxProperties": 1,
|
|
1443
|
+
"minProperties": 1
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"type": "object",
|
|
1447
|
+
"additionalProperties": {
|
|
1448
|
+
"type": "object",
|
|
1449
|
+
"additionalProperties": {
|
|
1450
|
+
"$ref": "#/$defs/Resource"
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
"$comment": "In this update bucket, only materialized Resources are allowed (no missing/potential placeholders)."
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"$comment": "A StrategyState containing exactly one ExecutionIdentity key (an update for a single execution)."
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"required": [
|
|
1460
|
+
"strategyRunRef",
|
|
1461
|
+
"strategyStateUpdate"
|
|
1462
|
+
],
|
|
1463
|
+
"unevaluatedProperties": false,
|
|
1464
|
+
"$anchor": "StrategyRunUpdate"
|
|
1465
|
+
},
|
|
1424
1466
|
"StrategyState": {
|
|
1425
1467
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1426
1468
|
"type": "object",
|
|
@@ -59,6 +59,7 @@ export type ResourceTypeGenesis = {
|
|
|
59
59
|
"StrategyRunContext": ResourceType;
|
|
60
60
|
"StrategyRunIdentity": ResourceType;
|
|
61
61
|
"StrategyRunStatus": ResourceType;
|
|
62
|
+
"StrategyRunUpdate": ResourceType;
|
|
62
63
|
"StrategyState": ResourceType;
|
|
63
64
|
"StrategyStateWrapper": ResourceType;
|
|
64
65
|
"StrategyThreadIdentity": ResourceType;
|
|
@@ -368,6 +368,13 @@ export type StrategyRunIdentity =
|
|
|
368
368
|
*/
|
|
369
369
|
export type StrategyRunStatus =
|
|
370
370
|
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
371
|
+
export type StrategyRun1 =
|
|
372
|
+
{
|
|
373
|
+
identity: StrategyRunIdentity;
|
|
374
|
+
statefulStrategyRef: StatefulStrategyIdentity;
|
|
375
|
+
strategyRunContext: StrategyRunContext;
|
|
376
|
+
} & StrategyThreadMapWrapper &
|
|
377
|
+
StrategyStateWrapper1;
|
|
371
378
|
/**
|
|
372
379
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
373
380
|
* via the `definition` "StrategyThreadIdentity".
|
|
@@ -593,6 +600,20 @@ export interface StrategyThreadMap {
|
|
|
593
600
|
export interface StrategyStateWrapper1 {
|
|
594
601
|
strategyState: StrategyState;
|
|
595
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
605
|
+
* via the `definition` "StrategyRunUpdate".
|
|
606
|
+
*/
|
|
607
|
+
export interface StrategyRunUpdate {
|
|
608
|
+
strategyRun?: StrategyRun1;
|
|
609
|
+
strategyRunRef: StrategyRunIdentity;
|
|
610
|
+
strategyStateUpdate: StrategyState & {
|
|
611
|
+
} & {
|
|
612
|
+
[k: string]: {
|
|
613
|
+
[k: string]: Resource;
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
}
|
|
596
617
|
/**
|
|
597
618
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
598
619
|
* via the `definition` "StrategyThreadMapWrapper".
|
package/dist/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export type { Resource_StatelessStrategy as Resource_StatelessStrategyJson } fro
|
|
|
11
11
|
export type { Resource_StatefulStrategy as Resource_StatefulStrategyJson } from './genesis/generated/types/Resource_StatefulStrategy.js';
|
|
12
12
|
export type { Resource_StrategyRun as Resource_StrategyRunJson } from './genesis/generated/types/Resource_StrategyRun.js';
|
|
13
13
|
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, Step as StepJson, CreationContext as CreationContextJson, ResourceMissing as ResourceMissingJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
|
|
14
|
-
Resource as ResourceJson, StrategyState as StrategyStateJson, StatelessStrategyIdentity as StatelessStrategyIdentityJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyIdentity as StatefulStrategyIdentityJson, StatefulStrategy as StatefulStrategyJson, StrategyRunIdentity as StrategyRunIdentityJson, StrategyRun as StrategyRunJson, JobIdentity as JobIdentityJson, Job as JobJson, JsonData as JsonDataJson, } from './genesis/generated/types/types.js';
|
|
14
|
+
Resource as ResourceJson, StrategyState as StrategyStateJson, StatelessStrategyIdentity as StatelessStrategyIdentityJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyIdentity as StatefulStrategyIdentityJson, StatefulStrategy as StatefulStrategyJson, StrategyRunIdentity as StrategyRunIdentityJson, StrategyRun as StrategyRunJson, StrategyRunUpdate as StrategyRunUpdateJson, JobIdentity as JobIdentityJson, Job as JobJson, JsonData as JsonDataJson, } from './genesis/generated/types/types.js';
|
|
15
15
|
export { unsafeBrand, asResourceTypeIdentity, asResourceRoleIdentity, asExecutionIdentity, asResourceIdentity, asWorkStepIdentity, asBranchStepIdentity, asForStepIdentity, asResourceFormatIdentity, asWhileStepIdentity, asStatelessStrategyIdentity, asStatefulStrategyIdentity, asResourceTypeIdentities, asResourceRoleIdentities, asExecutionIdentities, asResourceIdentities, asWorkStepIdentities, asBranchStepIdentities, asForStepIdentities, asResourceFormatIdentities, asWhileStepIdentities, asStatelessStrategyIdentities, asStatefulStrategyIdentities, } from './scripts/brandFactories.js';
|