@superdoc/sdk 2.24.0 → 2.25.0-next.2

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.
@@ -133,6 +133,7 @@ function supportsTrackedMode(operation) {
133
133
  return operation.supportsTrackedMode === true || operation.supportsConditionalTrackedMode === true;
134
134
  }
135
135
  function documentInvokePayload(operation, params, invokeOptions) {
136
+ params = transportCommon.captureMutationPlanAuthor(operation.operationId, params, invokeOptions);
136
137
  const normalizedParams = transportCommon.applyOperationParamAliases(operation, params);
137
138
  if (invokeOptions.stdinBytes !== undefined) {
138
139
  throw unsupported('Structured document RPC does not support stdinBytes.', operation.operationId);
@@ -1,7 +1,7 @@
1
1
  import { randomUUID } from 'node:crypto';
2
2
  import { SuperDocCliError } from './errors.js';
3
3
  import { SDK_POLICY } from './sdk-policy.js';
4
- import { applyOperationParamAliases, } from './transport-common.js';
4
+ import { applyOperationParamAliases, captureMutationPlanAuthor, } from './transport-common.js';
5
5
  export const DOCUMENT_RPC_FEATURES = SDK_POLICY.documentRpcFeatures;
6
6
  export const DOCUMENT_RPC_REPLACE_FILE_FEATURE = SDK_POLICY.features.replaceFile;
7
7
  export const DOCUMENT_RPC_DEFAULT_CHANGE_MODE_FEATURE = SDK_POLICY.features.defaultChangeMode;
@@ -130,6 +130,7 @@ function supportsTrackedMode(operation) {
130
130
  return operation.supportsTrackedMode === true || operation.supportsConditionalTrackedMode === true;
131
131
  }
132
132
  function documentInvokePayload(operation, params, invokeOptions) {
133
+ params = captureMutationPlanAuthor(operation.operationId, params, invokeOptions);
133
134
  const normalizedParams = applyOperationParamAliases(operation, params);
134
135
  if (invokeOptions.stdinBytes !== undefined) {
135
136
  throw unsupported('Structured document RPC does not support stdinBytes.', operation.operationId);
@@ -233,6 +233,7 @@ class HostTransport {
233
233
  await this.stateDirectory.dispose();
234
234
  }
235
235
  async invoke(operation, params = {}, options = {}) {
236
+ params = transportCommon.captureMutationPlanAuthor(operation.operationId, params, options);
236
237
  return this.runWhileActive(() => this.invokeWhileActive(operation, params, options));
237
238
  }
238
239
  async replaceFile(sessionId, path, options = {}) {
@@ -1,5 +1,5 @@
1
1
  import { spawn } from 'node:child_process';
2
- import { buildOperationArgv, buildStructuredReadInput, normalizeCollaborationAuth, resolveInvocation, } from './transport-common.js';
2
+ import { buildOperationArgv, captureMutationPlanAuthor, buildStructuredReadInput, normalizeCollaborationAuth, resolveInvocation, } from './transport-common.js';
3
3
  import { SuperDocCliError } from './errors.js';
4
4
  import { SdkStateDirectory } from './state-directory.js';
5
5
  import { registerMutationRevision } from './document-evidence.js';
@@ -230,6 +230,7 @@ export class HostTransport {
230
230
  await this.stateDirectory.dispose();
231
231
  }
232
232
  async invoke(operation, params = {}, options = {}) {
233
+ params = captureMutationPlanAuthor(operation.operationId, params, options);
233
234
  return this.runWhileActive(() => this.invokeWhileActive(operation, params, options));
234
235
  }
235
236
  async replaceFile(sessionId, path, options = {}) {
@@ -3,6 +3,6 @@
3
3
  // AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
4
4
  // Source of truth: package.json. Regenerated on every SDK build so the
5
5
  // SDK retains its own version identity when bundled into another package.
6
- const SDK_VERSION = '2.24.0';
6
+ const SDK_VERSION = '2.25.0-next.2';
7
7
 
8
8
  exports.SDK_VERSION = SDK_VERSION;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.24.0";
1
+ export declare const SDK_VERSION = "2.25.0-next.2";
@@ -1,4 +1,4 @@
1
1
  // AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
2
2
  // Source of truth: package.json. Regenerated on every SDK build so the
3
3
  // SDK retains its own version identity when bundled into another package.
4
- export const SDK_VERSION = '2.24.0';
4
+ export const SDK_VERSION = '2.25.0-next.2';
@@ -196,6 +196,7 @@ function applyOperationParamAliases(operation, params) {
196
196
  * - Booleans encoded as `--flag true`/`--flag false` explicitly, matching current CLI.
197
197
  */
198
198
  function buildOperationArgv(operation, params, options, runtimeTimeoutMs, defaultChangeMode, user) {
199
+ params = captureMutationPlanAuthor(operation.operationId, params, options);
199
200
  if (operation.operationId === 'doc.mutations.apply' && (params.dryRun !== undefined || options.dryRun === true)) {
200
201
  throw new errors.SuperDocCliError('mutations.apply does not accept dryRun; use mutations.preview.', {
201
202
  code: 'INVALID_INPUT',
@@ -272,9 +273,32 @@ function buildOperationArgv(operation, params, options, runtimeTimeoutMs, defaul
272
273
  argv.push('--output', 'json');
273
274
  return argv;
274
275
  }
276
+ function captureMutationPlanAuthor(operationId, params, options) {
277
+ if (operationId !== 'doc.mutations.apply' && operationId !== 'doc.mutations.preview')
278
+ return params;
279
+ if (options && typeof options === 'object' && 'author' in options) {
280
+ throw new errors.SuperDocCliError('Put the mutation plan author in the tracked plan input.', { code: 'INVALID_INPUT' });
281
+ }
282
+ const author = params.author;
283
+ if (author === undefined)
284
+ return { ...params };
285
+ if (params.changeMode !== 'tracked' ||
286
+ !author ||
287
+ typeof author !== 'object' ||
288
+ Array.isArray(author) ||
289
+ Object.keys(author).some((key) => key !== 'name') ||
290
+ typeof author.name !== 'string' ||
291
+ author.name.trim().length === 0) {
292
+ throw new errors.SuperDocCliError('A plan author requires tracked mode and only a non-empty name.', {
293
+ code: 'INVALID_INPUT',
294
+ });
295
+ }
296
+ return { ...params, author: { name: author.name } };
297
+ }
275
298
 
276
299
  exports.applyOperationParamAliases = applyOperationParamAliases;
277
300
  exports.buildOperationArgv = buildOperationArgv;
278
301
  exports.buildStructuredReadInput = buildStructuredReadInput;
302
+ exports.captureMutationPlanAuthor = captureMutationPlanAuthor;
279
303
  exports.normalizeCollaborationAuth = normalizeCollaborationAuth;
280
304
  exports.resolveInvocation = resolveInvocation;
@@ -113,3 +113,4 @@ export declare function applyOperationParamAliases(operation: OperationSpec, par
113
113
  * - Booleans encoded as `--flag true`/`--flag false` explicitly, matching current CLI.
114
114
  */
115
115
  export declare function buildOperationArgv(operation: OperationSpec, params: Record<string, unknown>, options: InvokeOptions, runtimeTimeoutMs: number | undefined, defaultChangeMode?: ChangeMode, user?: UserIdentity): string[];
116
+ export declare function captureMutationPlanAuthor(operationId: string, params: Record<string, unknown>, options: InvokeOptions): Record<string, unknown>;
@@ -193,6 +193,7 @@ export function applyOperationParamAliases(operation, params) {
193
193
  * - Booleans encoded as `--flag true`/`--flag false` explicitly, matching current CLI.
194
194
  */
195
195
  export function buildOperationArgv(operation, params, options, runtimeTimeoutMs, defaultChangeMode, user) {
196
+ params = captureMutationPlanAuthor(operation.operationId, params, options);
196
197
  if (operation.operationId === 'doc.mutations.apply' && (params.dryRun !== undefined || options.dryRun === true)) {
197
198
  throw new SuperDocCliError('mutations.apply does not accept dryRun; use mutations.preview.', {
198
199
  code: 'INVALID_INPUT',
@@ -269,3 +270,25 @@ export function buildOperationArgv(operation, params, options, runtimeTimeoutMs,
269
270
  argv.push('--output', 'json');
270
271
  return argv;
271
272
  }
273
+ export function captureMutationPlanAuthor(operationId, params, options) {
274
+ if (operationId !== 'doc.mutations.apply' && operationId !== 'doc.mutations.preview')
275
+ return params;
276
+ if (options && typeof options === 'object' && 'author' in options) {
277
+ throw new SuperDocCliError('Put the mutation plan author in the tracked plan input.', { code: 'INVALID_INPUT' });
278
+ }
279
+ const author = params.author;
280
+ if (author === undefined)
281
+ return { ...params };
282
+ if (params.changeMode !== 'tracked' ||
283
+ !author ||
284
+ typeof author !== 'object' ||
285
+ Array.isArray(author) ||
286
+ Object.keys(author).some((key) => key !== 'name') ||
287
+ typeof author.name !== 'string' ||
288
+ author.name.trim().length === 0) {
289
+ throw new SuperDocCliError('A plan author requires tracked mode and only a non-empty name.', {
290
+ code: 'INVALID_INPUT',
291
+ });
292
+ }
293
+ return { ...params, author: { name: author.name } };
294
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/sdk",
3
- "version": "2.24.0",
3
+ "version": "2.25.0-next.2",
4
4
  "description": "Node SDK for SuperDoc, wrapping the SuperDoc CLI to read and edit .docx files from JavaScript and TypeScript.",
5
5
  "private": false,
6
6
  "license": "AGPL-3.0",
@@ -38,11 +38,11 @@
38
38
  "typescript": "^5.9.2"
39
39
  },
40
40
  "optionalDependencies": {
41
- "@superdoc/sdk-darwin-arm64": "2.24.0",
42
- "@superdoc/sdk-darwin-x64": "2.24.0",
43
- "@superdoc/sdk-linux-x64": "2.24.0",
44
- "@superdoc/sdk-linux-arm64": "2.24.0",
45
- "@superdoc/sdk-windows-x64": "2.24.0"
41
+ "@superdoc/sdk-darwin-arm64": "2.25.0-next.2",
42
+ "@superdoc/sdk-darwin-x64": "2.25.0-next.2",
43
+ "@superdoc/sdk-linux-x64": "2.25.0-next.2",
44
+ "@superdoc/sdk-linux-arm64": "2.25.0-next.2",
45
+ "@superdoc/sdk-windows-x64": "2.25.0-next.2"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"
@@ -7009,6 +7009,20 @@
7009
7009
  "$ref": "#/$defs/StoryLocator",
7010
7010
  "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
7011
7011
  },
7012
+ "author": {
7013
+ "type": "object",
7014
+ "properties": {
7015
+ "name": {
7016
+ "type": "string",
7017
+ "minLength": 1
7018
+ }
7019
+ },
7020
+ "additionalProperties": false,
7021
+ "required": [
7022
+ "name"
7023
+ ],
7024
+ "description": "Display author for one tracked body text plan. Accepts only name; does not change the session user or inherit its email. Unsupported step combinations are rejected before mutation."
7025
+ },
7012
7026
  "expectedRevision": {
7013
7027
  "type": "string",
7014
7028
  "description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "formatVersion": 1,
3
- "contractHash": "2a7bb14d9c6e87863b3e5849c70df433fd8e94874b4245ecb96005c9b58facef",
4
- "documentApiSourceHash": "2ac0e7bc6f10262dd67bb6761f904bdcc5925569a9bd90d86714ce2a05cf4899",
5
- "generatorHash": "519bb56fb86fd88a4ed8e101b1158837b82681af7349c20c4aca431ffcde53ba",
3
+ "contractHash": "571c15fc12f574bfea752e1f34d5d26943b857086f82aa803386b16ff6cb748b",
4
+ "documentApiSourceHash": "be4011c4eaa7e9ab162283b4b61ae458c938f68f8f56098ba851d1fe777a280e",
5
+ "generatorHash": "ee2e346ab9e32bff632e3a47a8a56568d0f711d7a48a063ac63a05f4d5c6b2e4",
6
6
  "inputs": {
7
7
  "apps/cli/src/host/sdk-policy.ts": "8820bc2cb4694bd665cbfacbb55c262a5df5cde4ed2a1a8d0735c09c6a5e6dd8",
8
8
  "packages/sdk/codegen/src/artifacts.mjs": "aecab7eca4694cbcf2366ddd9cabc033abddad2ff8fb0960d505580dbaf4d8b7",
@@ -15,7 +15,7 @@
15
15
  "packages/sdk/codegen/src/model/schema.mjs": "29cb1167413280907ad324d8a1fcb54dc70cce829df00c1a755f43040d01cf3b",
16
16
  "packages/sdk/codegen/src/shared.mjs": "a411e7ea4fab43b5b08b00294c746ff7063ceddbae66ece8d8c5990f131e0f7c",
17
17
  "packages/sdk/codegen/src/targets.mjs": "62c5ae3e3813e07b37e62487d973bac60ef6bea558a01f3ace2e0c6e8374e147",
18
- "packages/sdk/langs/node/package.json": "d3c2ebf0639ccbc271903be1c65c44ce007a3d1b0abf922fd406334006f76b4e",
18
+ "packages/sdk/langs/node/package.json": "fde7b6d108e78c8c314931145abf5636e23203d6d288cfe7974bb36317d7b184",
19
19
  "packages/sdk/langs/node/scripts/embed-prompts.mjs": "1b1641bf89cad962a4ff11d93f301fe5a4e32fe856cd3c9586106d8aaab4ad80",
20
20
  "packages/sdk/langs/node/scripts/embed-tools.mjs": "4cd8b0605b088421ea1fdf8e4e19c70f571f4e3352309a1480491600122e7bb3",
21
21
  "packages/sdk/langs/node/scripts/embed-version.mjs": "95e2ff3a7c15cb38130e12f04c8a96c901a5e55d9960610ebefa37178fd19cde",
@@ -32,14 +32,14 @@
32
32
  "outputs": {
33
33
  "packages/sdk/langs/node/src/generated/contract.ts": {
34
34
  "id": "node-contract",
35
- "sha256": "a0347fe91441c680470f91341119586a361c6eea45ab56c4da777f0499b20e39",
35
+ "sha256": "3a731906dd26de618b324ea4fd035211dac464d3cb7e923d56ad58ae581b601e",
36
36
  "consumers": [
37
37
  "node"
38
38
  ]
39
39
  },
40
40
  "packages/sdk/langs/node/src/generated/client.ts": {
41
41
  "id": "node-client",
42
- "sha256": "048a8477d168a143a1c628b5ba8143c13d2091239b7220e159a0cfdfd14cea63",
42
+ "sha256": "3ad801a85830aa6b29983a199557ae3a2172b03870b9faeadecf838c53c3dea6",
43
43
  "consumers": [
44
44
  "node"
45
45
  ]
@@ -53,14 +53,14 @@
53
53
  },
54
54
  "packages/sdk/langs/python/superdoc/generated/contract.py": {
55
55
  "id": "python-contract",
56
- "sha256": "4814bc8a0cf60e078b77a0973518c2234ffb460ccabc82b6fd3e5d13aea78c38",
56
+ "sha256": "55af1018df757766c0f9a699a472e5319902b6506af55e47ede87f185fd6a4ba",
57
57
  "consumers": [
58
58
  "python"
59
59
  ]
60
60
  },
61
61
  "packages/sdk/langs/python/superdoc/generated/client.py": {
62
62
  "id": "python-client",
63
- "sha256": "298b1d76bb5a1a4e273db885d21c4f8b9cc7e9847aa0a65aa443ebd7e7fcd7cc",
63
+ "sha256": "8f45241f01762c57e4c8e8d6fd6e4cae669f11f9095d712d7a3f19af605b4788",
64
64
  "consumers": [
65
65
  "python"
66
66
  ]
@@ -95,7 +95,7 @@
95
95
  },
96
96
  "packages/sdk/tools/catalog.json": {
97
97
  "id": "tool-catalog",
98
- "sha256": "ba5c70bc8b8fe72a82f73bf4713536b2d202a2baffb36cfd4b08ecf0d14c7a1c",
98
+ "sha256": "606606282b03c08d15c437e064f9a96783ddf02662ac3634b0e750528b1f5a4e",
99
99
  "consumers": [
100
100
  "node",
101
101
  "python",
@@ -104,7 +104,7 @@
104
104
  },
105
105
  "packages/sdk/tools/tools-policy.json": {
106
106
  "id": "tool-policy",
107
- "sha256": "8a2abf87a86a95cbe7c24631f4e1f89cad44c480a6770b2a15d5a9bea941ff44",
107
+ "sha256": "8d3fd959cb3b3fd22bb8f5da31a33fb6de801376cb8e54e22fa5d9e8ececab10",
108
108
  "consumers": [
109
109
  "node",
110
110
  "python"
@@ -112,7 +112,7 @@
112
112
  },
113
113
  "packages/sdk/tools/tools.openai.json": {
114
114
  "id": "tools-openai",
115
- "sha256": "95e07d8fb8e0173c1372d896be8ad5386bb8fecb7abc05605eb722086ca1c786",
115
+ "sha256": "fdf1f16a1555ff4262e6889417ba712c3f4f139e930c272ee2ede2032c2aced1",
116
116
  "consumers": [
117
117
  "node",
118
118
  "python",
@@ -121,7 +121,7 @@
121
121
  },
122
122
  "packages/sdk/tools/tools.anthropic.json": {
123
123
  "id": "tools-anthropic",
124
- "sha256": "c3844d298975a858794b9ca64976a072af93e1fd0bd931743bcda2e5858f20e8",
124
+ "sha256": "790291ea69a13c8d1cbc73443dac73cc39c7a488b1a835a5fd40274b1ebe64bc",
125
125
  "consumers": [
126
126
  "node",
127
127
  "python",
@@ -130,7 +130,7 @@
130
130
  },
131
131
  "packages/sdk/tools/tools.vercel.json": {
132
132
  "id": "tools-vercel",
133
- "sha256": "95e07d8fb8e0173c1372d896be8ad5386bb8fecb7abc05605eb722086ca1c786",
133
+ "sha256": "fdf1f16a1555ff4262e6889417ba712c3f4f139e930c272ee2ede2032c2aced1",
134
134
  "consumers": [
135
135
  "node",
136
136
  "python",
@@ -139,7 +139,7 @@
139
139
  },
140
140
  "packages/sdk/tools/tools.generic.json": {
141
141
  "id": "tools-generic",
142
- "sha256": "dcae9520ad1946900265724a95bb7080d26fe1b133818f45951fc1cdb1ed6e29",
142
+ "sha256": "ea4d922bed6f2f42cc42ce4e618f91614cf0a265874ff80b15ec510b4ef5e312",
143
143
  "consumers": [
144
144
  "node",
145
145
  "python",
@@ -179,14 +179,14 @@
179
179
  },
180
180
  "packages/sdk/langs/node/src/embedded-tools.generated.ts": {
181
181
  "id": "node-embedded-tools",
182
- "sha256": "f85a6a0803219006781dc0c83cc8fd362ecb27a5df3eaa9d0ade60276dc19ef0",
182
+ "sha256": "93669a5667db7f68372e3a8695b207ce064ec87599c99afbc372e08f122ef841",
183
183
  "consumers": [
184
184
  "node"
185
185
  ]
186
186
  },
187
187
  "packages/sdk/langs/node/src/runtime/sdk-version.generated.ts": {
188
188
  "id": "node-sdk-version",
189
- "sha256": "aff3b5c5f6dd9ed08606dce36e87903ed37f59c523f6f0b6aa4e62a84ce9f88a",
189
+ "sha256": "002c4ef2efbcb9dae1be92bcbf4336a6b8634d0e33fc0ad053cb1688dc39f1cb",
190
190
  "consumers": [
191
191
  "node"
192
192
  ]
@@ -43,5 +43,5 @@
43
43
  "mutates": true
44
44
  }
45
45
  ],
46
- "contractHash": "2a7bb14d9c6e87863b3e5849c70df433fd8e94874b4245ecb96005c9b58facef"
46
+ "contractHash": "571c15fc12f574bfea752e1f34d5d26943b857086f82aa803386b16ff6cb748b"
47
47
  }
@@ -6561,6 +6561,20 @@
6561
6561
  "$ref": "#/$defs/StoryLocator",
6562
6562
  "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
6563
6563
  },
6564
+ "author": {
6565
+ "type": "object",
6566
+ "properties": {
6567
+ "name": {
6568
+ "type": "string",
6569
+ "minLength": 1
6570
+ }
6571
+ },
6572
+ "additionalProperties": false,
6573
+ "required": [
6574
+ "name"
6575
+ ],
6576
+ "description": "Display author for one tracked body text plan. Accepts only name; does not change the session user or inherit its email. Unsupported step combinations are rejected before mutation."
6577
+ },
6564
6578
  "expectedRevision": {
6565
6579
  "type": "string",
6566
6580
  "description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
@@ -6729,6 +6729,20 @@
6729
6729
  "$ref": "#/$defs/StoryLocator",
6730
6730
  "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
6731
6731
  },
6732
+ "author": {
6733
+ "type": "object",
6734
+ "properties": {
6735
+ "name": {
6736
+ "type": "string",
6737
+ "minLength": 1
6738
+ }
6739
+ },
6740
+ "additionalProperties": false,
6741
+ "required": [
6742
+ "name"
6743
+ ],
6744
+ "description": "Display author for one tracked body text plan. Accepts only name; does not change the session user or inherit its email. Unsupported step combinations are rejected before mutation."
6745
+ },
6732
6746
  "expectedRevision": {
6733
6747
  "type": "string",
6734
6748
  "description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
@@ -6587,6 +6587,20 @@
6587
6587
  "$ref": "#/$defs/StoryLocator",
6588
6588
  "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
6589
6589
  },
6590
+ "author": {
6591
+ "type": "object",
6592
+ "properties": {
6593
+ "name": {
6594
+ "type": "string",
6595
+ "minLength": 1
6596
+ }
6597
+ },
6598
+ "additionalProperties": false,
6599
+ "required": [
6600
+ "name"
6601
+ ],
6602
+ "description": "Display author for one tracked body text plan. Accepts only name; does not change the session user or inherit its email. Unsupported step combinations are rejected before mutation."
6603
+ },
6590
6604
  "expectedRevision": {
6591
6605
  "type": "string",
6592
6606
  "description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
@@ -6587,6 +6587,20 @@
6587
6587
  "$ref": "#/$defs/StoryLocator",
6588
6588
  "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
6589
6589
  },
6590
+ "author": {
6591
+ "type": "object",
6592
+ "properties": {
6593
+ "name": {
6594
+ "type": "string",
6595
+ "minLength": 1
6596
+ }
6597
+ },
6598
+ "additionalProperties": false,
6599
+ "required": [
6600
+ "name"
6601
+ ],
6602
+ "description": "Display author for one tracked body text plan. Accepts only name; does not change the session user or inherit its email. Unsupported step combinations are rejected before mutation."
6603
+ },
6590
6604
  "expectedRevision": {
6591
6605
  "type": "string",
6592
6606
  "description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."