{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/imgapi-ai/json-schema/imgapi-ai-get-api-imgapi-credits-ledger-response-schema.json",
  "title": "GetApiImgapiCreditsLedgerResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/imgapi-ai-openapi-generated.yml#/components/schemas/GetApiImgapiCreditsLedgerResponse",
  "type": "object",
  "properties": {
    "page": {
      "type": "integer"
    },
    "pageSize": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "pages": {
      "type": "integer"
    },
    "available": {
      "type": "integer"
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "scene": {
            "type": "string"
          },
          "amount": {
            "type": "integer"
          },
          "state": {
            "type": "string"
          },
          "remaining": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "taskId": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}