@toolproof-core/schema 1.0.11 → 1.0.12

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.
@@ -1,717 +1,717 @@
1
- // Auto-generated from JSON schemas. Do not edit.
2
-
3
- /**
4
- * This interface was referenced by `Genesis`'s JSON-Schema
5
- * via the `definition` "Name".
6
- */
7
- export type NameJson =
8
- string;
9
- /**
10
- * This interface was referenced by `Genesis`'s JSON-Schema
11
- * via the `definition` "Description".
12
- */
13
- export type DescriptionJson =
14
- string;
15
- /**
16
- * This interface was referenced by `Genesis`'s JSON-Schema
17
- * via the `definition` "DocumentationFacet".
18
- */
19
- export type DocumentationFacetJson =
20
- NameFacetJson & DescriptionFacetJson;
21
- /**
22
- * This interface was referenced by `Genesis`'s JSON-Schema
23
- * via the `definition` "Uri".
24
- */
25
- export type UriJson =
26
- string;
27
- /**
28
- * This interface was referenced by `Genesis`'s JSON-Schema
29
- * via the `definition` "ResourceTypeIdentity".
30
- */
31
- export type ResourceTypeIdentityJson =
32
- `TYPE-${string}`;
33
- /**
34
- * This interface was referenced by `Genesis`'s JSON-Schema
35
- * via the `definition` "ResourceType".
36
- */
37
- export type ResourceTypeJson =
38
- {
39
- identity: ResourceTypeIdentityJson;
40
- nucleusSchema: unknown;
41
- embeddingUriDict?: {
42
- [k: string]: UriJson;
43
- };
44
- generatorUriDict?: {
45
- [k: string]: UriJson;
46
- };
47
- } & DocumentationFacetJson;
48
- /**
49
- * This interface was referenced by `Genesis`'s JSON-Schema
50
- * via the `definition` "ResourceRoleIdentity".
51
- */
52
- export type ResourceRoleIdentityJson =
53
- `ROLE-${string}`;
54
- /**
55
- * This interface was referenced by `Genesis`'s JSON-Schema
56
- * via the `definition` "ResourceRoleValue".
57
- */
58
- export type ResourceRoleValueJson =
59
- {
60
- resourceTypeHandle: ResourceTypeIdentityJson;
61
- } & DocumentationFacetJson;
62
- /**
63
- * This interface was referenced by `Genesis`'s JSON-Schema
64
- * via the `definition` "ResourceRole".
65
- */
66
- export type ResourceRoleJson =
67
- {
68
- identity: ResourceRoleIdentityJson;
69
- } & ResourceRoleValueJson;
70
- /**
71
- * This interface was referenced by `Genesis`'s JSON-Schema
72
- * via the `definition` "Error".
73
- */
74
- export type ErrorJson =
75
- {
76
- } & DocumentationFacetJson & {
77
- details?: {
78
- };
79
- };
80
- /**
81
- * This interface was referenced by `Genesis`'s JSON-Schema
82
- * via the `definition` "JobIdentity".
83
- */
84
- export type JobIdentityJson =
85
- `JOB-${string}`;
86
- /**
87
- * This interface was referenced by `Genesis`'s JSON-Schema
88
- * via the `definition` "Job".
89
- */
90
- export type JobJson =
91
- {
92
- identity: JobIdentityJson;
93
- implementationUri: string;
94
- } & DocumentationFacetJson &
95
- RolesFacetJson;
96
- /**
97
- * This interface was referenced by `Genesis`'s JSON-Schema
98
- * via the `definition` "RoleBindingArray".
99
- */
100
- export type RoleBindingArrayJson =
101
- ResourceRoleIdentityJson[];
102
- /**
103
- * This interface was referenced by `Genesis`'s JSON-Schema
104
- * via the `definition` "StepKind".
105
- */
106
- export type StepKindJson =
107
- "job" | "branch" | "while" | "for";
108
- /**
109
- * This interface was referenced by `Genesis`'s JSON-Schema
110
- * via the `definition` "JobStepIdentity".
111
- */
112
- export type JobStepIdentityJson =
113
- `JOB_STEP-${string}`;
114
- /**
115
- * This interface was referenced by `Genesis`'s JSON-Schema
116
- * via the `definition` "JobStep".
117
- */
118
- export type JobStepJson =
119
- {
120
- identity: JobStepIdentityJson;
121
- stepKind: "job";
122
- jobHandle: JobIdentityJson;
123
- } & StepKindFacetJson &
124
- RoleBindingsFacet1Json;
125
- /**
126
- * This interface was referenced by `Genesis`'s JSON-Schema
127
- * via the `definition` "BranchStepIdentity".
128
- */
129
- export type BranchStepIdentityJson =
130
- `BRANCH_STEP-${string}`;
131
- /**
132
- * This interface was referenced by `Genesis`'s JSON-Schema
133
- * via the `definition` "BranchStep".
134
- */
135
- export type BranchStepJson =
136
- {
137
- identity: BranchStepIdentityJson;
138
- stepKind: "branch";
139
- /**
140
- * @minItems 1
141
- */
142
- cases: [ConditionalJson, ...ConditionalJson[]];
143
- } & StepKindFacetJson;
144
- /**
145
- * This interface was referenced by `Genesis`'s JSON-Schema
146
- * via the `definition` "WhileStepIdentity".
147
- */
148
- export type WhileStepIdentityJson =
149
- `WHILE_STEP-${string}`;
150
- /**
151
- * This interface was referenced by `Genesis`'s JSON-Schema
152
- * via the `definition` "WhileStep".
153
- */
154
- export type WhileStepJson =
155
- {
156
- identity: WhileStepIdentityJson;
157
- stepKind: "while";
158
- case: ConditionalJson;
159
- } & StepKindFacetJson;
160
- /**
161
- * This interface was referenced by `Genesis`'s JSON-Schema
162
- * via the `definition` "ForStepIdentity".
163
- */
164
- export type ForStepIdentityJson =
165
- `FOR_STEP-${string}`;
166
- /**
167
- * This interface was referenced by `Genesis`'s JSON-Schema
168
- * via the `definition` "ForStep".
169
- */
170
- export type ForStepJson =
171
- {
172
- identity: ForStepIdentityJson;
173
- stepKind: "for";
174
- case: ConditionalJson;
175
- } & StepKindFacetJson;
176
- /**
177
- * This interface was referenced by `Genesis`'s JSON-Schema
178
- * via the `definition` "StepIdentity".
179
- */
180
- export type StepIdentityJson =
181
- JobStepIdentityJson | BranchStepIdentityJson | WhileStepIdentityJson | ForStepIdentityJson;
182
- /**
183
- * This interface was referenced by `Genesis`'s JSON-Schema
184
- * via the `definition` "Step".
185
- */
186
- export type StepJson =
187
- JobStepJson | BranchStepJson | WhileStepJson | ForStepJson;
188
- /**
189
- * This interface was referenced by `Genesis`'s JSON-Schema
190
- * via the `definition` "ResourceIdentity".
191
- */
192
- export type ResourceIdentityJson =
193
- `RESOURCE-${string}`;
194
- /**
195
- * This interface was referenced by `Genesis`'s JSON-Schema
196
- * via the `definition` "ResourceShellKind".
197
- */
198
- export type ResourceShellKindJson =
199
- "missing" | "inputPotential" | "outputPotential" | "materialized";
200
- /**
201
- * This interface was referenced by `Genesis`'s JSON-Schema
202
- * via the `definition` "ShellMissing".
203
- */
204
- export type ShellMissingJson =
205
- {
206
- resourceShellKind: "missing";
207
- } & ResourceShellBaseJson &
208
- ResourceShellKindFacetJson;
209
- /**
210
- * This interface was referenced by `Genesis`'s JSON-Schema
211
- * via the `definition` "ShellInputPotential".
212
- */
213
- export type ShellInputPotentialJson =
214
- {
215
- resourceShellKind: "inputPotential";
216
- } & ResourceShellBaseJson &
217
- CreationContextFacetJson &
218
- ResourceShellKindFacetJson;
219
- /**
220
- * This interface was referenced by `Genesis`'s JSON-Schema
221
- * via the `definition` "ShellOutputPotential".
222
- */
223
- export type ShellOutputPotentialJson =
224
- {
225
- resourceShellKind: "outputPotential";
226
- } & ResourceShellBaseJson &
227
- CreationContextFacetJson &
228
- ResourceShellKindFacetJson;
229
- /**
230
- * This interface was referenced by `Genesis`'s JSON-Schema
231
- * via the `definition` "Timestamp".
232
- */
233
- export type TimestampJson =
234
- string;
235
- /**
236
- * This interface was referenced by `Genesis`'s JSON-Schema
237
- * via the `definition` "Path".
238
- */
239
- export type PathJson =
240
- string;
241
- /**
242
- * This interface was referenced by `Genesis`'s JSON-Schema
243
- * via the `definition` "ShellMaterializedBase".
244
- */
245
- export type ShellMaterializedBaseJson =
246
- {
247
- version: 1;
248
- resourceShellKind: "materialized";
249
- } & ResourceShellBaseJson &
250
- CreationContextFacetJson &
251
- ResourceShellKindFacetJson &
252
- TimestampFacetJson &
253
- PathFacetJson;
254
- /**
255
- * This interface was referenced by `Genesis`'s JSON-Schema
256
- * via the `definition` "ShellMaterialized".
257
- */
258
- export type ShellMaterializedBase1Json =
259
- {
260
- version: 1;
261
- resourceShellKind: "materialized";
262
- } & ResourceShellBaseJson &
263
- CreationContextFacetJson &
264
- ResourceShellKindFacetJson &
265
- TimestampFacetJson &
266
- PathFacetJson;
267
- /**
268
- * This interface was referenced by `Genesis`'s JSON-Schema
269
- * via the `definition` "ResourceMissing".
270
- */
271
- export type ResourceMissingJson =
272
- {
273
- resourceShellKind: "missing";
274
- } & ResourceShellBaseJson &
275
- ResourceShellKindFacetJson;
276
- /**
277
- * This interface was referenced by `Genesis`'s JSON-Schema
278
- * via the `definition` "ResourceInputPotential".
279
- */
280
- export type ResourceInputPotentialJson =
281
- {
282
- resourceShellKind: "inputPotential";
283
- } & ResourceShellBaseJson &
284
- CreationContextFacetJson &
285
- ResourceShellKindFacetJson;
286
- /**
287
- * This interface was referenced by `Genesis`'s JSON-Schema
288
- * via the `definition` "ResourceOutputPotential".
289
- */
290
- export type ResourceOutputPotentialJson =
291
- {
292
- resourceShellKind: "outputPotential";
293
- } & ResourceShellBaseJson &
294
- CreationContextFacetJson &
295
- ResourceShellKindFacetJson;
296
- /**
297
- * This interface was referenced by `Genesis`'s JSON-Schema
298
- * via the `definition` "ResourcePotential".
299
- */
300
- export type ResourcePotentialJson =
301
- ResourceMissingJson | ResourceInputPotentialJson | ResourceOutputPotentialJson;
302
- /**
303
- * This interface was referenced by `Genesis`'s JSON-Schema
304
- * via the `definition` "JsonData".
305
- */
306
- export type JsonDataJson =
307
- | null
308
- | boolean
309
- | number
310
- | string
311
- | JsonDataJson[]
312
- | {
313
- [k: string]: JsonDataJson;
314
- };
315
- /**
316
- * This interface was referenced by `Genesis`'s JSON-Schema
317
- * via the `definition` "Resource".
318
- */
319
- export type ResourceJson =
320
- {
321
- } & ShellMaterializedBaseJson &
322
- NucleusFacet1Json;
323
- /**
324
- * This interface was referenced by `Genesis`'s JSON-Schema
325
- * via the `definition` "StepArray".
326
- */
327
- export type StepArrayJson =
328
- StepJson[];
329
- /**
330
- * This interface was referenced by `Genesis`'s JSON-Schema
331
- * via the `definition` "RawStrategy".
332
- */
333
- export type RawStrategyJson =
334
- {
335
- } & StepsFacetJson &
336
- StrategyStateFacetJson;
337
- /**
338
- * This interface was referenced by `Genesis`'s JSON-Schema
339
- * via the `definition` "RunnableStrategyIdentity".
340
- */
341
- export type RunnableStrategyIdentityJson =
342
- `RUNNABLE_STRATEGY-${string}`;
343
- /**
344
- * This interface was referenced by `Genesis`'s JSON-Schema
345
- * via the `definition` "RunnableStrategyStatus".
346
- */
347
- export type RunnableStrategyStatusJson =
348
- "pending" | "running" | "completed" | "failed" | "cancelled";
349
- /**
350
- * This interface was referenced by `Genesis`'s JSON-Schema
351
- * via the `definition` "StrategyThreadIdentity".
352
- */
353
- export type StrategyThreadIdentityJson =
354
- `STRATEGY_THREAD-${string}`;
355
- /**
356
- * This interface was referenced by `Genesis`'s JSON-Schema
357
- * via the `definition` "RunnableStrategy".
358
- */
359
- export type RunnableStrategyJson =
360
- {
361
- identity: RunnableStrategyIdentityJson;
362
- runnableStrategyContext: RunnableStrategyContextJson;
363
- } & StrategyThreadDictFacet1Json &
364
- StrategyStateFacet1Json;
365
- /**
366
- * This interface was referenced by `Genesis`'s JSON-Schema
367
- * via the `definition` "RunnableStrategyUpdate".
368
- */
369
- export type RunnableStrategyUpdateJson =
370
- {
371
- runnableStrategyHandle: RunnableStrategyIdentityJson;
372
- } & StrategyStateDeltaJson;
373
- /**
374
- * This interface was referenced by `Genesis`'s JSON-Schema
375
- * via the `definition` "RunEventUpdates".
376
- */
377
- export type RunEventUpdatesJson =
378
- {
379
- stepsMutation?: {
380
- insertAt: number;
381
- inserted: StepArrayJson;
382
- };
383
- interruptData?: {
384
- } | null;
385
- } & StrategyStateDeltaJson;
386
- /**
387
- * This interface was referenced by `Genesis`'s JSON-Schema
388
- * via the `definition` "RunEventKind".
389
- */
390
- export type RunEventKindJson =
391
- "graph_start" | "tick" | "interrupt" | "graph_end";
392
- /**
393
- * This interface was referenced by `Genesis`'s JSON-Schema
394
- * via the `definition` "GraphStartRunEvent".
395
- */
396
- export type GraphStartRunEventJson =
397
- RunEventBaseJson & {
398
- runEventKind?: "graph_start";
399
- runnableStrategySeed: RunnableStrategyJson;
400
- };
401
- /**
402
- * This interface was referenced by `Genesis`'s JSON-Schema
403
- * via the `definition` "TickRunEvent".
404
- */
405
- export type TickRunEventJson =
406
- RunEventBaseJson & {
407
- runEventKind?: "tick";
408
- };
409
- /**
410
- * This interface was referenced by `Genesis`'s JSON-Schema
411
- * via the `definition` "InterruptRunEvent".
412
- */
413
- export type InterruptRunEventJson =
414
- RunEventBaseJson & {
415
- runEventKind?: "interrupt";
416
- };
417
- /**
418
- * This interface was referenced by `Genesis`'s JSON-Schema
419
- * via the `definition` "GraphEndRunEvent".
420
- */
421
- export type GraphEndRunEventJson =
422
- RunEventBaseJson & {
423
- runEventKind?: "graph_end";
424
- };
425
- /**
426
- * This interface was referenced by `Genesis`'s JSON-Schema
427
- * via the `definition` "RunEvent".
428
- */
429
- export type RunEventJson =
430
- GraphStartRunEventJson | TickRunEventJson | InterruptRunEventJson | GraphEndRunEventJson;
431
- /**
432
- * This interface was referenced by `Genesis`'s JSON-Schema
433
- * via the `definition` "StrategyRunIdentity".
434
- */
435
- export type StrategyRunIdentityJson =
436
- `STRATEGY_RUN-${string}`;
437
- /**
438
- * This interface was referenced by `Genesis`'s JSON-Schema
439
- * via the `definition` "GoalIdentity".
440
- */
441
- export type GoalIdentityJson =
442
- `GOAL-${string}`;
443
- /**
444
- * This interface was referenced by `Genesis`'s JSON-Schema
445
- * via the `definition` "NaturalIdentity".
446
- */
447
- export type NaturalIdentityJson =
448
- number;
449
- /**
450
- * This interface was referenced by `Genesis`'s JSON-Schema
451
- * via the `definition` "BooleanIdentity".
452
- */
453
- export type BooleanIdentityJson =
454
- boolean;
455
-
456
- /**
457
- * This interface was referenced by `Genesis`'s JSON-Schema
458
- * via the `definition` "NameFacet".
459
- */
460
- export interface NameFacetJson {
461
- name: NameJson;
462
- }
463
- /**
464
- * This interface was referenced by `Genesis`'s JSON-Schema
465
- * via the `definition` "DescriptionFacet".
466
- */
467
- export interface DescriptionFacetJson {
468
- description: DescriptionJson;
469
- }
470
- /**
471
- * This interface was referenced by `Genesis`'s JSON-Schema
472
- * via the `definition` "RoleDict".
473
- */
474
- export type RoleDictJson = Record<ResourceRoleIdentityJson, ResourceRoleValueJson>;
475
- /**
476
- * This interface was referenced by `Genesis`'s JSON-Schema
477
- * via the `definition` "Roles".
478
- */
479
- export interface RolesJson {
480
- inputDict: RoleDictJson;
481
- outputDict: RoleDictJson & {
482
- "ROLE-ErrorOutput": ResourceRoleValueJson & {
483
- resourceTypeHandle: "TYPE-Error";
484
- name: "ErrorOutput";
485
- description: "Represents error outputs from job runs.";
486
- };
487
- };
488
- }
489
- /**
490
- * This interface was referenced by `Genesis`'s JSON-Schema
491
- * via the `definition` "RolesFacet".
492
- */
493
- export interface RolesFacetJson {
494
- roles: RolesJson;
495
- }
496
- /**
497
- * This interface was referenced by `Genesis`'s JSON-Schema
498
- * via the `definition` "RoleBindings".
499
- */
500
- export interface RoleBindingsJson {
501
- inputBindings: RoleBindingArrayJson;
502
- outputBindings: RoleBindingArrayJson;
503
- }
504
- /**
505
- * This interface was referenced by `Genesis`'s JSON-Schema
506
- * via the `definition` "RoleBindingsFacet".
507
- */
508
- export interface RoleBindingsFacetJson {
509
- roleBindings: RoleBindingsJson;
510
- }
511
- /**
512
- * This interface was referenced by `Genesis`'s JSON-Schema
513
- * via the `definition` "StepKindFacet".
514
- */
515
- export interface StepKindFacetJson {
516
- stepKind: StepKindJson;
517
- }
518
- export interface RoleBindingsFacet1Json {
519
- roleBindings: RoleBindingsJson;
520
- }
521
- /**
522
- * This interface was referenced by `Genesis`'s JSON-Schema
523
- * via the `definition` "Conditional".
524
- */
525
- export interface ConditionalJson {
526
- when: JobStepJson;
527
- what: JobStepJson;
528
- }
529
- /**
530
- * This interface was referenced by `Genesis`'s JSON-Schema
531
- * via the `definition` "CreationContext".
532
- */
533
- export interface CreationContextJson {
534
- resourceRoleHandle: ResourceRoleIdentityJson;
535
- jobStepHandle: JobStepIdentityJson;
536
- }
537
- /**
538
- * This interface was referenced by `Genesis`'s JSON-Schema
539
- * via the `definition` "CreationContextFacet".
540
- */
541
- export interface CreationContextFacetJson {
542
- creationContext: CreationContextJson;
543
- }
544
- /**
545
- * This interface was referenced by `Genesis`'s JSON-Schema
546
- * via the `definition` "ResourceShellBase".
547
- */
548
- export interface ResourceShellBaseJson {
549
- identity: ResourceIdentityJson;
550
- resourceTypeHandle: ResourceTypeIdentityJson;
551
- resourceShellKind: ResourceShellKindJson;
552
- }
553
- /**
554
- * This interface was referenced by `Genesis`'s JSON-Schema
555
- * via the `definition` "ResourceShellKindFacet".
556
- */
557
- export interface ResourceShellKindFacetJson {
558
- resourceShellKind: ResourceShellKindJson;
559
- }
560
- /**
561
- * This interface was referenced by `Genesis`'s JSON-Schema
562
- * via the `definition` "TimestampFacet".
563
- */
564
- export interface TimestampFacetJson {
565
- timestamp: TimestampJson;
566
- }
567
- /**
568
- * This interface was referenced by `Genesis`'s JSON-Schema
569
- * via the `definition` "PathFacet".
570
- */
571
- export interface PathFacetJson {
572
- path: PathJson;
573
- }
574
- /**
575
- * This interface was referenced by `Genesis`'s JSON-Schema
576
- * via the `definition` "Nucleus".
577
- */
578
- export interface NucleusJson {
579
- [k: string]: JsonDataJson;
580
- }
581
- /**
582
- * This interface was referenced by `Genesis`'s JSON-Schema
583
- * via the `definition` "NucleusFacet".
584
- */
585
- export interface NucleusFacetJson {
586
- nucleus: unknown;
587
- }
588
- export interface NucleusFacet1Json {
589
- nucleus: unknown;
590
- }
591
- /**
592
- * This interface was referenced by `Genesis`'s JSON-Schema
593
- * via the `definition` "JobStepSocket".
594
- */
595
- export type JobStepSocketJson = Record<ResourceRoleIdentityJson, ResourceJson | ResourcePotentialJson>;
596
- /**
597
- * This interface was referenced by `Genesis`'s JSON-Schema
598
- * via the `definition` "StrategyState".
599
- */
600
- export type StrategyStateJson = Record<JobStepIdentityJson, JobStepSocketJson>;
601
- /**
602
- * This interface was referenced by `Genesis`'s JSON-Schema
603
- * via the `definition` "StrategyStateFacet".
604
- */
605
- export interface StrategyStateFacetJson {
606
- strategyState: StrategyStateJson;
607
- }
608
- /**
609
- * This interface was referenced by `Genesis`'s JSON-Schema
610
- * via the `definition` "StepsFacet".
611
- */
612
- export interface StepsFacetJson {
613
- steps: StepArrayJson;
614
- }
615
- /**
616
- * This interface was referenced by `Genesis`'s JSON-Schema
617
- * via the `definition` "RunnableStrategyContext".
618
- */
619
- export interface RunnableStrategyContextJson {
620
- status: RunnableStrategyStatusJson;
621
- startedAt?: TimestampJson;
622
- completedAt?: TimestampJson;
623
- }
624
- /**
625
- * This interface was referenced by `Genesis`'s JSON-Schema
626
- * via the `definition` "StrategyThreadDict".
627
- */
628
- export type StrategyThreadDictJson = Record<StrategyThreadIdentityJson, StepArrayJson>;
629
- /**
630
- * This interface was referenced by `Genesis`'s JSON-Schema
631
- * via the `definition` "StrategyThreadDictFacet".
632
- */
633
- export interface StrategyThreadDictFacetJson {
634
- strategyThreadDict: StrategyThreadDictJson;
635
- }
636
- export interface StrategyThreadDictFacet1Json {
637
- strategyThreadDict: StrategyThreadDictJson;
638
- }
639
- export interface StrategyStateFacet1Json {
640
- strategyState: StrategyStateJson;
641
- }
642
- /**
643
- * This interface was referenced by `Genesis`'s JSON-Schema
644
- * via the `definition` "StrategyStateDelta".
645
- */
646
- export interface StrategyStateDeltaJson {
647
- strategyStateUpdate: StrategyStateJson;
648
- }
649
- /**
650
- * This interface was referenced by `Genesis`'s JSON-Schema
651
- * via the `definition` "RunEventCounters".
652
- */
653
- export interface RunEventCountersJson {
654
- stepCounterAfter?: number;
655
- iterationCounterAfter?: number;
656
- }
657
- /**
658
- * This interface was referenced by `Genesis`'s JSON-Schema
659
- * via the `definition` "RunEventStepMetadata".
660
- */
661
- export interface RunEventStepMetadataJson {
662
- stepHandle: StepIdentityJson;
663
- stepKind: StepKindJson;
664
- threadStepIndex: number;
665
- }
666
- /**
667
- * This interface was referenced by `Genesis`'s JSON-Schema
668
- * via the `definition` "RunEventBase".
669
- */
670
- export interface RunEventBaseJson {
671
- runEventKind: RunEventKindJson;
672
- runnableStrategyHandle: RunnableStrategyIdentityJson;
673
- strategyThreadHandle: StrategyThreadIdentityJson;
674
- createdAt: TimestampJson;
675
- nodeName: string;
676
- eventSeq: number;
677
- counters?: RunEventCountersJson;
678
- stepMetadata?: RunEventStepMetadataJson;
679
- updates?: RunEventUpdatesJson;
680
- }
681
- /**
682
- * This interface was referenced by `Genesis`'s JSON-Schema
683
- * via the `definition` "StrategyRun".
684
- */
685
- export interface StrategyRunJson {
686
- identity: StrategyRunIdentityJson;
687
- runnableStrategyHandle: string;
688
- recordedAt: TimestampJson;
689
- runEvents: RunEventJson[];
690
- }
691
- /**
692
- * This interface was referenced by `Genesis`'s JSON-Schema
693
- * via the `definition` "Goal".
694
- */
695
- export interface GoalJson {
696
- identity: GoalIdentityJson;
697
- target: number;
698
- disallowedJobs?: JobIdentityJson[];
699
- disallowedSequences?: JobIdentityJson[][];
700
- minSteps?: number;
701
- maxSteps?: number;
702
- }
703
- /**
704
- * This interface was referenced by `Genesis`'s JSON-Schema
705
- * via the `definition` "Natural".
706
- */
707
- export interface NaturalJson {
708
- identity: NaturalIdentityJson;
709
- }
710
- /**
711
- * This interface was referenced by `Genesis`'s JSON-Schema
712
- * via the `definition` "Boolean".
713
- */
714
- export interface BooleanJson {
715
- identity: BooleanIdentityJson;
716
- }
717
-
1
+ // Auto-generated from JSON schemas. Do not edit.
2
+
3
+ /**
4
+ * This interface was referenced by `Genesis`'s JSON-Schema
5
+ * via the `definition` "Name".
6
+ */
7
+ export type NameJson =
8
+ string;
9
+ /**
10
+ * This interface was referenced by `Genesis`'s JSON-Schema
11
+ * via the `definition` "Description".
12
+ */
13
+ export type DescriptionJson =
14
+ string;
15
+ /**
16
+ * This interface was referenced by `Genesis`'s JSON-Schema
17
+ * via the `definition` "DocumentationFacet".
18
+ */
19
+ export type DocumentationFacetJson =
20
+ NameFacetJson & DescriptionFacetJson;
21
+ /**
22
+ * This interface was referenced by `Genesis`'s JSON-Schema
23
+ * via the `definition` "Uri".
24
+ */
25
+ export type UriJson =
26
+ string;
27
+ /**
28
+ * This interface was referenced by `Genesis`'s JSON-Schema
29
+ * via the `definition` "ResourceTypeIdentity".
30
+ */
31
+ export type ResourceTypeIdentityJson =
32
+ `TYPE-${string}`;
33
+ /**
34
+ * This interface was referenced by `Genesis`'s JSON-Schema
35
+ * via the `definition` "ResourceType".
36
+ */
37
+ export type ResourceTypeJson =
38
+ {
39
+ identity: ResourceTypeIdentityJson;
40
+ nucleusSchema: unknown;
41
+ embeddingUriDict?: {
42
+ [k: string]: UriJson;
43
+ };
44
+ generatorUriDict?: {
45
+ [k: string]: UriJson;
46
+ };
47
+ } & DocumentationFacetJson;
48
+ /**
49
+ * This interface was referenced by `Genesis`'s JSON-Schema
50
+ * via the `definition` "ResourceRoleIdentity".
51
+ */
52
+ export type ResourceRoleIdentityJson =
53
+ `ROLE-${string}`;
54
+ /**
55
+ * This interface was referenced by `Genesis`'s JSON-Schema
56
+ * via the `definition` "ResourceRoleValue".
57
+ */
58
+ export type ResourceRoleValueJson =
59
+ {
60
+ resourceTypeHandle: ResourceTypeIdentityJson;
61
+ } & DocumentationFacetJson;
62
+ /**
63
+ * This interface was referenced by `Genesis`'s JSON-Schema
64
+ * via the `definition` "ResourceRole".
65
+ */
66
+ export type ResourceRoleJson =
67
+ {
68
+ identity: ResourceRoleIdentityJson;
69
+ } & ResourceRoleValueJson;
70
+ /**
71
+ * This interface was referenced by `Genesis`'s JSON-Schema
72
+ * via the `definition` "Error".
73
+ */
74
+ export type ErrorJson =
75
+ {
76
+ } & DocumentationFacetJson & {
77
+ details?: {
78
+ };
79
+ };
80
+ /**
81
+ * This interface was referenced by `Genesis`'s JSON-Schema
82
+ * via the `definition` "JobIdentity".
83
+ */
84
+ export type JobIdentityJson =
85
+ `JOB-${string}`;
86
+ /**
87
+ * This interface was referenced by `Genesis`'s JSON-Schema
88
+ * via the `definition` "Job".
89
+ */
90
+ export type JobJson =
91
+ {
92
+ identity: JobIdentityJson;
93
+ implementationUri: string;
94
+ } & DocumentationFacetJson &
95
+ RolesFacetJson;
96
+ /**
97
+ * This interface was referenced by `Genesis`'s JSON-Schema
98
+ * via the `definition` "RoleBindingArray".
99
+ */
100
+ export type RoleBindingArrayJson =
101
+ ResourceRoleIdentityJson[];
102
+ /**
103
+ * This interface was referenced by `Genesis`'s JSON-Schema
104
+ * via the `definition` "StepKind".
105
+ */
106
+ export type StepKindJson =
107
+ "job" | "branch" | "while" | "for";
108
+ /**
109
+ * This interface was referenced by `Genesis`'s JSON-Schema
110
+ * via the `definition` "JobStepIdentity".
111
+ */
112
+ export type JobStepIdentityJson =
113
+ `JOB_STEP-${string}`;
114
+ /**
115
+ * This interface was referenced by `Genesis`'s JSON-Schema
116
+ * via the `definition` "JobStep".
117
+ */
118
+ export type JobStepJson =
119
+ {
120
+ identity: JobStepIdentityJson;
121
+ stepKind: "job";
122
+ jobHandle: JobIdentityJson;
123
+ } & StepKindFacetJson &
124
+ RoleBindingsFacet1Json;
125
+ /**
126
+ * This interface was referenced by `Genesis`'s JSON-Schema
127
+ * via the `definition` "BranchStepIdentity".
128
+ */
129
+ export type BranchStepIdentityJson =
130
+ `BRANCH_STEP-${string}`;
131
+ /**
132
+ * This interface was referenced by `Genesis`'s JSON-Schema
133
+ * via the `definition` "BranchStep".
134
+ */
135
+ export type BranchStepJson =
136
+ {
137
+ identity: BranchStepIdentityJson;
138
+ stepKind: "branch";
139
+ /**
140
+ * @minItems 1
141
+ */
142
+ cases: [ConditionalJson, ...ConditionalJson[]];
143
+ } & StepKindFacetJson;
144
+ /**
145
+ * This interface was referenced by `Genesis`'s JSON-Schema
146
+ * via the `definition` "WhileStepIdentity".
147
+ */
148
+ export type WhileStepIdentityJson =
149
+ `WHILE_STEP-${string}`;
150
+ /**
151
+ * This interface was referenced by `Genesis`'s JSON-Schema
152
+ * via the `definition` "WhileStep".
153
+ */
154
+ export type WhileStepJson =
155
+ {
156
+ identity: WhileStepIdentityJson;
157
+ stepKind: "while";
158
+ case: ConditionalJson;
159
+ } & StepKindFacetJson;
160
+ /**
161
+ * This interface was referenced by `Genesis`'s JSON-Schema
162
+ * via the `definition` "ForStepIdentity".
163
+ */
164
+ export type ForStepIdentityJson =
165
+ `FOR_STEP-${string}`;
166
+ /**
167
+ * This interface was referenced by `Genesis`'s JSON-Schema
168
+ * via the `definition` "ForStep".
169
+ */
170
+ export type ForStepJson =
171
+ {
172
+ identity: ForStepIdentityJson;
173
+ stepKind: "for";
174
+ case: ConditionalJson;
175
+ } & StepKindFacetJson;
176
+ /**
177
+ * This interface was referenced by `Genesis`'s JSON-Schema
178
+ * via the `definition` "StepIdentity".
179
+ */
180
+ export type StepIdentityJson =
181
+ JobStepIdentityJson | BranchStepIdentityJson | WhileStepIdentityJson | ForStepIdentityJson;
182
+ /**
183
+ * This interface was referenced by `Genesis`'s JSON-Schema
184
+ * via the `definition` "Step".
185
+ */
186
+ export type StepJson =
187
+ JobStepJson | BranchStepJson | WhileStepJson | ForStepJson;
188
+ /**
189
+ * This interface was referenced by `Genesis`'s JSON-Schema
190
+ * via the `definition` "ResourceIdentity".
191
+ */
192
+ export type ResourceIdentityJson =
193
+ `RESOURCE-${string}`;
194
+ /**
195
+ * This interface was referenced by `Genesis`'s JSON-Schema
196
+ * via the `definition` "ResourceShellKind".
197
+ */
198
+ export type ResourceShellKindJson =
199
+ "missing" | "inputPotential" | "outputPotential" | "materialized";
200
+ /**
201
+ * This interface was referenced by `Genesis`'s JSON-Schema
202
+ * via the `definition` "ShellMissing".
203
+ */
204
+ export type ShellMissingJson =
205
+ {
206
+ resourceShellKind: "missing";
207
+ } & ResourceShellBaseJson &
208
+ ResourceShellKindFacetJson;
209
+ /**
210
+ * This interface was referenced by `Genesis`'s JSON-Schema
211
+ * via the `definition` "ShellInputPotential".
212
+ */
213
+ export type ShellInputPotentialJson =
214
+ {
215
+ resourceShellKind: "inputPotential";
216
+ } & ResourceShellBaseJson &
217
+ CreationContextFacetJson &
218
+ ResourceShellKindFacetJson;
219
+ /**
220
+ * This interface was referenced by `Genesis`'s JSON-Schema
221
+ * via the `definition` "ShellOutputPotential".
222
+ */
223
+ export type ShellOutputPotentialJson =
224
+ {
225
+ resourceShellKind: "outputPotential";
226
+ } & ResourceShellBaseJson &
227
+ CreationContextFacetJson &
228
+ ResourceShellKindFacetJson;
229
+ /**
230
+ * This interface was referenced by `Genesis`'s JSON-Schema
231
+ * via the `definition` "Timestamp".
232
+ */
233
+ export type TimestampJson =
234
+ string;
235
+ /**
236
+ * This interface was referenced by `Genesis`'s JSON-Schema
237
+ * via the `definition` "Path".
238
+ */
239
+ export type PathJson =
240
+ string;
241
+ /**
242
+ * This interface was referenced by `Genesis`'s JSON-Schema
243
+ * via the `definition` "ShellMaterializedBase".
244
+ */
245
+ export type ShellMaterializedBaseJson =
246
+ {
247
+ version: 1;
248
+ resourceShellKind: "materialized";
249
+ } & ResourceShellBaseJson &
250
+ CreationContextFacetJson &
251
+ ResourceShellKindFacetJson &
252
+ TimestampFacetJson &
253
+ PathFacetJson;
254
+ /**
255
+ * This interface was referenced by `Genesis`'s JSON-Schema
256
+ * via the `definition` "ShellMaterialized".
257
+ */
258
+ export type ShellMaterializedBase1Json =
259
+ {
260
+ version: 1;
261
+ resourceShellKind: "materialized";
262
+ } & ResourceShellBaseJson &
263
+ CreationContextFacetJson &
264
+ ResourceShellKindFacetJson &
265
+ TimestampFacetJson &
266
+ PathFacetJson;
267
+ /**
268
+ * This interface was referenced by `Genesis`'s JSON-Schema
269
+ * via the `definition` "ResourceMissing".
270
+ */
271
+ export type ResourceMissingJson =
272
+ {
273
+ resourceShellKind: "missing";
274
+ } & ResourceShellBaseJson &
275
+ ResourceShellKindFacetJson;
276
+ /**
277
+ * This interface was referenced by `Genesis`'s JSON-Schema
278
+ * via the `definition` "ResourceInputPotential".
279
+ */
280
+ export type ResourceInputPotentialJson =
281
+ {
282
+ resourceShellKind: "inputPotential";
283
+ } & ResourceShellBaseJson &
284
+ CreationContextFacetJson &
285
+ ResourceShellKindFacetJson;
286
+ /**
287
+ * This interface was referenced by `Genesis`'s JSON-Schema
288
+ * via the `definition` "ResourceOutputPotential".
289
+ */
290
+ export type ResourceOutputPotentialJson =
291
+ {
292
+ resourceShellKind: "outputPotential";
293
+ } & ResourceShellBaseJson &
294
+ CreationContextFacetJson &
295
+ ResourceShellKindFacetJson;
296
+ /**
297
+ * This interface was referenced by `Genesis`'s JSON-Schema
298
+ * via the `definition` "ResourcePotential".
299
+ */
300
+ export type ResourcePotentialJson =
301
+ ResourceMissingJson | ResourceInputPotentialJson | ResourceOutputPotentialJson;
302
+ /**
303
+ * This interface was referenced by `Genesis`'s JSON-Schema
304
+ * via the `definition` "JsonData".
305
+ */
306
+ export type JsonDataJson =
307
+ | null
308
+ | boolean
309
+ | number
310
+ | string
311
+ | JsonDataJson[]
312
+ | {
313
+ [k: string]: JsonDataJson;
314
+ };
315
+ /**
316
+ * This interface was referenced by `Genesis`'s JSON-Schema
317
+ * via the `definition` "Resource".
318
+ */
319
+ export type ResourceJson =
320
+ {
321
+ } & ShellMaterializedBaseJson &
322
+ NucleusFacet1Json;
323
+ /**
324
+ * This interface was referenced by `Genesis`'s JSON-Schema
325
+ * via the `definition` "StepArray".
326
+ */
327
+ export type StepArrayJson =
328
+ StepJson[];
329
+ /**
330
+ * This interface was referenced by `Genesis`'s JSON-Schema
331
+ * via the `definition` "RawStrategy".
332
+ */
333
+ export type RawStrategyJson =
334
+ {
335
+ } & StepsFacetJson &
336
+ StrategyStateFacetJson;
337
+ /**
338
+ * This interface was referenced by `Genesis`'s JSON-Schema
339
+ * via the `definition` "RunnableStrategyIdentity".
340
+ */
341
+ export type RunnableStrategyIdentityJson =
342
+ `RUNNABLE_STRATEGY-${string}`;
343
+ /**
344
+ * This interface was referenced by `Genesis`'s JSON-Schema
345
+ * via the `definition` "RunnableStrategyStatus".
346
+ */
347
+ export type RunnableStrategyStatusJson =
348
+ "pending" | "running" | "completed" | "failed" | "cancelled";
349
+ /**
350
+ * This interface was referenced by `Genesis`'s JSON-Schema
351
+ * via the `definition` "StrategyThreadIdentity".
352
+ */
353
+ export type StrategyThreadIdentityJson =
354
+ `STRATEGY_THREAD-${string}`;
355
+ /**
356
+ * This interface was referenced by `Genesis`'s JSON-Schema
357
+ * via the `definition` "RunnableStrategy".
358
+ */
359
+ export type RunnableStrategyJson =
360
+ {
361
+ identity: RunnableStrategyIdentityJson;
362
+ runnableStrategyContext: RunnableStrategyContextJson;
363
+ } & StrategyThreadDictFacet1Json &
364
+ StrategyStateFacet1Json;
365
+ /**
366
+ * This interface was referenced by `Genesis`'s JSON-Schema
367
+ * via the `definition` "RunnableStrategyUpdate".
368
+ */
369
+ export type RunnableStrategyUpdateJson =
370
+ {
371
+ runnableStrategyHandle: RunnableStrategyIdentityJson;
372
+ } & StrategyStateDeltaJson;
373
+ /**
374
+ * This interface was referenced by `Genesis`'s JSON-Schema
375
+ * via the `definition` "RunEventUpdates".
376
+ */
377
+ export type RunEventUpdatesJson =
378
+ {
379
+ stepsMutation?: {
380
+ insertAt: number;
381
+ inserted: StepArrayJson;
382
+ };
383
+ interruptData?: {
384
+ } | null;
385
+ } & StrategyStateDeltaJson;
386
+ /**
387
+ * This interface was referenced by `Genesis`'s JSON-Schema
388
+ * via the `definition` "RunEventKind".
389
+ */
390
+ export type RunEventKindJson =
391
+ "graph_start" | "tick" | "interrupt" | "graph_end";
392
+ /**
393
+ * This interface was referenced by `Genesis`'s JSON-Schema
394
+ * via the `definition` "GraphStartRunEvent".
395
+ */
396
+ export type GraphStartRunEventJson =
397
+ RunEventBaseJson & {
398
+ runEventKind?: "graph_start";
399
+ runnableStrategySeed: RunnableStrategyJson;
400
+ };
401
+ /**
402
+ * This interface was referenced by `Genesis`'s JSON-Schema
403
+ * via the `definition` "TickRunEvent".
404
+ */
405
+ export type TickRunEventJson =
406
+ RunEventBaseJson & {
407
+ runEventKind?: "tick";
408
+ };
409
+ /**
410
+ * This interface was referenced by `Genesis`'s JSON-Schema
411
+ * via the `definition` "InterruptRunEvent".
412
+ */
413
+ export type InterruptRunEventJson =
414
+ RunEventBaseJson & {
415
+ runEventKind?: "interrupt";
416
+ };
417
+ /**
418
+ * This interface was referenced by `Genesis`'s JSON-Schema
419
+ * via the `definition` "GraphEndRunEvent".
420
+ */
421
+ export type GraphEndRunEventJson =
422
+ RunEventBaseJson & {
423
+ runEventKind?: "graph_end";
424
+ };
425
+ /**
426
+ * This interface was referenced by `Genesis`'s JSON-Schema
427
+ * via the `definition` "RunEvent".
428
+ */
429
+ export type RunEventJson =
430
+ GraphStartRunEventJson | TickRunEventJson | InterruptRunEventJson | GraphEndRunEventJson;
431
+ /**
432
+ * This interface was referenced by `Genesis`'s JSON-Schema
433
+ * via the `definition` "StrategyRunIdentity".
434
+ */
435
+ export type StrategyRunIdentityJson =
436
+ `STRATEGY_RUN-${string}`;
437
+ /**
438
+ * This interface was referenced by `Genesis`'s JSON-Schema
439
+ * via the `definition` "GoalIdentity".
440
+ */
441
+ export type GoalIdentityJson =
442
+ `GOAL-${string}`;
443
+ /**
444
+ * This interface was referenced by `Genesis`'s JSON-Schema
445
+ * via the `definition` "NaturalIdentity".
446
+ */
447
+ export type NaturalIdentityJson =
448
+ number;
449
+ /**
450
+ * This interface was referenced by `Genesis`'s JSON-Schema
451
+ * via the `definition` "BooleanIdentity".
452
+ */
453
+ export type BooleanIdentityJson =
454
+ boolean;
455
+
456
+ /**
457
+ * This interface was referenced by `Genesis`'s JSON-Schema
458
+ * via the `definition` "NameFacet".
459
+ */
460
+ export interface NameFacetJson {
461
+ name: NameJson;
462
+ }
463
+ /**
464
+ * This interface was referenced by `Genesis`'s JSON-Schema
465
+ * via the `definition` "DescriptionFacet".
466
+ */
467
+ export interface DescriptionFacetJson {
468
+ description: DescriptionJson;
469
+ }
470
+ /**
471
+ * This interface was referenced by `Genesis`'s JSON-Schema
472
+ * via the `definition` "RoleDict".
473
+ */
474
+ export type RoleDictJson = Record<ResourceRoleIdentityJson, ResourceRoleValueJson>;
475
+ /**
476
+ * This interface was referenced by `Genesis`'s JSON-Schema
477
+ * via the `definition` "Roles".
478
+ */
479
+ export interface RolesJson {
480
+ inputDict: RoleDictJson;
481
+ outputDict: RoleDictJson & {
482
+ "ROLE-ErrorOutput": ResourceRoleValueJson & {
483
+ resourceTypeHandle: "TYPE-Error";
484
+ name: "ErrorOutput";
485
+ description: "Represents error outputs from job runs.";
486
+ };
487
+ };
488
+ }
489
+ /**
490
+ * This interface was referenced by `Genesis`'s JSON-Schema
491
+ * via the `definition` "RolesFacet".
492
+ */
493
+ export interface RolesFacetJson {
494
+ roles: RolesJson;
495
+ }
496
+ /**
497
+ * This interface was referenced by `Genesis`'s JSON-Schema
498
+ * via the `definition` "RoleBindings".
499
+ */
500
+ export interface RoleBindingsJson {
501
+ inputBindings: RoleBindingArrayJson;
502
+ outputBindings: RoleBindingArrayJson;
503
+ }
504
+ /**
505
+ * This interface was referenced by `Genesis`'s JSON-Schema
506
+ * via the `definition` "RoleBindingsFacet".
507
+ */
508
+ export interface RoleBindingsFacetJson {
509
+ roleBindings: RoleBindingsJson;
510
+ }
511
+ /**
512
+ * This interface was referenced by `Genesis`'s JSON-Schema
513
+ * via the `definition` "StepKindFacet".
514
+ */
515
+ export interface StepKindFacetJson {
516
+ stepKind: StepKindJson;
517
+ }
518
+ export interface RoleBindingsFacet1Json {
519
+ roleBindings: RoleBindingsJson;
520
+ }
521
+ /**
522
+ * This interface was referenced by `Genesis`'s JSON-Schema
523
+ * via the `definition` "Conditional".
524
+ */
525
+ export interface ConditionalJson {
526
+ when: JobStepJson;
527
+ what: JobStepJson;
528
+ }
529
+ /**
530
+ * This interface was referenced by `Genesis`'s JSON-Schema
531
+ * via the `definition` "CreationContext".
532
+ */
533
+ export interface CreationContextJson {
534
+ resourceRoleHandle: ResourceRoleIdentityJson;
535
+ jobStepHandle: JobStepIdentityJson;
536
+ }
537
+ /**
538
+ * This interface was referenced by `Genesis`'s JSON-Schema
539
+ * via the `definition` "CreationContextFacet".
540
+ */
541
+ export interface CreationContextFacetJson {
542
+ creationContext: CreationContextJson;
543
+ }
544
+ /**
545
+ * This interface was referenced by `Genesis`'s JSON-Schema
546
+ * via the `definition` "ResourceShellBase".
547
+ */
548
+ export interface ResourceShellBaseJson {
549
+ identity: ResourceIdentityJson;
550
+ resourceTypeHandle: ResourceTypeIdentityJson;
551
+ resourceShellKind: ResourceShellKindJson;
552
+ }
553
+ /**
554
+ * This interface was referenced by `Genesis`'s JSON-Schema
555
+ * via the `definition` "ResourceShellKindFacet".
556
+ */
557
+ export interface ResourceShellKindFacetJson {
558
+ resourceShellKind: ResourceShellKindJson;
559
+ }
560
+ /**
561
+ * This interface was referenced by `Genesis`'s JSON-Schema
562
+ * via the `definition` "TimestampFacet".
563
+ */
564
+ export interface TimestampFacetJson {
565
+ timestamp: TimestampJson;
566
+ }
567
+ /**
568
+ * This interface was referenced by `Genesis`'s JSON-Schema
569
+ * via the `definition` "PathFacet".
570
+ */
571
+ export interface PathFacetJson {
572
+ path: PathJson;
573
+ }
574
+ /**
575
+ * This interface was referenced by `Genesis`'s JSON-Schema
576
+ * via the `definition` "Nucleus".
577
+ */
578
+ export interface NucleusJson {
579
+ [k: string]: JsonDataJson;
580
+ }
581
+ /**
582
+ * This interface was referenced by `Genesis`'s JSON-Schema
583
+ * via the `definition` "NucleusFacet".
584
+ */
585
+ export interface NucleusFacetJson {
586
+ nucleus: unknown;
587
+ }
588
+ export interface NucleusFacet1Json {
589
+ nucleus: unknown;
590
+ }
591
+ /**
592
+ * This interface was referenced by `Genesis`'s JSON-Schema
593
+ * via the `definition` "JobStepSocket".
594
+ */
595
+ export type JobStepSocketJson = Record<ResourceRoleIdentityJson, ResourceJson | ResourcePotentialJson>;
596
+ /**
597
+ * This interface was referenced by `Genesis`'s JSON-Schema
598
+ * via the `definition` "StrategyState".
599
+ */
600
+ export type StrategyStateJson = Record<JobStepIdentityJson, JobStepSocketJson>;
601
+ /**
602
+ * This interface was referenced by `Genesis`'s JSON-Schema
603
+ * via the `definition` "StrategyStateFacet".
604
+ */
605
+ export interface StrategyStateFacetJson {
606
+ strategyState: StrategyStateJson;
607
+ }
608
+ /**
609
+ * This interface was referenced by `Genesis`'s JSON-Schema
610
+ * via the `definition` "StepsFacet".
611
+ */
612
+ export interface StepsFacetJson {
613
+ steps: StepArrayJson;
614
+ }
615
+ /**
616
+ * This interface was referenced by `Genesis`'s JSON-Schema
617
+ * via the `definition` "RunnableStrategyContext".
618
+ */
619
+ export interface RunnableStrategyContextJson {
620
+ status: RunnableStrategyStatusJson;
621
+ startedAt?: TimestampJson;
622
+ completedAt?: TimestampJson;
623
+ }
624
+ /**
625
+ * This interface was referenced by `Genesis`'s JSON-Schema
626
+ * via the `definition` "StrategyThreadDict".
627
+ */
628
+ export type StrategyThreadDictJson = Record<StrategyThreadIdentityJson, StepArrayJson>;
629
+ /**
630
+ * This interface was referenced by `Genesis`'s JSON-Schema
631
+ * via the `definition` "StrategyThreadDictFacet".
632
+ */
633
+ export interface StrategyThreadDictFacetJson {
634
+ strategyThreadDict: StrategyThreadDictJson;
635
+ }
636
+ export interface StrategyThreadDictFacet1Json {
637
+ strategyThreadDict: StrategyThreadDictJson;
638
+ }
639
+ export interface StrategyStateFacet1Json {
640
+ strategyState: StrategyStateJson;
641
+ }
642
+ /**
643
+ * This interface was referenced by `Genesis`'s JSON-Schema
644
+ * via the `definition` "StrategyStateDelta".
645
+ */
646
+ export interface StrategyStateDeltaJson {
647
+ strategyStateUpdate: StrategyStateJson;
648
+ }
649
+ /**
650
+ * This interface was referenced by `Genesis`'s JSON-Schema
651
+ * via the `definition` "RunEventCounters".
652
+ */
653
+ export interface RunEventCountersJson {
654
+ stepCounterAfter?: number;
655
+ iterationCounterAfter?: number;
656
+ }
657
+ /**
658
+ * This interface was referenced by `Genesis`'s JSON-Schema
659
+ * via the `definition` "RunEventStepMetadata".
660
+ */
661
+ export interface RunEventStepMetadataJson {
662
+ stepHandle: StepIdentityJson;
663
+ stepKind: StepKindJson;
664
+ threadStepIndex: number;
665
+ }
666
+ /**
667
+ * This interface was referenced by `Genesis`'s JSON-Schema
668
+ * via the `definition` "RunEventBase".
669
+ */
670
+ export interface RunEventBaseJson {
671
+ runEventKind: RunEventKindJson;
672
+ runnableStrategyHandle: RunnableStrategyIdentityJson;
673
+ strategyThreadHandle: StrategyThreadIdentityJson;
674
+ createdAt: TimestampJson;
675
+ nodeName: string;
676
+ eventSeq: number;
677
+ counters?: RunEventCountersJson;
678
+ stepMetadata?: RunEventStepMetadataJson;
679
+ updates?: RunEventUpdatesJson;
680
+ }
681
+ /**
682
+ * This interface was referenced by `Genesis`'s JSON-Schema
683
+ * via the `definition` "StrategyRun".
684
+ */
685
+ export interface StrategyRunJson {
686
+ identity: StrategyRunIdentityJson;
687
+ runnableStrategyHandle: string;
688
+ recordedAt: TimestampJson;
689
+ runEvents: RunEventJson[];
690
+ }
691
+ /**
692
+ * This interface was referenced by `Genesis`'s JSON-Schema
693
+ * via the `definition` "Goal".
694
+ */
695
+ export interface GoalJson {
696
+ identity: GoalIdentityJson;
697
+ target: number;
698
+ disallowedJobs?: JobIdentityJson[];
699
+ disallowedSequences?: JobIdentityJson[][];
700
+ minSteps?: number;
701
+ maxSteps?: number;
702
+ }
703
+ /**
704
+ * This interface was referenced by `Genesis`'s JSON-Schema
705
+ * via the `definition` "Natural".
706
+ */
707
+ export interface NaturalJson {
708
+ identity: NaturalIdentityJson;
709
+ }
710
+ /**
711
+ * This interface was referenced by `Genesis`'s JSON-Schema
712
+ * via the `definition` "Boolean".
713
+ */
714
+ export interface BooleanJson {
715
+ identity: BooleanIdentityJson;
716
+ }
717
+