@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 +10 -0
- package/dist/generated/client.d.ts +1 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/contract.cjs +7 -0
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +7 -0
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
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
|