@livestore/common 0.3.0-dev.19 → 0.3.0-dev.21

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 (82) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/adapter-types.d.ts +4 -3
  3. package/dist/adapter-types.d.ts.map +1 -1
  4. package/dist/adapter-types.js +1 -0
  5. package/dist/adapter-types.js.map +1 -1
  6. package/dist/debug-info.d.ts +1 -1
  7. package/dist/devtools/devtools-messages-client-session.d.ts +41 -22
  8. package/dist/devtools/devtools-messages-client-session.d.ts.map +1 -1
  9. package/dist/devtools/devtools-messages-client-session.js +26 -7
  10. package/dist/devtools/devtools-messages-client-session.js.map +1 -1
  11. package/dist/devtools/devtools-messages-common.d.ts +16 -12
  12. package/dist/devtools/devtools-messages-common.d.ts.map +1 -1
  13. package/dist/devtools/devtools-messages-common.js +15 -5
  14. package/dist/devtools/devtools-messages-common.js.map +1 -1
  15. package/dist/devtools/devtools-messages-leader.d.ts +74 -106
  16. package/dist/devtools/devtools-messages-leader.d.ts.map +1 -1
  17. package/dist/devtools/devtools-messages-leader.js +52 -37
  18. package/dist/devtools/devtools-messages-leader.js.map +1 -1
  19. package/dist/devtools/devtools-sessioninfo.d.ts +28 -0
  20. package/dist/devtools/devtools-sessioninfo.d.ts.map +1 -0
  21. package/dist/devtools/devtools-sessioninfo.js +34 -0
  22. package/dist/devtools/devtools-sessioninfo.js.map +1 -0
  23. package/dist/devtools/devtools-sessions-channel.d.ts +28 -0
  24. package/dist/devtools/devtools-sessions-channel.d.ts.map +1 -0
  25. package/dist/devtools/devtools-sessions-channel.js +34 -0
  26. package/dist/devtools/devtools-sessions-channel.js.map +1 -0
  27. package/dist/devtools/index.d.ts +27 -49
  28. package/dist/devtools/index.d.ts.map +1 -1
  29. package/dist/devtools/index.js +10 -55
  30. package/dist/devtools/index.js.map +1 -1
  31. package/dist/devtools/mod.d.ts +39 -0
  32. package/dist/devtools/mod.d.ts.map +1 -0
  33. package/dist/devtools/mod.js +27 -0
  34. package/dist/devtools/mod.js.map +1 -0
  35. package/dist/index.d.ts +1 -1
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/leader-thread/leader-worker-devtools.d.ts.map +1 -1
  40. package/dist/leader-thread/leader-worker-devtools.js +73 -31
  41. package/dist/leader-thread/leader-worker-devtools.js.map +1 -1
  42. package/dist/otel.d.ts +2 -0
  43. package/dist/otel.d.ts.map +1 -1
  44. package/dist/otel.js +5 -0
  45. package/dist/otel.js.map +1 -1
  46. package/dist/query-builder/impl.d.ts +3 -3
  47. package/dist/query-builder/impl.d.ts.map +1 -1
  48. package/dist/rehydrate-from-mutationlog.js.map +1 -1
  49. package/dist/schema/db-schema/dsl/field-defs.d.ts.map +1 -1
  50. package/dist/schema/db-schema/dsl/field-defs.js.map +1 -1
  51. package/dist/schema/db-schema/dsl/mod.js.map +1 -1
  52. package/dist/schema/system-tables.d.ts +2 -2
  53. package/dist/sync/ClientSessionSyncProcessor.d.ts +6 -1
  54. package/dist/sync/ClientSessionSyncProcessor.d.ts.map +1 -1
  55. package/dist/sync/ClientSessionSyncProcessor.js +2 -2
  56. package/dist/sync/ClientSessionSyncProcessor.js.map +1 -1
  57. package/dist/util.d.ts +2 -2
  58. package/dist/util.d.ts.map +1 -1
  59. package/dist/version.d.ts +1 -1
  60. package/dist/version.js +1 -1
  61. package/package.json +3 -3
  62. package/src/adapter-types.ts +2 -1
  63. package/src/devtools/devtools-messages-client-session.ts +26 -10
  64. package/src/devtools/devtools-messages-common.ts +38 -13
  65. package/src/devtools/devtools-messages-leader.ts +61 -46
  66. package/src/devtools/devtools-sessioninfo.ts +99 -0
  67. package/src/devtools/mod.ts +36 -0
  68. package/src/index.ts +1 -1
  69. package/src/leader-thread/leader-worker-devtools.ts +83 -36
  70. package/src/leader-thread/make-leader-thread-layer.ts +1 -1
  71. package/src/otel.ts +8 -0
  72. package/src/rehydrate-from-mutationlog.ts +1 -1
  73. package/src/schema/db-schema/dsl/field-defs.ts +2 -1
  74. package/src/schema/db-schema/dsl/mod.ts +1 -1
  75. package/src/sync/ClientSessionSyncProcessor.ts +7 -1
  76. package/src/version.ts +1 -1
  77. package/dist/devtools/devtools-bridge.d.ts +0 -16
  78. package/dist/devtools/devtools-bridge.d.ts.map +0 -1
  79. package/dist/devtools/devtools-bridge.js +0 -2
  80. package/dist/devtools/devtools-bridge.js.map +0 -1
  81. package/src/devtools/devtools-bridge.ts +0 -17
  82. package/src/devtools/index.ts +0 -76
@@ -1,11 +1,9 @@
1
1
  import { Schema } from '@livestore/utils/effect';
2
- import { UnexpectedError } from '../adapter-types.js';
3
2
  import * as SyncState from '../sync/syncstate.js';
4
- import { liveStoreVersion } from './devtools-messages-common.js';
5
3
  declare const ResetAllDataReq_base: Schema.Struct<{
6
4
  _tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
7
5
  } & {
8
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
6
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
9
7
  } & {
10
8
  clientId: typeof Schema.String;
11
9
  } & {
@@ -18,7 +16,7 @@ export declare class ResetAllDataReq extends ResetAllDataReq_base {
18
16
  declare const DatabaseFileInfoReq_base: Schema.Struct<{
19
17
  _tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
20
18
  } & {
21
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
19
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
22
20
  } & {
23
21
  clientId: typeof Schema.String;
24
22
  } & {
@@ -40,7 +38,7 @@ export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
40
38
  declare const DatabaseFileInfoRes_base: Schema.Struct<{
41
39
  _tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
42
40
  } & {
43
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
41
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
44
42
  } & {
45
43
  clientId: typeof Schema.String;
46
44
  } & {
@@ -54,29 +52,33 @@ export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
54
52
  declare const NetworkStatusSubscribe_base: Schema.Struct<{
55
53
  _tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
56
54
  } & {
57
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
55
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
58
56
  } & {
59
57
  clientId: typeof Schema.String;
60
58
  } & {
61
59
  requestId: typeof Schema.String;
60
+ } & {
61
+ subscriptionId: typeof Schema.String;
62
62
  }>;
63
63
  export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base {
64
64
  }
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.19"]>;
68
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
69
69
  } & {
70
70
  clientId: typeof Schema.String;
71
71
  } & {
72
72
  requestId: typeof Schema.String;
73
+ } & {
74
+ subscriptionId: typeof Schema.String;
73
75
  }>;
74
76
  export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_base {
75
77
  }
76
78
  declare const NetworkStatusRes_base: Schema.Struct<{
77
79
  _tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
78
80
  } & {
79
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
81
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
80
82
  } & {
81
83
  clientId: typeof Schema.String;
82
84
  } & {
@@ -87,13 +89,14 @@ declare const NetworkStatusRes_base: Schema.Struct<{
87
89
  timestampMs: typeof Schema.Number;
88
90
  latchClosed: typeof Schema.Boolean;
89
91
  }>;
92
+ subscriptionId: typeof Schema.String;
90
93
  }>;
91
94
  export declare class NetworkStatusRes extends NetworkStatusRes_base {
92
95
  }
93
96
  declare const SyncingInfoReq_base: Schema.Struct<{
94
97
  _tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
95
98
  } & {
96
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
99
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
97
100
  } & {
98
101
  clientId: typeof Schema.String;
99
102
  } & {
@@ -110,7 +113,7 @@ export declare class SyncingInfo extends SyncingInfo_base {
110
113
  declare const SyncingInfoRes_base: Schema.Struct<{
111
114
  _tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
112
115
  } & {
113
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
116
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
114
117
  } & {
115
118
  clientId: typeof Schema.String;
116
119
  } & {
@@ -123,29 +126,33 @@ export declare class SyncingInfoRes extends SyncingInfoRes_base {
123
126
  declare const SyncHistorySubscribe_base: Schema.Struct<{
124
127
  _tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
125
128
  } & {
126
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
129
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
127
130
  } & {
128
131
  clientId: typeof Schema.String;
129
132
  } & {
130
133
  requestId: typeof Schema.String;
134
+ } & {
135
+ subscriptionId: typeof Schema.String;
131
136
  }>;
132
137
  export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
133
138
  }
134
139
  declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
135
140
  _tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
136
141
  } & {
137
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
142
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
138
143
  } & {
139
144
  clientId: typeof Schema.String;
140
145
  } & {
141
146
  requestId: typeof Schema.String;
147
+ } & {
148
+ subscriptionId: typeof Schema.String;
142
149
  }>;
143
150
  export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base {
144
151
  }
145
152
  declare const SyncHistoryRes_base: Schema.Struct<{
146
153
  _tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
147
154
  } & {
148
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
155
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
149
156
  } & {
150
157
  clientId: typeof Schema.String;
151
158
  } & {
@@ -159,35 +166,40 @@ declare const SyncHistoryRes_base: Schema.Struct<{
159
166
  clientId: typeof Schema.String;
160
167
  }>;
161
168
  metadata: Schema.Option<Schema.Schema<Schema.JsonValue, Schema.JsonValue, never>>;
169
+ subscriptionId: typeof Schema.String;
162
170
  }>;
163
171
  export declare class SyncHistoryRes extends SyncHistoryRes_base {
164
172
  }
165
173
  declare const SyncHeadSubscribe_base: Schema.Struct<{
166
174
  _tag: Schema.tag<"LSD.Leader.SyncHeadSubscribe">;
167
175
  } & {
168
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
176
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
169
177
  } & {
170
178
  clientId: typeof Schema.String;
171
179
  } & {
172
180
  requestId: typeof Schema.String;
181
+ } & {
182
+ subscriptionId: typeof Schema.String;
173
183
  }>;
174
184
  export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
175
185
  }
176
186
  declare const SyncHeadUnsubscribe_base: Schema.Struct<{
177
187
  _tag: Schema.tag<"LSD.Leader.SyncHeadUnsubscribe">;
178
188
  } & {
179
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
189
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
180
190
  } & {
181
191
  clientId: typeof Schema.String;
182
192
  } & {
183
193
  requestId: typeof Schema.String;
194
+ } & {
195
+ subscriptionId: typeof Schema.String;
184
196
  }>;
185
197
  export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
186
198
  }
187
199
  declare const SyncHeadRes_base: Schema.Struct<{
188
200
  _tag: Schema.tag<"LSD.Leader.SyncHeadRes">;
189
201
  } & {
190
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
202
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
191
203
  } & {
192
204
  clientId: typeof Schema.String;
193
205
  } & {
@@ -201,13 +213,14 @@ declare const SyncHeadRes_base: Schema.Struct<{
201
213
  global: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
202
214
  client: Schema.BrandSchema<number & import("effect/Brand").Brand<"ClientEventId">, number, never>;
203
215
  }>;
216
+ subscriptionId: typeof Schema.String;
204
217
  }>;
205
218
  export declare class SyncHeadRes extends SyncHeadRes_base {
206
219
  }
207
220
  declare const SnapshotReq_base: Schema.Struct<{
208
221
  _tag: Schema.tag<"LSD.Leader.SnapshotReq">;
209
222
  } & {
210
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
223
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
211
224
  } & {
212
225
  clientId: typeof Schema.String;
213
226
  } & {
@@ -218,7 +231,7 @@ export declare class SnapshotReq extends SnapshotReq_base {
218
231
  declare const SnapshotRes_base: Schema.Struct<{
219
232
  _tag: Schema.tag<"LSD.Leader.SnapshotRes">;
220
233
  } & {
221
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
234
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
222
235
  } & {
223
236
  clientId: typeof Schema.String;
224
237
  } & {
@@ -228,36 +241,17 @@ declare const SnapshotRes_base: Schema.Struct<{
228
241
  }>;
229
242
  export declare class SnapshotRes extends SnapshotRes_base {
230
243
  }
231
- declare const LoadDatabaseFileReq_base: Schema.Struct<{
232
- _tag: Schema.tag<"LSD.Leader.LoadDatabaseFileReq">;
233
- } & {
234
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
235
- } & {
236
- clientId: typeof Schema.String;
237
- } & {
238
- requestId: typeof Schema.String;
239
- } & {
244
+ export declare const LoadDatabaseFile: import("./devtools-messages-common.js").LeaderReqResSchema<"LSD.Leader.LoadDatabaseFile", {
240
245
  data: Schema.Schema<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, never>;
246
+ }, {}, {
247
+ cause: Schema.Union<[Schema.TaggedStruct<"unsupported-file", {}>, Schema.TaggedStruct<"unsupported-database", {}>, Schema.TaggedStruct<"unexpected-error", {
248
+ cause: typeof Schema.Defect;
249
+ }>]>;
241
250
  }>;
242
- export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
243
- }
244
- declare const LoadDatabaseFileRes_base: Schema.Struct<{
245
- _tag: Schema.tag<"LSD.Leader.LoadDatabaseFileRes">;
246
- } & {
247
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
248
- } & {
249
- clientId: typeof Schema.String;
250
- } & {
251
- requestId: typeof Schema.String;
252
- } & {
253
- status: Schema.Literal<["ok", "unsupported-file", "unsupported-database"]>;
254
- }>;
255
- export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
256
- }
257
251
  declare const SyncPull_base: Schema.Struct<{
258
252
  _tag: Schema.tag<"LSD.Leader.SyncPull">;
259
253
  } & {
260
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
254
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
261
255
  } & {
262
256
  payload: Schema.Union<[typeof SyncState.PayloadUpstreamRebase, typeof SyncState.PayloadUpstreamAdvance]>;
263
257
  }>;
@@ -266,7 +260,7 @@ export declare class SyncPull extends SyncPull_base {
266
260
  declare const RunMutationReq_base: Schema.Struct<{
267
261
  _tag: Schema.tag<"LSD.Leader.RunMutationReq">;
268
262
  } & {
269
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
263
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
270
264
  } & {
271
265
  clientId: typeof Schema.String;
272
266
  } & {
@@ -282,7 +276,7 @@ export declare class RunMutationReq extends RunMutationReq_base {
282
276
  declare const RunMutationRes_base: Schema.Struct<{
283
277
  _tag: Schema.tag<"LSD.Leader.RunMutationRes">;
284
278
  } & {
285
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
279
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
286
280
  } & {
287
281
  clientId: typeof Schema.String;
288
282
  } & {
@@ -293,7 +287,7 @@ export declare class RunMutationRes extends RunMutationRes_base {
293
287
  declare const MutationLogReq_base: Schema.Struct<{
294
288
  _tag: Schema.tag<"LSD.Leader.MutationLogReq">;
295
289
  } & {
296
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
290
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
297
291
  } & {
298
292
  clientId: typeof Schema.String;
299
293
  } & {
@@ -304,7 +298,7 @@ export declare class MutationLogReq extends MutationLogReq_base {
304
298
  declare const MutationLogRes_base: Schema.Struct<{
305
299
  _tag: Schema.tag<"LSD.Leader.MutationLogRes">;
306
300
  } & {
307
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
301
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
308
302
  } & {
309
303
  clientId: typeof Schema.String;
310
304
  } & {
@@ -317,7 +311,7 @@ export declare class MutationLogRes extends MutationLogRes_base {
317
311
  declare const Ping_base: Schema.Struct<{
318
312
  _tag: Schema.tag<"LSD.Leader.Ping">;
319
313
  } & {
320
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
314
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
321
315
  } & {
322
316
  clientId: typeof Schema.String;
323
317
  } & {
@@ -328,7 +322,7 @@ export declare class Ping extends Ping_base {
328
322
  declare const Pong_base: Schema.Struct<{
329
323
  _tag: Schema.tag<"LSD.Leader.Pong">;
330
324
  } & {
331
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
325
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
332
326
  } & {
333
327
  clientId: typeof Schema.String;
334
328
  } & {
@@ -339,7 +333,7 @@ export declare class Pong extends Pong_base {
339
333
  declare const Disconnect_base: Schema.Struct<{
340
334
  _tag: Schema.tag<"LSD.Leader.Disconnect">;
341
335
  } & {
342
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
336
+ liveStoreVersion: Schema.Literal<["0.3.0-dev.21"]>;
343
337
  } & {
344
338
  clientId: typeof Schema.String;
345
339
  } & {
@@ -347,77 +341,51 @@ declare const Disconnect_base: Schema.Struct<{
347
341
  }>;
348
342
  export declare class Disconnect extends Disconnect_base {
349
343
  }
350
- export declare const SetSyncLatch: {
351
- Request: Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Request", {
352
- closeLatch: typeof Schema.Boolean;
353
- } & {
354
- readonly requestId: typeof Schema.String;
355
- readonly liveStoreVersion: typeof liveStoreVersion;
356
- readonly clientId: typeof Schema.String;
357
- }>;
358
- Response: Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Response", {
359
- readonly requestId: typeof Schema.String;
360
- readonly liveStoreVersion: typeof liveStoreVersion;
361
- readonly clientId: typeof Schema.String;
362
- }>;
363
- };
364
- export declare const ResetAllData: {
365
- Request: Schema.TaggedStruct<"LSD.Leader.ResetAllData.Request", {
366
- mode: Schema.Literal<["all-data", "only-app-db"]>;
367
- } & {
368
- readonly requestId: typeof Schema.String;
369
- readonly liveStoreVersion: typeof liveStoreVersion;
370
- readonly clientId: typeof Schema.String;
371
- }>;
372
- Response: Schema.TaggedStruct<"LSD.Leader.ResetAllData.Response", {
373
- readonly requestId: typeof Schema.String;
374
- readonly liveStoreVersion: typeof liveStoreVersion;
375
- readonly clientId: typeof Schema.String;
376
- }>;
377
- };
378
- declare const DatabaseFileInfo__base: Schema.TaggedRequestClass<DatabaseFileInfo_, "LSD.Leader.DatabaseFileInfo", {
379
- readonly _tag: Schema.tag<"LSD.Leader.DatabaseFileInfo">;
380
- } & {
381
- requestId: typeof Schema.String;
382
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
383
- }, typeof DatabaseFileInfo, typeof UnexpectedError>;
384
- export declare class DatabaseFileInfo_ extends DatabaseFileInfo__base {
385
- }
386
- declare const NetworkStatus__base: Schema.TaggedRequestClass<NetworkStatus_, "LSD.Leader.NetworkStatus", {
387
- readonly _tag: Schema.tag<"LSD.Leader.NetworkStatus">;
344
+ export declare const SetSyncLatch: import("./devtools-messages-common.js").LeaderReqResSchema<"LSD.Leader.SetSyncLatch", {
345
+ closeLatch: typeof Schema.Boolean;
346
+ }, {}, never>;
347
+ export declare const ResetAllData: import("./devtools-messages-common.js").LeaderReqResSchema<"LSD.Leader.ResetAllData", {
348
+ mode: Schema.Literal<["all-data", "only-app-db"]>;
349
+ }, {}, never>;
350
+ export declare const MessageToApp: Schema.Union<[typeof SnapshotReq, Schema.TaggedStruct<"LSD.Leader.LoadDatabaseFile.Request", {
351
+ data: Schema.Schema<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, never>;
388
352
  } & {
389
- requestId: typeof Schema.String;
390
- liveStoreVersion: Schema.Literal<["0.3.0-dev.19"]>;
391
- }, Schema.Struct<{
392
- isConnected: typeof Schema.Boolean;
393
- timestampMs: typeof Schema.Number;
394
- latchClosed: typeof Schema.Boolean;
395
- }>, typeof UnexpectedError>;
396
- export declare class NetworkStatus_ extends NetworkStatus__base {
397
- }
398
- export declare const MessageToApp_: Schema.Union<[typeof DatabaseFileInfo_, typeof NetworkStatus_]>;
399
- export type MessageToApp_ = typeof MessageToApp_.Type;
400
- export declare const MessageToApp: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq, Schema.TaggedStruct<"LSD.Leader.ResetAllData.Request", {
353
+ readonly requestId: typeof Schema.String;
354
+ readonly liveStoreVersion: typeof import("./devtools-messages-common.js").liveStoreVersion;
355
+ readonly clientId: typeof Schema.String;
356
+ }>, typeof MutationLogReq, Schema.TaggedStruct<"LSD.Leader.ResetAllData.Request", {
401
357
  mode: Schema.Literal<["all-data", "only-app-db"]>;
402
358
  } & {
403
359
  readonly requestId: typeof Schema.String;
404
- readonly liveStoreVersion: typeof liveStoreVersion;
360
+ readonly liveStoreVersion: typeof import("./devtools-messages-common.js").liveStoreVersion;
405
361
  readonly clientId: typeof Schema.String;
406
362
  }>, typeof NetworkStatusSubscribe, typeof NetworkStatusUnsubscribe, typeof Disconnect, typeof RunMutationReq, typeof Ping, typeof DatabaseFileInfoReq, typeof SyncHistorySubscribe, typeof SyncHistoryUnsubscribe, typeof SyncingInfoReq, typeof SyncHeadSubscribe, typeof SyncHeadUnsubscribe, Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Request", {
407
363
  closeLatch: typeof Schema.Boolean;
408
364
  } & {
409
365
  readonly requestId: typeof Schema.String;
410
- readonly liveStoreVersion: typeof liveStoreVersion;
366
+ readonly liveStoreVersion: typeof import("./devtools-messages-common.js").liveStoreVersion;
411
367
  readonly clientId: typeof Schema.String;
412
368
  }>]>;
413
369
  export type MessageToApp = typeof MessageToApp.Type;
414
- export declare const MessageFromApp: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof Disconnect, typeof SyncPull, typeof NetworkStatusRes, typeof RunMutationRes, typeof Pong, typeof DatabaseFileInfoRes, typeof SyncHistoryRes, typeof SyncingInfoRes, typeof SyncHeadRes, Schema.TaggedStruct<"LSD.Leader.ResetAllData.Response", {
370
+ export declare const MessageFromApp: Schema.Union<[typeof SnapshotRes, Schema.TaggedStruct<"LSD.Leader.LoadDatabaseFile.Response.Success", {
371
+ readonly requestId: typeof Schema.String;
372
+ readonly liveStoreVersion: typeof import("./devtools-messages-common.js").liveStoreVersion;
373
+ readonly clientId: typeof Schema.String;
374
+ }> | Schema.TaggedStruct<"LSD.Leader.LoadDatabaseFile.Response.Error", {
375
+ cause: Schema.Union<[Schema.TaggedStruct<"unsupported-file", {}>, Schema.TaggedStruct<"unsupported-database", {}>, Schema.TaggedStruct<"unexpected-error", {
376
+ cause: typeof Schema.Defect;
377
+ }>]>;
378
+ } & {
379
+ readonly requestId: typeof Schema.String;
380
+ readonly liveStoreVersion: typeof import("./devtools-messages-common.js").liveStoreVersion;
381
+ readonly clientId: typeof Schema.String;
382
+ }>, typeof MutationLogRes, typeof Disconnect, typeof SyncPull, typeof NetworkStatusRes, typeof RunMutationRes, typeof Pong, typeof DatabaseFileInfoRes, typeof SyncHistoryRes, typeof SyncingInfoRes, typeof SyncHeadRes, Schema.TaggedStruct<"LSD.Leader.ResetAllData.Response.Success", {
415
383
  readonly requestId: typeof Schema.String;
416
- readonly liveStoreVersion: typeof liveStoreVersion;
384
+ readonly liveStoreVersion: typeof import("./devtools-messages-common.js").liveStoreVersion;
417
385
  readonly clientId: typeof Schema.String;
418
- }>, Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Response", {
386
+ }>, Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Response.Success", {
419
387
  readonly requestId: typeof Schema.String;
420
- readonly liveStoreVersion: typeof liveStoreVersion;
388
+ readonly liveStoreVersion: typeof import("./devtools-messages-common.js").liveStoreVersion;
421
389
  readonly clientId: typeof Schema.String;
422
390
  }>]>;
423
391
  export type MessageFromApp = typeof MessageFromApp.Type;
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-messages-leader.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAiB,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGpE,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAEL,gBAAgB,EAIjB,MAAM,+BAA+B,CAAA;;;;;;;;;;;;AAEtC,qBAAa,eAAgB,SAAQ,oBAEnC;CAAG;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAAsD;CAAG;;;;;;;;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,mBAAiD;CAAG;;;;;;;;;;;;AAExF,qBAAa,cAAe,SAAQ,mBAElC;CAAG;;;;;;;;;;AAEL,qBAAa,IAAK,SAAQ,SAAuC;CAAG;;;;;;;;;;AAEpE,qBAAa,IAAK,SAAQ,SAAuC;CAAG;;;;;;;;;;AAEpE,qBAAa,UAAW,SAAQ,eAA6C;CAAG;AAEhF,eAAO,MAAM,YAAY;;aAKvB,CAAA;AAEF,eAAO,MAAM,YAAY;;aAKvB,CAAA;AA0BF,eAAO,MAAM,YAAY;;;+BAzHjB,OAAS,MAAK;;8BAIS,OAAQ,MAAM;;;;+BAJrC,OAAS,MAAK;;8BAIS,OAAQ,MAAM;;;;+BAJrC,OAAS,MAAK;;8BAIS,OAAQ,MAAM;IAsIW,CAAA;AAExD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,eAAO,MAAM,cAAc;+BA9InB,OAAS,MAAK;;8BAIS,OAAQ,MAAM;;;;;;+BAJrC,OAAS,MAAK;;8BAIS,OAAQ,MAAM;;+BAJrC,OAAS,MAAK;;8BAIS,OAAQ,MAAM;;+BAJrC,OAAS,MAAK;;8BAIS,OAAQ,MAAM;IAyJa,CAAA;AAE1D,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import { Schema, Transferable } from '@livestore/utils/effect';
2
- import { NetworkStatus, UnexpectedError } from '../adapter-types.js';
2
+ import { NetworkStatus } from '../adapter-types.js';
3
3
  import { EventId } from '../schema/mod.js';
4
4
  import * as MutationEvent from '../schema/MutationEvent.js';
5
5
  import * as SyncState from '../sync/syncstate.js';
6
- import { LeaderReqResMessage, liveStoreVersion, LSDMessage, LSDReqResMessage, requestId, } from './devtools-messages-common.js';
6
+ import { LeaderReqResMessage, LSDMessage, LSDReqResMessage } from './devtools-messages-common.js';
7
7
  export class ResetAllDataReq extends LSDReqResMessage('LSD.Leader.ResetAllDataReq', {
8
8
  mode: Schema.Literal('all-data', 'only-app-db'),
9
9
  }) {
@@ -20,12 +20,17 @@ export class DatabaseFileInfoRes extends LSDReqResMessage('LSD.Leader.DatabaseFi
20
20
  mutationLog: DatabaseFileInfo,
21
21
  }) {
22
22
  }
23
- export class NetworkStatusSubscribe extends LSDReqResMessage('LSD.Leader.NetworkStatusSubscribe', {}) {
23
+ export class NetworkStatusSubscribe extends LSDReqResMessage('LSD.Leader.NetworkStatusSubscribe', {
24
+ subscriptionId: Schema.String,
25
+ }) {
24
26
  }
25
- export class NetworkStatusUnsubscribe extends LSDReqResMessage('LSD.Leader.NetworkStatusUnsubscribe', {}) {
27
+ export class NetworkStatusUnsubscribe extends LSDReqResMessage('LSD.Leader.NetworkStatusUnsubscribe', {
28
+ subscriptionId: Schema.String,
29
+ }) {
26
30
  }
27
31
  export class NetworkStatusRes extends LSDReqResMessage('LSD.Leader.NetworkStatusRes', {
28
32
  networkStatus: NetworkStatus,
33
+ subscriptionId: Schema.String,
29
34
  }) {
30
35
  }
31
36
  export class SyncingInfoReq extends LSDReqResMessage('LSD.Leader.SyncingInfoReq', {}) {
@@ -39,22 +44,32 @@ export class SyncingInfoRes extends LSDReqResMessage('LSD.Leader.SyncingInfoRes'
39
44
  syncingInfo: SyncingInfo,
40
45
  }) {
41
46
  }
42
- export class SyncHistorySubscribe extends LSDReqResMessage('LSD.Leader.SyncHistorySubscribe', {}) {
47
+ export class SyncHistorySubscribe extends LSDReqResMessage('LSD.Leader.SyncHistorySubscribe', {
48
+ subscriptionId: Schema.String,
49
+ }) {
43
50
  }
44
- export class SyncHistoryUnsubscribe extends LSDReqResMessage('LSD.Leader.SyncHistoryUnsubscribe', {}) {
51
+ export class SyncHistoryUnsubscribe extends LSDReqResMessage('LSD.Leader.SyncHistoryUnsubscribe', {
52
+ subscriptionId: Schema.String,
53
+ }) {
45
54
  }
46
55
  export class SyncHistoryRes extends LSDReqResMessage('LSD.Leader.SyncHistoryRes', {
47
56
  mutationEventEncoded: MutationEvent.AnyEncodedGlobal,
48
57
  metadata: Schema.Option(Schema.JsonValue),
58
+ subscriptionId: Schema.String,
49
59
  }) {
50
60
  }
51
- export class SyncHeadSubscribe extends LSDReqResMessage('LSD.Leader.SyncHeadSubscribe', {}) {
61
+ export class SyncHeadSubscribe extends LSDReqResMessage('LSD.Leader.SyncHeadSubscribe', {
62
+ subscriptionId: Schema.String,
63
+ }) {
52
64
  }
53
- export class SyncHeadUnsubscribe extends LSDReqResMessage('LSD.Leader.SyncHeadUnsubscribe', {}) {
65
+ export class SyncHeadUnsubscribe extends LSDReqResMessage('LSD.Leader.SyncHeadUnsubscribe', {
66
+ subscriptionId: Schema.String,
67
+ }) {
54
68
  }
55
69
  export class SyncHeadRes extends LSDReqResMessage('LSD.Leader.SyncHeadRes', {
56
70
  local: EventId.EventId,
57
71
  upstream: EventId.EventId,
72
+ subscriptionId: Schema.String,
58
73
  }) {
59
74
  }
60
75
  export class SnapshotReq extends LSDReqResMessage('LSD.Leader.SnapshotReq', {}) {
@@ -63,14 +78,15 @@ export class SnapshotRes extends LSDReqResMessage('LSD.Leader.SnapshotRes', {
63
78
  snapshot: Transferable.Uint8Array,
64
79
  }) {
65
80
  }
66
- export class LoadDatabaseFileReq extends LSDReqResMessage('LSD.Leader.LoadDatabaseFileReq', {
67
- data: Transferable.Uint8Array,
68
- }) {
69
- }
70
- export class LoadDatabaseFileRes extends LSDReqResMessage('LSD.Leader.LoadDatabaseFileRes', {
71
- status: Schema.Literal('ok', 'unsupported-file', 'unsupported-database'),
72
- }) {
73
- }
81
+ export const LoadDatabaseFile = LeaderReqResMessage('LSD.Leader.LoadDatabaseFile', {
82
+ payload: {
83
+ data: Transferable.Uint8Array,
84
+ },
85
+ success: {},
86
+ error: {
87
+ cause: Schema.Union(Schema.TaggedStruct('unsupported-file', {}), Schema.TaggedStruct('unsupported-database', {}), Schema.TaggedStruct('unexpected-error', { cause: Schema.Defect })),
88
+ },
89
+ });
74
90
  // TODO refactor this to use push/pull semantics
75
91
  export class SyncPull extends LSDMessage('LSD.Leader.SyncPull', {
76
92
  payload: SyncState.PayloadUpstream,
@@ -108,26 +124,25 @@ export const ResetAllData = LeaderReqResMessage('LSD.Leader.ResetAllData', {
108
124
  success: {},
109
125
  });
110
126
  // TODO move to `Schema.TaggedRequest` once new RPC is ready https://github.com/Effect-TS/effect/pull/4362
111
- export class DatabaseFileInfo_ extends Schema.TaggedRequest()('LSD.Leader.DatabaseFileInfo', {
112
- payload: {
113
- requestId,
114
- liveStoreVersion,
115
- },
116
- success: DatabaseFileInfo,
117
- failure: UnexpectedError,
118
- }) {
119
- }
120
- export class NetworkStatus_ extends Schema.TaggedRequest()('LSD.Leader.NetworkStatus', {
121
- payload: {
122
- requestId,
123
- liveStoreVersion,
124
- },
125
- success: NetworkStatus,
126
- failure: UnexpectedError,
127
- }) {
128
- }
129
- export const MessageToApp_ = Schema.Union(DatabaseFileInfo_, NetworkStatus_);
127
+ // export class DatabaseFileInfo_ extends Schema.TaggedRequest<DatabaseFileInfo_>()('LSD.Leader.DatabaseFileInfo', {
128
+ // payload: {
129
+ // requestId,
130
+ // liveStoreVersion,
131
+ // },
132
+ // success: DatabaseFileInfo,
133
+ // failure: UnexpectedError,
134
+ // }) {}
135
+ // export class NetworkStatus_ extends Schema.TaggedRequest<NetworkStatus_>()('LSD.Leader.NetworkStatus', {
136
+ // payload: {
137
+ // requestId,
138
+ // liveStoreVersion,
139
+ // },
140
+ // success: NetworkStatus,
141
+ // failure: UnexpectedError,
142
+ // }) {}
143
+ // export const MessageToApp_ = Schema.Union(DatabaseFileInfo_, NetworkStatus_)
144
+ // export type MessageToApp_ = typeof MessageToApp_.Type
130
145
  //
131
- export const MessageToApp = Schema.Union(SnapshotReq, LoadDatabaseFileReq, MutationLogReq, ResetAllData.Request, NetworkStatusSubscribe, NetworkStatusUnsubscribe, Disconnect, RunMutationReq, Ping, DatabaseFileInfoReq, SyncHistorySubscribe, SyncHistoryUnsubscribe, SyncingInfoReq, SyncHeadSubscribe, SyncHeadUnsubscribe, SetSyncLatch.Request).annotations({ identifier: 'LSD.Leader.MessageToApp' });
132
- export const MessageFromApp = Schema.Union(SnapshotRes, LoadDatabaseFileRes, MutationLogRes, Disconnect, SyncPull, NetworkStatusRes, RunMutationRes, Pong, DatabaseFileInfoRes, SyncHistoryRes, SyncingInfoRes, SyncHeadRes, ResetAllData.Response, SetSyncLatch.Response).annotations({ identifier: 'LSD.Leader.MessageFromApp' });
146
+ export const MessageToApp = Schema.Union(SnapshotReq, LoadDatabaseFile.Request, MutationLogReq, ResetAllData.Request, NetworkStatusSubscribe, NetworkStatusUnsubscribe, Disconnect, RunMutationReq, Ping, DatabaseFileInfoReq, SyncHistorySubscribe, SyncHistoryUnsubscribe, SyncingInfoReq, SyncHeadSubscribe, SyncHeadUnsubscribe, SetSyncLatch.Request).annotations({ identifier: 'LSD.Leader.MessageToApp' });
147
+ export const MessageFromApp = Schema.Union(SnapshotRes, LoadDatabaseFile.Response, MutationLogRes, Disconnect, SyncPull, NetworkStatusRes, RunMutationRes, Pong, DatabaseFileInfoRes, SyncHistoryRes, SyncingInfoRes, SyncHeadRes, ResetAllData.Success, SetSyncLatch.Success).annotations({ identifier: 'LSD.Leader.MessageFromApp' });
133
148
  //# sourceMappingURL=devtools-messages-leader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-messages-leader.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EACh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,MAAM,CAAC,aAAa,EAAqB,CAAC,6BAA6B,EAAE;IAC9G,OAAO,EAAE;QACP,SAAS;QACT,gBAAgB;KACjB;IACD,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,eAAe;CACzB,CAAC;CAAG;AAEL,MAAM,OAAO,cAAe,SAAQ,MAAM,CAAC,aAAa,EAAkB,CAAC,0BAA0B,EAAE;IACrG,OAAO,EAAE;QACP,SAAS;QACT,gBAAgB;KACjB;IACD,OAAO,EAAE,aAAa;IACtB,OAAO,EAAE,eAAe;CACzB,CAAC;CAAG;AAEL,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAA;AAG5E,EAAE;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CACtC,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,CAAC,OAAO,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,IAAI,EACJ,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,CAAC,OAAO,CACrB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,yBAAyB,EAAE,CAAC,CAAA;AAIxD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CACxC,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,IAAI,EACJ,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,CAAC,QAAQ,EACrB,YAAY,CAAC,QAAQ,CACtB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,2BAA2B,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"devtools-messages-leader.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,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EACtB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,CAAC,OAAO,CACrB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,yBAAyB,EAAE,CAAC,CAAA;AAIxD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CACxC,WAAW,EACX,gBAAgB,CAAC,QAAQ,EACzB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,IAAI,EACJ,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,CAAC,OAAO,EACpB,YAAY,CAAC,OAAO,CACrB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,2BAA2B,EAAE,CAAC,CAAA"}
@@ -0,0 +1,28 @@
1
+ import type { ParseResult, Scope, WebChannel } from '@livestore/utils/effect';
2
+ import { Duration, Effect, Schema, Subscribable } from '@livestore/utils/effect';
3
+ export declare const RequestSessions: Schema.TaggedStruct<"RequestSessions", {}>;
4
+ export type RequestSessions = typeof RequestSessions.Type;
5
+ export declare const SessionInfo: Schema.TaggedStruct<"SessionInfo", {
6
+ storeId: typeof Schema.String;
7
+ clientId: typeof Schema.String;
8
+ sessionId: typeof Schema.String;
9
+ }>;
10
+ export type SessionInfo = typeof SessionInfo.Type;
11
+ export declare const Message: Schema.Union<[Schema.TaggedStruct<"RequestSessions", {}>, Schema.TaggedStruct<"SessionInfo", {
12
+ storeId: typeof Schema.String;
13
+ clientId: typeof Schema.String;
14
+ sessionId: typeof Schema.String;
15
+ }>]>;
16
+ export type Message = typeof Message.Type;
17
+ /** Usually called in client session */
18
+ export declare const provideSessionInfo: ({ webChannel, sessionInfo, }: {
19
+ webChannel: WebChannel.WebChannel<Message, Message>;
20
+ sessionInfo: SessionInfo;
21
+ }) => Effect.Effect<void, ParseResult.ParseError>;
22
+ /** Usually called in devtools */
23
+ export declare const requestSessionInfoSubscription: ({ webChannel, pollInterval, staleTimeout, }: {
24
+ webChannel: WebChannel.WebChannel<Message, Message>;
25
+ pollInterval?: Duration.DurationInput;
26
+ staleTimeout?: Duration.DurationInput;
27
+ }) => Effect.Effect<Subscribable.Subscribable<Set<SessionInfo>>, ParseResult.ParseError, Scope.Scope>;
28
+ //# sourceMappingURL=devtools-sessioninfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devtools-sessioninfo.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-sessioninfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAEL,QAAQ,EACR,MAAM,EAIN,MAAM,EAEN,YAAY,EAEb,MAAM,yBAAyB,CAAA;AAEhC,eAAO,MAAM,eAAe,4CAA6C,CAAA;AACzE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAEzD,eAAO,MAAM,WAAW;;;;EAItB,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD,eAAO,MAAM,OAAO;;;;IAA6C,CAAA;AACjE,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAEzC,uCAAuC;AACvC,eAAO,MAAM,kBAAkB,GAAI,8BAGhC;IACD,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACnD,WAAW,EAAE,WAAW,CAAA;CACzB,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,UAAU,CAU1C,CAAA;AAEJ,iCAAiC;AACjC,eAAO,MAAM,8BAA8B,GAAI,6CAI5C;IACD,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAA;IACrC,YAAY,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAA;CACtC,KAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,KAAK,CA2C9F,CAAA"}