@superdoc/sdk 2.24.0 → 2.25.0-next.1
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/embedded-tools.generated.cjs +5 -5
- package/dist/embedded-tools.generated.js +5 -5
- package/dist/generated/client.d.ts +467 -6
- package/dist/generated/contract.cjs +1 -1
- package/dist/generated/contract.js +1 -1
- package/dist/runtime/document-rpc.cjs +1 -0
- package/dist/runtime/document-rpc.js +2 -1
- package/dist/runtime/host.cjs +1 -0
- package/dist/runtime/host.js +2 -1
- package/dist/runtime/sdk-version.generated.cjs +1 -1
- package/dist/runtime/sdk-version.generated.d.ts +1 -1
- package/dist/runtime/sdk-version.generated.js +1 -1
- package/dist/runtime/transport-common.cjs +24 -0
- package/dist/runtime/transport-common.d.ts +1 -0
- package/dist/runtime/transport-common.js +23 -0
- package/package.json +6 -6
- package/tools/catalog.json +14 -0
- package/tools/generation-receipt.json +16 -16
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +14 -0
- package/tools/tools.generic.json +14 -0
- package/tools/tools.openai.json +14 -0
- package/tools/tools.vercel.json +14 -0
|
@@ -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);
|
package/dist/runtime/host.cjs
CHANGED
|
@@ -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 = {}) {
|
package/dist/runtime/host.js
CHANGED
|
@@ -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.
|
|
6
|
+
const SDK_VERSION = '2.25.0-next.1';
|
|
7
7
|
|
|
8
8
|
exports.SDK_VERSION = SDK_VERSION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.25.0-next.1";
|
|
@@ -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.
|
|
4
|
+
export const SDK_VERSION = '2.25.0-next.1';
|
|
@@ -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.
|
|
3
|
+
"version": "2.25.0-next.1",
|
|
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.
|
|
42
|
-
"@superdoc/sdk-darwin-x64": "2.
|
|
43
|
-
"@superdoc/sdk-linux-x64": "2.
|
|
44
|
-
"@superdoc/sdk-linux-arm64": "2.
|
|
45
|
-
"@superdoc/sdk-windows-x64": "2.
|
|
41
|
+
"@superdoc/sdk-darwin-arm64": "2.25.0-next.1",
|
|
42
|
+
"@superdoc/sdk-darwin-x64": "2.25.0-next.1",
|
|
43
|
+
"@superdoc/sdk-linux-x64": "2.25.0-next.1",
|
|
44
|
+
"@superdoc/sdk-linux-arm64": "2.25.0-next.1",
|
|
45
|
+
"@superdoc/sdk-windows-x64": "2.25.0-next.1"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
package/tools/catalog.json
CHANGED
|
@@ -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": "
|
|
4
|
-
"documentApiSourceHash": "
|
|
5
|
-
"generatorHash": "
|
|
3
|
+
"contractHash": "571c15fc12f574bfea752e1f34d5d26943b857086f82aa803386b16ff6cb748b",
|
|
4
|
+
"documentApiSourceHash": "be4011c4eaa7e9ab162283b4b61ae458c938f68f8f56098ba851d1fe777a280e",
|
|
5
|
+
"generatorHash": "555e161a6df034042019bf44c7c396e6971ff680d0f2e53c4987fcad3859f24b",
|
|
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": "
|
|
18
|
+
"packages/sdk/langs/node/package.json": "c527a428e4f0e1607cee8ec49ab918c3c54752cfcae122bb1e4f3a9d0b0d4beb",
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
189
|
+
"sha256": "d83e737e02020f832a97557c8c4ac5daf38bb81ef58c3bd010dde2385ab24fbc",
|
|
190
190
|
"consumers": [
|
|
191
191
|
"node"
|
|
192
192
|
]
|
package/tools/tools-policy.json
CHANGED
|
@@ -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."
|
package/tools/tools.generic.json
CHANGED
|
@@ -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."
|
package/tools/tools.openai.json
CHANGED
|
@@ -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."
|
package/tools/tools.vercel.json
CHANGED
|
@@ -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."
|