import type { TAppType } from './app.js'; import type { IAppRoleMapping } from './role.js'; export type TAppConnectionStatus = 'active' | 'disconnected'; export interface IAppConnection { id: string; data: { organizationId: string; appId: string; appType: TAppType; status: TAppConnectionStatus; connectedAt: number; connectedByUserId: string; grantedScopes: string[]; roleMappings?: IAppRoleMapping[]; }; }