| 1 | export type Catalog = "shale" | "observability" | "computer"; |
| 2 | export type Access = "all" | string[]; |
| 3 | export type Resources = { id: string; name: string; description?: string; platform?: string; os?: string | null; arch?: string; state?: string; aiOwned?: boolean; expiresAt?: number | null }[]; |
| 4 | |
| 5 | export 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 | } |
| 10 | export 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 | } |