Type Alias: KeyRecord
type KeyRecord = object;Defined in: packages/sdk/src/index.ts:667
SK-APIKEYS-010 — one row in listKeys(). Plaintext is never present
(SK-APIKEYS-002); last4 is the only display affordance. Per-type
claim fields are nullable: dbId is populated for pk_live,
(mcpHost, deviceId) for sk_mcp, name is the optional human
label for sk_live. revokedAt is non-null on revoked rows —
surfaces group active + revoked from the same slice.
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
createdAt |
number |
packages/sdk/src/index.ts:676 |
dbId |
string | null |
packages/sdk/src/index.ts:672 |
deviceId |
string | null |
packages/sdk/src/index.ts:674 |
id |
string |
packages/sdk/src/index.ts:668 |
keyType |
KeyType |
packages/sdk/src/index.ts:669 |
last4 |
string |
packages/sdk/src/index.ts:670 |
lastUsedAt |
number | null |
packages/sdk/src/index.ts:675 |
mcpHost |
string | null |
packages/sdk/src/index.ts:673 |
name |
string | null |
packages/sdk/src/index.ts:671 |
revokedAt |
number | null |
packages/sdk/src/index.ts:677 |