@kedataindo/docflow-core 0.0.9 → 0.0.11
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 +9 -0
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
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>;
|