Skip to content

KeyRecordSchema

katanakit-js / KeyRecordSchema

const KeyRecordSchema: ZodObject<{
createdAt: ZodString;
id: ZodString;
label: ZodString;
note: ZodOptional<ZodString>;
provider: ZodString;
secret: ZodString;
status: ZodEnum<{
active: "active";
revoked: "revoked";
}>;
updatedAt: ZodString;
}, $strip>;

Defined in: schemas/keyvault.schema.ts:38

One API key as stored in the vault. secret only ever lives inside the encrypted payload — presentation layers receive it masked unless the caller explicitly asks to reveal it.