@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 1.04 kB
TypeScript
import type { Credential } from "@earendil-works/pi-ai";
export interface StoredSlotRead {
readonly providerId: string;
readonly slotName: string;
readonly authPath: string | undefined;
}
export declare function validateReadOnlyAuthData(parsed: unknown): void;
export declare function resolveReadOnlyCredential(credential: Credential | undefined, providerId: string, authPath: string): Promise<Credential | undefined>;
export declare function resolveStoredCredential(credential: Credential | undefined, providerId: string, authPath: string | undefined): Promise<Credential | undefined>;
/**
* A slot-scoped read resolves only the selected slot's reference, never the flat key or a sibling.
* A flat credential is its one `default` slot, read exactly as `read` reads it.
*/
export declare function resolveStoredSlot(credential: Credential | undefined, slot: StoredSlotRead, readFlat: (credential: Credential) => Promise<Credential | undefined>): Promise<Credential | undefined>;
//# sourceMappingURL=auth-credential-values.d.ts.map