{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/layero-ru/json-schema/layero-ru-project-out-schema.json",
  "title": "ProjectOut",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/layero-ru-openapi.json#/components/schemas/ProjectOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "slug": {
      "type": "string",
      "title": "Slug"
    },
    "apex_hostname": {
      "type": "string",
      "title": "Apex Hostname"
    },
    "organization": {
      "$ref": "#/$defs/OrganizationInline"
    },
    "repo_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Repo Url"
    },
    "repo_full_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Repo Full Name"
    },
    "default_branch": {
      "type": "string",
      "title": "Default Branch"
    },
    "source_type": {
      "type": "string",
      "title": "Source Type",
      "default": "github"
    },
    "source_provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Provider"
    },
    "github_integration_enabled": {
      "type": "boolean",
      "title": "Github Integration Enabled",
      "default": false
    },
    "cli_deploys_enabled": {
      "type": "boolean",
      "title": "Cli Deploys Enabled",
      "default": true
    },
    "redeploy_available": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Redeploy Available"
    },
    "framework_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Framework Hint"
    },
    "build_cmd": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Build Cmd"
    },
    "output_dir": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Dir"
    },
    "start_cmd": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Cmd"
    },
    "port": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Port"
    },
    "preset": {
      "anyOf": [
        {
          "$ref": "#/$defs/ProjectPresetOut"
        },
        {
          "type": "null"
        }
      ]
    },
    "package_manager": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Package Manager"
    },
    "node_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Node Version"
    },
    "root_directory": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Root Directory"
    },
    "cancel_superseded": {
      "type": "boolean",
      "title": "Cancel Superseded",
      "default": true
    },
    "auto_deploy_on_push": {
      "type": "boolean",
      "title": "Auto Deploy On Push",
      "default": true
    },
    "auto_deploy_paused_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Deploy Paused At"
    },
    "auto_deploy_pause_streak": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Deploy Pause Streak"
    },
    "auto_deploy_pause_deploy_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Deploy Pause Deploy Id"
    },
    "auto_deploy_pause_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Deploy Pause Error"
    },
    "auto_deploy_pause_scope": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Deploy Pause Scope"
    },
    "auth_enabled": {
      "type": "boolean",
      "title": "Auth Enabled",
      "default": false
    },
    "auth_realm_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Realm Name"
    },
    "indexing_enabled": {
      "type": "boolean",
      "title": "Indexing Enabled",
      "default": false
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "has_in_flight": {
      "type": "boolean",
      "title": "Has In Flight",
      "default": false
    },
    "default_env_ready": {
      "type": "boolean",
      "title": "Default Env Ready",
      "default": false
    },
    "last_failed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Failed At"
    },
    "publish_status": {
      "type": "string",
      "title": "Publish Status",
      "default": "unknown"
    },
    "apex_cdn_ready": {
      "type": "boolean",
      "title": "Apex Cdn Ready",
      "default": false
    },
    "retired_hostnames": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Retired Hostnames",
      "default": []
    },
    "retired_until": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Retired Until"
    },
    "project_type": {
      "type": "string",
      "title": "Project Type",
      "default": "spa"
    },
    "fullstack_config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fullstack Config"
    },
    "project_type_suggestion": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Type Suggestion"
    },
    "build_settings_suggestion": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Build Settings Suggestion"
    },
    "runtime_instance_tier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Runtime Instance Tier"
    },
    "status": {
      "type": "string",
      "title": "Status",
      "default": "active"
    },
    "repo_status": {
      "type": "string",
      "title": "Repo Status",
      "default": "connected"
    },
    "github_app_installation_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Github App Installation Id"
    },
    "installation_state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Installation State"
    },
    "my_role": {
      "type": "string",
      "title": "My Role",
      "default": "viewer"
    },
    "production_deploy_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Production Deploy Id"
    },
    "previous_production_deploy_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Production Deploy Id"
    },
    "auto_promote_default_branch": {
      "type": "boolean",
      "title": "Auto Promote Default Branch",
      "default": true
    },
    "production_pointer_enabled": {
      "type": "boolean",
      "title": "Production Pointer Enabled",
      "default": false
    },
    "member_count": {
      "type": "integer",
      "title": "Member Count",
      "default": 1
    },
    "production_branch_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Production Branch Name"
    },
    "branding_enabled": {
      "type": "boolean",
      "title": "Branding Enabled",
      "default": true
    },
    "footer_color": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Footer Color"
    },
    "is_suspended": {
      "type": "boolean",
      "title": "Is Suspended",
      "default": false
    },
    "is_manually_suspended": {
      "type": "boolean",
      "title": "Is Manually Suspended",
      "default": false
    },
    "is_blocked": {
      "type": "boolean",
      "title": "Is Blocked",
      "default": false
    },
    "runtime_last_failure_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Runtime Last Failure Reason"
    },
    "runtime_last_failed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Runtime Last Failed At"
    },
    "runtime_memory_advisory": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Runtime Memory Advisory"
    },
    "runtime_memory_advisory_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Runtime Memory Advisory At"
    },
    "favicon_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Favicon Url"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "slug",
    "apex_hostname",
    "organization",
    "default_branch",
    "created_at"
  ],
  "$defs": {
    "OrganizationInline": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "github_login": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Github Login"
        },
        "slug": {
          "type": "string",
          "title": "Slug"
        },
        "kind": {
          "type": "string",
          "title": "Kind",
          "default": "team"
        }
      },
      "type": "object",
      "required": [
        "id",
        "slug"
      ],
      "title": "OrganizationInline"
    },
    "ProjectPresetOut": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "fields": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Fields"
        },
        "defaults": {
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": "object",
          "title": "Defaults",
          "default": {}
        },
        "sources": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Sources",
          "default": {}
        },
        "start_candidates": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Start Candidates",
          "default": []
        },
        "policy": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Policy",
          "default": {}
        },
        "has_ssr_switch": {
          "type": "boolean",
          "title": "Has Ssr Switch",
          "default": false
        },
        "env_prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Env Prefix"
        }
      },
      "type": "object",
      "required": [
        "name",
        "label",
        "fields"
      ],
      "title": "ProjectPresetOut",
      "description": "Договор фреймворка о сборке — в том виде, в каком его читает панель.\n\nСчитается из `detection.spec.json` (`services/presets.py`), поэтому вторая\nрукописная таблица умолчаний в панели становится не нужна."
    }
  }
}