import type { UserProfileResponse } from './UserProfileResponse'; export type ApiKeyValidationResponse = { /** * True if provided key is valid, false otherwise */ isValid: boolean; /** * Id of the user associated with the api key. * (Initialized only if the key is valid) */ userId?: string | null; /** * Profile of the user associated with the api key. * (Initialized only if the key is valid and [RetrieveUserProfile = true] in ApiValidationRequest) */ user?: UserProfileResponse | null; /** * Scopes associated with the key * (Initialized only if the key is valid) */ keyScopes?: Record | null; };