@flashbacktech/tsclient 0.4.50 → 0.4.52
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.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -588,6 +588,18 @@ var CredentialsClient = class {
|
|
|
588
588
|
const res = await this.http.get("/providers");
|
|
589
589
|
return res.providers ?? res.data ?? [];
|
|
590
590
|
}
|
|
591
|
+
/**
|
|
592
|
+
* globalAiProviders returns the AI provider ids the platform "global" key
|
|
593
|
+
* pool (admin org's reference project) can serve, e.g. ['ANTHROPIC']. Empty
|
|
594
|
+
* when no platform keys are configured — the UI then hides the non-BYOK
|
|
595
|
+
* provider picker entirely (BYOK-only, as before the feature).
|
|
596
|
+
*/
|
|
597
|
+
async globalAiProviders() {
|
|
598
|
+
const res = await this.http.get(
|
|
599
|
+
"/credentials/global-ai-providers"
|
|
600
|
+
);
|
|
601
|
+
return res.providers ?? res.data ?? [];
|
|
602
|
+
}
|
|
591
603
|
};
|
|
592
604
|
|
|
593
605
|
// src/modules/chat/ChatStream.ts
|