MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / listCredentials

Function listCredentials

ui/src/components/workspace/api.ts:620–625  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618}
619
620export async function listCredentials(): Promise<SavedCredential[]> {
621 const res = await fetch('/api/workspaces/credentials');
622 if (!res.ok) throw new Error(`list credentials failed: ${res.status}`);
623 const body = (await res.json()) as { credentials: SavedCredential[] };
624 return body.credentials;
625}
626
627/** List only the credentials the given agent can be driven by (wire-compatible). */
628export async function listAgentCredentials(agent: string): Promise<SavedCredential[]> {

Callers 2

WorkspaceAIConfigModalFunction · 0.90
handleSaveCredentialFunction · 0.90

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected