@fluxfiles/node 0.1.21 → 0.1.22

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/index.d.mts CHANGED
@@ -105,6 +105,9 @@ interface BaseTokenOptions {
105
105
  * true interactive terminal instead of the built-in command-runner. Free; must be http(s).
106
106
  * Core-standalone only (like `allowTerminal`). */
107
107
  terminalPtyUrl?: string;
108
+ /** Optional self-hosted PDF-tools URL (Stirling-PDF, or any web PDF toolkit). When set, the
109
+ * UI shows a "PDF tools" action that embeds it (merge/split/OCR/convert/…). Free; http(s). */
110
+ pdfToolsUrl?: string;
108
111
  /** Allow the Optimization feature (POST /api/fm/optimize) — recompress images to WebP +
109
112
  * compress PDFs. **Free/core**; default **false** because it replaces/deletes originals, so
110
113
  * it's an opt-in capability. */
package/dist/index.d.ts CHANGED
@@ -105,6 +105,9 @@ interface BaseTokenOptions {
105
105
  * true interactive terminal instead of the built-in command-runner. Free; must be http(s).
106
106
  * Core-standalone only (like `allowTerminal`). */
107
107
  terminalPtyUrl?: string;
108
+ /** Optional self-hosted PDF-tools URL (Stirling-PDF, or any web PDF toolkit). When set, the
109
+ * UI shows a "PDF tools" action that embeds it (merge/split/OCR/convert/…). Free; http(s). */
110
+ pdfToolsUrl?: string;
108
111
  /** Allow the Optimization feature (POST /api/fm/optimize) — recompress images to WebP +
109
112
  * compress PDFs. **Free/core**; default **false** because it replaces/deletes originals, so
110
113
  * it's an opt-in capability. */
package/dist/index.js CHANGED
@@ -173,6 +173,7 @@ function applyTenantOverrides(payload, opts) {
173
173
  if (opts.allowCodeEdit !== void 0) payload.allow_code_edit = !!opts.allowCodeEdit;
174
174
  if (opts.allowTerminal !== void 0) payload.allow_terminal = !!opts.allowTerminal;
175
175
  if (opts.terminalPtyUrl) payload.terminal_pty_url = String(opts.terminalPtyUrl);
176
+ if (opts.pdfToolsUrl) payload.pdf_tools_url = String(opts.pdfToolsUrl);
176
177
  if (opts.allowOptimize !== void 0) payload.allow_optimize = !!opts.allowOptimize;
177
178
  if (opts.allowShare !== void 0) payload.allow_share = !!opts.allowShare;
178
179
  if (opts.allowIntake !== void 0) payload.allow_intake = !!opts.allowIntake;
package/dist/index.mjs CHANGED
@@ -151,6 +151,7 @@ function applyTenantOverrides(payload, opts) {
151
151
  if (opts.allowCodeEdit !== void 0) payload.allow_code_edit = !!opts.allowCodeEdit;
152
152
  if (opts.allowTerminal !== void 0) payload.allow_terminal = !!opts.allowTerminal;
153
153
  if (opts.terminalPtyUrl) payload.terminal_pty_url = String(opts.terminalPtyUrl);
154
+ if (opts.pdfToolsUrl) payload.pdf_tools_url = String(opts.pdfToolsUrl);
154
155
  if (opts.allowOptimize !== void 0) payload.allow_optimize = !!opts.allowOptimize;
155
156
  if (opts.allowShare !== void 0) payload.allow_share = !!opts.allowShare;
156
157
  if (opts.allowIntake !== void 0) payload.allow_intake = !!opts.allowIntake;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxfiles/node",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Server-side Node/TypeScript SDK for minting FluxFiles JWTs (plain + BYOB), byte-compatible with the PHP core",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
package/src/token.ts CHANGED
@@ -145,6 +145,7 @@ function applyTenantOverrides(payload: Record<string, unknown>, opts: BaseTokenO
145
145
  // (Node mints for one), not a proxy adapter that doesn't serve /api/fm/terminal.
146
146
  if (opts.allowTerminal !== undefined) payload.allow_terminal = !!opts.allowTerminal;
147
147
  if (opts.terminalPtyUrl) payload.terminal_pty_url = String(opts.terminalPtyUrl);
148
+ if (opts.pdfToolsUrl) payload.pdf_tools_url = String(opts.pdfToolsUrl);
148
149
  if (opts.allowOptimize !== undefined) payload.allow_optimize = !!opts.allowOptimize;
149
150
  // Other paid-module claims (inert unless the module is installed + licensed).
150
151
  if (opts.allowShare !== undefined) payload.allow_share = !!opts.allowShare;
package/src/types.ts CHANGED
@@ -109,6 +109,9 @@ export interface BaseTokenOptions {
109
109
  * true interactive terminal instead of the built-in command-runner. Free; must be http(s).
110
110
  * Core-standalone only (like `allowTerminal`). */
111
111
  terminalPtyUrl?: string;
112
+ /** Optional self-hosted PDF-tools URL (Stirling-PDF, or any web PDF toolkit). When set, the
113
+ * UI shows a "PDF tools" action that embeds it (merge/split/OCR/convert/…). Free; http(s). */
114
+ pdfToolsUrl?: string;
112
115
  /** Allow the Optimization feature (POST /api/fm/optimize) — recompress images to WebP +
113
116
  * compress PDFs. **Free/core**; default **false** because it replaces/deletes originals, so
114
117
  * it's an opt-in capability. */