@livestore/common 0.3.0-dev.25 → 0.3.0-dev.26

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.
@@ -2,7 +2,7 @@ import { Schema } from '@livestore/utils/effect';
2
2
  declare const DebugInfoReq_base: Schema.Struct<{
3
3
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoReq">;
4
4
  } & {
5
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
5
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
6
6
  } & {
7
7
  clientId: typeof Schema.String;
8
8
  sessionId: typeof Schema.String;
@@ -13,7 +13,7 @@ export declare class DebugInfoReq extends DebugInfoReq_base {
13
13
  declare const DebugInfoRes_base: Schema.Struct<{
14
14
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoRes">;
15
15
  } & {
16
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
16
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
17
17
  } & {
18
18
  clientId: typeof Schema.String;
19
19
  sessionId: typeof Schema.String;
@@ -73,7 +73,7 @@ export declare class DebugInfoRes extends DebugInfoRes_base {
73
73
  declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
74
74
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoHistorySubscribe">;
75
75
  } & {
76
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
76
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
77
77
  } & {
78
78
  clientId: typeof Schema.String;
79
79
  sessionId: typeof Schema.String;
@@ -86,7 +86,7 @@ export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe
86
86
  declare const DebugInfoHistoryRes_base: Schema.Struct<{
87
87
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoHistoryRes">;
88
88
  } & {
89
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
89
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
90
90
  } & {
91
91
  clientId: typeof Schema.String;
92
92
  sessionId: typeof Schema.String;
@@ -147,7 +147,7 @@ export declare class DebugInfoHistoryRes extends DebugInfoHistoryRes_base {
147
147
  declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
148
148
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoHistoryUnsubscribe">;
149
149
  } & {
150
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
150
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
151
151
  } & {
152
152
  clientId: typeof Schema.String;
153
153
  sessionId: typeof Schema.String;
@@ -160,7 +160,7 @@ export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubsc
160
160
  declare const DebugInfoResetReq_base: Schema.Struct<{
161
161
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoResetReq">;
162
162
  } & {
163
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
163
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
164
164
  } & {
165
165
  clientId: typeof Schema.String;
166
166
  sessionId: typeof Schema.String;
@@ -171,7 +171,7 @@ export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
171
171
  declare const DebugInfoResetRes_base: Schema.Struct<{
172
172
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoResetRes">;
173
173
  } & {
174
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
174
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
175
175
  } & {
176
176
  clientId: typeof Schema.String;
177
177
  sessionId: typeof Schema.String;
@@ -182,7 +182,7 @@ export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
182
182
  declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
183
183
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoRerunQueryReq">;
184
184
  } & {
185
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
185
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
186
186
  } & {
187
187
  clientId: typeof Schema.String;
188
188
  sessionId: typeof Schema.String;
@@ -197,7 +197,7 @@ export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base
197
197
  declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
198
198
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoRerunQueryRes">;
199
199
  } & {
200
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
200
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
201
201
  } & {
202
202
  clientId: typeof Schema.String;
203
203
  sessionId: typeof Schema.String;
@@ -208,7 +208,7 @@ export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base
208
208
  declare const SyncHeadSubscribe_base: Schema.Struct<{
209
209
  _tag: Schema.tag<"LSD.ClientSession.SyncHeadSubscribe">;
210
210
  } & {
211
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
211
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
212
212
  } & {
213
213
  clientId: typeof Schema.String;
214
214
  sessionId: typeof Schema.String;
@@ -221,7 +221,7 @@ export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
221
221
  declare const SyncHeadUnsubscribe_base: Schema.Struct<{
222
222
  _tag: Schema.tag<"LSD.ClientSession.SyncHeadUnsubscribe">;
223
223
  } & {
224
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
224
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
225
225
  } & {
226
226
  clientId: typeof Schema.String;
227
227
  sessionId: typeof Schema.String;
@@ -234,7 +234,7 @@ export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
234
234
  declare const SyncHeadRes_base: Schema.Struct<{
235
235
  _tag: Schema.tag<"LSD.ClientSession.SyncHeadRes">;
236
236
  } & {
237
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
237
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
238
238
  } & {
239
239
  clientId: typeof Schema.String;
240
240
  sessionId: typeof Schema.String;
@@ -255,7 +255,7 @@ export declare class SyncHeadRes extends SyncHeadRes_base {
255
255
  declare const ReactivityGraphSubscribe_base: Schema.Struct<{
256
256
  _tag: Schema.tag<"LSD.ClientSession.ReactivityGraphSubscribe">;
257
257
  } & {
258
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
258
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
259
259
  } & {
260
260
  clientId: typeof Schema.String;
261
261
  sessionId: typeof Schema.String;
@@ -269,7 +269,7 @@ export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_b
269
269
  declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
270
270
  _tag: Schema.tag<"LSD.ClientSession.ReactivityGraphUnsubscribe">;
271
271
  } & {
272
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
272
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
273
273
  } & {
274
274
  clientId: typeof Schema.String;
275
275
  sessionId: typeof Schema.String;
@@ -282,7 +282,7 @@ export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscri
282
282
  declare const ReactivityGraphRes_base: Schema.Struct<{
283
283
  _tag: Schema.tag<"LSD.ClientSession.ReactivityGraphRes">;
284
284
  } & {
285
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
285
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
286
286
  } & {
287
287
  clientId: typeof Schema.String;
288
288
  sessionId: typeof Schema.String;
@@ -296,7 +296,7 @@ export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
296
296
  declare const LiveQueriesSubscribe_base: Schema.Struct<{
297
297
  _tag: Schema.tag<"LSD.ClientSession.LiveQueriesSubscribe">;
298
298
  } & {
299
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
299
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
300
300
  } & {
301
301
  clientId: typeof Schema.String;
302
302
  sessionId: typeof Schema.String;
@@ -309,7 +309,7 @@ export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
309
309
  declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
310
310
  _tag: Schema.tag<"LSD.ClientSession.LiveQueriesUnsubscribe">;
311
311
  } & {
312
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
312
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
313
313
  } & {
314
314
  clientId: typeof Schema.String;
315
315
  sessionId: typeof Schema.String;
@@ -338,7 +338,7 @@ export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
338
338
  declare const LiveQueriesRes_base: Schema.Struct<{
339
339
  _tag: Schema.tag<"LSD.ClientSession.LiveQueriesRes">;
340
340
  } & {
341
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
341
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
342
342
  } & {
343
343
  clientId: typeof Schema.String;
344
344
  sessionId: typeof Schema.String;
@@ -352,7 +352,7 @@ export declare class LiveQueriesRes extends LiveQueriesRes_base {
352
352
  declare const Ping_base: Schema.Struct<{
353
353
  _tag: Schema.tag<"LSD.ClientSession.Ping">;
354
354
  } & {
355
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
355
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
356
356
  } & {
357
357
  clientId: typeof Schema.String;
358
358
  sessionId: typeof Schema.String;
@@ -363,7 +363,7 @@ export declare class Ping extends Ping_base {
363
363
  declare const Pong_base: Schema.Struct<{
364
364
  _tag: Schema.tag<"LSD.ClientSession.Pong">;
365
365
  } & {
366
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
366
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
367
367
  } & {
368
368
  clientId: typeof Schema.String;
369
369
  sessionId: typeof Schema.String;
@@ -374,7 +374,7 @@ export declare class Pong extends Pong_base {
374
374
  declare const Disconnect_base: Schema.Struct<{
375
375
  _tag: Schema.tag<"LSD.ClientSession.Disconnect">;
376
376
  } & {
377
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
377
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
378
378
  } & {
379
379
  clientId: typeof Schema.String;
380
380
  sessionId: typeof Schema.String;
@@ -2,23 +2,23 @@ import { Schema } from '@livestore/utils/effect';
2
2
  export declare const requestId: typeof Schema.String;
3
3
  export declare const clientId: typeof Schema.String;
4
4
  export declare const sessionId: typeof Schema.String;
5
- export declare const liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
5
+ export declare const liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
6
6
  export declare const LSDMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
7
7
  _tag: Schema.tag<Tag>;
8
8
  } & {
9
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
9
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
10
10
  } & Fields>;
11
11
  export declare const LSDChannelMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
12
12
  _tag: Schema.tag<Tag>;
13
13
  } & {
14
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
14
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
15
15
  } & {
16
16
  clientId: typeof Schema.String;
17
17
  } & Fields>;
18
18
  export declare const LSDClientSessionChannelMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
19
19
  _tag: Schema.tag<Tag>;
20
20
  } & {
21
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
21
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
22
22
  } & {
23
23
  clientId: typeof Schema.String;
24
24
  sessionId: typeof Schema.String;
@@ -26,7 +26,7 @@ export declare const LSDClientSessionChannelMessage: <Tag extends string, Fields
26
26
  export declare const LSDClientSessionReqResMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
27
27
  _tag: Schema.tag<Tag>;
28
28
  } & {
29
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
29
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
30
30
  } & {
31
31
  clientId: typeof Schema.String;
32
32
  sessionId: typeof Schema.String;
@@ -35,7 +35,7 @@ export declare const LSDClientSessionReqResMessage: <Tag extends string, Fields
35
35
  export declare const LSDReqResMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
36
36
  _tag: Schema.tag<Tag>;
37
37
  } & {
38
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
38
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
39
39
  } & {
40
40
  clientId: typeof Schema.String;
41
41
  } & {
@@ -3,7 +3,7 @@ import * as SyncState from '../sync/syncstate.js';
3
3
  declare const ResetAllDataReq_base: Schema.Struct<{
4
4
  _tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
5
5
  } & {
6
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
6
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
7
7
  } & {
8
8
  clientId: typeof Schema.String;
9
9
  } & {
@@ -16,7 +16,7 @@ export declare class ResetAllDataReq extends ResetAllDataReq_base {
16
16
  declare const DatabaseFileInfoReq_base: Schema.Struct<{
17
17
  _tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
18
18
  } & {
19
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
19
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
20
20
  } & {
21
21
  clientId: typeof Schema.String;
22
22
  } & {
@@ -38,7 +38,7 @@ export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
38
38
  declare const DatabaseFileInfoRes_base: Schema.Struct<{
39
39
  _tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
40
40
  } & {
41
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
41
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
42
42
  } & {
43
43
  clientId: typeof Schema.String;
44
44
  } & {
@@ -52,7 +52,7 @@ export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
52
52
  declare const NetworkStatusSubscribe_base: Schema.Struct<{
53
53
  _tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
54
54
  } & {
55
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
55
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
56
56
  } & {
57
57
  clientId: typeof Schema.String;
58
58
  } & {
@@ -65,7 +65,7 @@ export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base
65
65
  declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
66
66
  _tag: Schema.tag<"LSD.Leader.NetworkStatusUnsubscribe">;
67
67
  } & {
68
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
68
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
69
69
  } & {
70
70
  clientId: typeof Schema.String;
71
71
  } & {
@@ -78,7 +78,7 @@ export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_b
78
78
  declare const NetworkStatusRes_base: Schema.Struct<{
79
79
  _tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
80
80
  } & {
81
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
81
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
82
82
  } & {
83
83
  clientId: typeof Schema.String;
84
84
  } & {
@@ -96,7 +96,7 @@ export declare class NetworkStatusRes extends NetworkStatusRes_base {
96
96
  declare const SyncingInfoReq_base: Schema.Struct<{
97
97
  _tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
98
98
  } & {
99
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
99
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
100
100
  } & {
101
101
  clientId: typeof Schema.String;
102
102
  } & {
@@ -113,7 +113,7 @@ export declare class SyncingInfo extends SyncingInfo_base {
113
113
  declare const SyncingInfoRes_base: Schema.Struct<{
114
114
  _tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
115
115
  } & {
116
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
116
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
117
117
  } & {
118
118
  clientId: typeof Schema.String;
119
119
  } & {
@@ -126,7 +126,7 @@ export declare class SyncingInfoRes extends SyncingInfoRes_base {
126
126
  declare const SyncHistorySubscribe_base: Schema.Struct<{
127
127
  _tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
128
128
  } & {
129
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
129
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
130
130
  } & {
131
131
  clientId: typeof Schema.String;
132
132
  } & {
@@ -139,7 +139,7 @@ export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
139
139
  declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
140
140
  _tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
141
141
  } & {
142
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
142
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
143
143
  } & {
144
144
  clientId: typeof Schema.String;
145
145
  } & {
@@ -152,7 +152,7 @@ export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base
152
152
  declare const SyncHistoryRes_base: Schema.Struct<{
153
153
  _tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
154
154
  } & {
155
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
155
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
156
156
  } & {
157
157
  clientId: typeof Schema.String;
158
158
  } & {
@@ -174,7 +174,7 @@ export declare class SyncHistoryRes extends SyncHistoryRes_base {
174
174
  declare const SyncHeadSubscribe_base: Schema.Struct<{
175
175
  _tag: Schema.tag<"LSD.Leader.SyncHeadSubscribe">;
176
176
  } & {
177
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
177
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
178
178
  } & {
179
179
  clientId: typeof Schema.String;
180
180
  } & {
@@ -187,7 +187,7 @@ export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
187
187
  declare const SyncHeadUnsubscribe_base: Schema.Struct<{
188
188
  _tag: Schema.tag<"LSD.Leader.SyncHeadUnsubscribe">;
189
189
  } & {
190
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
190
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
191
191
  } & {
192
192
  clientId: typeof Schema.String;
193
193
  } & {
@@ -200,7 +200,7 @@ export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
200
200
  declare const SyncHeadRes_base: Schema.Struct<{
201
201
  _tag: Schema.tag<"LSD.Leader.SyncHeadRes">;
202
202
  } & {
203
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
203
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
204
204
  } & {
205
205
  clientId: typeof Schema.String;
206
206
  } & {
@@ -221,7 +221,7 @@ export declare class SyncHeadRes extends SyncHeadRes_base {
221
221
  declare const SnapshotReq_base: Schema.Struct<{
222
222
  _tag: Schema.tag<"LSD.Leader.SnapshotReq">;
223
223
  } & {
224
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
224
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
225
225
  } & {
226
226
  clientId: typeof Schema.String;
227
227
  } & {
@@ -232,7 +232,7 @@ export declare class SnapshotReq extends SnapshotReq_base {
232
232
  declare const SnapshotRes_base: Schema.Struct<{
233
233
  _tag: Schema.tag<"LSD.Leader.SnapshotRes">;
234
234
  } & {
235
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
235
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
236
236
  } & {
237
237
  clientId: typeof Schema.String;
238
238
  } & {
@@ -252,7 +252,7 @@ export declare const LoadDatabaseFile: import("./devtools-messages-common.js").L
252
252
  declare const SyncPull_base: Schema.Struct<{
253
253
  _tag: Schema.tag<"LSD.Leader.SyncPull">;
254
254
  } & {
255
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
255
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
256
256
  } & {
257
257
  payload: Schema.Union<[typeof SyncState.PayloadUpstreamRebase, typeof SyncState.PayloadUpstreamAdvance]>;
258
258
  }>;
@@ -261,7 +261,7 @@ export declare class SyncPull extends SyncPull_base {
261
261
  declare const RunMutationReq_base: Schema.Struct<{
262
262
  _tag: Schema.tag<"LSD.Leader.RunMutationReq">;
263
263
  } & {
264
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
264
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
265
265
  } & {
266
266
  clientId: typeof Schema.String;
267
267
  } & {
@@ -277,7 +277,7 @@ export declare class RunMutationReq extends RunMutationReq_base {
277
277
  declare const RunMutationRes_base: Schema.Struct<{
278
278
  _tag: Schema.tag<"LSD.Leader.RunMutationRes">;
279
279
  } & {
280
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
280
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
281
281
  } & {
282
282
  clientId: typeof Schema.String;
283
283
  } & {
@@ -288,7 +288,7 @@ export declare class RunMutationRes extends RunMutationRes_base {
288
288
  declare const MutationLogReq_base: Schema.Struct<{
289
289
  _tag: Schema.tag<"LSD.Leader.MutationLogReq">;
290
290
  } & {
291
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
291
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
292
292
  } & {
293
293
  clientId: typeof Schema.String;
294
294
  } & {
@@ -299,7 +299,7 @@ export declare class MutationLogReq extends MutationLogReq_base {
299
299
  declare const MutationLogRes_base: Schema.Struct<{
300
300
  _tag: Schema.tag<"LSD.Leader.MutationLogRes">;
301
301
  } & {
302
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
302
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
303
303
  } & {
304
304
  clientId: typeof Schema.String;
305
305
  } & {
@@ -312,7 +312,7 @@ export declare class MutationLogRes extends MutationLogRes_base {
312
312
  declare const Ping_base: Schema.Struct<{
313
313
  _tag: Schema.tag<"LSD.Leader.Ping">;
314
314
  } & {
315
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
315
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
316
316
  } & {
317
317
  clientId: typeof Schema.String;
318
318
  } & {
@@ -323,7 +323,7 @@ export declare class Ping extends Ping_base {
323
323
  declare const Pong_base: Schema.Struct<{
324
324
  _tag: Schema.tag<"LSD.Leader.Pong">;
325
325
  } & {
326
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
326
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
327
327
  } & {
328
328
  clientId: typeof Schema.String;
329
329
  } & {
@@ -334,7 +334,7 @@ export declare class Pong extends Pong_base {
334
334
  declare const Disconnect_base: Schema.Struct<{
335
335
  _tag: Schema.tag<"LSD.Leader.Disconnect">;
336
336
  } & {
337
- liveStoreVersion: Schema.Literal<["0.3.0-dev.25"]>;
337
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.26"]>;
338
338
  } & {
339
339
  clientId: typeof Schema.String;
340
340
  } & {
@@ -230,19 +230,19 @@ const backgroundApplyLocalPushes = ({ localPushesLatch, localPushesQueue, pullLa
230
230
  const syncState = yield* syncStateSref;
231
231
  if (syncState === undefined)
232
232
  return shouldNeverHappen('Not initialized');
233
- const updateResult = SyncState.updateSyncState({
233
+ const mergeResult = SyncState.merge({
234
234
  syncState,
235
235
  payload: { _tag: 'local-push', newEvents },
236
236
  isClientEvent,
237
237
  isEqualEvent: MutationEvent.isEqualEncoded,
238
238
  });
239
- switch (updateResult._tag) {
239
+ switch (mergeResult._tag) {
240
240
  case 'unexpected-error': {
241
241
  otelSpan?.addEvent('local-push:unexpected-error', {
242
242
  batchSize: newEvents.length,
243
243
  newEvents: TRACE_VERBOSE ? JSON.stringify(newEvents) : undefined,
244
244
  });
245
- return yield* Effect.fail(updateResult.cause);
245
+ return yield* Effect.fail(mergeResult.cause);
246
246
  }
247
247
  case 'rebase': {
248
248
  return shouldNeverHappen('The leader thread should never have to rebase due to a local push');
@@ -250,7 +250,7 @@ const backgroundApplyLocalPushes = ({ localPushesLatch, localPushesQueue, pullLa
250
250
  case 'reject': {
251
251
  otelSpan?.addEvent('local-push:reject', {
252
252
  batchSize: newEvents.length,
253
- updateResult: TRACE_VERBOSE ? JSON.stringify(updateResult) : undefined,
253
+ mergeResult: TRACE_VERBOSE ? JSON.stringify(mergeResult) : undefined,
254
254
  });
255
255
  /*
256
256
 
@@ -272,7 +272,7 @@ const backgroundApplyLocalPushes = ({ localPushesLatch, localPushesQueue, pullLa
272
272
  ...remainingEventsMatchingGeneration.map(([_, deferred]) => deferred),
273
273
  ].filter(isNotUndefined);
274
274
  yield* Effect.forEach(allDeferredsToReject, (deferred) => Deferred.fail(deferred, LeaderAheadError.make({
275
- minimumExpectedId: updateResult.expectedMinimumId,
275
+ minimumExpectedId: mergeResult.expectedMinimumId,
276
276
  providedId,
277
277
  // nextGeneration,
278
278
  })));
@@ -286,24 +286,24 @@ const backgroundApplyLocalPushes = ({ localPushesLatch, localPushesQueue, pullLa
286
286
  break;
287
287
  }
288
288
  default: {
289
- casesHandled(updateResult);
289
+ casesHandled(mergeResult);
290
290
  }
291
291
  }
292
- yield* SubscriptionRef.set(syncStateSref, updateResult.newSyncState);
292
+ yield* SubscriptionRef.set(syncStateSref, mergeResult.newSyncState);
293
293
  if (clientId === 'client-b') {
294
294
  // yield* Effect.log('offer upstream-advance due to local-push')
295
295
  // debugger
296
296
  }
297
297
  yield* connectedClientSessionPullQueues.offer({
298
- payload: { _tag: 'upstream-advance', newEvents: updateResult.newEvents },
298
+ payload: { _tag: 'upstream-advance', newEvents: mergeResult.newEvents },
299
299
  remaining: 0,
300
300
  });
301
301
  otelSpan?.addEvent('local-push', {
302
302
  batchSize: newEvents.length,
303
- updateResult: TRACE_VERBOSE ? JSON.stringify(updateResult) : undefined,
303
+ mergeResult: TRACE_VERBOSE ? JSON.stringify(mergeResult) : undefined,
304
304
  });
305
305
  // Don't sync clientOnly mutations
306
- const filteredBatch = updateResult.newEvents.filter((mutationEventEncoded) => {
306
+ const filteredBatch = mergeResult.newEvents.filter((mutationEventEncoded) => {
307
307
  const mutationDef = getMutationDef(schema, mutationEventEncoded.mutation);
308
308
  return mutationDef.options.clientOnly === false;
309
309
  });
@@ -360,45 +360,45 @@ const backgroundBackendPulling = ({ dbReady, initialBackendHead, isClientEvent,
360
360
  if (syncState === undefined)
361
361
  return shouldNeverHappen('Not initialized');
362
362
  const trimRollbackUntil = newEvents.at(-1).id;
363
- const updateResult = SyncState.updateSyncState({
363
+ const mergeResult = SyncState.merge({
364
364
  syncState,
365
365
  payload: { _tag: 'upstream-advance', newEvents, trimRollbackUntil },
366
366
  isClientEvent,
367
367
  isEqualEvent: MutationEvent.isEqualEncoded,
368
368
  ignoreClientEvents: true,
369
369
  });
370
- if (updateResult._tag === 'reject') {
370
+ if (mergeResult._tag === 'reject') {
371
371
  return shouldNeverHappen('The leader thread should never reject upstream advances');
372
372
  }
373
- else if (updateResult._tag === 'unexpected-error') {
373
+ else if (mergeResult._tag === 'unexpected-error') {
374
374
  otelSpan?.addEvent('backend-pull:unexpected-error', {
375
375
  newEventsCount: newEvents.length,
376
376
  newEvents: TRACE_VERBOSE ? JSON.stringify(newEvents) : undefined,
377
377
  });
378
- return yield* Effect.fail(updateResult.cause);
378
+ return yield* Effect.fail(mergeResult.cause);
379
379
  }
380
380
  const newBackendHead = newEvents.at(-1).id;
381
381
  updateBackendHead(dbMutationLog, newBackendHead);
382
- if (updateResult._tag === 'rebase') {
382
+ if (mergeResult._tag === 'rebase') {
383
383
  otelSpan?.addEvent('backend-pull:rebase', {
384
384
  newEventsCount: newEvents.length,
385
385
  newEvents: TRACE_VERBOSE ? JSON.stringify(newEvents) : undefined,
386
- rollbackCount: updateResult.eventsToRollback.length,
387
- updateResult: TRACE_VERBOSE ? JSON.stringify(updateResult) : undefined,
386
+ rollbackCount: mergeResult.eventsToRollback.length,
387
+ mergeResult: TRACE_VERBOSE ? JSON.stringify(mergeResult) : undefined,
388
388
  });
389
- const filteredRebasedPending = updateResult.newSyncState.pending.filter((mutationEvent) => {
389
+ const filteredRebasedPending = mergeResult.newSyncState.pending.filter((mutationEvent) => {
390
390
  const mutationDef = getMutationDef(schema, mutationEvent.mutation);
391
391
  return mutationDef.options.clientOnly === false;
392
392
  });
393
393
  yield* restartBackendPushing(filteredRebasedPending);
394
- if (updateResult.eventsToRollback.length > 0) {
395
- yield* rollback({ db, dbMutationLog, eventIdsToRollback: updateResult.eventsToRollback.map((_) => _.id) });
394
+ if (mergeResult.eventsToRollback.length > 0) {
395
+ yield* rollback({ db, dbMutationLog, eventIdsToRollback: mergeResult.eventsToRollback.map((_) => _.id) });
396
396
  }
397
397
  yield* connectedClientSessionPullQueues.offer({
398
398
  payload: {
399
399
  _tag: 'upstream-rebase',
400
- newEvents: updateResult.newEvents,
401
- rollbackUntil: updateResult.eventsToRollback.at(0).id,
400
+ newEvents: mergeResult.newEvents,
401
+ rollbackUntil: mergeResult.eventsToRollback.at(0).id,
402
402
  trimRollbackUntil,
403
403
  },
404
404
  remaining,
@@ -407,19 +407,19 @@ const backgroundBackendPulling = ({ dbReady, initialBackendHead, isClientEvent,
407
407
  else {
408
408
  otelSpan?.addEvent('backend-pull:advance', {
409
409
  newEventsCount: newEvents.length,
410
- updateResult: TRACE_VERBOSE ? JSON.stringify(updateResult) : undefined,
410
+ mergeResult: TRACE_VERBOSE ? JSON.stringify(mergeResult) : undefined,
411
411
  });
412
412
  if (clientId === 'client-b') {
413
413
  // yield* Effect.log('offer upstream-advance due to pull')
414
414
  }
415
415
  yield* connectedClientSessionPullQueues.offer({
416
- payload: { _tag: 'upstream-advance', newEvents: updateResult.newEvents, trimRollbackUntil },
416
+ payload: { _tag: 'upstream-advance', newEvents: mergeResult.newEvents, trimRollbackUntil },
417
417
  remaining,
418
418
  });
419
419
  }
420
420
  trimChangesetRows(db, newBackendHead);
421
- yield* applyMutationItems({ batchItems: updateResult.newEvents, deferreds: undefined });
422
- yield* SubscriptionRef.set(syncStateSref, updateResult.newSyncState);
421
+ yield* applyMutationItems({ batchItems: mergeResult.newEvents, deferreds: undefined });
422
+ yield* SubscriptionRef.set(syncStateSref, mergeResult.newSyncState);
423
423
  if (remaining === 0) {
424
424
  // Allow local pushes to be processed again
425
425
  yield* localPushesLatch.open;