ankka-console 0.10.0 → 0.11.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/dist/client/control-plane.d.ts +25 -1
- package/dist/client/control-plane.js +60 -1
- package/dist/client/schemas.d.ts +525 -0
- package/dist/client/schemas.js +174 -0
- package/dist/context.d.ts +98 -0
- package/dist/context.js +73 -0
- package/dist/extensions/render.d.ts +2 -0
- package/dist/extensions/render.js +5 -0
- package/dist/extensions/types.d.ts +1 -1
- package/dist/extensions/types.js +7 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +7 -1
- package/dist/routes/auth.sign-out.js +8 -3
- package/dist/routes/front.js +12 -6
- package/dist/routes/logs.d.ts +35 -0
- package/dist/routes/logs.js +15 -14
- package/dist/routes/members.js +11 -8
- package/dist/routes/organization-new.js +7 -4
- package/dist/routes/organization.js +13 -6
- package/dist/routes/project-new.js +8 -4
- package/dist/routes/project.d.ts +73 -2
- package/dist/routes/project.js +81 -9
- package/dist/routes/service-apply.d.ts +5 -2
- package/dist/routes/service-apply.js +17 -14
- package/dist/routes/service-history.d.ts +30 -0
- package/dist/routes/service-history.js +79 -0
- package/dist/routes/service-topology.d.ts +153 -0
- package/dist/routes/service-topology.js +54 -0
- package/dist/routes/service.d.ts +34 -10
- package/dist/routes/service.js +27 -22
- package/dist/routes/stream.service.js +18 -1
- package/dist/routes/tokens.js +8 -6
- package/dist/routes.js +2 -0
- package/dist/styles.css +2 -481
- package/dist/testing/fake-control-plane.d.ts +155 -0
- package/dist/testing/fake-control-plane.js +379 -12
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/scenarios.js +6 -0
- package/dist/theme.css +66 -0
- package/dist/ui/console.d.ts +19 -6
- package/dist/ui/console.js +9 -2
- package/dist/ui/errors.js +7 -5
- package/dist/ui/hosting.d.ts +11 -0
- package/dist/ui/hosting.js +20 -0
- package/dist/ui/primitives/button.d.ts +11 -0
- package/dist/ui/primitives/button.js +21 -0
- package/dist/ui/primitives/select.d.ts +10 -0
- package/dist/ui/primitives/select.js +4 -0
- package/dist/ui/primitives/switch.d.ts +9 -0
- package/dist/ui/primitives/switch.js +4 -0
- package/dist/ui/shape.d.ts +4 -0
- package/dist/ui/shape.js +36 -0
- package/dist/ui/shell.d.ts +76 -0
- package/dist/ui/shell.js +107 -0
- package/dist/ui/tokens.d.ts +82 -0
- package/dist/ui/tokens.js +172 -0
- package/dist/ui/topology/Graph.d.ts +13 -0
- package/dist/ui/topology/Graph.js +56 -0
- package/dist/ui/topology/Table.d.ts +10 -0
- package/dist/ui/topology/Table.js +14 -0
- package/dist/ui/topology/layout.d.ts +113 -0
- package/dist/ui/topology/layout.js +177 -0
- package/dist/ui/use-stream.d.ts +137 -1
- package/dist/ui/use-stream.js +11 -1
- package/package.json +11 -3
package/dist/client/schemas.d.ts
CHANGED
|
@@ -170,6 +170,12 @@ export declare const projectSummarySchema: z.ZodObject<{
|
|
|
170
170
|
} | null | undefined>>;
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
export type ProjectSummary = z.infer<typeof projectSummarySchema>;
|
|
173
|
+
export declare const mountStatusSchema: z.ZodObject<{
|
|
174
|
+
path: z.ZodString;
|
|
175
|
+
service: z.ZodString;
|
|
176
|
+
state: z.ZodDefault<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export type MountStatus = z.infer<typeof mountStatusSchema>;
|
|
173
179
|
export declare const serviceStatusSchema: z.ZodObject<{
|
|
174
180
|
name: z.ZodString;
|
|
175
181
|
projectId: z.ZodString;
|
|
@@ -187,6 +193,80 @@ export declare const serviceStatusSchema: z.ZodObject<{
|
|
|
187
193
|
paused: z.ZodDefault<z.ZodBoolean>;
|
|
188
194
|
hosting: z.ZodDefault<z.ZodString>;
|
|
189
195
|
protocol: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
196
|
+
mounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
197
|
+
path: z.ZodString;
|
|
198
|
+
service: z.ZodString;
|
|
199
|
+
state: z.ZodDefault<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>>>;
|
|
201
|
+
callers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
202
|
+
processPort: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
203
|
+
broker: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
204
|
+
undeclaredTopics: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | undefined, string[] | null | undefined>>;
|
|
205
|
+
topicChecks: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
206
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
207
|
+
service: z.ZodString;
|
|
208
|
+
component: z.ZodString;
|
|
209
|
+
direction: z.ZodString;
|
|
210
|
+
stated: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
211
|
+
state: z.ZodString;
|
|
212
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
213
|
+
topic: string | undefined;
|
|
214
|
+
service: string;
|
|
215
|
+
component: string;
|
|
216
|
+
direction: string;
|
|
217
|
+
stated: string | undefined;
|
|
218
|
+
state: string;
|
|
219
|
+
}[] | undefined, {
|
|
220
|
+
topic: string | undefined;
|
|
221
|
+
service: string;
|
|
222
|
+
component: string;
|
|
223
|
+
direction: string;
|
|
224
|
+
stated: string | undefined;
|
|
225
|
+
state: string;
|
|
226
|
+
}[] | null | undefined>>;
|
|
227
|
+
topicSources: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
228
|
+
kind: z.ZodString;
|
|
229
|
+
component: z.ZodString;
|
|
230
|
+
topic: z.ZodString;
|
|
231
|
+
group: z.ZodString;
|
|
232
|
+
start: z.ZodString;
|
|
233
|
+
version: z.ZodNumber;
|
|
234
|
+
recordedVersion: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
235
|
+
behind: z.ZodDefault<z.ZodBoolean>;
|
|
236
|
+
broker: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
237
|
+
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
238
|
+
lag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
239
|
+
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
240
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
241
|
+
kind: string;
|
|
242
|
+
component: string;
|
|
243
|
+
topic: string;
|
|
244
|
+
group: string;
|
|
245
|
+
start: string;
|
|
246
|
+
version: number;
|
|
247
|
+
recordedVersion: number | undefined;
|
|
248
|
+
behind: boolean;
|
|
249
|
+
broker: string | undefined;
|
|
250
|
+
contract: string | undefined;
|
|
251
|
+
lag: number | undefined;
|
|
252
|
+
failing: string | undefined;
|
|
253
|
+
}[] | undefined, {
|
|
254
|
+
kind: string;
|
|
255
|
+
component: string;
|
|
256
|
+
topic: string;
|
|
257
|
+
group: string;
|
|
258
|
+
start: string;
|
|
259
|
+
version: number;
|
|
260
|
+
recordedVersion: number | undefined;
|
|
261
|
+
behind: boolean;
|
|
262
|
+
broker: string | undefined;
|
|
263
|
+
contract: string | undefined;
|
|
264
|
+
lag: number | undefined;
|
|
265
|
+
failing: string | undefined;
|
|
266
|
+
}[] | null | undefined>>;
|
|
267
|
+
objectStorage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
268
|
+
bucket: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
269
|
+
bucketAddress: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
190
270
|
}, z.core.$strip>;
|
|
191
271
|
export type ServiceStatus = z.infer<typeof serviceStatusSchema>;
|
|
192
272
|
export declare const historyActorSchema: z.ZodObject<{
|
|
@@ -212,8 +292,111 @@ export declare const historyEntrySchema: z.ZodObject<{
|
|
|
212
292
|
administrative: boolean;
|
|
213
293
|
} | null | undefined>>;
|
|
214
294
|
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
295
|
+
image: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
296
|
+
digest: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
297
|
+
rolledBackTo: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
215
298
|
}, z.core.$strip>;
|
|
216
299
|
export type HistoryEntry = z.infer<typeof historyEntrySchema>;
|
|
300
|
+
export declare const rollbackRequestSchema: z.ZodObject<{
|
|
301
|
+
generation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
export type RollbackRequest = z.infer<typeof rollbackRequestSchema>;
|
|
304
|
+
export declare const rolledBackSchema: z.ZodObject<{
|
|
305
|
+
rolledBackTo: z.ZodNumber;
|
|
306
|
+
status: z.ZodObject<{
|
|
307
|
+
name: z.ZodString;
|
|
308
|
+
projectId: z.ZodString;
|
|
309
|
+
lifecycle: z.ZodString;
|
|
310
|
+
generation: z.ZodNumber;
|
|
311
|
+
image: z.ZodString;
|
|
312
|
+
readyInstances: z.ZodNumber;
|
|
313
|
+
desiredInstances: z.ZodNumber;
|
|
314
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
315
|
+
confirmed: z.ZodDefault<z.ZodBoolean>;
|
|
316
|
+
database: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
317
|
+
hostname: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
318
|
+
exposed: z.ZodDefault<z.ZodBoolean>;
|
|
319
|
+
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
320
|
+
paused: z.ZodDefault<z.ZodBoolean>;
|
|
321
|
+
hosting: z.ZodDefault<z.ZodString>;
|
|
322
|
+
protocol: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
323
|
+
mounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
324
|
+
path: z.ZodString;
|
|
325
|
+
service: z.ZodString;
|
|
326
|
+
state: z.ZodDefault<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>>>;
|
|
328
|
+
callers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
329
|
+
processPort: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
330
|
+
broker: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
331
|
+
undeclaredTopics: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | undefined, string[] | null | undefined>>;
|
|
332
|
+
topicChecks: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
333
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
334
|
+
service: z.ZodString;
|
|
335
|
+
component: z.ZodString;
|
|
336
|
+
direction: z.ZodString;
|
|
337
|
+
stated: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
338
|
+
state: z.ZodString;
|
|
339
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
340
|
+
topic: string | undefined;
|
|
341
|
+
service: string;
|
|
342
|
+
component: string;
|
|
343
|
+
direction: string;
|
|
344
|
+
stated: string | undefined;
|
|
345
|
+
state: string;
|
|
346
|
+
}[] | undefined, {
|
|
347
|
+
topic: string | undefined;
|
|
348
|
+
service: string;
|
|
349
|
+
component: string;
|
|
350
|
+
direction: string;
|
|
351
|
+
stated: string | undefined;
|
|
352
|
+
state: string;
|
|
353
|
+
}[] | null | undefined>>;
|
|
354
|
+
topicSources: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
355
|
+
kind: z.ZodString;
|
|
356
|
+
component: z.ZodString;
|
|
357
|
+
topic: z.ZodString;
|
|
358
|
+
group: z.ZodString;
|
|
359
|
+
start: z.ZodString;
|
|
360
|
+
version: z.ZodNumber;
|
|
361
|
+
recordedVersion: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
362
|
+
behind: z.ZodDefault<z.ZodBoolean>;
|
|
363
|
+
broker: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
364
|
+
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
365
|
+
lag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
366
|
+
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
367
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
368
|
+
kind: string;
|
|
369
|
+
component: string;
|
|
370
|
+
topic: string;
|
|
371
|
+
group: string;
|
|
372
|
+
start: string;
|
|
373
|
+
version: number;
|
|
374
|
+
recordedVersion: number | undefined;
|
|
375
|
+
behind: boolean;
|
|
376
|
+
broker: string | undefined;
|
|
377
|
+
contract: string | undefined;
|
|
378
|
+
lag: number | undefined;
|
|
379
|
+
failing: string | undefined;
|
|
380
|
+
}[] | undefined, {
|
|
381
|
+
kind: string;
|
|
382
|
+
component: string;
|
|
383
|
+
topic: string;
|
|
384
|
+
group: string;
|
|
385
|
+
start: string;
|
|
386
|
+
version: number;
|
|
387
|
+
recordedVersion: number | undefined;
|
|
388
|
+
behind: boolean;
|
|
389
|
+
broker: string | undefined;
|
|
390
|
+
contract: string | undefined;
|
|
391
|
+
lag: number | undefined;
|
|
392
|
+
failing: string | undefined;
|
|
393
|
+
}[] | null | undefined>>;
|
|
394
|
+
objectStorage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
395
|
+
bucket: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
396
|
+
bucketAddress: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
}, z.core.$strip>;
|
|
399
|
+
export type RolledBack = z.infer<typeof rolledBackSchema>;
|
|
217
400
|
export declare const instanceLogsSchema: z.ZodObject<{
|
|
218
401
|
instance: z.ZodString;
|
|
219
402
|
output: z.ZodString;
|
|
@@ -228,6 +411,237 @@ export declare const logsResponseSchema: z.ZodObject<{
|
|
|
228
411
|
}, z.core.$strip>>;
|
|
229
412
|
}, z.core.$strip>;
|
|
230
413
|
export type LogsResponse = z.infer<typeof logsResponseSchema>;
|
|
414
|
+
export declare const topologyHandlerSchema: z.ZodObject<{
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
type: z.ZodString;
|
|
417
|
+
streaming: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
export type TopologyHandler = z.infer<typeof topologyHandlerSchema>;
|
|
420
|
+
export declare const topologyNodeSchema: z.ZodObject<{
|
|
421
|
+
id: z.ZodString;
|
|
422
|
+
kind: z.ZodString;
|
|
423
|
+
layer: z.ZodNumber;
|
|
424
|
+
platform: z.ZodBoolean;
|
|
425
|
+
handlers: z.ZodArray<z.ZodObject<{
|
|
426
|
+
name: z.ZodString;
|
|
427
|
+
type: z.ZodString;
|
|
428
|
+
streaming: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
export type TopologyNode = z.infer<typeof topologyNodeSchema>;
|
|
432
|
+
export declare const declaredEdgeSchema: z.ZodObject<{
|
|
433
|
+
from: z.ZodString;
|
|
434
|
+
to: z.ZodString;
|
|
435
|
+
kind: z.ZodString;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
export type DeclaredEdge = z.infer<typeof declaredEdgeSchema>;
|
|
438
|
+
export declare const callPairSchema: z.ZodObject<{
|
|
439
|
+
caller: z.ZodString;
|
|
440
|
+
callee: z.ZodString;
|
|
441
|
+
handled: z.ZodObject<{
|
|
442
|
+
ok: z.ZodNumber;
|
|
443
|
+
refused: z.ZodNumber;
|
|
444
|
+
failed: z.ZodNumber;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
unanswered: z.ZodObject<{
|
|
447
|
+
timedOut: z.ZodNumber;
|
|
448
|
+
undelivered: z.ZodNumber;
|
|
449
|
+
}, z.core.$strip>;
|
|
450
|
+
durationMillis: z.ZodObject<{
|
|
451
|
+
p50: z.ZodNumber;
|
|
452
|
+
p99: z.ZodNumber;
|
|
453
|
+
max: z.ZodNumber;
|
|
454
|
+
bucketed: z.ZodDefault<z.ZodBoolean>;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
457
|
+
histogram: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
458
|
+
}, z.core.$strip>;
|
|
459
|
+
export type CallPair = z.infer<typeof callPairSchema>;
|
|
460
|
+
export declare const callEdgeSchema: z.ZodObject<{
|
|
461
|
+
from: z.ZodString;
|
|
462
|
+
to: z.ZodString;
|
|
463
|
+
pairs: z.ZodArray<z.ZodObject<{
|
|
464
|
+
caller: z.ZodString;
|
|
465
|
+
callee: z.ZodString;
|
|
466
|
+
handled: z.ZodObject<{
|
|
467
|
+
ok: z.ZodNumber;
|
|
468
|
+
refused: z.ZodNumber;
|
|
469
|
+
failed: z.ZodNumber;
|
|
470
|
+
}, z.core.$strip>;
|
|
471
|
+
unanswered: z.ZodObject<{
|
|
472
|
+
timedOut: z.ZodNumber;
|
|
473
|
+
undelivered: z.ZodNumber;
|
|
474
|
+
}, z.core.$strip>;
|
|
475
|
+
durationMillis: z.ZodObject<{
|
|
476
|
+
p50: z.ZodNumber;
|
|
477
|
+
p99: z.ZodNumber;
|
|
478
|
+
max: z.ZodNumber;
|
|
479
|
+
bucketed: z.ZodDefault<z.ZodBoolean>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
482
|
+
histogram: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
483
|
+
}, z.core.$strip>>;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
export type CallEdge = z.infer<typeof callEdgeSchema>;
|
|
486
|
+
export declare const topologyWindowSchema: z.ZodObject<{
|
|
487
|
+
seconds: z.ZodNumber;
|
|
488
|
+
since: z.ZodString;
|
|
489
|
+
calls: z.ZodNumber;
|
|
490
|
+
unanswered: z.ZodDefault<z.ZodNumber>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
export type TopologyWindow = z.infer<typeof topologyWindowSchema>;
|
|
493
|
+
export declare const instanceTopologyDocumentSchema: z.ZodObject<{
|
|
494
|
+
service: z.ZodObject<{
|
|
495
|
+
name: z.ZodString;
|
|
496
|
+
runtime: z.ZodString;
|
|
497
|
+
instance: z.ZodString;
|
|
498
|
+
startedAt: z.ZodString;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
window: z.ZodObject<{
|
|
501
|
+
seconds: z.ZodNumber;
|
|
502
|
+
since: z.ZodString;
|
|
503
|
+
calls: z.ZodNumber;
|
|
504
|
+
unanswered: z.ZodDefault<z.ZodNumber>;
|
|
505
|
+
}, z.core.$strip>;
|
|
506
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
507
|
+
id: z.ZodString;
|
|
508
|
+
kind: z.ZodString;
|
|
509
|
+
layer: z.ZodNumber;
|
|
510
|
+
platform: z.ZodBoolean;
|
|
511
|
+
handlers: z.ZodArray<z.ZodObject<{
|
|
512
|
+
name: z.ZodString;
|
|
513
|
+
type: z.ZodString;
|
|
514
|
+
streaming: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
}, z.core.$strip>>;
|
|
517
|
+
declared: z.ZodArray<z.ZodObject<{
|
|
518
|
+
from: z.ZodString;
|
|
519
|
+
to: z.ZodString;
|
|
520
|
+
kind: z.ZodString;
|
|
521
|
+
}, z.core.$strip>>;
|
|
522
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
523
|
+
from: z.ZodString;
|
|
524
|
+
to: z.ZodString;
|
|
525
|
+
pairs: z.ZodArray<z.ZodObject<{
|
|
526
|
+
caller: z.ZodString;
|
|
527
|
+
callee: z.ZodString;
|
|
528
|
+
handled: z.ZodObject<{
|
|
529
|
+
ok: z.ZodNumber;
|
|
530
|
+
refused: z.ZodNumber;
|
|
531
|
+
failed: z.ZodNumber;
|
|
532
|
+
}, z.core.$strip>;
|
|
533
|
+
unanswered: z.ZodObject<{
|
|
534
|
+
timedOut: z.ZodNumber;
|
|
535
|
+
undelivered: z.ZodNumber;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
durationMillis: z.ZodObject<{
|
|
538
|
+
p50: z.ZodNumber;
|
|
539
|
+
p99: z.ZodNumber;
|
|
540
|
+
max: z.ZodNumber;
|
|
541
|
+
bucketed: z.ZodDefault<z.ZodBoolean>;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
544
|
+
histogram: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
545
|
+
}, z.core.$strip>>;
|
|
546
|
+
}, z.core.$strip>>;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
export type InstanceTopologyDocument = z.infer<typeof instanceTopologyDocumentSchema>;
|
|
549
|
+
export declare const instanceStatusSchema: z.ZodEnum<{
|
|
550
|
+
failed: "failed";
|
|
551
|
+
ok: "ok";
|
|
552
|
+
unreachable: "unreachable";
|
|
553
|
+
unsupported: "unsupported";
|
|
554
|
+
}>;
|
|
555
|
+
export type InstanceStatus = z.infer<typeof instanceStatusSchema>;
|
|
556
|
+
export declare const instanceTopologySchema: z.ZodObject<{
|
|
557
|
+
pod: z.ZodString;
|
|
558
|
+
status: z.ZodEnum<{
|
|
559
|
+
failed: "failed";
|
|
560
|
+
ok: "ok";
|
|
561
|
+
unreachable: "unreachable";
|
|
562
|
+
unsupported: "unsupported";
|
|
563
|
+
}>;
|
|
564
|
+
problem: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
565
|
+
runtime: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
566
|
+
readAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
567
|
+
}, z.core.$strip>;
|
|
568
|
+
export type InstanceTopology = z.infer<typeof instanceTopologySchema>;
|
|
569
|
+
export declare const topologyDifferenceSchema: z.ZodObject<{
|
|
570
|
+
node: z.ZodString;
|
|
571
|
+
presentOn: z.ZodArray<z.ZodString>;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
export type TopologyDifference = z.infer<typeof topologyDifferenceSchema>;
|
|
574
|
+
/** `GET /services/{projectId}/{name}/topology`: every instance's topology, merged. */
|
|
575
|
+
export declare const serviceTopologySchema: z.ZodObject<{
|
|
576
|
+
service: z.ZodString;
|
|
577
|
+
running: z.ZodNumber;
|
|
578
|
+
contributing: z.ZodNumber;
|
|
579
|
+
partial: z.ZodBoolean;
|
|
580
|
+
instances: z.ZodArray<z.ZodObject<{
|
|
581
|
+
pod: z.ZodString;
|
|
582
|
+
status: z.ZodEnum<{
|
|
583
|
+
failed: "failed";
|
|
584
|
+
ok: "ok";
|
|
585
|
+
unreachable: "unreachable";
|
|
586
|
+
unsupported: "unsupported";
|
|
587
|
+
}>;
|
|
588
|
+
problem: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
589
|
+
runtime: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
590
|
+
readAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
591
|
+
}, z.core.$strip>>;
|
|
592
|
+
window: z.ZodObject<{
|
|
593
|
+
seconds: z.ZodNumber;
|
|
594
|
+
since: z.ZodString;
|
|
595
|
+
calls: z.ZodNumber;
|
|
596
|
+
unanswered: z.ZodDefault<z.ZodNumber>;
|
|
597
|
+
}, z.core.$strip>;
|
|
598
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
599
|
+
id: z.ZodString;
|
|
600
|
+
kind: z.ZodString;
|
|
601
|
+
layer: z.ZodNumber;
|
|
602
|
+
platform: z.ZodBoolean;
|
|
603
|
+
handlers: z.ZodArray<z.ZodObject<{
|
|
604
|
+
name: z.ZodString;
|
|
605
|
+
type: z.ZodString;
|
|
606
|
+
streaming: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>;
|
|
607
|
+
}, z.core.$strip>>;
|
|
608
|
+
}, z.core.$strip>>;
|
|
609
|
+
declared: z.ZodArray<z.ZodObject<{
|
|
610
|
+
from: z.ZodString;
|
|
611
|
+
to: z.ZodString;
|
|
612
|
+
kind: z.ZodString;
|
|
613
|
+
}, z.core.$strip>>;
|
|
614
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
615
|
+
from: z.ZodString;
|
|
616
|
+
to: z.ZodString;
|
|
617
|
+
pairs: z.ZodArray<z.ZodObject<{
|
|
618
|
+
caller: z.ZodString;
|
|
619
|
+
callee: z.ZodString;
|
|
620
|
+
handled: z.ZodObject<{
|
|
621
|
+
ok: z.ZodNumber;
|
|
622
|
+
refused: z.ZodNumber;
|
|
623
|
+
failed: z.ZodNumber;
|
|
624
|
+
}, z.core.$strip>;
|
|
625
|
+
unanswered: z.ZodObject<{
|
|
626
|
+
timedOut: z.ZodNumber;
|
|
627
|
+
undelivered: z.ZodNumber;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
durationMillis: z.ZodObject<{
|
|
630
|
+
p50: z.ZodNumber;
|
|
631
|
+
p99: z.ZodNumber;
|
|
632
|
+
max: z.ZodNumber;
|
|
633
|
+
bucketed: z.ZodDefault<z.ZodBoolean>;
|
|
634
|
+
}, z.core.$strip>;
|
|
635
|
+
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
636
|
+
histogram: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
637
|
+
}, z.core.$strip>>;
|
|
638
|
+
}, z.core.$strip>>;
|
|
639
|
+
differences: z.ZodArray<z.ZodObject<{
|
|
640
|
+
node: z.ZodString;
|
|
641
|
+
presentOn: z.ZodArray<z.ZodString>;
|
|
642
|
+
}, z.core.$strip>>;
|
|
643
|
+
}, z.core.$strip>;
|
|
644
|
+
export type ServiceTopology = z.infer<typeof serviceTopologySchema>;
|
|
231
645
|
export declare const memberSummarySchema: z.ZodObject<{
|
|
232
646
|
subject: z.ZodString;
|
|
233
647
|
role: z.ZodEnum<{
|
|
@@ -361,5 +775,116 @@ export declare const setRegistrySchema: z.ZodObject<{
|
|
|
361
775
|
password: z.ZodString;
|
|
362
776
|
}, z.core.$strip>;
|
|
363
777
|
export type SetRegistry = z.input<typeof setRegistrySchema>;
|
|
778
|
+
/** `PUT /projects/{id}/secrets/{name}`: entries merged into a project secret. */
|
|
779
|
+
export declare const setProjectSecretSchema: z.ZodObject<{
|
|
780
|
+
entries: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
781
|
+
}, z.core.$strip>;
|
|
782
|
+
export type SetProjectSecret = z.input<typeof setProjectSecretSchema>;
|
|
783
|
+
/** A contract as declared on a topic: its name and the fingerprint of its schema document. */
|
|
784
|
+
export declare const contractSchema: z.ZodObject<{
|
|
785
|
+
name: z.ZodString;
|
|
786
|
+
fingerprint: z.ZodString;
|
|
787
|
+
}, z.core.$strip>;
|
|
788
|
+
export type Contract = z.infer<typeof contractSchema>;
|
|
789
|
+
/** One side of a declared topic as a running service states it, against the declared contract. */
|
|
790
|
+
export declare const topicCheckSchema: z.ZodObject<{
|
|
791
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
792
|
+
service: z.ZodString;
|
|
793
|
+
component: z.ZodString;
|
|
794
|
+
direction: z.ZodString;
|
|
795
|
+
stated: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
796
|
+
state: z.ZodString;
|
|
797
|
+
}, z.core.$strip>;
|
|
798
|
+
export type TopicCheck = z.infer<typeof topicCheckSchema>;
|
|
799
|
+
/**
|
|
800
|
+
* `PUT /projects/{id}/topics/{name}`: the partitions a declared topic has, whether the broker keeps
|
|
801
|
+
* only the last message under each key, and the contract it carries with its schema document.
|
|
802
|
+
*/
|
|
803
|
+
export declare const topicDeclarationRequestSchema: z.ZodObject<{
|
|
804
|
+
partitions: z.ZodNumber;
|
|
805
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
806
|
+
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
807
|
+
name: z.ZodString;
|
|
808
|
+
schema: z.ZodUnknown;
|
|
809
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
810
|
+
name: string;
|
|
811
|
+
schema: unknown;
|
|
812
|
+
} | undefined, {
|
|
813
|
+
name: string;
|
|
814
|
+
schema: unknown;
|
|
815
|
+
} | null | undefined>>;
|
|
816
|
+
}, z.core.$strip>;
|
|
817
|
+
export type TopicDeclarationRequest = z.input<typeof topicDeclarationRequestSchema>;
|
|
818
|
+
/** A topic a project declares, and how far the platform has got with it. */
|
|
819
|
+
export declare const projectTopicSchema: z.ZodObject<{
|
|
820
|
+
name: z.ZodString;
|
|
821
|
+
partitions: z.ZodNumber;
|
|
822
|
+
phase: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
823
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
824
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
825
|
+
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
826
|
+
name: z.ZodString;
|
|
827
|
+
fingerprint: z.ZodString;
|
|
828
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
829
|
+
name: string;
|
|
830
|
+
fingerprint: string;
|
|
831
|
+
} | undefined, {
|
|
832
|
+
name: string;
|
|
833
|
+
fingerprint: string;
|
|
834
|
+
} | null | undefined>>;
|
|
835
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
836
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
837
|
+
service: z.ZodString;
|
|
838
|
+
component: z.ZodString;
|
|
839
|
+
direction: z.ZodString;
|
|
840
|
+
stated: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
841
|
+
state: z.ZodString;
|
|
842
|
+
}, z.core.$strip>>>;
|
|
843
|
+
}, z.core.$strip>;
|
|
844
|
+
export type ProjectTopic = z.infer<typeof projectTopicSchema>;
|
|
845
|
+
/**
|
|
846
|
+
* A topic source as a service's instances report it: what reads which topic under which group, the
|
|
847
|
+
* declared broker and contract it states, `lag` (messages past the last one handled, as of the last
|
|
848
|
+
* poll) and `failing` (the reason of the change being delivered again, until one succeeds).
|
|
849
|
+
*/
|
|
850
|
+
export declare const topicSourceReportSchema: z.ZodObject<{
|
|
851
|
+
kind: z.ZodString;
|
|
852
|
+
component: z.ZodString;
|
|
853
|
+
topic: z.ZodString;
|
|
854
|
+
group: z.ZodString;
|
|
855
|
+
start: z.ZodString;
|
|
856
|
+
version: z.ZodNumber;
|
|
857
|
+
recordedVersion: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
858
|
+
behind: z.ZodDefault<z.ZodBoolean>;
|
|
859
|
+
broker: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
860
|
+
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
861
|
+
lag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
862
|
+
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
863
|
+
}, z.core.$strip>;
|
|
864
|
+
export type TopicSourceReport = z.infer<typeof topicSourceReportSchema>;
|
|
865
|
+
/** `PUT /projects/{id}/brokers/{name}`: a broker declared beside the installation's, and how it is reached. */
|
|
866
|
+
export declare const brokerDeclarationRequestSchema: z.ZodObject<{
|
|
867
|
+
bootstrap: z.ZodString;
|
|
868
|
+
shape: z.ZodString;
|
|
869
|
+
secret: z.ZodString;
|
|
870
|
+
}, z.core.$strip>;
|
|
871
|
+
export type BrokerDeclarationRequest = z.input<typeof brokerDeclarationRequestSchema>;
|
|
872
|
+
/** A broker a project declares, as listed: where it is, the shape of its credential, and the project secret holding it. */
|
|
873
|
+
export declare const projectBrokerSchema: z.ZodObject<{
|
|
874
|
+
name: z.ZodString;
|
|
875
|
+
bootstrap: z.ZodString;
|
|
876
|
+
shape: z.ZodString;
|
|
877
|
+
secret: z.ZodString;
|
|
878
|
+
declaredAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
879
|
+
}, z.core.$strip>;
|
|
880
|
+
export type ProjectBroker = z.infer<typeof projectBrokerSchema>;
|
|
881
|
+
/** A project secret as the control plane lists it: entries' names, never a value. */
|
|
882
|
+
export declare const projectSecretSummarySchema: z.ZodObject<{
|
|
883
|
+
name: z.ZodString;
|
|
884
|
+
entries: z.ZodArray<z.ZodString>;
|
|
885
|
+
setAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
886
|
+
setBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
887
|
+
}, z.core.$strip>;
|
|
888
|
+
export type ProjectSecretSummary = z.infer<typeof projectSecretSummarySchema>;
|
|
364
889
|
/** Every schema by the Scala type's name, as the fixture files name them. */
|
|
365
890
|
export declare const schemasByType: Record<string, z.ZodType>;
|