{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-credit-ledger-out-schema.json",
  "title": "CreditLedgerOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-credits-api-openapi.yml#/components/schemas/CreditLedgerOut",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/CreditLedgerItem"
      },
      "type": "array",
      "title": "Items"
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nextcursor"
    }
  },
  "type": "object",
  "$defs": {
    "CreditLedgerItem": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "amount": {
          "type": "integer",
          "title": "Amount"
        },
        "lotId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lotid"
        },
        "jobId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jobid"
        },
        "animationId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Animationid"
        },
        "meta": {
          "additionalProperties": true,
          "type": "object",
          "title": "Meta"
        },
        "createdAt": {
          "type": "string",
          "title": "Createdat"
        }
      },
      "type": "object",
      "required": [
        "id",
        "type",
        "amount",
        "createdAt"
      ],
      "title": "CreditLedgerItem"
    }
  }
}