@mokei/host-protocol 0.14.0 → 0.15.0
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/LICENSE +0 -0
- package/README.md +20 -1
- package/lib/flow-schemas.d.ts +764 -0
- package/lib/flow-schemas.d.ts.map +1 -0
- package/lib/flow-schemas.js +541 -0
- package/lib/index.d.ts +4672 -94
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +462 -7
- package/lib/monitor-schemas.d.ts +161 -0
- package/lib/monitor-schemas.d.ts.map +1 -0
- package/lib/monitor-schemas.js +207 -0
- package/lib/trace-schemas.d.ts +878 -0
- package/lib/trace-schemas.d.ts.map +1 -0
- package/lib/trace-schemas.js +269 -0
- package/package.json +6 -5
- package/CHANGELOG.md +0 -11
|
@@ -0,0 +1,764 @@
|
|
|
1
|
+
import type { FromSchema } from '@sozai/schema';
|
|
2
|
+
export declare const jsonDefinitions: {
|
|
3
|
+
readonly json: {
|
|
4
|
+
anyOf: ({
|
|
5
|
+
type: "string";
|
|
6
|
+
items?: undefined;
|
|
7
|
+
additionalProperties?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
type: "number";
|
|
10
|
+
items?: undefined;
|
|
11
|
+
additionalProperties?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
type: "boolean";
|
|
14
|
+
items?: undefined;
|
|
15
|
+
additionalProperties?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
type: "null";
|
|
18
|
+
items?: undefined;
|
|
19
|
+
additionalProperties?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
type: "array";
|
|
22
|
+
items: {
|
|
23
|
+
$ref: string;
|
|
24
|
+
};
|
|
25
|
+
additionalProperties?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
type: "object";
|
|
28
|
+
additionalProperties: {
|
|
29
|
+
$ref: string;
|
|
30
|
+
};
|
|
31
|
+
items?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const jsonObjectSchema: {
|
|
36
|
+
readonly type: "object";
|
|
37
|
+
readonly additionalProperties: {
|
|
38
|
+
$ref: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare const flowServiceStatusSchema: {
|
|
42
|
+
readonly anyOf: readonly [{
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly properties: {
|
|
45
|
+
readonly state: {
|
|
46
|
+
readonly const: "starting";
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly required: readonly ["state"];
|
|
51
|
+
readonly additionalProperties: false;
|
|
52
|
+
}, {
|
|
53
|
+
readonly type: "object";
|
|
54
|
+
readonly properties: {
|
|
55
|
+
readonly state: {
|
|
56
|
+
readonly const: "ready";
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly required: readonly ["state"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
}, {
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly state: {
|
|
66
|
+
readonly const: "failed";
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
readonly error: {
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly properties: {
|
|
72
|
+
readonly type: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
};
|
|
75
|
+
readonly message: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
};
|
|
78
|
+
readonly path: {
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
};
|
|
81
|
+
readonly issues: {
|
|
82
|
+
readonly type: "array";
|
|
83
|
+
readonly items: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly required: readonly ["type", "message"];
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly required: readonly ["state", "error"];
|
|
93
|
+
readonly additionalProperties: false;
|
|
94
|
+
}];
|
|
95
|
+
};
|
|
96
|
+
export type FlowServiceStatus = FromSchema<typeof flowServiceStatusSchema>;
|
|
97
|
+
export declare const runStateSchema: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly enum: readonly ["awaiting_approval", "denied", "working", "input_required", "completed", "failed", "cancelled"];
|
|
100
|
+
};
|
|
101
|
+
export declare const flowRunSnapshotSchema: {
|
|
102
|
+
readonly definitions: {
|
|
103
|
+
readonly json: {
|
|
104
|
+
anyOf: ({
|
|
105
|
+
type: "string";
|
|
106
|
+
items?: undefined;
|
|
107
|
+
additionalProperties?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
type: "number";
|
|
110
|
+
items?: undefined;
|
|
111
|
+
additionalProperties?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
type: "boolean";
|
|
114
|
+
items?: undefined;
|
|
115
|
+
additionalProperties?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
type: "null";
|
|
118
|
+
items?: undefined;
|
|
119
|
+
additionalProperties?: undefined;
|
|
120
|
+
} | {
|
|
121
|
+
type: "array";
|
|
122
|
+
items: {
|
|
123
|
+
$ref: string;
|
|
124
|
+
};
|
|
125
|
+
additionalProperties?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
type: "object";
|
|
128
|
+
additionalProperties: {
|
|
129
|
+
$ref: string;
|
|
130
|
+
};
|
|
131
|
+
items?: undefined;
|
|
132
|
+
})[];
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly type: "object";
|
|
136
|
+
readonly properties: {
|
|
137
|
+
readonly runID: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
};
|
|
140
|
+
readonly flowID: {
|
|
141
|
+
readonly type: "string";
|
|
142
|
+
};
|
|
143
|
+
readonly label: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
};
|
|
146
|
+
readonly state: {
|
|
147
|
+
readonly type: "string";
|
|
148
|
+
readonly enum: readonly ["awaiting_approval", "denied", "working", "input_required", "completed", "failed", "cancelled"];
|
|
149
|
+
};
|
|
150
|
+
readonly createdAt: {
|
|
151
|
+
readonly type: "number";
|
|
152
|
+
};
|
|
153
|
+
readonly updatedAt: {
|
|
154
|
+
readonly type: "number";
|
|
155
|
+
};
|
|
156
|
+
readonly traceID: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
};
|
|
159
|
+
readonly plan: {
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly tools: {
|
|
163
|
+
readonly type: "array";
|
|
164
|
+
readonly items: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly required: readonly ["tools"];
|
|
170
|
+
readonly additionalProperties: false;
|
|
171
|
+
};
|
|
172
|
+
readonly result: {
|
|
173
|
+
readonly type: "object";
|
|
174
|
+
readonly properties: {
|
|
175
|
+
readonly outcome: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
};
|
|
178
|
+
readonly output: {
|
|
179
|
+
$ref: string;
|
|
180
|
+
};
|
|
181
|
+
readonly content: {
|
|
182
|
+
readonly type: "array";
|
|
183
|
+
readonly items: {
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly additionalProperties: {
|
|
186
|
+
$ref: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly required: readonly ["content"];
|
|
192
|
+
readonly additionalProperties: false;
|
|
193
|
+
};
|
|
194
|
+
readonly error: {
|
|
195
|
+
readonly type: "object";
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly type: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
};
|
|
200
|
+
readonly message: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
};
|
|
203
|
+
readonly code: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
readonly required: readonly ["type", "message"];
|
|
208
|
+
readonly additionalProperties: false;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly required: readonly ["runID", "label", "state", "createdAt", "updatedAt", "plan"];
|
|
212
|
+
readonly additionalProperties: false;
|
|
213
|
+
};
|
|
214
|
+
export type FlowRunSnapshot = FromSchema<typeof flowRunSnapshotSchema>;
|
|
215
|
+
export declare const inboxItemSchema: {
|
|
216
|
+
readonly type: "object";
|
|
217
|
+
readonly definitions: {
|
|
218
|
+
readonly json: {
|
|
219
|
+
anyOf: ({
|
|
220
|
+
type: "string";
|
|
221
|
+
items?: undefined;
|
|
222
|
+
additionalProperties?: undefined;
|
|
223
|
+
} | {
|
|
224
|
+
type: "number";
|
|
225
|
+
items?: undefined;
|
|
226
|
+
additionalProperties?: undefined;
|
|
227
|
+
} | {
|
|
228
|
+
type: "boolean";
|
|
229
|
+
items?: undefined;
|
|
230
|
+
additionalProperties?: undefined;
|
|
231
|
+
} | {
|
|
232
|
+
type: "null";
|
|
233
|
+
items?: undefined;
|
|
234
|
+
additionalProperties?: undefined;
|
|
235
|
+
} | {
|
|
236
|
+
type: "array";
|
|
237
|
+
items: {
|
|
238
|
+
$ref: string;
|
|
239
|
+
};
|
|
240
|
+
additionalProperties?: undefined;
|
|
241
|
+
} | {
|
|
242
|
+
type: "object";
|
|
243
|
+
additionalProperties: {
|
|
244
|
+
$ref: string;
|
|
245
|
+
};
|
|
246
|
+
items?: undefined;
|
|
247
|
+
})[];
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly anyOf: readonly [{
|
|
251
|
+
readonly type: "object";
|
|
252
|
+
readonly properties: {
|
|
253
|
+
readonly id: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
};
|
|
256
|
+
readonly runID: {
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
};
|
|
259
|
+
readonly kind: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
readonly const: "approval";
|
|
262
|
+
};
|
|
263
|
+
readonly plan: {
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
readonly properties: {
|
|
266
|
+
readonly tools: {
|
|
267
|
+
readonly type: "array";
|
|
268
|
+
readonly items: {
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly required: readonly ["tools"];
|
|
274
|
+
readonly additionalProperties: false;
|
|
275
|
+
};
|
|
276
|
+
readonly createdAt: {
|
|
277
|
+
readonly type: "number";
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
readonly required: readonly ["id", "runID", "kind", "plan", "createdAt"];
|
|
281
|
+
readonly additionalProperties: false;
|
|
282
|
+
}, {
|
|
283
|
+
readonly type: "object";
|
|
284
|
+
readonly properties: {
|
|
285
|
+
readonly id: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
};
|
|
288
|
+
readonly runID: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
};
|
|
291
|
+
readonly kind: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly const: "input";
|
|
294
|
+
};
|
|
295
|
+
readonly inputKey: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
};
|
|
298
|
+
readonly message: {
|
|
299
|
+
readonly type: "string";
|
|
300
|
+
};
|
|
301
|
+
readonly requestedSchema: {
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly additionalProperties: {
|
|
304
|
+
$ref: string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
readonly createdAt: {
|
|
308
|
+
readonly type: "number";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly required: readonly ["id", "runID", "kind", "inputKey", "message", "requestedSchema", "createdAt"];
|
|
312
|
+
readonly additionalProperties: false;
|
|
313
|
+
}];
|
|
314
|
+
};
|
|
315
|
+
export type InboxItem = FromSchema<typeof inboxItemSchema>;
|
|
316
|
+
export declare const flowSummarySchema: {
|
|
317
|
+
readonly definitions: {
|
|
318
|
+
readonly json: {
|
|
319
|
+
anyOf: ({
|
|
320
|
+
type: "string";
|
|
321
|
+
items?: undefined;
|
|
322
|
+
additionalProperties?: undefined;
|
|
323
|
+
} | {
|
|
324
|
+
type: "number";
|
|
325
|
+
items?: undefined;
|
|
326
|
+
additionalProperties?: undefined;
|
|
327
|
+
} | {
|
|
328
|
+
type: "boolean";
|
|
329
|
+
items?: undefined;
|
|
330
|
+
additionalProperties?: undefined;
|
|
331
|
+
} | {
|
|
332
|
+
type: "null";
|
|
333
|
+
items?: undefined;
|
|
334
|
+
additionalProperties?: undefined;
|
|
335
|
+
} | {
|
|
336
|
+
type: "array";
|
|
337
|
+
items: {
|
|
338
|
+
$ref: string;
|
|
339
|
+
};
|
|
340
|
+
additionalProperties?: undefined;
|
|
341
|
+
} | {
|
|
342
|
+
type: "object";
|
|
343
|
+
additionalProperties: {
|
|
344
|
+
$ref: string;
|
|
345
|
+
};
|
|
346
|
+
items?: undefined;
|
|
347
|
+
})[];
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
readonly type: "object";
|
|
351
|
+
readonly properties: {
|
|
352
|
+
readonly id: {
|
|
353
|
+
readonly type: "string";
|
|
354
|
+
};
|
|
355
|
+
readonly name: {
|
|
356
|
+
readonly type: "string";
|
|
357
|
+
};
|
|
358
|
+
readonly version: {
|
|
359
|
+
readonly type: "number";
|
|
360
|
+
};
|
|
361
|
+
readonly input: {
|
|
362
|
+
readonly type: "object";
|
|
363
|
+
readonly additionalProperties: {
|
|
364
|
+
$ref: string;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly outputs: {
|
|
368
|
+
readonly type: "array";
|
|
369
|
+
readonly items: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
readonly outcomes: {
|
|
374
|
+
readonly type: "array";
|
|
375
|
+
readonly items: {
|
|
376
|
+
readonly type: "string";
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
readonly required: readonly ["id", "name", "version", "input", "outputs", "outcomes"];
|
|
381
|
+
readonly additionalProperties: false;
|
|
382
|
+
};
|
|
383
|
+
export type FlowSummary = FromSchema<typeof flowSummarySchema>;
|
|
384
|
+
export declare const flowIssueSchema: {
|
|
385
|
+
readonly type: "object";
|
|
386
|
+
readonly properties: {
|
|
387
|
+
readonly path: {
|
|
388
|
+
readonly type: "array";
|
|
389
|
+
readonly items: {
|
|
390
|
+
readonly anyOf: readonly [{
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
}, {
|
|
393
|
+
readonly type: "number";
|
|
394
|
+
}];
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
readonly severity: {
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
readonly enum: readonly ["error", "warning"];
|
|
400
|
+
};
|
|
401
|
+
readonly code: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
};
|
|
404
|
+
readonly message: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
};
|
|
407
|
+
readonly hint: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
readonly required: readonly ["path", "severity", "code", "message"];
|
|
412
|
+
readonly additionalProperties: false;
|
|
413
|
+
};
|
|
414
|
+
export type FlowIssue = FromSchema<typeof flowIssueSchema>;
|
|
415
|
+
export declare const flowCheckResultSchema: {
|
|
416
|
+
readonly type: "object";
|
|
417
|
+
readonly definitions: {
|
|
418
|
+
readonly json: {
|
|
419
|
+
anyOf: ({
|
|
420
|
+
type: "string";
|
|
421
|
+
items?: undefined;
|
|
422
|
+
additionalProperties?: undefined;
|
|
423
|
+
} | {
|
|
424
|
+
type: "number";
|
|
425
|
+
items?: undefined;
|
|
426
|
+
additionalProperties?: undefined;
|
|
427
|
+
} | {
|
|
428
|
+
type: "boolean";
|
|
429
|
+
items?: undefined;
|
|
430
|
+
additionalProperties?: undefined;
|
|
431
|
+
} | {
|
|
432
|
+
type: "null";
|
|
433
|
+
items?: undefined;
|
|
434
|
+
additionalProperties?: undefined;
|
|
435
|
+
} | {
|
|
436
|
+
type: "array";
|
|
437
|
+
items: {
|
|
438
|
+
$ref: string;
|
|
439
|
+
};
|
|
440
|
+
additionalProperties?: undefined;
|
|
441
|
+
} | {
|
|
442
|
+
type: "object";
|
|
443
|
+
additionalProperties: {
|
|
444
|
+
$ref: string;
|
|
445
|
+
};
|
|
446
|
+
items?: undefined;
|
|
447
|
+
})[];
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
readonly anyOf: readonly [{
|
|
451
|
+
readonly type: "object";
|
|
452
|
+
readonly properties: {
|
|
453
|
+
readonly value: {
|
|
454
|
+
readonly type: "object";
|
|
455
|
+
readonly additionalProperties: {
|
|
456
|
+
$ref: string;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly warnings: {
|
|
460
|
+
readonly type: "array";
|
|
461
|
+
readonly items: {
|
|
462
|
+
readonly type: "object";
|
|
463
|
+
readonly properties: {
|
|
464
|
+
readonly path: {
|
|
465
|
+
readonly type: "array";
|
|
466
|
+
readonly items: {
|
|
467
|
+
readonly anyOf: readonly [{
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
}, {
|
|
470
|
+
readonly type: "number";
|
|
471
|
+
}];
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
readonly severity: {
|
|
475
|
+
readonly type: "string";
|
|
476
|
+
readonly enum: readonly ["error", "warning"];
|
|
477
|
+
};
|
|
478
|
+
readonly code: {
|
|
479
|
+
readonly type: "string";
|
|
480
|
+
};
|
|
481
|
+
readonly message: {
|
|
482
|
+
readonly type: "string";
|
|
483
|
+
};
|
|
484
|
+
readonly hint: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly required: readonly ["path", "severity", "code", "message"];
|
|
489
|
+
readonly additionalProperties: false;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
readonly formatted: {
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
readonly required: readonly ["value", "warnings", "formatted"];
|
|
497
|
+
readonly additionalProperties: false;
|
|
498
|
+
}, {
|
|
499
|
+
readonly type: "object";
|
|
500
|
+
readonly properties: {
|
|
501
|
+
readonly issues: {
|
|
502
|
+
readonly type: "array";
|
|
503
|
+
readonly items: {
|
|
504
|
+
readonly type: "object";
|
|
505
|
+
readonly properties: {
|
|
506
|
+
readonly path: {
|
|
507
|
+
readonly type: "array";
|
|
508
|
+
readonly items: {
|
|
509
|
+
readonly anyOf: readonly [{
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
}, {
|
|
512
|
+
readonly type: "number";
|
|
513
|
+
}];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly severity: {
|
|
517
|
+
readonly type: "string";
|
|
518
|
+
readonly enum: readonly ["error", "warning"];
|
|
519
|
+
};
|
|
520
|
+
readonly code: {
|
|
521
|
+
readonly type: "string";
|
|
522
|
+
};
|
|
523
|
+
readonly message: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
};
|
|
526
|
+
readonly hint: {
|
|
527
|
+
readonly type: "string";
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
readonly required: readonly ["path", "severity", "code", "message"];
|
|
531
|
+
readonly additionalProperties: false;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
readonly warnings: {
|
|
535
|
+
readonly type: "array";
|
|
536
|
+
readonly items: {
|
|
537
|
+
readonly type: "object";
|
|
538
|
+
readonly properties: {
|
|
539
|
+
readonly path: {
|
|
540
|
+
readonly type: "array";
|
|
541
|
+
readonly items: {
|
|
542
|
+
readonly anyOf: readonly [{
|
|
543
|
+
readonly type: "string";
|
|
544
|
+
}, {
|
|
545
|
+
readonly type: "number";
|
|
546
|
+
}];
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
readonly severity: {
|
|
550
|
+
readonly type: "string";
|
|
551
|
+
readonly enum: readonly ["error", "warning"];
|
|
552
|
+
};
|
|
553
|
+
readonly code: {
|
|
554
|
+
readonly type: "string";
|
|
555
|
+
};
|
|
556
|
+
readonly message: {
|
|
557
|
+
readonly type: "string";
|
|
558
|
+
};
|
|
559
|
+
readonly hint: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
readonly required: readonly ["path", "severity", "code", "message"];
|
|
564
|
+
readonly additionalProperties: false;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
readonly formatted: {
|
|
568
|
+
readonly type: "string";
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
readonly required: readonly ["issues", "warnings", "formatted"];
|
|
572
|
+
readonly additionalProperties: false;
|
|
573
|
+
}];
|
|
574
|
+
};
|
|
575
|
+
export type FlowCheckResult = FromSchema<typeof flowCheckResultSchema>;
|
|
576
|
+
export declare const storedSpanSchema: {
|
|
577
|
+
readonly definitions: {
|
|
578
|
+
readonly json: {
|
|
579
|
+
anyOf: ({
|
|
580
|
+
type: "string";
|
|
581
|
+
items?: undefined;
|
|
582
|
+
additionalProperties?: undefined;
|
|
583
|
+
} | {
|
|
584
|
+
type: "number";
|
|
585
|
+
items?: undefined;
|
|
586
|
+
additionalProperties?: undefined;
|
|
587
|
+
} | {
|
|
588
|
+
type: "boolean";
|
|
589
|
+
items?: undefined;
|
|
590
|
+
additionalProperties?: undefined;
|
|
591
|
+
} | {
|
|
592
|
+
type: "null";
|
|
593
|
+
items?: undefined;
|
|
594
|
+
additionalProperties?: undefined;
|
|
595
|
+
} | {
|
|
596
|
+
type: "array";
|
|
597
|
+
items: {
|
|
598
|
+
$ref: string;
|
|
599
|
+
};
|
|
600
|
+
additionalProperties?: undefined;
|
|
601
|
+
} | {
|
|
602
|
+
type: "object";
|
|
603
|
+
additionalProperties: {
|
|
604
|
+
$ref: string;
|
|
605
|
+
};
|
|
606
|
+
items?: undefined;
|
|
607
|
+
})[];
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
readonly type: "object";
|
|
611
|
+
readonly properties: {
|
|
612
|
+
readonly traceID: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
};
|
|
615
|
+
readonly spanID: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
};
|
|
618
|
+
readonly parentSpanID: {
|
|
619
|
+
readonly type: "string";
|
|
620
|
+
};
|
|
621
|
+
readonly name: {
|
|
622
|
+
readonly type: "string";
|
|
623
|
+
};
|
|
624
|
+
readonly kind: {
|
|
625
|
+
readonly type: "number";
|
|
626
|
+
};
|
|
627
|
+
readonly startTime: {
|
|
628
|
+
readonly type: "number";
|
|
629
|
+
};
|
|
630
|
+
readonly endTime: {
|
|
631
|
+
readonly type: "number";
|
|
632
|
+
};
|
|
633
|
+
readonly status: {
|
|
634
|
+
readonly type: "object";
|
|
635
|
+
readonly properties: {
|
|
636
|
+
readonly code: {
|
|
637
|
+
readonly type: "number";
|
|
638
|
+
};
|
|
639
|
+
readonly message: {
|
|
640
|
+
readonly type: "string";
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
readonly required: readonly ["code"];
|
|
644
|
+
readonly additionalProperties: false;
|
|
645
|
+
};
|
|
646
|
+
readonly attributes: {
|
|
647
|
+
readonly type: "object";
|
|
648
|
+
readonly additionalProperties: {
|
|
649
|
+
$ref: string;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
readonly events: {
|
|
653
|
+
readonly type: "array";
|
|
654
|
+
readonly items: {
|
|
655
|
+
readonly type: "object";
|
|
656
|
+
readonly properties: {
|
|
657
|
+
readonly name: {
|
|
658
|
+
readonly type: "string";
|
|
659
|
+
};
|
|
660
|
+
readonly time: {
|
|
661
|
+
readonly type: "number";
|
|
662
|
+
};
|
|
663
|
+
readonly attributes: {
|
|
664
|
+
readonly type: "object";
|
|
665
|
+
readonly additionalProperties: {
|
|
666
|
+
$ref: string;
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
readonly required: readonly ["name", "time", "attributes"];
|
|
671
|
+
readonly additionalProperties: false;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
readonly links: {
|
|
675
|
+
readonly type: "array";
|
|
676
|
+
readonly items: {
|
|
677
|
+
readonly type: "object";
|
|
678
|
+
readonly properties: {
|
|
679
|
+
readonly traceID: {
|
|
680
|
+
readonly type: "string";
|
|
681
|
+
};
|
|
682
|
+
readonly spanID: {
|
|
683
|
+
readonly type: "string";
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly required: readonly ["traceID", "spanID"];
|
|
687
|
+
readonly additionalProperties: false;
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
readonly required: readonly ["traceID", "spanID", "name", "kind", "startTime", "endTime", "status", "attributes", "events", "links"];
|
|
692
|
+
readonly additionalProperties: false;
|
|
693
|
+
};
|
|
694
|
+
export type StoredSpan = FromSchema<typeof storedSpanSchema>;
|
|
695
|
+
export declare const storedLogSchema: {
|
|
696
|
+
readonly definitions: {
|
|
697
|
+
readonly json: {
|
|
698
|
+
anyOf: ({
|
|
699
|
+
type: "string";
|
|
700
|
+
items?: undefined;
|
|
701
|
+
additionalProperties?: undefined;
|
|
702
|
+
} | {
|
|
703
|
+
type: "number";
|
|
704
|
+
items?: undefined;
|
|
705
|
+
additionalProperties?: undefined;
|
|
706
|
+
} | {
|
|
707
|
+
type: "boolean";
|
|
708
|
+
items?: undefined;
|
|
709
|
+
additionalProperties?: undefined;
|
|
710
|
+
} | {
|
|
711
|
+
type: "null";
|
|
712
|
+
items?: undefined;
|
|
713
|
+
additionalProperties?: undefined;
|
|
714
|
+
} | {
|
|
715
|
+
type: "array";
|
|
716
|
+
items: {
|
|
717
|
+
$ref: string;
|
|
718
|
+
};
|
|
719
|
+
additionalProperties?: undefined;
|
|
720
|
+
} | {
|
|
721
|
+
type: "object";
|
|
722
|
+
additionalProperties: {
|
|
723
|
+
$ref: string;
|
|
724
|
+
};
|
|
725
|
+
items?: undefined;
|
|
726
|
+
})[];
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
readonly type: "object";
|
|
730
|
+
readonly properties: {
|
|
731
|
+
readonly traceID: {
|
|
732
|
+
readonly type: "string";
|
|
733
|
+
};
|
|
734
|
+
readonly spanID: {
|
|
735
|
+
readonly type: "string";
|
|
736
|
+
};
|
|
737
|
+
readonly timestamp: {
|
|
738
|
+
readonly type: "number";
|
|
739
|
+
};
|
|
740
|
+
readonly level: {
|
|
741
|
+
readonly type: "string";
|
|
742
|
+
readonly enum: readonly ["trace", "debug", "info", "warning", "error", "fatal"];
|
|
743
|
+
};
|
|
744
|
+
readonly category: {
|
|
745
|
+
readonly type: "array";
|
|
746
|
+
readonly items: {
|
|
747
|
+
readonly type: "string";
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
readonly message: {
|
|
751
|
+
readonly type: "string";
|
|
752
|
+
};
|
|
753
|
+
readonly properties: {
|
|
754
|
+
readonly type: "object";
|
|
755
|
+
readonly additionalProperties: {
|
|
756
|
+
$ref: string;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
readonly required: readonly ["traceID", "spanID", "timestamp", "level", "category", "message", "properties"];
|
|
761
|
+
readonly additionalProperties: false;
|
|
762
|
+
};
|
|
763
|
+
export type StoredLog = FromSchema<typeof storedLogSchema>;
|
|
764
|
+
//# sourceMappingURL=flow-schemas.d.ts.map
|