/**
 * Deployment types — browser-safe
 *
 * Canonical API response types for the deployment resource.
 * The API's transformRow converts snake_case DB columns to these camelCase fields.
 */

export type DeploymentStatus = 'deploying' | 'active' | 'failed' | 'rolled_back' | 'stopped'

export interface Deployment {
  id: string
  organizationId: string
  status: DeploymentStatus
  sdkVersion: string
  deploymentVersion: string | null
  port: number | null
  pid: number | null
  tarballPath: string | null
  errorMessage: string | null
  createdAt: string
  updatedAt: string
}
