@livestore/common 0.0.54-dev.3 → 0.0.54-dev.31

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 (90) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/__tests__/fixture.d.ts +0 -2
  3. package/dist/__tests__/fixture.d.ts.map +1 -1
  4. package/dist/adapter-types.d.ts +75 -16
  5. package/dist/adapter-types.d.ts.map +1 -1
  6. package/dist/adapter-types.js +18 -0
  7. package/dist/adapter-types.js.map +1 -1
  8. package/dist/bounded-collections.d.ts +1 -1
  9. package/dist/bounded-collections.d.ts.map +1 -1
  10. package/dist/bounded-collections.js.map +1 -1
  11. package/dist/debug-info.d.ts +4 -0
  12. package/dist/debug-info.d.ts.map +1 -1
  13. package/dist/debug-info.js +6 -9
  14. package/dist/debug-info.js.map +1 -1
  15. package/dist/derived-mutations.d.ts +12 -13
  16. package/dist/derived-mutations.d.ts.map +1 -1
  17. package/dist/devtools/devtools-messages.d.ts +248 -46
  18. package/dist/devtools/devtools-messages.d.ts.map +1 -1
  19. package/dist/devtools/devtools-messages.js +110 -48
  20. package/dist/devtools/devtools-messages.js.map +1 -1
  21. package/dist/devtools/devtools-window-message.d.ts +29 -0
  22. package/dist/devtools/devtools-window-message.d.ts.map +1 -0
  23. package/dist/devtools/devtools-window-message.js +33 -0
  24. package/dist/devtools/devtools-window-message.js.map +1 -0
  25. package/dist/devtools/index.d.ts +1 -0
  26. package/dist/devtools/index.d.ts.map +1 -1
  27. package/dist/devtools/index.js +1 -0
  28. package/dist/devtools/index.js.map +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +1 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/mutation.d.ts.map +1 -1
  34. package/dist/rehydrate-from-mutationlog.d.ts +8 -3
  35. package/dist/rehydrate-from-mutationlog.d.ts.map +1 -1
  36. package/dist/rehydrate-from-mutationlog.js +71 -56
  37. package/dist/rehydrate-from-mutationlog.js.map +1 -1
  38. package/dist/schema/index.d.ts.map +1 -1
  39. package/dist/schema/mutations.d.ts +2 -1
  40. package/dist/schema/mutations.d.ts.map +1 -1
  41. package/dist/schema/mutations.js +4 -2
  42. package/dist/schema/mutations.js.map +1 -1
  43. package/dist/schema/parse-utils.d.ts +3 -14
  44. package/dist/schema/parse-utils.d.ts.map +1 -1
  45. package/dist/schema/schema-helpers.d.ts +3 -13
  46. package/dist/schema/schema-helpers.d.ts.map +1 -1
  47. package/dist/schema/system-tables.d.ts +0 -5
  48. package/dist/schema/system-tables.d.ts.map +1 -1
  49. package/dist/schema/table-def.d.ts +3 -21
  50. package/dist/schema/table-def.d.ts.map +1 -1
  51. package/dist/schema/table-def.js +0 -1
  52. package/dist/schema/table-def.js.map +1 -1
  53. package/dist/schema-management/common.d.ts.map +1 -1
  54. package/dist/schema-management/migrations.d.ts +10 -5
  55. package/dist/schema-management/migrations.d.ts.map +1 -1
  56. package/dist/schema-management/migrations.js +24 -13
  57. package/dist/schema-management/migrations.js.map +1 -1
  58. package/dist/schema-management/validate-mutation-defs.d.ts.map +1 -1
  59. package/dist/sql-queries/misc.d.ts.map +1 -1
  60. package/dist/sql-queries/sql-queries.d.ts.map +1 -1
  61. package/dist/sql-queries/sql-query-builder.d.ts +33 -33
  62. package/dist/sql-queries/sql-query-builder.d.ts.map +1 -1
  63. package/dist/sql-queries/types.d.ts.map +1 -1
  64. package/dist/sync/sync.d.ts +3 -3
  65. package/dist/util.d.ts +0 -1
  66. package/dist/util.d.ts.map +1 -1
  67. package/dist/util.js +1 -1
  68. package/dist/util.js.map +1 -1
  69. package/dist/version.d.ts +2 -0
  70. package/dist/version.d.ts.map +1 -0
  71. package/dist/version.js +3 -0
  72. package/dist/version.js.map +1 -0
  73. package/package.json +4 -8
  74. package/src/adapter-types.ts +53 -15
  75. package/src/bounded-collections.ts +1 -1
  76. package/src/debug-info.ts +6 -18
  77. package/src/devtools/devtools-messages.ts +146 -65
  78. package/src/devtools/devtools-window-message.ts +27 -0
  79. package/src/devtools/index.ts +1 -0
  80. package/src/index.ts +1 -0
  81. package/src/rehydrate-from-mutationlog.ts +99 -64
  82. package/src/schema/mutations.ts +8 -5
  83. package/src/schema/table-def.ts +0 -4
  84. package/src/schema-management/migrations.ts +104 -84
  85. package/src/util.ts +1 -1
  86. package/src/version.ts +3 -0
  87. package/dist/devtools/index copy.d.ts +0 -214
  88. package/dist/devtools/index copy.d.ts.map +0 -1
  89. package/dist/devtools/index copy.js +0 -137
  90. package/dist/devtools/index copy.js.map +0 -1
@@ -1,64 +1,91 @@
1
1
  import { Schema } from '@livestore/utils/effect';
2
- declare const SnapshotReq_base: Schema.TaggedStruct<"LSD.SnapshotReq", {
2
+ declare const SnapshotReq_base: Schema.Struct<{
3
+ _tag: Schema.tag<"LSD.SnapshotReq">;
4
+ } & {
3
5
  liveStoreVersion: Schema.Literal<[string]>;
4
6
  requestId: typeof Schema.String;
5
7
  channelId: typeof Schema.String;
6
8
  }>;
7
9
  export declare class SnapshotReq extends SnapshotReq_base {
8
10
  }
9
- declare const SnapshotRes_base: Schema.TaggedStruct<"LSD.SnapshotRes", {
11
+ declare const SnapshotRes_base: Schema.Struct<{
12
+ _tag: Schema.tag<"LSD.SnapshotRes">;
13
+ } & {
10
14
  liveStoreVersion: Schema.Literal<[string]>;
11
15
  requestId: typeof Schema.String;
12
- snapshot: Schema.Schema<Uint8Array, readonly number[], never>;
16
+ snapshot: Schema.Schema<Uint8Array, Uint8Array, never>;
13
17
  }>;
14
18
  export declare class SnapshotRes extends SnapshotRes_base {
15
19
  }
16
- declare const DebugInfoReq_base: Schema.TaggedStruct<"LSD.DebugInfoReq", {
20
+ declare const LoadDatabaseFileReq_base: Schema.Struct<{
21
+ _tag: Schema.tag<"LSD.LoadDatabaseFileReq">;
22
+ } & {
23
+ liveStoreVersion: Schema.Literal<[string]>;
24
+ requestId: typeof Schema.String;
25
+ channelId: typeof Schema.String;
26
+ data: Schema.Schema<Uint8Array, Uint8Array, never>;
27
+ }>;
28
+ export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
29
+ }
30
+ declare const LoadDatabaseFileRes_base: Schema.Struct<{
31
+ _tag: Schema.tag<"LSD.LoadDatabaseFileRes">;
32
+ } & {
33
+ liveStoreVersion: Schema.Literal<[string]>;
34
+ requestId: typeof Schema.String;
35
+ status: Schema.Literal<["ok", "unsupported-file", "unsupported-database"]>;
36
+ }>;
37
+ export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
38
+ }
39
+ declare const DebugInfoReq_base: Schema.Struct<{
40
+ _tag: Schema.tag<"LSD.DebugInfoReq">;
41
+ } & {
17
42
  liveStoreVersion: Schema.Literal<[string]>;
18
43
  requestId: typeof Schema.String;
19
44
  channelId: typeof Schema.String;
20
45
  }>;
21
46
  export declare class DebugInfoReq extends DebugInfoReq_base {
22
47
  }
23
- declare const DebugInfoRes_base: Schema.TaggedStruct<"LSD.DebugInfoRes", {
48
+ declare const DebugInfoRes_base: Schema.Struct<{
49
+ _tag: Schema.tag<"LSD.DebugInfoRes">;
50
+ } & {
24
51
  liveStoreVersion: Schema.Literal<[string]>;
25
52
  requestId: typeof Schema.String;
26
53
  debugInfo: Schema.Struct<{
27
54
  slowQueries: Schema.transform<Schema.Struct<{
28
55
  size: typeof Schema.Number;
29
56
  items: Schema.Array$<Schema.Schema<{
30
- readonly queryStr: string;
31
57
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
32
58
  readonly [x: string]: string | number | Uint8Array | null;
33
59
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
60
+ readonly queryStr: string;
34
61
  readonly durationMs: number;
35
62
  readonly rowsCount: number | undefined;
36
63
  readonly queriedTables: ReadonlySet<string>;
37
64
  readonly startTimePerfNow: number;
38
65
  }, {
39
- readonly queryStr: string;
40
66
  readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
41
67
  readonly [x: string]: string | number | readonly number[] | null;
42
68
  } | undefined;
69
+ readonly queryStr: string;
43
70
  readonly durationMs: number;
44
71
  readonly rowsCount: number | undefined;
45
72
  readonly queriedTables: readonly string[];
46
73
  readonly startTimePerfNow: number;
47
74
  }, never>>;
48
75
  }>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
49
- readonly queryStr: string;
50
76
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
51
77
  readonly [x: string]: string | number | Uint8Array | null;
52
78
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
79
+ readonly queryStr: string;
53
80
  readonly durationMs: number;
54
81
  readonly rowsCount: number | undefined;
55
82
  readonly queriedTables: ReadonlySet<string>;
56
83
  readonly startTimePerfNow: number;
57
84
  }>, import("../bounded-collections.js").BoundArray<{
58
- readonly queryStr: string;
59
85
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
60
86
  readonly [x: string]: string | number | Uint8Array | null;
61
87
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
88
+ readonly queryStr: string;
62
89
  readonly durationMs: number;
63
90
  readonly rowsCount: number | undefined;
64
91
  readonly queriedTables: ReadonlySet<string>;
@@ -74,20 +101,100 @@ declare const DebugInfoRes_base: Schema.TaggedStruct<"LSD.DebugInfoRes", {
74
101
  }>;
75
102
  export declare class DebugInfoRes extends DebugInfoRes_base {
76
103
  }
77
- declare const DebugInfoResetReq_base: Schema.TaggedStruct<"LSD.DebugInfoResetReq", {
104
+ declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
105
+ _tag: Schema.tag<"LSD.DebugInfoHistorySubscribe">;
106
+ } & {
107
+ liveStoreVersion: Schema.Literal<[string]>;
108
+ requestId: typeof Schema.String;
109
+ channelId: typeof Schema.String;
110
+ }>;
111
+ export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe_base {
112
+ }
113
+ declare const DebugInfoHistoryRes_base: Schema.Struct<{
114
+ _tag: Schema.tag<"LSD.DebugInfoHistoryRes">;
115
+ } & {
116
+ liveStoreVersion: Schema.Literal<[string]>;
117
+ requestId: typeof Schema.String;
118
+ debugInfoHistory: Schema.Array$<Schema.Struct<{
119
+ slowQueries: Schema.transform<Schema.Struct<{
120
+ size: typeof Schema.Number;
121
+ items: Schema.Array$<Schema.Schema<{
122
+ readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
123
+ readonly [x: string]: string | number | Uint8Array | null;
124
+ }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
125
+ readonly queryStr: string;
126
+ readonly durationMs: number;
127
+ readonly rowsCount: number | undefined;
128
+ readonly queriedTables: ReadonlySet<string>;
129
+ readonly startTimePerfNow: number;
130
+ }, {
131
+ readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
132
+ readonly [x: string]: string | number | readonly number[] | null;
133
+ } | undefined;
134
+ readonly queryStr: string;
135
+ readonly durationMs: number;
136
+ readonly rowsCount: number | undefined;
137
+ readonly queriedTables: readonly string[];
138
+ readonly startTimePerfNow: number;
139
+ }, never>>;
140
+ }>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
141
+ readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
142
+ readonly [x: string]: string | number | Uint8Array | null;
143
+ }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
144
+ readonly queryStr: string;
145
+ readonly durationMs: number;
146
+ readonly rowsCount: number | undefined;
147
+ readonly queriedTables: ReadonlySet<string>;
148
+ readonly startTimePerfNow: number;
149
+ }>, import("../bounded-collections.js").BoundArray<{
150
+ readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
151
+ readonly [x: string]: string | number | Uint8Array | null;
152
+ }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
153
+ readonly queryStr: string;
154
+ readonly durationMs: number;
155
+ readonly rowsCount: number | undefined;
156
+ readonly queriedTables: ReadonlySet<string>;
157
+ readonly startTimePerfNow: number;
158
+ }>, never>>;
159
+ queryFrameDuration: typeof Schema.Number;
160
+ queryFrameCount: typeof Schema.Number;
161
+ events: Schema.transform<Schema.Struct<{
162
+ size: typeof Schema.Number;
163
+ items: Schema.Array$<Schema.Schema<readonly [string, any], readonly [string, any], never>>;
164
+ }>, Schema.Schema<import("../bounded-collections.js").BoundArray<readonly [string, any]>, import("../bounded-collections.js").BoundArray<readonly [string, any]>, never>>;
165
+ }>>;
166
+ }>;
167
+ export declare class DebugInfoHistoryRes extends DebugInfoHistoryRes_base {
168
+ }
169
+ declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
170
+ _tag: Schema.tag<"LSD.DebugInfoHistoryUnsubscribe">;
171
+ } & {
172
+ liveStoreVersion: Schema.Literal<[string]>;
173
+ requestId: typeof Schema.String;
174
+ channelId: typeof Schema.String;
175
+ }>;
176
+ export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubscribe_base {
177
+ }
178
+ declare const DebugInfoResetReq_base: Schema.Struct<{
179
+ _tag: Schema.tag<"LSD.DebugInfoResetReq">;
180
+ } & {
78
181
  liveStoreVersion: Schema.Literal<[string]>;
79
182
  requestId: typeof Schema.String;
80
183
  channelId: typeof Schema.String;
81
184
  }>;
82
185
  export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
83
186
  }
84
- declare const DebugInfoResetRes_base: Schema.TaggedStruct<"LSD.DebugInfoResetRes", {
187
+ declare const DebugInfoResetRes_base: Schema.Struct<{
188
+ _tag: Schema.tag<"LSD.DebugInfoResetRes">;
189
+ } & {
85
190
  liveStoreVersion: Schema.Literal<[string]>;
86
191
  requestId: typeof Schema.String;
87
192
  }>;
88
193
  export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
89
194
  }
90
- declare const DebugInfoRerunQueryReq_base: Schema.TaggedStruct<"LSD.DebugInfoRerunQueryReq", {
195
+ declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
196
+ _tag: Schema.tag<"LSD.DebugInfoRerunQueryReq">;
197
+ } & {
91
198
  liveStoreVersion: Schema.Literal<[string]>;
92
199
  requestId: typeof Schema.String;
93
200
  channelId: typeof Schema.String;
@@ -97,15 +204,18 @@ declare const DebugInfoRerunQueryReq_base: Schema.TaggedStruct<"LSD.DebugInfoRer
97
204
  }>;
98
205
  export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base {
99
206
  }
100
- declare const DebugInfoRerunQueryRes_base: Schema.TaggedStruct<"LSD.DebugInfoRerunQueryRes", {
207
+ declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
208
+ _tag: Schema.tag<"LSD.DebugInfoRerunQueryRes">;
209
+ } & {
101
210
  liveStoreVersion: Schema.Literal<[string]>;
102
211
  requestId: typeof Schema.String;
103
212
  }>;
104
213
  export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base {
105
214
  }
106
- declare const MutationBroadcast_base: Schema.TaggedStruct<"LSD.MutationBroadcast", {
215
+ declare const MutationBroadcast_base: Schema.Struct<{
216
+ _tag: Schema.tag<"LSD.MutationBroadcast">;
217
+ } & {
107
218
  liveStoreVersion: Schema.Literal<[string]>;
108
- requestId: typeof Schema.String;
109
219
  mutationEventEncoded: Schema.Struct<{
110
220
  mutation: typeof Schema.String;
111
221
  args: typeof Schema.Any;
@@ -115,50 +225,89 @@ declare const MutationBroadcast_base: Schema.TaggedStruct<"LSD.MutationBroadcast
115
225
  }>;
116
226
  export declare class MutationBroadcast extends MutationBroadcast_base {
117
227
  }
118
- declare const MutationLogReq_base: Schema.TaggedStruct<"LSD.MutationLogReq", {
228
+ declare const RunMutationReq_base: Schema.Struct<{
229
+ _tag: Schema.tag<"LSD.RunMutationReq">;
230
+ } & {
231
+ liveStoreVersion: Schema.Literal<[string]>;
232
+ requestId: typeof Schema.String;
233
+ channelId: typeof Schema.String;
234
+ mutationEventEncoded: Schema.Struct<{
235
+ mutation: typeof Schema.String;
236
+ args: typeof Schema.Any;
237
+ id: typeof Schema.String;
238
+ }>;
239
+ persisted: typeof Schema.Boolean;
240
+ }>;
241
+ export declare class RunMutationReq extends RunMutationReq_base {
242
+ }
243
+ declare const RunMutationRes_base: Schema.Struct<{
244
+ _tag: Schema.tag<"LSD.RunMutationRes">;
245
+ } & {
246
+ liveStoreVersion: Schema.Literal<[string]>;
247
+ requestId: typeof Schema.String;
248
+ channelId: typeof Schema.String;
249
+ }>;
250
+ export declare class RunMutationRes extends RunMutationRes_base {
251
+ }
252
+ declare const MutationLogReq_base: Schema.Struct<{
253
+ _tag: Schema.tag<"LSD.MutationLogReq">;
254
+ } & {
119
255
  liveStoreVersion: Schema.Literal<[string]>;
120
256
  requestId: typeof Schema.String;
121
257
  channelId: typeof Schema.String;
122
258
  }>;
123
259
  export declare class MutationLogReq extends MutationLogReq_base {
124
260
  }
125
- declare const MutationLogRes_base: Schema.TaggedStruct<"LSD.MutationLogRes", {
261
+ declare const MutationLogRes_base: Schema.Struct<{
262
+ _tag: Schema.tag<"LSD.MutationLogRes">;
263
+ } & {
126
264
  liveStoreVersion: Schema.Literal<[string]>;
127
265
  requestId: typeof Schema.String;
128
- mutationLog: Schema.Schema<Uint8Array, readonly number[], never>;
266
+ channelId: typeof Schema.String;
267
+ mutationLog: Schema.Schema<Uint8Array, Uint8Array, never>;
129
268
  }>;
130
269
  export declare class MutationLogRes extends MutationLogRes_base {
131
270
  }
132
- declare const SignalsSubscribe_base: Schema.TaggedStruct<"LSD.SignalsSubscribe", {
271
+ declare const ReactivityGraphSubscribe_base: Schema.Struct<{
272
+ _tag: Schema.tag<"LSD.ReactivityGraphSubscribe">;
273
+ } & {
133
274
  liveStoreVersion: Schema.Literal<[string]>;
134
275
  requestId: typeof Schema.String;
135
276
  channelId: typeof Schema.String;
136
277
  includeResults: typeof Schema.Boolean;
137
278
  }>;
138
- export declare class SignalsSubscribe extends SignalsSubscribe_base {
279
+ export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_base {
139
280
  }
140
- declare const SignalsUnsubscribe_base: Schema.TaggedStruct<"LSD.SignalsUnsubscribe", {
281
+ declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
282
+ _tag: Schema.tag<"LSD.ReactivityGraphUnsubscribe">;
283
+ } & {
141
284
  liveStoreVersion: Schema.Literal<[string]>;
142
285
  requestId: typeof Schema.String;
143
286
  channelId: typeof Schema.String;
144
287
  }>;
145
- export declare class SignalsUnsubscribe extends SignalsUnsubscribe_base {
288
+ export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscribe_base {
146
289
  }
147
- declare const SignalsRes_base: Schema.TaggedStruct<"LSD.SignalsRes", {
290
+ declare const ReactivityGraphRes_base: Schema.Struct<{
291
+ _tag: Schema.tag<"LSD.ReactivityGraphRes">;
292
+ } & {
148
293
  liveStoreVersion: Schema.Literal<[string]>;
149
294
  requestId: typeof Schema.String;
150
- signals: typeof Schema.Any;
295
+ reactivityGraph: typeof Schema.Any;
151
296
  }>;
152
- export declare class SignalsRes extends SignalsRes_base {
297
+ export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
153
298
  }
154
- declare const LiveQueriesSubscribe_base: Schema.TaggedStruct<"LSD.LiveQueriesSubscribe", {
299
+ declare const LiveQueriesSubscribe_base: Schema.Struct<{
300
+ _tag: Schema.tag<"LSD.LiveQueriesSubscribe">;
301
+ } & {
155
302
  liveStoreVersion: Schema.Literal<[string]>;
156
303
  requestId: typeof Schema.String;
157
304
  channelId: typeof Schema.String;
158
305
  }>;
159
306
  export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
160
307
  }
161
- declare const LiveQueriesUnsubscribe_base: Schema.TaggedStruct<"LSD.LiveQueriesUnsubscribe", {
308
+ declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
309
+ _tag: Schema.tag<"LSD.LiveQueriesUnsubscribe">;
310
+ } & {
162
311
  liveStoreVersion: Schema.Literal<[string]>;
163
312
  requestId: typeof Schema.String;
164
313
  channelId: typeof Schema.String;
@@ -181,14 +330,18 @@ declare const SerializedLiveQuery_base: Schema.Struct<{
181
330
  }>;
182
331
  export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
183
332
  }
184
- declare const LiveQueriesRes_base: Schema.TaggedStruct<"LSD.LiveQueriesRes", {
333
+ declare const LiveQueriesRes_base: Schema.Struct<{
334
+ _tag: Schema.tag<"LSD.LiveQueriesRes">;
335
+ } & {
185
336
  liveStoreVersion: Schema.Literal<[string]>;
186
337
  requestId: typeof Schema.String;
187
338
  liveQueries: Schema.Array$<typeof SerializedLiveQuery>;
188
339
  }>;
189
340
  export declare class LiveQueriesRes extends LiveQueriesRes_base {
190
341
  }
191
- declare const ResetAllDataReq_base: Schema.TaggedStruct<"LSD.ResetAllDataReq", {
342
+ declare const ResetAllDataReq_base: Schema.Struct<{
343
+ _tag: Schema.tag<"LSD.ResetAllDataReq">;
344
+ } & {
192
345
  liveStoreVersion: Schema.Literal<[string]>;
193
346
  requestId: typeof Schema.String;
194
347
  channelId: typeof Schema.String;
@@ -196,13 +349,36 @@ declare const ResetAllDataReq_base: Schema.TaggedStruct<"LSD.ResetAllDataReq", {
196
349
  }>;
197
350
  export declare class ResetAllDataReq extends ResetAllDataReq_base {
198
351
  }
199
- declare const ResetAllDataRes_base: Schema.TaggedStruct<"LSD.ResetAllDataRes", {
352
+ declare const ResetAllDataRes_base: Schema.Struct<{
353
+ _tag: Schema.tag<"LSD.ResetAllDataRes">;
354
+ } & {
200
355
  liveStoreVersion: Schema.Literal<[string]>;
201
356
  requestId: typeof Schema.String;
202
357
  }>;
203
358
  export declare class ResetAllDataRes extends ResetAllDataRes_base {
204
359
  }
205
- declare const NetworkStatusBroadcast_base: Schema.TaggedStruct<"LSD.NetworkStatusBroadcast", {
360
+ declare const MessagePortForStoreReq_base: Schema.Struct<{
361
+ _tag: Schema.tag<"LSD.MessagePortForStoreReq">;
362
+ } & {
363
+ liveStoreVersion: Schema.Literal<[string]>;
364
+ requestId: typeof Schema.String;
365
+ channelId: typeof Schema.String;
366
+ }>;
367
+ export declare class MessagePortForStoreReq extends MessagePortForStoreReq_base {
368
+ }
369
+ declare const MessagePortForStoreRes_base: Schema.Struct<{
370
+ _tag: Schema.tag<"LSD.MessagePortForStoreRes">;
371
+ } & {
372
+ liveStoreVersion: Schema.Literal<[string]>;
373
+ requestId: typeof Schema.String;
374
+ channelId: typeof Schema.String;
375
+ port: Schema.Schema<MessagePort, MessagePort, never>;
376
+ }>;
377
+ export declare class MessagePortForStoreRes extends MessagePortForStoreRes_base {
378
+ }
379
+ declare const NetworkStatusChanged_base: Schema.Struct<{
380
+ _tag: Schema.tag<"LSD.NetworkStatusChanged">;
381
+ } & {
206
382
  liveStoreVersion: Schema.Literal<[string]>;
207
383
  channelId: typeof Schema.String;
208
384
  networkStatus: Schema.Struct<{
@@ -210,39 +386,65 @@ declare const NetworkStatusBroadcast_base: Schema.TaggedStruct<"LSD.NetworkStatu
210
386
  timestampMs: typeof Schema.Number;
211
387
  }>;
212
388
  }>;
213
- export declare class NetworkStatusBroadcast extends NetworkStatusBroadcast_base {
389
+ export declare class NetworkStatusChanged extends NetworkStatusChanged_base {
214
390
  }
215
- declare const DevtoolsReadyBroadcast_base: Schema.TaggedStruct<"LSD.DevtoolsReadyBroadcast", {
391
+ declare const DevtoolsReady_base: Schema.Struct<{
392
+ _tag: Schema.tag<"LSD.DevtoolsReady">;
393
+ } & {
216
394
  liveStoreVersion: Schema.Literal<[string]>;
217
395
  }>;
218
- export declare class DevtoolsReadyBroadcast extends DevtoolsReadyBroadcast_base {
396
+ export declare class DevtoolsReady extends DevtoolsReady_base {
219
397
  }
220
- declare const DevtoolsConnected_base: Schema.TaggedStruct<"LSD.DevtoolsConnected", {
398
+ declare const DevtoolsConnected_base: Schema.Struct<{
399
+ _tag: Schema.tag<"LSD.DevtoolsConnected">;
400
+ } & {
221
401
  liveStoreVersion: Schema.Literal<[string]>;
222
402
  channelId: typeof Schema.String;
223
403
  }>;
224
404
  export declare class DevtoolsConnected extends DevtoolsConnected_base {
225
405
  }
226
- declare const AppHostReadyBroadcast_base: Schema.TaggedStruct<"LSD.AppHostReadyBroadcast", {
406
+ declare const AppHostReady_base: Schema.Struct<{
407
+ _tag: Schema.tag<"LSD.AppHostReady">;
408
+ } & {
227
409
  liveStoreVersion: Schema.Literal<[string]>;
228
410
  channelId: typeof Schema.String;
411
+ isLeaderTab: typeof Schema.Boolean;
229
412
  }>;
230
- export declare class AppHostReadyBroadcast extends AppHostReadyBroadcast_base {
413
+ export declare class AppHostReady extends AppHostReady_base {
231
414
  }
232
- declare const Disconnect_base: Schema.TaggedStruct<"LSD.Disconnect", {
415
+ declare const Disconnect_base: Schema.Struct<{
416
+ _tag: Schema.tag<"LSD.Disconnect">;
417
+ } & {
233
418
  liveStoreVersion: Schema.Literal<[string]>;
234
419
  requestId: typeof Schema.String;
235
420
  channelId: typeof Schema.String;
236
421
  }>;
237
422
  export declare class Disconnect extends Disconnect_base {
238
423
  }
239
- export declare const MessageToAppHost: Schema.Union<[typeof SnapshotReq, typeof MutationLogReq, typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof SignalsSubscribe, typeof SignalsUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof ResetAllDataReq, typeof DevtoolsReadyBroadcast, typeof Disconnect, typeof DevtoolsConnected]>;
240
- export type MessageToAppHost = typeof MessageToAppHost.Type;
241
- export declare const MessageFromAppHost: Schema.Union<[typeof SnapshotRes, typeof MutationLogRes, typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof SignalsRes, typeof LiveQueriesRes, typeof ResetAllDataRes, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReadyBroadcast, typeof NetworkStatusBroadcast]>;
242
- export type MessageFromAppHost = typeof MessageFromAppHost.Type;
243
- export declare const makeBroadcastChannels: () => {
244
- fromAppHost: BroadcastChannel;
245
- toAppHost: BroadcastChannel;
246
- };
424
+ declare const Ping_base: Schema.Struct<{
425
+ _tag: Schema.tag<"LSD.Ping">;
426
+ } & {
427
+ liveStoreVersion: Schema.Literal<[string]>;
428
+ requestId: typeof Schema.String;
429
+ channelId: typeof Schema.String;
430
+ }>;
431
+ export declare class Ping extends Ping_base {
432
+ }
433
+ declare const Pong_base: Schema.Struct<{
434
+ _tag: Schema.tag<"LSD.Pong">;
435
+ } & {
436
+ liveStoreVersion: Schema.Literal<[string]>;
437
+ requestId: typeof Schema.String;
438
+ }>;
439
+ export declare class Pong extends Pong_base {
440
+ }
441
+ export declare const MessageToAppHostCoordinator: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq, typeof ResetAllDataReq, typeof MessagePortForStoreRes, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected, typeof RunMutationReq, typeof Ping]>;
442
+ export type MessageToAppHostCoordinator = typeof MessageToAppHostCoordinator.Type;
443
+ export declare const MessageToAppHostStore: Schema.Union<[typeof DebugInfoReq, typeof DebugInfoHistorySubscribe, typeof DebugInfoHistoryUnsubscribe, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof ReactivityGraphSubscribe, typeof ReactivityGraphUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe]>;
444
+ export type MessageToAppHostStore = typeof MessageToAppHostStore.Type;
445
+ export declare const MessageFromAppHostCoordinator: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof ResetAllDataRes, typeof MessagePortForStoreReq, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged, typeof RunMutationRes, typeof Pong]>;
446
+ export type MessageFromAppHostCoordinator = typeof MessageFromAppHostCoordinator.Type;
447
+ export declare const MessageFromAppHostStore: Schema.Union<[typeof DebugInfoRes, typeof DebugInfoHistoryRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof ReactivityGraphRes, typeof LiveQueriesRes]>;
448
+ export type MessageFromAppHostStore = typeof MessageFromAppHostStore.Type;
247
449
  export {};
248
450
  //# sourceMappingURL=devtools-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/dev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