{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-client-token-admin-schema-schema.json",
  "title": "ClientTokenAdminSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/romm-client-tokens-api-openapi.yml#/components/schemas/ClientTokenAdminSchema",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "last_used_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Used At"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "user_id": {
      "type": "integer",
      "title": "User Id"
    },
    "device_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Device Id"
    },
    "username": {
      "type": "string",
      "title": "Username"
    },
    "user_avatar_path": {
      "type": "string",
      "title": "User Avatar Path"
    },
    "user_updated_at": {
      "type": "string",
      "title": "User Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "scopes",
    "expires_at",
    "last_used_at",
    "created_at",
    "user_id",
    "username",
    "user_avatar_path",
    "user_updated_at"
  ]
}