@livestore/common 0.2.0-dev.2 → 0.3.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/__tests__/fixture.d.ts +163 -1
- package/dist/__tests__/fixture.d.ts.map +1 -1
- package/dist/__tests__/fixture.js +3 -1
- package/dist/__tests__/fixture.js.map +1 -1
- package/dist/adapter-types.d.ts +53 -38
- package/dist/adapter-types.d.ts.map +1 -1
- package/dist/adapter-types.js +5 -7
- package/dist/adapter-types.js.map +1 -1
- package/dist/bounded-collections.d.ts +2 -2
- package/dist/bounded-collections.d.ts.map +1 -1
- package/dist/debug-info.d.ts +13 -13
- package/dist/derived-mutations.d.ts +1 -1
- package/dist/derived-mutations.d.ts.map +1 -1
- package/dist/devtools/devtools-bridge.d.ts +2 -2
- package/dist/devtools/devtools-bridge.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.d.ts +84 -196
- package/dist/devtools/devtools-messages.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.js +55 -61
- package/dist/devtools/devtools-messages.js.map +1 -1
- package/dist/devtools/index.d.ts.map +1 -1
- package/dist/devtools/index.js +1 -2
- package/dist/devtools/index.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/init-singleton-tables.d.ts +1 -1
- package/dist/init-singleton-tables.d.ts.map +1 -1
- package/dist/leader-thread/apply-mutation.d.ts +8 -0
- package/dist/leader-thread/apply-mutation.d.ts.map +1 -0
- package/dist/leader-thread/apply-mutation.js +95 -0
- package/dist/leader-thread/apply-mutation.js.map +1 -0
- package/dist/leader-thread/connection.d.ts +11 -0
- package/dist/leader-thread/connection.d.ts.map +1 -0
- package/dist/leader-thread/connection.js +44 -0
- package/dist/leader-thread/connection.js.map +1 -0
- package/dist/leader-thread/leader-sync-processor.d.ts +47 -0
- package/dist/leader-thread/leader-sync-processor.d.ts.map +1 -0
- package/dist/leader-thread/leader-sync-processor.js +422 -0
- package/dist/leader-thread/leader-sync-processor.js.map +1 -0
- package/dist/leader-thread/leader-worker-devtools.d.ts +6 -0
- package/dist/leader-thread/leader-worker-devtools.d.ts.map +1 -0
- package/dist/leader-thread/leader-worker-devtools.js +216 -0
- package/dist/leader-thread/leader-worker-devtools.js.map +1 -0
- package/dist/leader-thread/make-leader-thread-layer.d.ts +20 -0
- package/dist/leader-thread/make-leader-thread-layer.d.ts.map +1 -0
- package/dist/leader-thread/make-leader-thread-layer.js +106 -0
- package/dist/leader-thread/make-leader-thread-layer.js.map +1 -0
- package/dist/leader-thread/mod.d.ts +7 -0
- package/dist/leader-thread/mod.d.ts.map +1 -0
- package/dist/leader-thread/mod.js +7 -0
- package/dist/leader-thread/mod.js.map +1 -0
- package/dist/leader-thread/mutationlog.d.ts +23 -0
- package/dist/leader-thread/mutationlog.d.ts.map +1 -0
- package/dist/leader-thread/mutationlog.js +27 -0
- package/dist/leader-thread/mutationlog.js.map +1 -0
- package/dist/leader-thread/pull-queue-set.d.ts +7 -0
- package/dist/leader-thread/pull-queue-set.d.ts.map +1 -0
- package/dist/leader-thread/pull-queue-set.js +39 -0
- package/dist/leader-thread/pull-queue-set.js.map +1 -0
- package/dist/leader-thread/recreate-db.d.ts +7 -0
- package/dist/leader-thread/recreate-db.d.ts.map +1 -0
- package/dist/leader-thread/recreate-db.js +69 -0
- package/dist/leader-thread/recreate-db.js.map +1 -0
- package/dist/leader-thread/shutdown-channel.d.ts +15 -0
- package/dist/leader-thread/shutdown-channel.d.ts.map +1 -0
- package/dist/leader-thread/shutdown-channel.js +7 -0
- package/dist/leader-thread/shutdown-channel.js.map +1 -0
- package/dist/leader-thread/types.d.ts +87 -0
- package/dist/leader-thread/types.d.ts.map +1 -0
- package/dist/leader-thread/types.js +11 -0
- package/dist/leader-thread/types.js.map +1 -0
- package/dist/mutation.d.ts +3 -4
- package/dist/mutation.d.ts.map +1 -1
- package/dist/mutation.js +0 -14
- package/dist/mutation.js.map +1 -1
- package/dist/otel.d.ts +7 -0
- package/dist/otel.d.ts.map +1 -0
- package/dist/otel.js +11 -0
- package/dist/otel.js.map +1 -0
- package/dist/query-builder/api.d.ts +2 -2
- package/dist/query-builder/api.d.ts.map +1 -1
- package/dist/query-builder/api.js.map +1 -1
- package/dist/query-builder/impl.d.ts +1 -1
- package/dist/query-builder/impl.d.ts.map +1 -1
- package/dist/query-builder/impl.js +23 -5
- package/dist/query-builder/impl.js.map +1 -1
- package/dist/query-builder/impl.test.js +30 -1
- package/dist/query-builder/impl.test.js.map +1 -1
- package/dist/query-info.d.ts +1 -1
- package/dist/query-info.d.ts.map +1 -1
- package/dist/rehydrate-from-mutationlog.d.ts +1 -1
- package/dist/rehydrate-from-mutationlog.d.ts.map +1 -1
- package/dist/rehydrate-from-mutationlog.js +6 -6
- package/dist/rehydrate-from-mutationlog.js.map +1 -1
- package/dist/schema/EventId.d.ts +37 -0
- package/dist/schema/EventId.d.ts.map +1 -0
- package/dist/schema/EventId.js +30 -0
- package/dist/schema/EventId.js.map +1 -0
- package/dist/schema/MutationEvent.d.ts +191 -0
- package/dist/schema/MutationEvent.d.ts.map +1 -0
- package/dist/schema/MutationEvent.js +56 -0
- package/dist/schema/MutationEvent.js.map +1 -0
- package/dist/schema/mod.d.ts +8 -0
- package/dist/schema/mod.d.ts.map +1 -0
- package/dist/schema/mod.js +8 -0
- package/dist/schema/mod.js.map +1 -0
- package/dist/schema/mutations.d.ts +3 -123
- package/dist/schema/mutations.d.ts.map +1 -1
- package/dist/schema/mutations.js +0 -26
- package/dist/schema/mutations.js.map +1 -1
- package/dist/schema/{index.d.ts → schema.d.ts} +1 -5
- package/dist/schema/schema.d.ts.map +1 -0
- package/dist/schema/{index.js → schema.js} +1 -5
- package/dist/schema/schema.js.map +1 -0
- package/dist/schema/system-tables.d.ts +55 -29
- package/dist/schema/system-tables.d.ts.map +1 -1
- package/dist/schema/system-tables.js +10 -5
- package/dist/schema/system-tables.js.map +1 -1
- package/dist/schema-management/migrations.d.ts +1 -1
- package/dist/schema-management/migrations.d.ts.map +1 -1
- package/dist/schema-management/migrations.js +6 -1
- package/dist/schema-management/migrations.js.map +1 -1
- package/dist/schema-management/validate-mutation-defs.d.ts +1 -1
- package/dist/schema-management/validate-mutation-defs.d.ts.map +1 -1
- package/dist/sync/client-session-sync-processor.d.ts +45 -0
- package/dist/sync/client-session-sync-processor.d.ts.map +1 -0
- package/dist/sync/client-session-sync-processor.js +131 -0
- package/dist/sync/client-session-sync-processor.js.map +1 -0
- package/dist/sync/index.d.ts +2 -0
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +2 -0
- package/dist/sync/index.js.map +1 -1
- package/dist/sync/next/compact-events.d.ts +1 -1
- package/dist/sync/next/compact-events.d.ts.map +1 -1
- package/dist/sync/next/compact-events.js +2 -1
- package/dist/sync/next/compact-events.js.map +1 -1
- package/dist/sync/next/facts.d.ts +5 -5
- package/dist/sync/next/facts.d.ts.map +1 -1
- package/dist/sync/next/facts.js +1 -1
- package/dist/sync/next/facts.js.map +1 -1
- package/dist/sync/next/history-dag-common.d.ts +30 -0
- package/dist/sync/next/history-dag-common.d.ts.map +1 -0
- package/dist/sync/next/history-dag-common.js +20 -0
- package/dist/sync/next/history-dag-common.js.map +1 -0
- package/dist/sync/next/history-dag.d.ts +4 -27
- package/dist/sync/next/history-dag.d.ts.map +1 -1
- package/dist/sync/next/history-dag.js +1 -19
- package/dist/sync/next/history-dag.js.map +1 -1
- package/dist/sync/next/mod.d.ts +1 -0
- package/dist/sync/next/mod.d.ts.map +1 -1
- package/dist/sync/next/mod.js +1 -0
- package/dist/sync/next/mod.js.map +1 -1
- package/dist/sync/next/rebase-events.d.ts +3 -2
- package/dist/sync/next/rebase-events.d.ts.map +1 -1
- package/dist/sync/next/rebase-events.js.map +1 -1
- package/dist/sync/next/test/compact-events.test.d.ts.map +1 -1
- package/dist/sync/next/test/compact-events.test.js +2 -1
- package/dist/sync/next/test/compact-events.test.js.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.d.ts +1 -1
- package/dist/sync/next/test/mutation-fixtures.d.ts.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.js +4 -3
- package/dist/sync/next/test/mutation-fixtures.js.map +1 -1
- package/dist/sync/sync.d.ts +33 -12
- package/dist/sync/sync.d.ts.map +1 -1
- package/dist/sync/sync.js +10 -1
- package/dist/sync/sync.js.map +1 -1
- package/dist/sync/syncstate.d.ts +123 -0
- package/dist/sync/syncstate.d.ts.map +1 -0
- package/dist/sync/syncstate.js +248 -0
- package/dist/sync/syncstate.js.map +1 -0
- package/dist/sync/syncstate.test.d.ts +2 -0
- package/dist/sync/syncstate.test.d.ts.map +1 -0
- package/dist/sync/syncstate.test.js +399 -0
- package/dist/sync/syncstate.test.js.map +1 -0
- package/dist/sync/validate-push-payload.d.ts +5 -0
- package/dist/sync/validate-push-payload.d.ts.map +1 -0
- package/dist/sync/validate-push-payload.js +15 -0
- package/dist/sync/validate-push-payload.js.map +1 -0
- package/dist/util.d.ts +2 -2
- package/dist/util.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/dist/version.js.map +1 -1
- package/package.json +13 -6
- package/src/__tests__/fixture.ts +5 -1
- package/src/adapter-types.ts +60 -34
- package/src/derived-mutations.test.ts +1 -1
- package/src/derived-mutations.ts +1 -1
- package/src/devtools/devtools-bridge.ts +2 -2
- package/src/devtools/devtools-messages.ts +70 -74
- package/src/devtools/index.ts +1 -2
- package/src/index.ts +2 -1
- package/src/init-singleton-tables.ts +1 -1
- package/src/leader-thread/apply-mutation.ts +143 -0
- package/src/leader-thread/connection.ts +67 -0
- package/src/leader-thread/leader-sync-processor.ts +666 -0
- package/src/leader-thread/leader-worker-devtools.ts +358 -0
- package/src/leader-thread/make-leader-thread-layer.ts +192 -0
- package/src/leader-thread/mod.ts +6 -0
- package/src/leader-thread/mutationlog.ts +42 -0
- package/src/leader-thread/pull-queue-set.ts +58 -0
- package/src/leader-thread/recreate-db.ts +109 -0
- package/src/leader-thread/shutdown-channel.ts +13 -0
- package/src/leader-thread/types.ts +129 -0
- package/src/mutation.ts +3 -21
- package/src/otel.ts +20 -0
- package/src/query-builder/api.ts +3 -2
- package/src/query-builder/impl.test.ts +35 -1
- package/src/query-builder/impl.ts +23 -6
- package/src/query-info.ts +1 -1
- package/src/rehydrate-from-mutationlog.ts +7 -11
- package/src/schema/EventId.ts +46 -0
- package/src/schema/MutationEvent.ts +161 -0
- package/src/schema/mod.ts +7 -0
- package/src/schema/mutations.ts +5 -126
- package/src/schema/{index.ts → schema.ts} +0 -5
- package/src/schema/system-tables.ts +18 -5
- package/src/schema-management/migrations.ts +9 -2
- package/src/schema-management/validate-mutation-defs.ts +1 -1
- package/src/sync/client-session-sync-processor.ts +207 -0
- package/src/sync/index.ts +2 -0
- package/src/sync/next/compact-events.ts +3 -2
- package/src/sync/next/facts.ts +11 -5
- package/src/sync/next/history-dag-common.ts +44 -0
- package/src/sync/next/history-dag.ts +3 -45
- package/src/sync/next/mod.ts +1 -0
- package/src/sync/next/rebase-events.ts +6 -5
- package/src/sync/next/test/compact-events.test.ts +3 -2
- package/src/sync/next/test/mutation-fixtures.ts +7 -6
- package/src/sync/sync.ts +32 -12
- package/src/sync/syncstate.test.ts +464 -0
- package/src/sync/syncstate.ts +385 -0
- package/src/sync/validate-push-payload.ts +18 -0
- package/src/version.ts +2 -2
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js.map +0 -1
- package/dist/sync/next-mutation-event-id-pair.d.ts +0 -14
- package/dist/sync/next-mutation-event-id-pair.d.ts.map +0 -1
- package/dist/sync/next-mutation-event-id-pair.js +0 -13
- package/dist/sync/next-mutation-event-id-pair.js.map +0 -1
- package/src/sync/next-mutation-event-id-pair.ts +0 -20
@@ -1,47 +1,39 @@
|
|
1
1
|
import { Schema } from '@livestore/utils/effect';
|
2
2
|
declare const SnapshotReq_base: Schema.Struct<{
|
3
|
-
_tag: Schema.tag<"LSD.SnapshotReq">;
|
3
|
+
_tag: Schema.tag<"LSD.Leader.SnapshotReq">;
|
4
4
|
} & {
|
5
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
6
|
-
} & {
|
7
|
-
appHostId: typeof Schema.String;
|
5
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
8
6
|
} & {
|
9
7
|
requestId: typeof Schema.String;
|
10
8
|
}>;
|
11
9
|
export declare class SnapshotReq extends SnapshotReq_base {
|
12
10
|
}
|
13
11
|
declare const SnapshotRes_base: Schema.Struct<{
|
14
|
-
_tag: Schema.tag<"LSD.SnapshotRes">;
|
15
|
-
} & {
|
16
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
12
|
+
_tag: Schema.tag<"LSD.Leader.SnapshotRes">;
|
17
13
|
} & {
|
18
|
-
|
14
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
19
15
|
} & {
|
20
16
|
requestId: typeof Schema.String;
|
21
17
|
} & {
|
22
|
-
snapshot: Schema.Schema<Uint8Array
|
18
|
+
snapshot: Schema.Schema<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, never>;
|
23
19
|
}>;
|
24
20
|
export declare class SnapshotRes extends SnapshotRes_base {
|
25
21
|
}
|
26
22
|
declare const LoadDatabaseFileReq_base: Schema.Struct<{
|
27
|
-
_tag: Schema.tag<"LSD.LoadDatabaseFileReq">;
|
28
|
-
} & {
|
29
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
23
|
+
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileReq">;
|
30
24
|
} & {
|
31
|
-
|
25
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
32
26
|
} & {
|
33
27
|
requestId: typeof Schema.String;
|
34
28
|
} & {
|
35
|
-
data: Schema.Schema<Uint8Array
|
29
|
+
data: Schema.Schema<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, never>;
|
36
30
|
}>;
|
37
31
|
export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
|
38
32
|
}
|
39
33
|
declare const LoadDatabaseFileRes_base: Schema.Struct<{
|
40
|
-
_tag: Schema.tag<"LSD.LoadDatabaseFileRes">;
|
34
|
+
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileRes">;
|
41
35
|
} & {
|
42
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
43
|
-
} & {
|
44
|
-
appHostId: typeof Schema.String;
|
36
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
45
37
|
} & {
|
46
38
|
requestId: typeof Schema.String;
|
47
39
|
} & {
|
@@ -52,10 +44,9 @@ export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
|
|
52
44
|
declare const DebugInfoReq_base: Schema.Struct<{
|
53
45
|
_tag: Schema.tag<"LSD.DebugInfoReq">;
|
54
46
|
} & {
|
55
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
47
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
56
48
|
} & {
|
57
49
|
appHostId: typeof Schema.String;
|
58
|
-
} & {
|
59
50
|
requestId: typeof Schema.String;
|
60
51
|
}>;
|
61
52
|
export declare class DebugInfoReq extends DebugInfoReq_base {
|
@@ -63,10 +54,9 @@ export declare class DebugInfoReq extends DebugInfoReq_base {
|
|
63
54
|
declare const DebugInfoRes_base: Schema.Struct<{
|
64
55
|
_tag: Schema.tag<"LSD.DebugInfoRes">;
|
65
56
|
} & {
|
66
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
57
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
67
58
|
} & {
|
68
59
|
appHostId: typeof Schema.String;
|
69
|
-
} & {
|
70
60
|
requestId: typeof Schema.String;
|
71
61
|
} & {
|
72
62
|
debugInfo: Schema.Struct<{
|
@@ -74,8 +64,8 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
74
64
|
size: typeof Schema.Number;
|
75
65
|
items: Schema.Array$<Schema.Schema<{
|
76
66
|
readonly queryStr: string;
|
77
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
78
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
67
|
+
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
68
|
+
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
79
69
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
80
70
|
readonly durationMs: number;
|
81
71
|
readonly rowsCount: number | undefined;
|
@@ -93,8 +83,8 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
93
83
|
}, never>>;
|
94
84
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
95
85
|
readonly queryStr: string;
|
96
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
97
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
86
|
+
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
87
|
+
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
98
88
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
99
89
|
readonly durationMs: number;
|
100
90
|
readonly rowsCount: number | undefined;
|
@@ -102,8 +92,8 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
102
92
|
readonly startTimePerfNow: number;
|
103
93
|
}>, import("../bounded-collections.js").BoundArray<{
|
104
94
|
readonly queryStr: string;
|
105
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
106
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
95
|
+
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
96
|
+
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
107
97
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
108
98
|
readonly durationMs: number;
|
109
99
|
readonly rowsCount: number | undefined;
|
@@ -123,10 +113,9 @@ export declare class DebugInfoRes extends DebugInfoRes_base {
|
|
123
113
|
declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
|
124
114
|
_tag: Schema.tag<"LSD.DebugInfoHistorySubscribe">;
|
125
115
|
} & {
|
126
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
116
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
127
117
|
} & {
|
128
118
|
appHostId: typeof Schema.String;
|
129
|
-
} & {
|
130
119
|
requestId: typeof Schema.String;
|
131
120
|
}>;
|
132
121
|
export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe_base {
|
@@ -134,10 +123,9 @@ export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe
|
|
134
123
|
declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
135
124
|
_tag: Schema.tag<"LSD.DebugInfoHistoryRes">;
|
136
125
|
} & {
|
137
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
126
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
138
127
|
} & {
|
139
128
|
appHostId: typeof Schema.String;
|
140
|
-
} & {
|
141
129
|
requestId: typeof Schema.String;
|
142
130
|
} & {
|
143
131
|
debugInfoHistory: Schema.Array$<Schema.Struct<{
|
@@ -145,8 +133,8 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
145
133
|
size: typeof Schema.Number;
|
146
134
|
items: Schema.Array$<Schema.Schema<{
|
147
135
|
readonly queryStr: string;
|
148
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
149
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
136
|
+
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
137
|
+
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
150
138
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
151
139
|
readonly durationMs: number;
|
152
140
|
readonly rowsCount: number | undefined;
|
@@ -164,8 +152,8 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
164
152
|
}, never>>;
|
165
153
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
166
154
|
readonly queryStr: string;
|
167
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
168
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
155
|
+
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
156
|
+
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
169
157
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
170
158
|
readonly durationMs: number;
|
171
159
|
readonly rowsCount: number | undefined;
|
@@ -173,8 +161,8 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
173
161
|
readonly startTimePerfNow: number;
|
174
162
|
}>, import("../bounded-collections.js").BoundArray<{
|
175
163
|
readonly queryStr: string;
|
176
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
177
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
164
|
+
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
165
|
+
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
178
166
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
179
167
|
readonly durationMs: number;
|
180
168
|
readonly rowsCount: number | undefined;
|
@@ -194,10 +182,9 @@ export declare class DebugInfoHistoryRes extends DebugInfoHistoryRes_base {
|
|
194
182
|
declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
|
195
183
|
_tag: Schema.tag<"LSD.DebugInfoHistoryUnsubscribe">;
|
196
184
|
} & {
|
197
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
185
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
198
186
|
} & {
|
199
187
|
appHostId: typeof Schema.String;
|
200
|
-
} & {
|
201
188
|
requestId: typeof Schema.String;
|
202
189
|
}>;
|
203
190
|
export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubscribe_base {
|
@@ -205,10 +192,9 @@ export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubsc
|
|
205
192
|
declare const DebugInfoResetReq_base: Schema.Struct<{
|
206
193
|
_tag: Schema.tag<"LSD.DebugInfoResetReq">;
|
207
194
|
} & {
|
208
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
195
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
209
196
|
} & {
|
210
197
|
appHostId: typeof Schema.String;
|
211
|
-
} & {
|
212
198
|
requestId: typeof Schema.String;
|
213
199
|
}>;
|
214
200
|
export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
@@ -216,10 +202,9 @@ export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
|
216
202
|
declare const DebugInfoResetRes_base: Schema.Struct<{
|
217
203
|
_tag: Schema.tag<"LSD.DebugInfoResetRes">;
|
218
204
|
} & {
|
219
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
205
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
220
206
|
} & {
|
221
207
|
appHostId: typeof Schema.String;
|
222
|
-
} & {
|
223
208
|
requestId: typeof Schema.String;
|
224
209
|
}>;
|
225
210
|
export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
@@ -227,14 +212,13 @@ export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
|
227
212
|
declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
|
228
213
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryReq">;
|
229
214
|
} & {
|
230
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
215
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
231
216
|
} & {
|
232
217
|
appHostId: typeof Schema.String;
|
233
|
-
} & {
|
234
218
|
requestId: typeof Schema.String;
|
235
219
|
} & {
|
236
220
|
queryStr: typeof Schema.String;
|
237
|
-
bindValues: Schema.UndefinedOr<Schema.brand<Schema.Union<[Schema.Array$<Schema.Union<[typeof Schema.String, typeof Schema.Number, Schema.Schema<Uint8Array
|
221
|
+
bindValues: Schema.UndefinedOr<Schema.brand<Schema.Union<[Schema.Array$<Schema.Union<[typeof Schema.String, typeof Schema.Number, Schema.Schema<Uint8Array<ArrayBufferLike>, readonly number[], never>, typeof Schema.Null]>>, Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, typeof Schema.Number, Schema.Schema<Uint8Array<ArrayBufferLike>, readonly number[], never>, typeof Schema.Null]>>]>, "PreparedBindValues">>;
|
238
222
|
queriedTables: Schema.ReadonlySet$<typeof Schema.String>;
|
239
223
|
}>;
|
240
224
|
export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base {
|
@@ -242,18 +226,17 @@ export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base
|
|
242
226
|
declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
|
243
227
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryRes">;
|
244
228
|
} & {
|
245
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
229
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
246
230
|
} & {
|
247
231
|
appHostId: typeof Schema.String;
|
248
|
-
} & {
|
249
232
|
requestId: typeof Schema.String;
|
250
233
|
}>;
|
251
234
|
export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base {
|
252
235
|
}
|
253
236
|
declare const MutationBroadcast_base: Schema.Struct<{
|
254
|
-
_tag: Schema.tag<"LSD.MutationBroadcast">;
|
237
|
+
_tag: Schema.tag<"LSD.Leader.MutationBroadcast">;
|
255
238
|
} & {
|
256
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
239
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
257
240
|
} & {
|
258
241
|
mutationEventEncoded: Schema.SchemaClass<{
|
259
242
|
readonly id: {
|
@@ -278,16 +261,13 @@ declare const MutationBroadcast_base: Schema.Struct<{
|
|
278
261
|
readonly local: number;
|
279
262
|
};
|
280
263
|
}, never>;
|
281
|
-
persisted: typeof Schema.Boolean;
|
282
264
|
}>;
|
283
265
|
export declare class MutationBroadcast extends MutationBroadcast_base {
|
284
266
|
}
|
285
267
|
declare const RunMutationReq_base: Schema.Struct<{
|
286
|
-
_tag: Schema.tag<"LSD.RunMutationReq">;
|
268
|
+
_tag: Schema.tag<"LSD.Leader.RunMutationReq">;
|
287
269
|
} & {
|
288
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
289
|
-
} & {
|
290
|
-
appHostId: typeof Schema.String;
|
270
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
291
271
|
} & {
|
292
272
|
requestId: typeof Schema.String;
|
293
273
|
} & {
|
@@ -298,52 +278,44 @@ declare const RunMutationReq_base: Schema.Struct<{
|
|
298
278
|
readonly mutation: string;
|
299
279
|
readonly args: any;
|
300
280
|
}, never>;
|
301
|
-
persisted: typeof Schema.Boolean;
|
302
281
|
}>;
|
303
282
|
export declare class RunMutationReq extends RunMutationReq_base {
|
304
283
|
}
|
305
284
|
declare const RunMutationRes_base: Schema.Struct<{
|
306
|
-
_tag: Schema.tag<"LSD.RunMutationRes">;
|
285
|
+
_tag: Schema.tag<"LSD.Leader.RunMutationRes">;
|
307
286
|
} & {
|
308
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
309
|
-
} & {
|
310
|
-
appHostId: typeof Schema.String;
|
287
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
311
288
|
} & {
|
312
289
|
requestId: typeof Schema.String;
|
313
290
|
}>;
|
314
291
|
export declare class RunMutationRes extends RunMutationRes_base {
|
315
292
|
}
|
316
293
|
declare const MutationLogReq_base: Schema.Struct<{
|
317
|
-
_tag: Schema.tag<"LSD.MutationLogReq">;
|
318
|
-
} & {
|
319
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
294
|
+
_tag: Schema.tag<"LSD.Leader.MutationLogReq">;
|
320
295
|
} & {
|
321
|
-
|
296
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
322
297
|
} & {
|
323
298
|
requestId: typeof Schema.String;
|
324
299
|
}>;
|
325
300
|
export declare class MutationLogReq extends MutationLogReq_base {
|
326
301
|
}
|
327
302
|
declare const MutationLogRes_base: Schema.Struct<{
|
328
|
-
_tag: Schema.tag<"LSD.MutationLogRes">;
|
329
|
-
} & {
|
330
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
303
|
+
_tag: Schema.tag<"LSD.Leader.MutationLogRes">;
|
331
304
|
} & {
|
332
|
-
|
305
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
333
306
|
} & {
|
334
307
|
requestId: typeof Schema.String;
|
335
308
|
} & {
|
336
|
-
mutationLog: Schema.Schema<Uint8Array
|
309
|
+
mutationLog: Schema.Schema<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>, never>;
|
337
310
|
}>;
|
338
311
|
export declare class MutationLogRes extends MutationLogRes_base {
|
339
312
|
}
|
340
313
|
declare const ReactivityGraphSubscribe_base: Schema.Struct<{
|
341
314
|
_tag: Schema.tag<"LSD.ReactivityGraphSubscribe">;
|
342
315
|
} & {
|
343
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
316
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
344
317
|
} & {
|
345
318
|
appHostId: typeof Schema.String;
|
346
|
-
} & {
|
347
319
|
requestId: typeof Schema.String;
|
348
320
|
} & {
|
349
321
|
includeResults: typeof Schema.Boolean;
|
@@ -353,10 +325,9 @@ export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_b
|
|
353
325
|
declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
|
354
326
|
_tag: Schema.tag<"LSD.ReactivityGraphUnsubscribe">;
|
355
327
|
} & {
|
356
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
328
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
357
329
|
} & {
|
358
330
|
appHostId: typeof Schema.String;
|
359
|
-
} & {
|
360
331
|
requestId: typeof Schema.String;
|
361
332
|
}>;
|
362
333
|
export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscribe_base {
|
@@ -364,10 +335,9 @@ export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscri
|
|
364
335
|
declare const ReactivityGraphRes_base: Schema.Struct<{
|
365
336
|
_tag: Schema.tag<"LSD.ReactivityGraphRes">;
|
366
337
|
} & {
|
367
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
338
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
368
339
|
} & {
|
369
340
|
appHostId: typeof Schema.String;
|
370
|
-
} & {
|
371
341
|
requestId: typeof Schema.String;
|
372
342
|
} & {
|
373
343
|
reactivityGraph: typeof Schema.Any;
|
@@ -377,10 +347,9 @@ export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
|
|
377
347
|
declare const LiveQueriesSubscribe_base: Schema.Struct<{
|
378
348
|
_tag: Schema.tag<"LSD.LiveQueriesSubscribe">;
|
379
349
|
} & {
|
380
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
350
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
381
351
|
} & {
|
382
352
|
appHostId: typeof Schema.String;
|
383
|
-
} & {
|
384
353
|
requestId: typeof Schema.String;
|
385
354
|
}>;
|
386
355
|
export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
@@ -388,10 +357,9 @@ export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
|
388
357
|
declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
|
389
358
|
_tag: Schema.tag<"LSD.LiveQueriesUnsubscribe">;
|
390
359
|
} & {
|
391
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
360
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
392
361
|
} & {
|
393
362
|
appHostId: typeof Schema.String;
|
394
|
-
} & {
|
395
363
|
requestId: typeof Schema.String;
|
396
364
|
}>;
|
397
365
|
export declare class LiveQueriesUnsubscribe extends LiveQueriesUnsubscribe_base {
|
@@ -415,10 +383,9 @@ export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
|
|
415
383
|
declare const LiveQueriesRes_base: Schema.Struct<{
|
416
384
|
_tag: Schema.tag<"LSD.LiveQueriesRes">;
|
417
385
|
} & {
|
418
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
386
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
419
387
|
} & {
|
420
388
|
appHostId: typeof Schema.String;
|
421
|
-
} & {
|
422
389
|
requestId: typeof Schema.String;
|
423
390
|
} & {
|
424
391
|
liveQueries: Schema.Array$<typeof SerializedLiveQuery>;
|
@@ -426,11 +393,9 @@ declare const LiveQueriesRes_base: Schema.Struct<{
|
|
426
393
|
export declare class LiveQueriesRes extends LiveQueriesRes_base {
|
427
394
|
}
|
428
395
|
declare const ResetAllDataReq_base: Schema.Struct<{
|
429
|
-
_tag: Schema.tag<"LSD.ResetAllDataReq">;
|
396
|
+
_tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
|
430
397
|
} & {
|
431
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
432
|
-
} & {
|
433
|
-
appHostId: typeof Schema.String;
|
398
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
434
399
|
} & {
|
435
400
|
requestId: typeof Schema.String;
|
436
401
|
} & {
|
@@ -439,22 +404,18 @@ declare const ResetAllDataReq_base: Schema.Struct<{
|
|
439
404
|
export declare class ResetAllDataReq extends ResetAllDataReq_base {
|
440
405
|
}
|
441
406
|
declare const ResetAllDataRes_base: Schema.Struct<{
|
442
|
-
_tag: Schema.tag<"LSD.ResetAllDataRes">;
|
407
|
+
_tag: Schema.tag<"LSD.Leader.ResetAllDataRes">;
|
443
408
|
} & {
|
444
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
445
|
-
} & {
|
446
|
-
appHostId: typeof Schema.String;
|
409
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
447
410
|
} & {
|
448
411
|
requestId: typeof Schema.String;
|
449
412
|
}>;
|
450
413
|
export declare class ResetAllDataRes extends ResetAllDataRes_base {
|
451
414
|
}
|
452
415
|
declare const DatabaseFileInfoReq_base: Schema.Struct<{
|
453
|
-
_tag: Schema.tag<"LSD.DatabaseFileInfoReq">;
|
454
|
-
} & {
|
455
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
416
|
+
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
|
456
417
|
} & {
|
457
|
-
|
418
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
458
419
|
} & {
|
459
420
|
requestId: typeof Schema.String;
|
460
421
|
}>;
|
@@ -472,11 +433,9 @@ declare const DatabaseFileInfo_base: Schema.Struct<{
|
|
472
433
|
export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
|
473
434
|
}
|
474
435
|
declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
475
|
-
_tag: Schema.tag<"LSD.DatabaseFileInfoRes">;
|
476
|
-
} & {
|
477
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
436
|
+
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
|
478
437
|
} & {
|
479
|
-
|
438
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
480
439
|
} & {
|
481
440
|
requestId: typeof Schema.String;
|
482
441
|
} & {
|
@@ -485,58 +444,28 @@ declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
|
485
444
|
}>;
|
486
445
|
export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
|
487
446
|
}
|
488
|
-
declare const MessagePortForStoreReq_base: Schema.Struct<{
|
489
|
-
_tag: Schema.tag<"LSD.MessagePortForStoreReq">;
|
490
|
-
} & {
|
491
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
492
|
-
} & {
|
493
|
-
appHostId: typeof Schema.String;
|
494
|
-
} & {
|
495
|
-
requestId: typeof Schema.String;
|
496
|
-
}>;
|
497
|
-
export declare class MessagePortForStoreReq extends MessagePortForStoreReq_base {
|
498
|
-
}
|
499
|
-
declare const MessagePortForStoreRes_base: Schema.Struct<{
|
500
|
-
_tag: Schema.tag<"LSD.MessagePortForStoreRes">;
|
501
|
-
} & {
|
502
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
503
|
-
} & {
|
504
|
-
appHostId: typeof Schema.String;
|
505
|
-
} & {
|
506
|
-
requestId: typeof Schema.String;
|
507
|
-
} & {
|
508
|
-
port: Schema.Schema<MessagePort, MessagePort, never>;
|
509
|
-
}>;
|
510
|
-
export declare class MessagePortForStoreRes extends MessagePortForStoreRes_base {
|
511
|
-
}
|
512
447
|
declare const NetworkStatusSubscribe_base: Schema.Struct<{
|
513
|
-
_tag: Schema.tag<"LSD.NetworkStatusSubscribe">;
|
514
|
-
} & {
|
515
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
448
|
+
_tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
|
516
449
|
} & {
|
517
|
-
|
450
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
518
451
|
} & {
|
519
452
|
requestId: typeof Schema.String;
|
520
453
|
}>;
|
521
454
|
export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base {
|
522
455
|
}
|
523
456
|
declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
|
524
|
-
_tag: Schema.tag<"LSD.NetworkStatusUnsubscribe">;
|
525
|
-
} & {
|
526
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
457
|
+
_tag: Schema.tag<"LSD.Leader.NetworkStatusUnsubscribe">;
|
527
458
|
} & {
|
528
|
-
|
459
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
529
460
|
} & {
|
530
461
|
requestId: typeof Schema.String;
|
531
462
|
}>;
|
532
463
|
export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_base {
|
533
464
|
}
|
534
465
|
declare const NetworkStatusRes_base: Schema.Struct<{
|
535
|
-
_tag: Schema.tag<"LSD.NetworkStatusRes">;
|
466
|
+
_tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
|
536
467
|
} & {
|
537
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
538
|
-
} & {
|
539
|
-
appHostId: typeof Schema.String;
|
468
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
540
469
|
} & {
|
541
470
|
requestId: typeof Schema.String;
|
542
471
|
} & {
|
@@ -548,11 +477,9 @@ declare const NetworkStatusRes_base: Schema.Struct<{
|
|
548
477
|
export declare class NetworkStatusRes extends NetworkStatusRes_base {
|
549
478
|
}
|
550
479
|
declare const SyncingInfoReq_base: Schema.Struct<{
|
551
|
-
_tag: Schema.tag<"LSD.SyncingInfoReq">;
|
480
|
+
_tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
|
552
481
|
} & {
|
553
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
554
|
-
} & {
|
555
|
-
appHostId: typeof Schema.String;
|
482
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
556
483
|
} & {
|
557
484
|
requestId: typeof Schema.String;
|
558
485
|
}>;
|
@@ -565,11 +492,9 @@ declare const SyncingInfo_base: Schema.Struct<{
|
|
565
492
|
export declare class SyncingInfo extends SyncingInfo_base {
|
566
493
|
}
|
567
494
|
declare const SyncingInfoRes_base: Schema.Struct<{
|
568
|
-
_tag: Schema.tag<"LSD.SyncingInfoRes">;
|
569
|
-
} & {
|
570
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
495
|
+
_tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
|
571
496
|
} & {
|
572
|
-
|
497
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
573
498
|
} & {
|
574
499
|
requestId: typeof Schema.String;
|
575
500
|
} & {
|
@@ -578,33 +503,27 @@ declare const SyncingInfoRes_base: Schema.Struct<{
|
|
578
503
|
export declare class SyncingInfoRes extends SyncingInfoRes_base {
|
579
504
|
}
|
580
505
|
declare const SyncHistorySubscribe_base: Schema.Struct<{
|
581
|
-
_tag: Schema.tag<"LSD.SyncHistorySubscribe">;
|
506
|
+
_tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
|
582
507
|
} & {
|
583
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
584
|
-
} & {
|
585
|
-
appHostId: typeof Schema.String;
|
508
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
586
509
|
} & {
|
587
510
|
requestId: typeof Schema.String;
|
588
511
|
}>;
|
589
512
|
export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
|
590
513
|
}
|
591
514
|
declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
|
592
|
-
_tag: Schema.tag<"LSD.SyncHistoryUnsubscribe">;
|
515
|
+
_tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
|
593
516
|
} & {
|
594
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
595
|
-
} & {
|
596
|
-
appHostId: typeof Schema.String;
|
517
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
597
518
|
} & {
|
598
519
|
requestId: typeof Schema.String;
|
599
520
|
}>;
|
600
521
|
export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base {
|
601
522
|
}
|
602
523
|
declare const SyncHistoryRes_base: Schema.Struct<{
|
603
|
-
_tag: Schema.tag<"LSD.SyncHistoryRes">;
|
604
|
-
} & {
|
605
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
524
|
+
_tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
|
606
525
|
} & {
|
607
|
-
|
526
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
608
527
|
} & {
|
609
528
|
requestId: typeof Schema.String;
|
610
529
|
} & {
|
@@ -635,37 +554,10 @@ declare const SyncHistoryRes_base: Schema.Struct<{
|
|
635
554
|
}>;
|
636
555
|
export declare class SyncHistoryRes extends SyncHistoryRes_base {
|
637
556
|
}
|
638
|
-
declare const DevtoolsReady_base: Schema.Struct<{
|
639
|
-
_tag: Schema.tag<"LSD.DevtoolsReady">;
|
640
|
-
} & {
|
641
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
642
|
-
}>;
|
643
|
-
export declare class DevtoolsReady extends DevtoolsReady_base {
|
644
|
-
}
|
645
|
-
declare const DevtoolsConnected_base: Schema.Struct<{
|
646
|
-
_tag: Schema.tag<"LSD.DevtoolsConnected">;
|
647
|
-
} & {
|
648
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
649
|
-
} & {
|
650
|
-
appHostId: typeof Schema.String;
|
651
|
-
}>;
|
652
|
-
export declare class DevtoolsConnected extends DevtoolsConnected_base {
|
653
|
-
}
|
654
|
-
declare const AppHostReady_base: Schema.Struct<{
|
655
|
-
_tag: Schema.tag<"LSD.AppHostReady">;
|
656
|
-
} & {
|
657
|
-
liveStoreVersion: Schema.Literal<["0.2.0-dev.1"]>;
|
658
|
-
} & {
|
659
|
-
appHostId: typeof Schema.String;
|
660
|
-
} & {
|
661
|
-
isLeader: typeof Schema.Boolean;
|
662
|
-
}>;
|
663
|
-
export declare class AppHostReady extends AppHostReady_base {
|
664
|
-
}
|
665
557
|
declare const Disconnect_base: Schema.Struct<{
|
666
558
|
_tag: Schema.tag<"LSD.Disconnect">;
|
667
559
|
} & {
|
668
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
560
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
669
561
|
} & {
|
670
562
|
appHostId: typeof Schema.String;
|
671
563
|
}>;
|
@@ -674,9 +566,7 @@ export declare class Disconnect extends Disconnect_base {
|
|
674
566
|
declare const Ping_base: Schema.Struct<{
|
675
567
|
_tag: Schema.tag<"LSD.Ping">;
|
676
568
|
} & {
|
677
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
678
|
-
} & {
|
679
|
-
appHostId: typeof Schema.String;
|
569
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
680
570
|
} & {
|
681
571
|
requestId: typeof Schema.String;
|
682
572
|
}>;
|
@@ -685,21 +575,19 @@ export declare class Ping extends Ping_base {
|
|
685
575
|
declare const Pong_base: Schema.Struct<{
|
686
576
|
_tag: Schema.tag<"LSD.Pong">;
|
687
577
|
} & {
|
688
|
-
liveStoreVersion: Schema.Literal<["0.2.0
|
689
|
-
} & {
|
690
|
-
appHostId: typeof Schema.String;
|
578
|
+
liveStoreVersion: Schema.Literal<["0.2.0"]>;
|
691
579
|
} & {
|
692
580
|
requestId: typeof Schema.String;
|
693
581
|
}>;
|
694
582
|
export declare class Pong extends Pong_base {
|
695
583
|
}
|
696
|
-
export declare const
|
697
|
-
export type
|
698
|
-
export declare const
|
699
|
-
export type
|
700
|
-
export declare const
|
701
|
-
export type
|
702
|
-
export declare const
|
703
|
-
export type
|
584
|
+
export declare const MessageToAppLeader: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq, typeof ResetAllDataReq, typeof NetworkStatusSubscribe, typeof NetworkStatusUnsubscribe, typeof Disconnect, typeof RunMutationReq, typeof Ping, typeof DatabaseFileInfoReq, typeof SyncHistorySubscribe, typeof SyncHistoryUnsubscribe, typeof SyncingInfoReq]>;
|
585
|
+
export type MessageToAppLeader = typeof MessageToAppLeader.Type;
|
586
|
+
export declare const MessageToAppClientSession: Schema.Union<[typeof DebugInfoReq, typeof DebugInfoHistorySubscribe, typeof DebugInfoHistoryUnsubscribe, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof ReactivityGraphSubscribe, typeof ReactivityGraphUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof Disconnect]>;
|
587
|
+
export type MessageToAppClientSession = typeof MessageToAppClientSession.Type;
|
588
|
+
export declare const MessageFromAppLeader: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof ResetAllDataRes, typeof Disconnect, typeof MutationBroadcast, typeof NetworkStatusRes, typeof RunMutationRes, typeof Pong, typeof DatabaseFileInfoRes, typeof SyncHistoryRes, typeof SyncingInfoRes]>;
|
589
|
+
export type MessageFromAppLeader = typeof MessageFromAppLeader.Type;
|
590
|
+
export declare const MessageFromAppClientSession: Schema.Union<[typeof DebugInfoRes, typeof DebugInfoHistoryRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof ReactivityGraphRes, typeof LiveQueriesRes, typeof Disconnect]>;
|
591
|
+
export type MessageFromAppClientSession = typeof MessageFromAppClientSession.Type;
|
704
592
|
export {};
|
705
593
|
//# sourceMappingURL=devtools-messages.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA
|
1
|
+
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"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"}
|