ReferenceHTTP APIShapes
Shapes: K
Named input and output shapes starting with K, referenced from the router pages.
Each shape is a TypeScript-style rendering of the validation schema. ? marks an optional field; self is a recursive reference.
KeychainAdminSecretSchema
{
ref: string
owner: string
scope: string
fieldPath: string
version: number
createdAt: number
updatedAt: number
updatedBy: string
lastReadAt: number | null
usage: KeychainSecretUsageSchema
}KeychainAuditActionSchema
"put" | "delete" | "reveal" | "rotate-master-key" | "purge-retired-keys" | "download-recovery-key" | "delete-orphans" | "reset" | "acknowledge-reset" | "initialize"KeychainAuditEntrySchema
{
id: string
at: number
action: KeychainAuditActionSchema
actor: string
ref: string | null
detail: string | null
}KeychainKeySourceKindSchema
"mounted-file" | "previous-mounted-file" | "platform" | "default-file"KeychainKeySourceSchema
{
kind: KeychainKeySourceKindSchema
path?: string
sharesBackupWithDatabase: boolean
}KeychainResetRecordSchema
{
id: string
at: number
actor: string
lockedReason: string | null
archived: number
archivedCollection: string | null
archivedKeysCollection: string | null
clearedSettingsKeys: string[]
acknowledgedAt: number | null
}KeychainResolveEntrySchema
| { kind: "value"; value: string; version: number }
| { kind: "missing" }
| { kind: "unavailable"; reason: KeychainUnavailableReasonSchema }
| { kind: "forbidden" }KeychainResolveResultSchema
Record<string, KeychainResolveEntrySchema>KeychainSecretMetaSchema
{
ref: string
owner: string
scope: string
fieldPath: string
version: number
createdAt: number
updatedAt: number
updatedBy: string
lastReadAt: number | null
}KeychainSecretUsageSchema
"in-use" | "orphan" | "unknown"KeychainStateSchema
| { state: "ready" }
| { state: "locked"; reason: KeychainUnavailableReasonSchema }KeychainStatusSchema
{
keychain: KeychainStateSchema
keySource: KeychainKeySourceSchema | null
configuredSource: KeychainKeySourceSchema
fingerprint: string | null
activeKeyId: string | null
rotationPending: boolean
retiredWraps: number
recoveryKeyDownloadedAt: number | null
secretCount: number
lastReset: KeychainResetRecordSchema | null
}KeychainUnavailableReasonSchema
"key-missing" | "wrong-key" | "key-file-unreadable" | "store-unavailable" | "not-initialized" | "decrypt-failed"KeyEventSchema
{
id: string
trackId: string
timestamp: number
className: string
label?: string
labelScore?: number
labelMeta?: LabelAttributionSchema
subLabel?: string
subLabelScore?: number
subLabelMeta?: LabelAttributionSchema
importance: number
bestEventId: string
windowMs?: number
audioLabels?: ({ label: string; peakScore: number; count: number; firstAt: number; lastAt: number })[]
markForTrain?: boolean
debug?: boolean
debugNote?: string
favourited?: boolean
retrainStatus?: RetrainStatusSchema
}