@superdoc-dev/sdk 1.0.0-alpha.31 → 1.0.0-alpha.33
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/generated/client.cjs +26 -6
- package/dist/generated/client.d.ts +330 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +26 -6
- package/dist/generated/contract.cjs +9941 -7010
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +9941 -7010
- package/package.json +6 -6
- package/tools/catalog.json +2044 -315
- package/tools/tool-name-map.json +15 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +544 -0
- package/tools/tools.generic.json +1926 -302
- package/tools/tools.openai.json +589 -0
- package/tools/tools.vercel.json +589 -0
|
@@ -4,26 +4,32 @@ var contract = require('./contract.cjs');
|
|
|
4
4
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
// Auto-generated by packages/sdk/codegen/src/generate-node.mjs
|
|
7
|
-
/** Extract a
|
|
8
|
-
function
|
|
9
|
-
if (typeof value === "string")
|
|
10
|
-
return value;
|
|
7
|
+
/** Extract a payload value from a CLI response envelope like `{ document, result: {...} }`. */
|
|
8
|
+
function unwrapEnvelope(value, key) {
|
|
11
9
|
if (typeof value === "object" && value !== null) {
|
|
12
10
|
const extracted = value[key];
|
|
13
|
-
if (
|
|
11
|
+
if (extracted !== undefined)
|
|
14
12
|
return extracted;
|
|
15
13
|
}
|
|
16
14
|
return value;
|
|
17
15
|
}
|
|
16
|
+
/** Extract a string value from a CLI response envelope like `{ document, text: "..." }`. */
|
|
17
|
+
function unwrapStringEnvelope(value, key) {
|
|
18
|
+
const extracted = unwrapEnvelope(value, key);
|
|
19
|
+
if (typeof extracted === "string")
|
|
20
|
+
return extracted;
|
|
21
|
+
return extracted;
|
|
22
|
+
}
|
|
18
23
|
function createDocApi(runtime) {
|
|
19
24
|
return {
|
|
20
|
-
find: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.find"], params, options),
|
|
25
|
+
find: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.find"], params, options), "result"),
|
|
21
26
|
getNode: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.getNode"], params, options),
|
|
22
27
|
getNodeById: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.getNodeById"], params, options),
|
|
23
28
|
getText: async (params = {}, options) => unwrapStringEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.getText"], params, options), "text"),
|
|
24
29
|
getMarkdown: async (params = {}, options) => unwrapStringEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.getMarkdown"], params, options), "markdown"),
|
|
25
30
|
getHtml: async (params = {}, options) => unwrapStringEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.getHtml"], params, options), "html"),
|
|
26
31
|
info: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.info"], params, options),
|
|
32
|
+
clearContent: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.clearContent"], params, options),
|
|
27
33
|
insert: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.insert"], params, options),
|
|
28
34
|
replace: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.replace"], params, options),
|
|
29
35
|
delete: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.delete"], params, options),
|
|
@@ -257,6 +263,20 @@ function createDocApi(runtime) {
|
|
|
257
263
|
setPosition: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setPosition"], params, options),
|
|
258
264
|
setAnchorOptions: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setAnchorOptions"], params, options),
|
|
259
265
|
setZOrder: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setZOrder"], params, options),
|
|
266
|
+
scale: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.scale"], params, options),
|
|
267
|
+
setLockAspectRatio: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setLockAspectRatio"], params, options),
|
|
268
|
+
rotate: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.rotate"], params, options),
|
|
269
|
+
flip: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.flip"], params, options),
|
|
270
|
+
crop: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.crop"], params, options),
|
|
271
|
+
resetCrop: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.resetCrop"], params, options),
|
|
272
|
+
replaceSource: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.replaceSource"], params, options),
|
|
273
|
+
setAltText: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setAltText"], params, options),
|
|
274
|
+
setDecorative: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setDecorative"], params, options),
|
|
275
|
+
setName: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setName"], params, options),
|
|
276
|
+
setHyperlink: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.setHyperlink"], params, options),
|
|
277
|
+
insertCaption: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.insertCaption"], params, options),
|
|
278
|
+
updateCaption: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.updateCaption"], params, options),
|
|
279
|
+
removeCaption: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.images.removeCaption"], params, options),
|
|
260
280
|
},
|
|
261
281
|
hyperlinks: {
|
|
262
282
|
list: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.hyperlinks.list"], params, options),
|
|
@@ -62,6 +62,14 @@ export interface DocInfoParams {
|
|
|
62
62
|
doc?: string;
|
|
63
63
|
sessionId?: string;
|
|
64
64
|
}
|
|
65
|
+
export interface DocClearContentParams {
|
|
66
|
+
doc?: string;
|
|
67
|
+
sessionId?: string;
|
|
68
|
+
out?: string;
|
|
69
|
+
force?: boolean;
|
|
70
|
+
expectedRevision?: number;
|
|
71
|
+
changeMode?: string;
|
|
72
|
+
}
|
|
65
73
|
export interface DocInsertParams {
|
|
66
74
|
doc?: string;
|
|
67
75
|
sessionId?: string;
|
|
@@ -4637,6 +4645,166 @@ export interface DocImagesSetZOrderParams {
|
|
|
4637
4645
|
relativeHeight: number;
|
|
4638
4646
|
};
|
|
4639
4647
|
}
|
|
4648
|
+
export interface DocImagesScaleParams {
|
|
4649
|
+
doc?: string;
|
|
4650
|
+
sessionId?: string;
|
|
4651
|
+
out?: string;
|
|
4652
|
+
force?: boolean;
|
|
4653
|
+
expectedRevision?: number;
|
|
4654
|
+
changeMode?: string;
|
|
4655
|
+
dryRun?: boolean;
|
|
4656
|
+
imageId: string;
|
|
4657
|
+
factor: number;
|
|
4658
|
+
}
|
|
4659
|
+
export interface DocImagesSetLockAspectRatioParams {
|
|
4660
|
+
doc?: string;
|
|
4661
|
+
sessionId?: string;
|
|
4662
|
+
out?: string;
|
|
4663
|
+
force?: boolean;
|
|
4664
|
+
expectedRevision?: number;
|
|
4665
|
+
changeMode?: string;
|
|
4666
|
+
dryRun?: boolean;
|
|
4667
|
+
imageId: string;
|
|
4668
|
+
locked: boolean;
|
|
4669
|
+
}
|
|
4670
|
+
export interface DocImagesRotateParams {
|
|
4671
|
+
doc?: string;
|
|
4672
|
+
sessionId?: string;
|
|
4673
|
+
out?: string;
|
|
4674
|
+
force?: boolean;
|
|
4675
|
+
expectedRevision?: number;
|
|
4676
|
+
changeMode?: string;
|
|
4677
|
+
dryRun?: boolean;
|
|
4678
|
+
imageId: string;
|
|
4679
|
+
angle: number;
|
|
4680
|
+
}
|
|
4681
|
+
export interface DocImagesFlipParams {
|
|
4682
|
+
doc?: string;
|
|
4683
|
+
sessionId?: string;
|
|
4684
|
+
out?: string;
|
|
4685
|
+
force?: boolean;
|
|
4686
|
+
expectedRevision?: number;
|
|
4687
|
+
changeMode?: string;
|
|
4688
|
+
dryRun?: boolean;
|
|
4689
|
+
imageId: string;
|
|
4690
|
+
horizontal?: boolean;
|
|
4691
|
+
vertical?: boolean;
|
|
4692
|
+
}
|
|
4693
|
+
export interface DocImagesCropParams {
|
|
4694
|
+
doc?: string;
|
|
4695
|
+
sessionId?: string;
|
|
4696
|
+
out?: string;
|
|
4697
|
+
force?: boolean;
|
|
4698
|
+
expectedRevision?: number;
|
|
4699
|
+
changeMode?: string;
|
|
4700
|
+
dryRun?: boolean;
|
|
4701
|
+
imageId: string;
|
|
4702
|
+
crop: {
|
|
4703
|
+
left?: number;
|
|
4704
|
+
top?: number;
|
|
4705
|
+
right?: number;
|
|
4706
|
+
bottom?: number;
|
|
4707
|
+
};
|
|
4708
|
+
}
|
|
4709
|
+
export interface DocImagesResetCropParams {
|
|
4710
|
+
doc?: string;
|
|
4711
|
+
sessionId?: string;
|
|
4712
|
+
out?: string;
|
|
4713
|
+
force?: boolean;
|
|
4714
|
+
expectedRevision?: number;
|
|
4715
|
+
changeMode?: string;
|
|
4716
|
+
dryRun?: boolean;
|
|
4717
|
+
imageId: string;
|
|
4718
|
+
}
|
|
4719
|
+
export interface DocImagesReplaceSourceParams {
|
|
4720
|
+
doc?: string;
|
|
4721
|
+
sessionId?: string;
|
|
4722
|
+
out?: string;
|
|
4723
|
+
force?: boolean;
|
|
4724
|
+
expectedRevision?: number;
|
|
4725
|
+
changeMode?: string;
|
|
4726
|
+
dryRun?: boolean;
|
|
4727
|
+
imageId: string;
|
|
4728
|
+
src: string;
|
|
4729
|
+
resetSize?: boolean;
|
|
4730
|
+
}
|
|
4731
|
+
export interface DocImagesSetAltTextParams {
|
|
4732
|
+
doc?: string;
|
|
4733
|
+
sessionId?: string;
|
|
4734
|
+
out?: string;
|
|
4735
|
+
force?: boolean;
|
|
4736
|
+
expectedRevision?: number;
|
|
4737
|
+
changeMode?: string;
|
|
4738
|
+
dryRun?: boolean;
|
|
4739
|
+
imageId: string;
|
|
4740
|
+
description: string;
|
|
4741
|
+
}
|
|
4742
|
+
export interface DocImagesSetDecorativeParams {
|
|
4743
|
+
doc?: string;
|
|
4744
|
+
sessionId?: string;
|
|
4745
|
+
out?: string;
|
|
4746
|
+
force?: boolean;
|
|
4747
|
+
expectedRevision?: number;
|
|
4748
|
+
changeMode?: string;
|
|
4749
|
+
dryRun?: boolean;
|
|
4750
|
+
imageId: string;
|
|
4751
|
+
decorative: boolean;
|
|
4752
|
+
}
|
|
4753
|
+
export interface DocImagesSetNameParams {
|
|
4754
|
+
doc?: string;
|
|
4755
|
+
sessionId?: string;
|
|
4756
|
+
out?: string;
|
|
4757
|
+
force?: boolean;
|
|
4758
|
+
expectedRevision?: number;
|
|
4759
|
+
changeMode?: string;
|
|
4760
|
+
dryRun?: boolean;
|
|
4761
|
+
imageId: string;
|
|
4762
|
+
name: string;
|
|
4763
|
+
}
|
|
4764
|
+
export interface DocImagesSetHyperlinkParams {
|
|
4765
|
+
doc?: string;
|
|
4766
|
+
sessionId?: string;
|
|
4767
|
+
out?: string;
|
|
4768
|
+
force?: boolean;
|
|
4769
|
+
expectedRevision?: number;
|
|
4770
|
+
changeMode?: string;
|
|
4771
|
+
dryRun?: boolean;
|
|
4772
|
+
imageId: string;
|
|
4773
|
+
url: unknown;
|
|
4774
|
+
tooltip?: string;
|
|
4775
|
+
}
|
|
4776
|
+
export interface DocImagesInsertCaptionParams {
|
|
4777
|
+
doc?: string;
|
|
4778
|
+
sessionId?: string;
|
|
4779
|
+
out?: string;
|
|
4780
|
+
force?: boolean;
|
|
4781
|
+
expectedRevision?: number;
|
|
4782
|
+
changeMode?: string;
|
|
4783
|
+
dryRun?: boolean;
|
|
4784
|
+
imageId: string;
|
|
4785
|
+
text: string;
|
|
4786
|
+
}
|
|
4787
|
+
export interface DocImagesUpdateCaptionParams {
|
|
4788
|
+
doc?: string;
|
|
4789
|
+
sessionId?: string;
|
|
4790
|
+
out?: string;
|
|
4791
|
+
force?: boolean;
|
|
4792
|
+
expectedRevision?: number;
|
|
4793
|
+
changeMode?: string;
|
|
4794
|
+
dryRun?: boolean;
|
|
4795
|
+
imageId: string;
|
|
4796
|
+
text: string;
|
|
4797
|
+
}
|
|
4798
|
+
export interface DocImagesRemoveCaptionParams {
|
|
4799
|
+
doc?: string;
|
|
4800
|
+
sessionId?: string;
|
|
4801
|
+
out?: string;
|
|
4802
|
+
force?: boolean;
|
|
4803
|
+
expectedRevision?: number;
|
|
4804
|
+
changeMode?: string;
|
|
4805
|
+
dryRun?: boolean;
|
|
4806
|
+
imageId: string;
|
|
4807
|
+
}
|
|
4640
4808
|
export interface DocHyperlinksListParams {
|
|
4641
4809
|
doc?: string;
|
|
4642
4810
|
sessionId?: string;
|
|
@@ -4923,6 +5091,7 @@ export type DocInfoResult = {
|
|
|
4923
5091
|
}>;
|
|
4924
5092
|
revision: string;
|
|
4925
5093
|
};
|
|
5094
|
+
export type DocClearContentResult = unknown;
|
|
4926
5095
|
export type DocInsertResult = unknown;
|
|
4927
5096
|
export type DocReplaceResult = unknown;
|
|
4928
5097
|
export type DocDeleteResult = unknown;
|
|
@@ -6005,6 +6174,12 @@ export type DocCapabilitiesGetResult = {
|
|
|
6005
6174
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6006
6175
|
tracked: boolean;
|
|
6007
6176
|
};
|
|
6177
|
+
clearContent: {
|
|
6178
|
+
available: boolean;
|
|
6179
|
+
dryRun: boolean;
|
|
6180
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6181
|
+
tracked: boolean;
|
|
6182
|
+
};
|
|
6008
6183
|
"comments.create": {
|
|
6009
6184
|
available: boolean;
|
|
6010
6185
|
dryRun: boolean;
|
|
@@ -6545,18 +6720,36 @@ export type DocCapabilitiesGetResult = {
|
|
|
6545
6720
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6546
6721
|
tracked: boolean;
|
|
6547
6722
|
};
|
|
6723
|
+
"images.crop": {
|
|
6724
|
+
available: boolean;
|
|
6725
|
+
dryRun: boolean;
|
|
6726
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6727
|
+
tracked: boolean;
|
|
6728
|
+
};
|
|
6548
6729
|
"images.delete": {
|
|
6549
6730
|
available: boolean;
|
|
6550
6731
|
dryRun: boolean;
|
|
6551
6732
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6552
6733
|
tracked: boolean;
|
|
6553
6734
|
};
|
|
6735
|
+
"images.flip": {
|
|
6736
|
+
available: boolean;
|
|
6737
|
+
dryRun: boolean;
|
|
6738
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6739
|
+
tracked: boolean;
|
|
6740
|
+
};
|
|
6554
6741
|
"images.get": {
|
|
6555
6742
|
available: boolean;
|
|
6556
6743
|
dryRun: boolean;
|
|
6557
6744
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6558
6745
|
tracked: boolean;
|
|
6559
6746
|
};
|
|
6747
|
+
"images.insertCaption": {
|
|
6748
|
+
available: boolean;
|
|
6749
|
+
dryRun: boolean;
|
|
6750
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6751
|
+
tracked: boolean;
|
|
6752
|
+
};
|
|
6560
6753
|
"images.list": {
|
|
6561
6754
|
available: boolean;
|
|
6562
6755
|
dryRun: boolean;
|
|
@@ -6569,12 +6762,72 @@ export type DocCapabilitiesGetResult = {
|
|
|
6569
6762
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6570
6763
|
tracked: boolean;
|
|
6571
6764
|
};
|
|
6765
|
+
"images.removeCaption": {
|
|
6766
|
+
available: boolean;
|
|
6767
|
+
dryRun: boolean;
|
|
6768
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6769
|
+
tracked: boolean;
|
|
6770
|
+
};
|
|
6771
|
+
"images.replaceSource": {
|
|
6772
|
+
available: boolean;
|
|
6773
|
+
dryRun: boolean;
|
|
6774
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6775
|
+
tracked: boolean;
|
|
6776
|
+
};
|
|
6777
|
+
"images.resetCrop": {
|
|
6778
|
+
available: boolean;
|
|
6779
|
+
dryRun: boolean;
|
|
6780
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6781
|
+
tracked: boolean;
|
|
6782
|
+
};
|
|
6783
|
+
"images.rotate": {
|
|
6784
|
+
available: boolean;
|
|
6785
|
+
dryRun: boolean;
|
|
6786
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6787
|
+
tracked: boolean;
|
|
6788
|
+
};
|
|
6789
|
+
"images.scale": {
|
|
6790
|
+
available: boolean;
|
|
6791
|
+
dryRun: boolean;
|
|
6792
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6793
|
+
tracked: boolean;
|
|
6794
|
+
};
|
|
6795
|
+
"images.setAltText": {
|
|
6796
|
+
available: boolean;
|
|
6797
|
+
dryRun: boolean;
|
|
6798
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6799
|
+
tracked: boolean;
|
|
6800
|
+
};
|
|
6572
6801
|
"images.setAnchorOptions": {
|
|
6573
6802
|
available: boolean;
|
|
6574
6803
|
dryRun: boolean;
|
|
6575
6804
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6576
6805
|
tracked: boolean;
|
|
6577
6806
|
};
|
|
6807
|
+
"images.setDecorative": {
|
|
6808
|
+
available: boolean;
|
|
6809
|
+
dryRun: boolean;
|
|
6810
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6811
|
+
tracked: boolean;
|
|
6812
|
+
};
|
|
6813
|
+
"images.setHyperlink": {
|
|
6814
|
+
available: boolean;
|
|
6815
|
+
dryRun: boolean;
|
|
6816
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6817
|
+
tracked: boolean;
|
|
6818
|
+
};
|
|
6819
|
+
"images.setLockAspectRatio": {
|
|
6820
|
+
available: boolean;
|
|
6821
|
+
dryRun: boolean;
|
|
6822
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6823
|
+
tracked: boolean;
|
|
6824
|
+
};
|
|
6825
|
+
"images.setName": {
|
|
6826
|
+
available: boolean;
|
|
6827
|
+
dryRun: boolean;
|
|
6828
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6829
|
+
tracked: boolean;
|
|
6830
|
+
};
|
|
6578
6831
|
"images.setPosition": {
|
|
6579
6832
|
available: boolean;
|
|
6580
6833
|
dryRun: boolean;
|
|
@@ -6611,6 +6864,12 @@ export type DocCapabilitiesGetResult = {
|
|
|
6611
6864
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6612
6865
|
tracked: boolean;
|
|
6613
6866
|
};
|
|
6867
|
+
"images.updateCaption": {
|
|
6868
|
+
available: boolean;
|
|
6869
|
+
dryRun: boolean;
|
|
6870
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
6871
|
+
tracked: boolean;
|
|
6872
|
+
};
|
|
6614
6873
|
info: {
|
|
6615
6874
|
available: boolean;
|
|
6616
6875
|
dryRun: boolean;
|
|
@@ -7710,6 +7969,62 @@ export type DocImagesSetZOrderResult = {
|
|
|
7710
7969
|
image: Record<string, unknown>;
|
|
7711
7970
|
success: true;
|
|
7712
7971
|
};
|
|
7972
|
+
export type DocImagesScaleResult = {
|
|
7973
|
+
image: Record<string, unknown>;
|
|
7974
|
+
success: true;
|
|
7975
|
+
};
|
|
7976
|
+
export type DocImagesSetLockAspectRatioResult = {
|
|
7977
|
+
image: Record<string, unknown>;
|
|
7978
|
+
success: true;
|
|
7979
|
+
};
|
|
7980
|
+
export type DocImagesRotateResult = {
|
|
7981
|
+
image: Record<string, unknown>;
|
|
7982
|
+
success: true;
|
|
7983
|
+
};
|
|
7984
|
+
export type DocImagesFlipResult = {
|
|
7985
|
+
image: Record<string, unknown>;
|
|
7986
|
+
success: true;
|
|
7987
|
+
};
|
|
7988
|
+
export type DocImagesCropResult = {
|
|
7989
|
+
image: Record<string, unknown>;
|
|
7990
|
+
success: true;
|
|
7991
|
+
};
|
|
7992
|
+
export type DocImagesResetCropResult = {
|
|
7993
|
+
image: Record<string, unknown>;
|
|
7994
|
+
success: true;
|
|
7995
|
+
};
|
|
7996
|
+
export type DocImagesReplaceSourceResult = {
|
|
7997
|
+
image: Record<string, unknown>;
|
|
7998
|
+
success: true;
|
|
7999
|
+
};
|
|
8000
|
+
export type DocImagesSetAltTextResult = {
|
|
8001
|
+
image: Record<string, unknown>;
|
|
8002
|
+
success: true;
|
|
8003
|
+
};
|
|
8004
|
+
export type DocImagesSetDecorativeResult = {
|
|
8005
|
+
image: Record<string, unknown>;
|
|
8006
|
+
success: true;
|
|
8007
|
+
};
|
|
8008
|
+
export type DocImagesSetNameResult = {
|
|
8009
|
+
image: Record<string, unknown>;
|
|
8010
|
+
success: true;
|
|
8011
|
+
};
|
|
8012
|
+
export type DocImagesSetHyperlinkResult = {
|
|
8013
|
+
image: Record<string, unknown>;
|
|
8014
|
+
success: true;
|
|
8015
|
+
};
|
|
8016
|
+
export type DocImagesInsertCaptionResult = {
|
|
8017
|
+
image: Record<string, unknown>;
|
|
8018
|
+
success: true;
|
|
8019
|
+
};
|
|
8020
|
+
export type DocImagesUpdateCaptionResult = {
|
|
8021
|
+
image: Record<string, unknown>;
|
|
8022
|
+
success: true;
|
|
8023
|
+
};
|
|
8024
|
+
export type DocImagesRemoveCaptionResult = {
|
|
8025
|
+
image: Record<string, unknown>;
|
|
8026
|
+
success: true;
|
|
8027
|
+
};
|
|
7713
8028
|
export type DocHyperlinksListResult = {
|
|
7714
8029
|
evaluatedRevision: string;
|
|
7715
8030
|
items: Array<{
|
|
@@ -7908,6 +8223,7 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
|
|
|
7908
8223
|
getMarkdown: (params?: DocGetMarkdownParams, options?: InvokeOptions) => Promise<DocGetMarkdownResult>;
|
|
7909
8224
|
getHtml: (params?: DocGetHtmlParams, options?: InvokeOptions) => Promise<DocGetHtmlResult>;
|
|
7910
8225
|
info: (params?: DocInfoParams, options?: InvokeOptions) => Promise<DocInfoResult>;
|
|
8226
|
+
clearContent: (params?: DocClearContentParams, options?: InvokeOptions) => Promise<unknown>;
|
|
7911
8227
|
insert: (params?: DocInsertParams, options?: InvokeOptions) => Promise<unknown>;
|
|
7912
8228
|
replace: (params?: DocReplaceParams, options?: InvokeOptions) => Promise<unknown>;
|
|
7913
8229
|
delete: (params?: DocDeleteParams, options?: InvokeOptions) => Promise<unknown>;
|
|
@@ -8141,6 +8457,20 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
|
|
|
8141
8457
|
setPosition: (params: DocImagesSetPositionParams, options?: InvokeOptions) => Promise<DocImagesSetPositionResult>;
|
|
8142
8458
|
setAnchorOptions: (params: DocImagesSetAnchorOptionsParams, options?: InvokeOptions) => Promise<DocImagesSetAnchorOptionsResult>;
|
|
8143
8459
|
setZOrder: (params: DocImagesSetZOrderParams, options?: InvokeOptions) => Promise<DocImagesSetZOrderResult>;
|
|
8460
|
+
scale: (params: DocImagesScaleParams, options?: InvokeOptions) => Promise<DocImagesScaleResult>;
|
|
8461
|
+
setLockAspectRatio: (params: DocImagesSetLockAspectRatioParams, options?: InvokeOptions) => Promise<DocImagesSetLockAspectRatioResult>;
|
|
8462
|
+
rotate: (params: DocImagesRotateParams, options?: InvokeOptions) => Promise<DocImagesRotateResult>;
|
|
8463
|
+
flip: (params: DocImagesFlipParams, options?: InvokeOptions) => Promise<DocImagesFlipResult>;
|
|
8464
|
+
crop: (params: DocImagesCropParams, options?: InvokeOptions) => Promise<DocImagesCropResult>;
|
|
8465
|
+
resetCrop: (params: DocImagesResetCropParams, options?: InvokeOptions) => Promise<DocImagesResetCropResult>;
|
|
8466
|
+
replaceSource: (params: DocImagesReplaceSourceParams, options?: InvokeOptions) => Promise<DocImagesReplaceSourceResult>;
|
|
8467
|
+
setAltText: (params: DocImagesSetAltTextParams, options?: InvokeOptions) => Promise<DocImagesSetAltTextResult>;
|
|
8468
|
+
setDecorative: (params: DocImagesSetDecorativeParams, options?: InvokeOptions) => Promise<DocImagesSetDecorativeResult>;
|
|
8469
|
+
setName: (params: DocImagesSetNameParams, options?: InvokeOptions) => Promise<DocImagesSetNameResult>;
|
|
8470
|
+
setHyperlink: (params: DocImagesSetHyperlinkParams, options?: InvokeOptions) => Promise<DocImagesSetHyperlinkResult>;
|
|
8471
|
+
insertCaption: (params: DocImagesInsertCaptionParams, options?: InvokeOptions) => Promise<DocImagesInsertCaptionResult>;
|
|
8472
|
+
updateCaption: (params: DocImagesUpdateCaptionParams, options?: InvokeOptions) => Promise<DocImagesUpdateCaptionResult>;
|
|
8473
|
+
removeCaption: (params: DocImagesRemoveCaptionParams, options?: InvokeOptions) => Promise<DocImagesRemoveCaptionResult>;
|
|
8144
8474
|
};
|
|
8145
8475
|
hyperlinks: {
|
|
8146
8476
|
list: (params?: DocHyperlinksListParams, options?: InvokeOptions) => Promise<DocHyperlinksListResult>;
|