@myko/core 4.4.0-canary.3 → 4.4.0-canary.4
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 +150 -150
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 GetAllClients {
|
|
121
|
-
static readonly queryId = "GetAllClients" as const;
|
|
122
|
-
static readonly queryItemType = "Client" as const;
|
|
123
|
-
readonly queryId = "GetAllClients" as const;
|
|
124
|
-
readonly queryItemType = "Client" as const;
|
|
125
|
-
readonly query: Omit<_GetAllClients, "tx" | "createdAt">;
|
|
126
|
-
declare readonly $res: () => Client[];
|
|
127
|
-
|
|
128
|
-
constructor(args: Omit<_GetAllClients, "tx" | "createdAt">) {
|
|
129
|
-
this.query = args;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
120
|
export class GetClientsByIds {
|
|
134
121
|
static readonly queryId = "GetClientsByIds" as const;
|
|
135
122
|
static readonly queryItemType = "Client" as const;
|
|
@@ -156,6 +143,32 @@ export class GetClientsByQuery {
|
|
|
156
143
|
}
|
|
157
144
|
}
|
|
158
145
|
|
|
146
|
+
export class GetAllClients {
|
|
147
|
+
static readonly queryId = "GetAllClients" as const;
|
|
148
|
+
static readonly queryItemType = "Client" as const;
|
|
149
|
+
readonly queryId = "GetAllClients" as const;
|
|
150
|
+
readonly queryItemType = "Client" as const;
|
|
151
|
+
readonly query: Omit<_GetAllClients, "tx" | "createdAt">;
|
|
152
|
+
declare readonly $res: () => Client[];
|
|
153
|
+
|
|
154
|
+
constructor(args: Omit<_GetAllClients, "tx" | "createdAt">) {
|
|
155
|
+
this.query = args;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export class GetConnectedServer {
|
|
160
|
+
static readonly queryId = "GetConnectedServer" as const;
|
|
161
|
+
static readonly queryItemType = "Server" as const;
|
|
162
|
+
readonly queryId = "GetConnectedServer" as const;
|
|
163
|
+
readonly queryItemType = "Server" as const;
|
|
164
|
+
readonly query: Omit<_GetConnectedServer, "tx" | "createdAt">;
|
|
165
|
+
declare readonly $res: () => Server[];
|
|
166
|
+
|
|
167
|
+
constructor(args: Omit<_GetConnectedServer, "tx" | "createdAt">) {
|
|
168
|
+
this.query = args;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
159
172
|
export class GetServersByQuery {
|
|
160
173
|
static readonly queryId = "GetServersByQuery" as const;
|
|
161
174
|
static readonly queryItemType = "Server" as const;
|
|
@@ -182,19 +195,6 @@ export class GetAllServers {
|
|
|
182
195
|
}
|
|
183
196
|
}
|
|
184
197
|
|
|
185
|
-
export class GetPeerServers {
|
|
186
|
-
static readonly queryId = "GetPeerServers" as const;
|
|
187
|
-
static readonly queryItemType = "Server" as const;
|
|
188
|
-
readonly queryId = "GetPeerServers" as const;
|
|
189
|
-
readonly queryItemType = "Server" as const;
|
|
190
|
-
readonly query: Omit<_GetPeerServers, "tx" | "createdAt">;
|
|
191
|
-
declare readonly $res: () => Server[];
|
|
192
|
-
|
|
193
|
-
constructor(args: Omit<_GetPeerServers, "tx" | "createdAt">) {
|
|
194
|
-
this.query = args;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
198
|
export class GetServersByIds {
|
|
199
199
|
static readonly queryId = "GetServersByIds" as const;
|
|
200
200
|
static readonly queryItemType = "Server" as const;
|
|
@@ -208,15 +208,15 @@ export class GetServersByIds {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
export class
|
|
212
|
-
static readonly queryId = "
|
|
211
|
+
export class GetPeerServers {
|
|
212
|
+
static readonly queryId = "GetPeerServers" as const;
|
|
213
213
|
static readonly queryItemType = "Server" as const;
|
|
214
|
-
readonly queryId = "
|
|
214
|
+
readonly queryId = "GetPeerServers" as const;
|
|
215
215
|
readonly queryItemType = "Server" as const;
|
|
216
|
-
readonly query: Omit<
|
|
216
|
+
readonly query: Omit<_GetPeerServers, "tx" | "createdAt">;
|
|
217
217
|
declare readonly $res: () => Server[];
|
|
218
218
|
|
|
219
|
-
constructor(args: Omit<
|
|
219
|
+
constructor(args: Omit<_GetPeerServers, "tx" | "createdAt">) {
|
|
220
220
|
this.query = args;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
@@ -224,13 +224,13 @@ export class GetConnectedServer {
|
|
|
224
224
|
// View classes
|
|
225
225
|
|
|
226
226
|
// Report classes
|
|
227
|
-
export class
|
|
228
|
-
static readonly reportId = "
|
|
229
|
-
readonly reportId = "
|
|
230
|
-
readonly report: Omit<
|
|
231
|
-
declare readonly $res: () =>
|
|
227
|
+
export class ServerLogLevel {
|
|
228
|
+
static readonly reportId = "ServerLogLevel" as const;
|
|
229
|
+
readonly reportId = "ServerLogLevel" as const;
|
|
230
|
+
readonly report: Omit<_ServerLogLevel, "tx">;
|
|
231
|
+
declare readonly $res: () => LogLevel;
|
|
232
232
|
|
|
233
|
-
constructor(args: Omit<
|
|
233
|
+
constructor(args: Omit<_ServerLogLevel, "tx">) {
|
|
234
234
|
this.report = args;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -246,24 +246,13 @@ export class ChildEntitiesAllTime {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
export class
|
|
250
|
-
static readonly reportId = "
|
|
251
|
-
readonly reportId = "
|
|
252
|
-
readonly report: Omit<
|
|
253
|
-
declare readonly $res: () =>
|
|
254
|
-
|
|
255
|
-
constructor(args: Omit<_GetItemsByTypeAndIds, "tx">) {
|
|
256
|
-
this.report = args;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export class ServerLogLevel {
|
|
261
|
-
static readonly reportId = "ServerLogLevel" as const;
|
|
262
|
-
readonly reportId = "ServerLogLevel" as const;
|
|
263
|
-
readonly report: Omit<_ServerLogLevel, "tx">;
|
|
264
|
-
declare readonly $res: () => LogLevel;
|
|
249
|
+
export class ChildEntities {
|
|
250
|
+
static readonly reportId = "ChildEntities" as const;
|
|
251
|
+
readonly reportId = "ChildEntities" as const;
|
|
252
|
+
readonly report: Omit<_ChildEntities, "tx">;
|
|
253
|
+
declare readonly $res: () => ItemStub[];
|
|
265
254
|
|
|
266
|
-
constructor(args: Omit<
|
|
255
|
+
constructor(args: Omit<_ChildEntities, "tx">) {
|
|
267
256
|
this.report = args;
|
|
268
257
|
}
|
|
269
258
|
}
|
|
@@ -279,6 +268,17 @@ export class Loggers {
|
|
|
279
268
|
}
|
|
280
269
|
}
|
|
281
270
|
|
|
271
|
+
export class EntitySnapshotDifference {
|
|
272
|
+
static readonly reportId = "EntitySnapshotDifference" as const;
|
|
273
|
+
readonly reportId = "EntitySnapshotDifference" as const;
|
|
274
|
+
readonly report: Omit<_EntitySnapshotDifference, "tx">;
|
|
275
|
+
declare readonly $res: () => EntitySnapshotDifferenceData;
|
|
276
|
+
|
|
277
|
+
constructor(args: Omit<_EntitySnapshotDifference, "tx">) {
|
|
278
|
+
this.report = args;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
282
|
export class EventsForTransaction {
|
|
283
283
|
static readonly reportId = "EventsForTransaction" as const;
|
|
284
284
|
readonly reportId = "EventsForTransaction" as const;
|
|
@@ -290,28 +290,6 @@ export class EventsForTransaction {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
export class GetPersistHealth {
|
|
294
|
-
static readonly reportId = "GetPersistHealth" as const;
|
|
295
|
-
readonly reportId = "GetPersistHealth" as const;
|
|
296
|
-
readonly report: Omit<_GetPersistHealth, "tx">;
|
|
297
|
-
declare readonly $res: () => PersistHealthStatus;
|
|
298
|
-
|
|
299
|
-
constructor(args: Omit<_GetPersistHealth, "tx">) {
|
|
300
|
-
this.report = args;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export class ChildEntities {
|
|
305
|
-
static readonly reportId = "ChildEntities" as const;
|
|
306
|
-
readonly reportId = "ChildEntities" as const;
|
|
307
|
-
readonly report: Omit<_ChildEntities, "tx">;
|
|
308
|
-
declare readonly $res: () => ItemStub[];
|
|
309
|
-
|
|
310
|
-
constructor(args: Omit<_ChildEntities, "tx">) {
|
|
311
|
-
this.report = args;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
293
|
export class FullChildEntities {
|
|
316
294
|
static readonly reportId = "FullChildEntities" as const;
|
|
317
295
|
readonly reportId = "FullChildEntities" as const;
|
|
@@ -323,35 +301,46 @@ export class FullChildEntities {
|
|
|
323
301
|
}
|
|
324
302
|
}
|
|
325
303
|
|
|
326
|
-
export class
|
|
327
|
-
static readonly reportId = "
|
|
328
|
-
readonly reportId = "
|
|
329
|
-
readonly report: Omit<
|
|
330
|
-
declare readonly $res: () =>
|
|
304
|
+
export class PeerAlive {
|
|
305
|
+
static readonly reportId = "PeerAlive" as const;
|
|
306
|
+
readonly reportId = "PeerAlive" as const;
|
|
307
|
+
readonly report: Omit<_PeerAlive, "tx">;
|
|
308
|
+
declare readonly $res: () => number;
|
|
331
309
|
|
|
332
|
-
constructor(args: Omit<
|
|
310
|
+
constructor(args: Omit<_PeerAlive, "tx">) {
|
|
333
311
|
this.report = args;
|
|
334
312
|
}
|
|
335
313
|
}
|
|
336
314
|
|
|
337
|
-
export class
|
|
338
|
-
static readonly reportId = "
|
|
339
|
-
readonly reportId = "
|
|
340
|
-
readonly report: Omit<
|
|
341
|
-
declare readonly $res: () =>
|
|
315
|
+
export class GetItemsByTypeAndIds {
|
|
316
|
+
static readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
317
|
+
readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
318
|
+
readonly report: Omit<_GetItemsByTypeAndIds, "tx">;
|
|
319
|
+
declare readonly $res: () => JsonValue[];
|
|
342
320
|
|
|
343
|
-
constructor(args: Omit<
|
|
321
|
+
constructor(args: Omit<_GetItemsByTypeAndIds, "tx">) {
|
|
344
322
|
this.report = args;
|
|
345
323
|
}
|
|
346
324
|
}
|
|
347
325
|
|
|
348
|
-
export class
|
|
349
|
-
static readonly reportId = "
|
|
350
|
-
readonly reportId = "
|
|
351
|
-
readonly report: Omit<
|
|
352
|
-
declare readonly $res: () =>
|
|
326
|
+
export class GetPersistHealth {
|
|
327
|
+
static readonly reportId = "GetPersistHealth" as const;
|
|
328
|
+
readonly reportId = "GetPersistHealth" as const;
|
|
329
|
+
readonly report: Omit<_GetPersistHealth, "tx">;
|
|
330
|
+
declare readonly $res: () => PersistHealthStatus;
|
|
353
331
|
|
|
354
|
-
constructor(args: Omit<
|
|
332
|
+
constructor(args: Omit<_GetPersistHealth, "tx">) {
|
|
333
|
+
this.report = args;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
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;
|
|
342
|
+
|
|
343
|
+
constructor(args: Omit<_GetClientById, "tx">) {
|
|
355
344
|
this.report = args;
|
|
356
345
|
}
|
|
357
346
|
}
|
|
@@ -378,13 +367,24 @@ export class WindbackStatus {
|
|
|
378
367
|
}
|
|
379
368
|
}
|
|
380
369
|
|
|
381
|
-
export class
|
|
382
|
-
static readonly reportId = "
|
|
383
|
-
readonly reportId = "
|
|
384
|
-
readonly report: Omit<
|
|
385
|
-
declare readonly $res: () =>
|
|
370
|
+
export class CountAllClients {
|
|
371
|
+
static readonly reportId = "CountAllClients" as const;
|
|
372
|
+
readonly reportId = "CountAllClients" as const;
|
|
373
|
+
readonly report: Omit<_CountAllClients, "tx">;
|
|
374
|
+
declare readonly $res: () => ClientCount;
|
|
386
375
|
|
|
387
|
-
constructor(args: Omit<
|
|
376
|
+
constructor(args: Omit<_CountAllClients, "tx">) {
|
|
377
|
+
this.report = args;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export class CountClients {
|
|
382
|
+
static readonly reportId = "CountClients" as const;
|
|
383
|
+
readonly reportId = "CountClients" as const;
|
|
384
|
+
readonly report: Omit<_CountClients, "tx">;
|
|
385
|
+
declare readonly $res: () => ClientCount;
|
|
386
|
+
|
|
387
|
+
constructor(args: Omit<_CountClients, "tx">) {
|
|
388
388
|
this.report = args;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
@@ -400,17 +400,6 @@ export class EntitySearch {
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
export class ServerStats {
|
|
404
|
-
static readonly reportId = "ServerStats" as const;
|
|
405
|
-
readonly reportId = "ServerStats" as const;
|
|
406
|
-
readonly report: Omit<_ServerStats, "tx">;
|
|
407
|
-
declare readonly $res: () => ServerStatsOutput;
|
|
408
|
-
|
|
409
|
-
constructor(args: Omit<_ServerStats, "tx">) {
|
|
410
|
-
this.report = args;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
403
|
export class CountServers {
|
|
415
404
|
static readonly reportId = "CountServers" as const;
|
|
416
405
|
readonly reportId = "CountServers" as const;
|
|
@@ -422,6 +411,17 @@ export class CountServers {
|
|
|
422
411
|
}
|
|
423
412
|
}
|
|
424
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
425
|
export class CountAllServers {
|
|
426
426
|
static readonly reportId = "CountAllServers" as const;
|
|
427
427
|
readonly reportId = "CountAllServers" as const;
|
|
@@ -478,13 +478,13 @@ export class SetLogLevel {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
export class
|
|
482
|
-
static readonly commandId = "
|
|
483
|
-
readonly commandId = "
|
|
484
|
-
readonly command: Omit<
|
|
485
|
-
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;
|
|
486
486
|
|
|
487
|
-
constructor(args: Omit<
|
|
487
|
+
constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
|
|
488
488
|
this.command = args;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
@@ -511,24 +511,13 @@ export class ClearClientWindbackTime {
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
export class
|
|
515
|
-
static readonly commandId = "
|
|
516
|
-
readonly commandId = "
|
|
517
|
-
readonly command: Omit<
|
|
518
|
-
declare readonly $res: () =>
|
|
519
|
-
|
|
520
|
-
constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
|
|
521
|
-
this.command = args;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export class DeleteServer {
|
|
526
|
-
static readonly commandId = "DeleteServer" as const;
|
|
527
|
-
readonly commandId = "DeleteServer" as const;
|
|
528
|
-
readonly command: Omit<_DeleteServer, "tx" | "createdAt">;
|
|
529
|
-
declare readonly $res: () => DeleteServerResult;
|
|
514
|
+
export class DeleteClient {
|
|
515
|
+
static readonly commandId = "DeleteClient" as const;
|
|
516
|
+
readonly commandId = "DeleteClient" as const;
|
|
517
|
+
readonly command: Omit<_DeleteClient, "tx" | "createdAt">;
|
|
518
|
+
declare readonly $res: () => DeleteClientResult;
|
|
530
519
|
|
|
531
|
-
constructor(args: Omit<
|
|
520
|
+
constructor(args: Omit<_DeleteClient, "tx" | "createdAt">) {
|
|
532
521
|
this.command = args;
|
|
533
522
|
}
|
|
534
523
|
}
|
|
@@ -544,6 +533,17 @@ export class DeleteServers {
|
|
|
544
533
|
}
|
|
545
534
|
}
|
|
546
535
|
|
|
536
|
+
export class DeleteServer {
|
|
537
|
+
static readonly commandId = "DeleteServer" as const;
|
|
538
|
+
readonly commandId = "DeleteServer" as const;
|
|
539
|
+
readonly command: Omit<_DeleteServer, "tx" | "createdAt">;
|
|
540
|
+
declare readonly $res: () => DeleteServerResult;
|
|
541
|
+
|
|
542
|
+
constructor(args: Omit<_DeleteServer, "tx" | "createdAt">) {
|
|
543
|
+
this.command = args;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
547
|
// Item constructors
|
|
548
548
|
export const items = {
|
|
549
549
|
Client: (args: Client) => ({ item: args, itemType: "Client" }),
|
|
@@ -552,28 +552,28 @@ export const items = {
|
|
|
552
552
|
|
|
553
553
|
// Message events
|
|
554
554
|
export const MykoEvent = {
|
|
555
|
-
|
|
556
|
-
View: "ws:m:view",
|
|
557
|
-
ReportError: "ws:m:report-error",
|
|
558
|
-
Event: "ws:m:event",
|
|
559
|
-
Query: "ws:m:query",
|
|
560
|
-
Ping: "ws:m:ping",
|
|
561
|
-
QueryError: "ws:m:query-error",
|
|
555
|
+
ViewResponse: "ws:m:view-response",
|
|
562
556
|
QueryWindow: "ws:m:query-window",
|
|
563
557
|
QueryCancel: "ws:m:query-cancel",
|
|
564
|
-
ReportCancel: "ws:m:report-cancel",
|
|
565
|
-
ProtocolSwitch: "ws:m:protocol-switch",
|
|
566
|
-
ReportResponse: "ws:m:report-response",
|
|
567
|
-
ViewResponse: "ws:m:view-response",
|
|
568
558
|
ViewCancel: "ws:m:view-cancel",
|
|
559
|
+
ReportResponse: "ws:m:report-response",
|
|
560
|
+
EventBatch: "ws:m:event-batch",
|
|
561
|
+
ReportError: "ws:m:report-error",
|
|
562
|
+
Query: "ws:m:query",
|
|
563
|
+
Event: "ws:m:event",
|
|
564
|
+
View: "ws:m:view",
|
|
565
|
+
Ping: "ws:m:ping",
|
|
569
566
|
Benchmark: "ws:m:benchmark",
|
|
570
|
-
ViewWindow: "ws:m:view-window",
|
|
571
|
-
CommandError: "ws:m:command-error",
|
|
572
|
-
CommandResponse: "ws:m:command-response",
|
|
573
567
|
ViewError: "ws:m:view-error",
|
|
574
|
-
|
|
575
|
-
EventBatch: "ws:m:event-batch",
|
|
568
|
+
ReportCancel: "ws:m:report-cancel",
|
|
576
569
|
QueryResponse: "ws:m:query-response",
|
|
570
|
+
CommandResponse: "ws:m:command-response",
|
|
571
|
+
CommandError: "ws:m:command-error",
|
|
572
|
+
QueryError: "ws:m:query-error",
|
|
573
|
+
ProtocolSwitch: "ws:m:protocol-switch",
|
|
574
|
+
Command: "ws:m:command",
|
|
575
|
+
ViewWindow: "ws:m:view-window",
|
|
576
|
+
Report: "ws:m:report",
|
|
577
577
|
} as const;
|
|
578
578
|
export type MykoEventType = typeof MykoEvent[keyof typeof MykoEvent];
|
|
579
579
|
|