@toolproof-npm/schema 0.1.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/README.md +58 -0
- package/dist/_lib/test.d.ts +1 -0
- package/dist/_lib/test.js +122 -0
- package/dist/_lib/types/ResourceData_Job.d.ts +97 -0
- package/dist/_lib/types/ResourceData_Job.js +1 -0
- package/dist/_lib/types/types.d.ts +659 -0
- package/dist/_lib/types/types.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/schemas/Genesis.d.ts +2 -0
- package/dist/schemas/Genesis.js +2 -0
- package/dist/schemas/Genesis.json +1241 -0
- package/dist/schemas/Job.d.ts +2 -0
- package/dist/schemas/Job.js +2 -0
- package/dist/schemas/Job.json +161 -0
- package/dist/scripts/brandFactories.d.ts +25 -0
- package/dist/scripts/brandFactories.js +50 -0
- package/dist/scripts/extractSchemas.d.ts +1 -0
- package/dist/scripts/extractSchemas.js +173 -0
- package/dist/scripts/extractSubschemaWithDefs.d.ts +1 -0
- package/dist/scripts/extractSubschemaWithDefs.js +139 -0
- package/dist/scripts/generateResourceData.d.ts +1 -0
- package/dist/scripts/generateResourceData.js +132 -0
- package/dist/scripts/generateTypes.d.ts +1 -0
- package/dist/scripts/generateTypes.js +411 -0
- package/package.json +47 -0
|
@@ -0,0 +1,659 @@
|
|
|
1
|
+
// Auto-generated from JSON schemas. Do not edit.
|
|
2
|
+
|
|
3
|
+
export type CombinedEntry =
|
|
4
|
+
| BranchStep
|
|
5
|
+
| BranchStepId
|
|
6
|
+
| ConditionalWrapper
|
|
7
|
+
| CreationContext
|
|
8
|
+
| Description
|
|
9
|
+
| Documented
|
|
10
|
+
| Execution
|
|
11
|
+
| ExecutionId
|
|
12
|
+
| ExtractionSchema
|
|
13
|
+
| ExtractionSchemaValue
|
|
14
|
+
| ForStep
|
|
15
|
+
| ForStepId
|
|
16
|
+
| FormatBase
|
|
17
|
+
| FormatData
|
|
18
|
+
| FormatId
|
|
19
|
+
| FormatMeta
|
|
20
|
+
| Identifiable
|
|
21
|
+
| IdentifiableDocumented
|
|
22
|
+
| IdentityProp
|
|
23
|
+
| IdentityValue
|
|
24
|
+
| Job
|
|
25
|
+
| JsonValue
|
|
26
|
+
| MeritProp
|
|
27
|
+
| MeritValue
|
|
28
|
+
| Name
|
|
29
|
+
| Path
|
|
30
|
+
| ResourceBase
|
|
31
|
+
| ResourceData
|
|
32
|
+
| ResourceDataMeta
|
|
33
|
+
| ResourceDataMetaBase
|
|
34
|
+
| ResourceId
|
|
35
|
+
| ResourceKind
|
|
36
|
+
| ResourceMap
|
|
37
|
+
| ResourceMapPointer
|
|
38
|
+
| ResourceMeta
|
|
39
|
+
| ResourcePotentialInput
|
|
40
|
+
| ResourcePotentialOutput
|
|
41
|
+
| ResourceSocket
|
|
42
|
+
| ResourceStoragePointer
|
|
43
|
+
| RoleBindingMap
|
|
44
|
+
| RoleBindingsInner
|
|
45
|
+
| RoleBindingsOuter1
|
|
46
|
+
| RoleId
|
|
47
|
+
| RoleLiteral
|
|
48
|
+
| RoleMap
|
|
49
|
+
| RolesInner
|
|
50
|
+
| RolesOuter
|
|
51
|
+
| Step
|
|
52
|
+
| StepId
|
|
53
|
+
| StepKind
|
|
54
|
+
| Timestamp
|
|
55
|
+
| TypeBase
|
|
56
|
+
| TypeData
|
|
57
|
+
| TypeId
|
|
58
|
+
| TypeMeta
|
|
59
|
+
| Uri
|
|
60
|
+
| WhileStep
|
|
61
|
+
| WhileStepId
|
|
62
|
+
| WorkStep
|
|
63
|
+
| WorkStepId
|
|
64
|
+
| Workflow
|
|
65
|
+
| WorkflowId
|
|
66
|
+
| WorkflowSpec
|
|
67
|
+
| WorkflowSpecId
|
|
68
|
+
| GenesisJson
|
|
69
|
+
| Job_Documented
|
|
70
|
+
| Job_RolesOuter
|
|
71
|
+
| Job_Uri
|
|
72
|
+
| Job_Name
|
|
73
|
+
| Job_Description
|
|
74
|
+
| Job_RolesInner
|
|
75
|
+
| Job_RoleMap
|
|
76
|
+
| Job_RoleLiteral
|
|
77
|
+
| Job_RoleId
|
|
78
|
+
| Job_TypeId;
|
|
79
|
+
/**
|
|
80
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
81
|
+
* via the `definition` "BranchStep".
|
|
82
|
+
*/
|
|
83
|
+
export type BranchStep = Identifiable &
|
|
84
|
+
StepKind & {
|
|
85
|
+
/**
|
|
86
|
+
* @minItems 1
|
|
87
|
+
*/
|
|
88
|
+
cases: [ConditionalWrapper, ...ConditionalWrapper[]];
|
|
89
|
+
id: BranchStepId;
|
|
90
|
+
kind: "branch";
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
94
|
+
* via the `definition` "WorkStep".
|
|
95
|
+
*/
|
|
96
|
+
export type WorkStep = Identifiable &
|
|
97
|
+
StepKind & {
|
|
98
|
+
execution: Execution;
|
|
99
|
+
id: WorkStepId;
|
|
100
|
+
kind: "work";
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
104
|
+
* via the `definition` "Execution".
|
|
105
|
+
*/
|
|
106
|
+
export type Execution = Identifiable & {
|
|
107
|
+
id: ExecutionId;
|
|
108
|
+
jobId: ResourceId;
|
|
109
|
+
} & RoleBindingsOuter;
|
|
110
|
+
/**
|
|
111
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
112
|
+
* via the `definition` "ExecutionId".
|
|
113
|
+
*/
|
|
114
|
+
export type ExecutionId = `EXECUTION-${string}`;
|
|
115
|
+
/**
|
|
116
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
117
|
+
* via the `definition` "ResourceId".
|
|
118
|
+
*/
|
|
119
|
+
export type ResourceId = `RESOURCE-${string}`;
|
|
120
|
+
/**
|
|
121
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
122
|
+
* via the `definition` "WorkStepId".
|
|
123
|
+
*/
|
|
124
|
+
export type WorkStepId = `WORKSTEP-${string}`;
|
|
125
|
+
/**
|
|
126
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
127
|
+
* via the `definition` "BranchStepId".
|
|
128
|
+
*/
|
|
129
|
+
export type BranchStepId = `BRANCHSTEP-${string}`;
|
|
130
|
+
/**
|
|
131
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
132
|
+
* via the `definition` "RoleId".
|
|
133
|
+
*/
|
|
134
|
+
export type RoleId = `ROLE-${string}`;
|
|
135
|
+
/**
|
|
136
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
137
|
+
* via the `definition` "Documented".
|
|
138
|
+
*/
|
|
139
|
+
export type Documented = Name & Description;
|
|
140
|
+
/**
|
|
141
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
142
|
+
* via the `definition` "ExtractionSchemaValue".
|
|
143
|
+
*/
|
|
144
|
+
export type ExtractionSchemaValue = unknown &
|
|
145
|
+
IdentityProp &
|
|
146
|
+
MeritProp & {
|
|
147
|
+
} & {
|
|
148
|
+
$id?: string;
|
|
149
|
+
$schema: "https://json-schema.org/draft/2020-12/schema";
|
|
150
|
+
$defs?: {
|
|
151
|
+
};
|
|
152
|
+
type: "object";
|
|
153
|
+
allOf?: {
|
|
154
|
+
}[];
|
|
155
|
+
properties?: {
|
|
156
|
+
};
|
|
157
|
+
additionalProperties?: false;
|
|
158
|
+
unevaluatedProperties?: false;
|
|
159
|
+
$anchor?: string;
|
|
160
|
+
} & {
|
|
161
|
+
$id?: string;
|
|
162
|
+
$schema: "https://json-schema.org/draft/2020-12/schema";
|
|
163
|
+
$defs?: {
|
|
164
|
+
};
|
|
165
|
+
type: "object";
|
|
166
|
+
allOf?: {
|
|
167
|
+
}[];
|
|
168
|
+
properties?: {
|
|
169
|
+
};
|
|
170
|
+
additionalProperties?: false;
|
|
171
|
+
unevaluatedProperties?: false;
|
|
172
|
+
$anchor?: string;
|
|
173
|
+
} & {
|
|
174
|
+
$id?: string;
|
|
175
|
+
$schema: "https://json-schema.org/draft/2020-12/schema";
|
|
176
|
+
$defs?: {
|
|
177
|
+
};
|
|
178
|
+
type: "object";
|
|
179
|
+
allOf?: {
|
|
180
|
+
}[];
|
|
181
|
+
properties?: {
|
|
182
|
+
};
|
|
183
|
+
additionalProperties?: false;
|
|
184
|
+
unevaluatedProperties?: false;
|
|
185
|
+
$anchor?: string;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
189
|
+
* via the `definition` "IdentityValue".
|
|
190
|
+
*/
|
|
191
|
+
export type IdentityValue =
|
|
192
|
+
| {
|
|
193
|
+
type: "string" | "integer" | "boolean";
|
|
194
|
+
}
|
|
195
|
+
| {
|
|
196
|
+
/**
|
|
197
|
+
* @minItems 1
|
|
198
|
+
*/
|
|
199
|
+
enum: [string, ...string[]];
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
203
|
+
* via the `definition` "MeritValue".
|
|
204
|
+
*/
|
|
205
|
+
export type MeritValue =
|
|
206
|
+
| {
|
|
207
|
+
type: "number" | "integer";
|
|
208
|
+
}
|
|
209
|
+
| {
|
|
210
|
+
/**
|
|
211
|
+
* @minItems 1
|
|
212
|
+
*/
|
|
213
|
+
enum: [number, ...number[]];
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
217
|
+
* via the `definition` "ForStep".
|
|
218
|
+
*/
|
|
219
|
+
export type ForStep = Identifiable &
|
|
220
|
+
StepKind & {
|
|
221
|
+
case: ConditionalWrapper;
|
|
222
|
+
id: ForStepId;
|
|
223
|
+
kind: "for";
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
227
|
+
* via the `definition` "ForStepId".
|
|
228
|
+
*/
|
|
229
|
+
export type ForStepId = `FORSTEP-${string}`;
|
|
230
|
+
/**
|
|
231
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
232
|
+
* via the `definition` "FormatBase".
|
|
233
|
+
*/
|
|
234
|
+
export type FormatBase = IdentifiableDocumented & {
|
|
235
|
+
id: FormatId;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
239
|
+
* via the `definition` "IdentifiableDocumented".
|
|
240
|
+
*/
|
|
241
|
+
export type IdentifiableDocumented = Identifiable & Documented;
|
|
242
|
+
/**
|
|
243
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
244
|
+
* via the `definition` "FormatId".
|
|
245
|
+
*/
|
|
246
|
+
export type FormatId = `FORMAT-${string}`;
|
|
247
|
+
/**
|
|
248
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
249
|
+
* via the `definition` "FormatData".
|
|
250
|
+
*/
|
|
251
|
+
export type FormatData = FormatBase;
|
|
252
|
+
/**
|
|
253
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
254
|
+
* via the `definition` "FormatMeta".
|
|
255
|
+
*/
|
|
256
|
+
export type FormatMeta = FormatBase & Path;
|
|
257
|
+
export type Job = Job_Documented &
|
|
258
|
+
Job_RolesOuter &
|
|
259
|
+
Job_Uri & {
|
|
260
|
+
identity: string;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
264
|
+
* via the `definition` "Documented".
|
|
265
|
+
*/
|
|
266
|
+
export type Job_Documented = Job_Name & Job_Description;
|
|
267
|
+
/**
|
|
268
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
269
|
+
* via the `definition` "RoleLiteral".
|
|
270
|
+
*/
|
|
271
|
+
export type Job_RoleLiteral = {
|
|
272
|
+
typeId: Job_TypeId;
|
|
273
|
+
} & Job_Documented;
|
|
274
|
+
/**
|
|
275
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
276
|
+
* via the `definition` "TypeId".
|
|
277
|
+
*/
|
|
278
|
+
export type Job_TypeId = string;
|
|
279
|
+
/**
|
|
280
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
281
|
+
* via the `definition` "RoleId".
|
|
282
|
+
*/
|
|
283
|
+
export type Job_RoleId = string;
|
|
284
|
+
/**
|
|
285
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
286
|
+
* via the `definition` "JsonValue".
|
|
287
|
+
*/
|
|
288
|
+
export type JsonValue =
|
|
289
|
+
| null
|
|
290
|
+
| boolean
|
|
291
|
+
| number
|
|
292
|
+
| string
|
|
293
|
+
| JsonValue[]
|
|
294
|
+
| {
|
|
295
|
+
[k: string]: JsonValue;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
299
|
+
* via the `definition` "ResourceBase".
|
|
300
|
+
*/
|
|
301
|
+
export type ResourceBase = Identifiable & {
|
|
302
|
+
id: ResourceId;
|
|
303
|
+
} & {
|
|
304
|
+
typeId: TypeId;
|
|
305
|
+
} & CreationContext;
|
|
306
|
+
/**
|
|
307
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
308
|
+
* via the `definition` "TypeId".
|
|
309
|
+
*/
|
|
310
|
+
export type TypeId = `TYPE-${string}`;
|
|
311
|
+
/**
|
|
312
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
313
|
+
* via the `definition` "ResourceData".
|
|
314
|
+
*/
|
|
315
|
+
export type ResourceData = ResourceDataMetaBase & {
|
|
316
|
+
extractedData: {
|
|
317
|
+
identity: string | number | boolean;
|
|
318
|
+
[k: string]: JsonValue;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
323
|
+
* via the `definition` "ResourceDataMetaBase".
|
|
324
|
+
*/
|
|
325
|
+
export type ResourceDataMetaBase = ResourceBase &
|
|
326
|
+
ResourceKind & {
|
|
327
|
+
kind: "realized";
|
|
328
|
+
} & Path &
|
|
329
|
+
Timestamp;
|
|
330
|
+
export type ResourceDataMeta = ResourceBase &
|
|
331
|
+
ResourceKind & {
|
|
332
|
+
kind: "realized";
|
|
333
|
+
} & Path &
|
|
334
|
+
Timestamp;
|
|
335
|
+
/**
|
|
336
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
337
|
+
* via the `definition` "ResourcePotentialInput".
|
|
338
|
+
*/
|
|
339
|
+
export type ResourcePotentialInput = ResourceBase &
|
|
340
|
+
ResourceKind & {
|
|
341
|
+
kind: "potential-input";
|
|
342
|
+
} & ResourceMapPointer;
|
|
343
|
+
/**
|
|
344
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
345
|
+
* via the `definition` "ResourcePotentialOutput".
|
|
346
|
+
*/
|
|
347
|
+
export type ResourcePotentialOutput = ResourceBase &
|
|
348
|
+
ResourceKind & {
|
|
349
|
+
kind: "potential-output";
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
353
|
+
* via the `definition` "ResourceMeta".
|
|
354
|
+
*/
|
|
355
|
+
export type ResourceMeta = ResourceBase & ResourceStoragePointer & Timestamp;
|
|
356
|
+
/**
|
|
357
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
358
|
+
* via the `definition` "RoleLiteral".
|
|
359
|
+
*/
|
|
360
|
+
export type RoleLiteral = {
|
|
361
|
+
typeId: TypeId;
|
|
362
|
+
} & Documented;
|
|
363
|
+
/**
|
|
364
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
365
|
+
* via the `definition` "Step".
|
|
366
|
+
*/
|
|
367
|
+
export type Step = WorkStep | BranchStep | WhileStep | ForStep;
|
|
368
|
+
/**
|
|
369
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
370
|
+
* via the `definition` "WhileStep".
|
|
371
|
+
*/
|
|
372
|
+
export type WhileStep = Identifiable &
|
|
373
|
+
StepKind & {
|
|
374
|
+
case: ConditionalWrapper;
|
|
375
|
+
id: WhileStepId;
|
|
376
|
+
kind: "while";
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
380
|
+
* via the `definition` "WhileStepId".
|
|
381
|
+
*/
|
|
382
|
+
export type WhileStepId = `WHILESTEP-${string}`;
|
|
383
|
+
/**
|
|
384
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
385
|
+
* via the `definition` "StepId".
|
|
386
|
+
*/
|
|
387
|
+
export type StepId = WorkStepId | BranchStepId | WhileStepId | ForStepId;
|
|
388
|
+
/**
|
|
389
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
390
|
+
* via the `definition` "TypeBase".
|
|
391
|
+
*/
|
|
392
|
+
export type TypeBase = IdentifiableDocumented & {
|
|
393
|
+
formatId: FormatId;
|
|
394
|
+
id: TypeId;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
398
|
+
* via the `definition` "TypeData".
|
|
399
|
+
*/
|
|
400
|
+
export type TypeData = TypeBase & ExtractionSchema;
|
|
401
|
+
/**
|
|
402
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
403
|
+
* via the `definition` "TypeMeta".
|
|
404
|
+
*/
|
|
405
|
+
export type TypeMeta = TypeBase &
|
|
406
|
+
Path & {
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
410
|
+
* via the `definition` "Workflow".
|
|
411
|
+
*/
|
|
412
|
+
export type Workflow = Identifiable & {
|
|
413
|
+
id: WorkflowId;
|
|
414
|
+
steps: Step[];
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
418
|
+
* via the `definition` "WorkflowId".
|
|
419
|
+
*/
|
|
420
|
+
export type WorkflowId = `WORKFLOW-${string}`;
|
|
421
|
+
/**
|
|
422
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
423
|
+
* via the `definition` "WorkflowSpec".
|
|
424
|
+
*/
|
|
425
|
+
export type WorkflowSpec = Identifiable & {
|
|
426
|
+
id: WorkflowSpecId;
|
|
427
|
+
resourceMaps: ResourceMap[];
|
|
428
|
+
workflow: Workflow;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
432
|
+
* via the `definition` "WorkflowSpecId".
|
|
433
|
+
*/
|
|
434
|
+
export type WorkflowSpecId = `WORKFLOWSPEC-${string}`;
|
|
435
|
+
/**
|
|
436
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
437
|
+
* via the `definition` "ResourceDataMeta".
|
|
438
|
+
*/
|
|
439
|
+
export type ResourceDataMetaBase1 = ResourceBase &
|
|
440
|
+
ResourceKind & {
|
|
441
|
+
kind: "realized";
|
|
442
|
+
} & Path &
|
|
443
|
+
Timestamp;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
447
|
+
* via the `definition` "Identifiable".
|
|
448
|
+
*/
|
|
449
|
+
export interface Identifiable {
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
453
|
+
* via the `definition` "StepKind".
|
|
454
|
+
*/
|
|
455
|
+
export interface StepKind {
|
|
456
|
+
kind: "work" | "branch" | "while" | "for";
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
460
|
+
* via the `definition` "ConditionalWrapper".
|
|
461
|
+
*/
|
|
462
|
+
export interface ConditionalWrapper {
|
|
463
|
+
what: WorkStep;
|
|
464
|
+
when: WorkStep;
|
|
465
|
+
}
|
|
466
|
+
export interface RoleBindingsOuter {
|
|
467
|
+
roleBindings: RoleBindingsInner;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
471
|
+
* via the `definition` "RoleBindingsInner".
|
|
472
|
+
*/
|
|
473
|
+
export interface RoleBindingsInner {
|
|
474
|
+
inputBindingMap: RoleBindingMap;
|
|
475
|
+
outputBindingMap: RoleBindingMap;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
479
|
+
* via the `definition` "RoleBindingMap".
|
|
480
|
+
*/
|
|
481
|
+
export type RoleBindingMap = Record<RoleId, ResourceId>;
|
|
482
|
+
/**
|
|
483
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
484
|
+
* via the `definition` "CreationContext".
|
|
485
|
+
*/
|
|
486
|
+
export interface CreationContext {
|
|
487
|
+
creationContext: ResourceSocket;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
491
|
+
* via the `definition` "ResourceSocket".
|
|
492
|
+
*/
|
|
493
|
+
export interface ResourceSocket {
|
|
494
|
+
executionId: ExecutionId;
|
|
495
|
+
roleId: RoleId;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
499
|
+
* via the `definition` "Description".
|
|
500
|
+
*/
|
|
501
|
+
export interface Description {
|
|
502
|
+
description: string;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
506
|
+
* via the `definition` "Name".
|
|
507
|
+
*/
|
|
508
|
+
export interface Name {
|
|
509
|
+
name: string;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
513
|
+
* via the `definition` "ExtractionSchema".
|
|
514
|
+
*/
|
|
515
|
+
export interface ExtractionSchema {
|
|
516
|
+
extractionSchema: unknown;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
520
|
+
* via the `definition` "IdentityProp".
|
|
521
|
+
*/
|
|
522
|
+
export interface IdentityProp {
|
|
523
|
+
properties: {
|
|
524
|
+
identity: IdentityValue;
|
|
525
|
+
};
|
|
526
|
+
required: string[];
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
530
|
+
* via the `definition` "MeritProp".
|
|
531
|
+
*/
|
|
532
|
+
export interface MeritProp {
|
|
533
|
+
properties?: {
|
|
534
|
+
merit?: MeritValue;
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
539
|
+
* via the `definition` "Path".
|
|
540
|
+
*/
|
|
541
|
+
export interface Path {
|
|
542
|
+
path: string;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
546
|
+
* via the `definition` "Name".
|
|
547
|
+
*/
|
|
548
|
+
export interface Job_Name {
|
|
549
|
+
name: string;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
553
|
+
* via the `definition` "Description".
|
|
554
|
+
*/
|
|
555
|
+
export interface Job_Description {
|
|
556
|
+
description: string;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
560
|
+
* via the `definition` "RolesOuter".
|
|
561
|
+
*/
|
|
562
|
+
export interface Job_RolesOuter {
|
|
563
|
+
roles: Job_RolesInner;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
567
|
+
* via the `definition` "RolesInner".
|
|
568
|
+
*/
|
|
569
|
+
export interface Job_RolesInner {
|
|
570
|
+
inputMap: Job_RoleMap;
|
|
571
|
+
outputMap: Job_RoleMap;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
575
|
+
* via the `definition` "RoleMap".
|
|
576
|
+
*/
|
|
577
|
+
export interface Job_RoleMap {
|
|
578
|
+
[k: string]: Job_RoleLiteral;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* This interface was referenced by `undefined`'s JSON-Schema
|
|
582
|
+
* via the `definition` "Uri".
|
|
583
|
+
*/
|
|
584
|
+
export interface Job_Uri {
|
|
585
|
+
uri: string;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
589
|
+
* via the `definition` "ResourceKind".
|
|
590
|
+
*/
|
|
591
|
+
export interface ResourceKind {
|
|
592
|
+
kind: "potential-input" | "potential-output" | "realized";
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
596
|
+
* via the `definition` "Timestamp".
|
|
597
|
+
*/
|
|
598
|
+
export interface Timestamp {
|
|
599
|
+
timestamp: string;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
603
|
+
* via the `definition` "ResourceMap".
|
|
604
|
+
*/
|
|
605
|
+
export type ResourceMap = Record<ExecutionId, Record<RoleId, ResourcePotential | ResourceData>>;
|
|
606
|
+
/**
|
|
607
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
608
|
+
* via the `definition` "ResourceMapPointer".
|
|
609
|
+
*/
|
|
610
|
+
export interface ResourceMapPointer {
|
|
611
|
+
resourceMapPointer: ResourceSocket1;
|
|
612
|
+
}
|
|
613
|
+
export interface ResourceSocket1 {
|
|
614
|
+
executionId: ExecutionId;
|
|
615
|
+
roleId: RoleId;
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
619
|
+
* via the `definition` "ResourceStoragePointer".
|
|
620
|
+
*/
|
|
621
|
+
export interface ResourceStoragePointer {
|
|
622
|
+
resourceStoragePointer: string;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
626
|
+
* via the `definition` "RoleBindingsOuter".
|
|
627
|
+
*/
|
|
628
|
+
export interface RoleBindingsOuter1 {
|
|
629
|
+
roleBindings: RoleBindingsInner;
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
633
|
+
* via the `definition` "RoleMap".
|
|
634
|
+
*/
|
|
635
|
+
export type RoleMap = Record<RoleId, RoleLiteral>;
|
|
636
|
+
/**
|
|
637
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
638
|
+
* via the `definition` "RolesInner".
|
|
639
|
+
*/
|
|
640
|
+
export interface RolesInner {
|
|
641
|
+
inputMap: RoleMap;
|
|
642
|
+
outputMap: RoleMap;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
646
|
+
* via the `definition` "RolesOuter".
|
|
647
|
+
*/
|
|
648
|
+
export interface RolesOuter {
|
|
649
|
+
roles: RolesInner;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
653
|
+
* via the `definition` "Uri".
|
|
654
|
+
*/
|
|
655
|
+
export interface Uri {
|
|
656
|
+
uri: string;
|
|
657
|
+
}
|
|
658
|
+
export interface GenesisJson {
|
|
659
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as GenesisSchema } from './schemas/Genesis.js';
|
|
2
|
+
export { default as JobSchema } from './schemas/Job.js';
|
|
3
|
+
export type { ResourceData_Job as ResourceData_JobJson } from './_lib/types/ResourceData_Job.js';
|
|
4
|
+
export type { Identifiable as IdentifiableJson, Documented as DocumentedJson, IdentifiableDocumented as IdentifiableDocumentedJson, FormatId as FormatIdJson, FormatMeta as FormatMetaJson, FormatData as FormatDataJson, ExtractionSchema as ExtractionSchemaJson, IdentityProp as IdentityPropJson, MeritProp as MeritPropJson, TypeId as TypeIdJson, TypeMeta as TypeMetaJson, TypeData as TypeDataJson, RoleId as RoleIdJson, RoleLiteral as RoleLiteralJson, ExecutionId as ExecutionIdJson, Execution as ExecutionJson, ConditionalWrapper as ConditionalWrapperJson, RoleMap as RoleMapJson, RolesOuter as RolesOuterJson, RoleBindingMap as RoleBindingMapJson, RoleBindingsOuter as RoleBindingsOuterJson, ResourceId as ResourceIdJson, WorkStepId as WorkStepIdJson, BranchStepId as BranchStepIdJson, WhileStepId as WhileStepIdJson, ForStepId as ForStepIdJson, WorkStep as WorkStepJson, BranchStep as BranchStepJson, WhileStep as WhileStepJson, ForStep as ForStepJson, StepId as StepIdJson, Step as StepJson, ResourceSocket as ResourceSocketJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMeta as ResourceMetaJson, ResourceData as ResourceDataJson, ResourceMap as ResourceMapJson, WorkflowId as WorkflowIdJson, Workflow as WorkflowJson, WorkflowSpecId as WorkflowSpecIdJson, WorkflowSpec as WorkflowSpecJson, Job as JobJson, JsonValue as JsonValueJson, } from './_lib/types/types.js';
|
|
5
|
+
export { unsafeBrand, asTypeId, asRoleId, asExecutionId, asResourceId, asWorkStepId, asBranchStepId, asForStepId, asFormatId, asWhileStepId, asWorkflowId, asWorkflowSpecId, asTypeIds, asRoleIds, asExecutionIds, asResourceIds, asWorkStepIds, asBranchStepIds, asForStepIds, asFormatIds, asWhileStepIds, asWorkflowIds, asWorkflowSpecIds, } from './scripts/brandFactories.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Re-export JSON schemas via .ts shims to avoid .json re-exports in declarations
|
|
2
|
+
export { default as GenesisSchema } from './schemas/Genesis.js';
|
|
3
|
+
export { default as JobSchema } from './schemas/Job.js';
|
|
4
|
+
// Re-export brand factories so consumers can construct branded IDs at runtime.
|
|
5
|
+
export { unsafeBrand, asTypeId, asRoleId, asExecutionId, asResourceId, asWorkStepId, asBranchStepId, asForStepId, asFormatId, asWhileStepId, asWorkflowId, asWorkflowSpecId, asTypeIds, asRoleIds, asExecutionIds, asResourceIds, asWorkStepIds, asBranchStepIds, asForStepIds, asFormatIds, asWhileStepIds, asWorkflowIds, asWorkflowSpecIds, } from './scripts/brandFactories.js';
|