43 lines
814 B
TypeScript
43 lines
814 B
TypeScript
export type Environment = 'development' | 'staging' | 'production'
|
|
|
|
export type ConfigType = 'text' | 'secret' | 'url' | 'json' | 'boolean' | 'number'
|
|
|
|
export interface App {
|
|
id: string
|
|
name: string
|
|
slug: string
|
|
description: string | null
|
|
icon_url?: string | null
|
|
api_key: string
|
|
created_at: string
|
|
updated_at: string
|
|
}
|
|
|
|
export interface AppEnvironment {
|
|
id: string
|
|
app_id: string
|
|
name: Environment
|
|
}
|
|
|
|
export interface ConfigEntry {
|
|
id: string
|
|
environment_id: string
|
|
key: string
|
|
value: string
|
|
type: ConfigType
|
|
description: string | null
|
|
created_at: string
|
|
updated_at: string
|
|
}
|
|
|
|
export interface AuditLog {
|
|
id: string
|
|
app_id: string | null
|
|
environment: string | null
|
|
action: string
|
|
key: string | null
|
|
old_value: string | null
|
|
actor: string
|
|
created_at: string
|
|
}
|