@gonvex/protocol 0.1.30 → 0.1.32

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 (2) hide show
  1. package/dist/index.d.ts +13 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -122,6 +122,8 @@ export type MutationCallRequest = {
122
122
  path: string;
123
123
  args: JsonValue;
124
124
  trace?: MessageTrace;
125
+ /** Stable key for a replayable write; see the `mutation.call` message. */
126
+ idempotencyKey?: string;
125
127
  };
126
128
  export type SyncOpenRequest = {
127
129
  id: string;
@@ -213,6 +215,12 @@ export type ClientMessage = {
213
215
  path: string;
214
216
  args: JsonValue;
215
217
  trace?: MessageTrace;
218
+ /**
219
+ * Stable key for a replayable write from the client outbox. The runtime
220
+ * executes the mutation once per key and serves the stored result to
221
+ * every duplicate delivery.
222
+ */
223
+ idempotencyKey?: string;
216
224
  } | {
217
225
  type: "mutation.callMany";
218
226
  calls: MutationCallRequest[];
@@ -287,6 +295,7 @@ export type ServerMessage = {
287
295
  cacheScope?: string;
288
296
  cacheRevision?: string;
289
297
  subscriptionRevision?: SubscriptionRevision;
298
+ mutationIds?: string[];
290
299
  } | {
291
300
  type: "query.progress";
292
301
  id: string;
@@ -294,6 +303,7 @@ export type ServerMessage = {
294
303
  reason?: "initial" | "invalidate" | "recover";
295
304
  throughRevision: SubscriptionRevision;
296
305
  trace?: MessageTrace;
306
+ mutationIds?: string[];
297
307
  } | {
298
308
  type: "query.patch";
299
309
  id: string;
@@ -310,6 +320,7 @@ export type ServerMessage = {
310
320
  cacheScope?: string;
311
321
  cacheRevision?: string;
312
322
  trace?: MessageTrace;
323
+ mutationIds?: string[];
313
324
  } | {
314
325
  type: "query.pagePatch";
315
326
  id: string;
@@ -327,6 +338,7 @@ export type ServerMessage = {
327
338
  cacheScope?: string;
328
339
  cacheRevision?: string;
329
340
  trace?: MessageTrace;
341
+ mutationIds?: string[];
330
342
  } | {
331
343
  type: "query.objectPatch";
332
344
  id: string;
@@ -338,6 +350,7 @@ export type ServerMessage = {
338
350
  cacheScope?: string;
339
351
  cacheRevision?: string;
340
352
  trace?: MessageTrace;
353
+ mutationIds?: string[];
341
354
  } | {
342
355
  type: "sync.snapshot";
343
356
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonvex/protocol",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"