{
  "openapi": "3.1.0",
  "info": {
    "title": "Torq Developer API",
    "version": "1.0.0-private-preview",
    "description": "Canonical Postgres-backed APIs and non-custodial workflow preparation for Torq V2."
  },
  "servers": [
    {
      "url": "https://api.torq.finance"
    }
  ],
  "paths": {
    "/v1/activity": {
      "get": {
        "operationId": "listActivity",
        "summary": "List activity",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/allocation-intelligence": {
      "get": {
        "operationId": "listAllocationIntelligence",
        "summary": "List allocation_intelligence",
        "security": [
          {
            "PublishableKey": [],
            "WalletSession": []
          },
          {
            "SecretKey": [],
            "WalletSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AllocationIntelligenceResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assets": {
      "get": {
        "operationId": "listAssets",
        "summary": "List assets",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/credit-facilities": {
      "get": {
        "operationId": "listCreditFacilities",
        "summary": "List credit_facilities",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditFacilityResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/deployments": {
      "get": {
        "operationId": "listDeployments",
        "summary": "List deployments",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/eligibility": {
      "get": {
        "operationId": "listEligibility",
        "summary": "List eligibility",
        "security": [
          {
            "PublishableKey": [],
            "WalletSession": []
          },
          {
            "SecretKey": [],
            "WalletSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EligibilityResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/entities": {
      "get": {
        "operationId": "listEntities",
        "summary": "List entities",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fees": {
      "get": {
        "operationId": "listFees",
        "summary": "List fees",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeeResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/funds": {
      "get": {
        "operationId": "listFunds",
        "summary": "List funds",
        "security": [
          {
            "PublishableKey": []
          },
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/liquidation-recovery": {
      "get": {
        "operationId": "listLiquidationRecovery",
        "summary": "List liquidation_recovery",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiquidationRecoveryResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/markets": {
      "get": {
        "operationId": "listMarkets",
        "summary": "List markets",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messaging": {
      "get": {
        "operationId": "listMessaging",
        "summary": "List messaging",
        "security": [
          {
            "PublishableKey": [],
            "WalletSession": []
          },
          {
            "SecretKey": [],
            "WalletSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/nav-reports": {
      "get": {
        "operationId": "listNavReports",
        "summary": "List nav_reports",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NavReportResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/networks": {
      "get": {
        "operationId": "listNetworks",
        "summary": "List networks",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/oracles": {
      "get": {
        "operationId": "listOracles",
        "summary": "List oracles",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OracleResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/partner-programs": {
      "get": {
        "operationId": "listPartnerPrograms",
        "summary": "List partner_programs",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerProgramResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/positions": {
      "get": {
        "operationId": "listPositions",
        "summary": "List positions",
        "security": [
          {
            "PublishableKey": [],
            "WalletSession": []
          },
          {
            "SecretKey": [],
            "WalletSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PositionResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tranches": {
      "get": {
        "operationId": "listTranches",
        "summary": "List tranches",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/vaults": {
      "get": {
        "operationId": "listVaults",
        "summary": "List vaults",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wrappers": {
      "get": {
        "operationId": "listWrappers",
        "summary": "List wrappers",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WrapperResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assets/{resourceId}": {
      "get": {
        "operationId": "getAsset",
        "summary": "Get complete asset metadata and current pricing",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/markets/{resourceId}": {
      "get": {
        "operationId": "getMarket",
        "summary": "Get complete market economics, liquidity, risk, assets, funding, and access state",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketResource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "style": "form",
            "explode": false,
            "description": "Return only these canonical fields. Identity, address, chain, and freshness evidence remain included when present.",
            "schema": {
              "type": "array",
              "minItems": 1,
              "maxItems": 50,
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "symbol",
                  "name",
                  "loanAssetAddress",
                  "collateralAssetAddress",
                  "loanAsset",
                  "collateralAsset",
                  "oracleAddress",
                  "oracle",
                  "interestRateModelAddress",
                  "totalSupplied",
                  "totalDebt",
                  "totalBadDebt",
                  "availableLiquidity",
                  "utilizationWad",
                  "targetUtilizationPct",
                  "borrowRateAprBps",
                  "lendingApyBps",
                  "reserveFactorBps",
                  "lltvBps",
                  "displayLtvBps",
                  "liquidationThresholdBps",
                  "closeFactorBps",
                  "liquidationBonusBps",
                  "currentBorrowRatePerSecond",
                  "currentSupplyRatePerSecond",
                  "marketRegimeState",
                  "marketLive",
                  "paused",
                  "vaultOnlySupply",
                  "borrowGateEnabled",
                  "collateralGateEnabled",
                  "sumsubKycRequired",
                  "borrowPolicy",
                  "funding",
                  "funding.partitionCount",
                  "funding.totalAllocatedAssets",
                  "funding.largestSourceAssets",
                  "funding.largestSourceVaultId",
                  "funding.largestSourceVaultAddress",
                  "oracle.priceWad",
                  "oracle.state",
                  "oracle.sourceAsOf",
                  "oracle.lastUpdated",
                  "loanAsset.symbol",
                  "loanAsset.name",
                  "loanAsset.decimals",
                  "loanAsset.logoUrl",
                  "loanAsset.priceUsd",
                  "collateralAsset.symbol",
                  "collateralAsset.name",
                  "collateralAsset.decimals",
                  "collateralAsset.logoUrl",
                  "collateralAsset.economicsTaxonomy",
                  "collateralAsset.priceUsd",
                  "allocators",
                  "history"
                ]
              }
            }
          }
        ]
      }
    },
    "/v1/markets/{resourceId}/activity": {
      "get": {
        "operationId": "listMarketActivity",
        "summary": "List canonical market activity",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketActivityResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/markets/{resourceId}/allocators": {
      "get": {
        "operationId": "listMarketAllocators",
        "summary": "List canonical vault funding partitions for a market",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketAllocatorResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/markets/{resourceId}/history": {
      "get": {
        "operationId": "listMarketHistory",
        "summary": "List historical market rate, utilization, liquidity, and borrow buckets",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketHistoryResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/vaults/{resourceId}": {
      "get": {
        "operationId": "getVault",
        "summary": "Get complete vault economics, allocations, liquidity, fees, public metrics, and mobility state",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultResource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "style": "form",
            "explode": false,
            "description": "Return only these canonical fields. Identity, address, chain, and freshness evidence remain included when present.",
            "schema": {
              "type": "array",
              "minItems": 1,
              "maxItems": 50,
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "symbol",
                  "name",
                  "baseAssetAddress",
                  "baseAsset",
                  "assetSymbol",
                  "assetDecimals",
                  "shareClass",
                  "inceptionAt",
                  "assetManager",
                  "totalAssets",
                  "totalSupply",
                  "totalAllocatedAssets",
                  "idleAssets",
                  "tvlUsd",
                  "sharePrice",
                  "grossApyBps",
                  "netApyBps",
                  "riskScore",
                  "status",
                  "depositPolicy",
                  "sumsubKycRequired",
                  "minDepositAssets",
                  "maxDepositAssets",
                  "listedMarketAddresses",
                  "allocations",
                  "portfolioLiquidity",
                  "portfolioLiquidity.immediatelyAvailableAssets",
                  "portfolioLiquidity.totalAllocatedAssets",
                  "portfolioLiquidity.portfolioLockupStatus",
                  "portfolioLiquidity.exitTermKind",
                  "portfolioLiquidity.noticeSeconds",
                  "portfolioLiquidity.marketLiquidity",
                  "exitTerms",
                  "shareMobility",
                  "feeAccruals",
                  "feeAccruals.managementFeeRateBps",
                  "feeAccruals.performanceFeeRateBps",
                  "assetManager.name",
                  "assetManager.address",
                  "assetManager.logoUrl",
                  "baseAsset.symbol",
                  "baseAsset.name",
                  "baseAsset.decimals",
                  "baseAsset.logoUrl",
                  "baseAsset.kycRequired",
                  "publicMetrics",
                  "publicMetrics.averageRedemptionSettlementSeconds",
                  "publicMetrics.largestWithdrawal30dAssets",
                  "publicMetrics.ecosystemConcentrationBps",
                  "publicMetrics.ecosystemExposure",
                  "publicMetrics.queueStatus",
                  "history"
                ]
              }
            }
          }
        ]
      }
    },
    "/v1/vaults/{resourceId}/allocations": {
      "get": {
        "operationId": "listVaultAllocations",
        "summary": "List the vault's current market allocations",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultAllocationResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/vaults/{resourceId}/liquidity": {
      "get": {
        "operationId": "getVaultLiquidity",
        "summary": "Get portfolio liquidity, duration, and exit terms",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultLiquidityResource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/vaults/{resourceId}/activity": {
      "get": {
        "operationId": "listVaultActivity",
        "summary": "List canonical vault activity",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultActivityResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/vaults/{resourceId}/share-mobility": {
      "get": {
        "operationId": "getVaultShareMobility",
        "summary": "Get share token, transfer, redemption, and wallet eligibility state",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultShareMobilityResource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/vaults/{resourceId}/history": {
      "get": {
        "operationId": "listVaultHistory",
        "summary": "List historical vault share-price, APY, asset, and liquidity buckets",
        "security": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultHistoryResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/funds/{resourceId}": {
      "get": {
        "operationId": "getFund",
        "summary": "Get a distressed recovery fund, current epoch, fees, readiness, and subscription terms",
        "security": [
          {
            "PublishableKey": []
          },
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundResource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "style": "form",
            "explode": false,
            "description": "Return only these canonical fields. Identity, address, chain, and freshness evidence remain included when present.",
            "schema": {
              "type": "array",
              "minItems": 1,
              "maxItems": 50,
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "name",
                  "status",
                  "navAssets",
                  "navAsOf",
                  "quoteAssetAddress",
                  "quoteAssetDecimals",
                  "managerAddress",
                  "managerName",
                  "assetManagerEntityId",
                  "fundReadinessApproved",
                  "quoteAssetProfileApproved",
                  "impairmentStatus",
                  "purchasesEnabled",
                  "shareTokenActive",
                  "subscriptionStatusCode",
                  "defaultEligibilityStatusCode",
                  "subscriptionStatus",
                  "investorEligibilityStatus",
                  "minSubscriptionAssets",
                  "maxSubscriptionAssets",
                  "shareTokenAddress",
                  "sharePrice",
                  "totalSupply",
                  "totalHoldings",
                  "liquidHoldings",
                  "restrictedHoldings",
                  "carryRateBps",
                  "performanceFeeBps",
                  "preferredReturnBps",
                  "effectiveEpochId",
                  "epochDurationSeconds",
                  "currentEpoch",
                  "currentEpoch.epochId",
                  "currentEpoch.status",
                  "currentEpoch.scheduledCloseAt",
                  "currentEpoch.depositedQuoteAmount",
                  "currentEpoch.withdrawnQuoteAmount",
                  "currentEpoch.fundedSidePocketCount",
                  "epochs",
                  "holdings"
                ]
              }
            }
          }
        ]
      }
    },
    "/v1/funds/{resourceId}/holdings": {
      "get": {
        "operationId": "listFundHoldings",
        "summary": "List current recovery-fund holdings",
        "security": [
          {
            "PublishableKey": []
          },
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundHoldingResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/funds/{resourceId}/epochs": {
      "get": {
        "operationId": "listFundEpochs",
        "summary": "List recovery-fund subscription and funding epochs",
        "security": [
          {
            "PublishableKey": []
          },
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundEpochResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/contracts/{contractName}": {
      "get": {
        "operationId": "getContractArtifact",
        "summary": "Get an active V2 contract artifact",
        "security": [
          {
            "PublishableKey": []
          },
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "contractName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/organizations": {
      "post": {
        "operationId": "createSandboxOrganization",
        "summary": "Create a self-service sandbox organization and first application",
        "security": [],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          },
          {
            "name": "x-torq-preview-invite",
            "in": "header",
            "required": false,
            "description": "Required while self-service organization creation is limited to Developer Preview.",
            "schema": {
              "type": "string",
              "minLength": 16
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Organization created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBootstrap"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/owner-claim": {
      "post": {
        "operationId": "claimDeveloperConsoleOwner",
        "summary": "Claim the first Developer Console owner for an existing private-preview organization with no members",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeveloperConsoleOwnerClaimRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperConsoleOwnerClaim"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications": {
      "get": {
        "operationId": "listApplications",
        "summary": "List applications in the authenticated organization",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createApplication",
        "summary": "Create a test or approved production application",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationBootstrap"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys": {
      "get": {
        "operationId": "listApiKeys",
        "summary": "List redacted API-key metadata",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createApiKey",
        "summary": "Create an origin-bound publishable key or server secret key",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreated"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys/{keyId}/rotate": {
      "post": {
        "operationId": "rotateApiKey",
        "summary": "Atomically replace and revoke an API key",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreated"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys/{keyId}/revoke": {
      "post": {
        "operationId": "revokeApiKey",
        "summary": "Revoke an API key",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyRevokeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyRevoked"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "listUsage",
        "summary": "List 30-day application API usage",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit-log": {
      "get": {
        "operationId": "listAuditLog",
        "summary": "List tenant-scoped developer audit evidence",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/production-access-requests": {
      "post": {
        "operationId": "requestProductionAccess",
        "summary": "Request reviewed production scopes for an application",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductionAccessRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductionAccessRequestStatus"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallet-sessions/challenges": {
      "post": {
        "operationId": "createWalletSessionChallenge",
        "summary": "Create a wallet authentication challenge",
        "security": [
          {
            "PublishableKey": []
          },
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletChallengeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletChallenge"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallet-sessions/confirm": {
      "post": {
        "operationId": "confirmWalletSession",
        "summary": "Confirm a wallet challenge and issue an opaque short-lived session",
        "security": [
          {
            "PublishableKey": []
          },
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletChallengeConfirmation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workflows/prepare": {
      "post": {
        "operationId": "prepareWorkflow",
        "summary": "Prepare and preflight an explicit Torq workflow",
        "security": [
          {
            "SecretKey": [],
            "WalletSession": []
          },
          {
            "PublishableKey": [],
            "WalletSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowPrepareRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreparedWorkflow"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workflows/{requestId}/transactions": {
      "post": {
        "operationId": "registerWorkflowTransaction",
        "summary": "Register an externally signed transaction",
        "security": [
          {
            "SecretKey": [],
            "WalletSession": []
          },
          {
            "PublishableKey": [],
            "WalletSession": []
          }
        ],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowTransactionRegistration"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackedWorkflow"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workflows/{requestId}": {
      "get": {
        "operationId": "getWorkflow",
        "summary": "Get canonical workflow progress",
        "security": [
          {
            "SecretKey": [],
            "WalletSession": []
          },
          {
            "PublishableKey": [],
            "WalletSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/transactions/{chainId}/{txHash}": {
      "get": {
        "operationId": "getTransaction",
        "summary": "Get tracked transaction and canonical post-write progress",
        "security": [
          {
            "SecretKey": []
          },
          {
            "PublishableKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "chainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "txHash",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "tx-hash"
            }
          }
        ]
      }
    },
    "/v1/webhook-endpoints": {
      "get": {
        "operationId": "listWebhookEndpoints",
        "summary": "List webhook endpoints",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createWebhookEndpoint",
        "summary": "Create a signed webhook endpoint",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-endpoints/{endpointId}": {
      "patch": {
        "operationId": "updateWebhookEndpoint",
        "summary": "Update a webhook endpoint",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhookEndpoint",
        "summary": "Disable a webhook endpoint",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Endpoint disabled"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "summary": "List webhook deliveries",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-deliveries/{deliveryId}/replay": {
      "post": {
        "operationId": "replayWebhookDelivery",
        "summary": "Replay one retained webhook delivery",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookReplay"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/events": {
      "get": {
        "operationId": "listEvents",
        "summary": "Poll versioned canonical events by cursor",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stream-token": {
      "post": {
        "operationId": "createStreamToken",
        "summary": "Create a short-lived authenticated WebSocket stream token",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StreamTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamToken"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox": {
      "get": {
        "operationId": "getSandbox",
        "summary": "Get application-owned Sepolia sandbox state",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxState"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "404": {
            "description": "Sandbox has not been provisioned for this application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/reset": {
      "post": {
        "operationId": "resetSandbox",
        "summary": "Reset application-owned sandbox control state without resetting the shared chain",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxState"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/admissions": {
      "post": {
        "operationId": "requestSandboxAdmission",
        "summary": "Request the current wallet's bounded sandbox-entity admission",
        "security": [
          {
            "SecretKey": [],
            "WalletSession": []
          },
          {
            "PublishableKey": [],
            "WalletSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxAdmissionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxAdmission"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/faucet-claims": {
      "post": {
        "operationId": "requestSandboxFaucetClaim",
        "summary": "Request a quota-bounded claim of the configured sandbox test token for the current admission wallet",
        "security": [
          {
            "SecretKey": [],
            "WalletSession": []
          },
          {
            "PublishableKey": [],
            "WalletSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxFaucetClaimRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxFaucetClaim"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    },
    "/graphql": {
      "post": {
        "operationId": "executeGraphql",
        "summary": "Execute an advanced Postgres-backed GraphQL query",
        "security": [
          {
            "SecretKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GraphqlRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GraphqlResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope or authority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "409": {
            "description": "State or idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TorqApiError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "PublishableKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-torq-publishable-key"
      },
      "SecretKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "torq_live_sk or torq_test_sk"
      },
      "WalletSession": {
        "type": "apiKey",
        "in": "header",
        "name": "x-torq-wallet-session"
      }
    },
    "schemas": {
      "ResourceProvider": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "AssetIssuerProfile": {
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "AssetProfileResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "decimals": {
            "type": [
              "integer",
              "null"
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "topCategory": {
            "type": [
              "string",
              "null"
            ]
          },
          "subcategory": {
            "type": [
              "string",
              "null"
            ]
          },
          "economicsTaxonomy": {
            "type": "object",
            "additionalProperties": true
          },
          "kycRequired": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "priceUsd": {
            "type": [
              "string",
              "null"
            ]
          },
          "priceAsOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "issuer": {
            "$ref": "#/components/schemas/AssetIssuerProfile"
          }
        }
      },
      "AssetResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "decimals": {
            "type": "integer"
          },
          "topCategory": {
            "type": [
              "string",
              "null"
            ]
          },
          "subcategory": {
            "type": [
              "string",
              "null"
            ]
          },
          "economicsTaxonomy": {
            "type": "object",
            "additionalProperties": true
          },
          "kycRequired": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "priceUsd": {
            "type": [
              "string",
              "null"
            ]
          },
          "priceAsOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "MarketResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "loanAssetAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "collateralAssetAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "loanSymbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "collateralSymbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "loanDecimals": {
            "type": [
              "integer",
              "null"
            ]
          },
          "collateralDecimals": {
            "type": [
              "integer",
              "null"
            ]
          },
          "oracleAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "interestRateModelAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "totalSupplied": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalDebt": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalBadDebt": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "availableLiquidity": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "utilizationWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "targetUtilizationPct": {
            "type": [
              "number",
              "null"
            ]
          },
          "borrowRateAprBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lendingApyBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "reserveFactorBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lltvBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "displayLtvBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "liquidationThresholdBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "closeFactorBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "liquidationBonusBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currentBorrowRatePerSecond": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "currentSupplyRatePerSecond": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "oracleState": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketRegimeState": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketLive": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "paused": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "vaultOnlySupply": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "borrowGateEnabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "collateralGateEnabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "sumsubKycRequired": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "borrowPolicy": {
            "type": [
              "string",
              "null"
            ]
          },
          "loanAsset": {
            "$ref": "#/components/schemas/AssetProfileResource"
          },
          "collateralAsset": {
            "$ref": "#/components/schemas/AssetProfileResource"
          },
          "oracle": {
            "type": "object",
            "properties": {
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^0x[a-fA-F0-9]{40}$"
              },
              "priceWad": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9]+$"
              },
              "state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sourceAsOf": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "lastUpdated": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            }
          },
          "funding": {
            "type": "object",
            "properties": {
              "partitionCount": {
                "type": "integer"
              },
              "totalAllocatedAssets": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9]+$"
              },
              "largestSourceAssets": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9]+$"
              },
              "largestSourceVaultId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "largestSourceVaultAddress": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^0x[a-fA-F0-9]{40}$"
              }
            }
          },
          "allocators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketAllocatorResource"
            }
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketHistoryResource"
            }
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "MarketAllocatorResource": {
        "type": "object",
        "properties": {
          "marketId": {
            "type": "string"
          },
          "marketAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "vaultId": {
            "type": "string"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "vaultName": {
            "type": [
              "string",
              "null"
            ]
          },
          "vaultSymbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "listed": {
            "type": "boolean"
          },
          "approved": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "allocationEnabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "allocatedAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "availableLiquidity": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "relativeCapBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "absoluteCapAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "MarketHistoryResource": {
        "type": "object",
        "properties": {
          "marketId": {
            "type": "string"
          },
          "marketAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "interval": {
            "type": "string"
          },
          "bucketStart": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "bucketEnd": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "utilizationSpotWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "utilizationEffectiveWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "borrowRateAprBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lendingApyBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "protocolApyBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "totalSupplied": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalDebt": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "availableLiquidity": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalBadDebt": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "oracleState": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "VaultAllocationResource": {
        "type": "object",
        "properties": {
          "vaultId": {
            "type": "string"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "marketId": {
            "type": "string"
          },
          "marketAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "listed": {
            "type": "boolean"
          },
          "approved": {
            "type": "boolean"
          },
          "allocationEnabled": {
            "type": "boolean"
          },
          "capAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "allocatedAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "allocationBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "availableMarketLiquidity": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "marketUtilizationWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "marketBorrowRateAprBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "marketLendingApyBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "liquidityProfile": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "VaultLiquidityResource": {
        "type": "object",
        "properties": {
          "vaultId": {
            "type": "string"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "idleAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalAllocatedAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "immediatelyAvailableAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "liquidityBufferBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "baseAssetLockupPeriod": {
            "type": [
              "string",
              "null"
            ]
          },
          "portfolioLockupStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "longestKnownLockupPeriod": {
            "type": [
              "string",
              "null"
            ]
          },
          "attachedMarketCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "exposedMarketCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unverifiedMarketCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "exitTermKind": {
            "type": [
              "string",
              "null"
            ]
          },
          "noticeSeconds": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "intervalSeconds": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "maturityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "tighteningLocked": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "stressCoverageStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "durationCompatible": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "blockedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketLiquidity": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "VaultShareMobilityResource": {
        "type": "object",
        "properties": {
          "vaultId": {
            "type": "string"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "transferProfile": {
            "type": [
              "string",
              "null"
            ]
          },
          "shareMobilityPaused": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "restoreAfter": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "redeemFreezeReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "systemReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "mobilityEpoch": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "shareTokens": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tokenAddress": {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]{40}$"
                },
                "shareClass": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                },
                "decimals": {
                  "type": "integer"
                },
                "transferable": {
                  "type": "boolean"
                },
                "supportsAllowance": {
                  "type": "boolean"
                },
                "supportsAdapters": {
                  "type": "boolean"
                },
                "totalSupply": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "pattern": "^[0-9]+$"
                }
              }
            }
          },
          "redemptionQueue": {
            "type": "object",
            "additionalProperties": true
          },
          "trustedRecipientPolicy": {
            "type": "object",
            "additionalProperties": true
          },
          "walletEligibility": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "VaultActivityResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "vaultId": {
            "type": "string"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "eventType": {
            "type": "string"
          },
          "transactionHash": {
            "type": "string"
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "accountAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "assets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "shares": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "occurredAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "VaultHistoryResource": {
        "type": "object",
        "properties": {
          "vaultId": {
            "type": "string"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "interval": {
            "type": "string"
          },
          "bucketStart": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "bucketEnd": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sharePrice": {
            "type": [
              "string",
              "null"
            ]
          },
          "netApyBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "totalAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalAllocatedAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "idleAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "tvlUsd": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "VaultPublicMetricsResource": {
        "type": "object",
        "properties": {
          "averageRedemptionSettlementSeconds": {
            "type": [
              "integer",
              "null"
            ]
          },
          "averageRedemptionSampleSize": {
            "type": [
              "integer",
              "null"
            ]
          },
          "estimateModelVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "largestWithdrawal30dAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "largestWithdrawal30dTransactionHash": {
            "type": [
              "string",
              "null"
            ]
          },
          "largestWithdrawal30dTimestampMs": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "ecosystemConcentrationMarketAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "ecosystemConcentrationBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "ecosystemExposure": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "queueStatus": {
            "type": "object",
            "additionalProperties": true
          },
          "truthSource": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "MarketActivityResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "marketId": {
            "type": "string"
          },
          "marketAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "eventType": {
            "type": "string"
          },
          "transactionHash": {
            "type": "string"
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "accountAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "assets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "collateralAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "occurredAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "VaultResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "baseAssetAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "baseAsset": {
            "$ref": "#/components/schemas/AssetProfileResource"
          },
          "assetSymbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "assetDecimals": {
            "type": [
              "integer",
              "null"
            ]
          },
          "shareClass": {
            "type": "string"
          },
          "inceptionAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "assetManager": {
            "$ref": "#/components/schemas/ResourceProvider"
          },
          "totalAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalSupply": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalAllocatedAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "idleAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "tvlUsd": {
            "type": [
              "string",
              "null"
            ]
          },
          "sharePrice": {
            "type": [
              "string",
              "null"
            ]
          },
          "grossApyBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "netApyBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "riskScore": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "depositPolicy": {
            "type": [
              "string",
              "null"
            ]
          },
          "sumsubKycRequired": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "minDepositAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "maxDepositAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "listedMarketAddresses": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$"
            }
          },
          "allocations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VaultAllocationResource"
            }
          },
          "portfolioLiquidity": {
            "$ref": "#/components/schemas/VaultLiquidityResource"
          },
          "exitTerms": {
            "type": "object",
            "additionalProperties": true
          },
          "shareMobility": {
            "$ref": "#/components/schemas/VaultShareMobilityResource"
          },
          "publicMetrics": {
            "$ref": "#/components/schemas/VaultPublicMetricsResource"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VaultHistoryResource"
            }
          },
          "feeAccruals": {
            "type": "object",
            "properties": {
              "managementFeeRateBps": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "performanceFeeRateBps": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "borrowerManagerFeeRateBps": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "resellerFeeRateBps": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "accruedManagementFeeAssets": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9]+$"
              },
              "accruedPerformanceFeeAssets": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9]+$"
              },
              "accruedBorrowerManagerFeeAssets": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9]+$"
              },
              "accruedResellerFeeAssets": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9]+$"
              }
            }
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "FundHoldingResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "positionId": {
            "type": "string"
          },
          "fundAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "assetLane": {
            "type": "string"
          },
          "holdingStatus": {
            "type": "string"
          },
          "transferPriceAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "acquiredAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "disposedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "marketAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "borrowerAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "claimableAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "recoveryValueAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "FundEpochResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "fundAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "epochId": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "status": {
            "type": "string"
          },
          "quoteAssetAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "quoteAssetDecimals": {
            "type": [
              "integer",
              "null"
            ]
          },
          "openedAt": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "scheduledCloseAt": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "closedAt": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "postCloseFundingDeadline": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "depositedQuoteAmount": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "withdrawnQuoteAmount": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "activeScaleRay": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "activeReservationId": {
            "type": [
              "string",
              "null"
            ]
          },
          "fundedSidePocketCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "FundResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "navAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "navAsOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quoteAssetAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "quoteAssetDecimals": {
            "type": [
              "integer",
              "null"
            ]
          },
          "managerAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "managerName": {
            "type": [
              "string",
              "null"
            ]
          },
          "assetManagerEntityId": {
            "type": [
              "string",
              "null"
            ]
          },
          "fundReadinessApproved": {
            "type": "boolean"
          },
          "quoteAssetProfileApproved": {
            "type": "boolean"
          },
          "impairmentStatus": {
            "type": "string"
          },
          "purchasesEnabled": {
            "type": "boolean"
          },
          "shareTokenActive": {
            "type": "boolean"
          },
          "subscriptionStatusCode": {
            "type": [
              "integer",
              "null"
            ]
          },
          "defaultEligibilityStatusCode": {
            "type": [
              "integer",
              "null"
            ]
          },
          "subscriptionStatus": {
            "type": "string"
          },
          "investorEligibilityStatus": {
            "type": "string"
          },
          "minSubscriptionAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "maxSubscriptionAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "shareTokenAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "sharePrice": {
            "type": [
              "string",
              "null"
            ]
          },
          "totalSupply": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalHoldings": {
            "type": [
              "integer",
              "null"
            ]
          },
          "liquidHoldings": {
            "type": [
              "integer",
              "null"
            ]
          },
          "restrictedHoldings": {
            "type": [
              "integer",
              "null"
            ]
          },
          "carryRateBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "performanceFeeBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "preferredReturnBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "effectiveEpochId": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "epochDurationSeconds": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "currentEpoch": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FundEpochResource"
              },
              {
                "type": "null"
              }
            ]
          },
          "epochs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundEpochResource"
            }
          },
          "holdings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundHoldingResource"
            }
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "OracleResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "baseAssetAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "quoteAssetAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "priceWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "sourceAsOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "PartnerProgramResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "managerAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "vaultId": {
            "type": "string"
          },
          "channelCount": {
            "type": "integer"
          },
          "activeChannelCount": {
            "type": "integer"
          },
          "feeShareBps": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WrapperResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "managerId": {
            "type": "string"
          },
          "vaultId": {
            "type": "string"
          },
          "resellerAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "shareClass": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "totalAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "totalSupply": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "NetworkResource": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "protocolVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          }
        }
      },
      "DeploymentResource": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "integer"
          },
          "network": {
            "type": "string"
          },
          "protocolVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "deploymentNamespace": {
            "type": [
              "string",
              "null"
            ]
          },
          "deploymentStartBlock": {
            "type": [
              "integer",
              "null"
            ]
          },
          "contracts": {
            "type": "object",
            "additionalProperties": true
          },
          "generatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "EntityResource": {
        "type": "object",
        "properties": {
          "entityType": {
            "type": "string"
          },
          "entityId": {
            "type": "string"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "ownerAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          }
        }
      },
      "CreditFacilityResource": {
        "type": "object",
        "properties": {
          "marketId": {
            "type": "string"
          },
          "vaultId": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "marketAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "borrowerAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "principalAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "debtAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "maxBorrowableAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "healthFactorWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "monitorState": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "PositionResource": {
        "type": "object",
        "properties": {
          "marketId": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "marketAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "collateralAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "debtAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "debtShares": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "maxBorrowableAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "healthFactorWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "liquidatable": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "monitorState": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "EligibilityResource": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "integer"
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "actionType": {
            "type": "string"
          },
          "scopeAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "authorizationStatus": {
            "type": "string"
          }
        }
      },
      "LiquidationRecoveryResource": {
        "type": "object",
        "properties": {
          "marketId": {
            "type": "string"
          },
          "vaultId": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "marketAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "vaultAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "borrowerAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "healthFactorWad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "liquidatable": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "executable": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "blockedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "repayAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "collateralSeizedAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "residualBadDebtAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          }
        }
      },
      "FeeResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "recipient": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "flatPercent": {
            "type": [
              "string",
              "null"
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "NavReportResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "asset": {
            "type": "string"
          },
          "assetName": {
            "type": [
              "string",
              "null"
            ]
          },
          "oracleAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "submittedAtEpochMs": {
            "type": "integer"
          },
          "reportType": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "decimals": {
            "type": "integer"
          },
          "revisionLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "txHash": {
            "type": [
              "string",
              "null"
            ]
          },
          "signerAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          }
        }
      },
      "ActivityResource": {
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string"
          },
          "resourceId": {
            "type": "string"
          },
          "chainId": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "type": {
            "type": "string"
          },
          "amount": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "txHash": {
            "type": "string"
          },
          "logIndex": {
            "type": "integer"
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "timestampEpochMs": {
            "type": "integer"
          }
        }
      },
      "AllocationIntelligenceResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "profileId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "targetVaultAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "targetMarketAddress": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "amountAssets": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+$"
          },
          "confidenceBps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "policyVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "modelVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "projectionStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "txHash": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "MessageResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "senderWorkspace": {
            "type": "string"
          },
          "senderWalletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "senderEntityId": {
            "type": [
              "string",
              "null"
            ]
          },
          "senderLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "readAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "ActivityResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "AllocationIntelligenceResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AllocationIntelligenceResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "AssetResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssetResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "CreditFacilityResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditFacilityResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "DeploymentResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeploymentResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "EligibilityResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "EntityResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntityResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "FeeResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeeResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "FundResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "LiquidationRecoveryResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiquidationRecoveryResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "MarketResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "MessageResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MessageResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "NavReportResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NavReportResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "NetworkResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NetworkResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "OracleResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OracleResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "PartnerProgramResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerProgramResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "PositionResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PositionResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "VaultResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VaultResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "WrapperResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WrapperResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "VaultAllocationResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VaultAllocationResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "VaultHistoryResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VaultHistoryResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "VaultActivityResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VaultActivityResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "MarketAllocatorResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketAllocatorResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "MarketHistoryResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketHistoryResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "MarketActivityResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketActivityResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "FundHoldingResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundHoldingResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "FundEpochResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundEpochResource"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "TorqClientConfig": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "baseUrl"
        ],
        "properties": {
          "baseUrl": {
            "type": "string",
            "format": "uri"
          },
          "publishableKey": {
            "type": "string"
          },
          "secretKey": {
            "type": "string"
          },
          "walletSession": {
            "type": "string"
          },
          "timeoutMs": {
            "type": "integer",
            "minimum": 1000,
            "maximum": 120000
          }
        }
      },
      "NetworkConfig": {
        "type": "object",
        "required": [
          "chainId",
          "network",
          "deploymentNamespace"
        ],
        "properties": {
          "chainId": {
            "type": "integer",
            "minimum": 1
          },
          "network": {
            "type": "string"
          },
          "deploymentNamespace": {
            "type": "string"
          },
          "explorerUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        }
      },
      "FreshnessEvidence": {
        "type": "object",
        "required": [
          "status",
          "lagSeconds"
        ],
        "properties": {
          "status": {
            "enum": [
              "current",
              "healthy",
              "stale",
              "missing",
              "blocked"
            ]
          },
          "lagSeconds": {
            "type": "integer",
            "minimum": 0
          },
          "blockNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "projectedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "snapshotAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "PageInfo": {
        "type": "object",
        "required": [
          "hasMore",
          "nextCursor"
        ],
        "properties": {
          "hasMore": {
            "type": "boolean"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TorqApiError": {
        "type": "object",
        "required": [
          "ok",
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "properties": {
          "ok": {
            "const": false
          },
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "retryable": {
            "type": "boolean"
          },
          "blockedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "docsUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Eip712TypedData": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "domain",
          "types",
          "primaryType",
          "message"
        ],
        "properties": {
          "domain": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name",
              "version",
              "chainId",
              "verifyingContract"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "chainId": {
                "type": "integer",
                "minimum": 1
              },
              "verifyingContract": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              }
            }
          },
          "types": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "name",
                  "type"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              }
            }
          },
          "primaryType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "message": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean"
              ]
            }
          }
        }
      },
      "Eip712SigningInstruction": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "typedData",
          "signaturePlacement"
        ],
        "properties": {
          "kind": {
            "const": "eip712_signed_nav_submit"
          },
          "typedData": {
            "$ref": "#/components/schemas/Eip712TypedData"
          },
          "signaturePlacement": {
            "const": "trailing_eip2098_r_vs"
          }
        }
      },
      "TransactionIntent": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "order",
          "chainId",
          "transactionKind",
          "target",
          "calldata",
          "value",
          "label",
          "simulationRequired"
        ],
        "properties": {
          "order": {
            "type": "integer",
            "minimum": 0
          },
          "chainId": {
            "type": "integer",
            "minimum": 1
          },
          "transactionKind": {
            "enum": [
              "contract_call",
              "contract_deployment"
            ]
          },
          "target": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "calldata": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]*$"
          },
          "value": {
            "type": "string",
            "pattern": "^[0-9]+$"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "simulationRequired": {
            "type": "boolean"
          },
          "signing": {
            "$ref": "#/components/schemas/Eip712SigningInstruction"
          }
        },
        "allOf": [
          {
            "if": {
              "properties": {
                "transactionKind": {
                  "const": "contract_call"
                }
              }
            },
            "then": {
              "properties": {
                "target": {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]{40}$"
                }
              }
            },
            "else": {
              "properties": {
                "target": {
                  "type": "null"
                }
              }
            }
          }
        ]
      },
      "WorkflowPreflight": {
        "type": "object",
        "required": [
          "status",
          "blockedReasons",
          "freshness",
          "revalidateAtExecution"
        ],
        "properties": {
          "status": {
            "enum": [
              "passed",
              "blocked"
            ]
          },
          "blockedReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          },
          "revalidateAtExecution": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CanonicalPostcondition": {
        "type": "object",
        "required": [
          "entityType",
          "entityId",
          "field",
          "expected"
        ],
        "properties": {
          "entityType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "entityId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "field": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "expected": {}
        }
      },
      "PreparedWorkflow": {
        "type": "object",
        "required": [
          "ok",
          "requestId",
          "workflowType",
          "status",
          "executionMode",
          "custodyBoundary",
          "snapshotHash",
          "expiresAt",
          "preflight",
          "transactions",
          "canonicalPostconditions"
        ],
        "properties": {
          "ok": {
            "const": true
          },
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "workflowType": {
            "enum": [
              "borrow",
              "claimWithdrawal",
              "deposit",
              "depositCollateral",
              "liquidate",
              "repay",
              "requestWithdrawal",
              "role.allocator.vaultAllocate",
              "role.allocator.vaultDeallocate",
              "role.allocator.vaultReallocationBatch",
              "role.asset_issuer.assetSubmissionRequestCreate",
              "role.asset_manager.distressedRecoveryAcquisitionV3Bid",
              "role.asset_manager.distressedRecoveryFundV3ChannelPolicySet",
              "role.asset_manager.distressedRecoveryFundV3SelfLaunch",
              "role.asset_manager.vaultDeploy",
              "role.asset_manager.vaultShareMobilityManagerAction",
              "role.borrower.borrowerBorrow",
              "role.borrower.borrowerDepositCollateral",
              "role.borrower.borrowerRepay",
              "role.borrower.borrowerWithdrawCollateral",
              "role.curator.partnerChannelBlockedUpdate",
              "role.curator.partnerChannelDeploy",
              "role.curator.vaultMarketListingSave",
              "role.investor.partnerWrapperDeposit",
              "role.investor.partnerWrapperRedeem",
              "role.lender.distressedRecoveryFundV3AuctionBid",
              "role.lender.distressedRecoveryFundV3RfqCancelBid",
              "role.lender.distressedRecoveryFundV3RfqClaimRefund",
              "role.lender.distressedRecoveryFundV3RfqFinalize",
              "role.lender.distressedRecoveryFundV3RfqPlaceBid",
              "role.lender.distressedRecoveryFundV3RfqReplaceBid",
              "role.lender.investorFulfillRedeem",
              "role.lender.investorRequestRedeem",
              "role.lender.vaultShareMobilityInvestorAction",
              "role.liquidator.liquidate",
              "role.liquidator.settleLiquidationClaim",
              "role.nav_reporter.navReportSignAndSubmit",
              "role.partner.partnerBorrowerFeeClaim",
              "role.partner.partnerChannelDeploy",
              "role.partner.partnerFeeSharesClaim",
              "role.partner.partnerSubmitApplication",
              "role.partner.partnerWrapperDeposit",
              "role.partner.partnerWrapperRedeem",
              "role.vault_manager.partnerChannelDeploy",
              "role.vault_owner.attachMarketToVault",
              "role.vault_owner.vaultAllocate",
              "role.vault_owner.vaultAllocatorUpdate",
              "role.vault_owner.vaultCuratorCapsSettingsSave",
              "role.vault_owner.vaultCuratorFeeSettingsSave",
              "role.vault_owner.vaultDeallocate",
              "role.vault_owner.vaultFeeConfigUpdate",
              "role.vault_owner.vaultManagementSettingsSave",
              "role.vault_owner.vaultOwnerSettingsSave",
              "role.vault_owner.vaultOwnerTransferUpdate",
              "role.vault_owner.vaultReallocationBatch",
              "role.vault_owner.vaultRoleSettingsSave",
              "role.vault_owner.vaultRoutingUpdate",
              "role.vault_owner.vaultSettingsUpdate",
              "settleLiquidationClaim",
              "withdrawCollateral",
              "withdrawNow"
            ]
          },
          "status": {
            "enum": [
              "prepared",
              "final_success"
            ]
          },
          "executionMode": {
            "enum": [
              "onchain_transaction",
              "metadata_only"
            ]
          },
          "custodyBoundary": {
            "enum": [
              "external_wallet_required",
              "wallet_session_authenticated"
            ]
          },
          "snapshotHash": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{64}$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "preflight": {
            "$ref": "#/components/schemas/WorkflowPreflight"
          },
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionIntent"
            }
          },
          "canonicalPostconditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CanonicalPostcondition"
            }
          }
        }
      },
      "TrackedWorkflow": {
        "type": "object",
        "required": [
          "requestId",
          "status",
          "transactions",
          "canonicalPostconditions"
        ],
        "properties": {
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "status": {
            "enum": [
              "prepared",
              "submitted",
              "mined",
              "indexed",
              "persisted_visible",
              "final_success",
              "failed"
            ]
          },
          "transactions": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "canonicalPostconditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CanonicalPostcondition"
            }
          },
          "failureCode": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "WorkflowPrepareRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "workflowType",
          "chainId",
          "input"
        ],
        "properties": {
          "workflowType": {
            "type": "string",
            "enum": [
              "borrow",
              "claimWithdrawal",
              "deposit",
              "depositCollateral",
              "liquidate",
              "repay",
              "requestWithdrawal",
              "role.allocator.vaultAllocate",
              "role.allocator.vaultDeallocate",
              "role.allocator.vaultReallocationBatch",
              "role.asset_issuer.assetSubmissionRequestCreate",
              "role.asset_manager.distressedRecoveryAcquisitionV3Bid",
              "role.asset_manager.distressedRecoveryFundV3ChannelPolicySet",
              "role.asset_manager.distressedRecoveryFundV3SelfLaunch",
              "role.asset_manager.vaultDeploy",
              "role.asset_manager.vaultShareMobilityManagerAction",
              "role.borrower.borrowerBorrow",
              "role.borrower.borrowerDepositCollateral",
              "role.borrower.borrowerRepay",
              "role.borrower.borrowerWithdrawCollateral",
              "role.curator.partnerChannelBlockedUpdate",
              "role.curator.partnerChannelDeploy",
              "role.curator.vaultMarketListingSave",
              "role.investor.partnerWrapperDeposit",
              "role.investor.partnerWrapperRedeem",
              "role.lender.distressedRecoveryFundV3AuctionBid",
              "role.lender.distressedRecoveryFundV3RfqCancelBid",
              "role.lender.distressedRecoveryFundV3RfqClaimRefund",
              "role.lender.distressedRecoveryFundV3RfqFinalize",
              "role.lender.distressedRecoveryFundV3RfqPlaceBid",
              "role.lender.distressedRecoveryFundV3RfqReplaceBid",
              "role.lender.investorFulfillRedeem",
              "role.lender.investorRequestRedeem",
              "role.lender.vaultShareMobilityInvestorAction",
              "role.liquidator.liquidate",
              "role.liquidator.settleLiquidationClaim",
              "role.nav_reporter.navReportSignAndSubmit",
              "role.partner.partnerBorrowerFeeClaim",
              "role.partner.partnerChannelDeploy",
              "role.partner.partnerFeeSharesClaim",
              "role.partner.partnerSubmitApplication",
              "role.partner.partnerWrapperDeposit",
              "role.partner.partnerWrapperRedeem",
              "role.vault_manager.partnerChannelDeploy",
              "role.vault_owner.attachMarketToVault",
              "role.vault_owner.vaultAllocate",
              "role.vault_owner.vaultAllocatorUpdate",
              "role.vault_owner.vaultCuratorCapsSettingsSave",
              "role.vault_owner.vaultCuratorFeeSettingsSave",
              "role.vault_owner.vaultDeallocate",
              "role.vault_owner.vaultFeeConfigUpdate",
              "role.vault_owner.vaultManagementSettingsSave",
              "role.vault_owner.vaultOwnerSettingsSave",
              "role.vault_owner.vaultOwnerTransferUpdate",
              "role.vault_owner.vaultReallocationBatch",
              "role.vault_owner.vaultRoleSettingsSave",
              "role.vault_owner.vaultRoutingUpdate",
              "role.vault_owner.vaultSettingsUpdate",
              "settleLiquidationClaim",
              "withdrawCollateral",
              "withdrawNow"
            ]
          },
          "chainId": {
            "type": "integer",
            "minimum": 1
          },
          "deploymentNamespace": {
            "type": [
              "string",
              "null"
            ]
          },
          "principalAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "input": {
            "type": "object"
          },
          "constraints": {
            "type": "object"
          }
        }
      },
      "WorkflowTransactionRegistration": {
        "type": "object",
        "required": [
          "order",
          "chainId",
          "txHash"
        ],
        "properties": {
          "order": {
            "type": "integer",
            "minimum": 0
          },
          "chainId": {
            "type": "integer",
            "minimum": 1
          },
          "txHash": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{64}$"
          }
        }
      },
      "TorqEvent": {
        "type": "object",
        "required": [
          "id",
          "type",
          "schemaVersion",
          "occurredAt",
          "cursor",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "schemaVersion": {
            "type": "integer",
            "minimum": 1
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "cursor": {
            "type": "string"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ]
          },
          "data": {
            "type": "object"
          }
        }
      },
      "WebhookDelivery": {
        "type": "object",
        "required": [
          "deliveryId",
          "eventId",
          "webhookEndpointId",
          "status",
          "attempt",
          "replayExpiresAt"
        ],
        "properties": {
          "deliveryId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "eventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "webhookEndpointId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "status": {
            "enum": [
              "pending",
              "delivering",
              "delivered",
              "retrying",
              "dead_lettered"
            ]
          },
          "attempt": {
            "type": "integer",
            "minimum": 1
          },
          "responseStatus": {
            "type": [
              "integer",
              "null"
            ]
          },
          "retryEvidence": {
            "type": "object"
          },
          "nextAttemptAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "deliveredAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "replayExpiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WebhookReplay": {
        "type": "object",
        "required": [
          "deliveryId",
          "eventId",
          "attempt",
          "status",
          "replayedAt"
        ],
        "properties": {
          "deliveryId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "eventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "attempt": {
            "type": "integer",
            "minimum": 1
          },
          "status": {
            "const": "pending"
          },
          "replayedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "StreamCursor": {
        "type": "object",
        "required": [
          "cursor",
          "expiresAt"
        ],
        "properties": {
          "cursor": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ResourceCollection": {
        "type": "object",
        "required": [
          "items",
          "pageInfo",
          "freshness"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "pageInfo": {
            "$ref": "#/components/schemas/PageInfo"
          },
          "freshness": {
            "$ref": "#/components/schemas/FreshnessEvidence"
          }
        }
      },
      "OrganizationCreateRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "origin",
          "ownerWalletAddress"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120
          },
          "applicationName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120
          },
          "origin": {
            "type": "string",
            "format": "uri"
          },
          "ownerWalletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          }
        }
      },
      "OrganizationBootstrap": {
        "type": "object",
        "required": [
          "organizationId",
          "applicationId",
          "environment",
          "keysShownOnce",
          "sandbox"
        ],
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "applicationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "environment": {
            "const": "test"
          },
          "publishableKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "secretKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "keysShownOnce": {
            "type": "boolean"
          },
          "releaseStatus": {
            "const": "private_preview"
          },
          "sandbox": {
            "type": "object"
          }
        }
      },
      "DeveloperConsoleOwnerClaimRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "walletAddress"
        ],
        "properties": {
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          }
        }
      },
      "DeveloperConsoleOwnerClaim": {
        "type": "object",
        "required": [
          "id",
          "walletAddress",
          "role",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "role": {
            "const": "owner"
          },
          "status": {
            "const": "active"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApplicationCreateRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "environment",
          "scopes"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120
          },
          "slug": {
            "type": "string",
            "pattern": "^[a-z0-9-]{1,64}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "scopes": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ApplicationBootstrap": {
        "type": "object",
        "required": [
          "id",
          "organizationId",
          "environment",
          "slug",
          "name",
          "scopes",
          "secretKey"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "slug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "secretKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "secretShownOnce": {
            "const": true
          }
        }
      },
      "ApiKeyCreateRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "scopes"
        ],
        "properties": {
          "kind": {
            "enum": [
              "publishable",
              "secret"
            ]
          },
          "scopes": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "items": {
              "type": "string"
            }
          },
          "origins": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      },
      "ApiKeyCreated": {
        "type": "object",
        "required": [
          "id",
          "applicationId",
          "kind",
          "token",
          "scopes",
          "secretShownOnce"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "applicationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "kind": {
            "enum": [
              "publishable",
              "secret"
            ]
          },
          "token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "origins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rotatedFromKeyId": {
            "type": [
              "string",
              "null"
            ]
          },
          "secretShownOnce": {
            "const": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiKeyRevokeRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "reason": {
            "type": "string",
            "maxLength": 200
          }
        }
      },
      "ApiKeyRevoked": {
        "type": "object",
        "required": [
          "id",
          "status",
          "revokedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "status": {
            "const": "revoked"
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ProductionAccessRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "scopes",
          "useCase"
        ],
        "properties": {
          "scopes": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "items": {
              "type": "string"
            }
          },
          "useCase": {
            "type": "string",
            "minLength": 20,
            "maxLength": 4000
          }
        }
      },
      "ProductionAccessRequestStatus": {
        "type": "object",
        "required": [
          "id",
          "applicationId",
          "status",
          "scopes",
          "requestedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "applicationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "status": {
            "const": "pending"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "EmptyRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {}
      },
      "WalletChallengeRequest": {
        "type": "object",
        "required": [
          "walletAddress",
          "chainId"
        ],
        "properties": {
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "chainId": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "WalletChallenge": {
        "type": "object",
        "required": [
          "id",
          "message",
          "expiresAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WalletChallengeConfirmation": {
        "type": "object",
        "required": [
          "challengeId",
          "signature",
          "scopes"
        ],
        "properties": {
          "challengeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "signature": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]+$"
          },
          "scopes": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "WalletSession": {
        "type": "object",
        "required": [
          "token",
          "walletAddress",
          "expiresAt"
        ],
        "properties": {
          "token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WebhookEndpointRequest": {
        "type": "object",
        "required": [
          "url",
          "eventTypes"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "eventTypes": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "WebhookEndpoint": {
        "type": "object",
        "required": [
          "id",
          "url",
          "eventTypes",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "eventTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "enum": [
              "active",
              "disabled"
            ]
          }
        }
      },
      "ReplayRequest": {
        "type": "object",
        "properties": {}
      },
      "StreamTokenRequest": {
        "type": "object",
        "properties": {
          "eventTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "StreamToken": {
        "type": "object",
        "required": [
          "token",
          "url",
          "expiresAt"
        ],
        "properties": {
          "token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SandboxResetRequest": {
        "type": "object",
        "properties": {
          "fixtureSet": {
            "type": "string",
            "default": "standard"
          }
        }
      },
      "SandboxAdmissionRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "walletAddress"
        ],
        "properties": {
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "label": {
            "type": "string",
            "minLength": 2,
            "maxLength": 96
          }
        }
      },
      "SandboxAdmission": {
        "type": "object",
        "required": [
          "id",
          "sandboxId",
          "walletAddress",
          "entityId",
          "status",
          "network",
          "requestedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "sandboxId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "entityId": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{64}$"
          },
          "status": {
            "enum": [
              "requested",
              "submitted",
              "mined",
              "indexed",
              "persisted_visible",
              "final_success",
              "failed"
            ]
          },
          "network": {
            "type": "object",
            "required": [
              "chainId",
              "name"
            ],
            "properties": {
              "chainId": {
                "const": 11155111
              },
              "name": {
                "const": "sepolia"
              }
            }
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SandboxFaucetClaimRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "walletAddress",
          "assetAddress",
          "amount"
        ],
        "properties": {
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "assetAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "amount": {
            "type": "string",
            "pattern": "^[1-9][0-9]{0,38}$"
          }
        }
      },
      "SandboxFaucetClaim": {
        "type": "object",
        "required": [
          "id",
          "sandboxId",
          "walletAddress",
          "assetAddress",
          "amount",
          "claimId",
          "status",
          "requestedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "sandboxId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "walletAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "assetAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$"
          },
          "amount": {
            "type": "string",
            "pattern": "^[1-9][0-9]{0,38}$"
          },
          "claimId": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{64}$"
          },
          "status": {
            "enum": [
              "requested",
              "submitted",
              "mined",
              "indexed",
              "persisted_visible",
              "final_success",
              "failed"
            ]
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SandboxState": {
        "type": "object",
        "required": [
          "id",
          "applicationId",
          "network",
          "deploymentNamespace",
          "fixtureSet",
          "status",
          "resourceQuota",
          "faucetQuota",
          "seededAt",
          "lastResetAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "applicationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "network": {
            "$ref": "#/components/schemas/NetworkConfig"
          },
          "deploymentNamespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "fixtureSet": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "status": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "resourceQuota": {
            "type": "object",
            "additionalProperties": true
          },
          "faucetQuota": {
            "type": "object",
            "additionalProperties": true
          },
          "seededAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastResetAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "GraphqlRequest": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "variables": {
            "type": "object"
          },
          "operationName": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "GraphqlResponse": {
        "type": "object",
        "properties": {
          "data": {},
          "errors": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}
