@superdoc-dev/sdk 1.3.0-next.2 → 1.3.0-next.4

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/README.md CHANGED
@@ -59,6 +59,16 @@ await doc.close();
59
59
  await client.dispose();
60
60
  ```
61
61
 
62
+ ## Encrypted Documents
63
+
64
+ Pass `password` when opening a password-protected `.docx`:
65
+
66
+ ```ts
67
+ const doc = await client.open({ doc: './secret.docx', password: 'mypassword' });
68
+ ```
69
+
70
+ The password is forwarded only for the initial open and is not persisted. If the password is missing or wrong, the error includes a machine-readable code (`DOCX_PASSWORD_REQUIRED`, `DOCX_PASSWORD_INVALID`).
71
+
62
72
  ## API
63
73
 
64
74
  ### Client
@@ -9161,6 +9161,7 @@ export interface DocOpenParams {
9161
9161
  bootstrapSettlingMs?: number;
9162
9162
  userName?: string;
9163
9163
  userEmail?: string;
9164
+ password?: string;
9164
9165
  }
9165
9166
  export interface DocSaveParams {
9166
9167
  sessionId?: string;