@toolproof-npm/schema 0.1.80 → 0.1.82
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 +56 -3
- package/dist/genesis/generated/resourceTypes/Genesis.json +384 -21
- package/dist/genesis/generated/resources/Genesis.json +515 -22
- package/dist/genesis/generated/schemas/Genesis.json +306 -21
- package/dist/genesis/generated/schemas/RunRecording.d.ts +2 -0
- package/dist/genesis/generated/schemas/RunRecording.js +2 -0
- package/dist/genesis/generated/schemas/RunRecording.json +1020 -0
- package/dist/genesis/generated/schemas/StatefulStrategy.json +0 -2
- package/dist/genesis/generated/schemas/StrategyRun.json +0 -2
- package/dist/genesis/generated/terminals.json +2 -1
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +13 -0
- package/dist/genesis/generated/types/types.d.ts +674 -90
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
|
@@ -190,6 +190,105 @@ 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` "GraphEndRunEvent".
|
|
196
|
+
*/
|
|
197
|
+
export type GraphEndRunEvent =
|
|
198
|
+
RunEventBase & {
|
|
199
|
+
kind?: "graph_end";
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
203
|
+
* via the `definition` "RunEventKind".
|
|
204
|
+
*/
|
|
205
|
+
export type RunEventKind =
|
|
206
|
+
"graph_start" | "tick" | "interrupt" | "graph_end";
|
|
207
|
+
/**
|
|
208
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
209
|
+
* via the `definition` "RunEventStepKind".
|
|
210
|
+
*/
|
|
211
|
+
export type RunEventStepKind =
|
|
212
|
+
"work" | "branch" | "while" | "for";
|
|
213
|
+
/**
|
|
214
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
215
|
+
* via the `definition` "WhileStepIdentity".
|
|
216
|
+
*/
|
|
217
|
+
export type WhileStepIdentity =
|
|
218
|
+
`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
|
+
/**
|
|
226
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
227
|
+
* via the `definition` "StrategyThreadIdentity".
|
|
228
|
+
*/
|
|
229
|
+
export type StrategyThreadIdentity =
|
|
230
|
+
`STRATEGY_THREAD-${string}`;
|
|
231
|
+
/**
|
|
232
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
233
|
+
* via the `definition` "RunEventUpdates".
|
|
234
|
+
*/
|
|
235
|
+
export type RunEventUpdates =
|
|
236
|
+
{
|
|
237
|
+
interruptData?: {
|
|
238
|
+
} | null;
|
|
239
|
+
stepsMutation?: {
|
|
240
|
+
insertAt: number;
|
|
241
|
+
inserted: Step[];
|
|
242
|
+
};
|
|
243
|
+
} & StrategyStateDelta;
|
|
244
|
+
/**
|
|
245
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
246
|
+
* via the `definition` "Step".
|
|
247
|
+
*/
|
|
248
|
+
export type Step =
|
|
249
|
+
WorkStep | BranchStep | WhileStep | ForStep;
|
|
250
|
+
/**
|
|
251
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
252
|
+
* via the `definition` "WhileStep".
|
|
253
|
+
*/
|
|
254
|
+
export type WhileStep =
|
|
255
|
+
{
|
|
256
|
+
case: Conditional;
|
|
257
|
+
identity: WhileStepIdentity;
|
|
258
|
+
kind: "while";
|
|
259
|
+
} & StepKind;
|
|
260
|
+
/**
|
|
261
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
262
|
+
* via the `definition` "GraphStartRunEvent".
|
|
263
|
+
*/
|
|
264
|
+
export type GraphStartRunEvent =
|
|
265
|
+
RunEventBase & {
|
|
266
|
+
kind?: "graph_start";
|
|
267
|
+
strategyRunSeed: StrategyRun;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
271
|
+
* via the `definition` "StrategyRun".
|
|
272
|
+
*/
|
|
273
|
+
export type StrategyRun =
|
|
274
|
+
{
|
|
275
|
+
identity: StrategyRunIdentity;
|
|
276
|
+
statefulStrategyRef: StatefulStrategyIdentity;
|
|
277
|
+
strategyRunContext: StrategyRunContext;
|
|
278
|
+
} & StrategyThreadMapWrapper &
|
|
279
|
+
StrategyStateWrapper;
|
|
280
|
+
/**
|
|
281
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
282
|
+
* via the `definition` "StatefulStrategyIdentity".
|
|
283
|
+
*/
|
|
284
|
+
export type StatefulStrategyIdentity =
|
|
285
|
+
`STATEFUL_STRATEGY-${string}`;
|
|
286
|
+
/**
|
|
287
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
288
|
+
* via the `definition` "StrategyRunStatus".
|
|
289
|
+
*/
|
|
290
|
+
export type StrategyRunStatus =
|
|
291
|
+
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
193
292
|
/**
|
|
194
293
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
195
294
|
* via the `patternProperty` "^[A-Za-z][A-Za-z0-9._-]*Identity$".
|
|
@@ -213,6 +312,14 @@ export type IdentitySchema =
|
|
|
213
312
|
pattern?: string;
|
|
214
313
|
} & {
|
|
215
314
|
};
|
|
315
|
+
/**
|
|
316
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
317
|
+
* via the `definition` "InterruptRunEvent".
|
|
318
|
+
*/
|
|
319
|
+
export type InterruptRunEvent =
|
|
320
|
+
RunEventBase & {
|
|
321
|
+
kind?: "interrupt";
|
|
322
|
+
};
|
|
216
323
|
/**
|
|
217
324
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
218
325
|
* via the `definition` "Job".
|
|
@@ -302,6 +409,20 @@ export type ResourceType =
|
|
|
302
409
|
} & Documented &
|
|
303
410
|
ExtractionSchemaWrapper & {
|
|
304
411
|
};
|
|
412
|
+
/**
|
|
413
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
414
|
+
* via the `definition` "RunEvent".
|
|
415
|
+
*/
|
|
416
|
+
export type RunEvent =
|
|
417
|
+
GraphStartRunEvent | TickRunEvent | InterruptRunEvent | GraphEndRunEvent;
|
|
418
|
+
/**
|
|
419
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
420
|
+
* via the `definition` "TickRunEvent".
|
|
421
|
+
*/
|
|
422
|
+
export type TickRunEvent =
|
|
423
|
+
RunEventBase & {
|
|
424
|
+
kind?: "tick";
|
|
425
|
+
};
|
|
305
426
|
/**
|
|
306
427
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
307
428
|
* via the `definition` "StatefulStrategy".
|
|
@@ -310,13 +431,7 @@ export type StatefulStrategy =
|
|
|
310
431
|
{
|
|
311
432
|
identity: StatefulStrategyIdentity;
|
|
312
433
|
} & StatelessStrategyWrapper &
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
316
|
-
* via the `definition` "StatefulStrategyIdentity".
|
|
317
|
-
*/
|
|
318
|
-
export type StatefulStrategyIdentity =
|
|
319
|
-
`STATEFUL_STRATEGY-${string}`;
|
|
434
|
+
StrategyStateWrapper1;
|
|
320
435
|
/**
|
|
321
436
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
322
437
|
* via the `definition` "StatelessStrategyIdentity".
|
|
@@ -325,62 +440,20 @@ export type StatelessStrategyIdentity =
|
|
|
325
440
|
`STATELESS_STRATEGY-${string}`;
|
|
326
441
|
/**
|
|
327
442
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
328
|
-
* via the `definition` "
|
|
329
|
-
*/
|
|
330
|
-
export type Step =
|
|
331
|
-
WorkStep | BranchStep | WhileStep | ForStep;
|
|
332
|
-
/**
|
|
333
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
334
|
-
* via the `definition` "WhileStep".
|
|
335
|
-
*/
|
|
336
|
-
export type WhileStep =
|
|
337
|
-
{
|
|
338
|
-
case: Conditional;
|
|
339
|
-
identity: WhileStepIdentity;
|
|
340
|
-
kind: "while";
|
|
341
|
-
} & StepKind;
|
|
342
|
-
/**
|
|
343
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
344
|
-
* via the `definition` "WhileStepIdentity".
|
|
345
|
-
*/
|
|
346
|
-
export type WhileStepIdentity =
|
|
347
|
-
`WHILESTEP-${string}`;
|
|
348
|
-
/**
|
|
349
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
350
|
-
* via the `definition` "StrategyRun".
|
|
443
|
+
* via the `definition` "StrategyRunUpdate".
|
|
351
444
|
*/
|
|
352
|
-
export type
|
|
445
|
+
export type StrategyRunUpdate =
|
|
353
446
|
{
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
} & StrategyThreadMapWrapper &
|
|
358
|
-
StrategyStateWrapper1;
|
|
359
|
-
/**
|
|
360
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
361
|
-
* via the `definition` "StrategyRunIdentity".
|
|
362
|
-
*/
|
|
363
|
-
export type StrategyRunIdentity =
|
|
364
|
-
`STRATEGY_RUN-${string}`;
|
|
365
|
-
/**
|
|
366
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
367
|
-
* via the `definition` "StrategyRunStatus".
|
|
368
|
-
*/
|
|
369
|
-
export type StrategyRunStatus =
|
|
370
|
-
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
447
|
+
strategyRun?: StrategyRun1;
|
|
448
|
+
strategyRunRef: StrategyRunIdentity;
|
|
449
|
+
} & StrategyStateDelta;
|
|
371
450
|
export type StrategyRun1 =
|
|
372
451
|
{
|
|
373
452
|
identity: StrategyRunIdentity;
|
|
374
453
|
statefulStrategyRef: StatefulStrategyIdentity;
|
|
375
454
|
strategyRunContext: StrategyRunContext;
|
|
376
455
|
} & StrategyThreadMapWrapper &
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
380
|
-
* via the `definition` "StrategyThreadIdentity".
|
|
381
|
-
*/
|
|
382
|
-
export type StrategyThreadIdentity =
|
|
383
|
-
`STRATEGY_THREAD-${string}`;
|
|
456
|
+
StrategyStateWrapper;
|
|
384
457
|
|
|
385
458
|
export interface GenesisJson {
|
|
386
459
|
}
|
|
@@ -490,6 +563,75 @@ export type ExecutionSocketMaterialized = Record<ResourceRoleIdentity, Resource>
|
|
|
490
563
|
export interface ExtractionSchemaWrapper {
|
|
491
564
|
extractionSchema: ExtractionSchema;
|
|
492
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
568
|
+
* via the `definition` "RunEventBase".
|
|
569
|
+
*/
|
|
570
|
+
export interface RunEventBase {
|
|
571
|
+
counters?: RunEventCounters;
|
|
572
|
+
createdAt: Timestamp;
|
|
573
|
+
eventSeq: number;
|
|
574
|
+
kind: RunEventKind;
|
|
575
|
+
nodeName: string;
|
|
576
|
+
stepMetaData?: RunEventStepMetaData;
|
|
577
|
+
strategyRunRef: StrategyRunIdentity;
|
|
578
|
+
strategyThreadRef: StrategyThreadIdentity;
|
|
579
|
+
updates?: RunEventUpdates;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
583
|
+
* via the `definition` "RunEventCounters".
|
|
584
|
+
*/
|
|
585
|
+
export interface RunEventCounters {
|
|
586
|
+
iterationCounterAfter?: number;
|
|
587
|
+
stepCounterAfter?: number;
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
591
|
+
* via the `definition` "RunEventStepMetaData".
|
|
592
|
+
*/
|
|
593
|
+
export interface RunEventStepMetaData {
|
|
594
|
+
executionRef?: ExecutionIdentity;
|
|
595
|
+
jobRef?: JobIdentity;
|
|
596
|
+
stepKind: RunEventStepKind;
|
|
597
|
+
stepRef: WorkStepIdentity | BranchStepIdentity | WhileStepIdentity | ForStepIdentity;
|
|
598
|
+
threadStepIndex: number;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
602
|
+
* via the `definition` "StrategyStateDelta".
|
|
603
|
+
*/
|
|
604
|
+
export interface StrategyStateDelta {
|
|
605
|
+
strategyStateUpdate?: {
|
|
606
|
+
[k: string]: ExecutionSocketMaterialized;
|
|
607
|
+
};
|
|
608
|
+
strategyStateUpdateWide?: Record<ExecutionIdentity, ExecutionSocket>;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
612
|
+
* via the `definition` "StrategyRunContext".
|
|
613
|
+
*/
|
|
614
|
+
export interface StrategyRunContext {
|
|
615
|
+
completedAt?: Timestamp;
|
|
616
|
+
startedAt?: Timestamp;
|
|
617
|
+
status: StrategyRunStatus;
|
|
618
|
+
}
|
|
619
|
+
export interface StrategyThreadMapWrapper {
|
|
620
|
+
strategyThreadMap: StrategyThreadMap;
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
624
|
+
* via the `definition` "StrategyThreadMap".
|
|
625
|
+
*/
|
|
626
|
+
export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
|
|
627
|
+
export interface StrategyStateWrapper {
|
|
628
|
+
strategyState: StrategyState;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
632
|
+
* via the `definition` "StrategyState".
|
|
633
|
+
*/
|
|
634
|
+
export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
|
|
493
635
|
/**
|
|
494
636
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
495
637
|
* via the `definition` "IdentityProp".
|
|
@@ -561,6 +703,19 @@ export interface MeritSchemaRef {
|
|
|
561
703
|
export interface RoleBindingsWrapper1 {
|
|
562
704
|
roleBindings: RoleBindings;
|
|
563
705
|
}
|
|
706
|
+
/**
|
|
707
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
708
|
+
* via the `definition` "RunRecording".
|
|
709
|
+
*/
|
|
710
|
+
export interface RunRecording {
|
|
711
|
+
recordedAt?: Timestamp1;
|
|
712
|
+
runEvents: RunEvent[];
|
|
713
|
+
strategyRunRef?: string;
|
|
714
|
+
strategyThreadRef?: string;
|
|
715
|
+
}
|
|
716
|
+
export interface Timestamp1 {
|
|
717
|
+
timestamp: string;
|
|
718
|
+
}
|
|
564
719
|
/**
|
|
565
720
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
566
721
|
* via the `definition` "StatelessStrategyWrapper".
|
|
@@ -580,44 +735,9 @@ export interface StatelessStrategy {
|
|
|
580
735
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
581
736
|
* via the `definition` "StrategyStateWrapper".
|
|
582
737
|
*/
|
|
583
|
-
export interface StrategyStateWrapper {
|
|
584
|
-
strategyState: StrategyState;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
588
|
-
* via the `definition` "StrategyState".
|
|
589
|
-
*/
|
|
590
|
-
export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
|
|
591
|
-
/**
|
|
592
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
593
|
-
* via the `definition` "StrategyRunContext".
|
|
594
|
-
*/
|
|
595
|
-
export interface StrategyRunContext {
|
|
596
|
-
completedAt?: Timestamp;
|
|
597
|
-
startedAt?: Timestamp;
|
|
598
|
-
status: StrategyRunStatus;
|
|
599
|
-
}
|
|
600
|
-
export interface StrategyThreadMapWrapper {
|
|
601
|
-
strategyThreadMap: StrategyThreadMap;
|
|
602
|
-
}
|
|
603
|
-
/**
|
|
604
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
605
|
-
* via the `definition` "StrategyThreadMap".
|
|
606
|
-
*/
|
|
607
|
-
export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
|
|
608
738
|
export interface StrategyStateWrapper1 {
|
|
609
739
|
strategyState: StrategyState;
|
|
610
740
|
}
|
|
611
|
-
/**
|
|
612
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
613
|
-
* via the `definition` "StrategyRunUpdate".
|
|
614
|
-
*/
|
|
615
|
-
export interface StrategyRunUpdate {
|
|
616
|
-
strategyRun?: StrategyRun1;
|
|
617
|
-
strategyRunRef: StrategyRunIdentity;
|
|
618
|
-
strategyStateUpdate: Record<ExecutionIdentity, ExecutionSocketMaterialized>;
|
|
619
|
-
strategyStateUpdateWide?: Record<ExecutionIdentity, ExecutionSocket>;
|
|
620
|
-
}
|
|
621
741
|
/**
|
|
622
742
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
623
743
|
* via the `definition` "StrategyThreadMapWrapper".
|
|
@@ -718,6 +838,470 @@ export interface ExtractionSchemaWrapper {
|
|
|
718
838
|
extractionSchema: ExtractionSchema;
|
|
719
839
|
}
|
|
720
840
|
|
|
841
|
+
/**
|
|
842
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
843
|
+
* via the `definition` "RunEvent".
|
|
844
|
+
*/
|
|
845
|
+
export type RunEvent =
|
|
846
|
+
GraphStartRunEvent | TickRunEvent | InterruptRunEvent | GraphEndRunEvent;
|
|
847
|
+
/**
|
|
848
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
849
|
+
* via the `definition` "GraphStartRunEvent".
|
|
850
|
+
*/
|
|
851
|
+
export type GraphStartRunEvent =
|
|
852
|
+
RunEventBase & {
|
|
853
|
+
kind?: "graph_start";
|
|
854
|
+
strategyRunSeed: StrategyRun;
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
858
|
+
* via the `definition` "RunEventKind".
|
|
859
|
+
*/
|
|
860
|
+
export type RunEventKind =
|
|
861
|
+
"graph_start" | "tick" | "interrupt" | "graph_end";
|
|
862
|
+
/**
|
|
863
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
864
|
+
* via the `definition` "ExecutionIdentity".
|
|
865
|
+
*/
|
|
866
|
+
export type ExecutionIdentity =
|
|
867
|
+
`EXECUTION-${string}`;
|
|
868
|
+
/**
|
|
869
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
870
|
+
* via the `definition` "JobIdentity".
|
|
871
|
+
*/
|
|
872
|
+
export type JobIdentity =
|
|
873
|
+
`JOB-${string}`;
|
|
874
|
+
/**
|
|
875
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
876
|
+
* via the `definition` "RunEventStepKind".
|
|
877
|
+
*/
|
|
878
|
+
export type RunEventStepKind =
|
|
879
|
+
"work" | "branch" | "while" | "for";
|
|
880
|
+
/**
|
|
881
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
882
|
+
* via the `definition` "WorkStepIdentity".
|
|
883
|
+
*/
|
|
884
|
+
export type WorkStepIdentity =
|
|
885
|
+
`WORKSTEP-${string}`;
|
|
886
|
+
/**
|
|
887
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
888
|
+
* via the `definition` "BranchStepIdentity".
|
|
889
|
+
*/
|
|
890
|
+
export type BranchStepIdentity =
|
|
891
|
+
`BRANCHSTEP-${string}`;
|
|
892
|
+
/**
|
|
893
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
894
|
+
* via the `definition` "WhileStepIdentity".
|
|
895
|
+
*/
|
|
896
|
+
export type WhileStepIdentity =
|
|
897
|
+
`WHILESTEP-${string}`;
|
|
898
|
+
/**
|
|
899
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
900
|
+
* via the `definition` "ForStepIdentity".
|
|
901
|
+
*/
|
|
902
|
+
export type ForStepIdentity =
|
|
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
|
+
/**
|
|
911
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
912
|
+
* via the `definition` "StrategyThreadIdentity".
|
|
913
|
+
*/
|
|
914
|
+
export type StrategyThreadIdentity =
|
|
915
|
+
`STRATEGY_THREAD-${string}`;
|
|
916
|
+
/**
|
|
917
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
918
|
+
* via the `definition` "RunEventUpdates".
|
|
919
|
+
*/
|
|
920
|
+
export type RunEventUpdates =
|
|
921
|
+
{
|
|
922
|
+
interruptData?: {
|
|
923
|
+
} | null;
|
|
924
|
+
stepsMutation?: {
|
|
925
|
+
insertAt: number;
|
|
926
|
+
inserted: Step[];
|
|
927
|
+
};
|
|
928
|
+
} & StrategyStateDelta;
|
|
929
|
+
/**
|
|
930
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
931
|
+
* via the `definition` "Step".
|
|
932
|
+
*/
|
|
933
|
+
export type Step =
|
|
934
|
+
WorkStep | BranchStep | WhileStep | ForStep;
|
|
935
|
+
/**
|
|
936
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
937
|
+
* via the `definition` "WorkStep".
|
|
938
|
+
*/
|
|
939
|
+
export type WorkStep =
|
|
940
|
+
{
|
|
941
|
+
execution: Execution;
|
|
942
|
+
identity: WorkStepIdentity;
|
|
943
|
+
kind: "work";
|
|
944
|
+
} & StepKind;
|
|
945
|
+
/**
|
|
946
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
947
|
+
* via the `definition` "Execution".
|
|
948
|
+
*/
|
|
949
|
+
export type Execution =
|
|
950
|
+
{
|
|
951
|
+
identity: ExecutionIdentity;
|
|
952
|
+
jobRef: JobIdentity;
|
|
953
|
+
} & RoleBindingsWrapper;
|
|
954
|
+
/**
|
|
955
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
956
|
+
* via the `definition` "ResourceIdentity".
|
|
957
|
+
*/
|
|
958
|
+
export type ResourceIdentity =
|
|
959
|
+
`RESOURCE-${string}`;
|
|
960
|
+
/**
|
|
961
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
962
|
+
* via the `definition` "BranchStep".
|
|
963
|
+
*/
|
|
964
|
+
export type BranchStep =
|
|
965
|
+
{
|
|
966
|
+
/**
|
|
967
|
+
* @minItems 1
|
|
968
|
+
*/
|
|
969
|
+
cases: [Conditional, ...Conditional[]];
|
|
970
|
+
identity: BranchStepIdentity;
|
|
971
|
+
kind: "branch";
|
|
972
|
+
} & StepKind;
|
|
973
|
+
/**
|
|
974
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
975
|
+
* via the `definition` "WhileStep".
|
|
976
|
+
*/
|
|
977
|
+
export type WhileStep =
|
|
978
|
+
{
|
|
979
|
+
case: Conditional;
|
|
980
|
+
identity: WhileStepIdentity;
|
|
981
|
+
kind: "while";
|
|
982
|
+
} & StepKind;
|
|
983
|
+
/**
|
|
984
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
985
|
+
* via the `definition` "ForStep".
|
|
986
|
+
*/
|
|
987
|
+
export type ForStep =
|
|
988
|
+
{
|
|
989
|
+
case: Conditional;
|
|
990
|
+
identity: ForStepIdentity;
|
|
991
|
+
kind: "for";
|
|
992
|
+
} & StepKind;
|
|
993
|
+
/**
|
|
994
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
995
|
+
* via the `definition` "Resource".
|
|
996
|
+
*/
|
|
997
|
+
export type Resource =
|
|
998
|
+
{
|
|
999
|
+
} & ResourceMetaBase & {
|
|
1000
|
+
extractedData: {
|
|
1001
|
+
[k: string]: JsonData;
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
/**
|
|
1005
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1006
|
+
* via the `definition` "ResourceMetaBase".
|
|
1007
|
+
*/
|
|
1008
|
+
export type ResourceMetaBase =
|
|
1009
|
+
ResourceBase &
|
|
1010
|
+
CreationContextWrapper &
|
|
1011
|
+
ResourceKind & {
|
|
1012
|
+
kind: "materialized";
|
|
1013
|
+
} & Timestamp1 &
|
|
1014
|
+
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
|
+
/**
|
|
1028
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1029
|
+
* via the `definition` "JsonData".
|
|
1030
|
+
*/
|
|
1031
|
+
export type JsonData =
|
|
1032
|
+
| null
|
|
1033
|
+
| boolean
|
|
1034
|
+
| number
|
|
1035
|
+
| string
|
|
1036
|
+
| JsonData
|
|
1037
|
+
| {
|
|
1038
|
+
[k: string]: JsonData;
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1042
|
+
* via the `definition` "ResourceMissing".
|
|
1043
|
+
*/
|
|
1044
|
+
export type ResourceMissing =
|
|
1045
|
+
{
|
|
1046
|
+
} & ResourceBase &
|
|
1047
|
+
ResourceKind & {
|
|
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;
|
|
1079
|
+
statefulStrategyRef: StatefulStrategyIdentity;
|
|
1080
|
+
strategyRunContext: StrategyRunContext;
|
|
1081
|
+
} & StrategyThreadMapWrapper &
|
|
1082
|
+
StrategyStateWrapper;
|
|
1083
|
+
/**
|
|
1084
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1085
|
+
* via the `definition` "StatefulStrategyIdentity".
|
|
1086
|
+
*/
|
|
1087
|
+
export type StatefulStrategyIdentity =
|
|
1088
|
+
`STATEFUL_STRATEGY-${string}`;
|
|
1089
|
+
/**
|
|
1090
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1091
|
+
* via the `definition` "StrategyRunStatus".
|
|
1092
|
+
*/
|
|
1093
|
+
export type StrategyRunStatus =
|
|
1094
|
+
"pending" | "running" | "completed" | "failed" | "cancelled";
|
|
1095
|
+
/**
|
|
1096
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1097
|
+
* via the `definition` "TickRunEvent".
|
|
1098
|
+
*/
|
|
1099
|
+
export type TickRunEvent =
|
|
1100
|
+
RunEventBase & {
|
|
1101
|
+
kind?: "tick";
|
|
1102
|
+
};
|
|
1103
|
+
/**
|
|
1104
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1105
|
+
* via the `definition` "InterruptRunEvent".
|
|
1106
|
+
*/
|
|
1107
|
+
export type InterruptRunEvent =
|
|
1108
|
+
RunEventBase & {
|
|
1109
|
+
kind?: "interrupt";
|
|
1110
|
+
};
|
|
1111
|
+
/**
|
|
1112
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1113
|
+
* via the `definition` "GraphEndRunEvent".
|
|
1114
|
+
*/
|
|
1115
|
+
export type GraphEndRunEvent =
|
|
1116
|
+
RunEventBase & {
|
|
1117
|
+
kind?: "graph_end";
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
export interface Normalized {
|
|
1121
|
+
recordedAt?: Timestamp;
|
|
1122
|
+
runEvents: RunEvent[];
|
|
1123
|
+
strategyRunRef?: string;
|
|
1124
|
+
strategyThreadRef?: string;
|
|
1125
|
+
}
|
|
1126
|
+
export interface Timestamp {
|
|
1127
|
+
timestamp: string;
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1131
|
+
* via the `definition` "RunEventBase".
|
|
1132
|
+
*/
|
|
1133
|
+
export interface RunEventBase {
|
|
1134
|
+
counters?: RunEventCounters;
|
|
1135
|
+
createdAt: Timestamp1;
|
|
1136
|
+
eventSeq: number;
|
|
1137
|
+
kind: RunEventKind;
|
|
1138
|
+
nodeName: string;
|
|
1139
|
+
stepMetaData?: RunEventStepMetaData;
|
|
1140
|
+
strategyRunRef: StrategyRunIdentity;
|
|
1141
|
+
strategyThreadRef: StrategyThreadIdentity;
|
|
1142
|
+
updates?: RunEventUpdates;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1146
|
+
* via the `definition` "RunEventCounters".
|
|
1147
|
+
*/
|
|
1148
|
+
export interface RunEventCounters {
|
|
1149
|
+
iterationCounterAfter?: number;
|
|
1150
|
+
stepCounterAfter?: number;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1154
|
+
* via the `definition` "Timestamp".
|
|
1155
|
+
*/
|
|
1156
|
+
export interface Timestamp1 {
|
|
1157
|
+
timestamp: string;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1161
|
+
* via the `definition` "RunEventStepMetaData".
|
|
1162
|
+
*/
|
|
1163
|
+
export interface RunEventStepMetaData {
|
|
1164
|
+
executionRef?: ExecutionIdentity;
|
|
1165
|
+
jobRef?: JobIdentity;
|
|
1166
|
+
stepKind: RunEventStepKind;
|
|
1167
|
+
stepRef: WorkStepIdentity | BranchStepIdentity | WhileStepIdentity | ForStepIdentity;
|
|
1168
|
+
threadStepIndex: number;
|
|
1169
|
+
}
|
|
1170
|
+
export interface RoleBindingsWrapper {
|
|
1171
|
+
roleBindings: RoleBindings;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1175
|
+
* via the `definition` "RoleBindings".
|
|
1176
|
+
*/
|
|
1177
|
+
export interface RoleBindings {
|
|
1178
|
+
inputBindingMap: RoleBindingMap;
|
|
1179
|
+
outputBindingMap: RoleBindingMap;
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1183
|
+
* via the `definition` "RoleBindingMap".
|
|
1184
|
+
*/
|
|
1185
|
+
export type RoleBindingMap = Record<ResourceRoleIdentity, ResourceIdentity>;
|
|
1186
|
+
/**
|
|
1187
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1188
|
+
* via the `definition` "StepKind".
|
|
1189
|
+
*/
|
|
1190
|
+
export interface StepKind {
|
|
1191
|
+
kind: "work" | "branch" | "while" | "for";
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1195
|
+
* via the `definition` "Conditional".
|
|
1196
|
+
*/
|
|
1197
|
+
export interface Conditional {
|
|
1198
|
+
what: WorkStep;
|
|
1199
|
+
when: WorkStep;
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1203
|
+
* via the `definition` "StrategyStateDelta".
|
|
1204
|
+
*/
|
|
1205
|
+
export interface StrategyStateDelta {
|
|
1206
|
+
strategyStateUpdate?: {
|
|
1207
|
+
[k: string]: ExecutionSocketMaterialized;
|
|
1208
|
+
};
|
|
1209
|
+
strategyStateUpdateWide?: Record<ExecutionIdentity, ExecutionSocket>;
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1213
|
+
* via the `definition` "ExecutionSocketMaterialized".
|
|
1214
|
+
*/
|
|
1215
|
+
export type ExecutionSocketMaterialized = Record<ResourceRoleIdentity, Resource>;
|
|
1216
|
+
/**
|
|
1217
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1218
|
+
* via the `definition` "ResourceBase".
|
|
1219
|
+
*/
|
|
1220
|
+
export interface ResourceBase {
|
|
1221
|
+
identity: ResourceIdentity;
|
|
1222
|
+
resourceTypeRef: ResourceTypeIdentity;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1226
|
+
* via the `definition` "CreationContextWrapper".
|
|
1227
|
+
*/
|
|
1228
|
+
export interface CreationContextWrapper {
|
|
1229
|
+
creationContext: CreationContext;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1233
|
+
* via the `definition` "CreationContext".
|
|
1234
|
+
*/
|
|
1235
|
+
export interface CreationContext {
|
|
1236
|
+
executionRef: ExecutionIdentity;
|
|
1237
|
+
resourceRoleRef: ResourceRoleIdentity;
|
|
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
|
+
/**
|
|
1247
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1248
|
+
* via the `definition` "Path".
|
|
1249
|
+
*/
|
|
1250
|
+
export interface Path {
|
|
1251
|
+
path: string;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1255
|
+
* via the `definition` "ExecutionSocket".
|
|
1256
|
+
*/
|
|
1257
|
+
export type ExecutionSocket = Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>;
|
|
1258
|
+
/**
|
|
1259
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1260
|
+
* via the `definition` "StrategyRunContext".
|
|
1261
|
+
*/
|
|
1262
|
+
export interface StrategyRunContext {
|
|
1263
|
+
completedAt?: Timestamp1;
|
|
1264
|
+
startedAt?: Timestamp1;
|
|
1265
|
+
status: StrategyRunStatus;
|
|
1266
|
+
}
|
|
1267
|
+
export interface StrategyThreadMapWrapper {
|
|
1268
|
+
strategyThreadMap: StrategyThreadMap;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1272
|
+
* via the `definition` "StrategyThreadMap".
|
|
1273
|
+
*/
|
|
1274
|
+
export type StrategyThreadMap = Record<StrategyThreadIdentity, Step[]>;
|
|
1275
|
+
export interface StrategyStateWrapper {
|
|
1276
|
+
strategyState: StrategyState;
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1280
|
+
* via the `definition` "StrategyState".
|
|
1281
|
+
*/
|
|
1282
|
+
export type StrategyState = Record<ExecutionIdentity, ExecutionSocket>;
|
|
1283
|
+
/**
|
|
1284
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1285
|
+
* via the `definition` "StrategyThreadMapWrapper".
|
|
1286
|
+
*/
|
|
1287
|
+
export interface StrategyThreadMapWrapper1 {
|
|
1288
|
+
strategyThreadMap: StrategyThreadMap;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1292
|
+
* via the `definition` "StrategyStateWrapper".
|
|
1293
|
+
*/
|
|
1294
|
+
export interface StrategyStateWrapper1 {
|
|
1295
|
+
strategyState: StrategyState;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* This interface was referenced by `Normalized`'s JSON-Schema
|
|
1299
|
+
* via the `definition` "RoleBindingsWrapper".
|
|
1300
|
+
*/
|
|
1301
|
+
export interface RoleBindingsWrapper1 {
|
|
1302
|
+
roleBindings: RoleBindings;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
721
1305
|
export type Normalized =
|
|
722
1306
|
{
|
|
723
1307
|
identity: StatefulStrategyIdentity;
|