{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/percher-app/json-schema/percher-app-app-schema.json",
  "title": "App",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/percher-app-openapi.json#/components/schemas/App",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "runtime": {
      "type": "string"
    },
    "framework": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "provisioning",
        "live",
        "crashed",
        "suspended"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "dataMode": {
      "type": "string",
      "enum": [
        "none",
        "pocketbase",
        "postgres",
        "sqlite",
        "convex",
        "supabase",
        "external"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "access": {
      "type": "string",
      "enum": [
        "owner",
        "admin",
        "viewer"
      ],
      "description": "Caller's effective role. 'admin' grants the operational write surface (deploy, env, domains, KV, logs, PocketBase ops); 'viewer' is read-only; 'owner' is everything including delete / transfer / rename / share management."
    },
    "liveDeploy": {
      "type": [
        "object",
        "null"
      ],
      "description": "The current live deployment, or null when nothing is live. The same row the `live` version ref resolves.",
      "properties": {
        "id": {
          "type": "string"
        },
        "commitSha": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "commitSha",
        "status"
      ]
    }
  }
}