@myko/core 4.4.0 → 4.4.1
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/package.json +1 -1
- package/src/generated/index.ts +152 -152
package/package.json
CHANGED
package/src/generated/index.ts
CHANGED
|
@@ -117,19 +117,6 @@ import type { WindbackStatus as _WindbackStatus } from "./WindbackStatus";
|
|
|
117
117
|
import type { WindbackStatusOutput } from "./WindbackStatusOutput";
|
|
118
118
|
|
|
119
119
|
// Query classes
|
|
120
|
-
export class GetClientsByIds {
|
|
121
|
-
static readonly queryId = "GetClientsByIds" as const;
|
|
122
|
-
static readonly queryItemType = "Client" as const;
|
|
123
|
-
readonly queryId = "GetClientsByIds" as const;
|
|
124
|
-
readonly queryItemType = "Client" as const;
|
|
125
|
-
readonly query: Omit<_GetClientsByIds, "tx" | "createdAt">;
|
|
126
|
-
declare readonly $res: () => Client[];
|
|
127
|
-
|
|
128
|
-
constructor(args: Omit<_GetClientsByIds, "tx" | "createdAt">) {
|
|
129
|
-
this.query = args;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
120
|
export class GetAllClients {
|
|
134
121
|
static readonly queryId = "GetAllClients" as const;
|
|
135
122
|
static readonly queryItemType = "Client" as const;
|
|
@@ -156,15 +143,15 @@ export class GetClientsByQuery {
|
|
|
156
143
|
}
|
|
157
144
|
}
|
|
158
145
|
|
|
159
|
-
export class
|
|
160
|
-
static readonly queryId = "
|
|
161
|
-
static readonly queryItemType = "
|
|
162
|
-
readonly queryId = "
|
|
163
|
-
readonly queryItemType = "
|
|
164
|
-
readonly query: Omit<
|
|
165
|
-
declare readonly $res: () =>
|
|
146
|
+
export class GetClientsByIds {
|
|
147
|
+
static readonly queryId = "GetClientsByIds" as const;
|
|
148
|
+
static readonly queryItemType = "Client" as const;
|
|
149
|
+
readonly queryId = "GetClientsByIds" as const;
|
|
150
|
+
readonly queryItemType = "Client" as const;
|
|
151
|
+
readonly query: Omit<_GetClientsByIds, "tx" | "createdAt">;
|
|
152
|
+
declare readonly $res: () => Client[];
|
|
166
153
|
|
|
167
|
-
constructor(args: Omit<
|
|
154
|
+
constructor(args: Omit<_GetClientsByIds, "tx" | "createdAt">) {
|
|
168
155
|
this.query = args;
|
|
169
156
|
}
|
|
170
157
|
}
|
|
@@ -182,28 +169,28 @@ export class GetConnectedServer {
|
|
|
182
169
|
}
|
|
183
170
|
}
|
|
184
171
|
|
|
185
|
-
export class
|
|
186
|
-
static readonly queryId = "
|
|
172
|
+
export class GetAllServers {
|
|
173
|
+
static readonly queryId = "GetAllServers" as const;
|
|
187
174
|
static readonly queryItemType = "Server" as const;
|
|
188
|
-
readonly queryId = "
|
|
175
|
+
readonly queryId = "GetAllServers" as const;
|
|
189
176
|
readonly queryItemType = "Server" as const;
|
|
190
|
-
readonly query: Omit<
|
|
177
|
+
readonly query: Omit<_GetAllServers, "tx" | "createdAt">;
|
|
191
178
|
declare readonly $res: () => Server[];
|
|
192
179
|
|
|
193
|
-
constructor(args: Omit<
|
|
180
|
+
constructor(args: Omit<_GetAllServers, "tx" | "createdAt">) {
|
|
194
181
|
this.query = args;
|
|
195
182
|
}
|
|
196
183
|
}
|
|
197
184
|
|
|
198
|
-
export class
|
|
199
|
-
static readonly queryId = "
|
|
185
|
+
export class GetServersByIds {
|
|
186
|
+
static readonly queryId = "GetServersByIds" as const;
|
|
200
187
|
static readonly queryItemType = "Server" as const;
|
|
201
|
-
readonly queryId = "
|
|
188
|
+
readonly queryId = "GetServersByIds" as const;
|
|
202
189
|
readonly queryItemType = "Server" as const;
|
|
203
|
-
readonly query: Omit<
|
|
190
|
+
readonly query: Omit<_GetServersByIds, "tx" | "createdAt">;
|
|
204
191
|
declare readonly $res: () => Server[];
|
|
205
192
|
|
|
206
|
-
constructor(args: Omit<
|
|
193
|
+
constructor(args: Omit<_GetServersByIds, "tx" | "createdAt">) {
|
|
207
194
|
this.query = args;
|
|
208
195
|
}
|
|
209
196
|
}
|
|
@@ -221,9 +208,44 @@ export class GetServersByQuery {
|
|
|
221
208
|
}
|
|
222
209
|
}
|
|
223
210
|
|
|
211
|
+
export class GetPeerServers {
|
|
212
|
+
static readonly queryId = "GetPeerServers" as const;
|
|
213
|
+
static readonly queryItemType = "Server" as const;
|
|
214
|
+
readonly queryId = "GetPeerServers" as const;
|
|
215
|
+
readonly queryItemType = "Server" as const;
|
|
216
|
+
readonly query: Omit<_GetPeerServers, "tx" | "createdAt">;
|
|
217
|
+
declare readonly $res: () => Server[];
|
|
218
|
+
|
|
219
|
+
constructor(args: Omit<_GetPeerServers, "tx" | "createdAt">) {
|
|
220
|
+
this.query = args;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
224
|
// View classes
|
|
225
225
|
|
|
226
226
|
// Report classes
|
|
227
|
+
export class ChildEntities {
|
|
228
|
+
static readonly reportId = "ChildEntities" as const;
|
|
229
|
+
readonly reportId = "ChildEntities" as const;
|
|
230
|
+
readonly report: Omit<_ChildEntities, "tx">;
|
|
231
|
+
declare readonly $res: () => ItemStub[];
|
|
232
|
+
|
|
233
|
+
constructor(args: Omit<_ChildEntities, "tx">) {
|
|
234
|
+
this.report = args;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export class GetItemsByTypeAndIds {
|
|
239
|
+
static readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
240
|
+
readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
241
|
+
readonly report: Omit<_GetItemsByTypeAndIds, "tx">;
|
|
242
|
+
declare readonly $res: () => JsonValue[];
|
|
243
|
+
|
|
244
|
+
constructor(args: Omit<_GetItemsByTypeAndIds, "tx">) {
|
|
245
|
+
this.report = args;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
227
249
|
export class Loggers {
|
|
228
250
|
static readonly reportId = "Loggers" as const;
|
|
229
251
|
readonly reportId = "Loggers" as const;
|
|
@@ -235,6 +257,17 @@ export class Loggers {
|
|
|
235
257
|
}
|
|
236
258
|
}
|
|
237
259
|
|
|
260
|
+
export class GetPersistHealth {
|
|
261
|
+
static readonly reportId = "GetPersistHealth" as const;
|
|
262
|
+
readonly reportId = "GetPersistHealth" as const;
|
|
263
|
+
readonly report: Omit<_GetPersistHealth, "tx">;
|
|
264
|
+
declare readonly $res: () => PersistHealthStatus;
|
|
265
|
+
|
|
266
|
+
constructor(args: Omit<_GetPersistHealth, "tx">) {
|
|
267
|
+
this.report = args;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
238
271
|
export class ServerLogLevel {
|
|
239
272
|
static readonly reportId = "ServerLogLevel" as const;
|
|
240
273
|
readonly reportId = "ServerLogLevel" as const;
|
|
@@ -246,35 +279,24 @@ export class ServerLogLevel {
|
|
|
246
279
|
}
|
|
247
280
|
}
|
|
248
281
|
|
|
249
|
-
export class
|
|
250
|
-
static readonly reportId = "
|
|
251
|
-
readonly reportId = "
|
|
252
|
-
readonly report: Omit<
|
|
282
|
+
export class ChildEntitiesAllTime {
|
|
283
|
+
static readonly reportId = "ChildEntitiesAllTime" as const;
|
|
284
|
+
readonly reportId = "ChildEntitiesAllTime" as const;
|
|
285
|
+
readonly report: Omit<_ChildEntitiesAllTime, "tx">;
|
|
253
286
|
declare readonly $res: () => ItemStub[];
|
|
254
287
|
|
|
255
|
-
constructor(args: Omit<
|
|
256
|
-
this.report = args;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export class GetItemsByTypeAndIds {
|
|
261
|
-
static readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
262
|
-
readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
263
|
-
readonly report: Omit<_GetItemsByTypeAndIds, "tx">;
|
|
264
|
-
declare readonly $res: () => JsonValue[];
|
|
265
|
-
|
|
266
|
-
constructor(args: Omit<_GetItemsByTypeAndIds, "tx">) {
|
|
288
|
+
constructor(args: Omit<_ChildEntitiesAllTime, "tx">) {
|
|
267
289
|
this.report = args;
|
|
268
290
|
}
|
|
269
291
|
}
|
|
270
292
|
|
|
271
|
-
export class
|
|
272
|
-
static readonly reportId = "
|
|
273
|
-
readonly reportId = "
|
|
274
|
-
readonly report: Omit<
|
|
293
|
+
export class FullChildEntities {
|
|
294
|
+
static readonly reportId = "FullChildEntities" as const;
|
|
295
|
+
readonly reportId = "FullChildEntities" as const;
|
|
296
|
+
readonly report: Omit<_FullChildEntities, "tx">;
|
|
275
297
|
declare readonly $res: () => ItemStub[];
|
|
276
298
|
|
|
277
|
-
constructor(args: Omit<
|
|
299
|
+
constructor(args: Omit<_FullChildEntities, "tx">) {
|
|
278
300
|
this.report = args;
|
|
279
301
|
}
|
|
280
302
|
}
|
|
@@ -290,13 +312,13 @@ export class EntitySnapshotDifference {
|
|
|
290
312
|
}
|
|
291
313
|
}
|
|
292
314
|
|
|
293
|
-
export class
|
|
294
|
-
static readonly reportId = "
|
|
295
|
-
readonly reportId = "
|
|
296
|
-
readonly report: Omit<
|
|
297
|
-
declare readonly $res: () =>
|
|
315
|
+
export class PeerAlive {
|
|
316
|
+
static readonly reportId = "PeerAlive" as const;
|
|
317
|
+
readonly reportId = "PeerAlive" as const;
|
|
318
|
+
readonly report: Omit<_PeerAlive, "tx">;
|
|
319
|
+
declare readonly $res: () => number;
|
|
298
320
|
|
|
299
|
-
constructor(args: Omit<
|
|
321
|
+
constructor(args: Omit<_PeerAlive, "tx">) {
|
|
300
322
|
this.report = args;
|
|
301
323
|
}
|
|
302
324
|
}
|
|
@@ -312,35 +334,24 @@ export class EventsForTransaction {
|
|
|
312
334
|
}
|
|
313
335
|
}
|
|
314
336
|
|
|
315
|
-
export class
|
|
316
|
-
static readonly reportId = "
|
|
317
|
-
readonly reportId = "
|
|
318
|
-
readonly report: Omit<
|
|
319
|
-
declare readonly $res: () =>
|
|
320
|
-
|
|
321
|
-
constructor(args: Omit<_GetPersistHealth, "tx">) {
|
|
322
|
-
this.report = args;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export class PeerAlive {
|
|
327
|
-
static readonly reportId = "PeerAlive" as const;
|
|
328
|
-
readonly reportId = "PeerAlive" as const;
|
|
329
|
-
readonly report: Omit<_PeerAlive, "tx">;
|
|
330
|
-
declare readonly $res: () => number;
|
|
337
|
+
export class GetClientById {
|
|
338
|
+
static readonly reportId = "GetClientById" as const;
|
|
339
|
+
readonly reportId = "GetClientById" as const;
|
|
340
|
+
readonly report: Omit<_GetClientById, "tx">;
|
|
341
|
+
declare readonly $res: () => Client | null;
|
|
331
342
|
|
|
332
|
-
constructor(args: Omit<
|
|
343
|
+
constructor(args: Omit<_GetClientById, "tx">) {
|
|
333
344
|
this.report = args;
|
|
334
345
|
}
|
|
335
346
|
}
|
|
336
347
|
|
|
337
|
-
export class
|
|
338
|
-
static readonly reportId = "
|
|
339
|
-
readonly reportId = "
|
|
340
|
-
readonly report: Omit<
|
|
341
|
-
declare readonly $res: () =>
|
|
348
|
+
export class WindbackStatus {
|
|
349
|
+
static readonly reportId = "WindbackStatus" as const;
|
|
350
|
+
readonly reportId = "WindbackStatus" as const;
|
|
351
|
+
readonly report: Omit<_WindbackStatus, "tx">;
|
|
352
|
+
declare readonly $res: () => WindbackStatusOutput;
|
|
342
353
|
|
|
343
|
-
constructor(args: Omit<
|
|
354
|
+
constructor(args: Omit<_WindbackStatus, "tx">) {
|
|
344
355
|
this.report = args;
|
|
345
356
|
}
|
|
346
357
|
}
|
|
@@ -356,17 +367,6 @@ export class CountClients {
|
|
|
356
367
|
}
|
|
357
368
|
}
|
|
358
369
|
|
|
359
|
-
export class GetClientById {
|
|
360
|
-
static readonly reportId = "GetClientById" as const;
|
|
361
|
-
readonly reportId = "GetClientById" as const;
|
|
362
|
-
readonly report: Omit<_GetClientById, "tx">;
|
|
363
|
-
declare readonly $res: () => Client | null;
|
|
364
|
-
|
|
365
|
-
constructor(args: Omit<_GetClientById, "tx">) {
|
|
366
|
-
this.report = args;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
370
|
export class ClientStatus {
|
|
371
371
|
static readonly reportId = "ClientStatus" as const;
|
|
372
372
|
readonly reportId = "ClientStatus" as const;
|
|
@@ -378,13 +378,13 @@ export class ClientStatus {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
export class
|
|
382
|
-
static readonly reportId = "
|
|
383
|
-
readonly reportId = "
|
|
384
|
-
readonly report: Omit<
|
|
385
|
-
declare readonly $res: () =>
|
|
381
|
+
export class CountAllClients {
|
|
382
|
+
static readonly reportId = "CountAllClients" as const;
|
|
383
|
+
readonly reportId = "CountAllClients" as const;
|
|
384
|
+
readonly report: Omit<_CountAllClients, "tx">;
|
|
385
|
+
declare readonly $res: () => ClientCount;
|
|
386
386
|
|
|
387
|
-
constructor(args: Omit<
|
|
387
|
+
constructor(args: Omit<_CountAllClients, "tx">) {
|
|
388
388
|
this.report = args;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
@@ -411,17 +411,6 @@ export class CountAllServers {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
export class ServerStats {
|
|
415
|
-
static readonly reportId = "ServerStats" as const;
|
|
416
|
-
readonly reportId = "ServerStats" as const;
|
|
417
|
-
readonly report: Omit<_ServerStats, "tx">;
|
|
418
|
-
declare readonly $res: () => ServerStatsOutput;
|
|
419
|
-
|
|
420
|
-
constructor(args: Omit<_ServerStats, "tx">) {
|
|
421
|
-
this.report = args;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
414
|
export class CountServers {
|
|
426
415
|
static readonly reportId = "CountServers" as const;
|
|
427
416
|
readonly reportId = "CountServers" as const;
|
|
@@ -433,6 +422,17 @@ export class CountServers {
|
|
|
433
422
|
}
|
|
434
423
|
}
|
|
435
424
|
|
|
425
|
+
export class ServerStats {
|
|
426
|
+
static readonly reportId = "ServerStats" as const;
|
|
427
|
+
readonly reportId = "ServerStats" as const;
|
|
428
|
+
readonly report: Omit<_ServerStats, "tx">;
|
|
429
|
+
declare readonly $res: () => ServerStatsOutput;
|
|
430
|
+
|
|
431
|
+
constructor(args: Omit<_ServerStats, "tx">) {
|
|
432
|
+
this.report = args;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
436
|
export class GetServerById {
|
|
437
437
|
static readonly reportId = "GetServerById" as const;
|
|
438
438
|
readonly reportId = "GetServerById" as const;
|
|
@@ -456,6 +456,17 @@ export class ExportEntityTree {
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
// Command classes
|
|
459
|
+
export class ImportItems {
|
|
460
|
+
static readonly commandId = "ImportItems" as const;
|
|
461
|
+
readonly commandId = "ImportItems" as const;
|
|
462
|
+
readonly command: Omit<_ImportItems, "tx" | "createdAt">;
|
|
463
|
+
declare readonly $res: () => number;
|
|
464
|
+
|
|
465
|
+
constructor(args: Omit<_ImportItems, "tx" | "createdAt">) {
|
|
466
|
+
this.command = args;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
459
470
|
export class SetLogLevel {
|
|
460
471
|
static readonly commandId = "SetLogLevel" as const;
|
|
461
472
|
readonly commandId = "SetLogLevel" as const;
|
|
@@ -467,13 +478,24 @@ export class SetLogLevel {
|
|
|
467
478
|
}
|
|
468
479
|
}
|
|
469
480
|
|
|
470
|
-
export class
|
|
471
|
-
static readonly commandId = "
|
|
472
|
-
readonly commandId = "
|
|
473
|
-
readonly command: Omit<
|
|
474
|
-
declare readonly $res: () =>
|
|
481
|
+
export class DeleteClients {
|
|
482
|
+
static readonly commandId = "DeleteClients" as const;
|
|
483
|
+
readonly commandId = "DeleteClients" as const;
|
|
484
|
+
readonly command: Omit<_DeleteClients, "tx" | "createdAt">;
|
|
485
|
+
declare readonly $res: () => DeleteClientsResult;
|
|
475
486
|
|
|
476
|
-
constructor(args: Omit<
|
|
487
|
+
constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
|
|
488
|
+
this.command = args;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export class SetClientWindbackTime {
|
|
493
|
+
static readonly commandId = "SetClientWindbackTime" as const;
|
|
494
|
+
readonly commandId = "SetClientWindbackTime" as const;
|
|
495
|
+
readonly command: Omit<_SetClientWindbackTime, "tx" | "createdAt">;
|
|
496
|
+
declare readonly $res: () => boolean;
|
|
497
|
+
|
|
498
|
+
constructor(args: Omit<_SetClientWindbackTime, "tx" | "createdAt">) {
|
|
477
499
|
this.command = args;
|
|
478
500
|
}
|
|
479
501
|
}
|
|
@@ -500,28 +522,6 @@ export class ClearClientWindbackTime {
|
|
|
500
522
|
}
|
|
501
523
|
}
|
|
502
524
|
|
|
503
|
-
export class SetClientWindbackTime {
|
|
504
|
-
static readonly commandId = "SetClientWindbackTime" as const;
|
|
505
|
-
readonly commandId = "SetClientWindbackTime" as const;
|
|
506
|
-
readonly command: Omit<_SetClientWindbackTime, "tx" | "createdAt">;
|
|
507
|
-
declare readonly $res: () => boolean;
|
|
508
|
-
|
|
509
|
-
constructor(args: Omit<_SetClientWindbackTime, "tx" | "createdAt">) {
|
|
510
|
-
this.command = args;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
export class DeleteClients {
|
|
515
|
-
static readonly commandId = "DeleteClients" as const;
|
|
516
|
-
readonly commandId = "DeleteClients" as const;
|
|
517
|
-
readonly command: Omit<_DeleteClients, "tx" | "createdAt">;
|
|
518
|
-
declare readonly $res: () => DeleteClientsResult;
|
|
519
|
-
|
|
520
|
-
constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
|
|
521
|
-
this.command = args;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
525
|
export class DeleteServers {
|
|
526
526
|
static readonly commandId = "DeleteServers" as const;
|
|
527
527
|
readonly commandId = "DeleteServers" as const;
|
|
@@ -552,28 +552,28 @@ export const items = {
|
|
|
552
552
|
|
|
553
553
|
// Message events
|
|
554
554
|
export const MykoEvent = {
|
|
555
|
-
CommandError: "ws:m:command-error",
|
|
556
|
-
QueryResponse: "ws:m:query-response",
|
|
557
|
-
ViewResponse: "ws:m:view-response",
|
|
558
|
-
EventBatch: "ws:m:event-batch",
|
|
559
555
|
CommandResponse: "ws:m:command-response",
|
|
560
|
-
Report: "ws:m:report",
|
|
561
556
|
ReportError: "ws:m:report-error",
|
|
562
|
-
|
|
557
|
+
Ping: "ws:m:ping",
|
|
558
|
+
QueryCancel: "ws:m:query-cancel",
|
|
559
|
+
Report: "ws:m:report",
|
|
560
|
+
CommandError: "ws:m:command-error",
|
|
561
|
+
Command: "ws:m:command",
|
|
562
|
+
ProtocolSwitch: "ws:m:protocol-switch",
|
|
563
563
|
ViewCancel: "ws:m:view-cancel",
|
|
564
|
-
Query: "ws:m:query",
|
|
565
|
-
ReportResponse: "ws:m:report-response",
|
|
566
564
|
ReportCancel: "ws:m:report-cancel",
|
|
567
565
|
Event: "ws:m:event",
|
|
566
|
+
QueryResponse: "ws:m:query-response",
|
|
567
|
+
ReportResponse: "ws:m:report-response",
|
|
568
|
+
ViewResponse: "ws:m:view-response",
|
|
569
|
+
Query: "ws:m:query",
|
|
568
570
|
ViewWindow: "ws:m:view-window",
|
|
569
|
-
|
|
570
|
-
Benchmark: "ws:m:benchmark",
|
|
571
|
-
ProtocolSwitch: "ws:m:protocol-switch",
|
|
572
|
-
View: "ws:m:view",
|
|
573
|
-
Command: "ws:m:command",
|
|
574
|
-
QueryCancel: "ws:m:query-cancel",
|
|
575
|
-
Ping: "ws:m:ping",
|
|
571
|
+
ViewError: "ws:m:view-error",
|
|
576
572
|
QueryWindow: "ws:m:query-window",
|
|
573
|
+
View: "ws:m:view",
|
|
574
|
+
Benchmark: "ws:m:benchmark",
|
|
575
|
+
EventBatch: "ws:m:event-batch",
|
|
576
|
+
QueryError: "ws:m:query-error",
|
|
577
577
|
} as const;
|
|
578
578
|
export type MykoEventType = typeof MykoEvent[keyof typeof MykoEvent];
|
|
579
579
|
|