@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.
- package/dist/generated/artifacts/constants.d.ts +4 -3
- package/dist/generated/artifacts/constants.js +4 -3
- package/dist/generated/normalized/Genesis.json +50 -25
- package/dist/generated/resources/Genesis.json +68 -31
- package/dist/generated/schemas/Genesis.json +38 -19
- package/dist/generated/schemas/standalone/Job.json +7 -8
- package/dist/generated/schemas/standalone/ResourceType.json +4 -4
- package/dist/generated/schemas/standalone/RunnableStrategy.json +7 -7
- package/dist/generated/schemas/standalone/StrategyRun.json +7 -7
- package/dist/generated/types/standalone/Resource_Genesis.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_Job.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
- package/dist/generated/types/types.d.ts +229 -221
- package/dist/index.d.ts +1 -1
- package/dist/scripts/generateStandaloneType.js +2 -1
- package/dist/scripts/generateTypes.js +136 -3
- package/package.json +1 -1
- package/src/Genesis.json +54 -28
- package/src/generated/artifacts/constants.ts +4 -3
- package/src/generated/artifacts/dependencyMap.json +10 -6
- package/src/generated/artifacts/terminals.json +1 -0
- package/src/generated/normalized/Genesis.json +1785 -1760
- package/src/generated/resources/Genesis.json +2833 -2796
- package/src/generated/schemas/Genesis.json +1348 -1329
- package/src/generated/schemas/standalone/Job.json +7 -8
- package/src/generated/schemas/standalone/RawStrategy.json +580 -580
- package/src/generated/schemas/standalone/ResourceType.json +4 -4
- package/src/generated/schemas/standalone/RunnableStrategy.json +645 -645
- package/src/generated/schemas/standalone/StrategyRun.json +913 -913
- package/src/generated/types/standalone/Resource_Genesis.d.ts +1 -1
- package/src/generated/types/standalone/Resource_Job.d.ts +1 -1
- package/src/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
- package/src/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
- package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
- package/src/generated/types/types.d.ts +717 -709
- package/src/index.ts +48 -45
- package/src/scripts/generateStandaloneType.ts +3 -1
- 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
|
|
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
|
|
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
|
|
20
|
-
|
|
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
|
|
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
|
|
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
|
|
37
|
+
export type ResourceTypeJson =
|
|
38
38
|
{
|
|
39
|
-
identity:
|
|
39
|
+
identity: ResourceTypeIdentityJson;
|
|
40
40
|
nucleusSchema: unknown;
|
|
41
|
-
|
|
42
|
-
[k: string]:
|
|
41
|
+
embeddingUriDict?: {
|
|
42
|
+
[k: string]: UriJson;
|
|
43
43
|
};
|
|
44
|
-
|
|
45
|
-
[k: string]:
|
|
44
|
+
generatorUriDict?: {
|
|
45
|
+
[k: string]: UriJson;
|
|
46
46
|
};
|
|
47
|
-
} &
|
|
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
|
|
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
|
|
58
|
+
export type ResourceRoleValueJson =
|
|
59
59
|
{
|
|
60
|
-
resourceTypeHandle:
|
|
61
|
-
} &
|
|
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
|
|
74
|
+
export type ErrorJson =
|
|
67
75
|
{
|
|
68
|
-
} &
|
|
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
|
|
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
|
|
90
|
+
export type JobJson =
|
|
83
91
|
{
|
|
84
|
-
identity:
|
|
92
|
+
identity: JobIdentityJson;
|
|
85
93
|
implementationUri: string;
|
|
86
|
-
} &
|
|
87
|
-
|
|
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
|
|
93
|
-
|
|
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
|
|
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
|
|
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
|
|
118
|
+
export type JobStepJson =
|
|
111
119
|
{
|
|
112
|
-
identity:
|
|
120
|
+
identity: JobStepIdentityJson;
|
|
113
121
|
stepKind: "job";
|
|
114
|
-
jobHandle:
|
|
115
|
-
} &
|
|
116
|
-
|
|
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
|
|
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
|
|
135
|
+
export type BranchStepJson =
|
|
128
136
|
{
|
|
129
|
-
identity:
|
|
137
|
+
identity: BranchStepIdentityJson;
|
|
130
138
|
stepKind: "branch";
|
|
131
139
|
/**
|
|
132
140
|
* @minItems 1
|
|
133
141
|
*/
|
|
134
|
-
cases: [
|
|
135
|
-
} &
|
|
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
|
|
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
|
|
154
|
+
export type WhileStepJson =
|
|
147
155
|
{
|
|
148
|
-
identity:
|
|
156
|
+
identity: WhileStepIdentityJson;
|
|
149
157
|
stepKind: "while";
|
|
150
|
-
case:
|
|
151
|
-
} &
|
|
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
|
|
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
|
|
170
|
+
export type ForStepJson =
|
|
163
171
|
{
|
|
164
|
-
identity:
|
|
172
|
+
identity: ForStepIdentityJson;
|
|
165
173
|
stepKind: "for";
|
|
166
|
-
case:
|
|
167
|
-
} &
|
|
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
|
|
173
|
-
|
|
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
|
|
179
|
-
|
|
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
|
|
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
|
|
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
|
|
204
|
+
export type ShellMissingJson =
|
|
197
205
|
{
|
|
198
206
|
resourceShellKind: "missing";
|
|
199
|
-
} &
|
|
200
|
-
|
|
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
|
|
213
|
+
export type ShellInputPotentialJson =
|
|
206
214
|
{
|
|
207
215
|
resourceShellKind: "inputPotential";
|
|
208
|
-
} &
|
|
209
|
-
|
|
210
|
-
|
|
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
|
|
223
|
+
export type ShellOutputPotentialJson =
|
|
216
224
|
{
|
|
217
225
|
resourceShellKind: "outputPotential";
|
|
218
|
-
} &
|
|
219
|
-
|
|
220
|
-
|
|
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
|
|
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
|
|
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
|
|
245
|
+
export type ShellMaterializedBaseJson =
|
|
238
246
|
{
|
|
239
247
|
version: 1;
|
|
240
248
|
resourceShellKind: "materialized";
|
|
241
|
-
} &
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
|
258
|
+
export type ShellMaterializedBase1Json =
|
|
251
259
|
{
|
|
252
260
|
version: 1;
|
|
253
261
|
resourceShellKind: "materialized";
|
|
254
|
-
} &
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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
|
|
271
|
+
export type ResourceMissingJson =
|
|
264
272
|
{
|
|
265
273
|
resourceShellKind: "missing";
|
|
266
|
-
} &
|
|
267
|
-
|
|
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
|
|
280
|
+
export type ResourceInputPotentialJson =
|
|
273
281
|
{
|
|
274
282
|
resourceShellKind: "inputPotential";
|
|
275
|
-
} &
|
|
276
|
-
|
|
277
|
-
|
|
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
|
|
290
|
+
export type ResourceOutputPotentialJson =
|
|
283
291
|
{
|
|
284
292
|
resourceShellKind: "outputPotential";
|
|
285
|
-
} &
|
|
286
|
-
|
|
287
|
-
|
|
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
|
|
293
|
-
|
|
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
|
|
306
|
+
export type JsonDataJson =
|
|
299
307
|
| null
|
|
300
308
|
| boolean
|
|
301
309
|
| number
|
|
302
310
|
| string
|
|
303
|
-
|
|
|
311
|
+
| JsonDataJson[]
|
|
304
312
|
| {
|
|
305
|
-
[k: string]:
|
|
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
|
|
319
|
+
export type ResourceJson =
|
|
312
320
|
{
|
|
313
|
-
} &
|
|
314
|
-
|
|
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
|
|
320
|
-
|
|
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
|
|
333
|
+
export type RawStrategyJson =
|
|
326
334
|
{
|
|
327
|
-
} &
|
|
328
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
359
|
+
export type RunnableStrategyJson =
|
|
352
360
|
{
|
|
353
|
-
identity:
|
|
354
|
-
runnableStrategyContext:
|
|
355
|
-
} &
|
|
356
|
-
|
|
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
|
|
369
|
+
export type RunnableStrategyUpdateJson =
|
|
362
370
|
{
|
|
363
|
-
runnableStrategyHandle:
|
|
364
|
-
} &
|
|
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
|
|
377
|
+
export type RunEventUpdatesJson =
|
|
370
378
|
{
|
|
371
379
|
stepsMutation?: {
|
|
372
380
|
insertAt: number;
|
|
373
|
-
inserted:
|
|
381
|
+
inserted: StepArrayJson;
|
|
374
382
|
};
|
|
375
383
|
interruptData?: {
|
|
376
384
|
} | null;
|
|
377
|
-
} &
|
|
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
|
|
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
|
|
389
|
-
|
|
396
|
+
export type GraphStartRunEventJson =
|
|
397
|
+
RunEventBaseJson & {
|
|
390
398
|
runEventKind?: "graph_start";
|
|
391
|
-
runnableStrategySeed:
|
|
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
|
|
398
|
-
|
|
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
|
|
406
|
-
|
|
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
|
|
414
|
-
|
|
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
|
|
422
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
453
|
-
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
|
|
460
|
-
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` "
|
|
472
|
+
* via the `definition` "RoleDict".
|
|
465
473
|
*/
|
|
466
|
-
export type
|
|
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
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
"ROLE-ErrorOutput":
|
|
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
|
|
486
|
-
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
|
|
493
|
-
inputBindings:
|
|
494
|
-
outputBindings:
|
|
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
|
|
501
|
-
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
|
|
508
|
-
stepKind:
|
|
515
|
+
export interface StepKindFacetJson {
|
|
516
|
+
stepKind: StepKindJson;
|
|
509
517
|
}
|
|
510
|
-
export interface
|
|
511
|
-
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
|
|
518
|
-
when:
|
|
519
|
-
what:
|
|
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
|
|
526
|
-
resourceRoleHandle:
|
|
527
|
-
jobStepHandle:
|
|
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
|
|
534
|
-
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
|
|
541
|
-
identity:
|
|
542
|
-
resourceTypeHandle:
|
|
543
|
-
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
|
|
550
|
-
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
|
|
557
|
-
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
|
|
564
|
-
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
|
|
571
|
-
[k: string]:
|
|
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
|
|
585
|
+
export interface NucleusFacetJson {
|
|
578
586
|
nucleus: unknown;
|
|
579
587
|
}
|
|
580
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
598
|
-
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
|
|
605
|
-
steps:
|
|
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
|
|
612
|
-
status:
|
|
613
|
-
startedAt?:
|
|
614
|
-
completedAt?:
|
|
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` "
|
|
626
|
+
* via the `definition` "StrategyThreadDict".
|
|
619
627
|
*/
|
|
620
|
-
export type
|
|
628
|
+
export type StrategyThreadDictJson = Record<StrategyThreadIdentityJson, StepArrayJson>;
|
|
621
629
|
/**
|
|
622
630
|
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
623
|
-
* via the `definition` "
|
|
631
|
+
* via the `definition` "StrategyThreadDictFacet".
|
|
624
632
|
*/
|
|
625
|
-
export interface
|
|
626
|
-
|
|
633
|
+
export interface StrategyThreadDictFacetJson {
|
|
634
|
+
strategyThreadDict: StrategyThreadDictJson;
|
|
627
635
|
}
|
|
628
|
-
export interface
|
|
629
|
-
|
|
636
|
+
export interface StrategyThreadDictFacet1Json {
|
|
637
|
+
strategyThreadDict: StrategyThreadDictJson;
|
|
630
638
|
}
|
|
631
|
-
export interface
|
|
632
|
-
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
|
|
639
|
-
strategyStateUpdate:
|
|
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
|
|
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
|
|
654
|
-
stepHandle:
|
|
655
|
-
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
|
|
663
|
-
runEventKind:
|
|
664
|
-
runnableStrategyHandle:
|
|
665
|
-
strategyThreadHandle:
|
|
666
|
-
createdAt:
|
|
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?:
|
|
670
|
-
stepMetadata?:
|
|
671
|
-
updates?:
|
|
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
|
|
678
|
-
identity:
|
|
685
|
+
export interface StrategyRunJson {
|
|
686
|
+
identity: StrategyRunIdentityJson;
|
|
679
687
|
runnableStrategyHandle: string;
|
|
680
|
-
recordedAt:
|
|
681
|
-
runEvents:
|
|
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
|
|
688
|
-
identity:
|
|
695
|
+
export interface GoalJson {
|
|
696
|
+
identity: GoalIdentityJson;
|
|
689
697
|
target: number;
|
|
690
|
-
disallowedJobs?:
|
|
691
|
-
disallowedSequences?:
|
|
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
|
|
700
|
-
identity:
|
|
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
|
|
707
|
-
identity:
|
|
714
|
+
export interface BooleanJson {
|
|
715
|
+
identity: BooleanIdentityJson;
|
|
708
716
|
}
|
|
709
717
|
|