{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phala/json-schema/phala-github-profile-import-response-schema.json",
  "title": "GithubProfileImportResponse",
  "description": "Result of importing SSH keys from a GitHub profile.",
  "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/GithubProfileImportResponse",
  "properties": {
    "github_username": {
      "type": "string",
      "title": "Github Username",
      "description": "GitHub username that was imported"
    },
    "keys_added": {
      "type": "integer",
      "title": "Keys Added",
      "description": "New keys added"
    },
    "keys_skipped": {
      "type": "integer",
      "title": "Keys Skipped",
      "description": "Keys skipped (already exist by fingerprint)"
    },
    "errors": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Errors",
      "description": "Per-key errors encountered"
    }
  },
  "type": "object",
  "required": [
    "github_username",
    "keys_added",
    "keys_skipped"
  ]
}