{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buckybuild-com/json-schema/buckybuild-com-usage-receipts-schema.json",
  "title": "UsageReceipts",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buckybuild-com-usage-api-openapi.yml#/components/schemas/UsageReceipts",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "receiptId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "chargedMicroUsd": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "chargedUsd": {
            "type": "string"
          },
          "keyId": {
            "type": [
              "string",
              "null"
            ]
          },
          "surface": {
            "type": "string"
          }
        },
        "required": [
          "receiptId",
          "createdAt",
          "chargedMicroUsd",
          "chargedUsd",
          "keyId",
          "surface"
        ],
        "additionalProperties": false
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "pagination": {
          "type": "object",
          "properties": {
            "cursor": {
              "type": [
                "string",
                "null"
              ]
            },
            "hasMore": {
              "type": "boolean"
            },
            "totalCount": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "cursor",
            "hasMore",
            "totalCount"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "pagination"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "additionalProperties": false
}