@livestore/common 0.3.0-dev.4 → 0.3.0-dev.6
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/adapter-types.d.ts +26 -23
- package/dist/adapter-types.d.ts.map +1 -1
- package/dist/adapter-types.js.map +1 -1
- package/dist/derived-mutations.d.ts +4 -4
- package/dist/derived-mutations.d.ts.map +1 -1
- package/dist/derived-mutations.test.js.map +1 -1
- package/dist/devtools/devtools-bridge.d.ts +2 -1
- package/dist/devtools/devtools-bridge.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.d.ts +90 -102
- package/dist/devtools/devtools-messages.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.js +9 -6
- package/dist/devtools/devtools-messages.js.map +1 -1
- package/dist/leader-thread/apply-mutation.d.ts +5 -2
- package/dist/leader-thread/apply-mutation.d.ts.map +1 -1
- package/dist/leader-thread/apply-mutation.js +37 -25
- package/dist/leader-thread/apply-mutation.js.map +1 -1
- package/dist/leader-thread/leader-sync-processor.d.ts.map +1 -1
- package/dist/leader-thread/leader-sync-processor.js +20 -12
- package/dist/leader-thread/leader-sync-processor.js.map +1 -1
- package/dist/leader-thread/leader-worker-devtools.d.ts.map +1 -1
- package/dist/leader-thread/leader-worker-devtools.js +22 -66
- package/dist/leader-thread/leader-worker-devtools.js.map +1 -1
- package/dist/leader-thread/make-leader-thread-layer.d.ts +4 -2
- package/dist/leader-thread/make-leader-thread-layer.d.ts.map +1 -1
- package/dist/leader-thread/make-leader-thread-layer.js +5 -2
- package/dist/leader-thread/make-leader-thread-layer.js.map +1 -1
- package/dist/leader-thread/mutationlog.d.ts +4 -17
- package/dist/leader-thread/mutationlog.d.ts.map +1 -1
- package/dist/leader-thread/mutationlog.js +2 -1
- package/dist/leader-thread/mutationlog.js.map +1 -1
- package/dist/leader-thread/pull-queue-set.d.ts.map +1 -1
- package/dist/leader-thread/recreate-db.d.ts.map +1 -1
- package/dist/leader-thread/recreate-db.js +9 -3
- package/dist/leader-thread/recreate-db.js.map +1 -1
- package/dist/leader-thread/types.d.ts +7 -5
- package/dist/leader-thread/types.d.ts.map +1 -1
- package/dist/leader-thread/types.js.map +1 -1
- package/dist/mutation.d.ts +9 -2
- package/dist/mutation.d.ts.map +1 -1
- package/dist/mutation.js +5 -5
- package/dist/mutation.js.map +1 -1
- package/dist/query-builder/impl.d.ts +1 -1
- package/dist/rehydrate-from-mutationlog.d.ts +2 -2
- package/dist/rehydrate-from-mutationlog.d.ts.map +1 -1
- package/dist/rehydrate-from-mutationlog.js +13 -19
- package/dist/rehydrate-from-mutationlog.js.map +1 -1
- package/dist/schema/EventId.d.ts +16 -14
- package/dist/schema/EventId.d.ts.map +1 -1
- package/dist/schema/EventId.js +15 -7
- package/dist/schema/EventId.js.map +1 -1
- package/dist/schema/MutationEvent.d.ts +49 -74
- package/dist/schema/MutationEvent.d.ts.map +1 -1
- package/dist/schema/MutationEvent.js +29 -13
- package/dist/schema/MutationEvent.js.map +1 -1
- package/dist/schema/system-tables.d.ts +26 -26
- package/dist/schema/system-tables.d.ts.map +1 -1
- package/dist/schema/system-tables.js +19 -11
- package/dist/schema/system-tables.js.map +1 -1
- package/dist/schema-management/migrations.js +6 -6
- package/dist/schema-management/migrations.js.map +1 -1
- package/dist/sync/client-session-sync-processor.d.ts +4 -4
- package/dist/sync/client-session-sync-processor.d.ts.map +1 -1
- package/dist/sync/next/history-dag-common.d.ts +1 -4
- package/dist/sync/next/history-dag-common.d.ts.map +1 -1
- package/dist/sync/next/history-dag-common.js +1 -1
- package/dist/sync/next/history-dag-common.js.map +1 -1
- package/dist/sync/next/rebase-events.d.ts +3 -3
- package/dist/sync/next/rebase-events.d.ts.map +1 -1
- package/dist/sync/next/rebase-events.js +3 -2
- package/dist/sync/next/rebase-events.js.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.d.ts.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.js +3 -9
- package/dist/sync/next/test/mutation-fixtures.js.map +1 -1
- package/dist/sync/sync.d.ts +6 -6
- package/dist/sync/sync.d.ts.map +1 -1
- package/dist/sync/sync.js.map +1 -1
- package/dist/sync/syncstate.d.ts +10 -10
- package/dist/sync/syncstate.test.js +2 -6
- package/dist/sync/syncstate.test.js.map +1 -1
- package/dist/sync/validate-push-payload.d.ts +2 -2
- package/dist/sync/validate-push-payload.d.ts.map +1 -1
- package/dist/sync/validate-push-payload.js +2 -2
- package/dist/sync/validate-push-payload.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -5
- package/src/adapter-types.ts +22 -24
- package/src/derived-mutations.test.ts +1 -1
- package/src/derived-mutations.ts +9 -5
- package/src/devtools/devtools-bridge.ts +2 -1
- package/src/devtools/devtools-messages.ts +9 -6
- package/src/leader-thread/apply-mutation.ts +48 -30
- package/src/leader-thread/leader-sync-processor.ts +26 -15
- package/src/leader-thread/leader-worker-devtools.ts +30 -109
- package/src/leader-thread/make-leader-thread-layer.ts +15 -5
- package/src/leader-thread/mutationlog.ts +9 -5
- package/src/leader-thread/recreate-db.ts +9 -5
- package/src/leader-thread/types.ts +7 -8
- package/src/mutation.ts +17 -7
- package/src/rehydrate-from-mutationlog.ts +15 -23
- package/src/schema/EventId.ts +23 -9
- package/src/schema/MutationEvent.ts +40 -20
- package/src/schema/system-tables.ts +19 -11
- package/src/schema-management/migrations.ts +6 -6
- package/src/sync/client-session-sync-processor.ts +4 -4
- package/src/sync/next/history-dag-common.ts +1 -1
- package/src/sync/next/rebase-events.ts +7 -7
- package/src/sync/next/test/mutation-fixtures.ts +3 -10
- package/src/sync/sync.ts +4 -2
- package/src/sync/syncstate.test.ts +4 -4
- package/src/sync/validate-push-payload.ts +7 -4
- package/src/version.ts +1 -1
package/dist/adapter-types.d.ts
CHANGED
@@ -25,8 +25,32 @@ export type SynchronousDatabaseChangeset = {
|
|
25
25
|
export type ClientSession = {
|
26
26
|
/** SQLite database with synchronous API running in the same thread (usually in-memory) */
|
27
27
|
syncDb: SynchronousDatabase;
|
28
|
-
|
29
|
-
|
28
|
+
devtools: {
|
29
|
+
enabled: boolean;
|
30
|
+
};
|
31
|
+
clientId: string;
|
32
|
+
sessionId: string;
|
33
|
+
/** Status info whether current session is leader or not */
|
34
|
+
lockStatus: SubscriptionRef.SubscriptionRef<LockStatus>;
|
35
|
+
shutdown: (cause: Cause.Cause<UnexpectedError | IntentionalShutdownCause>) => Effect.Effect<void>;
|
36
|
+
/** A proxy API to communicate with the leader thread */
|
37
|
+
leaderThread: ClientSessionLeaderThreadProxy;
|
38
|
+
};
|
39
|
+
export type ClientSessionLeaderThreadProxy = {
|
40
|
+
mutations: {
|
41
|
+
pull: Stream.Stream<{
|
42
|
+
payload: PayloadUpstream;
|
43
|
+
remaining: number;
|
44
|
+
}, UnexpectedError>;
|
45
|
+
push(batch: ReadonlyArray<MutationEvent.AnyEncoded>): Effect.Effect<void, UnexpectedError | InvalidPushError>;
|
46
|
+
initialMutationEventId: EventId;
|
47
|
+
};
|
48
|
+
export: Effect.Effect<Uint8Array, UnexpectedError>;
|
49
|
+
getMutationLogData: Effect.Effect<Uint8Array, UnexpectedError>;
|
50
|
+
getSyncState: Effect.Effect<SyncState, UnexpectedError>;
|
51
|
+
networkStatus: SubscriptionRef.SubscriptionRef<NetworkStatus>;
|
52
|
+
/** For debugging purposes it can be useful to manually trigger devtools messages (e.g. to reset the database) */
|
53
|
+
sendDevtoolsMessage: (message: Devtools.MessageToAppLeader) => Effect.Effect<void, UnexpectedError>;
|
30
54
|
};
|
31
55
|
export type SynchronousDatabase<TReq = any, TMetadata extends TReq = TReq> = {
|
32
56
|
_tag: 'SynchronousDatabase';
|
@@ -101,27 +125,6 @@ export declare const BootStatus: Schema.Union<[Schema.Struct<{
|
|
101
125
|
stage: Schema.Literal<["done"]>;
|
102
126
|
}>]>;
|
103
127
|
export type BootStatus = typeof BootStatus.Type;
|
104
|
-
export type Coordinator = {
|
105
|
-
devtools: {
|
106
|
-
enabled: boolean;
|
107
|
-
appHostId: string;
|
108
|
-
};
|
109
|
-
sessionId: string;
|
110
|
-
lockStatus: SubscriptionRef.SubscriptionRef<LockStatus>;
|
111
|
-
mutations: {
|
112
|
-
pull: Stream.Stream<{
|
113
|
-
payload: PayloadUpstream;
|
114
|
-
remaining: number;
|
115
|
-
}, UnexpectedError>;
|
116
|
-
push(batch: ReadonlyArray<MutationEvent.AnyEncoded>): Effect.Effect<void, UnexpectedError | InvalidPushError>;
|
117
|
-
initialMutationEventId: EventId;
|
118
|
-
};
|
119
|
-
export: Effect.Effect<Uint8Array, UnexpectedError>;
|
120
|
-
getMutationLogData: Effect.Effect<Uint8Array, UnexpectedError>;
|
121
|
-
getLeaderSyncState: Effect.Effect<SyncState, UnexpectedError>;
|
122
|
-
networkStatus: SubscriptionRef.SubscriptionRef<NetworkStatus>;
|
123
|
-
shutdown: (cause: Cause.Cause<UnexpectedError | IntentionalShutdownCause>) => Effect.Effect<void>;
|
124
|
-
};
|
125
128
|
/**
|
126
129
|
* Can be used in queries to refer to the current session id.
|
127
130
|
* Will be replaced with the actual session id at runtime
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"adapter-types.d.ts","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhE,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EA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MAAM,CAAA;IACf,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC1D,sBAAsB,EAAE,sBAAsB,CAAA;CAC/C,KAAK,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"adapter-types.js","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;
|
1
|
+
{"version":3,"file":"adapter-types.js","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAwFhE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAC1C;IACE,QAAQ,EAAE,MAAM,CAAC,MAAM;CACxB,EACD,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,CAC1C,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,2BAA2B,EAAE,CAAC,CAAA;AAMrD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC,OAAO;IAC3B,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAA;AAOF,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,KAAK,EAAE,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AM,CAAC,MAAM,CAAC;IACpC,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC;CAAG"}
|
@@ -95,14 +95,14 @@ export type DerivedMutationHelperFns<TColumns extends SqliteDsl.ConstraintColumn
|
|
95
95
|
delete: DerivedMutationHelperFns.DeleteMutationFn<TColumns, TOptions>;
|
96
96
|
};
|
97
97
|
export declare namespace DerivedMutationHelperFns {
|
98
|
-
export type InsertMutationFn<TColumns extends SqliteDsl.ConstraintColumns, TOptions extends DbSchema.TableOptions> = SqliteDsl.AnyIfConstained<TColumns, UseShortcut<TOptions> extends true ? (values?: GetValForKey<SqliteDsl.FromColumns.InsertRowDecoded<TColumns>, 'value'>) => MutationEvent.
|
99
|
-
export type UpdateMutationFn<TColumns extends SqliteDsl.ConstraintColumns, TOptions extends DbSchema.TableOptions> = SqliteDsl.AnyIfConstained<TColumns, UseShortcut<TOptions> extends true ? (values: Partial<GetValForKey<SqliteDsl.FromColumns.RowDecoded<TColumns>, 'value'>>) => MutationEvent.
|
98
|
+
export type InsertMutationFn<TColumns extends SqliteDsl.ConstraintColumns, TOptions extends DbSchema.TableOptions> = SqliteDsl.AnyIfConstained<TColumns, UseShortcut<TOptions> extends true ? (values?: GetValForKey<SqliteDsl.FromColumns.InsertRowDecoded<TColumns>, 'value'>) => MutationEvent.PartialAnyDecoded : (values: SqliteDsl.FromColumns.InsertRowDecoded<TColumns>) => MutationEvent.PartialAnyDecoded>;
|
99
|
+
export type UpdateMutationFn<TColumns extends SqliteDsl.ConstraintColumns, TOptions extends DbSchema.TableOptions> = SqliteDsl.AnyIfConstained<TColumns, UseShortcut<TOptions> extends true ? (values: Partial<GetValForKey<SqliteDsl.FromColumns.RowDecoded<TColumns>, 'value'>>) => MutationEvent.PartialAnyDecoded : (args: {
|
100
100
|
where: Partial<SqliteDsl.FromColumns.RowDecoded<TColumns>>;
|
101
101
|
values: Partial<SqliteDsl.FromColumns.RowDecoded<TColumns>>;
|
102
|
-
}) => MutationEvent.
|
102
|
+
}) => MutationEvent.PartialAnyDecoded>;
|
103
103
|
export type DeleteMutationFn<TColumns extends SqliteDsl.ConstraintColumns, _TOptions extends DbSchema.TableOptions> = (args: {
|
104
104
|
where: Partial<SqliteDsl.FromColumns.RowDecoded<TColumns>>;
|
105
|
-
}) => MutationEvent.
|
105
|
+
}) => MutationEvent.PartialAnyDecoded;
|
106
106
|
type UseShortcut<TOptions extends DbSchema.TableOptions> = TOptions['isSingleColumn'] extends true ? TOptions['isSingleton'] extends true ? true : false : false;
|
107
107
|
export {};
|
108
108
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"derived-mutations.d.ts","sourceRoot":"","sources":["../src/derived-mutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAGpD,OAAO,KAAK,KAAK,aAAa,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,KAAK,QAAQ,MAAM,uBAAuB,CAAA;AAGtD,eAAO,MAAM,+BAA+B,GAC1C,SAAS,SAAS,QAAQ,CAAC,YAAY,CACrC,QAAQ,CAAC,gCAAgC,EACzC,QAAQ,CAAC,YAAY,GAAG;IAAE,eAAe,EAAE;QAAE,OAAO,EAAE,IAAI,CAAA;KAAE,CAAA;CAAE,CAC/D,SAEM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhB,CAAA;AAEF,eAAO,MAAM,uBAAuB,GAClC,SAAS,SAAS,QAAQ,CAAC,YAAY,CACrC,QAAQ,CAAC,gCAAgC,EACzC,QAAQ,CAAC,YAAY,GAAG;IAAE,eAAe,EAAE;QAAE,OAAO,EAAE,IAAI,CAAA;KAAE,CAAA;CAAE,CAC/D,SAEM,SAAS;;;;;;;;EA6BjB,CAAA;AAED,eAAO,MAAM,uBAAuB,GAClC,SAAS,SAAS,QAAQ,CAAC,YAA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repareDevtoolsBridge = {
|
|
4
4
|
/** Messages coming from the app host (usually responses to requests) */
|
5
5
|
responsePubSub: PubSub.PubSub<Devtools.MessageFromAppLeader | Devtools.MessageFromAppClientSession>;
|
6
6
|
sendToAppHost: (msg: Devtools.MessageToAppLeader | Devtools.MessageToAppClientSession) => Effect.Effect<void>;
|
7
|
-
|
7
|
+
clientId: string;
|
8
|
+
sessionId: string;
|
8
9
|
copyToClipboard: (text: string) => Effect.Effect<void>;
|
9
10
|
sendEscapeKey?: Effect.Effect<void>;
|
10
11
|
isLeader: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devtools-bridge.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAE7D,OAAO,KAAK,KAAK,QAAQ,MAAM,wBAAwB,CAAA;AAEvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,wEAAwE;IACxE,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,GAAG,QAAQ,CAAC,2BAA2B,CAAC,CAAA;IACnG,aAAa,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,kBAAkB,GAAG,QAAQ,CAAC,yBAAyB,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7G,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACnC,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
1
|
+
{"version":3,"file":"devtools-bridge.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAE7D,OAAO,KAAK,KAAK,QAAQ,MAAM,wBAAwB,CAAA;AAEvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,wEAAwE;IACxE,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,GAAG,QAAQ,CAAC,2BAA2B,CAAC,CAAA;IACnG,aAAa,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,kBAAkB,GAAG,QAAQ,CAAC,yBAAyB,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7G,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACnC,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
@@ -2,7 +2,7 @@ import { Schema } from '@livestore/utils/effect';
|
|
2
2
|
declare const SnapshotReq_base: Schema.Struct<{
|
3
3
|
_tag: Schema.tag<"LSD.Leader.SnapshotReq">;
|
4
4
|
} & {
|
5
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
5
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
6
6
|
} & {
|
7
7
|
requestId: typeof Schema.String;
|
8
8
|
}>;
|
@@ -11,7 +11,7 @@ export declare class SnapshotReq extends SnapshotReq_base {
|
|
11
11
|
declare const SnapshotRes_base: Schema.Struct<{
|
12
12
|
_tag: Schema.tag<"LSD.Leader.SnapshotRes">;
|
13
13
|
} & {
|
14
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
14
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
15
15
|
} & {
|
16
16
|
requestId: typeof Schema.String;
|
17
17
|
} & {
|
@@ -22,7 +22,7 @@ export declare class SnapshotRes extends SnapshotRes_base {
|
|
22
22
|
declare const LoadDatabaseFileReq_base: Schema.Struct<{
|
23
23
|
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileReq">;
|
24
24
|
} & {
|
25
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
25
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
26
26
|
} & {
|
27
27
|
requestId: typeof Schema.String;
|
28
28
|
} & {
|
@@ -33,7 +33,7 @@ export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
|
|
33
33
|
declare const LoadDatabaseFileRes_base: Schema.Struct<{
|
34
34
|
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileRes">;
|
35
35
|
} & {
|
36
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
36
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
37
37
|
} & {
|
38
38
|
requestId: typeof Schema.String;
|
39
39
|
} & {
|
@@ -44,9 +44,10 @@ export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
|
|
44
44
|
declare const DebugInfoReq_base: Schema.Struct<{
|
45
45
|
_tag: Schema.tag<"LSD.DebugInfoReq">;
|
46
46
|
} & {
|
47
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
47
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
48
48
|
} & {
|
49
|
-
|
49
|
+
clientId: typeof Schema.String;
|
50
|
+
sessionId: typeof Schema.String;
|
50
51
|
requestId: typeof Schema.String;
|
51
52
|
}>;
|
52
53
|
export declare class DebugInfoReq extends DebugInfoReq_base {
|
@@ -54,9 +55,10 @@ export declare class DebugInfoReq extends DebugInfoReq_base {
|
|
54
55
|
declare const DebugInfoRes_base: Schema.Struct<{
|
55
56
|
_tag: Schema.tag<"LSD.DebugInfoRes">;
|
56
57
|
} & {
|
57
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
58
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
58
59
|
} & {
|
59
|
-
|
60
|
+
clientId: typeof Schema.String;
|
61
|
+
sessionId: typeof Schema.String;
|
60
62
|
requestId: typeof Schema.String;
|
61
63
|
} & {
|
62
64
|
debugInfo: Schema.Struct<{
|
@@ -113,9 +115,10 @@ export declare class DebugInfoRes extends DebugInfoRes_base {
|
|
113
115
|
declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
|
114
116
|
_tag: Schema.tag<"LSD.DebugInfoHistorySubscribe">;
|
115
117
|
} & {
|
116
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
118
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
117
119
|
} & {
|
118
|
-
|
120
|
+
clientId: typeof Schema.String;
|
121
|
+
sessionId: typeof Schema.String;
|
119
122
|
requestId: typeof Schema.String;
|
120
123
|
}>;
|
121
124
|
export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe_base {
|
@@ -123,9 +126,10 @@ export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe
|
|
123
126
|
declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
124
127
|
_tag: Schema.tag<"LSD.DebugInfoHistoryRes">;
|
125
128
|
} & {
|
126
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
129
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
127
130
|
} & {
|
128
|
-
|
131
|
+
clientId: typeof Schema.String;
|
132
|
+
sessionId: typeof Schema.String;
|
129
133
|
requestId: typeof Schema.String;
|
130
134
|
} & {
|
131
135
|
debugInfoHistory: Schema.Array$<Schema.Struct<{
|
@@ -182,9 +186,10 @@ export declare class DebugInfoHistoryRes extends DebugInfoHistoryRes_base {
|
|
182
186
|
declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
|
183
187
|
_tag: Schema.tag<"LSD.DebugInfoHistoryUnsubscribe">;
|
184
188
|
} & {
|
185
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
189
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
186
190
|
} & {
|
187
|
-
|
191
|
+
clientId: typeof Schema.String;
|
192
|
+
sessionId: typeof Schema.String;
|
188
193
|
requestId: typeof Schema.String;
|
189
194
|
}>;
|
190
195
|
export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubscribe_base {
|
@@ -192,9 +197,10 @@ export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubsc
|
|
192
197
|
declare const DebugInfoResetReq_base: Schema.Struct<{
|
193
198
|
_tag: Schema.tag<"LSD.DebugInfoResetReq">;
|
194
199
|
} & {
|
195
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
200
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
196
201
|
} & {
|
197
|
-
|
202
|
+
clientId: typeof Schema.String;
|
203
|
+
sessionId: typeof Schema.String;
|
198
204
|
requestId: typeof Schema.String;
|
199
205
|
}>;
|
200
206
|
export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
@@ -202,9 +208,10 @@ export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
|
202
208
|
declare const DebugInfoResetRes_base: Schema.Struct<{
|
203
209
|
_tag: Schema.tag<"LSD.DebugInfoResetRes">;
|
204
210
|
} & {
|
205
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
211
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
206
212
|
} & {
|
207
|
-
|
213
|
+
clientId: typeof Schema.String;
|
214
|
+
sessionId: typeof Schema.String;
|
208
215
|
requestId: typeof Schema.String;
|
209
216
|
}>;
|
210
217
|
export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
@@ -212,9 +219,10 @@ export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
|
212
219
|
declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
|
213
220
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryReq">;
|
214
221
|
} & {
|
215
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
222
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
216
223
|
} & {
|
217
|
-
|
224
|
+
clientId: typeof Schema.String;
|
225
|
+
sessionId: typeof Schema.String;
|
218
226
|
requestId: typeof Schema.String;
|
219
227
|
} & {
|
220
228
|
queryStr: typeof Schema.String;
|
@@ -226,9 +234,10 @@ export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base
|
|
226
234
|
declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
|
227
235
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryRes">;
|
228
236
|
} & {
|
229
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
237
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
230
238
|
} & {
|
231
|
-
|
239
|
+
clientId: typeof Schema.String;
|
240
|
+
sessionId: typeof Schema.String;
|
232
241
|
requestId: typeof Schema.String;
|
233
242
|
}>;
|
234
243
|
export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base {
|
@@ -236,38 +245,27 @@ export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base
|
|
236
245
|
declare const MutationBroadcast_base: Schema.Struct<{
|
237
246
|
_tag: Schema.tag<"LSD.Leader.MutationBroadcast">;
|
238
247
|
} & {
|
239
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
240
|
-
} & {
|
241
|
-
mutationEventEncoded: Schema.
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
}
|
252
|
-
}
|
253
|
-
readonly id: {
|
254
|
-
readonly global: number;
|
255
|
-
readonly local: number;
|
256
|
-
};
|
257
|
-
readonly mutation: string;
|
258
|
-
readonly args: any;
|
259
|
-
readonly parentId: {
|
260
|
-
readonly global: number;
|
261
|
-
readonly local: number;
|
262
|
-
};
|
263
|
-
}, never>;
|
248
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
249
|
+
} & {
|
250
|
+
mutationEventEncoded: Schema.Struct<{
|
251
|
+
mutation: typeof Schema.String;
|
252
|
+
args: typeof Schema.Any;
|
253
|
+
id: Schema.Struct<{
|
254
|
+
global: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
255
|
+
local: Schema.BrandSchema<number & import("effect/Brand").Brand<"LocalEventId">, number, never>;
|
256
|
+
}>;
|
257
|
+
parentId: Schema.Struct<{
|
258
|
+
global: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
259
|
+
local: Schema.BrandSchema<number & import("effect/Brand").Brand<"LocalEventId">, number, never>;
|
260
|
+
}>;
|
261
|
+
}>;
|
264
262
|
}>;
|
265
263
|
export declare class MutationBroadcast extends MutationBroadcast_base {
|
266
264
|
}
|
267
265
|
declare const RunMutationReq_base: Schema.Struct<{
|
268
266
|
_tag: Schema.tag<"LSD.Leader.RunMutationReq">;
|
269
267
|
} & {
|
270
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
268
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
271
269
|
} & {
|
272
270
|
requestId: typeof Schema.String;
|
273
271
|
} & {
|
@@ -284,7 +282,7 @@ export declare class RunMutationReq extends RunMutationReq_base {
|
|
284
282
|
declare const RunMutationRes_base: Schema.Struct<{
|
285
283
|
_tag: Schema.tag<"LSD.Leader.RunMutationRes">;
|
286
284
|
} & {
|
287
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
285
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
288
286
|
} & {
|
289
287
|
requestId: typeof Schema.String;
|
290
288
|
}>;
|
@@ -293,7 +291,7 @@ export declare class RunMutationRes extends RunMutationRes_base {
|
|
293
291
|
declare const MutationLogReq_base: Schema.Struct<{
|
294
292
|
_tag: Schema.tag<"LSD.Leader.MutationLogReq">;
|
295
293
|
} & {
|
296
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
294
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
297
295
|
} & {
|
298
296
|
requestId: typeof Schema.String;
|
299
297
|
}>;
|
@@ -302,7 +300,7 @@ export declare class MutationLogReq extends MutationLogReq_base {
|
|
302
300
|
declare const MutationLogRes_base: Schema.Struct<{
|
303
301
|
_tag: Schema.tag<"LSD.Leader.MutationLogRes">;
|
304
302
|
} & {
|
305
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
303
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
306
304
|
} & {
|
307
305
|
requestId: typeof Schema.String;
|
308
306
|
} & {
|
@@ -313,9 +311,10 @@ export declare class MutationLogRes extends MutationLogRes_base {
|
|
313
311
|
declare const ReactivityGraphSubscribe_base: Schema.Struct<{
|
314
312
|
_tag: Schema.tag<"LSD.ReactivityGraphSubscribe">;
|
315
313
|
} & {
|
316
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
314
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
317
315
|
} & {
|
318
|
-
|
316
|
+
clientId: typeof Schema.String;
|
317
|
+
sessionId: typeof Schema.String;
|
319
318
|
requestId: typeof Schema.String;
|
320
319
|
} & {
|
321
320
|
includeResults: typeof Schema.Boolean;
|
@@ -325,9 +324,10 @@ export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_b
|
|
325
324
|
declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
|
326
325
|
_tag: Schema.tag<"LSD.ReactivityGraphUnsubscribe">;
|
327
326
|
} & {
|
328
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
327
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
329
328
|
} & {
|
330
|
-
|
329
|
+
clientId: typeof Schema.String;
|
330
|
+
sessionId: typeof Schema.String;
|
331
331
|
requestId: typeof Schema.String;
|
332
332
|
}>;
|
333
333
|
export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscribe_base {
|
@@ -335,9 +335,10 @@ export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscri
|
|
335
335
|
declare const ReactivityGraphRes_base: Schema.Struct<{
|
336
336
|
_tag: Schema.tag<"LSD.ReactivityGraphRes">;
|
337
337
|
} & {
|
338
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
338
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
339
339
|
} & {
|
340
|
-
|
340
|
+
clientId: typeof Schema.String;
|
341
|
+
sessionId: typeof Schema.String;
|
341
342
|
requestId: typeof Schema.String;
|
342
343
|
} & {
|
343
344
|
reactivityGraph: typeof Schema.Any;
|
@@ -347,9 +348,10 @@ export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
|
|
347
348
|
declare const LiveQueriesSubscribe_base: Schema.Struct<{
|
348
349
|
_tag: Schema.tag<"LSD.LiveQueriesSubscribe">;
|
349
350
|
} & {
|
350
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
351
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
351
352
|
} & {
|
352
|
-
|
353
|
+
clientId: typeof Schema.String;
|
354
|
+
sessionId: typeof Schema.String;
|
353
355
|
requestId: typeof Schema.String;
|
354
356
|
}>;
|
355
357
|
export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
@@ -357,9 +359,10 @@ export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
|
357
359
|
declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
|
358
360
|
_tag: Schema.tag<"LSD.LiveQueriesUnsubscribe">;
|
359
361
|
} & {
|
360
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
362
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
361
363
|
} & {
|
362
|
-
|
364
|
+
clientId: typeof Schema.String;
|
365
|
+
sessionId: typeof Schema.String;
|
363
366
|
requestId: typeof Schema.String;
|
364
367
|
}>;
|
365
368
|
export declare class LiveQueriesUnsubscribe extends LiveQueriesUnsubscribe_base {
|
@@ -383,9 +386,10 @@ export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
|
|
383
386
|
declare const LiveQueriesRes_base: Schema.Struct<{
|
384
387
|
_tag: Schema.tag<"LSD.LiveQueriesRes">;
|
385
388
|
} & {
|
386
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
389
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
387
390
|
} & {
|
388
|
-
|
391
|
+
clientId: typeof Schema.String;
|
392
|
+
sessionId: typeof Schema.String;
|
389
393
|
requestId: typeof Schema.String;
|
390
394
|
} & {
|
391
395
|
liveQueries: Schema.Array$<typeof SerializedLiveQuery>;
|
@@ -395,7 +399,7 @@ export declare class LiveQueriesRes extends LiveQueriesRes_base {
|
|
395
399
|
declare const ResetAllDataReq_base: Schema.Struct<{
|
396
400
|
_tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
|
397
401
|
} & {
|
398
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
402
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
399
403
|
} & {
|
400
404
|
requestId: typeof Schema.String;
|
401
405
|
} & {
|
@@ -406,7 +410,7 @@ export declare class ResetAllDataReq extends ResetAllDataReq_base {
|
|
406
410
|
declare const ResetAllDataRes_base: Schema.Struct<{
|
407
411
|
_tag: Schema.tag<"LSD.Leader.ResetAllDataRes">;
|
408
412
|
} & {
|
409
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
413
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
410
414
|
} & {
|
411
415
|
requestId: typeof Schema.String;
|
412
416
|
}>;
|
@@ -415,7 +419,7 @@ export declare class ResetAllDataRes extends ResetAllDataRes_base {
|
|
415
419
|
declare const DatabaseFileInfoReq_base: Schema.Struct<{
|
416
420
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
|
417
421
|
} & {
|
418
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
422
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
419
423
|
} & {
|
420
424
|
requestId: typeof Schema.String;
|
421
425
|
}>;
|
@@ -435,7 +439,7 @@ export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
|
|
435
439
|
declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
436
440
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
|
437
441
|
} & {
|
438
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
442
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
439
443
|
} & {
|
440
444
|
requestId: typeof Schema.String;
|
441
445
|
} & {
|
@@ -447,7 +451,7 @@ export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
|
|
447
451
|
declare const NetworkStatusSubscribe_base: Schema.Struct<{
|
448
452
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
|
449
453
|
} & {
|
450
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
454
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
451
455
|
} & {
|
452
456
|
requestId: typeof Schema.String;
|
453
457
|
}>;
|
@@ -456,7 +460,7 @@ export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base
|
|
456
460
|
declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
|
457
461
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusUnsubscribe">;
|
458
462
|
} & {
|
459
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
463
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
460
464
|
} & {
|
461
465
|
requestId: typeof Schema.String;
|
462
466
|
}>;
|
@@ -465,7 +469,7 @@ export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_b
|
|
465
469
|
declare const NetworkStatusRes_base: Schema.Struct<{
|
466
470
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
|
467
471
|
} & {
|
468
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
472
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
469
473
|
} & {
|
470
474
|
requestId: typeof Schema.String;
|
471
475
|
} & {
|
@@ -479,7 +483,7 @@ export declare class NetworkStatusRes extends NetworkStatusRes_base {
|
|
479
483
|
declare const SyncingInfoReq_base: Schema.Struct<{
|
480
484
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
|
481
485
|
} & {
|
482
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
486
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
483
487
|
} & {
|
484
488
|
requestId: typeof Schema.String;
|
485
489
|
}>;
|
@@ -494,7 +498,7 @@ export declare class SyncingInfo extends SyncingInfo_base {
|
|
494
498
|
declare const SyncingInfoRes_base: Schema.Struct<{
|
495
499
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
|
496
500
|
} & {
|
497
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
501
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
498
502
|
} & {
|
499
503
|
requestId: typeof Schema.String;
|
500
504
|
} & {
|
@@ -505,7 +509,7 @@ export declare class SyncingInfoRes extends SyncingInfoRes_base {
|
|
505
509
|
declare const SyncHistorySubscribe_base: Schema.Struct<{
|
506
510
|
_tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
|
507
511
|
} & {
|
508
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
512
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
509
513
|
} & {
|
510
514
|
requestId: typeof Schema.String;
|
511
515
|
}>;
|
@@ -514,7 +518,7 @@ export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
|
|
514
518
|
declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
|
515
519
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
|
516
520
|
} & {
|
517
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
521
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
518
522
|
} & {
|
519
523
|
requestId: typeof Schema.String;
|
520
524
|
}>;
|
@@ -523,33 +527,16 @@ export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base
|
|
523
527
|
declare const SyncHistoryRes_base: Schema.Struct<{
|
524
528
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
|
525
529
|
} & {
|
526
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
530
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
527
531
|
} & {
|
528
532
|
requestId: typeof Schema.String;
|
529
533
|
} & {
|
530
|
-
mutationEventEncoded: Schema.
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
readonly args: any;
|
537
|
-
readonly parentId: {
|
538
|
-
readonly global: number;
|
539
|
-
readonly local: number;
|
540
|
-
};
|
541
|
-
}, {
|
542
|
-
readonly id: {
|
543
|
-
readonly global: number;
|
544
|
-
readonly local: number;
|
545
|
-
};
|
546
|
-
readonly mutation: string;
|
547
|
-
readonly args: any;
|
548
|
-
readonly parentId: {
|
549
|
-
readonly global: number;
|
550
|
-
readonly local: number;
|
551
|
-
};
|
552
|
-
}, never>;
|
534
|
+
mutationEventEncoded: Schema.Struct<{
|
535
|
+
mutation: typeof Schema.String;
|
536
|
+
args: typeof Schema.Any;
|
537
|
+
id: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
538
|
+
parentId: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
539
|
+
}>;
|
553
540
|
metadata: Schema.Option<Schema.Schema<Schema.JsonValue, Schema.JsonValue, never>>;
|
554
541
|
}>;
|
555
542
|
export declare class SyncHistoryRes extends SyncHistoryRes_base {
|
@@ -557,16 +544,17 @@ export declare class SyncHistoryRes extends SyncHistoryRes_base {
|
|
557
544
|
declare const Disconnect_base: Schema.Struct<{
|
558
545
|
_tag: Schema.tag<"LSD.Disconnect">;
|
559
546
|
} & {
|
560
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
547
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
561
548
|
} & {
|
562
|
-
|
549
|
+
clientId: typeof Schema.String;
|
550
|
+
sessionId: typeof Schema.String;
|
563
551
|
}>;
|
564
552
|
export declare class Disconnect extends Disconnect_base {
|
565
553
|
}
|
566
554
|
declare const Ping_base: Schema.Struct<{
|
567
555
|
_tag: Schema.tag<"LSD.Ping">;
|
568
556
|
} & {
|
569
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
557
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
570
558
|
} & {
|
571
559
|
requestId: typeof Schema.String;
|
572
560
|
}>;
|
@@ -575,7 +563,7 @@ export declare class Ping extends Ping_base {
|
|
575
563
|
declare const Pong_base: Schema.Struct<{
|
576
564
|
_tag: Schema.tag<"LSD.Pong">;
|
577
565
|
} & {
|
578
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
566
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.6"]>;
|
579
567
|
} & {
|
580
568
|
requestId: typeof Schema.String;
|
581
569
|
}>;
|