{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apipass/json-schema/apipass-keys-need-refresh-response-schema.json",
  "title": "KeysNeedRefreshResponse",
  "description": "需要刷新的 keys 列表响应",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apipass-provider-token-api-openapi.yml#/components/schemas/KeysNeedRefreshResponse",
  "properties": {
    "code": {
      "type": "integer",
      "title": "Code",
      "default": 200
    },
    "message": {
      "type": "string",
      "title": "Message",
      "default": "success"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/ProviderKeyRefreshItem"
      },
      "type": "array",
      "title": "Data"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    }
  },
  "type": "object",
  "required": [
    "data",
    "total"
  ],
  "$defs": {
    "ProviderKeyRefreshItem": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "provider_id": {
          "type": "string",
          "title": "Provider Id"
        },
        "api_key": {
          "type": "string",
          "title": "Api Key"
        },
        "is_active": {
          "type": "boolean",
          "title": "Is Active"
        },
        "last_checked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Checked At"
        },
        "token_expires_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Token Expires At"
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metadata"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Note"
        }
      },
      "type": "object",
      "required": [
        "id",
        "provider_id",
        "api_key",
        "is_active"
      ],
      "title": "ProviderKeyRefreshItem",
      "description": "需要刷新的 key 信息"
    }
  }
}