fix(api): ошибки типов, скрытые отсутствием typecheck

- jose v6 не экспортирует KeyLike → CryptoKey
- SimpleWebAuthn v13 требует Uint8Array<ArrayBuffer>
- targetType 'credential' в AUDIT_TARGET_TYPES (писался в аудит passkey-ов)
- target-app: начальные значения host/path/search никогда не читались
This commit is contained in:
Denozordec
2026-09-23 14:51:38 +07:00
parent e107af8e43
commit c48132e89e
3 changed files with 12 additions and 12 deletions
+1
View File
@@ -23,6 +23,7 @@ export const AUDIT_TARGET_TYPES = [
'session',
'system',
'app_resource',
'credential',
] as const
export type AuditTargetType = (typeof AUDIT_TARGET_TYPES)[number]
export const auditTargetTypeSchema = z.enum(AUDIT_TARGET_TYPES)