ankka-console 0.11.0 → 0.12.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 +63 -1
- package/dist/client/control-plane.js +142 -1
- package/dist/client/schemas.d.ts +1312 -2
- package/dist/client/schemas.js +423 -2
- package/dist/context.d.ts +1 -1
- package/dist/context.js +1 -1
- package/dist/extensions/types.d.ts +1 -1
- package/dist/extensions/types.js +22 -0
- package/dist/routes/front.d.ts +62 -2
- package/dist/routes/front.js +37 -8
- package/dist/routes/logs.d.ts +57 -0
- package/dist/routes/machines.d.ts +78 -0
- package/dist/routes/machines.js +78 -0
- package/dist/routes/organization.d.ts +29 -1
- package/dist/routes/organization.js +27 -5
- package/dist/routes/project.d.ts +275 -1
- package/dist/routes/project.js +107 -6
- package/dist/routes/service-history.d.ts +2 -0
- package/dist/routes/service-history.js +3 -0
- package/dist/routes/service-topology.d.ts +57 -0
- package/dist/routes/service.d.ts +57 -0
- package/dist/routes/service.js +63 -4
- package/dist/routes.js +1 -0
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.js +1 -0
- package/dist/testing/fake-control-plane.d.ts +179 -1
- package/dist/testing/fake-control-plane.js +819 -7
- package/dist/ui/grants.d.ts +3 -0
- package/dist/ui/grants.js +13 -0
- package/dist/ui/shell.d.ts +1 -1
- package/dist/ui/shell.js +9 -2
- package/dist/ui/use-stream.d.ts +114 -0
- package/package.json +1 -1
package/dist/client/schemas.d.ts
CHANGED
|
@@ -53,6 +53,166 @@ export declare const whoamiSchema: z.ZodObject<{
|
|
|
53
53
|
}, z.core.$strip>>>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
export type Whoami = z.infer<typeof whoamiSchema>;
|
|
56
|
+
/** The installation's cloud: its provider, account and location, and its key for an owner alone. */
|
|
57
|
+
export declare const cloudInstallationSchema: z.ZodObject<{
|
|
58
|
+
provider: z.ZodString;
|
|
59
|
+
account: z.ZodString;
|
|
60
|
+
location: z.ZodString;
|
|
61
|
+
kmsKey: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type CloudInstallation = z.infer<typeof cloudInstallationSchema>;
|
|
64
|
+
/** Where the installation keeps its secrets, and how long the record of reads is kept (feature 038). */
|
|
65
|
+
export declare const installationSecretsSchema: z.ZodObject<{
|
|
66
|
+
backend: z.ZodString;
|
|
67
|
+
recordRetention: z.ZodString;
|
|
68
|
+
auditLog: z.ZodDefault<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type InstallationSecrets = z.infer<typeof installationSecretsSchema>;
|
|
71
|
+
/**
|
|
72
|
+
* `GET /installation`: the platform's version, and its cloud when it names a provider; and its
|
|
73
|
+
* backups (feature 041); and where it keeps its secrets (feature 038).
|
|
74
|
+
*/
|
|
75
|
+
export declare const installationSchema: z.ZodObject<{
|
|
76
|
+
platformVersion: z.ZodString;
|
|
77
|
+
cloud: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
78
|
+
provider: z.ZodString;
|
|
79
|
+
account: z.ZodString;
|
|
80
|
+
location: z.ZodString;
|
|
81
|
+
kmsKey: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
82
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
83
|
+
provider: string;
|
|
84
|
+
account: string;
|
|
85
|
+
location: string;
|
|
86
|
+
kmsKey: string | undefined;
|
|
87
|
+
} | undefined, {
|
|
88
|
+
provider: string;
|
|
89
|
+
account: string;
|
|
90
|
+
location: string;
|
|
91
|
+
kmsKey: string | undefined;
|
|
92
|
+
} | null | undefined>>;
|
|
93
|
+
backups: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
94
|
+
backupTarget: z.ZodString;
|
|
95
|
+
retentionDays: z.ZodNumber;
|
|
96
|
+
copyRequired: z.ZodBoolean;
|
|
97
|
+
sharesFailureDomain: z.ZodBoolean;
|
|
98
|
+
encryption: z.ZodString;
|
|
99
|
+
controlPlane: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
100
|
+
line: z.ZodString;
|
|
101
|
+
cluster: z.ZodString;
|
|
102
|
+
phase: z.ZodString;
|
|
103
|
+
lastBaseBackup: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
104
|
+
firstRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
105
|
+
lastRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
106
|
+
archiveLagSeconds: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
107
|
+
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
108
|
+
copiedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
109
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
110
|
+
line: string;
|
|
111
|
+
cluster: string;
|
|
112
|
+
phase: string;
|
|
113
|
+
lastBaseBackup: string | undefined;
|
|
114
|
+
firstRestorable: string | undefined;
|
|
115
|
+
lastRestorable: string | undefined;
|
|
116
|
+
archiveLagSeconds: number | undefined;
|
|
117
|
+
failing: string | undefined;
|
|
118
|
+
copiedAt: string | undefined;
|
|
119
|
+
} | undefined, {
|
|
120
|
+
line: string;
|
|
121
|
+
cluster: string;
|
|
122
|
+
phase: string;
|
|
123
|
+
lastBaseBackup: string | undefined;
|
|
124
|
+
firstRestorable: string | undefined;
|
|
125
|
+
lastRestorable: string | undefined;
|
|
126
|
+
archiveLagSeconds: number | undefined;
|
|
127
|
+
failing: string | undefined;
|
|
128
|
+
copiedAt: string | undefined;
|
|
129
|
+
} | null | undefined>>;
|
|
130
|
+
notBackedUp: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
131
|
+
secondaryStore: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
132
|
+
lastCompleted: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
133
|
+
lastFailed: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
134
|
+
failure: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
135
|
+
buckets: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
136
|
+
deletedObjects: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
137
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
138
|
+
lastCompleted: string | undefined;
|
|
139
|
+
lastFailed: string | undefined;
|
|
140
|
+
failure: string | undefined;
|
|
141
|
+
buckets: number | undefined;
|
|
142
|
+
deletedObjects: number | undefined;
|
|
143
|
+
} | undefined, {
|
|
144
|
+
lastCompleted: string | undefined;
|
|
145
|
+
lastFailed: string | undefined;
|
|
146
|
+
failure: string | undefined;
|
|
147
|
+
buckets: number | undefined;
|
|
148
|
+
deletedObjects: number | undefined;
|
|
149
|
+
} | null | undefined>>;
|
|
150
|
+
}, z.core.$strip>>>>, z.ZodTransform<{
|
|
151
|
+
backupTarget: string;
|
|
152
|
+
retentionDays: number;
|
|
153
|
+
copyRequired: boolean;
|
|
154
|
+
sharesFailureDomain: boolean;
|
|
155
|
+
encryption: string;
|
|
156
|
+
controlPlane: {
|
|
157
|
+
line: string;
|
|
158
|
+
cluster: string;
|
|
159
|
+
phase: string;
|
|
160
|
+
lastBaseBackup: string | undefined;
|
|
161
|
+
firstRestorable: string | undefined;
|
|
162
|
+
lastRestorable: string | undefined;
|
|
163
|
+
archiveLagSeconds: number | undefined;
|
|
164
|
+
failing: string | undefined;
|
|
165
|
+
copiedAt: string | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
notBackedUp: string | undefined;
|
|
168
|
+
secondaryStore: {
|
|
169
|
+
lastCompleted: string | undefined;
|
|
170
|
+
lastFailed: string | undefined;
|
|
171
|
+
failure: string | undefined;
|
|
172
|
+
buckets: number | undefined;
|
|
173
|
+
deletedObjects: number | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
} | undefined, {
|
|
176
|
+
backupTarget: string;
|
|
177
|
+
retentionDays: number;
|
|
178
|
+
copyRequired: boolean;
|
|
179
|
+
sharesFailureDomain: boolean;
|
|
180
|
+
encryption: string;
|
|
181
|
+
controlPlane: {
|
|
182
|
+
line: string;
|
|
183
|
+
cluster: string;
|
|
184
|
+
phase: string;
|
|
185
|
+
lastBaseBackup: string | undefined;
|
|
186
|
+
firstRestorable: string | undefined;
|
|
187
|
+
lastRestorable: string | undefined;
|
|
188
|
+
archiveLagSeconds: number | undefined;
|
|
189
|
+
failing: string | undefined;
|
|
190
|
+
copiedAt: string | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
notBackedUp: string | undefined;
|
|
193
|
+
secondaryStore: {
|
|
194
|
+
lastCompleted: string | undefined;
|
|
195
|
+
lastFailed: string | undefined;
|
|
196
|
+
failure: string | undefined;
|
|
197
|
+
buckets: number | undefined;
|
|
198
|
+
deletedObjects: number | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
} | null | undefined>>;
|
|
201
|
+
secrets: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
202
|
+
backend: z.ZodString;
|
|
203
|
+
recordRetention: z.ZodString;
|
|
204
|
+
auditLog: z.ZodDefault<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
206
|
+
backend: string;
|
|
207
|
+
recordRetention: string;
|
|
208
|
+
auditLog: string;
|
|
209
|
+
} | undefined, {
|
|
210
|
+
backend: string;
|
|
211
|
+
recordRetention: string;
|
|
212
|
+
auditLog: string;
|
|
213
|
+
} | null | undefined>>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
export type Installation = z.infer<typeof installationSchema>;
|
|
56
216
|
export declare const quotaSchema: z.ZodObject<{
|
|
57
217
|
projects: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
58
218
|
services: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
@@ -176,6 +336,80 @@ export declare const mountStatusSchema: z.ZodObject<{
|
|
|
176
336
|
state: z.ZodDefault<z.ZodString>;
|
|
177
337
|
}, z.core.$strip>;
|
|
178
338
|
export type MountStatus = z.infer<typeof mountStatusSchema>;
|
|
339
|
+
/** One name in a move of a service's secrets to Secret Manager, and how the two compare. */
|
|
340
|
+
export declare const secretMoveNameSchema: z.ZodObject<{
|
|
341
|
+
name: z.ZodString;
|
|
342
|
+
state: z.ZodString;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
/** What a move of a service's secrets did when its instance started; names and states, never a value. */
|
|
345
|
+
export declare const secretMoveReportSchema: z.ZodObject<{
|
|
346
|
+
phase: z.ZodString;
|
|
347
|
+
outcome: z.ZodString;
|
|
348
|
+
names: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
349
|
+
name: z.ZodString;
|
|
350
|
+
state: z.ZodString;
|
|
351
|
+
}, z.core.$strip>>>;
|
|
352
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
/** Where a service's instance keeps its secrets, and what a move of them did. */
|
|
355
|
+
export declare const secretStoreReportSchema: z.ZodObject<{
|
|
356
|
+
backend: z.ZodString;
|
|
357
|
+
keyRead: z.ZodBoolean;
|
|
358
|
+
move: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
359
|
+
phase: z.ZodString;
|
|
360
|
+
outcome: z.ZodString;
|
|
361
|
+
names: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
state: z.ZodString;
|
|
364
|
+
}, z.core.$strip>>>;
|
|
365
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
366
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
367
|
+
phase: string;
|
|
368
|
+
outcome: string;
|
|
369
|
+
names: {
|
|
370
|
+
name: string;
|
|
371
|
+
state: string;
|
|
372
|
+
}[];
|
|
373
|
+
detail: string | undefined;
|
|
374
|
+
} | undefined, {
|
|
375
|
+
phase: string;
|
|
376
|
+
outcome: string;
|
|
377
|
+
names: {
|
|
378
|
+
name: string;
|
|
379
|
+
state: string;
|
|
380
|
+
}[];
|
|
381
|
+
detail: string | undefined;
|
|
382
|
+
} | null | undefined>>;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
export type SecretStoreReport = z.infer<typeof secretStoreReportSchema>;
|
|
385
|
+
/** A DNS record a member creates at their provider; the platform writes none. */
|
|
386
|
+
export declare const dnsRecordSchema: z.ZodObject<{
|
|
387
|
+
name: z.ZodString;
|
|
388
|
+
kind: z.ZodString;
|
|
389
|
+
value: z.ZodString;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
export type DnsRecord = z.infer<typeof dnsRecordSchema>;
|
|
392
|
+
/** One custom hostname of a service: where it stands, and the record that points it at the installation. */
|
|
393
|
+
export declare const customHostnameSchema: z.ZodObject<{
|
|
394
|
+
hostname: z.ZodString;
|
|
395
|
+
state: z.ZodDefault<z.ZodString>;
|
|
396
|
+
reason: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
397
|
+
record: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
398
|
+
name: z.ZodString;
|
|
399
|
+
kind: z.ZodString;
|
|
400
|
+
value: z.ZodString;
|
|
401
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
402
|
+
name: string;
|
|
403
|
+
kind: string;
|
|
404
|
+
value: string;
|
|
405
|
+
} | undefined, {
|
|
406
|
+
name: string;
|
|
407
|
+
kind: string;
|
|
408
|
+
value: string;
|
|
409
|
+
} | null | undefined>>;
|
|
410
|
+
note: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
export type CustomHostname = z.infer<typeof customHostnameSchema>;
|
|
179
413
|
export declare const serviceStatusSchema: z.ZodObject<{
|
|
180
414
|
name: z.ZodString;
|
|
181
415
|
projectId: z.ZodString;
|
|
@@ -202,6 +436,59 @@ export declare const serviceStatusSchema: z.ZodObject<{
|
|
|
202
436
|
processPort: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
203
437
|
broker: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
204
438
|
undeclaredTopics: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | undefined, string[] | null | undefined>>;
|
|
439
|
+
secretStore: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
440
|
+
backend: z.ZodString;
|
|
441
|
+
keyRead: z.ZodBoolean;
|
|
442
|
+
move: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
443
|
+
phase: z.ZodString;
|
|
444
|
+
outcome: z.ZodString;
|
|
445
|
+
names: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
state: z.ZodString;
|
|
448
|
+
}, z.core.$strip>>>;
|
|
449
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
450
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
451
|
+
phase: string;
|
|
452
|
+
outcome: string;
|
|
453
|
+
names: {
|
|
454
|
+
name: string;
|
|
455
|
+
state: string;
|
|
456
|
+
}[];
|
|
457
|
+
detail: string | undefined;
|
|
458
|
+
} | undefined, {
|
|
459
|
+
phase: string;
|
|
460
|
+
outcome: string;
|
|
461
|
+
names: {
|
|
462
|
+
name: string;
|
|
463
|
+
state: string;
|
|
464
|
+
}[];
|
|
465
|
+
detail: string | undefined;
|
|
466
|
+
} | null | undefined>>;
|
|
467
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
468
|
+
backend: string;
|
|
469
|
+
keyRead: boolean;
|
|
470
|
+
move: {
|
|
471
|
+
phase: string;
|
|
472
|
+
outcome: string;
|
|
473
|
+
names: {
|
|
474
|
+
name: string;
|
|
475
|
+
state: string;
|
|
476
|
+
}[];
|
|
477
|
+
detail: string | undefined;
|
|
478
|
+
} | undefined;
|
|
479
|
+
} | undefined, {
|
|
480
|
+
backend: string;
|
|
481
|
+
keyRead: boolean;
|
|
482
|
+
move: {
|
|
483
|
+
phase: string;
|
|
484
|
+
outcome: string;
|
|
485
|
+
names: {
|
|
486
|
+
name: string;
|
|
487
|
+
state: string;
|
|
488
|
+
}[];
|
|
489
|
+
detail: string | undefined;
|
|
490
|
+
} | undefined;
|
|
491
|
+
} | null | undefined>>;
|
|
205
492
|
topicChecks: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
206
493
|
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
207
494
|
service: z.ZodString;
|
|
@@ -237,6 +524,34 @@ export declare const serviceStatusSchema: z.ZodObject<{
|
|
|
237
524
|
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
238
525
|
lag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
239
526
|
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
527
|
+
gap: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
528
|
+
partitions: z.ZodArray<z.ZodObject<{
|
|
529
|
+
partition: z.ZodNumber;
|
|
530
|
+
beginning: z.ZodNumber;
|
|
531
|
+
earliestRetained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
532
|
+
}, z.core.$strip>>;
|
|
533
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
534
|
+
gone: z.ZodDefault<z.ZodBoolean>;
|
|
535
|
+
readAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
536
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
537
|
+
partitions: {
|
|
538
|
+
partition: number;
|
|
539
|
+
beginning: number;
|
|
540
|
+
earliestRetained: string | undefined;
|
|
541
|
+
}[];
|
|
542
|
+
compacted: boolean;
|
|
543
|
+
gone: boolean;
|
|
544
|
+
readAt: string | undefined;
|
|
545
|
+
} | undefined, {
|
|
546
|
+
partitions: {
|
|
547
|
+
partition: number;
|
|
548
|
+
beginning: number;
|
|
549
|
+
earliestRetained: string | undefined;
|
|
550
|
+
}[];
|
|
551
|
+
compacted: boolean;
|
|
552
|
+
gone: boolean;
|
|
553
|
+
readAt: string | undefined;
|
|
554
|
+
} | null | undefined>>;
|
|
240
555
|
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
241
556
|
kind: string;
|
|
242
557
|
component: string;
|
|
@@ -250,6 +565,16 @@ export declare const serviceStatusSchema: z.ZodObject<{
|
|
|
250
565
|
contract: string | undefined;
|
|
251
566
|
lag: number | undefined;
|
|
252
567
|
failing: string | undefined;
|
|
568
|
+
gap: {
|
|
569
|
+
partitions: {
|
|
570
|
+
partition: number;
|
|
571
|
+
beginning: number;
|
|
572
|
+
earliestRetained: string | undefined;
|
|
573
|
+
}[];
|
|
574
|
+
compacted: boolean;
|
|
575
|
+
gone: boolean;
|
|
576
|
+
readAt: string | undefined;
|
|
577
|
+
} | undefined;
|
|
253
578
|
}[] | undefined, {
|
|
254
579
|
kind: string;
|
|
255
580
|
component: string;
|
|
@@ -263,12 +588,109 @@ export declare const serviceStatusSchema: z.ZodObject<{
|
|
|
263
588
|
contract: string | undefined;
|
|
264
589
|
lag: number | undefined;
|
|
265
590
|
failing: string | undefined;
|
|
591
|
+
gap: {
|
|
592
|
+
partitions: {
|
|
593
|
+
partition: number;
|
|
594
|
+
beginning: number;
|
|
595
|
+
earliestRetained: string | undefined;
|
|
596
|
+
}[];
|
|
597
|
+
compacted: boolean;
|
|
598
|
+
gone: boolean;
|
|
599
|
+
readAt: string | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
}[] | null | undefined>>;
|
|
602
|
+
warnings: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
603
|
+
kind: z.ZodString;
|
|
604
|
+
component: z.ZodString;
|
|
605
|
+
topic: z.ZodString;
|
|
606
|
+
message: z.ZodString;
|
|
607
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
608
|
+
kind: string;
|
|
609
|
+
component: string;
|
|
610
|
+
topic: string;
|
|
611
|
+
message: string;
|
|
612
|
+
}[] | undefined, {
|
|
613
|
+
kind: string;
|
|
614
|
+
component: string;
|
|
615
|
+
topic: string;
|
|
616
|
+
message: string;
|
|
266
617
|
}[] | null | undefined>>;
|
|
267
618
|
objectStorage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
268
619
|
bucket: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
269
620
|
bucketAddress: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
621
|
+
objectStore: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
622
|
+
bucketLocation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
623
|
+
softDeleteDays: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
624
|
+
storageMove: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
625
|
+
databaseCluster: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
626
|
+
grants: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
627
|
+
crossProjectTopics: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
628
|
+
project: z.ZodString;
|
|
629
|
+
topic: z.ZodString;
|
|
630
|
+
right: z.ZodString;
|
|
631
|
+
status: z.ZodString;
|
|
632
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
633
|
+
project: string;
|
|
634
|
+
topic: string;
|
|
635
|
+
right: string;
|
|
636
|
+
status: string;
|
|
637
|
+
}[] | undefined, {
|
|
638
|
+
project: string;
|
|
639
|
+
topic: string;
|
|
640
|
+
right: string;
|
|
641
|
+
status: string;
|
|
642
|
+
}[] | null | undefined>>;
|
|
643
|
+
customHostnames: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
644
|
+
hostname: z.ZodString;
|
|
645
|
+
state: z.ZodDefault<z.ZodString>;
|
|
646
|
+
reason: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
647
|
+
record: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
648
|
+
name: z.ZodString;
|
|
649
|
+
kind: z.ZodString;
|
|
650
|
+
value: z.ZodString;
|
|
651
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
652
|
+
name: string;
|
|
653
|
+
kind: string;
|
|
654
|
+
value: string;
|
|
655
|
+
} | undefined, {
|
|
656
|
+
name: string;
|
|
657
|
+
kind: string;
|
|
658
|
+
value: string;
|
|
659
|
+
} | null | undefined>>;
|
|
660
|
+
note: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
661
|
+
}, z.core.$strip>>>;
|
|
662
|
+
proofRecord: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
663
|
+
name: z.ZodString;
|
|
664
|
+
kind: z.ZodString;
|
|
665
|
+
value: z.ZodString;
|
|
666
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
667
|
+
name: string;
|
|
668
|
+
kind: string;
|
|
669
|
+
value: string;
|
|
670
|
+
} | undefined, {
|
|
671
|
+
name: string;
|
|
672
|
+
kind: string;
|
|
673
|
+
value: string;
|
|
674
|
+
} | null | undefined>>;
|
|
270
675
|
}, z.core.$strip>;
|
|
271
676
|
export type ServiceStatus = z.infer<typeof serviceStatusSchema>;
|
|
677
|
+
/** `POST /services/{project}/{name}/storage/move`: how long the service's writes may be paused. */
|
|
678
|
+
export declare const storageMoveRequestSchema: z.ZodObject<{
|
|
679
|
+
writePauseBound: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
680
|
+
}, z.core.$strip>;
|
|
681
|
+
export type StorageMoveRequest = z.infer<typeof storageMoveRequestSchema>;
|
|
682
|
+
/** `PUT /projects/{id}/location`. */
|
|
683
|
+
export declare const setProjectLocationSchema: z.ZodObject<{
|
|
684
|
+
location: z.ZodString;
|
|
685
|
+
}, z.core.$strip>;
|
|
686
|
+
export type SetProjectLocation = z.infer<typeof setProjectLocationSchema>;
|
|
687
|
+
export declare const crossProjectTopicSchema: z.ZodObject<{
|
|
688
|
+
project: z.ZodString;
|
|
689
|
+
topic: z.ZodString;
|
|
690
|
+
right: z.ZodString;
|
|
691
|
+
status: z.ZodString;
|
|
692
|
+
}, z.core.$strip>;
|
|
693
|
+
export type CrossProjectTopic = z.infer<typeof crossProjectTopicSchema>;
|
|
272
694
|
export declare const historyActorSchema: z.ZodObject<{
|
|
273
695
|
subject: z.ZodString;
|
|
274
696
|
display: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
@@ -294,7 +716,9 @@ export declare const historyEntrySchema: z.ZodObject<{
|
|
|
294
716
|
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
295
717
|
image: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
296
718
|
digest: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
719
|
+
hostname: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
297
720
|
rolledBackTo: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
721
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
298
722
|
}, z.core.$strip>;
|
|
299
723
|
export type HistoryEntry = z.infer<typeof historyEntrySchema>;
|
|
300
724
|
export declare const rollbackRequestSchema: z.ZodObject<{
|
|
@@ -329,6 +753,59 @@ export declare const rolledBackSchema: z.ZodObject<{
|
|
|
329
753
|
processPort: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
330
754
|
broker: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
331
755
|
undeclaredTopics: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | undefined, string[] | null | undefined>>;
|
|
756
|
+
secretStore: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
757
|
+
backend: z.ZodString;
|
|
758
|
+
keyRead: z.ZodBoolean;
|
|
759
|
+
move: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
760
|
+
phase: z.ZodString;
|
|
761
|
+
outcome: z.ZodString;
|
|
762
|
+
names: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
763
|
+
name: z.ZodString;
|
|
764
|
+
state: z.ZodString;
|
|
765
|
+
}, z.core.$strip>>>;
|
|
766
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
767
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
768
|
+
phase: string;
|
|
769
|
+
outcome: string;
|
|
770
|
+
names: {
|
|
771
|
+
name: string;
|
|
772
|
+
state: string;
|
|
773
|
+
}[];
|
|
774
|
+
detail: string | undefined;
|
|
775
|
+
} | undefined, {
|
|
776
|
+
phase: string;
|
|
777
|
+
outcome: string;
|
|
778
|
+
names: {
|
|
779
|
+
name: string;
|
|
780
|
+
state: string;
|
|
781
|
+
}[];
|
|
782
|
+
detail: string | undefined;
|
|
783
|
+
} | null | undefined>>;
|
|
784
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
785
|
+
backend: string;
|
|
786
|
+
keyRead: boolean;
|
|
787
|
+
move: {
|
|
788
|
+
phase: string;
|
|
789
|
+
outcome: string;
|
|
790
|
+
names: {
|
|
791
|
+
name: string;
|
|
792
|
+
state: string;
|
|
793
|
+
}[];
|
|
794
|
+
detail: string | undefined;
|
|
795
|
+
} | undefined;
|
|
796
|
+
} | undefined, {
|
|
797
|
+
backend: string;
|
|
798
|
+
keyRead: boolean;
|
|
799
|
+
move: {
|
|
800
|
+
phase: string;
|
|
801
|
+
outcome: string;
|
|
802
|
+
names: {
|
|
803
|
+
name: string;
|
|
804
|
+
state: string;
|
|
805
|
+
}[];
|
|
806
|
+
detail: string | undefined;
|
|
807
|
+
} | undefined;
|
|
808
|
+
} | null | undefined>>;
|
|
332
809
|
topicChecks: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
333
810
|
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
334
811
|
service: z.ZodString;
|
|
@@ -364,6 +841,34 @@ export declare const rolledBackSchema: z.ZodObject<{
|
|
|
364
841
|
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
365
842
|
lag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
366
843
|
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
844
|
+
gap: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
845
|
+
partitions: z.ZodArray<z.ZodObject<{
|
|
846
|
+
partition: z.ZodNumber;
|
|
847
|
+
beginning: z.ZodNumber;
|
|
848
|
+
earliestRetained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
849
|
+
}, z.core.$strip>>;
|
|
850
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
851
|
+
gone: z.ZodDefault<z.ZodBoolean>;
|
|
852
|
+
readAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
853
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
854
|
+
partitions: {
|
|
855
|
+
partition: number;
|
|
856
|
+
beginning: number;
|
|
857
|
+
earliestRetained: string | undefined;
|
|
858
|
+
}[];
|
|
859
|
+
compacted: boolean;
|
|
860
|
+
gone: boolean;
|
|
861
|
+
readAt: string | undefined;
|
|
862
|
+
} | undefined, {
|
|
863
|
+
partitions: {
|
|
864
|
+
partition: number;
|
|
865
|
+
beginning: number;
|
|
866
|
+
earliestRetained: string | undefined;
|
|
867
|
+
}[];
|
|
868
|
+
compacted: boolean;
|
|
869
|
+
gone: boolean;
|
|
870
|
+
readAt: string | undefined;
|
|
871
|
+
} | null | undefined>>;
|
|
367
872
|
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
368
873
|
kind: string;
|
|
369
874
|
component: string;
|
|
@@ -377,6 +882,16 @@ export declare const rolledBackSchema: z.ZodObject<{
|
|
|
377
882
|
contract: string | undefined;
|
|
378
883
|
lag: number | undefined;
|
|
379
884
|
failing: string | undefined;
|
|
885
|
+
gap: {
|
|
886
|
+
partitions: {
|
|
887
|
+
partition: number;
|
|
888
|
+
beginning: number;
|
|
889
|
+
earliestRetained: string | undefined;
|
|
890
|
+
}[];
|
|
891
|
+
compacted: boolean;
|
|
892
|
+
gone: boolean;
|
|
893
|
+
readAt: string | undefined;
|
|
894
|
+
} | undefined;
|
|
380
895
|
}[] | undefined, {
|
|
381
896
|
kind: string;
|
|
382
897
|
component: string;
|
|
@@ -390,10 +905,90 @@ export declare const rolledBackSchema: z.ZodObject<{
|
|
|
390
905
|
contract: string | undefined;
|
|
391
906
|
lag: number | undefined;
|
|
392
907
|
failing: string | undefined;
|
|
908
|
+
gap: {
|
|
909
|
+
partitions: {
|
|
910
|
+
partition: number;
|
|
911
|
+
beginning: number;
|
|
912
|
+
earliestRetained: string | undefined;
|
|
913
|
+
}[];
|
|
914
|
+
compacted: boolean;
|
|
915
|
+
gone: boolean;
|
|
916
|
+
readAt: string | undefined;
|
|
917
|
+
} | undefined;
|
|
918
|
+
}[] | null | undefined>>;
|
|
919
|
+
warnings: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
920
|
+
kind: z.ZodString;
|
|
921
|
+
component: z.ZodString;
|
|
922
|
+
topic: z.ZodString;
|
|
923
|
+
message: z.ZodString;
|
|
924
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
925
|
+
kind: string;
|
|
926
|
+
component: string;
|
|
927
|
+
topic: string;
|
|
928
|
+
message: string;
|
|
929
|
+
}[] | undefined, {
|
|
930
|
+
kind: string;
|
|
931
|
+
component: string;
|
|
932
|
+
topic: string;
|
|
933
|
+
message: string;
|
|
393
934
|
}[] | null | undefined>>;
|
|
394
935
|
objectStorage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
395
936
|
bucket: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
396
937
|
bucketAddress: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
938
|
+
objectStore: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
939
|
+
bucketLocation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
940
|
+
softDeleteDays: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
941
|
+
storageMove: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
942
|
+
databaseCluster: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
943
|
+
grants: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
944
|
+
crossProjectTopics: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
945
|
+
project: z.ZodString;
|
|
946
|
+
topic: z.ZodString;
|
|
947
|
+
right: z.ZodString;
|
|
948
|
+
status: z.ZodString;
|
|
949
|
+
}, z.core.$strip>>>>>, z.ZodTransform<{
|
|
950
|
+
project: string;
|
|
951
|
+
topic: string;
|
|
952
|
+
right: string;
|
|
953
|
+
status: string;
|
|
954
|
+
}[] | undefined, {
|
|
955
|
+
project: string;
|
|
956
|
+
topic: string;
|
|
957
|
+
right: string;
|
|
958
|
+
status: string;
|
|
959
|
+
}[] | null | undefined>>;
|
|
960
|
+
customHostnames: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
961
|
+
hostname: z.ZodString;
|
|
962
|
+
state: z.ZodDefault<z.ZodString>;
|
|
963
|
+
reason: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
964
|
+
record: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
965
|
+
name: z.ZodString;
|
|
966
|
+
kind: z.ZodString;
|
|
967
|
+
value: z.ZodString;
|
|
968
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
969
|
+
name: string;
|
|
970
|
+
kind: string;
|
|
971
|
+
value: string;
|
|
972
|
+
} | undefined, {
|
|
973
|
+
name: string;
|
|
974
|
+
kind: string;
|
|
975
|
+
value: string;
|
|
976
|
+
} | null | undefined>>;
|
|
977
|
+
note: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
978
|
+
}, z.core.$strip>>>;
|
|
979
|
+
proofRecord: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
980
|
+
name: z.ZodString;
|
|
981
|
+
kind: z.ZodString;
|
|
982
|
+
value: z.ZodString;
|
|
983
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
984
|
+
name: string;
|
|
985
|
+
kind: string;
|
|
986
|
+
value: string;
|
|
987
|
+
} | undefined, {
|
|
988
|
+
name: string;
|
|
989
|
+
kind: string;
|
|
990
|
+
value: string;
|
|
991
|
+
} | null | undefined>>;
|
|
397
992
|
}, z.core.$strip>;
|
|
398
993
|
}, z.core.$strip>;
|
|
399
994
|
export type RolledBack = z.infer<typeof rolledBackSchema>;
|
|
@@ -798,10 +1393,14 @@ export declare const topicCheckSchema: z.ZodObject<{
|
|
|
798
1393
|
export type TopicCheck = z.infer<typeof topicCheckSchema>;
|
|
799
1394
|
/**
|
|
800
1395
|
* `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
|
|
1396
|
+
* only the last message under each key, and the contract it carries with its schema document; and
|
|
1397
|
+
* how long it keeps, how it is cleaned and how many copies it has, each in the words a member types.
|
|
1398
|
+
* A new topic needs its partitions and takes every setting left out from the installation; a topic
|
|
1399
|
+
* already declared keeps what is left out. `removes` restates what a change that removes messages
|
|
1400
|
+
* removes, in the control plane's own words.
|
|
802
1401
|
*/
|
|
803
1402
|
export declare const topicDeclarationRequestSchema: z.ZodObject<{
|
|
804
|
-
partitions: z.ZodNumber
|
|
1403
|
+
partitions: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
805
1404
|
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
806
1405
|
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
807
1406
|
name: z.ZodString;
|
|
@@ -813,8 +1412,30 @@ export declare const topicDeclarationRequestSchema: z.ZodObject<{
|
|
|
813
1412
|
name: string;
|
|
814
1413
|
schema: unknown;
|
|
815
1414
|
} | null | undefined>>;
|
|
1415
|
+
retention: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1416
|
+
retentionSize: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1417
|
+
cleanup: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1418
|
+
tombstoneWindow: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1419
|
+
minCompactionLag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1420
|
+
maxCompactionLag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1421
|
+
copies: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1422
|
+
minInSync: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1423
|
+
removes: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
816
1424
|
}, z.core.$strip>;
|
|
817
1425
|
export type TopicDeclarationRequest = z.input<typeof topicDeclarationRequestSchema>;
|
|
1426
|
+
/** A declared topic's every setting in words, and the ones the installation supplied. */
|
|
1427
|
+
export declare const topicSettingsViewSchema: z.ZodObject<{
|
|
1428
|
+
retention: z.ZodString;
|
|
1429
|
+
retentionSize: z.ZodString;
|
|
1430
|
+
cleanup: z.ZodString;
|
|
1431
|
+
tombstoneWindow: z.ZodString;
|
|
1432
|
+
minCompactionLag: z.ZodString;
|
|
1433
|
+
maxCompactionLag: z.ZodString;
|
|
1434
|
+
copies: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1435
|
+
minInSync: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1436
|
+
defaulted: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1437
|
+
}, z.core.$strip>;
|
|
1438
|
+
export type TopicSettingsView = z.infer<typeof topicSettingsViewSchema>;
|
|
818
1439
|
/** A topic a project declares, and how far the platform has got with it. */
|
|
819
1440
|
export declare const projectTopicSchema: z.ZodObject<{
|
|
820
1441
|
name: z.ZodString;
|
|
@@ -840,8 +1461,75 @@ export declare const projectTopicSchema: z.ZodObject<{
|
|
|
840
1461
|
stated: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
841
1462
|
state: z.ZodString;
|
|
842
1463
|
}, z.core.$strip>>>;
|
|
1464
|
+
settings: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1465
|
+
retention: z.ZodString;
|
|
1466
|
+
retentionSize: z.ZodString;
|
|
1467
|
+
cleanup: z.ZodString;
|
|
1468
|
+
tombstoneWindow: z.ZodString;
|
|
1469
|
+
minCompactionLag: z.ZodString;
|
|
1470
|
+
maxCompactionLag: z.ZodString;
|
|
1471
|
+
copies: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1472
|
+
minInSync: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1473
|
+
defaulted: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1474
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
1475
|
+
retention: string;
|
|
1476
|
+
retentionSize: string;
|
|
1477
|
+
cleanup: string;
|
|
1478
|
+
tombstoneWindow: string;
|
|
1479
|
+
minCompactionLag: string;
|
|
1480
|
+
maxCompactionLag: string;
|
|
1481
|
+
copies: number | undefined;
|
|
1482
|
+
minInSync: number | undefined;
|
|
1483
|
+
defaulted: string[];
|
|
1484
|
+
} | undefined, {
|
|
1485
|
+
retention: string;
|
|
1486
|
+
retentionSize: string;
|
|
1487
|
+
cleanup: string;
|
|
1488
|
+
tombstoneWindow: string;
|
|
1489
|
+
minCompactionLag: string;
|
|
1490
|
+
maxCompactionLag: string;
|
|
1491
|
+
copies: number | undefined;
|
|
1492
|
+
minInSync: number | undefined;
|
|
1493
|
+
defaulted: string[];
|
|
1494
|
+
} | null | undefined>>;
|
|
1495
|
+
copiesHeld: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1496
|
+
brokerNodes: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
843
1497
|
}, z.core.$strip>;
|
|
844
1498
|
export type ProjectTopic = z.infer<typeof projectTopicSchema>;
|
|
1499
|
+
/** One setting a declaration changed, from what to what. */
|
|
1500
|
+
export declare const settingChangeSchema: z.ZodObject<{
|
|
1501
|
+
setting: z.ZodString;
|
|
1502
|
+
from: z.ZodString;
|
|
1503
|
+
to: z.ZodString;
|
|
1504
|
+
}, z.core.$strip>;
|
|
1505
|
+
export type SettingChange = z.infer<typeof settingChangeSchema>;
|
|
1506
|
+
/** Where a partition begins on the broker, and when that message was published. */
|
|
1507
|
+
export declare const partitionGapReportSchema: z.ZodObject<{
|
|
1508
|
+
partition: z.ZodNumber;
|
|
1509
|
+
beginning: z.ZodNumber;
|
|
1510
|
+
earliestRetained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1511
|
+
}, z.core.$strip>;
|
|
1512
|
+
export type PartitionGapReport = z.infer<typeof partitionGapReportSchema>;
|
|
1513
|
+
/** What a topic source's topic no longer holds, per partition, and whether earlier messages are gone. */
|
|
1514
|
+
export declare const retentionGapReportSchema: z.ZodObject<{
|
|
1515
|
+
partitions: z.ZodArray<z.ZodObject<{
|
|
1516
|
+
partition: z.ZodNumber;
|
|
1517
|
+
beginning: z.ZodNumber;
|
|
1518
|
+
earliestRetained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1519
|
+
}, z.core.$strip>>;
|
|
1520
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
1521
|
+
gone: z.ZodDefault<z.ZodBoolean>;
|
|
1522
|
+
readAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1523
|
+
}, z.core.$strip>;
|
|
1524
|
+
export type RetentionGapReport = z.infer<typeof retentionGapReportSchema>;
|
|
1525
|
+
/** Something about a service a member should know: a view over a topic that keeps too little. */
|
|
1526
|
+
export declare const serviceWarningSchema: z.ZodObject<{
|
|
1527
|
+
kind: z.ZodString;
|
|
1528
|
+
component: z.ZodString;
|
|
1529
|
+
topic: z.ZodString;
|
|
1530
|
+
message: z.ZodString;
|
|
1531
|
+
}, z.core.$strip>;
|
|
1532
|
+
export type ServiceWarning = z.infer<typeof serviceWarningSchema>;
|
|
845
1533
|
/**
|
|
846
1534
|
* A topic source as a service's instances report it: what reads which topic under which group, the
|
|
847
1535
|
* declared broker and contract it states, `lag` (messages past the last one handled, as of the last
|
|
@@ -860,6 +1548,34 @@ export declare const topicSourceReportSchema: z.ZodObject<{
|
|
|
860
1548
|
contract: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
861
1549
|
lag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
862
1550
|
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1551
|
+
gap: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1552
|
+
partitions: z.ZodArray<z.ZodObject<{
|
|
1553
|
+
partition: z.ZodNumber;
|
|
1554
|
+
beginning: z.ZodNumber;
|
|
1555
|
+
earliestRetained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1556
|
+
}, z.core.$strip>>;
|
|
1557
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
1558
|
+
gone: z.ZodDefault<z.ZodBoolean>;
|
|
1559
|
+
readAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1560
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
1561
|
+
partitions: {
|
|
1562
|
+
partition: number;
|
|
1563
|
+
beginning: number;
|
|
1564
|
+
earliestRetained: string | undefined;
|
|
1565
|
+
}[];
|
|
1566
|
+
compacted: boolean;
|
|
1567
|
+
gone: boolean;
|
|
1568
|
+
readAt: string | undefined;
|
|
1569
|
+
} | undefined, {
|
|
1570
|
+
partitions: {
|
|
1571
|
+
partition: number;
|
|
1572
|
+
beginning: number;
|
|
1573
|
+
earliestRetained: string | undefined;
|
|
1574
|
+
}[];
|
|
1575
|
+
compacted: boolean;
|
|
1576
|
+
gone: boolean;
|
|
1577
|
+
readAt: string | undefined;
|
|
1578
|
+
} | null | undefined>>;
|
|
863
1579
|
}, z.core.$strip>;
|
|
864
1580
|
export type TopicSourceReport = z.infer<typeof topicSourceReportSchema>;
|
|
865
1581
|
/** `PUT /projects/{id}/brokers/{name}`: a broker declared beside the installation's, and how it is reached. */
|
|
@@ -886,5 +1602,599 @@ export declare const projectSecretSummarySchema: z.ZodObject<{
|
|
|
886
1602
|
setBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
887
1603
|
}, z.core.$strip>;
|
|
888
1604
|
export type ProjectSecretSummary = z.infer<typeof projectSecretSummarySchema>;
|
|
1605
|
+
/** The record of one read, keep or removal of a service secret: never its value. */
|
|
1606
|
+
export declare const readRecordSchema: z.ZodObject<{
|
|
1607
|
+
at: z.ZodString;
|
|
1608
|
+
project: z.ZodString;
|
|
1609
|
+
service: z.ZodString;
|
|
1610
|
+
hosting: z.ZodString;
|
|
1611
|
+
name: z.ZodString;
|
|
1612
|
+
operation: z.ZodString;
|
|
1613
|
+
outcome: z.ZodString;
|
|
1614
|
+
backend: z.ZodString;
|
|
1615
|
+
traceId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1616
|
+
spanId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1617
|
+
component: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1618
|
+
componentKind: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1619
|
+
latestSkipped: z.ZodDefault<z.ZodBoolean>;
|
|
1620
|
+
}, z.core.$strip>;
|
|
1621
|
+
export type ReadRecord = z.infer<typeof readRecordSchema>;
|
|
1622
|
+
/** The record of a project's secret reads, newest first, as an owner reads it. */
|
|
1623
|
+
export declare const secretReadsPageSchema: z.ZodObject<{
|
|
1624
|
+
records: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1625
|
+
at: z.ZodString;
|
|
1626
|
+
project: z.ZodString;
|
|
1627
|
+
service: z.ZodString;
|
|
1628
|
+
hosting: z.ZodString;
|
|
1629
|
+
name: z.ZodString;
|
|
1630
|
+
operation: z.ZodString;
|
|
1631
|
+
outcome: z.ZodString;
|
|
1632
|
+
backend: z.ZodString;
|
|
1633
|
+
traceId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1634
|
+
spanId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1635
|
+
component: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1636
|
+
componentKind: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1637
|
+
latestSkipped: z.ZodDefault<z.ZodBoolean>;
|
|
1638
|
+
}, z.core.$strip>>>;
|
|
1639
|
+
}, z.core.$strip>;
|
|
1640
|
+
export type SecretReadsPage = z.infer<typeof secretReadsPageSchema>;
|
|
1641
|
+
/** One line of history's backups: `phase` is `backing up`, `failing` or `not backed up`. */
|
|
1642
|
+
export declare const backupLineSchema: z.ZodObject<{
|
|
1643
|
+
line: z.ZodString;
|
|
1644
|
+
cluster: z.ZodString;
|
|
1645
|
+
phase: z.ZodString;
|
|
1646
|
+
lastBaseBackup: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1647
|
+
firstRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1648
|
+
lastRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1649
|
+
archiveLagSeconds: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1650
|
+
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1651
|
+
copiedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1652
|
+
}, z.core.$strip>;
|
|
1653
|
+
export type BackupLine = z.infer<typeof backupLineSchema>;
|
|
1654
|
+
export declare const projectDatabaseSchema: z.ZodObject<{
|
|
1655
|
+
cluster: z.ZodString;
|
|
1656
|
+
instances: z.ZodNumber;
|
|
1657
|
+
readyInstances: z.ZodNumber;
|
|
1658
|
+
primary: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1659
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
1660
|
+
writesWaitingOn: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1661
|
+
}, z.core.$strip>;
|
|
1662
|
+
export type ProjectDatabase = z.infer<typeof projectDatabaseSchema>;
|
|
1663
|
+
/** One of the project's database clusters: `live`, a `restore`, or `left` once every service has left it. */
|
|
1664
|
+
export declare const projectClusterSchema: z.ZodObject<{
|
|
1665
|
+
name: z.ZodString;
|
|
1666
|
+
line: z.ZodString;
|
|
1667
|
+
phase: z.ZodString;
|
|
1668
|
+
services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1669
|
+
since: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1670
|
+
leftAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1671
|
+
}, z.core.$strip>;
|
|
1672
|
+
export type ProjectCluster = z.infer<typeof projectClusterSchema>;
|
|
1673
|
+
/** What one service's database holds in a restore or a rehearsal; secrets by name only. */
|
|
1674
|
+
export declare const serviceVerificationSchema: z.ZodObject<{
|
|
1675
|
+
name: z.ZodString;
|
|
1676
|
+
present: z.ZodBoolean;
|
|
1677
|
+
journalRows: z.ZodDefault<z.ZodNumber>;
|
|
1678
|
+
stateRows: z.ZodDefault<z.ZodNumber>;
|
|
1679
|
+
offsetRows: z.ZodDefault<z.ZodNumber>;
|
|
1680
|
+
timerRows: z.ZodDefault<z.ZodNumber>;
|
|
1681
|
+
highestSequence: z.ZodDefault<z.ZodNumber>;
|
|
1682
|
+
changedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1683
|
+
}, z.core.$strip>;
|
|
1684
|
+
export type ServiceVerification = z.infer<typeof serviceVerificationSchema>;
|
|
1685
|
+
/** A topic past a restore's moment: messages newer than it, and how many of them a group has read. */
|
|
1686
|
+
export declare const topicDivergenceSchema: z.ZodObject<{
|
|
1687
|
+
topic: z.ZodString;
|
|
1688
|
+
group: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1689
|
+
after: z.ZodDefault<z.ZodNumber>;
|
|
1690
|
+
read: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1691
|
+
services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1692
|
+
}, z.core.$strip>;
|
|
1693
|
+
export type TopicDivergence = z.infer<typeof topicDivergenceSchema>;
|
|
1694
|
+
/** A restore: `Restoring`, `Verified`, `Failed` or `InUse`, with what each service's database holds. */
|
|
1695
|
+
export declare const restoreViewSchema: z.ZodObject<{
|
|
1696
|
+
name: z.ZodString;
|
|
1697
|
+
line: z.ZodString;
|
|
1698
|
+
moment: z.ZodString;
|
|
1699
|
+
phase: z.ZodString;
|
|
1700
|
+
requestedBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1701
|
+
requestedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1702
|
+
reachedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1703
|
+
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1704
|
+
name: z.ZodString;
|
|
1705
|
+
present: z.ZodBoolean;
|
|
1706
|
+
journalRows: z.ZodDefault<z.ZodNumber>;
|
|
1707
|
+
stateRows: z.ZodDefault<z.ZodNumber>;
|
|
1708
|
+
offsetRows: z.ZodDefault<z.ZodNumber>;
|
|
1709
|
+
timerRows: z.ZodDefault<z.ZodNumber>;
|
|
1710
|
+
highestSequence: z.ZodDefault<z.ZodNumber>;
|
|
1711
|
+
changedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1712
|
+
}, z.core.$strip>>>;
|
|
1713
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1714
|
+
broker: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1715
|
+
topic: z.ZodString;
|
|
1716
|
+
group: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1717
|
+
after: z.ZodDefault<z.ZodNumber>;
|
|
1718
|
+
read: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1719
|
+
services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1720
|
+
}, z.core.$strip>>>;
|
|
1721
|
+
notAsked: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1722
|
+
note: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1723
|
+
}, z.core.$strip>;
|
|
1724
|
+
export type RestoreView = z.infer<typeof restoreViewSchema>;
|
|
1725
|
+
/** A rehearsal: `Running`, `Completed`, `Failed` or `NotRemoved`, and how long it took. */
|
|
1726
|
+
export declare const rehearsalViewSchema: z.ZodObject<{
|
|
1727
|
+
name: z.ZodString;
|
|
1728
|
+
line: z.ZodString;
|
|
1729
|
+
moment: z.ZodString;
|
|
1730
|
+
outcome: z.ZodString;
|
|
1731
|
+
requestedBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1732
|
+
requestedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1733
|
+
elapsedSeconds: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1734
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1735
|
+
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1736
|
+
name: z.ZodString;
|
|
1737
|
+
present: z.ZodBoolean;
|
|
1738
|
+
journalRows: z.ZodDefault<z.ZodNumber>;
|
|
1739
|
+
stateRows: z.ZodDefault<z.ZodNumber>;
|
|
1740
|
+
offsetRows: z.ZodDefault<z.ZodNumber>;
|
|
1741
|
+
timerRows: z.ZodDefault<z.ZodNumber>;
|
|
1742
|
+
highestSequence: z.ZodDefault<z.ZodNumber>;
|
|
1743
|
+
changedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1744
|
+
}, z.core.$strip>>>;
|
|
1745
|
+
}, z.core.$strip>;
|
|
1746
|
+
export type RehearsalView = z.infer<typeof rehearsalViewSchema>;
|
|
1747
|
+
export declare const projectStatusSchema: z.ZodObject<{
|
|
1748
|
+
id: z.ZodString;
|
|
1749
|
+
backedUp: z.ZodBoolean;
|
|
1750
|
+
target: z.ZodString;
|
|
1751
|
+
lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1752
|
+
line: z.ZodString;
|
|
1753
|
+
cluster: z.ZodString;
|
|
1754
|
+
phase: z.ZodString;
|
|
1755
|
+
lastBaseBackup: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1756
|
+
firstRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1757
|
+
lastRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1758
|
+
archiveLagSeconds: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1759
|
+
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1760
|
+
copiedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1761
|
+
}, z.core.$strip>>>;
|
|
1762
|
+
database: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1763
|
+
cluster: z.ZodString;
|
|
1764
|
+
instances: z.ZodNumber;
|
|
1765
|
+
readyInstances: z.ZodNumber;
|
|
1766
|
+
primary: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1767
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
1768
|
+
writesWaitingOn: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1769
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
1770
|
+
cluster: string;
|
|
1771
|
+
instances: number;
|
|
1772
|
+
readyInstances: number;
|
|
1773
|
+
primary: string | undefined;
|
|
1774
|
+
synchronous: boolean;
|
|
1775
|
+
writesWaitingOn: string | undefined;
|
|
1776
|
+
} | undefined, {
|
|
1777
|
+
cluster: string;
|
|
1778
|
+
instances: number;
|
|
1779
|
+
readyInstances: number;
|
|
1780
|
+
primary: string | undefined;
|
|
1781
|
+
synchronous: boolean;
|
|
1782
|
+
writesWaitingOn: string | undefined;
|
|
1783
|
+
} | null | undefined>>;
|
|
1784
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1785
|
+
clusters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1786
|
+
name: z.ZodString;
|
|
1787
|
+
line: z.ZodString;
|
|
1788
|
+
phase: z.ZodString;
|
|
1789
|
+
services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1790
|
+
since: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1791
|
+
leftAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1792
|
+
}, z.core.$strip>>>;
|
|
1793
|
+
restores: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1794
|
+
name: z.ZodString;
|
|
1795
|
+
line: z.ZodString;
|
|
1796
|
+
moment: z.ZodString;
|
|
1797
|
+
phase: z.ZodString;
|
|
1798
|
+
requestedBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1799
|
+
requestedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1800
|
+
reachedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1801
|
+
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1802
|
+
name: z.ZodString;
|
|
1803
|
+
present: z.ZodBoolean;
|
|
1804
|
+
journalRows: z.ZodDefault<z.ZodNumber>;
|
|
1805
|
+
stateRows: z.ZodDefault<z.ZodNumber>;
|
|
1806
|
+
offsetRows: z.ZodDefault<z.ZodNumber>;
|
|
1807
|
+
timerRows: z.ZodDefault<z.ZodNumber>;
|
|
1808
|
+
highestSequence: z.ZodDefault<z.ZodNumber>;
|
|
1809
|
+
changedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1810
|
+
}, z.core.$strip>>>;
|
|
1811
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1812
|
+
broker: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1813
|
+
topic: z.ZodString;
|
|
1814
|
+
group: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1815
|
+
after: z.ZodDefault<z.ZodNumber>;
|
|
1816
|
+
read: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1817
|
+
services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1818
|
+
}, z.core.$strip>>>;
|
|
1819
|
+
notAsked: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1820
|
+
note: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1821
|
+
}, z.core.$strip>>>;
|
|
1822
|
+
rehearsal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1823
|
+
name: z.ZodString;
|
|
1824
|
+
line: z.ZodString;
|
|
1825
|
+
moment: z.ZodString;
|
|
1826
|
+
outcome: z.ZodString;
|
|
1827
|
+
requestedBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1828
|
+
requestedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1829
|
+
elapsedSeconds: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1830
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1831
|
+
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1832
|
+
name: z.ZodString;
|
|
1833
|
+
present: z.ZodBoolean;
|
|
1834
|
+
journalRows: z.ZodDefault<z.ZodNumber>;
|
|
1835
|
+
stateRows: z.ZodDefault<z.ZodNumber>;
|
|
1836
|
+
offsetRows: z.ZodDefault<z.ZodNumber>;
|
|
1837
|
+
timerRows: z.ZodDefault<z.ZodNumber>;
|
|
1838
|
+
highestSequence: z.ZodDefault<z.ZodNumber>;
|
|
1839
|
+
changedSecrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1840
|
+
}, z.core.$strip>>>;
|
|
1841
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
1842
|
+
name: string;
|
|
1843
|
+
line: string;
|
|
1844
|
+
moment: string;
|
|
1845
|
+
outcome: string;
|
|
1846
|
+
requestedBy: string | undefined;
|
|
1847
|
+
requestedAt: string | undefined;
|
|
1848
|
+
elapsedSeconds: number | undefined;
|
|
1849
|
+
detail: string | undefined;
|
|
1850
|
+
services: {
|
|
1851
|
+
name: string;
|
|
1852
|
+
present: boolean;
|
|
1853
|
+
journalRows: number;
|
|
1854
|
+
stateRows: number;
|
|
1855
|
+
offsetRows: number;
|
|
1856
|
+
timerRows: number;
|
|
1857
|
+
highestSequence: number;
|
|
1858
|
+
changedSecrets: string[];
|
|
1859
|
+
}[];
|
|
1860
|
+
} | undefined, {
|
|
1861
|
+
name: string;
|
|
1862
|
+
line: string;
|
|
1863
|
+
moment: string;
|
|
1864
|
+
outcome: string;
|
|
1865
|
+
requestedBy: string | undefined;
|
|
1866
|
+
requestedAt: string | undefined;
|
|
1867
|
+
elapsedSeconds: number | undefined;
|
|
1868
|
+
detail: string | undefined;
|
|
1869
|
+
services: {
|
|
1870
|
+
name: string;
|
|
1871
|
+
present: boolean;
|
|
1872
|
+
journalRows: number;
|
|
1873
|
+
stateRows: number;
|
|
1874
|
+
offsetRows: number;
|
|
1875
|
+
timerRows: number;
|
|
1876
|
+
highestSequence: number;
|
|
1877
|
+
changedSecrets: string[];
|
|
1878
|
+
}[];
|
|
1879
|
+
} | null | undefined>>;
|
|
1880
|
+
}, z.core.$strip>;
|
|
1881
|
+
export type ProjectStatus = z.infer<typeof projectStatusSchema>;
|
|
1882
|
+
export declare const secondaryStoreSchema: z.ZodObject<{
|
|
1883
|
+
lastCompleted: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1884
|
+
lastFailed: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1885
|
+
failure: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1886
|
+
buckets: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1887
|
+
deletedObjects: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1888
|
+
}, z.core.$strip>;
|
|
1889
|
+
export type SecondaryStore = z.infer<typeof secondaryStoreSchema>;
|
|
1890
|
+
export declare const installationStatusSchema: z.ZodObject<{
|
|
1891
|
+
backupTarget: z.ZodString;
|
|
1892
|
+
retentionDays: z.ZodNumber;
|
|
1893
|
+
copyRequired: z.ZodBoolean;
|
|
1894
|
+
sharesFailureDomain: z.ZodBoolean;
|
|
1895
|
+
encryption: z.ZodString;
|
|
1896
|
+
controlPlane: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1897
|
+
line: z.ZodString;
|
|
1898
|
+
cluster: z.ZodString;
|
|
1899
|
+
phase: z.ZodString;
|
|
1900
|
+
lastBaseBackup: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1901
|
+
firstRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1902
|
+
lastRestorable: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1903
|
+
archiveLagSeconds: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1904
|
+
failing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1905
|
+
copiedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1906
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
1907
|
+
line: string;
|
|
1908
|
+
cluster: string;
|
|
1909
|
+
phase: string;
|
|
1910
|
+
lastBaseBackup: string | undefined;
|
|
1911
|
+
firstRestorable: string | undefined;
|
|
1912
|
+
lastRestorable: string | undefined;
|
|
1913
|
+
archiveLagSeconds: number | undefined;
|
|
1914
|
+
failing: string | undefined;
|
|
1915
|
+
copiedAt: string | undefined;
|
|
1916
|
+
} | undefined, {
|
|
1917
|
+
line: string;
|
|
1918
|
+
cluster: string;
|
|
1919
|
+
phase: string;
|
|
1920
|
+
lastBaseBackup: string | undefined;
|
|
1921
|
+
firstRestorable: string | undefined;
|
|
1922
|
+
lastRestorable: string | undefined;
|
|
1923
|
+
archiveLagSeconds: number | undefined;
|
|
1924
|
+
failing: string | undefined;
|
|
1925
|
+
copiedAt: string | undefined;
|
|
1926
|
+
} | null | undefined>>;
|
|
1927
|
+
notBackedUp: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1928
|
+
secondaryStore: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1929
|
+
lastCompleted: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1930
|
+
lastFailed: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1931
|
+
failure: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1932
|
+
buckets: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1933
|
+
deletedObjects: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1934
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
1935
|
+
lastCompleted: string | undefined;
|
|
1936
|
+
lastFailed: string | undefined;
|
|
1937
|
+
failure: string | undefined;
|
|
1938
|
+
buckets: number | undefined;
|
|
1939
|
+
deletedObjects: number | undefined;
|
|
1940
|
+
} | undefined, {
|
|
1941
|
+
lastCompleted: string | undefined;
|
|
1942
|
+
lastFailed: string | undefined;
|
|
1943
|
+
failure: string | undefined;
|
|
1944
|
+
buckets: number | undefined;
|
|
1945
|
+
deletedObjects: number | undefined;
|
|
1946
|
+
} | null | undefined>>;
|
|
1947
|
+
}, z.core.$strip>;
|
|
1948
|
+
export type InstallationStatus = z.infer<typeof installationStatusSchema>;
|
|
1949
|
+
export declare const serviceDifferenceSchema: z.ZodObject<{
|
|
1950
|
+
project: z.ZodString;
|
|
1951
|
+
service: z.ZodString;
|
|
1952
|
+
recordedGeneration: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1953
|
+
clusterGeneration: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1954
|
+
recordedImage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1955
|
+
clusterImage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1956
|
+
}, z.core.$strip>;
|
|
1957
|
+
export type ServiceDifference = z.infer<typeof serviceDifferenceSchema>;
|
|
1958
|
+
/** Whether the control plane is held after its own database was restored, and what differs. */
|
|
1959
|
+
export declare const restoreHoldStatusSchema: z.ZodObject<{
|
|
1960
|
+
held: z.ZodBoolean;
|
|
1961
|
+
restoredAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1962
|
+
targetTime: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1963
|
+
releasedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1964
|
+
releasedBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1965
|
+
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1966
|
+
project: z.ZodString;
|
|
1967
|
+
service: z.ZodString;
|
|
1968
|
+
recordedGeneration: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1969
|
+
clusterGeneration: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
1970
|
+
recordedImage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1971
|
+
clusterImage: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1972
|
+
}, z.core.$strip>>>;
|
|
1973
|
+
topics: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1974
|
+
unknownProjects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1975
|
+
reconciled: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1976
|
+
}, z.core.$strip>;
|
|
1977
|
+
export type RestoreHoldStatus = z.infer<typeof restoreHoldStatusSchema>;
|
|
1978
|
+
/** `POST /projects/{id}/restores`: the moment, and the line when services are on more than one. */
|
|
1979
|
+
export declare const restoreRequestSchema: z.ZodObject<{
|
|
1980
|
+
moment: z.ZodString;
|
|
1981
|
+
line: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1982
|
+
}, z.core.$strip>;
|
|
1983
|
+
export type RestoreRequest = z.input<typeof restoreRequestSchema>;
|
|
1984
|
+
/** `POST /services/{p}/{n}/switch`: the cluster to move the service to. */
|
|
1985
|
+
export declare const switchRequestSchema: z.ZodObject<{
|
|
1986
|
+
cluster: z.ZodString;
|
|
1987
|
+
}, z.core.$strip>;
|
|
1988
|
+
export type SwitchRequest = z.input<typeof switchRequestSchema>;
|
|
1989
|
+
/** `POST /projects/{id}/rehearsals`: both may be left out, for the latest restorable moment. */
|
|
1990
|
+
export declare const rehearsalRequestSchema: z.ZodObject<{
|
|
1991
|
+
moment: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1992
|
+
line: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1993
|
+
}, z.core.$strip>;
|
|
1994
|
+
export type RehearsalRequest = z.input<typeof rehearsalRequestSchema>;
|
|
1995
|
+
export declare const credentialReissuedSchema: z.ZodObject<{
|
|
1996
|
+
project: z.ZodString;
|
|
1997
|
+
generation: z.ZodNumber;
|
|
1998
|
+
}, z.core.$strip>;
|
|
1999
|
+
export type CredentialReissued = z.infer<typeof credentialReissuedSchema>;
|
|
2000
|
+
/** What a project asks of its database, whole. */
|
|
2001
|
+
export declare const databaseSettingSchema: z.ZodObject<{
|
|
2002
|
+
replicas: z.ZodDefault<z.ZodNumber>;
|
|
2003
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
2004
|
+
retentionDays: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
2005
|
+
rehearse: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2006
|
+
}, z.core.$strip>;
|
|
2007
|
+
export type DatabaseSetting = z.infer<typeof databaseSettingSchema>;
|
|
2008
|
+
/**
|
|
2009
|
+
* Who did what to a project: to its database, or to the topic `topic` names, with each setting it
|
|
2010
|
+
* changed (feature 043).
|
|
2011
|
+
*/
|
|
2012
|
+
export declare const projectHistoryViewSchema: z.ZodObject<{
|
|
2013
|
+
kind: z.ZodString;
|
|
2014
|
+
by: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2015
|
+
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2016
|
+
detail: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2017
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2018
|
+
changes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2019
|
+
setting: z.ZodString;
|
|
2020
|
+
from: z.ZodString;
|
|
2021
|
+
to: z.ZodString;
|
|
2022
|
+
}, z.core.$strip>>>;
|
|
2023
|
+
}, z.core.$strip>;
|
|
2024
|
+
export type ProjectHistoryView = z.infer<typeof projectHistoryViewSchema>;
|
|
2025
|
+
/** What a grant opens: one route, one gRPC method, one topic with one right, or the erasure. */
|
|
2026
|
+
export declare const grantTargetSchema: z.ZodObject<{
|
|
2027
|
+
kind: z.ZodString;
|
|
2028
|
+
service: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2029
|
+
method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2030
|
+
path: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2031
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2032
|
+
right: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2033
|
+
decrypt: z.ZodDefault<z.ZodBoolean>;
|
|
2034
|
+
}, z.core.$strip>;
|
|
2035
|
+
export type GrantTarget = z.infer<typeof grantTargetSchema>;
|
|
2036
|
+
/** Who did something to a grant, and when. */
|
|
2037
|
+
export declare const grantActSchema: z.ZodObject<{
|
|
2038
|
+
by: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2039
|
+
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2040
|
+
}, z.core.$strip>;
|
|
2041
|
+
export type GrantAct = z.infer<typeof grantActSchema>;
|
|
2042
|
+
export declare const grantRequestSchema: z.ZodObject<{
|
|
2043
|
+
grantee: z.ZodString;
|
|
2044
|
+
target: z.ZodObject<{
|
|
2045
|
+
kind: z.ZodString;
|
|
2046
|
+
service: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2047
|
+
method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2048
|
+
path: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2049
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2050
|
+
right: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2051
|
+
decrypt: z.ZodDefault<z.ZodBoolean>;
|
|
2052
|
+
}, z.core.$strip>;
|
|
2053
|
+
}, z.core.$strip>;
|
|
2054
|
+
export type GrantRequest = z.infer<typeof grantRequestSchema>;
|
|
2055
|
+
/** A grant as its project lists it; `effect` is `in effect`, or why not. */
|
|
2056
|
+
export declare const grantDetailSchema: z.ZodObject<{
|
|
2057
|
+
id: z.ZodString;
|
|
2058
|
+
grantee: z.ZodString;
|
|
2059
|
+
target: z.ZodObject<{
|
|
2060
|
+
kind: z.ZodString;
|
|
2061
|
+
service: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2062
|
+
method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2063
|
+
path: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2064
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2065
|
+
right: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2066
|
+
decrypt: z.ZodDefault<z.ZodBoolean>;
|
|
2067
|
+
}, z.core.$strip>;
|
|
2068
|
+
state: z.ZodString;
|
|
2069
|
+
effect: z.ZodString;
|
|
2070
|
+
granted: z.ZodObject<{
|
|
2071
|
+
by: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2072
|
+
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2073
|
+
}, z.core.$strip>;
|
|
2074
|
+
answered: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2075
|
+
by: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2076
|
+
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2077
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
2078
|
+
by: string | undefined;
|
|
2079
|
+
at: string | undefined;
|
|
2080
|
+
} | undefined, {
|
|
2081
|
+
by: string | undefined;
|
|
2082
|
+
at: string | undefined;
|
|
2083
|
+
} | null | undefined>>;
|
|
2084
|
+
ended: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2085
|
+
by: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2086
|
+
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2087
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
2088
|
+
by: string | undefined;
|
|
2089
|
+
at: string | undefined;
|
|
2090
|
+
} | undefined, {
|
|
2091
|
+
by: string | undefined;
|
|
2092
|
+
at: string | undefined;
|
|
2093
|
+
} | null | undefined>>;
|
|
2094
|
+
}, z.core.$strip>;
|
|
2095
|
+
export type GrantDetail = z.infer<typeof grantDetailSchema>;
|
|
2096
|
+
export declare const grantChangeRecordSchema: z.ZodObject<{
|
|
2097
|
+
change: z.ZodString;
|
|
2098
|
+
by: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2099
|
+
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2100
|
+
}, z.core.$strip>;
|
|
2101
|
+
export declare const topicSettingsSchema: z.ZodObject<{
|
|
2102
|
+
partitions: z.ZodNumber;
|
|
2103
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
2104
|
+
retention: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2105
|
+
copies: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
2106
|
+
}, z.core.$strip>;
|
|
2107
|
+
/** A grant as its grantee's side records it. */
|
|
2108
|
+
export declare const receivedGrantDetailSchema: z.ZodObject<{
|
|
2109
|
+
id: z.ZodString;
|
|
2110
|
+
grantingProject: z.ZodString;
|
|
2111
|
+
grantingOrganization: z.ZodString;
|
|
2112
|
+
grantee: z.ZodString;
|
|
2113
|
+
target: z.ZodObject<{
|
|
2114
|
+
kind: z.ZodString;
|
|
2115
|
+
service: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2116
|
+
method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2117
|
+
path: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2118
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2119
|
+
right: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2120
|
+
decrypt: z.ZodDefault<z.ZodBoolean>;
|
|
2121
|
+
}, z.core.$strip>;
|
|
2122
|
+
state: z.ZodString;
|
|
2123
|
+
changes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2124
|
+
change: z.ZodString;
|
|
2125
|
+
by: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2126
|
+
at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2127
|
+
}, z.core.$strip>>>;
|
|
2128
|
+
topic: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2129
|
+
partitions: z.ZodNumber;
|
|
2130
|
+
compacted: z.ZodDefault<z.ZodBoolean>;
|
|
2131
|
+
retention: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2132
|
+
copies: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
|
|
2133
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
2134
|
+
partitions: number;
|
|
2135
|
+
compacted: boolean;
|
|
2136
|
+
retention: string | undefined;
|
|
2137
|
+
copies: number | undefined;
|
|
2138
|
+
} | undefined, {
|
|
2139
|
+
partitions: number;
|
|
2140
|
+
compacted: boolean;
|
|
2141
|
+
retention: string | undefined;
|
|
2142
|
+
copies: number | undefined;
|
|
2143
|
+
} | null | undefined>>;
|
|
2144
|
+
}, z.core.$strip>;
|
|
2145
|
+
export type ReceivedGrantDetail = z.infer<typeof receivedGrantDetailSchema>;
|
|
2146
|
+
export declare const machineRegistrationSchema: z.ZodObject<{
|
|
2147
|
+
name: z.ZodString;
|
|
2148
|
+
}, z.core.$strip>;
|
|
2149
|
+
/** A machine just registered: its secret, shown this once. */
|
|
2150
|
+
export declare const machineRegisteredSchema: z.ZodObject<{
|
|
2151
|
+
name: z.ZodString;
|
|
2152
|
+
clientId: z.ZodString;
|
|
2153
|
+
clientSecret: z.ZodString;
|
|
2154
|
+
tokenUrl: z.ZodString;
|
|
2155
|
+
brokerBootstrap: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2156
|
+
}, z.core.$strip>;
|
|
2157
|
+
export type MachineRegistered = z.infer<typeof machineRegisteredSchema>;
|
|
2158
|
+
export declare const byteRatesRequestSchema: z.ZodObject<{
|
|
2159
|
+
produceBytesPerSecond: z.ZodNumber;
|
|
2160
|
+
consumeBytesPerSecond: z.ZodNumber;
|
|
2161
|
+
requestPercentage: z.ZodNumber;
|
|
2162
|
+
}, z.core.$strip>;
|
|
2163
|
+
export type ByteRatesRequest = z.infer<typeof byteRatesRequestSchema>;
|
|
2164
|
+
export declare const machineSummarySchema: z.ZodObject<{
|
|
2165
|
+
name: z.ZodString;
|
|
2166
|
+
clientId: z.ZodString;
|
|
2167
|
+
registeredBy: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2168
|
+
registeredAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
2169
|
+
byteRates: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2170
|
+
produceBytesPerSecond: z.ZodNumber;
|
|
2171
|
+
consumeBytesPerSecond: z.ZodNumber;
|
|
2172
|
+
requestPercentage: z.ZodNumber;
|
|
2173
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
2174
|
+
produceBytesPerSecond: number;
|
|
2175
|
+
consumeBytesPerSecond: number;
|
|
2176
|
+
requestPercentage: number;
|
|
2177
|
+
} | undefined, {
|
|
2178
|
+
produceBytesPerSecond: number;
|
|
2179
|
+
consumeBytesPerSecond: number;
|
|
2180
|
+
requestPercentage: number;
|
|
2181
|
+
} | null | undefined>>;
|
|
2182
|
+
}, z.core.$strip>;
|
|
2183
|
+
export type MachineSummary = z.infer<typeof machineSummarySchema>;
|
|
2184
|
+
export declare const tokenResponseSchema: z.ZodObject<{
|
|
2185
|
+
access_token: z.ZodString;
|
|
2186
|
+
token_type: z.ZodString;
|
|
2187
|
+
expires_in: z.ZodNumber;
|
|
2188
|
+
}, z.core.$strip>;
|
|
2189
|
+
export declare const jsonWebKeySetSchema: z.ZodObject<{
|
|
2190
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
2191
|
+
kty: z.ZodString;
|
|
2192
|
+
use: z.ZodString;
|
|
2193
|
+
alg: z.ZodString;
|
|
2194
|
+
kid: z.ZodString;
|
|
2195
|
+
n: z.ZodString;
|
|
2196
|
+
e: z.ZodString;
|
|
2197
|
+
}, z.core.$strip>>;
|
|
2198
|
+
}, z.core.$strip>;
|
|
889
2199
|
/** Every schema by the Scala type's name, as the fixture files name them. */
|
|
890
2200
|
export declare const schemasByType: Record<string, z.ZodType>;
|