@superdoc/sdk 2.12.0-next.24 → 2.12.0-next.25

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.
@@ -2020,6 +2020,7 @@ export interface DocInsertParams {
2020
2020
  blockId?: string;
2021
2021
  start?: number;
2022
2022
  end?: number;
2023
+ valueFile?: string;
2023
2024
  offset?: number;
2024
2025
  }
2025
2026
  export interface DocReplaceParams {
@@ -31141,6 +31142,7 @@ export interface DocOpenParams {
31141
31142
  replacements?: "paired" | "independent";
31142
31143
  };
31143
31144
  contentOverride?: string;
31145
+ contentOverrideFile?: string;
31144
31146
  overrideType?: string;
31145
31147
  roomMode?: string;
31146
31148
  bootstrapSettlingMs?: number;
@@ -120842,6 +120844,7 @@ export interface DocInsertBoundParams {
120842
120844
  blockId?: string;
120843
120845
  start?: number;
120844
120846
  end?: number;
120847
+ valueFile?: string;
120845
120848
  offset?: number;
120846
120849
  }
120847
120850
  export interface DocReplaceBoundParams {
@@ -349,6 +349,8 @@ const CONTRACT = {
349
349
  ],
350
350
  "aliases": [],
351
351
  "examples": [
352
+ "superdoc insert --type html --value-file body.html",
353
+ "superdoc insert --type markdown --value-file -",
352
354
  "superdoc insert --value \"Hello, world!\"",
353
355
  "superdoc insert --block-id abc123 --value \"Appended text\"",
354
356
  "superdoc insert --type markdown --value \"## New Section\"",
@@ -10737,6 +10739,8 @@ const CONTRACT = {
10737
10739
  "aliases": [],
10738
10740
  "examples": [
10739
10741
  "superdoc open my-doc.docx",
10742
+ "superdoc open --content-override-file body.md --override-type markdown",
10743
+ "superdoc open --content-override-file - --override-type html",
10740
10744
  "superdoc open --content-override \"# Title\\n\\nBody text\" --override-type markdown",
10741
10745
  "superdoc open template.docx --content-override '<p>ALPHA01</p><p>BRAVO02</p>' --override-type html",
10742
10746
  "superdoc open my-doc.docx --collaboration-json '{\"url\":\"wss://collab.example.com\"}'"
@@ -25851,6 +25855,14 @@ const CONTRACT = {
25851
25855
  "description": "End offset within the block (character index).",
25852
25856
  "agentVisible": false
25853
25857
  },
25858
+ {
25859
+ "name": "valueFile",
25860
+ "kind": "flag",
25861
+ "type": "string",
25862
+ "flag": "value-file",
25863
+ "description": "Read content from a UTF-8 file, or '-' for stdin. Use instead of --value with --type text, html, or markdown.",
25864
+ "agentVisible": false
25865
+ },
25854
25866
  {
25855
25867
  "name": "offset",
25856
25868
  "kind": "flag",
@@ -308718,12 +308730,20 @@ const CONTRACT = {
308718
308730
  "flag": "content-override",
308719
308731
  "description": "Complete main-body content. Requires --override-type and cannot be combined with collaboration."
308720
308732
  },
308733
+ {
308734
+ "name": "contentOverrideFile",
308735
+ "kind": "flag",
308736
+ "type": "string",
308737
+ "flag": "content-override-file",
308738
+ "description": "Read main-body content from a UTF-8 file, or '-' for stdin. Use instead of --content-override. Requires --override-type and cannot be combined with collaboration.",
308739
+ "agentVisible": false
308740
+ },
308721
308741
  {
308722
308742
  "name": "overrideType",
308723
308743
  "kind": "flag",
308724
308744
  "type": "string",
308725
308745
  "flag": "override-type",
308726
- "description": "Content format for --content-override: markdown, html, or text. Required when --content-override is present."
308746
+ "description": "Content format: markdown, html, or text. Required with --content-override or --content-override-file."
308727
308747
  },
308728
308748
  {
308729
308749
  "name": "roomMode",
@@ -308957,7 +308977,7 @@ const CONTRACT = {
308957
308977
  },
308958
308978
  "overrideType": {
308959
308979
  "type": "string",
308960
- "description": "Content format for --content-override: markdown, html, or text. Required when --content-override is present."
308980
+ "description": "Content format: markdown, html, or text. Required with --content-override or --content-override-file."
308961
308981
  },
308962
308982
  "roomMode": {
308963
308983
  "type": "string",
@@ -3265,6 +3265,8 @@ export const CONTRACT = {
3265
3265
  ],
3266
3266
  "aliases": [],
3267
3267
  "examples": [
3268
+ "superdoc insert --type html --value-file body.html",
3269
+ "superdoc insert --type markdown --value-file -",
3268
3270
  "superdoc insert --value \"Hello, world!\"",
3269
3271
  "superdoc insert --block-id abc123 --value \"Appended text\"",
3270
3272
  "superdoc insert --type markdown --value \"## New Section\"",
@@ -13653,6 +13655,8 @@ export const CONTRACT = {
13653
13655
  "aliases": [],
13654
13656
  "examples": [
13655
13657
  "superdoc open my-doc.docx",
13658
+ "superdoc open --content-override-file body.md --override-type markdown",
13659
+ "superdoc open --content-override-file - --override-type html",
13656
13660
  "superdoc open --content-override \"# Title\\n\\nBody text\" --override-type markdown",
13657
13661
  "superdoc open template.docx --content-override '<p>ALPHA01</p><p>BRAVO02</p>' --override-type html",
13658
13662
  "superdoc open my-doc.docx --collaboration-json '{\"url\":\"wss://collab.example.com\"}'"
@@ -28767,6 +28771,14 @@ export const CONTRACT = {
28767
28771
  "description": "End offset within the block (character index).",
28768
28772
  "agentVisible": false
28769
28773
  },
28774
+ {
28775
+ "name": "valueFile",
28776
+ "kind": "flag",
28777
+ "type": "string",
28778
+ "flag": "value-file",
28779
+ "description": "Read content from a UTF-8 file, or '-' for stdin. Use instead of --value with --type text, html, or markdown.",
28780
+ "agentVisible": false
28781
+ },
28770
28782
  {
28771
28783
  "name": "offset",
28772
28784
  "kind": "flag",
@@ -311634,12 +311646,20 @@ export const CONTRACT = {
311634
311646
  "flag": "content-override",
311635
311647
  "description": "Complete main-body content. Requires --override-type and cannot be combined with collaboration."
311636
311648
  },
311649
+ {
311650
+ "name": "contentOverrideFile",
311651
+ "kind": "flag",
311652
+ "type": "string",
311653
+ "flag": "content-override-file",
311654
+ "description": "Read main-body content from a UTF-8 file, or '-' for stdin. Use instead of --content-override. Requires --override-type and cannot be combined with collaboration.",
311655
+ "agentVisible": false
311656
+ },
311637
311657
  {
311638
311658
  "name": "overrideType",
311639
311659
  "kind": "flag",
311640
311660
  "type": "string",
311641
311661
  "flag": "override-type",
311642
- "description": "Content format for --content-override: markdown, html, or text. Required when --content-override is present."
311662
+ "description": "Content format: markdown, html, or text. Required with --content-override or --content-override-file."
311643
311663
  },
311644
311664
  {
311645
311665
  "name": "roomMode",
@@ -311873,7 +311893,7 @@ export const CONTRACT = {
311873
311893
  },
311874
311894
  "overrideType": {
311875
311895
  "type": "string",
311876
- "description": "Content format for --content-override: markdown, html, or text. Required when --content-override is present."
311896
+ "description": "Content format: markdown, html, or text. Required with --content-override or --content-override-file."
311877
311897
  },
311878
311898
  "roomMode": {
311879
311899
  "type": "string",
@@ -13,6 +13,7 @@ function detailParam(param) {
13
13
  ...(Object.prototype.hasOwnProperty.call(param, 'flag') ? { flag: param.flag } : {}),
14
14
  type: param.type,
15
15
  ...(Object.prototype.hasOwnProperty.call(param, 'required') ? { required: param.required } : {}),
16
+ ...(Object.prototype.hasOwnProperty.call(param, 'description') ? { description: param.description } : {}),
16
17
  ...(Object.prototype.hasOwnProperty.call(param, 'schema') ? { schema: param.schema } : {}),
17
18
  };
18
19
  }
@@ -10,6 +10,7 @@ function detailParam(param) {
10
10
  ...(Object.prototype.hasOwnProperty.call(param, 'flag') ? { flag: param.flag } : {}),
11
11
  type: param.type,
12
12
  ...(Object.prototype.hasOwnProperty.call(param, 'required') ? { required: param.required } : {}),
13
+ ...(Object.prototype.hasOwnProperty.call(param, 'description') ? { description: param.description } : {}),
13
14
  ...(Object.prototype.hasOwnProperty.call(param, 'schema') ? { schema: param.schema } : {}),
14
15
  };
15
16
  }
@@ -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.12.0-next.24';
6
+ const SDK_VERSION = '2.12.0-next.25';
7
7
 
8
8
  exports.SDK_VERSION = SDK_VERSION;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.12.0-next.24";
1
+ export declare const SDK_VERSION = "2.12.0-next.25";
@@ -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.12.0-next.24';
4
+ export const SDK_VERSION = '2.12.0-next.25';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/sdk",
3
- "version": "2.12.0-next.24",
3
+ "version": "2.12.0-next.25",
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.12.0-next.24",
42
- "@superdoc/sdk-darwin-x64": "2.12.0-next.24",
43
- "@superdoc/sdk-linux-x64": "2.12.0-next.24",
44
- "@superdoc/sdk-linux-arm64": "2.12.0-next.24",
45
- "@superdoc/sdk-windows-x64": "2.12.0-next.24"
41
+ "@superdoc/sdk-darwin-arm64": "2.12.0-next.25",
42
+ "@superdoc/sdk-darwin-x64": "2.12.0-next.25",
43
+ "@superdoc/sdk-linux-x64": "2.12.0-next.25",
44
+ "@superdoc/sdk-linux-arm64": "2.12.0-next.25",
45
+ "@superdoc/sdk-windows-x64": "2.12.0-next.25"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"