{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/attestedmemory-net/json-schema/attestedmemory-net-deal-request-schema.json",
  "title": "DealRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deal-attestedmemory-openapi.json#/components/schemas/DealRequest",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 160,
      "minLength": 3,
      "title": "Title"
    },
    "seller": {
      "type": "string",
      "maxLength": 42,
      "minLength": 42,
      "title": "Seller"
    },
    "seller_actor": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^did:actor:[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Seller Actor"
    },
    "buyer": {
      "type": "string",
      "maxLength": 42,
      "minLength": 42,
      "title": "Buyer"
    },
    "amount_usdc": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1,
      "title": "Amount Usdc"
    },
    "condition_kind": {
      "type": "string",
      "pattern": "^(provenance_receipt|truth_claim|attestation|buyer_accept)$",
      "title": "Condition Kind"
    },
    "condition_ref": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Condition Ref"
    },
    "condition_issuer": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Condition Issuer"
    },
    "deadline_hours": {
      "type": "integer",
      "maximum": 8760.0,
      "minimum": 1.0,
      "title": "Deadline Hours",
      "default": 168
    },
    "hold_seconds": {
      "type": "integer",
      "maximum": 604800.0,
      "minimum": 0.0,
      "title": "Hold Seconds",
      "default": 0
    },
    "require_trusted_slot": {
      "type": "boolean",
      "title": "Require Trusted Slot",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "title",
    "seller",
    "buyer",
    "amount_usdc",
    "condition_kind",
    "condition_ref"
  ]
}