@toolproof-core/schema 1.0.0 → 1.0.2

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 (83) hide show
  1. package/dist/generated/types/standalone/Resource_Genesis.d.ts +3 -0
  2. package/dist/generated/types/standalone/Resource_Job.d.ts +3 -0
  3. package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +3 -0
  4. package/dist/generated/types/standalone/Resource_ResourceType.d.ts +3 -0
  5. package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -0
  6. package/dist/generated/types/types.d.ts +487 -548
  7. package/dist/scripts/_lib/config.d.ts +12 -6
  8. package/dist/scripts/_lib/config.js +33 -15
  9. package/dist/scripts/{extractSchemas.js → extractSchemasFromResourceTypeShells.js} +14 -27
  10. package/dist/scripts/generateDependencies.js +2 -2
  11. package/dist/scripts/generateSchemaShims.js +22 -4
  12. package/dist/scripts/{extractSubSchemaWithDefs.js → generateStandaloneSchema.js} +12 -34
  13. package/dist/scripts/{generateResourceTypeType.js → generateStandaloneType.js} +23 -14
  14. package/dist/scripts/generateTypes.js +1 -1
  15. package/dist/scripts/{rewriteAnchors.js → normalizeAnchorsToPointers.js} +2 -2
  16. package/dist/scripts/{generateResourceShells.js → wrapResourceTypesWithResourceShells.js} +12 -34
  17. package/package.json +15 -14
  18. package/src/Genesis.json +1999 -2042
  19. package/src/generated/{dependencies.json → dependencyMap.json} +207 -214
  20. package/src/generated/{resourceTypes → normalized}/Genesis.json +44 -87
  21. package/src/generated/resources/Genesis.json +415 -478
  22. package/src/generated/schemas/Genesis.json +1026 -1057
  23. package/src/generated/schemas/{Goal.json → standalone/Goal.json} +34 -34
  24. package/src/generated/schemas/{Job.json → standalone/Job.json} +85 -85
  25. package/src/generated/schemas/{RawStrategy.json → standalone/RawStrategy.json} +238 -263
  26. package/src/generated/schemas/{ResourceType.json → standalone/ResourceType.json} +60 -60
  27. package/src/generated/schemas/{RunnableStrategy.json → standalone/RunnableStrategy.json} +296 -321
  28. package/src/generated/schemas/{StrategyRun.json → standalone/StrategyRun.json} +390 -421
  29. package/src/generated/types/standalone/Resource_Genesis.d.ts +3 -0
  30. package/src/generated/types/standalone/Resource_Genesis.js +1 -0
  31. package/src/generated/types/standalone/Resource_Job.d.ts +3 -0
  32. package/src/generated/types/standalone/Resource_Job.js +1 -0
  33. package/src/generated/types/standalone/Resource_RawStrategy.d.ts +3 -0
  34. package/src/generated/types/standalone/Resource_RawStrategy.js +1 -0
  35. package/src/generated/types/standalone/Resource_ResourceType.d.ts +3 -0
  36. package/src/generated/types/standalone/Resource_ResourceType.js +1 -0
  37. package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -0
  38. package/src/generated/types/standalone/Resource_RunnableStrategy.js +1 -0
  39. package/src/generated/types/types.d.ts +487 -548
  40. package/src/generated/types/types.js +1 -1
  41. package/src/scripts/_lib/config.ts +205 -181
  42. package/src/scripts/extractSchemasFromResourceTypeShells.ts +218 -0
  43. package/src/scripts/generateDependencies.ts +120 -120
  44. package/src/scripts/generateSchemaShims.ts +135 -115
  45. package/src/scripts/{extractSubSchemaWithDefs.ts → generateStandaloneSchema.ts} +175 -196
  46. package/src/scripts/{generateResourceTypeType.ts → generateStandaloneType.ts} +119 -110
  47. package/src/scripts/generateTypes.ts +614 -614
  48. package/src/scripts/{rewriteAnchors.ts → normalizeAnchorsToPointers.ts} +123 -123
  49. package/src/scripts/{generateResourceShells.ts → wrapResourceTypesWithResourceShells.ts} +84 -105
  50. package/dist/generated/types/Resource_Genesis.d.ts +0 -3
  51. package/dist/generated/types/Resource_Job.d.ts +0 -3
  52. package/dist/generated/types/Resource_RawStrategy.d.ts +0 -3
  53. package/dist/generated/types/Resource_ResourceType.d.ts +0 -3
  54. package/dist/generated/types/Resource_RunnableStrategy.d.ts +0 -3
  55. package/src/Roadmap.json +0 -102
  56. package/src/generated/types/Resource_Genesis.d.ts +0 -3
  57. package/src/generated/types/Resource_Genesis.js +0 -1
  58. package/src/generated/types/Resource_Job.d.ts +0 -3
  59. package/src/generated/types/Resource_Job.js +0 -1
  60. package/src/generated/types/Resource_RawStrategy.d.ts +0 -3
  61. package/src/generated/types/Resource_RawStrategy.js +0 -1
  62. package/src/generated/types/Resource_ResourceType.d.ts +0 -3
  63. package/src/generated/types/Resource_ResourceType.js +0 -1
  64. package/src/generated/types/Resource_RunnableStrategy.d.ts +0 -3
  65. package/src/generated/types/Resource_RunnableStrategy.js +0 -1
  66. package/src/scripts/extractSchemas.ts +0 -229
  67. /package/dist/generated/types/{Resource_Genesis.js → standalone/Resource_Genesis.js} +0 -0
  68. /package/dist/generated/types/{Resource_Job.js → standalone/Resource_Job.js} +0 -0
  69. /package/dist/generated/types/{Resource_RawStrategy.js → standalone/Resource_RawStrategy.js} +0 -0
  70. /package/dist/generated/types/{Resource_ResourceType.js → standalone/Resource_ResourceType.js} +0 -0
  71. /package/dist/generated/types/{Resource_RunnableStrategy.js → standalone/Resource_RunnableStrategy.js} +0 -0
  72. /package/dist/scripts/{extractSchemas.d.ts → extractSchemasFromResourceTypeShells.d.ts} +0 -0
  73. /package/dist/scripts/{extractSubSchemaWithDefs.d.ts → generateStandaloneSchema.d.ts} +0 -0
  74. /package/dist/scripts/{generateResourceShells.d.ts → generateStandaloneType.d.ts} +0 -0
  75. /package/dist/scripts/{generateResourceTypeType.d.ts → normalizeAnchorsToPointers.d.ts} +0 -0
  76. /package/dist/scripts/{rewriteAnchors.d.ts → wrapResourceTypesWithResourceShells.d.ts} +0 -0
  77. /package/src/generated/{resourceTypes → normalized}/Genesis.ts +0 -0
  78. /package/src/generated/schemas/{Goal.ts → standalone/Goal.ts} +0 -0
  79. /package/src/generated/schemas/{Job.ts → standalone/Job.ts} +0 -0
  80. /package/src/generated/schemas/{RawStrategy.ts → standalone/RawStrategy.ts} +0 -0
  81. /package/src/generated/schemas/{ResourceType.ts → standalone/ResourceType.ts} +0 -0
  82. /package/src/generated/schemas/{RunnableStrategy.ts → standalone/RunnableStrategy.ts} +0 -0
  83. /package/src/generated/schemas/{StrategyRun.ts → standalone/StrategyRun.ts} +0 -0
@@ -2,60 +2,56 @@
2
2
 
3
3
  /**
4
4
  * This interface was referenced by `GenesisJson`'s JSON-Schema
5
- * via the `definition` "BooleanIdentity".
5
+ * via the `definition` "Name".
6
6
  */
7
- export type BooleanIdentity =
8
- boolean;
7
+ export type Name =
8
+ string;
9
9
  /**
10
10
  * This interface was referenced by `GenesisJson`'s JSON-Schema
11
- * via the `definition` "BranchStep".
11
+ * via the `definition` "Description".
12
12
  */
13
- export type BranchStep =
14
- {
15
- /**
16
- * @minItems 1
17
- */
18
- cases: [Conditional, ...Conditional[]];
19
- identity: BranchStepIdentity;
20
- stepKind?: "branch";
21
- } & StepKindFacet;
13
+ export type Description =
14
+ string;
22
15
  /**
23
16
  * This interface was referenced by `GenesisJson`'s JSON-Schema
24
- * via the `definition` "JobStep".
17
+ * via the `definition` "DocumentationFacet".
25
18
  */
26
- export type JobStep =
27
- {
28
- identity: JobStepIdentity;
29
- jobRun: JobRun;
30
- stepKind?: "job";
31
- } & StepKindFacet;
19
+ export type DocumentationFacet =
20
+ NameFacet & DescriptionFacet;
32
21
  /**
33
22
  * This interface was referenced by `GenesisJson`'s JSON-Schema
34
- * via the `definition` "JobStepIdentity".
23
+ * via the `definition` "ResourceTypeImplementationKind".
35
24
  */
36
- export type JobStepIdentity =
37
- `JobStep-${string}`;
25
+ export type ResourceTypeImplementationKind =
26
+ "internal-without-identity" | "internal-with-identity" | "external";
38
27
  /**
39
28
  * This interface was referenced by `GenesisJson`'s JSON-Schema
40
- * via the `definition` "JobRun".
29
+ * via the `definition` "Uri".
41
30
  */
42
- export type JobRun =
43
- {
44
- identity: JobRunIdentity;
45
- jobHandle: JobIdentity;
46
- } & RoleBindingsFacet;
31
+ export type Uri =
32
+ string;
47
33
  /**
48
34
  * This interface was referenced by `GenesisJson`'s JSON-Schema
49
- * via the `definition` "JobRunIdentity".
35
+ * via the `definition` "ResourceTypeIdentity".
50
36
  */
51
- export type JobRunIdentity =
52
- `JobRun-${string}`;
37
+ export type ResourceTypeIdentity =
38
+ `TYPE-${string}`;
53
39
  /**
54
40
  * This interface was referenced by `GenesisJson`'s JSON-Schema
55
- * via the `definition` "JobIdentity".
41
+ * via the `definition` "ResourceType".
56
42
  */
57
- export type JobIdentity =
58
- `JOB-${string}`;
43
+ export type ResourceType =
44
+ {
45
+ identity: ResourceTypeIdentity;
46
+ nucleusSchema: unknown;
47
+ embeddingUriMap?: {
48
+ [k: string]: Uri;
49
+ };
50
+ generatorUriMap?: {
51
+ [k: string]: Uri;
52
+ };
53
+ } & DocumentationFacet &
54
+ ResourceTypeImplementationKindFacet;
59
55
  /**
60
56
  * This interface was referenced by `GenesisJson`'s JSON-Schema
61
57
  * via the `definition` "ResourceRoleIdentity".
@@ -64,46 +60,12 @@ export type ResourceRoleIdentity =
64
60
  `ROLE-${string}`;
65
61
  /**
66
62
  * This interface was referenced by `GenesisJson`'s JSON-Schema
67
- * via the `definition` "RoleBindingArray".
68
- */
69
- export type RoleBindingArray =
70
- ResourceRoleIdentity[];
71
- /**
72
- * This interface was referenced by `GenesisJson`'s JSON-Schema
73
- * via the `definition` "StepKind".
74
- */
75
- export type StepKind =
76
- "job" | "branch" | "while" | "for";
77
- /**
78
- * This interface was referenced by `GenesisJson`'s JSON-Schema
79
- * via the `definition` "BranchStepIdentity".
80
- */
81
- export type BranchStepIdentity =
82
- `BRANCHSTEP-${string}`;
83
- /**
84
- * This interface was referenced by `GenesisJson`'s JSON-Schema
85
- * via the `definition` "Description".
86
- */
87
- export type Description =
88
- string;
89
- /**
90
- * This interface was referenced by `GenesisJson`'s JSON-Schema
91
- * via the `definition` "DocumentationFacet".
92
- */
93
- export type DocumentationFacet =
94
- NameFacet & DescriptionFacet;
95
- /**
96
- * This interface was referenced by `GenesisJson`'s JSON-Schema
97
- * via the `definition` "Name".
98
- */
99
- export type Name =
100
- string;
101
- /**
102
- * This interface was referenced by `GenesisJson`'s JSON-Schema
103
- * via the `definition` "Domain".
63
+ * via the `definition` "ResourceRoleValue".
104
64
  */
105
- export type Domain =
106
- "internal" | "numerical" | "biological" | "logical" | "augmental";
65
+ export type ResourceRoleValue =
66
+ {
67
+ resourceTypeHandle: ResourceTypeIdentity;
68
+ } & DocumentationFacet;
107
69
  /**
108
70
  * This interface was referenced by `GenesisJson`'s JSON-Schema
109
71
  * via the `definition` "Error".
@@ -116,154 +78,155 @@ export type Error =
116
78
  };
117
79
  /**
118
80
  * This interface was referenced by `GenesisJson`'s JSON-Schema
119
- * via the `definition` "ForStep".
81
+ * via the `definition` "Domain".
120
82
  */
121
- export type ForStep =
122
- {
123
- case: Conditional;
124
- identity: ForStepIdentity;
125
- stepKind?: "for";
126
- } & StepKindFacet;
83
+ export type Domain =
84
+ "internal" | "numerical" | "biological" | "logical" | "augmental";
127
85
  /**
128
86
  * This interface was referenced by `GenesisJson`'s JSON-Schema
129
- * via the `definition` "ForStepIdentity".
87
+ * via the `definition` "JobIdentity".
130
88
  */
131
- export type ForStepIdentity =
132
- `FORSTEP-${string}`;
89
+ export type JobIdentity =
90
+ `JOB-${string}`;
133
91
  /**
134
92
  * This interface was referenced by `GenesisJson`'s JSON-Schema
135
- * via the `definition` "Goal".
93
+ * via the `definition` "Job".
136
94
  */
137
- export type Goal =
95
+ export type Job =
138
96
  {
139
- disallowedJobs?: JobIdentity[];
140
- disallowedSequences?: JobIdentity[][];
141
- identity: GoalIdentity;
142
- maxSteps?: number;
143
- minSteps?: number;
144
- target: number;
145
- } & DomainFacet;
97
+ identity: JobIdentity;
98
+ implementationUri: Uri;
99
+ } & DocumentationFacet &
100
+ DomainFacet &
101
+ RolesFacet;
146
102
  /**
147
103
  * This interface was referenced by `GenesisJson`'s JSON-Schema
148
- * via the `definition` "GoalIdentity".
104
+ * via the `definition` "RoleBindingArray".
149
105
  */
150
- export type GoalIdentity =
151
- `GOAL-${string}`;
106
+ export type RoleBindingArray =
107
+ ResourceRoleIdentity[];
152
108
  /**
153
109
  * This interface was referenced by `GenesisJson`'s JSON-Schema
154
- * via the `definition` "GraphEndRunEvent".
110
+ * via the `definition` "StepKind".
155
111
  */
156
- export type GraphEndRunEvent =
157
- RunEventBase & {
158
- runEventKind?: "graph_end";
159
- };
112
+ export type StepKind =
113
+ "job" | "branch" | "while" | "for";
160
114
  /**
161
115
  * This interface was referenced by `GenesisJson`'s JSON-Schema
162
- * via the `definition` "Timestamp".
116
+ * via the `definition` "JobStepIdentity".
163
117
  */
164
- export type Timestamp =
165
- string;
118
+ export type JobStepIdentity =
119
+ `JOB_STEP-${string}`;
166
120
  /**
167
121
  * This interface was referenced by `GenesisJson`'s JSON-Schema
168
- * via the `definition` "RunEventKind".
122
+ * via the `definition` "JobStep".
169
123
  */
170
- export type RunEventKind =
171
- "graph_start" | "tick" | "interrupt" | "graph_end";
124
+ export type JobStep =
125
+ {
126
+ identity: JobStepIdentity;
127
+ stepKind?: "job";
128
+ jobHandle: JobIdentity;
129
+ } & StepKindFacet &
130
+ RoleBindingsFacet1;
172
131
  /**
173
132
  * This interface was referenced by `GenesisJson`'s JSON-Schema
174
- * via the `definition` "RunnableStrategyIdentity".
133
+ * via the `definition` "BranchStepIdentity".
175
134
  */
176
- export type RunnableStrategyIdentity =
177
- `RUNNABLE_STRATEGY-${string}`;
135
+ export type BranchStepIdentity =
136
+ `BRANCH_STEP-${string}`;
178
137
  /**
179
138
  * This interface was referenced by `GenesisJson`'s JSON-Schema
180
- * via the `definition` "StepIdentity".
139
+ * via the `definition` "BranchStep".
181
140
  */
182
- export type StepIdentity =
183
- JobStepIdentity | BranchStepIdentity | WhileStepIdentity | ForStepIdentity;
141
+ export type BranchStep =
142
+ {
143
+ identity: BranchStepIdentity;
144
+ stepKind?: "branch";
145
+ /**
146
+ * @minItems 1
147
+ */
148
+ cases: [Conditional, ...Conditional[]];
149
+ } & StepKindFacet;
184
150
  /**
185
151
  * This interface was referenced by `GenesisJson`'s JSON-Schema
186
152
  * via the `definition` "WhileStepIdentity".
187
153
  */
188
154
  export type WhileStepIdentity =
189
- `WHILESTEP-${string}`;
155
+ `WHILE_STEP-${string}`;
190
156
  /**
191
157
  * This interface was referenced by `GenesisJson`'s JSON-Schema
192
- * via the `definition` "StrategyThreadIdentity".
193
- */
194
- export type StrategyThreadIdentity =
195
- `STRATEGY_THREAD-${string}`;
196
- /**
197
- * This interface was referenced by `GenesisJson`'s JSON-Schema
198
- * via the `definition` "RunEventUpdates".
158
+ * via the `definition` "WhileStep".
199
159
  */
200
- export type RunEventUpdates =
160
+ export type WhileStep =
201
161
  {
202
- interruptData?: {
203
- } | null;
204
- stepsMutation?: {
205
- insertAt: number;
206
- inserted: StepArray;
207
- };
208
- } & StrategyStateDelta;
162
+ identity: WhileStepIdentity;
163
+ stepKind?: "while";
164
+ case: Conditional;
165
+ } & StepKindFacet;
209
166
  /**
210
167
  * This interface was referenced by `GenesisJson`'s JSON-Schema
211
- * via the `definition` "Step".
168
+ * via the `definition` "ForStepIdentity".
212
169
  */
213
- export type Step =
214
- JobStep | BranchStep | WhileStep | ForStep;
170
+ export type ForStepIdentity =
171
+ `FOR_STEP-${string}`;
215
172
  /**
216
173
  * This interface was referenced by `GenesisJson`'s JSON-Schema
217
- * via the `definition` "WhileStep".
174
+ * via the `definition` "ForStep".
218
175
  */
219
- export type WhileStep =
176
+ export type ForStep =
220
177
  {
178
+ identity: ForStepIdentity;
179
+ stepKind?: "for";
221
180
  case: Conditional;
222
- identity: WhileStepIdentity;
223
- stepKind?: "while";
224
181
  } & StepKindFacet;
225
182
  /**
226
183
  * This interface was referenced by `GenesisJson`'s JSON-Schema
227
- * via the `definition` "StepArray".
184
+ * via the `definition` "StepIdentity".
228
185
  */
229
- export type StepArray =
230
- Step[];
186
+ export type StepIdentity =
187
+ JobStepIdentity | BranchStepIdentity | WhileStepIdentity | ForStepIdentity;
231
188
  /**
232
189
  * This interface was referenced by `GenesisJson`'s JSON-Schema
233
- * via the `definition` "Resource".
190
+ * via the `definition` "Step".
234
191
  */
235
- export type Resource =
236
- ResourceMissing | ResourceInputPotential | ResourceOutputPotential | ResourceMaterialized;
237
- export type ResourceMissing =
238
- {
239
- resourceKind?: "missing";
240
- } & ResourceBase &
241
- ResourceKindFacet;
192
+ export type Step =
193
+ JobStep | BranchStep | WhileStep | ForStep;
242
194
  /**
243
195
  * This interface was referenced by `GenesisJson`'s JSON-Schema
244
196
  * via the `definition` "ResourceIdentity".
245
197
  */
246
198
  export type ResourceIdentity =
247
199
  `RESOURCE-${string}`;
248
- /**
249
- * This interface was referenced by `GenesisJson`'s JSON-Schema
250
- * via the `definition` "ResourceTypeIdentity".
251
- */
252
- export type ResourceTypeIdentity =
253
- `TYPE-${string}`;
254
200
  /**
255
201
  * This interface was referenced by `GenesisJson`'s JSON-Schema
256
202
  * via the `definition` "ResourceKind".
257
203
  */
258
204
  export type ResourceKind =
259
205
  "missing" | "input-potential" | "output-potential" | "materialized";
260
- export type ResourceInputPotential =
206
+ /**
207
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
208
+ * via the `definition` "ShellMissing".
209
+ */
210
+ export type ShellMissing =
211
+ {
212
+ resourceKind?: "missing";
213
+ } & ResourceBase &
214
+ ResourceKindFacet;
215
+ /**
216
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
217
+ * via the `definition` "ShellInputPotential".
218
+ */
219
+ export type ShellInputPotential =
261
220
  {
262
221
  resourceKind?: "input-potential";
263
222
  } & ResourceBase &
264
223
  CreationContextFacet &
265
224
  ResourceKindFacet;
266
- export type ResourceOutputPotential =
225
+ /**
226
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
227
+ * via the `definition` "ShellOutputPotential".
228
+ */
229
+ export type ShellOutputPotential =
267
230
  {
268
231
  resourceKind?: "output-potential";
269
232
  } & ResourceBase &
@@ -271,20 +234,37 @@ export type ResourceOutputPotential =
271
234
  ResourceKindFacet;
272
235
  /**
273
236
  * This interface was referenced by `GenesisJson`'s JSON-Schema
274
- * via the `definition` "ResourceMaterialized".
237
+ * via the `definition` "Timestamp".
275
238
  */
276
- export type ResourceMaterialized =
277
- {
278
- } & ShellMaterializedBase &
279
- NucleusFacet;
239
+ export type Timestamp =
240
+ string;
241
+ /**
242
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
243
+ * via the `definition` "Path".
244
+ */
245
+ export type Path =
246
+ string;
280
247
  /**
281
248
  * This interface was referenced by `GenesisJson`'s JSON-Schema
282
249
  * via the `definition` "ShellMaterializedBase".
283
250
  */
284
251
  export type ShellMaterializedBase =
285
252
  {
253
+ version: 1;
286
254
  resourceKind?: "materialized";
255
+ } & ResourceBase &
256
+ CreationContextFacet &
257
+ ResourceKindFacet &
258
+ TimestampFacet &
259
+ PathFacet;
260
+ /**
261
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
262
+ * via the `definition` "ShellMaterialized".
263
+ */
264
+ export type ShellMaterializedBase1 =
265
+ {
287
266
  version: 1;
267
+ resourceKind?: "materialized";
288
268
  } & ResourceBase &
289
269
  CreationContextFacet &
290
270
  ResourceKindFacet &
@@ -292,10 +272,33 @@ export type ShellMaterializedBase =
292
272
  PathFacet;
293
273
  /**
294
274
  * This interface was referenced by `GenesisJson`'s JSON-Schema
295
- * via the `definition` "Path".
275
+ * via the `definition` "ResourceMissing".
296
276
  */
297
- export type Path =
298
- string;
277
+ export type ResourceMissing =
278
+ {
279
+ resourceKind?: "missing";
280
+ } & ResourceBase &
281
+ ResourceKindFacet;
282
+ /**
283
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
284
+ * via the `definition` "ResourceInputPotential".
285
+ */
286
+ export type ResourceInputPotential =
287
+ {
288
+ resourceKind?: "input-potential";
289
+ } & ResourceBase &
290
+ CreationContextFacet &
291
+ ResourceKindFacet;
292
+ /**
293
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
294
+ * via the `definition` "ResourceOutputPotential".
295
+ */
296
+ export type ResourceOutputPotential =
297
+ {
298
+ resourceKind?: "output-potential";
299
+ } & ResourceBase &
300
+ CreationContextFacet &
301
+ ResourceKindFacet;
299
302
  /**
300
303
  * This interface was referenced by `GenesisJson`'s JSON-Schema
301
304
  * via the `definition` "JsonData".
@@ -311,68 +314,24 @@ export type JsonData =
311
314
  };
312
315
  /**
313
316
  * This interface was referenced by `GenesisJson`'s JSON-Schema
314
- * via the `definition` "GraphStartRunEvent".
315
- */
316
- export type GraphStartRunEvent =
317
- RunEventBase & {
318
- runEventKind?: "graph_start";
319
- runnableStrategySeed: RunnableStrategy;
320
- };
321
- /**
322
- * This interface was referenced by `GenesisJson`'s JSON-Schema
323
- * via the `definition` "RunnableStrategy".
324
- */
325
- export type RunnableStrategy =
326
- {
327
- identity: RunnableStrategyIdentity;
328
- runnableStrategyContext: RunnableStrategyContext;
329
- } & StrategyThreadMapFacet &
330
- StrategyStateFacet;
331
- /**
332
- * This interface was referenced by `GenesisJson`'s JSON-Schema
333
- * via the `definition` "RunnableStrategyStatus".
334
- */
335
- export type RunnableStrategyStatus =
336
- "pending" | "running" | "completed" | "failed" | "cancelled";
337
- /**
338
- * This interface was referenced by `GenesisJson`'s JSON-Schema
339
- * via the `definition` "InterruptRunEvent".
340
- */
341
- export type InterruptRunEvent =
342
- RunEventBase & {
343
- runEventKind?: "interrupt";
344
- };
345
- /**
346
- * This interface was referenced by `GenesisJson`'s JSON-Schema
347
- * via the `definition` "Job".
317
+ * via the `definition` "ResourceMaterialized".
348
318
  */
349
- export type Job =
319
+ export type ResourceMaterialized =
350
320
  {
351
- identity: JobIdentity;
352
- implementationUri: Uri;
353
- } & DocumentationFacet &
354
- DomainFacet &
355
- RolesFacet;
356
- /**
357
- * This interface was referenced by `GenesisJson`'s JSON-Schema
358
- * via the `definition` "Uri".
359
- */
360
- export type Uri =
361
- string;
321
+ } & ShellMaterializedBase &
322
+ NucleusFacet1;
362
323
  /**
363
324
  * This interface was referenced by `GenesisJson`'s JSON-Schema
364
- * via the `definition` "ResourceRoleValue".
325
+ * via the `definition` "Resource".
365
326
  */
366
- export type ResourceRoleValue =
367
- {
368
- resourceTypeHandle: ResourceTypeIdentity;
369
- } & DocumentationFacet;
327
+ export type Resource =
328
+ ResourceMissing | ResourceInputPotential | ResourceOutputPotential | ResourceMaterialized;
370
329
  /**
371
330
  * This interface was referenced by `GenesisJson`'s JSON-Schema
372
- * via the `definition` "NaturalIdentity".
331
+ * via the `definition` "StepArray".
373
332
  */
374
- export type NaturalIdentity =
375
- number;
333
+ export type StepArray =
334
+ Step[];
376
335
  /**
377
336
  * This interface was referenced by `GenesisJson`'s JSON-Schema
378
337
  * via the `definition` "RawStrategy".
@@ -380,199 +339,194 @@ export type NaturalIdentity =
380
339
  export type RawStrategy =
381
340
  {
382
341
  } & StepsFacet &
383
- StrategyStateFacet1;
384
- /**
385
- * This interface was referenced by `GenesisJson`'s JSON-Schema
386
- * via the `definition` "ResourceInputPotential".
387
- */
388
- export type ShellInputPotential =
389
- {
390
- resourceKind?: "input-potential";
391
- } & ResourceBase &
392
- CreationContextFacet &
393
- ResourceKindFacet;
394
- /**
395
- * This interface was referenced by `GenesisJson`'s JSON-Schema
396
- * via the `definition` "ResourceMissing".
397
- */
398
- export type ShellMissing =
399
- {
400
- resourceKind?: "missing";
401
- } & ResourceBase &
402
- ResourceKindFacet;
403
- /**
404
- * This interface was referenced by `GenesisJson`'s JSON-Schema
405
- * via the `definition` "ResourceOutputPotential".
406
- */
407
- export type ShellOutputPotential =
408
- {
409
- resourceKind?: "output-potential";
410
- } & ResourceBase &
411
- CreationContextFacet &
412
- ResourceKindFacet;
342
+ StrategyStateFacet;
413
343
  /**
414
344
  * This interface was referenced by `GenesisJson`'s JSON-Schema
415
- * via the `definition` "ResourceType".
416
- */
417
- export type ResourceType =
418
- {
419
- embeddingUriMap?: {
420
- [k: string]: Uri;
421
- };
422
- generatorUriMap?: {
423
- [k: string]: Uri;
424
- };
425
- identity: ResourceTypeIdentity;
426
- nucleusSchema: unknown;
427
- } & DocumentationFacet &
428
- ResourceTypeImplementationKindFacet;
345
+ * via the `definition` "RunnableStrategyIdentity".
346
+ */
347
+ export type RunnableStrategyIdentity =
348
+ `RUNNABLE_STRATEGY-${string}`;
429
349
  /**
430
350
  * This interface was referenced by `GenesisJson`'s JSON-Schema
431
- * via the `definition` "ResourceTypeImplementationKind".
351
+ * via the `definition` "RunnableStrategyStatus".
432
352
  */
433
- export type ResourceTypeImplementationKind =
434
- "internal-without-identity" | "internal-with-identity" | "external";
353
+ export type RunnableStrategyStatus =
354
+ "pending" | "running" | "completed" | "failed" | "cancelled";
435
355
  /**
436
356
  * This interface was referenced by `GenesisJson`'s JSON-Schema
437
- * via the `definition` "RunEvent".
357
+ * via the `definition` "StrategyThreadIdentity".
438
358
  */
439
- export type RunEvent =
440
- GraphStartRunEvent | TickRunEvent | InterruptRunEvent | GraphEndRunEvent;
359
+ export type StrategyThreadIdentity =
360
+ `STRATEGY_THREAD-${string}`;
441
361
  /**
442
362
  * This interface was referenced by `GenesisJson`'s JSON-Schema
443
- * via the `definition` "TickRunEvent".
363
+ * via the `definition` "RunnableStrategy".
444
364
  */
445
- export type TickRunEvent =
446
- RunEventBase & {
447
- runEventKind?: "tick";
448
- };
365
+ export type RunnableStrategy =
366
+ {
367
+ identity: RunnableStrategyIdentity;
368
+ runnableStrategyContext: RunnableStrategyContext;
369
+ } & StrategyThreadMapFacet1 &
370
+ StrategyStateFacet1;
449
371
  /**
450
372
  * This interface was referenced by `GenesisJson`'s JSON-Schema
451
373
  * via the `definition` "RunnableStrategyUpdate".
452
374
  */
453
375
  export type RunnableStrategyUpdate =
454
376
  {
455
- runnableStrategy?: RunnableStrategy1;
456
377
  runnableStrategyHandle: RunnableStrategyIdentity;
378
+ runnableStrategy?: RunnableStrategy1;
457
379
  } & StrategyStateDelta;
458
380
  export type RunnableStrategy1 =
459
381
  {
460
382
  identity: RunnableStrategyIdentity;
461
383
  runnableStrategyContext: RunnableStrategyContext;
462
- } & StrategyThreadMapFacet &
463
- StrategyStateFacet;
384
+ } & StrategyThreadMapFacet1 &
385
+ StrategyStateFacet1;
464
386
  /**
465
387
  * This interface was referenced by `GenesisJson`'s JSON-Schema
466
- * via the `definition` "ShellInputPotential".
388
+ * via the `definition` "RunEventUpdates".
467
389
  */
468
- export type ShellInputPotential1 =
390
+ export type RunEventUpdates =
469
391
  {
470
- resourceKind?: "input-potential";
471
- } & ResourceBase &
472
- CreationContextFacet &
473
- ResourceKindFacet;
392
+ stepsMutation?: {
393
+ insertAt: number;
394
+ inserted: StepArray;
395
+ };
396
+ interruptData?: {
397
+ } | null;
398
+ } & StrategyStateDelta;
474
399
  /**
475
400
  * This interface was referenced by `GenesisJson`'s JSON-Schema
476
- * via the `definition` "ShellMaterialized".
401
+ * via the `definition` "RunEventKind".
477
402
  */
478
- export type ShellMaterializedBase1 =
479
- {
480
- resourceKind?: "materialized";
481
- version: 1;
482
- } & ResourceBase &
483
- CreationContextFacet &
484
- ResourceKindFacet &
485
- TimestampFacet &
486
- PathFacet;
403
+ export type RunEventKind =
404
+ "graph_start" | "tick" | "interrupt" | "graph_end";
487
405
  /**
488
406
  * This interface was referenced by `GenesisJson`'s JSON-Schema
489
- * via the `definition` "ShellMissing".
407
+ * via the `definition` "GraphStartRunEvent".
490
408
  */
491
- export type ShellMissing1 =
492
- {
493
- resourceKind?: "missing";
494
- } & ResourceBase &
495
- ResourceKindFacet;
409
+ export type GraphStartRunEvent =
410
+ RunEventBase & {
411
+ runEventKind?: "graph_start";
412
+ runnableStrategySeed: RunnableStrategy;
413
+ };
496
414
  /**
497
415
  * This interface was referenced by `GenesisJson`'s JSON-Schema
498
- * via the `definition` "ShellOutputPotential".
416
+ * via the `definition` "TickRunEvent".
499
417
  */
500
- export type ShellOutputPotential1 =
501
- {
502
- resourceKind?: "output-potential";
503
- } & ResourceBase &
504
- CreationContextFacet &
505
- ResourceKindFacet;
418
+ export type TickRunEvent =
419
+ RunEventBase & {
420
+ runEventKind?: "tick";
421
+ };
422
+ /**
423
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
424
+ * via the `definition` "InterruptRunEvent".
425
+ */
426
+ export type InterruptRunEvent =
427
+ RunEventBase & {
428
+ runEventKind?: "interrupt";
429
+ };
430
+ /**
431
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
432
+ * via the `definition` "GraphEndRunEvent".
433
+ */
434
+ export type GraphEndRunEvent =
435
+ RunEventBase & {
436
+ runEventKind?: "graph_end";
437
+ };
438
+ /**
439
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
440
+ * via the `definition` "RunEvent".
441
+ */
442
+ export type RunEvent =
443
+ GraphStartRunEvent | TickRunEvent | InterruptRunEvent | GraphEndRunEvent;
506
444
  /**
507
445
  * This interface was referenced by `GenesisJson`'s JSON-Schema
508
446
  * via the `definition` "StrategyRunIdentity".
509
447
  */
510
448
  export type StrategyRunIdentity =
511
449
  `STRATEGY_RUN-${string}`;
512
-
513
- export interface GenesisJson {
514
- }
515
450
  /**
516
451
  * This interface was referenced by `GenesisJson`'s JSON-Schema
517
- * via the `definition` "Boolean".
452
+ * via the `definition` "GoalIdentity".
518
453
  */
519
- export interface Boolean {
520
- identity: BooleanIdentity;
521
- }
454
+ export type GoalIdentity =
455
+ `GOAL-${string}`;
522
456
  /**
523
457
  * This interface was referenced by `GenesisJson`'s JSON-Schema
524
- * via the `definition` "Conditional".
458
+ * via the `definition` "Goal".
525
459
  */
526
- export interface Conditional {
527
- what: JobStep;
528
- when: JobStep;
529
- }
530
- export interface RoleBindingsFacet {
531
- roleBindings: RoleBindings;
532
- }
460
+ export type Goal =
461
+ {
462
+ identity: GoalIdentity;
463
+ target: number;
464
+ disallowedJobs?: JobIdentity[];
465
+ disallowedSequences?: JobIdentity[][];
466
+ minSteps?: number;
467
+ maxSteps?: number;
468
+ } & DomainFacet;
533
469
  /**
534
470
  * This interface was referenced by `GenesisJson`'s JSON-Schema
535
- * via the `definition` "RoleBindings".
471
+ * via the `definition` "NaturalIdentity".
536
472
  */
537
- export interface RoleBindings {
538
- inputBindings: RoleBindingArray;
539
- outputBindings: RoleBindingArray;
473
+ export type NaturalIdentity =
474
+ number;
475
+ /**
476
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
477
+ * via the `definition` "BooleanIdentity".
478
+ */
479
+ export type BooleanIdentity =
480
+ boolean;
481
+
482
+ export interface GenesisJson {
540
483
  }
541
484
  /**
542
485
  * This interface was referenced by `GenesisJson`'s JSON-Schema
543
- * via the `definition` "StepKindFacet".
486
+ * via the `definition` "NameFacet".
544
487
  */
545
- export interface StepKindFacet {
546
- stepKind: StepKind;
488
+ export interface NameFacet {
489
+ name: Name;
547
490
  }
548
491
  /**
549
492
  * This interface was referenced by `GenesisJson`'s JSON-Schema
550
- * via the `definition` "CreationContext".
493
+ * via the `definition` "DescriptionFacet".
551
494
  */
552
- export interface CreationContext {
553
- jobRunHandle: JobRunIdentity;
554
- resourceRoleHandle: ResourceRoleIdentity;
495
+ export interface DescriptionFacet {
496
+ description: Description;
555
497
  }
556
498
  /**
557
499
  * This interface was referenced by `GenesisJson`'s JSON-Schema
558
- * via the `definition` "CreationContextFacet".
500
+ * via the `definition` "ResourceTypeImplementationKindFacet".
559
501
  */
560
- export interface CreationContextFacet {
561
- creationContext: CreationContext;
502
+ export interface ResourceTypeImplementationKindFacet {
503
+ resourceTypeImplementationKind: ResourceTypeImplementationKind;
562
504
  }
563
505
  /**
564
506
  * This interface was referenced by `GenesisJson`'s JSON-Schema
565
- * via the `definition` "DescriptionFacet".
507
+ * via the `definition` "RoleMap".
566
508
  */
567
- export interface DescriptionFacet {
568
- description: Description;
509
+ export type RoleMap = Record<ResourceRoleIdentity, ResourceRoleValue>;
510
+ /**
511
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
512
+ * via the `definition` "Roles".
513
+ */
514
+ export interface Roles {
515
+ inputMap: RoleMap;
516
+ outputMap: RoleMap & {
517
+ "ROLE-ErrorOutput": ResourceRoleValue & {
518
+ resourceTypeHandle: "TYPE-Error";
519
+ name: "ErrorOutput";
520
+ description: "Represents error outputs from job runs.";
521
+ };
522
+ };
569
523
  }
570
524
  /**
571
525
  * This interface was referenced by `GenesisJson`'s JSON-Schema
572
- * via the `definition` "NameFacet".
526
+ * via the `definition` "RolesFacet".
573
527
  */
574
- export interface NameFacet {
575
- name: Name;
528
+ export interface RolesFacet {
529
+ roles: Roles;
576
530
  }
577
531
  /**
578
532
  * This interface was referenced by `GenesisJson`'s JSON-Schema
@@ -583,58 +537,51 @@ export interface DomainFacet {
583
537
  }
584
538
  /**
585
539
  * This interface was referenced by `GenesisJson`'s JSON-Schema
586
- * via the `definition` "RunEventBase".
540
+ * via the `definition` "RoleBindings".
587
541
  */
588
- export interface RunEventBase {
589
- counters?: RunEventCounters;
590
- createdAt: Timestamp;
591
- eventSeq: number;
592
- nodeName: string;
593
- runEventKind: RunEventKind;
594
- runnableStrategyHandle: RunnableStrategyIdentity;
595
- stepMetadata?: RunEventStepMetadata;
596
- strategyThreadHandle: StrategyThreadIdentity;
597
- updates?: RunEventUpdates;
542
+ export interface RoleBindings {
543
+ inputBindings: RoleBindingArray;
544
+ outputBindings: RoleBindingArray;
598
545
  }
599
546
  /**
600
547
  * This interface was referenced by `GenesisJson`'s JSON-Schema
601
- * via the `definition` "RunEventCounters".
548
+ * via the `definition` "RoleBindingsFacet".
602
549
  */
603
- export interface RunEventCounters {
604
- iterationCounterAfter?: number;
605
- stepCounterAfter?: number;
550
+ export interface RoleBindingsFacet {
551
+ roleBindings: RoleBindings;
606
552
  }
607
553
  /**
608
554
  * This interface was referenced by `GenesisJson`'s JSON-Schema
609
- * via the `definition` "RunEventStepMetadata".
555
+ * via the `definition` "StepKindFacet".
610
556
  */
611
- export interface RunEventStepMetadata {
612
- jobHandle?: JobIdentity;
613
- jobRunHandle?: JobRunIdentity;
614
- stepHandle: StepIdentity;
557
+ export interface StepKindFacet {
615
558
  stepKind: StepKind;
616
- threadStepIndex: number;
559
+ }
560
+ export interface RoleBindingsFacet1 {
561
+ roleBindings: RoleBindings;
617
562
  }
618
563
  /**
619
564
  * This interface was referenced by `GenesisJson`'s JSON-Schema
620
- * via the `definition` "StrategyStateDelta".
565
+ * via the `definition` "Conditional".
621
566
  */
622
- export interface StrategyStateDelta {
623
- strategyStateUpdate: StrategyState;
567
+ export interface Conditional {
568
+ when: JobStep;
569
+ what: JobStep;
624
570
  }
625
571
  /**
626
572
  * This interface was referenced by `GenesisJson`'s JSON-Schema
627
- * via the `definition` "StrategyState".
573
+ * via the `definition` "CreationContext".
628
574
  */
629
- export interface StrategyState {
630
- [k: string]: JobRunSocket;
575
+ export interface CreationContext {
576
+ resourceRoleHandle: ResourceRoleIdentity;
577
+ jobStepHandle: JobStepIdentity;
631
578
  }
632
579
  /**
633
580
  * This interface was referenced by `GenesisJson`'s JSON-Schema
634
- * via the `definition` "JobRunSocket".
581
+ * via the `definition` "CreationContextFacet".
635
582
  */
636
- export interface JobRunSocket {
637
- [k: string]: Resource;
583
+ export interface CreationContextFacet {
584
+ creationContext: CreationContext;
638
585
  }
639
586
  /**
640
587
  * This interface was referenced by `GenesisJson`'s JSON-Schema
@@ -665,9 +612,6 @@ export interface TimestampFacet {
665
612
  export interface PathFacet {
666
613
  path: Path;
667
614
  }
668
- export interface NucleusFacet {
669
- nucleus: Nucleus;
670
- }
671
615
  /**
672
616
  * This interface was referenced by `GenesisJson`'s JSON-Schema
673
617
  * via the `definition` "Nucleus".
@@ -677,93 +621,109 @@ export interface Nucleus {
677
621
  }
678
622
  /**
679
623
  * This interface was referenced by `GenesisJson`'s JSON-Schema
680
- * via the `definition` "RunnableStrategyContext".
624
+ * via the `definition` "NucleusFacet".
681
625
  */
682
- export interface RunnableStrategyContext {
683
- completedAt?: Timestamp;
684
- startedAt?: Timestamp;
685
- status: RunnableStrategyStatus;
626
+ export interface NucleusFacet {
627
+ nucleus: Nucleus;
686
628
  }
687
- export interface StrategyThreadMapFacet {
688
- strategyThreadMap: StrategyThreadMap;
629
+ export interface NucleusFacet1 {
630
+ nucleus: Nucleus;
631
+ }
632
+ /**
633
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
634
+ * via the `definition` "JobStepSocket".
635
+ */
636
+ export interface JobStepSocket {
637
+ [k: string]: Resource;
689
638
  }
690
639
  /**
691
640
  * This interface was referenced by `GenesisJson`'s JSON-Schema
692
- * via the `definition` "StrategyThreadMap".
641
+ * via the `definition` "StrategyState".
693
642
  */
694
- export interface StrategyThreadMap {
695
- [k: string]: StepArray;
696
- }
697
- export interface StrategyStateFacet {
698
- strategyState: StrategyState;
643
+ export interface StrategyState {
644
+ [k: string]: JobStepSocket;
699
645
  }
700
646
  /**
701
647
  * This interface was referenced by `GenesisJson`'s JSON-Schema
702
- * via the `definition` "RolesFacet".
648
+ * via the `definition` "StrategyStateFacet".
703
649
  */
704
- export interface RolesFacet {
705
- roles: Roles;
650
+ export interface StrategyStateFacet {
651
+ strategyState: StrategyState;
706
652
  }
707
653
  /**
708
654
  * This interface was referenced by `GenesisJson`'s JSON-Schema
709
- * via the `definition` "Roles".
655
+ * via the `definition` "StepsFacet".
710
656
  */
711
- export interface Roles {
712
- inputMap: RoleMap;
713
- outputMap: RoleMap & {
714
- "ROLE-ErrorOutput": ResourceRoleValue & {
715
- description: "Represents error outputs from job runs.";
716
- name: "ErrorOutput";
717
- resourceTypeHandle: "TYPE-Error";
718
- };
719
- };
657
+ export interface StepsFacet {
658
+ steps: StepArray;
720
659
  }
721
660
  /**
722
661
  * This interface was referenced by `GenesisJson`'s JSON-Schema
723
- * via the `definition` "RoleMap".
662
+ * via the `definition` "RunnableStrategyContext".
724
663
  */
725
- export type RoleMap = Record<ResourceRoleIdentity, ResourceRoleValue>;
664
+ export interface RunnableStrategyContext {
665
+ status: RunnableStrategyStatus;
666
+ startedAt?: Timestamp;
667
+ completedAt?: Timestamp;
668
+ }
726
669
  /**
727
670
  * This interface was referenced by `GenesisJson`'s JSON-Schema
728
- * via the `definition` "Natural".
671
+ * via the `definition` "StrategyThreadMap".
729
672
  */
730
- export interface Natural {
731
- identity: NaturalIdentity;
673
+ export interface StrategyThreadMap {
674
+ [k: string]: StepArray;
732
675
  }
733
676
  /**
734
677
  * This interface was referenced by `GenesisJson`'s JSON-Schema
735
- * via the `definition` "NucleusFacet".
678
+ * via the `definition` "StrategyThreadMapFacet".
736
679
  */
737
- export interface NucleusFacet1 {
738
- nucleus: Nucleus;
680
+ export interface StrategyThreadMapFacet {
681
+ strategyThreadMap: StrategyThreadMap;
682
+ }
683
+ export interface StrategyThreadMapFacet1 {
684
+ strategyThreadMap: StrategyThreadMap;
685
+ }
686
+ export interface StrategyStateFacet1 {
687
+ strategyState: StrategyState;
739
688
  }
740
689
  /**
741
690
  * This interface was referenced by `GenesisJson`'s JSON-Schema
742
- * via the `definition` "StepsFacet".
691
+ * via the `definition` "StrategyStateDelta".
743
692
  */
744
- export interface StepsFacet {
745
- steps: StepArray;
693
+ export interface StrategyStateDelta {
694
+ strategyStateUpdate: StrategyState;
746
695
  }
747
696
  /**
748
697
  * This interface was referenced by `GenesisJson`'s JSON-Schema
749
- * via the `definition` "StrategyStateFacet".
698
+ * via the `definition` "RunEventCounters".
750
699
  */
751
- export interface StrategyStateFacet1 {
752
- strategyState: StrategyState;
700
+ export interface RunEventCounters {
701
+ stepCounterAfter?: number;
702
+ iterationCounterAfter?: number;
753
703
  }
754
704
  /**
755
705
  * This interface was referenced by `GenesisJson`'s JSON-Schema
756
- * via the `definition` "ResourceTypeImplementationKindFacet".
706
+ * via the `definition` "RunEventStepMetadata".
757
707
  */
758
- export interface ResourceTypeImplementationKindFacet {
759
- resourceTypeImplementationKind: ResourceTypeImplementationKind;
708
+ export interface RunEventStepMetadata {
709
+ stepHandle: StepIdentity;
710
+ stepKind: StepKind;
711
+ threadStepIndex: number;
760
712
  }
761
713
  /**
762
714
  * This interface was referenced by `GenesisJson`'s JSON-Schema
763
- * via the `definition` "RoleBindingsFacet".
715
+ * via the `definition` "RunEventBase".
764
716
  */
765
- export interface RoleBindingsFacet1 {
766
- roleBindings: RoleBindings;
717
+ export interface RunEventBase {
718
+ runEventKind: RunEventKind;
719
+ runnableStrategyHandle: RunnableStrategyIdentity;
720
+ strategyThreadHandle: StrategyThreadIdentity;
721
+ createdAt: Timestamp;
722
+ nodeName: string;
723
+ eventSeq: number;
724
+ counters?: RunEventCounters;
725
+ stepMetadata?: RunEventStepMetadata;
726
+ updates?: RunEventUpdates;
767
727
  }
768
728
  /**
769
729
  * This interface was referenced by `GenesisJson`'s JSON-Schema
@@ -771,31 +731,38 @@ export interface RoleBindingsFacet1 {
771
731
  */
772
732
  export interface StrategyRun {
773
733
  identity: StrategyRunIdentity;
734
+ runnableStrategyHandle: string;
774
735
  recordedAt: Timestamp;
775
736
  runEvents: RunEvent[];
776
- runnableStrategyHandle: string;
777
737
  }
778
738
  /**
779
739
  * This interface was referenced by `GenesisJson`'s JSON-Schema
780
- * via the `definition` "StrategyThreadMapFacet".
740
+ * via the `definition` "Natural".
781
741
  */
782
- export interface StrategyThreadMapFacet1 {
783
- strategyThreadMap: StrategyThreadMap;
742
+ export interface Natural {
743
+ identity: NaturalIdentity;
744
+ }
745
+ /**
746
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
747
+ * via the `definition` "Boolean".
748
+ */
749
+ export interface Boolean {
750
+ identity: BooleanIdentity;
784
751
  }
785
752
 
786
753
  export type Normalized =
787
754
  {
755
+ identity: GoalIdentity;
756
+ target: number;
788
757
  disallowedJobs?: JobIdentity[];
789
758
  disallowedSequences?: JobIdentity[][];
790
- identity: GoalIdentity;
791
- maxSteps?: number;
792
759
  minSteps?: number;
793
- target: number;
760
+ maxSteps?: number;
794
761
  } & DomainFacet;
795
- export type JobIdentity =
796
- `JOB-${string}`;
797
762
  export type GoalIdentity =
798
763
  `GOAL-${string}`;
764
+ export type JobIdentity =
765
+ `JOB-${string}`;
799
766
  export type Domain =
800
767
  "internal" | "numerical" | "biological" | "logical" | "augmental";
801
768
 
@@ -845,9 +812,9 @@ export interface Roles {
845
812
  inputMap: RoleMap;
846
813
  outputMap: RoleMap & {
847
814
  "ROLE-ErrorOutput": ResourceRoleValue & {
848
- description: "Represents error outputs from job runs.";
849
- name: "ErrorOutput";
850
815
  resourceTypeHandle: "TYPE-Error";
816
+ name: "ErrorOutput";
817
+ description: "Represents error outputs from job runs.";
851
818
  };
852
819
  };
853
820
  }
@@ -862,53 +829,47 @@ export type Step =
862
829
  export type JobStep =
863
830
  {
864
831
  identity: JobStepIdentity;
865
- jobRun: JobRun;
866
832
  stepKind?: "job";
867
- } & StepKindFacet;
868
- export type JobStepIdentity =
869
- `JobStep-${string}`;
870
- export type JobRun =
871
- {
872
- identity: JobRunIdentity;
873
833
  jobHandle: JobIdentity;
874
- } & RoleBindingsFacet;
875
- export type JobRunIdentity =
876
- `JobRun-${string}`;
834
+ } & StepKindFacet &
835
+ RoleBindingsFacet;
836
+ export type JobStepIdentity =
837
+ `JOB_STEP-${string}`;
877
838
  export type JobIdentity =
878
839
  `JOB-${string}`;
840
+ export type StepKind =
841
+ "job" | "branch" | "while" | "for";
879
842
  export type ResourceRoleIdentity =
880
843
  `ROLE-${string}`;
881
844
  export type RoleBindingArray =
882
845
  ResourceRoleIdentity[];
883
- export type StepKind =
884
- "job" | "branch" | "while" | "for";
885
846
  export type BranchStep =
886
847
  {
848
+ identity: BranchStepIdentity;
849
+ stepKind?: "branch";
887
850
  /**
888
851
  * @minItems 1
889
852
  */
890
853
  cases: [Conditional, ...Conditional[]];
891
- identity: BranchStepIdentity;
892
- stepKind?: "branch";
893
854
  } & StepKindFacet;
894
855
  export type BranchStepIdentity =
895
- `BRANCHSTEP-${string}`;
856
+ `BRANCH_STEP-${string}`;
896
857
  export type WhileStep =
897
858
  {
898
- case: Conditional;
899
859
  identity: WhileStepIdentity;
900
860
  stepKind?: "while";
861
+ case: Conditional;
901
862
  } & StepKindFacet;
902
863
  export type WhileStepIdentity =
903
- `WHILESTEP-${string}`;
864
+ `WHILE_STEP-${string}`;
904
865
  export type ForStep =
905
866
  {
906
- case: Conditional;
907
867
  identity: ForStepIdentity;
908
868
  stepKind?: "for";
869
+ case: Conditional;
909
870
  } & StepKindFacet;
910
871
  export type ForStepIdentity =
911
- `FORSTEP-${string}`;
872
+ `FOR_STEP-${string}`;
912
873
  export type StepArray =
913
874
  Step[];
914
875
  export type Resource =
@@ -942,8 +903,8 @@ export type ResourceMaterialized =
942
903
  NucleusFacet;
943
904
  export type ShellMaterializedBase =
944
905
  {
945
- resourceKind?: "materialized";
946
906
  version: 1;
907
+ resourceKind?: "materialized";
947
908
  } & ResourceBase &
948
909
  CreationContextFacet &
949
910
  ResourceKindFacet &
@@ -966,6 +927,9 @@ export type JsonData =
966
927
  export interface StepsFacet {
967
928
  steps: StepArray;
968
929
  }
930
+ export interface StepKindFacet {
931
+ stepKind: StepKind;
932
+ }
969
933
  export interface RoleBindingsFacet {
970
934
  roleBindings: RoleBindings;
971
935
  }
@@ -973,20 +937,17 @@ export interface RoleBindings {
973
937
  inputBindings: RoleBindingArray;
974
938
  outputBindings: RoleBindingArray;
975
939
  }
976
- export interface StepKindFacet {
977
- stepKind: StepKind;
978
- }
979
940
  export interface Conditional {
980
- what: JobStep;
981
941
  when: JobStep;
942
+ what: JobStep;
982
943
  }
983
944
  export interface StrategyStateFacet {
984
945
  strategyState: StrategyState;
985
946
  }
986
947
  export interface StrategyState {
987
- [k: string]: JobRunSocket;
948
+ [k: string]: JobStepSocket;
988
949
  }
989
- export interface JobRunSocket {
950
+ export interface JobStepSocket {
990
951
  [k: string]: Resource;
991
952
  }
992
953
  export interface ResourceBase {
@@ -1000,8 +961,8 @@ export interface CreationContextFacet {
1000
961
  creationContext: CreationContext;
1001
962
  }
1002
963
  export interface CreationContext {
1003
- jobRunHandle: JobRunIdentity;
1004
964
  resourceRoleHandle: ResourceRoleIdentity;
965
+ jobStepHandle: JobStepIdentity;
1005
966
  }
1006
967
  export interface TimestampFacet {
1007
968
  timestamp: Timestamp;
@@ -1018,20 +979,20 @@ export interface Nucleus {
1018
979
 
1019
980
  export type Normalized =
1020
981
  {
982
+ identity: ResourceTypeIdentity;
983
+ nucleusSchema: unknown;
1021
984
  embeddingUriMap?: {
1022
985
  [k: string]: Uri;
1023
986
  };
1024
987
  generatorUriMap?: {
1025
988
  [k: string]: Uri;
1026
989
  };
1027
- identity: ResourceTypeIdentity;
1028
- nucleusSchema: unknown;
1029
990
  } & DocumentationFacet &
1030
991
  ResourceTypeImplementationKindFacet;
1031
- export type Uri =
1032
- string;
1033
992
  export type ResourceTypeIdentity =
1034
993
  `TYPE-${string}`;
994
+ export type Uri =
995
+ string;
1035
996
  export type DocumentationFacet =
1036
997
  NameFacet & DescriptionFacet;
1037
998
  export type Name =
@@ -1059,62 +1020,56 @@ export type Normalized =
1059
1020
  StrategyStateFacet;
1060
1021
  export type RunnableStrategyIdentity =
1061
1022
  `RUNNABLE_STRATEGY-${string}`;
1062
- export type Timestamp =
1063
- string;
1064
1023
  export type RunnableStrategyStatus =
1065
1024
  "pending" | "running" | "completed" | "failed" | "cancelled";
1025
+ export type Timestamp =
1026
+ string;
1066
1027
  export type Step =
1067
1028
  JobStep | BranchStep | WhileStep | ForStep;
1068
1029
  export type JobStep =
1069
1030
  {
1070
1031
  identity: JobStepIdentity;
1071
- jobRun: JobRun;
1072
1032
  stepKind?: "job";
1073
- } & StepKindFacet;
1074
- export type JobStepIdentity =
1075
- `JobStep-${string}`;
1076
- export type JobRun =
1077
- {
1078
- identity: JobRunIdentity;
1079
1033
  jobHandle: JobIdentity;
1080
- } & RoleBindingsFacet;
1081
- export type JobRunIdentity =
1082
- `JobRun-${string}`;
1034
+ } & StepKindFacet &
1035
+ RoleBindingsFacet;
1036
+ export type JobStepIdentity =
1037
+ `JOB_STEP-${string}`;
1083
1038
  export type JobIdentity =
1084
1039
  `JOB-${string}`;
1040
+ export type StepKind =
1041
+ "job" | "branch" | "while" | "for";
1085
1042
  export type ResourceRoleIdentity =
1086
1043
  `ROLE-${string}`;
1087
1044
  export type RoleBindingArray =
1088
1045
  ResourceRoleIdentity[];
1089
- export type StepKind =
1090
- "job" | "branch" | "while" | "for";
1091
1046
  export type BranchStep =
1092
1047
  {
1048
+ identity: BranchStepIdentity;
1049
+ stepKind?: "branch";
1093
1050
  /**
1094
1051
  * @minItems 1
1095
1052
  */
1096
1053
  cases: [Conditional, ...Conditional[]];
1097
- identity: BranchStepIdentity;
1098
- stepKind?: "branch";
1099
1054
  } & StepKindFacet;
1100
1055
  export type BranchStepIdentity =
1101
- `BRANCHSTEP-${string}`;
1056
+ `BRANCH_STEP-${string}`;
1102
1057
  export type WhileStep =
1103
1058
  {
1104
- case: Conditional;
1105
1059
  identity: WhileStepIdentity;
1106
1060
  stepKind?: "while";
1061
+ case: Conditional;
1107
1062
  } & StepKindFacet;
1108
1063
  export type WhileStepIdentity =
1109
- `WHILESTEP-${string}`;
1064
+ `WHILE_STEP-${string}`;
1110
1065
  export type ForStep =
1111
1066
  {
1112
- case: Conditional;
1113
1067
  identity: ForStepIdentity;
1114
1068
  stepKind?: "for";
1069
+ case: Conditional;
1115
1070
  } & StepKindFacet;
1116
1071
  export type ForStepIdentity =
1117
- `FORSTEP-${string}`;
1072
+ `FOR_STEP-${string}`;
1118
1073
  export type StepArray =
1119
1074
  Step[];
1120
1075
  export type Resource =
@@ -1148,8 +1103,8 @@ export type ResourceMaterialized =
1148
1103
  NucleusFacet;
1149
1104
  export type ShellMaterializedBase =
1150
1105
  {
1151
- resourceKind?: "materialized";
1152
1106
  version: 1;
1107
+ resourceKind?: "materialized";
1153
1108
  } & ResourceBase &
1154
1109
  CreationContextFacet &
1155
1110
  ResourceKindFacet &
@@ -1168,9 +1123,9 @@ export type JsonData =
1168
1123
  };
1169
1124
 
1170
1125
  export interface RunnableStrategyContext {
1171
- completedAt?: Timestamp;
1172
- startedAt?: Timestamp;
1173
1126
  status: RunnableStrategyStatus;
1127
+ startedAt?: Timestamp;
1128
+ completedAt?: Timestamp;
1174
1129
  }
1175
1130
  export interface StrategyThreadMapFacet {
1176
1131
  strategyThreadMap: StrategyThreadMap;
@@ -1178,6 +1133,9 @@ export interface StrategyThreadMapFacet {
1178
1133
  export interface StrategyThreadMap {
1179
1134
  [k: string]: StepArray;
1180
1135
  }
1136
+ export interface StepKindFacet {
1137
+ stepKind: StepKind;
1138
+ }
1181
1139
  export interface RoleBindingsFacet {
1182
1140
  roleBindings: RoleBindings;
1183
1141
  }
@@ -1185,20 +1143,17 @@ export interface RoleBindings {
1185
1143
  inputBindings: RoleBindingArray;
1186
1144
  outputBindings: RoleBindingArray;
1187
1145
  }
1188
- export interface StepKindFacet {
1189
- stepKind: StepKind;
1190
- }
1191
1146
  export interface Conditional {
1192
- what: JobStep;
1193
1147
  when: JobStep;
1148
+ what: JobStep;
1194
1149
  }
1195
1150
  export interface StrategyStateFacet {
1196
1151
  strategyState: StrategyState;
1197
1152
  }
1198
1153
  export interface StrategyState {
1199
- [k: string]: JobRunSocket;
1154
+ [k: string]: JobStepSocket;
1200
1155
  }
1201
- export interface JobRunSocket {
1156
+ export interface JobStepSocket {
1202
1157
  [k: string]: Resource;
1203
1158
  }
1204
1159
  export interface ResourceBase {
@@ -1212,8 +1167,8 @@ export interface CreationContextFacet {
1212
1167
  creationContext: CreationContext;
1213
1168
  }
1214
1169
  export interface CreationContext {
1215
- jobRunHandle: JobRunIdentity;
1216
1170
  resourceRoleHandle: ResourceRoleIdentity;
1171
+ jobStepHandle: JobStepIdentity;
1217
1172
  }
1218
1173
  export interface TimestampFacet {
1219
1174
  timestamp: Timestamp;
@@ -1269,16 +1224,10 @@ export type RunnableStrategyIdentity =
1269
1224
  `RUNNABLE_STRATEGY-${string}`;
1270
1225
  /**
1271
1226
  * This interface was referenced by `Normalized`'s JSON-Schema
1272
- * via the `definition` "JobIdentity".
1273
- */
1274
- export type JobIdentity =
1275
- `JOB-${string}`;
1276
- /**
1277
- * This interface was referenced by `Normalized`'s JSON-Schema
1278
- * via the `definition` "JobRunIdentity".
1227
+ * via the `definition` "StrategyThreadIdentity".
1279
1228
  */
1280
- export type JobRunIdentity =
1281
- `JobRun-${string}`;
1229
+ export type StrategyThreadIdentity =
1230
+ `STRATEGY_THREAD-${string}`;
1282
1231
  /**
1283
1232
  * This interface was referenced by `Normalized`'s JSON-Schema
1284
1233
  * via the `definition` "StepIdentity".
@@ -1290,49 +1239,43 @@ export type StepIdentity =
1290
1239
  * via the `definition` "JobStepIdentity".
1291
1240
  */
1292
1241
  export type JobStepIdentity =
1293
- `JobStep-${string}`;
1242
+ `JOB_STEP-${string}`;
1294
1243
  /**
1295
1244
  * This interface was referenced by `Normalized`'s JSON-Schema
1296
1245
  * via the `definition` "BranchStepIdentity".
1297
1246
  */
1298
1247
  export type BranchStepIdentity =
1299
- `BRANCHSTEP-${string}`;
1248
+ `BRANCH_STEP-${string}`;
1300
1249
  /**
1301
1250
  * This interface was referenced by `Normalized`'s JSON-Schema
1302
1251
  * via the `definition` "WhileStepIdentity".
1303
1252
  */
1304
1253
  export type WhileStepIdentity =
1305
- `WHILESTEP-${string}`;
1254
+ `WHILE_STEP-${string}`;
1306
1255
  /**
1307
1256
  * This interface was referenced by `Normalized`'s JSON-Schema
1308
1257
  * via the `definition` "ForStepIdentity".
1309
1258
  */
1310
1259
  export type ForStepIdentity =
1311
- `FORSTEP-${string}`;
1260
+ `FOR_STEP-${string}`;
1312
1261
  /**
1313
1262
  * This interface was referenced by `Normalized`'s JSON-Schema
1314
1263
  * via the `definition` "StepKind".
1315
1264
  */
1316
1265
  export type StepKind =
1317
1266
  "job" | "branch" | "while" | "for";
1318
- /**
1319
- * This interface was referenced by `Normalized`'s JSON-Schema
1320
- * via the `definition` "StrategyThreadIdentity".
1321
- */
1322
- export type StrategyThreadIdentity =
1323
- `STRATEGY_THREAD-${string}`;
1324
1267
  /**
1325
1268
  * This interface was referenced by `Normalized`'s JSON-Schema
1326
1269
  * via the `definition` "RunEventUpdates".
1327
1270
  */
1328
1271
  export type RunEventUpdates =
1329
1272
  {
1330
- interruptData?: {
1331
- } | null;
1332
1273
  stepsMutation?: {
1333
1274
  insertAt: number;
1334
1275
  inserted: StepArray;
1335
1276
  };
1277
+ interruptData?: {
1278
+ } | null;
1336
1279
  } & StrategyStateDelta;
1337
1280
  /**
1338
1281
  * This interface was referenced by `Normalized`'s JSON-Schema
@@ -1347,18 +1290,16 @@ export type Step =
1347
1290
  export type JobStep =
1348
1291
  {
1349
1292
  identity: JobStepIdentity;
1350
- jobRun: JobRun;
1351
1293
  stepKind?: "job";
1352
- } & StepKindFacet;
1294
+ jobHandle: JobIdentity;
1295
+ } & StepKindFacet &
1296
+ RoleBindingsFacet;
1353
1297
  /**
1354
1298
  * This interface was referenced by `Normalized`'s JSON-Schema
1355
- * via the `definition` "JobRun".
1299
+ * via the `definition` "JobIdentity".
1356
1300
  */
1357
- export type JobRun =
1358
- {
1359
- identity: JobRunIdentity;
1360
- jobHandle: JobIdentity;
1361
- } & RoleBindingsFacet;
1301
+ export type JobIdentity =
1302
+ `JOB-${string}`;
1362
1303
  /**
1363
1304
  * This interface was referenced by `Normalized`'s JSON-Schema
1364
1305
  * via the `definition` "ResourceRoleIdentity".
@@ -1377,12 +1318,12 @@ export type RoleBindingArray =
1377
1318
  */
1378
1319
  export type BranchStep =
1379
1320
  {
1321
+ identity: BranchStepIdentity;
1322
+ stepKind?: "branch";
1380
1323
  /**
1381
1324
  * @minItems 1
1382
1325
  */
1383
1326
  cases: [Conditional, ...Conditional[]];
1384
- identity: BranchStepIdentity;
1385
- stepKind?: "branch";
1386
1327
  } & StepKindFacet;
1387
1328
  /**
1388
1329
  * This interface was referenced by `Normalized`'s JSON-Schema
@@ -1390,9 +1331,9 @@ export type BranchStep =
1390
1331
  */
1391
1332
  export type WhileStep =
1392
1333
  {
1393
- case: Conditional;
1394
1334
  identity: WhileStepIdentity;
1395
1335
  stepKind?: "while";
1336
+ case: Conditional;
1396
1337
  } & StepKindFacet;
1397
1338
  /**
1398
1339
  * This interface was referenced by `Normalized`'s JSON-Schema
@@ -1400,9 +1341,9 @@ export type WhileStep =
1400
1341
  */
1401
1342
  export type ForStep =
1402
1343
  {
1403
- case: Conditional;
1404
1344
  identity: ForStepIdentity;
1405
1345
  stepKind?: "for";
1346
+ case: Conditional;
1406
1347
  } & StepKindFacet;
1407
1348
  /**
1408
1349
  * This interface was referenced by `Normalized`'s JSON-Schema
@@ -1465,8 +1406,8 @@ export type ResourceMaterialized =
1465
1406
  */
1466
1407
  export type ShellMaterializedBase =
1467
1408
  {
1468
- resourceKind?: "materialized";
1469
1409
  version: 1;
1410
+ resourceKind?: "materialized";
1470
1411
  } & ResourceBase &
1471
1412
  CreationContextFacet &
1472
1413
  ResourceKindFacet &
@@ -1592,23 +1533,23 @@ export type ShellOutputPotential1 =
1592
1533
 
1593
1534
  export interface Normalized {
1594
1535
  identity: StrategyRunIdentity;
1536
+ runnableStrategyHandle: string;
1595
1537
  recordedAt: Timestamp;
1596
1538
  runEvents: RunEvent[];
1597
- runnableStrategyHandle: string;
1598
1539
  }
1599
1540
  /**
1600
1541
  * This interface was referenced by `Normalized`'s JSON-Schema
1601
1542
  * via the `definition` "RunEventBase".
1602
1543
  */
1603
1544
  export interface RunEventBase {
1604
- counters?: RunEventCounters;
1605
- createdAt: Timestamp;
1606
- eventSeq: number;
1607
- nodeName: string;
1608
1545
  runEventKind: RunEventKind;
1609
1546
  runnableStrategyHandle: RunnableStrategyIdentity;
1610
- stepMetadata?: RunEventStepMetadata;
1611
1547
  strategyThreadHandle: StrategyThreadIdentity;
1548
+ createdAt: Timestamp;
1549
+ nodeName: string;
1550
+ eventSeq: number;
1551
+ counters?: RunEventCounters;
1552
+ stepMetadata?: RunEventStepMetadata;
1612
1553
  updates?: RunEventUpdates;
1613
1554
  }
1614
1555
  /**
@@ -1616,20 +1557,25 @@ export interface RunEventBase {
1616
1557
  * via the `definition` "RunEventCounters".
1617
1558
  */
1618
1559
  export interface RunEventCounters {
1619
- iterationCounterAfter?: number;
1620
1560
  stepCounterAfter?: number;
1561
+ iterationCounterAfter?: number;
1621
1562
  }
1622
1563
  /**
1623
1564
  * This interface was referenced by `Normalized`'s JSON-Schema
1624
1565
  * via the `definition` "RunEventStepMetadata".
1625
1566
  */
1626
1567
  export interface RunEventStepMetadata {
1627
- jobHandle?: JobIdentity;
1628
- jobRunHandle?: JobRunIdentity;
1629
1568
  stepHandle: StepIdentity;
1630
1569
  stepKind: StepKind;
1631
1570
  threadStepIndex: number;
1632
1571
  }
1572
+ /**
1573
+ * This interface was referenced by `Normalized`'s JSON-Schema
1574
+ * via the `definition` "StepKindFacet".
1575
+ */
1576
+ export interface StepKindFacet {
1577
+ stepKind: StepKind;
1578
+ }
1633
1579
  export interface RoleBindingsFacet {
1634
1580
  roleBindings: RoleBindings;
1635
1581
  }
@@ -1641,20 +1587,13 @@ export interface RoleBindings {
1641
1587
  inputBindings: RoleBindingArray;
1642
1588
  outputBindings: RoleBindingArray;
1643
1589
  }
1644
- /**
1645
- * This interface was referenced by `Normalized`'s JSON-Schema
1646
- * via the `definition` "StepKindFacet".
1647
- */
1648
- export interface StepKindFacet {
1649
- stepKind: StepKind;
1650
- }
1651
1590
  /**
1652
1591
  * This interface was referenced by `Normalized`'s JSON-Schema
1653
1592
  * via the `definition` "Conditional".
1654
1593
  */
1655
1594
  export interface Conditional {
1656
- what: JobStep;
1657
1595
  when: JobStep;
1596
+ what: JobStep;
1658
1597
  }
1659
1598
  /**
1660
1599
  * This interface was referenced by `Normalized`'s JSON-Schema
@@ -1668,13 +1607,13 @@ export interface StrategyStateDelta {
1668
1607
  * via the `definition` "StrategyState".
1669
1608
  */
1670
1609
  export interface StrategyState {
1671
- [k: string]: JobRunSocket;
1610
+ [k: string]: JobStepSocket;
1672
1611
  }
1673
1612
  /**
1674
1613
  * This interface was referenced by `Normalized`'s JSON-Schema
1675
- * via the `definition` "JobRunSocket".
1614
+ * via the `definition` "JobStepSocket".
1676
1615
  */
1677
- export interface JobRunSocket {
1616
+ export interface JobStepSocket {
1678
1617
  [k: string]: Resource;
1679
1618
  }
1680
1619
  /**
@@ -1704,8 +1643,8 @@ export interface CreationContextFacet {
1704
1643
  * via the `definition` "CreationContext".
1705
1644
  */
1706
1645
  export interface CreationContext {
1707
- jobRunHandle: JobRunIdentity;
1708
1646
  resourceRoleHandle: ResourceRoleIdentity;
1647
+ jobStepHandle: JobStepIdentity;
1709
1648
  }
1710
1649
  /**
1711
1650
  * This interface was referenced by `Normalized`'s JSON-Schema
@@ -1736,9 +1675,9 @@ export interface Nucleus {
1736
1675
  * via the `definition` "RunnableStrategyContext".
1737
1676
  */
1738
1677
  export interface RunnableStrategyContext {
1739
- completedAt?: Timestamp;
1740
- startedAt?: Timestamp;
1741
1678
  status: RunnableStrategyStatus;
1679
+ startedAt?: Timestamp;
1680
+ completedAt?: Timestamp;
1742
1681
  }
1743
1682
  export interface StrategyThreadMapFacet {
1744
1683
  strategyThreadMap: StrategyThreadMap;