1export type Catalog = "shale" | "observability" | "computer";
2export type Access = "all" | string[];
3export type Resources = { id: string; name: string; description?: string; platform?: string; os?: string | null; arch?: string; state?: string; aiOwned?: boolean; expiresAt?: number | null }[];
4
5export interface Connections {
6 catalogs: { id: Catalog; name: string; endpoint: string }[];
7 connections: { id: string; name: string; catalog: Catalog; resources: Access; scopes: string[]; createdAt: number }[];
8 shale: { linkedAt: number } | null;
9}
10export interface Consent {
11 linked: boolean;
12 client: string;
13 catalog: Catalog;
14 account: string;
15 redirectHost: string;
16 scopes: string[];
17 resources: Resources;
18 resourceError: string | null;
19}