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/routes/project.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A project: its services, kept current while the page is open, its registry credential, its
|
|
3
|
-
* project secrets — by name and entry, never a value —
|
|
3
|
+
* project secrets — by name and entry, never a value — the topics it declares on the broker, the
|
|
4
|
+
* grants it makes to other projects' services and to machines, and what other projects grant it.
|
|
4
5
|
*/
|
|
5
6
|
import { type ActionFunctionArgs, type LoaderFunctionArgs, type MetaFunction } from "react-router";
|
|
6
7
|
import { ConsoleErrorBoundary } from "../ui/errors.tsx";
|
|
@@ -61,6 +62,19 @@ export declare function loader({ params, context }: LoaderFunctionArgs): Promise
|
|
|
61
62
|
processPort: number | undefined;
|
|
62
63
|
broker: string | undefined;
|
|
63
64
|
undeclaredTopics: string[] | undefined;
|
|
65
|
+
secretStore: {
|
|
66
|
+
backend: string;
|
|
67
|
+
keyRead: boolean;
|
|
68
|
+
move: {
|
|
69
|
+
phase: string;
|
|
70
|
+
outcome: string;
|
|
71
|
+
names: {
|
|
72
|
+
name: string;
|
|
73
|
+
state: string;
|
|
74
|
+
}[];
|
|
75
|
+
detail: string | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
} | undefined;
|
|
64
78
|
topicChecks: {
|
|
65
79
|
topic: string | undefined;
|
|
66
80
|
service: string;
|
|
@@ -82,10 +96,54 @@ export declare function loader({ params, context }: LoaderFunctionArgs): Promise
|
|
|
82
96
|
contract: string | undefined;
|
|
83
97
|
lag: number | undefined;
|
|
84
98
|
failing: string | undefined;
|
|
99
|
+
gap: {
|
|
100
|
+
partitions: {
|
|
101
|
+
partition: number;
|
|
102
|
+
beginning: number;
|
|
103
|
+
earliestRetained: string | undefined;
|
|
104
|
+
}[];
|
|
105
|
+
compacted: boolean;
|
|
106
|
+
gone: boolean;
|
|
107
|
+
readAt: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
warnings: {
|
|
111
|
+
kind: string;
|
|
112
|
+
component: string;
|
|
113
|
+
topic: string;
|
|
114
|
+
message: string;
|
|
85
115
|
}[] | undefined;
|
|
86
116
|
objectStorage: string | undefined;
|
|
87
117
|
bucket: string | undefined;
|
|
88
118
|
bucketAddress: string | undefined;
|
|
119
|
+
objectStore: string | undefined;
|
|
120
|
+
bucketLocation: string | undefined;
|
|
121
|
+
softDeleteDays: number | undefined;
|
|
122
|
+
storageMove: string | undefined;
|
|
123
|
+
databaseCluster: string | undefined;
|
|
124
|
+
grants: string | undefined;
|
|
125
|
+
crossProjectTopics: {
|
|
126
|
+
project: string;
|
|
127
|
+
topic: string;
|
|
128
|
+
right: string;
|
|
129
|
+
status: string;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
customHostnames: {
|
|
132
|
+
hostname: string;
|
|
133
|
+
state: string;
|
|
134
|
+
reason: string | undefined;
|
|
135
|
+
record: {
|
|
136
|
+
name: string;
|
|
137
|
+
kind: string;
|
|
138
|
+
value: string;
|
|
139
|
+
} | undefined;
|
|
140
|
+
note: string | undefined;
|
|
141
|
+
}[];
|
|
142
|
+
proofRecord: {
|
|
143
|
+
name: string;
|
|
144
|
+
kind: string;
|
|
145
|
+
value: string;
|
|
146
|
+
} | undefined;
|
|
89
147
|
}[];
|
|
90
148
|
secrets: {
|
|
91
149
|
name: string;
|
|
@@ -111,6 +169,19 @@ export declare function loader({ params, context }: LoaderFunctionArgs): Promise
|
|
|
111
169
|
stated: string | undefined;
|
|
112
170
|
state: string;
|
|
113
171
|
}[];
|
|
172
|
+
settings: {
|
|
173
|
+
retention: string;
|
|
174
|
+
retentionSize: string;
|
|
175
|
+
cleanup: string;
|
|
176
|
+
tombstoneWindow: string;
|
|
177
|
+
minCompactionLag: string;
|
|
178
|
+
maxCompactionLag: string;
|
|
179
|
+
copies: number | undefined;
|
|
180
|
+
minInSync: number | undefined;
|
|
181
|
+
defaulted: string[];
|
|
182
|
+
} | undefined;
|
|
183
|
+
copiesHeld: number | undefined;
|
|
184
|
+
brokerNodes: number | undefined;
|
|
114
185
|
}[];
|
|
115
186
|
brokers: {
|
|
116
187
|
name: string;
|
|
@@ -119,6 +190,209 @@ export declare function loader({ params, context }: LoaderFunctionArgs): Promise
|
|
|
119
190
|
secret: string;
|
|
120
191
|
declaredAt: string | undefined;
|
|
121
192
|
}[];
|
|
193
|
+
backups: {
|
|
194
|
+
id: string;
|
|
195
|
+
backedUp: boolean;
|
|
196
|
+
target: string;
|
|
197
|
+
lines: {
|
|
198
|
+
line: string;
|
|
199
|
+
cluster: string;
|
|
200
|
+
phase: string;
|
|
201
|
+
lastBaseBackup: string | undefined;
|
|
202
|
+
firstRestorable: string | undefined;
|
|
203
|
+
lastRestorable: string | undefined;
|
|
204
|
+
archiveLagSeconds: number | undefined;
|
|
205
|
+
failing: string | undefined;
|
|
206
|
+
copiedAt: string | undefined;
|
|
207
|
+
}[];
|
|
208
|
+
database: {
|
|
209
|
+
cluster: string;
|
|
210
|
+
instances: number;
|
|
211
|
+
readyInstances: number;
|
|
212
|
+
primary: string | undefined;
|
|
213
|
+
synchronous: boolean;
|
|
214
|
+
writesWaitingOn: string | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
detail: string | undefined;
|
|
217
|
+
clusters: {
|
|
218
|
+
name: string;
|
|
219
|
+
line: string;
|
|
220
|
+
phase: string;
|
|
221
|
+
services: string[];
|
|
222
|
+
since: string | undefined;
|
|
223
|
+
leftAt: string | undefined;
|
|
224
|
+
}[];
|
|
225
|
+
restores: {
|
|
226
|
+
name: string;
|
|
227
|
+
line: string;
|
|
228
|
+
moment: string;
|
|
229
|
+
phase: string;
|
|
230
|
+
requestedBy: string | undefined;
|
|
231
|
+
requestedAt: string | undefined;
|
|
232
|
+
reachedAt: string | undefined;
|
|
233
|
+
services: {
|
|
234
|
+
name: string;
|
|
235
|
+
present: boolean;
|
|
236
|
+
journalRows: number;
|
|
237
|
+
stateRows: number;
|
|
238
|
+
offsetRows: number;
|
|
239
|
+
timerRows: number;
|
|
240
|
+
highestSequence: number;
|
|
241
|
+
changedSecrets: string[];
|
|
242
|
+
}[];
|
|
243
|
+
detail: string | undefined;
|
|
244
|
+
broker: {
|
|
245
|
+
topic: string;
|
|
246
|
+
group: string | undefined;
|
|
247
|
+
after: number;
|
|
248
|
+
read: number | undefined;
|
|
249
|
+
services: string[];
|
|
250
|
+
}[];
|
|
251
|
+
notAsked: string[];
|
|
252
|
+
note: string | undefined;
|
|
253
|
+
}[];
|
|
254
|
+
rehearsal: {
|
|
255
|
+
name: string;
|
|
256
|
+
line: string;
|
|
257
|
+
moment: string;
|
|
258
|
+
outcome: string;
|
|
259
|
+
requestedBy: string | undefined;
|
|
260
|
+
requestedAt: string | undefined;
|
|
261
|
+
elapsedSeconds: number | undefined;
|
|
262
|
+
detail: string | undefined;
|
|
263
|
+
services: {
|
|
264
|
+
name: string;
|
|
265
|
+
present: boolean;
|
|
266
|
+
journalRows: number;
|
|
267
|
+
stateRows: number;
|
|
268
|
+
offsetRows: number;
|
|
269
|
+
timerRows: number;
|
|
270
|
+
highestSequence: number;
|
|
271
|
+
changedSecrets: string[];
|
|
272
|
+
}[];
|
|
273
|
+
} | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
rehearsals: never[] | {
|
|
276
|
+
name: string;
|
|
277
|
+
line: string;
|
|
278
|
+
moment: string;
|
|
279
|
+
outcome: string;
|
|
280
|
+
requestedBy: string | undefined;
|
|
281
|
+
requestedAt: string | undefined;
|
|
282
|
+
elapsedSeconds: number | undefined;
|
|
283
|
+
detail: string | undefined;
|
|
284
|
+
services: {
|
|
285
|
+
name: string;
|
|
286
|
+
present: boolean;
|
|
287
|
+
journalRows: number;
|
|
288
|
+
stateRows: number;
|
|
289
|
+
offsetRows: number;
|
|
290
|
+
timerRows: number;
|
|
291
|
+
highestSequence: number;
|
|
292
|
+
changedSecrets: string[];
|
|
293
|
+
}[];
|
|
294
|
+
}[];
|
|
295
|
+
restores: {
|
|
296
|
+
name: string;
|
|
297
|
+
line: string;
|
|
298
|
+
moment: string;
|
|
299
|
+
phase: string;
|
|
300
|
+
requestedBy: string | undefined;
|
|
301
|
+
requestedAt: string | undefined;
|
|
302
|
+
reachedAt: string | undefined;
|
|
303
|
+
services: {
|
|
304
|
+
name: string;
|
|
305
|
+
present: boolean;
|
|
306
|
+
journalRows: number;
|
|
307
|
+
stateRows: number;
|
|
308
|
+
offsetRows: number;
|
|
309
|
+
timerRows: number;
|
|
310
|
+
highestSequence: number;
|
|
311
|
+
changedSecrets: string[];
|
|
312
|
+
}[];
|
|
313
|
+
detail: string | undefined;
|
|
314
|
+
broker: {
|
|
315
|
+
topic: string;
|
|
316
|
+
group: string | undefined;
|
|
317
|
+
after: number;
|
|
318
|
+
read: number | undefined;
|
|
319
|
+
services: string[];
|
|
320
|
+
}[];
|
|
321
|
+
notAsked: string[];
|
|
322
|
+
note: string | undefined;
|
|
323
|
+
}[];
|
|
324
|
+
history: never[] | {
|
|
325
|
+
kind: string;
|
|
326
|
+
by: string | undefined;
|
|
327
|
+
at: string | undefined;
|
|
328
|
+
detail: string | undefined;
|
|
329
|
+
topic: string | undefined;
|
|
330
|
+
changes: {
|
|
331
|
+
setting: string;
|
|
332
|
+
from: string;
|
|
333
|
+
to: string;
|
|
334
|
+
}[];
|
|
335
|
+
}[];
|
|
336
|
+
setting: {
|
|
337
|
+
replicas: number;
|
|
338
|
+
synchronous: boolean;
|
|
339
|
+
retentionDays: number | undefined;
|
|
340
|
+
rehearse: string | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
grants: {
|
|
343
|
+
id: string;
|
|
344
|
+
grantee: string;
|
|
345
|
+
target: {
|
|
346
|
+
kind: string;
|
|
347
|
+
service: string | undefined;
|
|
348
|
+
method: string | undefined;
|
|
349
|
+
path: string | undefined;
|
|
350
|
+
topic: string | undefined;
|
|
351
|
+
right: string | undefined;
|
|
352
|
+
decrypt: boolean;
|
|
353
|
+
};
|
|
354
|
+
state: string;
|
|
355
|
+
effect: string;
|
|
356
|
+
granted: {
|
|
357
|
+
by: string | undefined;
|
|
358
|
+
at: string | undefined;
|
|
359
|
+
};
|
|
360
|
+
answered: {
|
|
361
|
+
by: string | undefined;
|
|
362
|
+
at: string | undefined;
|
|
363
|
+
} | undefined;
|
|
364
|
+
ended: {
|
|
365
|
+
by: string | undefined;
|
|
366
|
+
at: string | undefined;
|
|
367
|
+
} | undefined;
|
|
368
|
+
}[];
|
|
369
|
+
received: {
|
|
370
|
+
id: string;
|
|
371
|
+
grantingProject: string;
|
|
372
|
+
grantingOrganization: string;
|
|
373
|
+
grantee: string;
|
|
374
|
+
target: {
|
|
375
|
+
kind: string;
|
|
376
|
+
service: string | undefined;
|
|
377
|
+
method: string | undefined;
|
|
378
|
+
path: string | undefined;
|
|
379
|
+
topic: string | undefined;
|
|
380
|
+
right: string | undefined;
|
|
381
|
+
decrypt: boolean;
|
|
382
|
+
};
|
|
383
|
+
state: string;
|
|
384
|
+
changes: {
|
|
385
|
+
change: string;
|
|
386
|
+
by: string | undefined;
|
|
387
|
+
at: string | undefined;
|
|
388
|
+
}[];
|
|
389
|
+
topic: {
|
|
390
|
+
partitions: number;
|
|
391
|
+
compacted: boolean;
|
|
392
|
+
retention: string | undefined;
|
|
393
|
+
copies: number | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
}[];
|
|
122
396
|
panels: import("../extensions/render.tsx").LoadedPanels;
|
|
123
397
|
}>;
|
|
124
398
|
export declare function action({ request, params, context }: ActionFunctionArgs): Promise<import("react-router").UNSAFE_DataWithResponseInit<import("../context.ts").ActionRefusal> | import("react-router").UNSAFE_DataWithResponseInit<{
|