@gonvex/protocol 0.1.25 → 0.1.27
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/index.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,8 @@ export type ServerCapabilities = {
|
|
|
99
99
|
queryBatch?: 1;
|
|
100
100
|
/** Server accepts `mutation.callMany` batched offline-queue flushes. */
|
|
101
101
|
mutationBatch?: 1;
|
|
102
|
+
/** Server emits connection-level sync revision watermarks. */
|
|
103
|
+
syncWatermark?: 1;
|
|
102
104
|
};
|
|
103
105
|
export type QuerySubscribeRequest = {
|
|
104
106
|
id: string;
|
|
@@ -128,6 +130,13 @@ export type SyncReady = {
|
|
|
128
130
|
cursor: SyncCursor;
|
|
129
131
|
mode?: "eager" | "progressive";
|
|
130
132
|
digest?: string;
|
|
133
|
+
truncated?: boolean;
|
|
134
|
+
};
|
|
135
|
+
export type ClientCapabilities = {
|
|
136
|
+
/** Client accepts coalesced `sync.readyMany` server frames. */
|
|
137
|
+
syncReadyMany?: 1;
|
|
138
|
+
/** Client accepts connection-level `sync.watermark` server frames. */
|
|
139
|
+
syncWatermark?: 1;
|
|
131
140
|
};
|
|
132
141
|
export type GonvexManifest = {
|
|
133
142
|
project: string;
|
|
@@ -142,6 +151,7 @@ export type ClientMessage = {
|
|
|
142
151
|
project?: string;
|
|
143
152
|
tenant?: string;
|
|
144
153
|
device?: BrowserTelemetryInfo;
|
|
154
|
+
capabilities?: ClientCapabilities;
|
|
145
155
|
} | {
|
|
146
156
|
type: "query.subscribe";
|
|
147
157
|
id: string;
|
|
@@ -276,6 +286,9 @@ export type ServerMessage = {
|
|
|
276
286
|
} & SyncReady) | {
|
|
277
287
|
type: "sync.readyMany";
|
|
278
288
|
ready: SyncReady[];
|
|
289
|
+
} | {
|
|
290
|
+
type: "sync.watermark";
|
|
291
|
+
revision: number;
|
|
279
292
|
} | {
|
|
280
293
|
type: "sync.needHashes";
|
|
281
294
|
id: string;
|