ankka-console 0.11.0 → 0.13.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.
Files changed (39) hide show
  1. package/dist/ankka-mark.png +0 -0
  2. package/dist/client/control-plane.d.ts +63 -1
  3. package/dist/client/control-plane.js +142 -1
  4. package/dist/client/schemas.d.ts +1460 -2
  5. package/dist/client/schemas.js +462 -2
  6. package/dist/context.d.ts +1 -1
  7. package/dist/context.js +1 -1
  8. package/dist/extensions/types.d.ts +1 -1
  9. package/dist/extensions/types.js +22 -0
  10. package/dist/routes/front.d.ts +76 -2
  11. package/dist/routes/front.js +37 -8
  12. package/dist/routes/logs.d.ts +67 -0
  13. package/dist/routes/machines.d.ts +78 -0
  14. package/dist/routes/machines.js +78 -0
  15. package/dist/routes/organization.d.ts +29 -1
  16. package/dist/routes/organization.js +27 -5
  17. package/dist/routes/project.d.ts +285 -1
  18. package/dist/routes/project.js +107 -6
  19. package/dist/routes/service-history.d.ts +2 -0
  20. package/dist/routes/service-history.js +3 -0
  21. package/dist/routes/service-topology.d.ts +67 -0
  22. package/dist/routes/service.d.ts +67 -0
  23. package/dist/routes/service.js +64 -4
  24. package/dist/routes.js +1 -0
  25. package/dist/runtime.d.ts +3 -1
  26. package/dist/runtime.js +1 -0
  27. package/dist/styles.css +1 -1
  28. package/dist/testing/fake-control-plane.d.ts +193 -1
  29. package/dist/testing/fake-control-plane.js +840 -7
  30. package/dist/ui/buckets.d.ts +14 -0
  31. package/dist/ui/buckets.js +9 -0
  32. package/dist/ui/grants.d.ts +3 -0
  33. package/dist/ui/grants.js +13 -0
  34. package/dist/ui/shell.d.ts +1 -1
  35. package/dist/ui/shell.js +14 -3
  36. package/dist/ui/topology/Table.d.ts +8 -0
  37. package/dist/ui/topology/Table.js +8 -1
  38. package/dist/ui/use-stream.d.ts +134 -0
  39. package/package.json +1 -1
@@ -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 — and the topics it declares on the broker.
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,64 @@ 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
+ buckets: {
124
+ name: string;
125
+ phase: string;
126
+ store: string | undefined;
127
+ bucket: string | undefined;
128
+ exposure: string;
129
+ publicAddress: string | undefined;
130
+ kept: boolean;
131
+ detail: string | undefined;
132
+ }[] | undefined;
133
+ databaseCluster: string | undefined;
134
+ grants: string | undefined;
135
+ crossProjectTopics: {
136
+ project: string;
137
+ topic: string;
138
+ right: string;
139
+ status: string;
140
+ }[] | undefined;
141
+ customHostnames: {
142
+ hostname: string;
143
+ state: string;
144
+ reason: string | undefined;
145
+ record: {
146
+ name: string;
147
+ kind: string;
148
+ value: string;
149
+ } | undefined;
150
+ note: string | undefined;
151
+ }[];
152
+ proofRecord: {
153
+ name: string;
154
+ kind: string;
155
+ value: string;
156
+ } | undefined;
89
157
  }[];
90
158
  secrets: {
91
159
  name: string;
@@ -111,6 +179,19 @@ export declare function loader({ params, context }: LoaderFunctionArgs): Promise
111
179
  stated: string | undefined;
112
180
  state: string;
113
181
  }[];
182
+ settings: {
183
+ retention: string;
184
+ retentionSize: string;
185
+ cleanup: string;
186
+ tombstoneWindow: string;
187
+ minCompactionLag: string;
188
+ maxCompactionLag: string;
189
+ copies: number | undefined;
190
+ minInSync: number | undefined;
191
+ defaulted: string[];
192
+ } | undefined;
193
+ copiesHeld: number | undefined;
194
+ brokerNodes: number | undefined;
114
195
  }[];
115
196
  brokers: {
116
197
  name: string;
@@ -119,6 +200,209 @@ export declare function loader({ params, context }: LoaderFunctionArgs): Promise
119
200
  secret: string;
120
201
  declaredAt: string | undefined;
121
202
  }[];
203
+ backups: {
204
+ id: string;
205
+ backedUp: boolean;
206
+ target: string;
207
+ lines: {
208
+ line: string;
209
+ cluster: string;
210
+ phase: string;
211
+ lastBaseBackup: string | undefined;
212
+ firstRestorable: string | undefined;
213
+ lastRestorable: string | undefined;
214
+ archiveLagSeconds: number | undefined;
215
+ failing: string | undefined;
216
+ copiedAt: string | undefined;
217
+ }[];
218
+ database: {
219
+ cluster: string;
220
+ instances: number;
221
+ readyInstances: number;
222
+ primary: string | undefined;
223
+ synchronous: boolean;
224
+ writesWaitingOn: string | undefined;
225
+ } | undefined;
226
+ detail: string | undefined;
227
+ clusters: {
228
+ name: string;
229
+ line: string;
230
+ phase: string;
231
+ services: string[];
232
+ since: string | undefined;
233
+ leftAt: string | undefined;
234
+ }[];
235
+ restores: {
236
+ name: string;
237
+ line: string;
238
+ moment: string;
239
+ phase: string;
240
+ requestedBy: string | undefined;
241
+ requestedAt: string | undefined;
242
+ reachedAt: string | undefined;
243
+ services: {
244
+ name: string;
245
+ present: boolean;
246
+ journalRows: number;
247
+ stateRows: number;
248
+ offsetRows: number;
249
+ timerRows: number;
250
+ highestSequence: number;
251
+ changedSecrets: string[];
252
+ }[];
253
+ detail: string | undefined;
254
+ broker: {
255
+ topic: string;
256
+ group: string | undefined;
257
+ after: number;
258
+ read: number | undefined;
259
+ services: string[];
260
+ }[];
261
+ notAsked: string[];
262
+ note: string | undefined;
263
+ }[];
264
+ rehearsal: {
265
+ name: string;
266
+ line: string;
267
+ moment: string;
268
+ outcome: string;
269
+ requestedBy: string | undefined;
270
+ requestedAt: string | undefined;
271
+ elapsedSeconds: number | undefined;
272
+ detail: string | undefined;
273
+ services: {
274
+ name: string;
275
+ present: boolean;
276
+ journalRows: number;
277
+ stateRows: number;
278
+ offsetRows: number;
279
+ timerRows: number;
280
+ highestSequence: number;
281
+ changedSecrets: string[];
282
+ }[];
283
+ } | undefined;
284
+ } | undefined;
285
+ rehearsals: never[] | {
286
+ name: string;
287
+ line: string;
288
+ moment: string;
289
+ outcome: string;
290
+ requestedBy: string | undefined;
291
+ requestedAt: string | undefined;
292
+ elapsedSeconds: number | undefined;
293
+ detail: string | undefined;
294
+ services: {
295
+ name: string;
296
+ present: boolean;
297
+ journalRows: number;
298
+ stateRows: number;
299
+ offsetRows: number;
300
+ timerRows: number;
301
+ highestSequence: number;
302
+ changedSecrets: string[];
303
+ }[];
304
+ }[];
305
+ restores: {
306
+ name: string;
307
+ line: string;
308
+ moment: string;
309
+ phase: string;
310
+ requestedBy: string | undefined;
311
+ requestedAt: string | undefined;
312
+ reachedAt: string | undefined;
313
+ services: {
314
+ name: string;
315
+ present: boolean;
316
+ journalRows: number;
317
+ stateRows: number;
318
+ offsetRows: number;
319
+ timerRows: number;
320
+ highestSequence: number;
321
+ changedSecrets: string[];
322
+ }[];
323
+ detail: string | undefined;
324
+ broker: {
325
+ topic: string;
326
+ group: string | undefined;
327
+ after: number;
328
+ read: number | undefined;
329
+ services: string[];
330
+ }[];
331
+ notAsked: string[];
332
+ note: string | undefined;
333
+ }[];
334
+ history: never[] | {
335
+ kind: string;
336
+ by: string | undefined;
337
+ at: string | undefined;
338
+ detail: string | undefined;
339
+ topic: string | undefined;
340
+ changes: {
341
+ setting: string;
342
+ from: string;
343
+ to: string;
344
+ }[];
345
+ }[];
346
+ setting: {
347
+ replicas: number;
348
+ synchronous: boolean;
349
+ retentionDays: number | undefined;
350
+ rehearse: string | undefined;
351
+ } | undefined;
352
+ grants: {
353
+ id: string;
354
+ grantee: string;
355
+ target: {
356
+ kind: string;
357
+ service: string | undefined;
358
+ method: string | undefined;
359
+ path: string | undefined;
360
+ topic: string | undefined;
361
+ right: string | undefined;
362
+ decrypt: boolean;
363
+ };
364
+ state: string;
365
+ effect: string;
366
+ granted: {
367
+ by: string | undefined;
368
+ at: string | undefined;
369
+ };
370
+ answered: {
371
+ by: string | undefined;
372
+ at: string | undefined;
373
+ } | undefined;
374
+ ended: {
375
+ by: string | undefined;
376
+ at: string | undefined;
377
+ } | undefined;
378
+ }[];
379
+ received: {
380
+ id: string;
381
+ grantingProject: string;
382
+ grantingOrganization: string;
383
+ grantee: string;
384
+ target: {
385
+ kind: string;
386
+ service: string | undefined;
387
+ method: string | undefined;
388
+ path: string | undefined;
389
+ topic: string | undefined;
390
+ right: string | undefined;
391
+ decrypt: boolean;
392
+ };
393
+ state: string;
394
+ changes: {
395
+ change: string;
396
+ by: string | undefined;
397
+ at: string | undefined;
398
+ }[];
399
+ topic: {
400
+ partitions: number;
401
+ compacted: boolean;
402
+ retention: string | undefined;
403
+ copies: number | undefined;
404
+ } | undefined;
405
+ }[];
122
406
  panels: import("../extensions/render.tsx").LoadedPanels;
123
407
  }>;
124
408
  export declare function action({ request, params, context }: ActionFunctionArgs): Promise<import("react-router").UNSAFE_DataWithResponseInit<import("../context.ts").ActionRefusal> | import("react-router").UNSAFE_DataWithResponseInit<{