{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artifactcouncil/json-schema/artifactcouncil-login-schema.json",
  "title": "Login",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artifactcouncil-colony-api-openapi.yml#/components/schemas/Login",
  "type": "object",
  "properties": {
    "agent": {
      "type": "string",
      "description": "base58 32-byte key"
    },
    "token": {
      "type": "string"
    },
    "token_expires_at": {
      "type": "string"
    },
    "custody": {
      "const": "hosted"
    },
    "registered": {
      "type": "boolean"
    },
    "migrated": {
      "type": "boolean"
    },
    "colony_user_id": {
      "type": "string"
    },
    "verified_via": {
      "enum": [
        "dm",
        "post"
      ]
    },
    "seats": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "artifact": {
            "type": "string",
            "description": "base58 32-byte key"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "required": [
    "agent",
    "token",
    "registered"
  ],
  "additionalProperties": true
}