@toolproof-core/schema 1.0.9 → 1.0.11

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 (67) hide show
  1. package/dist/generated/artifacts/constants.d.ts +121 -0
  2. package/dist/generated/artifacts/constants.js +121 -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 +117 -78
  6. package/dist/generated/resources/Genesis.json +489 -264
  7. package/dist/generated/schemas/Genesis.json +94 -61
  8. package/dist/generated/schemas/standalone/Job.json +9 -8
  9. package/dist/generated/schemas/standalone/RawStrategy.json +86 -110
  10. package/dist/generated/schemas/standalone/ResourceType.json +4 -4
  11. package/dist/generated/schemas/standalone/RunnableStrategy.json +115 -139
  12. package/dist/generated/schemas/standalone/StrategyRun.json +93 -117
  13. package/dist/generated/types/standalone/Resource_Genesis.d.ts +1 -1
  14. package/dist/generated/types/standalone/Resource_Job.d.ts +1 -1
  15. package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
  16. package/dist/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
  17. package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
  18. package/dist/generated/types/types.d.ts +247 -239
  19. package/dist/index.d.ts +6 -3
  20. package/dist/index.js +5 -2
  21. package/dist/scripts/_lib/config.d.ts +3 -5
  22. package/dist/scripts/_lib/config.js +8 -14
  23. package/dist/scripts/generateConstantsAndMappings.d.ts +31 -0
  24. package/dist/scripts/generateConstantsAndMappings.js +243 -0
  25. package/dist/scripts/generateDependencies.js +1 -1
  26. package/dist/scripts/generateStandaloneType.js +2 -1
  27. package/dist/scripts/generateTerminals.js +2 -2
  28. package/dist/scripts/generateTypes.js +183 -5
  29. package/dist/scripts/wrapResourceTypesWithResourceShells.js +7 -3
  30. package/package.json +9 -10
  31. package/src/Genesis.json +1873 -1833
  32. package/src/generated/artifacts/constants.ts +122 -0
  33. package/src/generated/{dependencies → artifacts}/dependencyMap.json +282 -280
  34. package/src/generated/artifacts/mappings.ts +24 -0
  35. package/src/generated/{dependencies → artifacts}/terminals.json +13 -11
  36. package/src/generated/normalized/Genesis.json +1785 -1746
  37. package/src/generated/resources/Genesis.json +2833 -2608
  38. package/src/generated/schemas/Genesis.json +1348 -1315
  39. package/src/generated/schemas/standalone/Job.json +195 -194
  40. package/src/generated/schemas/standalone/RawStrategy.json +86 -110
  41. package/src/generated/schemas/standalone/ResourceType.json +106 -106
  42. package/src/generated/schemas/standalone/RunnableStrategy.json +645 -669
  43. package/src/generated/schemas/standalone/StrategyRun.json +913 -937
  44. package/src/generated/types/standalone/Resource_Genesis.d.ts +3 -3
  45. package/src/generated/types/standalone/Resource_Job.d.ts +3 -3
  46. package/src/generated/types/standalone/Resource_RawStrategy.d.ts +3 -3
  47. package/src/generated/types/standalone/Resource_ResourceType.d.ts +3 -3
  48. package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -3
  49. package/src/generated/types/types.d.ts +717 -709
  50. package/src/index.ts +77 -70
  51. package/src/scripts/_lib/config.ts +207 -215
  52. package/src/scripts/extractSchemasFromResourceTypeShells.ts +261 -261
  53. package/src/scripts/generateConstantsAndMappings.ts +309 -0
  54. package/src/scripts/generateDependencies.ts +121 -121
  55. package/src/scripts/generateSchemaShims.ts +127 -127
  56. package/src/scripts/generateStandaloneSchema.ts +185 -185
  57. package/src/scripts/generateStandaloneType.ts +129 -127
  58. package/src/scripts/generateTerminals.ts +73 -73
  59. package/src/scripts/generateTypes.ts +733 -531
  60. package/src/scripts/normalizeAnchorsToPointers.ts +141 -141
  61. package/src/scripts/wrapResourceTypesWithResourceShells.ts +86 -82
  62. package/dist/generated/constants/constants.d.ts +0 -60
  63. package/dist/generated/constants/constants.js +0 -60
  64. package/dist/scripts/generateConstants.d.ts +0 -12
  65. package/dist/scripts/generateConstants.js +0 -179
  66. package/src/generated/constants/constants.ts +0 -61
  67. package/src/scripts/generateConstants.ts +0 -217
@@ -1,709 +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 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 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
+