{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agenttool-dev/json-schema/agenttool-dev-escrow-schema.json",
  "title": "Escrow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agenttool-dev-economy-api-openapi.yml#/components/schemas/Escrow",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "creatorWallet": {
      "type": "string",
      "format": "uuid"
    },
    "workerWallet": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "amount": {
      "type": "integer",
      "minimum": 1
    },
    "description": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "funded",
        "released",
        "refunded",
        "disputed"
      ]
    },
    "managedBy": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "attestation_grant",
        "memory_witness_grant",
        "capability_invocation",
        null
      ]
    },
    "deadline": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "releasedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "creatorWallet",
    "workerWallet",
    "amount",
    "description",
    "status",
    "managedBy",
    "deadline",
    "releasedAt",
    "createdAt"
  ]
}