{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phala/json-schema/phala-github-sync-response-schema.json",
  "title": "GithubSyncResponse",
  "description": "Result of GitHub SSH key sync operation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phala-ssh-keys-api-openapi.yml#/components/schemas/GithubSyncResponse",
  "properties": {
    "synced_count": {
      "type": "integer",
      "title": "Synced Count",
      "description": "Total keys synced from GitHub"
    },
    "keys_added": {
      "type": "integer",
      "title": "Keys Added",
      "description": "New keys added"
    },
    "keys_updated": {
      "type": "integer",
      "title": "Keys Updated",
      "description": "Existing keys updated"
    },
    "keys_removed": {
      "type": "integer",
      "title": "Keys Removed",
      "description": "Stale keys removed"
    },
    "errors": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Errors",
      "description": "Sync errors encountered"
    }
  },
  "type": "object",
  "required": [
    "synced_count",
    "keys_added",
    "keys_updated",
    "keys_removed"
  ]
}