Type Alias: KeyRecord
type KeyRecord = object;Defined in: packages/sdk/src/index.ts:722
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:731 |
dbId |
string | null |
packages/sdk/src/index.ts:727 |
deviceId |
string | null |
packages/sdk/src/index.ts:729 |
id |
string |
packages/sdk/src/index.ts:723 |
keyType |
KeyType |
packages/sdk/src/index.ts:724 |
last4 |
string |
packages/sdk/src/index.ts:725 |
lastUsedAt |
number | null |
packages/sdk/src/index.ts:730 |
mcpHost |
string | null |
packages/sdk/src/index.ts:728 |
name |
string | null |
packages/sdk/src/index.ts:726 |
revokedAt |
number | null |
packages/sdk/src/index.ts:732 |