@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
18 lines • 979 B
TypeScript
import type { FieldClass } from "./classify.ts";
export declare const CREDENTIAL_SLOT_FIELDS: {
readonly name: "public";
readonly displayName: "device-only";
readonly source: "public";
readonly key: "sealed";
readonly access: "sealed";
readonly refresh: "device-only";
readonly expires: "public";
readonly route: "public";
readonly env: "forces-device";
};
/** A stored credential key outside the declared fields (OAuth flows may add any) keeps the credential on the device. */
export declare function classifyCredentialField(type: "api_key" | "oauth", key: string): FieldClass;
export type CredentialDeviceReason = "env" | "undeclared-field";
/** Why a stored auth.json credential must be used on the device; empty when sealed custody can compose its requests. */
export declare function credentialDeviceReasons(credential: Readonly<Record<string, unknown>>): readonly CredentialDeviceReason[];
//# sourceMappingURL=credential-fields.d.ts.map