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