{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adro1b33/main/json-schema/adro1b33-credit-wallet-schema.json",
  "title": "CreditWallet",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adro1b33-credits-api-openapi.yml#/components/schemas/CreditWallet",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "teamId": {
      "type": "integer",
      "readOnly": true
    },
    "teamName": {
      "type": "string",
      "readOnly": true
    },
    "balance": {
      "type": "integer",
      "readOnly": true
    },
    "bucketsBySource": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "readOnly": true
    },
    "billingMode": {
      "type": "string",
      "description": "현재 테넌트의 실제 결제 모드 (TEAM/TENANT). FE 가 Add Credits 숨김에 사용.",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "balance",
    "billingMode",
    "bucketsBySource",
    "createdAt",
    "id",
    "teamId",
    "teamName",
    "updatedAt"
  ]
}