| 1 | export type Catalog = "shale" | "agents" | "observability"; |
| 2 | export type Access = "all" | string[]; |
| 3 | export type Resources = { id: string; name: string; description?: string }[]; |
| 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 | machines: { id: string; name: string; platform: string; online: boolean }[]; |
| 9 | shale: { linkedAt: number } | null; |
| 10 | } |
| 11 | export interface Consent { |
| 12 | linked: boolean; |
| 13 | client: string; |
| 14 | catalog: Catalog; |
| 15 | account: string; |
| 16 | redirectHost: string; |
| 17 | scopes: string[]; |
| 18 | resources: Resources; |
| 19 | resourceError: string | null; |
| 20 | } |