{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-compute-credits-purchase-body-schema.json",
  "title": "ComputeCreditsPurchaseBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentstack-tech-agentnet-api-openapi.yml#/components/schemas/ComputeCreditsPurchaseBody",
  "properties": {
    "buyer_user_id": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Buyer User Id"
    },
    "credits_atomic": {
      "type": "integer",
      "maximum": 1000000000.0,
      "exclusiveMinimum": 0.0,
      "title": "Credits Atomic"
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 256,
      "minLength": 8,
      "title": "Idempotency Key"
    },
    "quote_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 8,
      "title": "Quote Id"
    },
    "quote_hash": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Quote Hash"
    },
    "max_agnt_atomic": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Agnt Atomic"
    },
    "trace_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Trace Id"
    },
    "demo_intent_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ],
      "title": "Demo Intent Id"
    },
    "include_proof": {
      "type": "boolean",
      "title": "Include Proof",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "buyer_user_id",
    "credits_atomic",
    "idempotency_key",
    "quote_id"
  ]
}