@toolproof-core/schema 1.0.10 → 1.0.12

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