import { K8sResourceCommon } from 'mod-arch-shared'; export type DisplayNameAnnotations = Partial<{ 'openshift.io/description': string; 'openshift.io/display-name': string; }>; export type K8sCondition = { type: string; status: string; reason?: string; message?: string; lastProbeTime?: string | null; lastTransitionTime?: string; lastHeartbeatTime?: string; }; export type ListConfigSecretsResponse = { secrets: { name: string; keys: string[] }[]; configMaps: { name: string; keys: string[] }[]; }; export type ConfigSecretItem = { name: string; keys: string[]; }; export type K8sDSGResource = K8sResourceCommon & { metadata: { annotations?: DisplayNameAnnotations & Partial<{ 'opendatahub.io/recommended-accelerators': string; }>; name: string; }; }; export type ProjectKind = K8sResourceCommon & { metadata: { annotations?: DisplayNameAnnotations & Partial<{ 'openshift.io/requester': string; // the username of the user that requested this project }>; labels?: Record; name: string; }; status?: { phase: 'Active' | 'Terminating'; }; }; export type NamespaceKind = { name: string; displayName?: string; };