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