@kedataindo/docflow-core 0.0.8 → 0.0.10

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.cts CHANGED
@@ -546,6 +546,15 @@ interface AIConfig {
546
546
  baseUrl: string;
547
547
  auth: Auth;
548
548
  model: string;
549
+ /**
550
+ * Who may receive this config in their browser (issue #126).
551
+ * - `shared` (default): any authenticated user gets it via GET and calls
552
+ * the LLM browser-direct — the #119 model.
553
+ * - `admin-only`: only tenant admins get it; everyone else must complete
554
+ * through the server's `/api/ai/complete` proxy so the key never leaves
555
+ * the server.
556
+ */
557
+ visibility?: 'shared' | 'admin-only';
549
558
  }
550
559
  interface KeyStorage {
551
560
  get(): Promise<AIConfig | null>;
package/dist/index.d.ts CHANGED
@@ -546,6 +546,15 @@ interface AIConfig {
546
546
  baseUrl: string;
547
547
  auth: Auth;
548
548
  model: string;
549
+ /**
550
+ * Who may receive this config in their browser (issue #126).
551
+ * - `shared` (default): any authenticated user gets it via GET and calls
552
+ * the LLM browser-direct — the #119 model.
553
+ * - `admin-only`: only tenant admins get it; everyone else must complete
554
+ * through the server's `/api/ai/complete` proxy so the key never leaves
555
+ * the server.
556
+ */
557
+ visibility?: 'shared' | 'admin-only';
549
558
  }
550
559
  interface KeyStorage {
551
560
  get(): Promise<AIConfig | null>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kedataindo/docflow-core",
3
3
  "license": "UNLICENSED",
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",