{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adro1b33/main/json-schema/adro1b33-credit-transaction-schema.json",
  "title": "CreditTransaction",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adro1b33-credits-api-openapi.yml#/components/schemas/CreditTransaction",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "operation": {
      "type": "integer"
    },
    "operationKind": {
      "type": "string",
      "readOnly": true
    },
    "operationIdempotencyKey": {
      "type": "string",
      "readOnly": true
    },
    "bucket": {
      "type": "integer"
    },
    "bucketSource": {
      "type": "string",
      "readOnly": true
    },
    "sequence": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 0
    },
    "delta": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": -2147483648
    },
    "bucketRemainingAfter": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 0
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "bucket",
    "bucketRemainingAfter",
    "bucketSource",
    "createdAt",
    "delta",
    "id",
    "operation",
    "operationIdempotencyKey",
    "operationKind",
    "sequence"
  ]
}