{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-model-account-schema.json",
  "title": "ModelAccount",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-accounts-api-openapi.yml#/components/schemas/ModelAccount",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "provider": {
      "type": "string",
      "enum": [
        "claude",
        "codex"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "oauth",
        "api_key",
        "login"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "What its owner calls it; null shows the provider."
    },
    "shared": {
      "type": "boolean",
      "description": "A workspace account every agent may fall back to."
    },
    "mine": {
      "type": "boolean"
    },
    "hint": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "not_checked",
        "connecting",
        "needs_attention"
      ]
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "provider",
    "kind",
    "name",
    "shared",
    "mine",
    "hint",
    "status",
    "created_at"
  ]
}