@gonvex/protocol 0.1.31 → 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 +8 -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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonvex/protocol",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"