{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-github-status-schema.json",
  "title": "GithubStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-github-api-openapi.yml#/components/schemas/GithubStatus",
  "type": "object",
  "properties": {
    "available": {
      "type": "boolean",
      "description": "Whether this instance has a live GitHub App configured"
    },
    "connected": {
      "type": "boolean",
      "description": "Whether this workspace has at least one active GitHub connection"
    },
    "app_slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "app_owner_login": {
      "type": [
        "string",
        "null"
      ]
    },
    "app_permissions_state": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "ready",
        "update_required",
        "unknown",
        null
      ],
      "description": "Whether the instance App has every current permission; null when no live App exists"
    },
    "app_settings_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "can_manage_app": {
      "type": "boolean",
      "description": "Whether the caller is an instance operator who can configure the shared App"
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "installation_id": {
            "type": "string"
          },
          "account_login": {
            "type": [
              "string",
              "null"
            ]
          },
          "account_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "organization",
              "user",
              null
            ]
          },
          "connection_id": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "needs_reauth"
            ]
          },
          "permissions_state": {
            "type": "string",
            "enum": [
              "ready",
              "approval_required",
              "unknown"
            ]
          },
          "permissions_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "installation_url": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "installation_id",
          "account_login",
          "account_type",
          "connection_id",
          "state",
          "permissions_state",
          "permissions_url",
          "installation_url"
        ]
      }
    }
  },
  "required": [
    "available",
    "connected",
    "app_slug",
    "app_owner_login",
    "app_permissions_state",
    "app_settings_url",
    "can_manage_app",
    "accounts"
  ]
}