@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.
- package/dist/genesis/generated/dependencies_ordered.json +18 -23
- package/dist/genesis/generated/resourceTypes/Genesis.json +41 -69
- package/dist/genesis/generated/resources/Genesis.json +51 -89
- package/dist/genesis/generated/schemas/Genesis.json +103 -125
- package/dist/genesis/generated/schemas/RunRecording.json +123 -145
- package/dist/genesis/generated/schemas/RunnableStrategy.d.ts +2 -0
- package/dist/genesis/generated/schemas/RunnableStrategy.js +2 -0
- package/dist/genesis/generated/schemas/{StrategyRun.json → RunnableStrategy.json} +21 -21
- package/dist/genesis/generated/terminals.json +1 -1
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +5 -6
- package/dist/genesis/generated/types/Resource_RunnableStrategy.d.ts +3 -0
- package/dist/genesis/generated/types/types.d.ts +274 -286
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.d.ts +0 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.js +0 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.json +0 -2337
- package/dist/genesis/generated/resource-type-envelopes/Genesis.d.ts +0 -2
- package/dist/genesis/generated/resource-type-envelopes/Genesis.js +0 -2
- package/dist/genesis/generated/resource-type-envelopes/Genesis.json +0 -1757
- package/dist/genesis/generated/schemas/StrategyRun.d.ts +0 -2
- package/dist/genesis/generated/schemas/StrategyRun.js +0 -2
- package/dist/genesis/generated/types/Resource_StrategyRun.d.ts +0 -3
- /package/dist/genesis/generated/types/{Resource_StrategyRun.js → Resource_RunnableStrategy.js} +0 -0
|
@@ -204,6 +204,12 @@ export type GraphEndRunEvent =
|
|
|
204
204
|
*/
|
|
205
205
|
export type RunEventKind =
|
|
206
206
|
"graph_start" | "tick" | "interrupt" | "graph_end";
|
|
207
|
+
/**
|
|
208
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
209
|
+
* via the `definition` "RunnableStrategyIdentity".
|
|
210
|
+
*/
|
|
211
|
+
export type RunnableStrategyIdentity =
|
|
212
|
+
`RUNNABLE_STRATEGY-${string}`;
|
|
207
213
|
/**
|
|
208
214
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
209
215
|
* via the `definition` "RunEventStepKind".
|
|
@@ -216,12 +222,6 @@ export type RunEventStepKind =
|
|
|
216
222
|
*/
|
|
217
223
|
export type WhileStepIdentity =
|
|
218
224
|
`WHILESTEP-${string}`;
|
|
219
|
-
/**
|
|
220
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
221
|
-
* via the `definition` "StrategyRunIdentity".
|
|
222
|
-
*/
|
|
223
|
-
export type StrategyRunIdentity =
|
|
224
|
-
`STRATEGY_RUN-${string}`;
|
|
225
225
|
/**
|
|
226
226
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
227
227
|
* via the `definition` "StrategyThreadIdentity".
|
|
@@ -264,31 +264,31 @@ export type WhileStep =
|
|
|
264
264
|
export type GraphStartRunEvent =
|
|
265
265
|
RunEventBase & {
|
|
266
266
|
kind?: "graph_start";
|
|
267
|
-
|
|
267
|
+
runnableStrategySeed: RunnableStrategy;
|
|
268
268
|
};
|
|
269
269
|
/**
|
|
270
270
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
271
|
-
* via the `definition` "
|
|
271
|
+
* via the `definition` "RunnableStrategy".
|
|
272
272
|
*/
|
|
273
|
-
export type
|
|
273
|
+
export type RunnableStrategy =
|
|
274
274
|
{
|
|
275
|
-
identity:
|
|
275
|
+
identity: RunnableStrategyIdentity;
|
|
276
|
+
runnableStrategyContext: RunnableStrategyContext;
|
|
276
277
|
statefulStrategyRef: StatefulStrategyIdentity;
|
|
277
|
-
strategyRunContext: StrategyRunContext;
|
|
278
278
|
} & StrategyThreadMapWrapper &
|
|
279
279
|
StrategyStateWrapper;
|
|
280
280
|
/**
|
|
281
281
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
282
|
-
* via the `definition` "
|
|
282
|
+
* via the `definition` "RunnableStrategyStatus".
|
|
283
283
|
*/
|
|
284
|
-
export type
|
|
285
|
-
|
|
284
|
+
export type RunnableStrategyStatus =
|
|
285
|
+
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
286
286
|
/**
|
|
287
287
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
288
|
-
* via the `definition` "
|
|
288
|
+
* via the `definition` "StatefulStrategyIdentity".
|
|
289
289
|
*/
|
|
290
|
-
export type
|
|
291
|
-
|
|
290
|
+
export type StatefulStrategyIdentity =
|
|
291
|
+
`STATEFUL_STRATEGY-${string}`;
|
|
292
292
|
/**
|
|
293
293
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
294
294
|
* via the `patternProperty` "^[A-Za-z][A-Za-z0-9._-]*Identity$".
|
|
@@ -423,6 +423,22 @@ export type TickRunEvent =
|
|
|
423
423
|
RunEventBase & {
|
|
424
424
|
kind?: "tick";
|
|
425
425
|
};
|
|
426
|
+
/**
|
|
427
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
428
|
+
* via the `definition` "RunnableStrategyUpdate".
|
|
429
|
+
*/
|
|
430
|
+
export type RunnableStrategyUpdate =
|
|
431
|
+
{
|
|
432
|
+
runnableStrategy?: RunnableStrategy1;
|
|
433
|
+
runnableStrategyRef: RunnableStrategyIdentity;
|
|
434
|
+
} & StrategyStateDelta;
|
|
435
|
+
export type RunnableStrategy1 =
|
|
436
|
+
{
|
|
437
|
+
identity: RunnableStrategyIdentity;
|
|
438
|
+
runnableStrategyContext: RunnableStrategyContext;
|
|
439
|
+
statefulStrategyRef: StatefulStrategyIdentity;
|
|
440
|
+
} & StrategyThreadMapWrapper &
|
|
441
|
+
StrategyStateWrapper;
|
|
426
442
|
/**
|
|
427
443
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
428
444
|
* via the `definition` "StatefulStrategy".
|
|
@@ -438,22 +454,6 @@ export type StatefulStrategy =
|
|
|
438
454
|
*/
|
|
439
455
|
export type StatelessStrategyIdentity =
|
|
440
456
|
`STATELESS_STRATEGY-${string}`;
|
|
441
|
-
/**
|
|
442
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
443
|
-
* via the `definition` "StrategyRunUpdate".
|
|
444
|
-
*/
|
|
445
|
-
export type StrategyRunUpdate =
|
|
446
|
-
{
|
|
447
|
-
strategyRun?: StrategyRun1;
|
|
448
|
-
strategyRunRef: StrategyRunIdentity;
|
|
449
|
-
} & StrategyStateDelta;
|
|
450
|
-
export type StrategyRun1 =
|
|
451
|
-
{
|
|
452
|
-
identity: StrategyRunIdentity;
|
|
453
|
-
statefulStrategyRef: StatefulStrategyIdentity;
|
|
454
|
-
strategyRunContext: StrategyRunContext;
|
|
455
|
-
} & StrategyThreadMapWrapper &
|
|
456
|
-
StrategyStateWrapper;
|
|
457
457
|
|
|
458
458
|
export interface GenesisJson {
|
|
459
459
|
}
|
|
@@ -551,11 +551,6 @@ export interface Timestamp {
|
|
|
551
551
|
export interface Path {
|
|
552
552
|
path: string;
|
|
553
553
|
}
|
|
554
|
-
/**
|
|
555
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
556
|
-
* via the `definition` "ExecutionSocketMaterialized".
|
|
557
|
-
*/
|
|
558
|
-
export type ExecutionSocketMaterialized = Record<ResourceRoleIdentity, Resource>;
|
|
559
554
|
/**
|
|
560
555
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
561
556
|
* via the `definition` "ExtractionSchemaWrapper".
|
|
@@ -573,8 +568,8 @@ export interface RunEventBase {
|
|
|
573
568
|
eventSeq: number;
|
|
574
569
|
kind: RunEventKind;
|
|
575
570
|
nodeName: string;
|
|
571
|
+
runnableStrategyRef: RunnableStrategyIdentity;
|
|
576
572
|
stepMetaData?: RunEventStepMetaData;
|
|
577
|
-
strategyRunRef: StrategyRunIdentity;
|
|
578
573
|
strategyThreadRef: StrategyThreadIdentity;
|
|
579
574
|
updates?: RunEventUpdates;
|
|
580
575
|
}
|
|
@@ -603,18 +598,17 @@ export interface RunEventStepMetaData {
|
|
|
603
598
|
*/
|
|
604
599
|
export interface StrategyStateDelta {
|
|
605
600
|
strategyStateUpdate?: {
|
|
606
|
-
[k: string]:
|
|
601
|
+
[k: string]: ExecutionSocket;
|
|
607
602
|
};
|
|
608
|
-
strategyStateUpdateWide?: Record<ExecutionIdentity, ExecutionSocket>;
|
|
609
603
|
}
|
|
610
604
|
/**
|
|
611
605
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
612
|
-
* via the `definition` "
|
|
606
|
+
* via the `definition` "RunnableStrategyContext".
|
|
613
607
|
*/
|
|
614
|
-
export interface
|
|
608
|
+
export interface RunnableStrategyContext {
|
|
615
609
|
completedAt?: Timestamp;
|
|
616
610
|
startedAt?: Timestamp;
|
|
617
|
-
status:
|
|
611
|
+
status: RunnableStrategyStatus;
|
|
618
612
|
}
|
|
619
613
|
export interface StrategyThreadMapWrapper {
|
|
620
614
|
strategyThreadMap: StrategyThreadMap;
|
|
@@ -710,7 +704,7 @@ export interface RoleBindingsWrapper1 {
|
|
|
710
704
|
export interface RunRecording {
|
|
711
705
|
recordedAt?: Timestamp1;
|
|
712
706
|
runEvents: RunEvent[];
|
|
713
|
-
|
|
707
|
+
runnableStrategyRef?: string;
|
|
714
708
|
strategyThreadRef?: string;
|
|
715
709
|
}
|
|
716
710
|
export interface Timestamp1 {
|
|
@@ -851,7 +845,7 @@ export type RunEvent =
|
|
|
851
845
|
export type GraphStartRunEvent =
|
|
852
846
|
RunEventBase & {
|
|
853
847
|
kind?: "graph_start";
|
|
854
|
-
|
|
848
|
+
runnableStrategySeed: RunnableStrategy;
|
|
855
849
|
};
|
|
856
850
|
/**
|
|
857
851
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
@@ -859,6 +853,12 @@ export type GraphStartRunEvent =
|
|
|
859
853
|
*/
|
|
860
854
|
export type RunEventKind =
|
|
861
855
|
"graph_start" | "tick" | "interrupt" | "graph_end";
|
|
856
|
+
/**
|
|
857
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
858
|
+
* via the `definition` "RunnableStrategyIdentity".
|
|
859
|
+
*/
|
|
860
|
+
export type RunnableStrategyIdentity =
|
|
861
|
+
`RUNNABLE_STRATEGY-${string}`;
|
|
862
862
|
/**
|
|
863
863
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
864
864
|
* via the `definition` "ExecutionIdentity".
|
|
@@ -901,12 +901,6 @@ export type WhileStepIdentity =
|
|
|
901
901
|
*/
|
|
902
902
|
export type ForStepIdentity =
|
|
903
903
|
`FORSTEP-${string}`;
|
|
904
|
-
/**
|
|
905
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
906
|
-
* via the `definition` "StrategyRunIdentity".
|
|
907
|
-
*/
|
|
908
|
-
export type StrategyRunIdentity =
|
|
909
|
-
`STRATEGY_RUN-${string}`;
|
|
910
904
|
/**
|
|
911
905
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
912
906
|
* via the `definition` "StrategyThreadIdentity".
|
|
@@ -990,6 +984,50 @@ export type ForStep =
|
|
|
990
984
|
identity: ForStepIdentity;
|
|
991
985
|
kind: "for";
|
|
992
986
|
} & StepKind;
|
|
987
|
+
/**
|
|
988
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
989
|
+
* via the `definition` "ResourceMissing".
|
|
990
|
+
*/
|
|
991
|
+
export type ResourceMissing =
|
|
992
|
+
{
|
|
993
|
+
} & ResourceBase &
|
|
994
|
+
ResourceKind & {
|
|
995
|
+
kind: "missing";
|
|
996
|
+
};
|
|
997
|
+
/**
|
|
998
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
999
|
+
* via the `definition` "ResourceTypeIdentity".
|
|
1000
|
+
*/
|
|
1001
|
+
export type ResourceTypeIdentity =
|
|
1002
|
+
`TYPE-${string}`;
|
|
1003
|
+
/**
|
|
1004
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1005
|
+
* via the `definition` "ResourcePotentialInput".
|
|
1006
|
+
*/
|
|
1007
|
+
export type ResourcePotentialInput =
|
|
1008
|
+
{
|
|
1009
|
+
} & ResourceBase &
|
|
1010
|
+
CreationContextWrapper &
|
|
1011
|
+
ResourceKind & {
|
|
1012
|
+
kind: "potential-input";
|
|
1013
|
+
};
|
|
1014
|
+
/**
|
|
1015
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1016
|
+
* via the `definition` "ResourceRoleIdentity".
|
|
1017
|
+
*/
|
|
1018
|
+
export type ResourceRoleIdentity =
|
|
1019
|
+
`ROLE-${string}`;
|
|
1020
|
+
/**
|
|
1021
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1022
|
+
* via the `definition` "ResourcePotentialOutput".
|
|
1023
|
+
*/
|
|
1024
|
+
export type ResourcePotentialOutput =
|
|
1025
|
+
{
|
|
1026
|
+
} & ResourceBase &
|
|
1027
|
+
CreationContextWrapper &
|
|
1028
|
+
ResourceKind & {
|
|
1029
|
+
kind: "potential-output";
|
|
1030
|
+
};
|
|
993
1031
|
/**
|
|
994
1032
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
995
1033
|
* via the `definition` "Resource".
|
|
@@ -1012,18 +1050,6 @@ export type ResourceMetaBase =
|
|
|
1012
1050
|
kind: "materialized";
|
|
1013
1051
|
} & Timestamp1 &
|
|
1014
1052
|
Path;
|
|
1015
|
-
/**
|
|
1016
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1017
|
-
* via the `definition` "ResourceTypeIdentity".
|
|
1018
|
-
*/
|
|
1019
|
-
export type ResourceTypeIdentity =
|
|
1020
|
-
`TYPE-${string}`;
|
|
1021
|
-
/**
|
|
1022
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1023
|
-
* via the `definition` "ResourceRoleIdentity".
|
|
1024
|
-
*/
|
|
1025
|
-
export type ResourceRoleIdentity =
|
|
1026
|
-
`ROLE-${string}`;
|
|
1027
1053
|
/**
|
|
1028
1054
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1029
1055
|
* via the `definition` "JsonData".
|
|
@@ -1039,59 +1065,27 @@ export type JsonData =
|
|
|
1039
1065
|
};
|
|
1040
1066
|
/**
|
|
1041
1067
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1042
|
-
* via the `definition` "
|
|
1068
|
+
* via the `definition` "RunnableStrategy".
|
|
1043
1069
|
*/
|
|
1044
|
-
export type
|
|
1070
|
+
export type RunnableStrategy =
|
|
1045
1071
|
{
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
kind: "missing";
|
|
1049
|
-
};
|
|
1050
|
-
/**
|
|
1051
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1052
|
-
* via the `definition` "ResourcePotentialInput".
|
|
1053
|
-
*/
|
|
1054
|
-
export type ResourcePotentialInput =
|
|
1055
|
-
{
|
|
1056
|
-
} & ResourceBase &
|
|
1057
|
-
CreationContextWrapper &
|
|
1058
|
-
ResourceKind & {
|
|
1059
|
-
kind: "potential-input";
|
|
1060
|
-
};
|
|
1061
|
-
/**
|
|
1062
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1063
|
-
* via the `definition` "ResourcePotentialOutput".
|
|
1064
|
-
*/
|
|
1065
|
-
export type ResourcePotentialOutput =
|
|
1066
|
-
{
|
|
1067
|
-
} & ResourceBase &
|
|
1068
|
-
CreationContextWrapper &
|
|
1069
|
-
ResourceKind & {
|
|
1070
|
-
kind: "potential-output";
|
|
1071
|
-
};
|
|
1072
|
-
/**
|
|
1073
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1074
|
-
* via the `definition` "StrategyRun".
|
|
1075
|
-
*/
|
|
1076
|
-
export type StrategyRun =
|
|
1077
|
-
{
|
|
1078
|
-
identity: StrategyRunIdentity;
|
|
1072
|
+
identity: RunnableStrategyIdentity;
|
|
1073
|
+
runnableStrategyContext: RunnableStrategyContext;
|
|
1079
1074
|
statefulStrategyRef: StatefulStrategyIdentity;
|
|
1080
|
-
strategyRunContext: StrategyRunContext;
|
|
1081
1075
|
} & StrategyThreadMapWrapper &
|
|
1082
1076
|
StrategyStateWrapper;
|
|
1083
1077
|
/**
|
|
1084
1078
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1085
|
-
* via the `definition` "
|
|
1079
|
+
* via the `definition` "RunnableStrategyStatus".
|
|
1086
1080
|
*/
|
|
1087
|
-
export type
|
|
1088
|
-
|
|
1081
|
+
export type RunnableStrategyStatus =
|
|
1082
|
+
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
1089
1083
|
/**
|
|
1090
1084
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1091
|
-
* via the `definition` "
|
|
1085
|
+
* via the `definition` "StatefulStrategyIdentity".
|
|
1092
1086
|
*/
|
|
1093
|
-
export type
|
|
1094
|
-
|
|
1087
|
+
export type StatefulStrategyIdentity =
|
|
1088
|
+
`STATEFUL_STRATEGY-${string}`;
|
|
1095
1089
|
/**
|
|
1096
1090
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1097
1091
|
* via the `definition` "TickRunEvent".
|
|
@@ -1120,7 +1114,7 @@ export type GraphEndRunEvent =
|
|
|
1120
1114
|
export interface Normalized {
|
|
1121
1115
|
recordedAt?: Timestamp;
|
|
1122
1116
|
runEvents: RunEvent[];
|
|
1123
|
-
|
|
1117
|
+
runnableStrategyRef?: string;
|
|
1124
1118
|
strategyThreadRef?: string;
|
|
1125
1119
|
}
|
|
1126
1120
|
export interface Timestamp {
|
|
@@ -1136,8 +1130,8 @@ export interface RunEventBase {
|
|
|
1136
1130
|
eventSeq: number;
|
|
1137
1131
|
kind: RunEventKind;
|
|
1138
1132
|
nodeName: string;
|
|
1133
|
+
runnableStrategyRef: RunnableStrategyIdentity;
|
|
1139
1134
|
stepMetaData?: RunEventStepMetaData;
|
|
1140
|
-
strategyRunRef: StrategyRunIdentity;
|
|
1141
1135
|
strategyThreadRef: StrategyThreadIdentity;
|
|
1142
1136
|
updates?: RunEventUpdates;
|
|
1143
1137
|
}
|
|
@@ -1204,15 +1198,14 @@ export interface Conditional {
|
|
|
1204
1198
|
*/
|
|
1205
1199
|
export interface StrategyStateDelta {
|
|
1206
1200
|
strategyStateUpdate?: {
|
|
1207
|
-
[k: string]:
|
|
1201
|
+
[k: string]: ExecutionSocket;
|
|
1208
1202
|
};
|
|
1209
|
-
strategyStateUpdateWide?: Record<ExecutionIdentity, ExecutionSocket>;
|
|
1210
1203
|
}
|
|
1211
1204
|
/**
|
|
1212
1205
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1213
|
-
* via the `definition` "
|
|
1206
|
+
* via the `definition` "ExecutionSocket".
|
|
1214
1207
|
*/
|
|
1215
|
-
export type
|
|
1208
|
+
export type ExecutionSocket = Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>;
|
|
1216
1209
|
/**
|
|
1217
1210
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1218
1211
|
* via the `definition` "ResourceBase".
|
|
@@ -1221,6 +1214,13 @@ export interface ResourceBase {
|
|
|
1221
1214
|
identity: ResourceIdentity;
|
|
1222
1215
|
resourceTypeRef: ResourceTypeIdentity;
|
|
1223
1216
|
}
|
|
1217
|
+
/**
|
|
1218
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1219
|
+
* via the `definition` "ResourceKind".
|
|
1220
|
+
*/
|
|
1221
|
+
export interface ResourceKind {
|
|
1222
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
1223
|
+
}
|
|
1224
1224
|
/**
|
|
1225
1225
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1226
1226
|
* via the `definition` "CreationContextWrapper".
|
|
@@ -1236,13 +1236,6 @@ export interface CreationContext {
|
|
|
1236
1236
|
executionRef: ExecutionIdentity;
|
|
1237
1237
|
resourceRoleRef: ResourceRoleIdentity;
|
|
1238
1238
|
}
|
|
1239
|
-
/**
|
|
1240
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1241
|
-
* via the `definition` "ResourceKind".
|
|
1242
|
-
*/
|
|
1243
|
-
export interface ResourceKind {
|
|
1244
|
-
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
1245
|
-
}
|
|
1246
1239
|
/**
|
|
1247
1240
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1248
1241
|
* via the `definition` "Path".
|
|
@@ -1252,17 +1245,12 @@ export interface Path {
|
|
|
1252
1245
|
}
|
|
1253
1246
|
/**
|
|
1254
1247
|
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1255
|
-
* via the `definition` "
|
|
1248
|
+
* via the `definition` "RunnableStrategyContext".
|
|
1256
1249
|
*/
|
|
1257
|
-
export
|
|
1258
|
-
/**
|
|
1259
|
-
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1260
|
-
* via the `definition` "StrategyRunContext".
|
|
1261
|
-
*/
|
|
1262
|
-
export interface StrategyRunContext {
|
|
1250
|
+
export interface RunnableStrategyContext {
|
|
1263
1251
|
completedAt?: Timestamp1;
|
|
1264
1252
|
startedAt?: Timestamp1;
|
|
1265
|
-
status:
|
|
1253
|
+
status: RunnableStrategyStatus;
|
|
1266
1254
|
}
|
|
1267
1255
|
export interface StrategyThreadMapWrapper {
|
|
1268
1256
|
strategyThreadMap: StrategyThreadMap;
|
|
@@ -1302,6 +1290,165 @@ export interface RoleBindingsWrapper1 {
|
|
|
1302
1290
|
roleBindings: RoleBindings;
|
|
1303
1291
|
}
|
|
1304
1292
|
|
|
1293
|
+
export type Normalized =
|
|
1294
|
+
{
|
|
1295
|
+
identity: RunnableStrategyIdentity;
|
|
1296
|
+
runnableStrategyContext: RunnableStrategyContext;
|
|
1297
|
+
statefulStrategyRef: StatefulStrategyIdentity;
|
|
1298
|
+
} & StrategyThreadMapWrapper &
|
|
1299
|
+
StrategyStateWrapper;
|
|
1300
|
+
export type RunnableStrategyIdentity =
|
|
1301
|
+
`RUNNABLE_STRATEGY-${string}`;
|
|
1302
|
+
export type RunnableStrategyStatus =
|
|
1303
|
+
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
1304
|
+
export type StatefulStrategyIdentity =
|
|
1305
|
+
`STATEFUL_STRATEGY-${string}`;
|
|
1306
|
+
export type Step =
|
|
1307
|
+
WorkStep | BranchStep | WhileStep | ForStep;
|
|
1308
|
+
export type WorkStep =
|
|
1309
|
+
{
|
|
1310
|
+
execution: Execution;
|
|
1311
|
+
identity: WorkStepIdentity;
|
|
1312
|
+
kind: "work";
|
|
1313
|
+
} & StepKind;
|
|
1314
|
+
export type Execution =
|
|
1315
|
+
{
|
|
1316
|
+
identity: ExecutionIdentity;
|
|
1317
|
+
jobRef: JobIdentity;
|
|
1318
|
+
} & RoleBindingsWrapper;
|
|
1319
|
+
export type ExecutionIdentity =
|
|
1320
|
+
`EXECUTION-${string}`;
|
|
1321
|
+
export type JobIdentity =
|
|
1322
|
+
`JOB-${string}`;
|
|
1323
|
+
export type ResourceIdentity =
|
|
1324
|
+
`RESOURCE-${string}`;
|
|
1325
|
+
export type WorkStepIdentity =
|
|
1326
|
+
`WORKSTEP-${string}`;
|
|
1327
|
+
export type BranchStep =
|
|
1328
|
+
{
|
|
1329
|
+
/**
|
|
1330
|
+
* @minItems 1
|
|
1331
|
+
*/
|
|
1332
|
+
cases: [Conditional, ...Conditional[]];
|
|
1333
|
+
identity: BranchStepIdentity;
|
|
1334
|
+
kind: "branch";
|
|
1335
|
+
} & StepKind;
|
|
1336
|
+
export type BranchStepIdentity =
|
|
1337
|
+
`BRANCHSTEP-${string}`;
|
|
1338
|
+
export type WhileStep =
|
|
1339
|
+
{
|
|
1340
|
+
case: Conditional;
|
|
1341
|
+
identity: WhileStepIdentity;
|
|
1342
|
+
kind: "while";
|
|
1343
|
+
} & StepKind;
|
|
1344
|
+
export type WhileStepIdentity =
|
|
1345
|
+
`WHILESTEP-${string}`;
|
|
1346
|
+
export type ForStep =
|
|
1347
|
+
{
|
|
1348
|
+
case: Conditional;
|
|
1349
|
+
identity: ForStepIdentity;
|
|
1350
|
+
kind: "for";
|
|
1351
|
+
} & StepKind;
|
|
1352
|
+
export type ForStepIdentity =
|
|
1353
|
+
`FORSTEP-${string}`;
|
|
1354
|
+
export type ResourceMissing =
|
|
1355
|
+
{
|
|
1356
|
+
} & ResourceBase &
|
|
1357
|
+
ResourceKind & {
|
|
1358
|
+
kind: "missing";
|
|
1359
|
+
};
|
|
1360
|
+
export type ResourceTypeIdentity =
|
|
1361
|
+
`TYPE-${string}`;
|
|
1362
|
+
export type ResourcePotentialInput =
|
|
1363
|
+
{
|
|
1364
|
+
} & ResourceBase &
|
|
1365
|
+
CreationContextWrapper &
|
|
1366
|
+
ResourceKind & {
|
|
1367
|
+
kind: "potential-input";
|
|
1368
|
+
};
|
|
1369
|
+
export type ResourceRoleIdentity =
|
|
1370
|
+
`ROLE-${string}`;
|
|
1371
|
+
export type ResourcePotentialOutput =
|
|
1372
|
+
{
|
|
1373
|
+
} & ResourceBase &
|
|
1374
|
+
CreationContextWrapper &
|
|
1375
|
+
ResourceKind & {
|
|
1376
|
+
kind: "potential-output";
|
|
1377
|
+
};
|
|
1378
|
+
export type Resource =
|
|
1379
|
+
{
|
|
1380
|
+
} & ResourceMetaBase & {
|
|
1381
|
+
extractedData: {
|
|
1382
|
+
[k: string]: JsonData;
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1385
|
+
export type ResourceMetaBase =
|
|
1386
|
+
ResourceBase &
|
|
1387
|
+
CreationContextWrapper &
|
|
1388
|
+
ResourceKind & {
|
|
1389
|
+
kind: "materialized";
|
|
1390
|
+
} & Timestamp &
|
|
1391
|
+
Path;
|
|
1392
|
+
export type JsonData =
|
|
1393
|
+
| null
|
|
1394
|
+
| boolean
|
|
1395
|
+
| number
|
|
1396
|
+
| string
|
|
1397
|
+
| JsonData
|
|
1398
|
+
| {
|
|
1399
|
+
[k: string]: JsonData;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
export interface RunnableStrategyContext {
|
|
1403
|
+
completedAt?: Timestamp;
|
|
1404
|
+
startedAt?: Timestamp;
|
|
1405
|
+
status: RunnableStrategyStatus;
|
|
1406
|
+
}
|
|
1407
|
+
export interface Timestamp {
|
|
1408
|
+
timestamp: string;
|
|
1409
|
+
}
|
|
1410
|
+
export interface StrategyThreadMapWrapper {
|
|
1411
|
+
strategyThreadMap: StrategyThreadMap;
|
|
1412
|
+
}
|
|
1413
|
+
export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
|
|
1414
|
+
export interface RoleBindingsWrapper {
|
|
1415
|
+
roleBindings: RoleBindings;
|
|
1416
|
+
}
|
|
1417
|
+
export interface RoleBindings {
|
|
1418
|
+
inputBindingMap: RoleBindingMap;
|
|
1419
|
+
outputBindingMap: RoleBindingMap;
|
|
1420
|
+
}
|
|
1421
|
+
export type RoleBindingMap = Record<ResourceRoleIdentity, ResourceIdentity>;
|
|
1422
|
+
export interface StepKind {
|
|
1423
|
+
kind: "work" | "branch" | "while" | "for";
|
|
1424
|
+
}
|
|
1425
|
+
export interface Conditional {
|
|
1426
|
+
what: WorkStep;
|
|
1427
|
+
when: WorkStep;
|
|
1428
|
+
}
|
|
1429
|
+
export interface StrategyStateWrapper {
|
|
1430
|
+
strategyState: StrategyState;
|
|
1431
|
+
}
|
|
1432
|
+
export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
|
|
1433
|
+
export type ExecutionSocket = Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>;
|
|
1434
|
+
export interface ResourceBase {
|
|
1435
|
+
identity: ResourceIdentity;
|
|
1436
|
+
resourceTypeRef: ResourceTypeIdentity;
|
|
1437
|
+
}
|
|
1438
|
+
export interface ResourceKind {
|
|
1439
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
1440
|
+
}
|
|
1441
|
+
export interface CreationContextWrapper {
|
|
1442
|
+
creationContext: CreationContext;
|
|
1443
|
+
}
|
|
1444
|
+
export interface CreationContext {
|
|
1445
|
+
executionRef: ExecutionIdentity;
|
|
1446
|
+
resourceRoleRef: ResourceRoleIdentity;
|
|
1447
|
+
}
|
|
1448
|
+
export interface Path {
|
|
1449
|
+
path: string;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1305
1452
|
export type Normalized =
|
|
1306
1453
|
{
|
|
1307
1454
|
identity: StatefulStrategyIdentity;
|
|
@@ -1611,162 +1758,3 @@ export interface RoleBindingsWrapper1 {
|
|
|
1611
1758
|
roleBindings: RoleBindings;
|
|
1612
1759
|
}
|
|
1613
1760
|
|
|
1614
|
-
export type Normalized =
|
|
1615
|
-
{
|
|
1616
|
-
identity: StrategyRunIdentity;
|
|
1617
|
-
statefulStrategyRef: StatefulStrategyIdentity;
|
|
1618
|
-
strategyRunContext: StrategyRunContext;
|
|
1619
|
-
} & StrategyThreadMapWrapper &
|
|
1620
|
-
StrategyStateWrapper;
|
|
1621
|
-
export type StrategyRunIdentity =
|
|
1622
|
-
`STRATEGY_RUN-${string}`;
|
|
1623
|
-
export type StatefulStrategyIdentity =
|
|
1624
|
-
`STATEFUL_STRATEGY-${string}`;
|
|
1625
|
-
export type StrategyRunStatus =
|
|
1626
|
-
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
1627
|
-
export type Step =
|
|
1628
|
-
WorkStep | BranchStep | WhileStep | ForStep;
|
|
1629
|
-
export type WorkStep =
|
|
1630
|
-
{
|
|
1631
|
-
execution: Execution;
|
|
1632
|
-
identity: WorkStepIdentity;
|
|
1633
|
-
kind: "work";
|
|
1634
|
-
} & StepKind;
|
|
1635
|
-
export type Execution =
|
|
1636
|
-
{
|
|
1637
|
-
identity: ExecutionIdentity;
|
|
1638
|
-
jobRef: JobIdentity;
|
|
1639
|
-
} & RoleBindingsWrapper;
|
|
1640
|
-
export type ExecutionIdentity =
|
|
1641
|
-
`EXECUTION-${string}`;
|
|
1642
|
-
export type JobIdentity =
|
|
1643
|
-
`JOB-${string}`;
|
|
1644
|
-
export type ResourceIdentity =
|
|
1645
|
-
`RESOURCE-${string}`;
|
|
1646
|
-
export type WorkStepIdentity =
|
|
1647
|
-
`WORKSTEP-${string}`;
|
|
1648
|
-
export type BranchStep =
|
|
1649
|
-
{
|
|
1650
|
-
/**
|
|
1651
|
-
* @minItems 1
|
|
1652
|
-
*/
|
|
1653
|
-
cases: [Conditional, ...Conditional[]];
|
|
1654
|
-
identity: BranchStepIdentity;
|
|
1655
|
-
kind: "branch";
|
|
1656
|
-
} & StepKind;
|
|
1657
|
-
export type BranchStepIdentity =
|
|
1658
|
-
`BRANCHSTEP-${string}`;
|
|
1659
|
-
export type WhileStep =
|
|
1660
|
-
{
|
|
1661
|
-
case: Conditional;
|
|
1662
|
-
identity: WhileStepIdentity;
|
|
1663
|
-
kind: "while";
|
|
1664
|
-
} & StepKind;
|
|
1665
|
-
export type WhileStepIdentity =
|
|
1666
|
-
`WHILESTEP-${string}`;
|
|
1667
|
-
export type ForStep =
|
|
1668
|
-
{
|
|
1669
|
-
case: Conditional;
|
|
1670
|
-
identity: ForStepIdentity;
|
|
1671
|
-
kind: "for";
|
|
1672
|
-
} & StepKind;
|
|
1673
|
-
export type ForStepIdentity =
|
|
1674
|
-
`FORSTEP-${string}`;
|
|
1675
|
-
export type ResourceMissing =
|
|
1676
|
-
{
|
|
1677
|
-
} & ResourceBase &
|
|
1678
|
-
ResourceKind & {
|
|
1679
|
-
kind: "missing";
|
|
1680
|
-
};
|
|
1681
|
-
export type ResourceTypeIdentity =
|
|
1682
|
-
`TYPE-${string}`;
|
|
1683
|
-
export type ResourcePotentialInput =
|
|
1684
|
-
{
|
|
1685
|
-
} & ResourceBase &
|
|
1686
|
-
CreationContextWrapper &
|
|
1687
|
-
ResourceKind & {
|
|
1688
|
-
kind: "potential-input";
|
|
1689
|
-
};
|
|
1690
|
-
export type ResourceRoleIdentity =
|
|
1691
|
-
`ROLE-${string}`;
|
|
1692
|
-
export type ResourcePotentialOutput =
|
|
1693
|
-
{
|
|
1694
|
-
} & ResourceBase &
|
|
1695
|
-
CreationContextWrapper &
|
|
1696
|
-
ResourceKind & {
|
|
1697
|
-
kind: "potential-output";
|
|
1698
|
-
};
|
|
1699
|
-
export type Resource =
|
|
1700
|
-
{
|
|
1701
|
-
} & ResourceMetaBase & {
|
|
1702
|
-
extractedData: {
|
|
1703
|
-
[k: string]: JsonData;
|
|
1704
|
-
};
|
|
1705
|
-
};
|
|
1706
|
-
export type ResourceMetaBase =
|
|
1707
|
-
ResourceBase &
|
|
1708
|
-
CreationContextWrapper &
|
|
1709
|
-
ResourceKind & {
|
|
1710
|
-
kind: "materialized";
|
|
1711
|
-
} & Timestamp &
|
|
1712
|
-
Path;
|
|
1713
|
-
export type JsonData =
|
|
1714
|
-
| null
|
|
1715
|
-
| boolean
|
|
1716
|
-
| number
|
|
1717
|
-
| string
|
|
1718
|
-
| JsonData
|
|
1719
|
-
| {
|
|
1720
|
-
[k: string]: JsonData;
|
|
1721
|
-
};
|
|
1722
|
-
|
|
1723
|
-
export interface StrategyRunContext {
|
|
1724
|
-
completedAt?: Timestamp;
|
|
1725
|
-
startedAt?: Timestamp;
|
|
1726
|
-
status: StrategyRunStatus;
|
|
1727
|
-
}
|
|
1728
|
-
export interface Timestamp {
|
|
1729
|
-
timestamp: string;
|
|
1730
|
-
}
|
|
1731
|
-
export interface StrategyThreadMapWrapper {
|
|
1732
|
-
strategyThreadMap: StrategyThreadMap;
|
|
1733
|
-
}
|
|
1734
|
-
export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
|
|
1735
|
-
export interface RoleBindingsWrapper {
|
|
1736
|
-
roleBindings: RoleBindings;
|
|
1737
|
-
}
|
|
1738
|
-
export interface RoleBindings {
|
|
1739
|
-
inputBindingMap: RoleBindingMap;
|
|
1740
|
-
outputBindingMap: RoleBindingMap;
|
|
1741
|
-
}
|
|
1742
|
-
export type RoleBindingMap = Record<ResourceRoleIdentity, ResourceIdentity>;
|
|
1743
|
-
export interface StepKind {
|
|
1744
|
-
kind: "work" | "branch" | "while" | "for";
|
|
1745
|
-
}
|
|
1746
|
-
export interface Conditional {
|
|
1747
|
-
what: WorkStep;
|
|
1748
|
-
when: WorkStep;
|
|
1749
|
-
}
|
|
1750
|
-
export interface StrategyStateWrapper {
|
|
1751
|
-
strategyState: StrategyState;
|
|
1752
|
-
}
|
|
1753
|
-
export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
|
|
1754
|
-
export type ExecutionSocket = Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>;
|
|
1755
|
-
export interface ResourceBase {
|
|
1756
|
-
identity: ResourceIdentity;
|
|
1757
|
-
resourceTypeRef: ResourceTypeIdentity;
|
|
1758
|
-
}
|
|
1759
|
-
export interface ResourceKind {
|
|
1760
|
-
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
1761
|
-
}
|
|
1762
|
-
export interface CreationContextWrapper {
|
|
1763
|
-
creationContext: CreationContext;
|
|
1764
|
-
}
|
|
1765
|
-
export interface CreationContext {
|
|
1766
|
-
executionRef: ExecutionIdentity;
|
|
1767
|
-
resourceRoleRef: ResourceRoleIdentity;
|
|
1768
|
-
}
|
|
1769
|
-
export interface Path {
|
|
1770
|
-
path: string;
|
|
1771
|
-
}
|
|
1772
|
-
|