@flashbacktech/flashbackclient 0.2.83 → 0.2.84
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/api/client.js
CHANGED
|
@@ -237,6 +237,8 @@ class ApiClient {
|
|
|
237
237
|
queryParams.append('workspaceId', params.workspaceId);
|
|
238
238
|
if (params.capability !== undefined)
|
|
239
239
|
queryParams.append('capability', String(params.capability));
|
|
240
|
+
if (params.provider)
|
|
241
|
+
queryParams.append('provider', params.provider);
|
|
240
242
|
}
|
|
241
243
|
}
|
|
242
244
|
return this.makeRequest('apikeys?' + queryParams.toString(), 'GET', null);
|
|
@@ -280,11 +280,13 @@ export declare enum ProviderCapability {
|
|
|
280
280
|
/** General / all (e.g. OTHER provider). */
|
|
281
281
|
All = 255
|
|
282
282
|
}
|
|
283
|
-
/** Query params for GET /apikeys. When capability is set, only keys whose provider supports that capability are returned. */
|
|
283
|
+
/** Query params for GET /apikeys. When capability is set, only keys whose provider supports that capability are returned. When provider is set, only keys for that provider (e.g. "AWS", "OPENAI") are returned. */
|
|
284
284
|
export interface GetProviderApiKeysParams {
|
|
285
285
|
workspaceId?: string;
|
|
286
286
|
/** Filter to providers that support this capability (e.g. ProviderCapability.Storage or ProviderCapability.AI). */
|
|
287
287
|
capability?: ProviderCapability;
|
|
288
|
+
/** Filter to API keys for this provider only (e.g. "AWS", "GCP", "OPENAI", "ANTHROPIC"). Use when the user has already chosen a provider (e.g. creating an AWS bucket or OPENAI LLM). */
|
|
289
|
+
provider?: string;
|
|
288
290
|
}
|
|
289
291
|
export interface ProviderApiKeyDTO {
|
|
290
292
|
id: string;
|