export type PatStatus = 'active' | 'expired' | 'revoked'; export type PatPermissionSource = 'delegate' | 'owner'; export interface PatAppScope { applicationId: string; ownerUserId: string; permissionSource: PatPermissionSource; } export interface PatUsageApp { applicationId: string; ownerUserId: string; } export interface PatSummary { appScopes: PatAppScope[]; createdAt: null | string; description: string; expiresAt: null | string; lastUsedAt: null | string; lastUsedByApp: null | PatUsageApp; revokedAt: null | string; status: PatStatus; tokenId: string; tokenPrefix: string; } export type PatListItem = PatSummary;