@toolproof-core/schema 1.0.9 → 1.0.10

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