{
  "components": {
    "schemas": {
      "ApproveDocumentRequest": {
        "properties": {
          "documentId": {
            "type": "string"
          },
          "overrides": {
            "items": {
              "$ref": "#/components/schemas/HoldingOverrideInput"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ApproveDocumentResponse": {
        "properties": {
          "assetsSumUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "documentId": {
            "type": "string"
          },
          "driftUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "liabilitiesSumUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "reconciled": {
            "type": "boolean"
          },
          "reportedNavUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "type": "object"
      },
      "BrokerPosition": {
        "properties": {
          "currency": {
            "type": "string"
          },
          "isin": {
            "type": "string"
          },
          "marketValueCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "quantityMicros": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "region": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CitationRef": {
        "properties": {
          "documentId": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "page": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ConnectError": {
        "properties": {
          "code": {
            "example": "invalid_argument",
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CustodianSummary": {
        "properties": {
          "accountId": {
            "type": "string"
          },
          "accountMask": {
            "type": "string"
          },
          "accountType": {
            "type": "string"
          },
          "custodianName": {
            "type": "string"
          },
          "grossAssetsUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "liabilitiesUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "lombardDrawnUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "lombardLimitUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "lvUtilizationBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "netWorthUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "type": "object"
      },
      "DealSummary": {
        "properties": {
          "category": {
            "type": "string"
          },
          "escrowBank": {
            "type": "string"
          },
          "feeSummary": {
            "type": "string"
          },
          "fundAdmin": {
            "type": "string"
          },
          "legalWrapper": {
            "type": "string"
          },
          "minTicketUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "slug": {
            "type": "string"
          },
          "stablecoinReady": {
            "type": "boolean"
          },
          "summaryMarkdown": {
            "type": "string"
          },
          "targetReturnLabel": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "GetPortfolioRequest": {
        "properties": {
          "displayCurrency": {
            "type": "string"
          },
          "familyId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "GetPortfolioResponse": {
        "properties": {
          "actualAlphaBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "actualCoreBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "alerts": {
            "items": {
              "$ref": "#/components/schemas/WatchAlert"
            },
            "type": "array"
          },
          "custodians": {
            "items": {
              "$ref": "#/components/schemas/CustodianSummary"
            },
            "type": "array"
          },
          "displayCurrency": {
            "type": "string"
          },
          "familyId": {
            "type": "string"
          },
          "familyName": {
            "type": "string"
          },
          "grossAssetsUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "heldAwayUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "holdings": {
            "items": {
              "$ref": "#/components/schemas/HoldingItem"
            },
            "type": "array"
          },
          "mas13uCompliant": {
            "type": "boolean"
          },
          "mas13uQualifyingSgdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "mas13uThresholdSgdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "netWorthUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "reconciledDriftCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "targetAlphaBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "targetCoreBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "totalLiabilitiesUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "type": "object"
      },
      "HoldingItem": {
        "properties": {
          "annualYieldBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "assetClass": {
            "type": "string"
          },
          "barbellBucket": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "custodianName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "instrumentName": {
            "type": "string"
          },
          "isMasLocalQualifying": {
            "type": "boolean"
          },
          "lendingValueBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "marketValueLocalCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "marketValueUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "maturityDate": {
            "type": "string"
          },
          "sourceDocId": {
            "type": "string"
          },
          "sourceExcerpt": {
            "type": "string"
          },
          "sourcePage": {
            "format": "int32",
            "type": "integer"
          },
          "tickerOrIsin": {
            "type": "string"
          },
          "verificationStatus": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "HoldingOverrideInput": {
        "properties": {
          "holdingId": {
            "type": "string"
          },
          "marketValueUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "type": "object"
      },
      "ListDealsRequest": {
        "properties": {},
        "type": "object"
      },
      "ListDealsResponse": {
        "properties": {
          "deals": {
            "items": {
              "$ref": "#/components/schemas/DealSummary"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ListPositionsRequest": {
        "properties": {
          "accountId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ListPositionsResponse": {
        "properties": {
          "positions": {
            "items": {
              "$ref": "#/components/schemas/BrokerPosition"
            },
            "type": "array"
          },
          "providerName": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PreviewOrderRequest": {
        "properties": {
          "accountId": {
            "type": "string"
          },
          "notionalCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "side": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PreviewOrderResponse": {
        "properties": {
          "estimatedFeeCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "notionalCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "settlementSchedule": {
            "type": "string"
          },
          "side": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReadyzResponse": {
        "properties": {
          "build_time_utc": {
            "format": "date-time",
            "type": "string"
          },
          "build_version": {
            "example": "v0.1.0",
            "type": "string"
          },
          "git_revision": {
            "example": "4065b45",
            "type": "string"
          },
          "sqlite": {
            "example": "ok",
            "type": "string"
          },
          "status": {
            "example": "ready",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SimulateFitRequest": {
        "properties": {
          "dealSlug": {
            "type": "string"
          },
          "familyId": {
            "type": "string"
          },
          "ticketUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "type": "object"
      },
      "SimulateFitResponse": {
        "properties": {
          "currentAlphaBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "currentCoreBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "fitVerdict": {
            "type": "string"
          },
          "liquidCashAfterUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "proFormaAlphaBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "proFormaCoreBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "targetAlphaBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "targetCoreBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "techOverlapDeltaBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "type": "object"
      },
      "SimulateShockRequest": {
        "properties": {
          "drawdownBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "familyId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SimulateShockResponse": {
        "properties": {
          "deliveryShares": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "drawdownBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "estimatedLossUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "knockInBreached": {
            "type": "boolean"
          },
          "knockInPriceCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "marginHeadroomUsdCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "marginWarningTriggered": {
            "type": "boolean"
          },
          "shockedLombardLvUtilBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "shockedSpotCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "worstOfTicker": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "StreamAskRequest": {
        "properties": {
          "familyId": {
            "type": "string"
          },
          "question": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "StreamAskResponse": {
        "properties": {
          "citations": {
            "items": {
              "$ref": "#/components/schemas/CitationRef"
            },
            "type": "array"
          },
          "done": {
            "type": "boolean"
          },
          "textChunk": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "StreamIngestRequest": {
        "properties": {
          "familyId": {
            "type": "string"
          },
          "fileBytes": {
            "format": "byte",
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "fixtureKey": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "StreamIngestResponse": {
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "documentId": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "reconciledDriftCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "stage": {
            "type": "string"
          },
          "triageConfidenceBps": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "triageDecision": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SubmitInterestRequest": {
        "properties": {
          "dealSlug": {
            "type": "string"
          },
          "familyId": {
            "type": "string"
          },
          "fundingCustodian": {
            "type": "string"
          },
          "indicativeAmountCents": {
            "format": "int64",
            "type": [
              "string",
              "integer"
            ]
          },
          "notes": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SubmitInterestResponse": {
        "properties": {
          "allocationRequestId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "receiptUrl": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "WatchAlert": {
        "properties": {
          "actionHint": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "metricLabel": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "info": {
    "description": "Interactive JSON API reference for Project Barbell Prototype v0 (Singapore MFO wealth operating system).\n\nAll 8 unary ConnectRPC procedures accept standard HTTP POST requests with `Content-Type: application/json` using your active browser session cookie (`barbell_sid`).\n\nServer-streaming procedures (`StreamIngest`, `StreamAsk`) use Connect streaming framing (`application/connect+json`) or HTTP/2 gRPC.\n\nAll monetary values are represented as exact integer minor units (`*_cents`) and rates in integer basis points (`*_bps`) — zero floating-point rounding drift.",
    "title": "Project Barbell Prototype v0 — ConnectRPC \u0026 JSON API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/barbell.v1.BrokerService/ListPositions": {
      "post": {
        "description": "Returns normalized multi-region brokerage positions from the Alpaca-compatible sandbox mock adapter.",
        "operationId": "BrokerService_ListPositions",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "accountId": "acct_ubs"
              },
              "schema": {
                "$ref": "#/components/schemas/ListPositionsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListPositionsResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "List Sandbox Broker Positions",
        "tags": [
          "BrokerService"
        ]
      }
    },
    "/barbell.v1.BrokerService/PreviewOrder": {
      "post": {
        "description": "Computes estimated fees and settlement timing (T+1 US / T+2 SGX) without routing live market orders.",
        "operationId": "BrokerService_PreviewOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "accountId": "acct_ubs",
                "notionalCents": 25000000,
                "side": "BUY",
                "symbol": "NVDA"
              },
              "schema": {
                "$ref": "#/components/schemas/PreviewOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewOrderResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Preview Equity Order \u0026 Settlement Schedule",
        "tags": [
          "BrokerService"
        ]
      }
    },
    "/barbell.v1.CopilotService/StreamAsk": {
      "post": {
        "description": "ConnectRPC server-streaming procedure (application/connect+json framing) that answers portfolio risk, Lombard cure, capital call, and overlap questions strictly grounded in the active tenant's reconciled ledger.",
        "operationId": "CopilotService_StreamAsk",
        "requestBody": {
          "content": {
            "application/connect+json": {
              "example": {
                "familyId": "",
                "question": "Stress-test our cross-bank Lombard margin under a -15% Asian tech drawdown."
              },
              "schema": {
                "$ref": "#/components/schemas/StreamAskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/connect+json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamAskResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Ask Private Portfolio Copilot (Server Streaming)",
        "tags": [
          "CopilotService"
        ]
      }
    },
    "/barbell.v1.IngestService/ApproveDocument": {
      "post": {
        "description": "Applies optional per-holding USD overrides and posts the staged document to the family ledger. Enforces the three-way reconciliation invariant (\u003c= $0.01 drift) and rejects non-reconciling overrides with Connect failed_precondition.",
        "operationId": "IngestService_ApproveDocument",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "documentId": "doc_example",
                "overrides": []
              },
              "schema": {
                "$ref": "#/components/schemas/ApproveDocumentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApproveDocumentResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Approve \u0026 Post Reconciled Statement",
        "tags": [
          "IngestService"
        ]
      }
    },
    "/barbell.v1.IngestService/StreamIngest": {
      "post": {
        "description": "ConnectRPC server-streaming procedure (application/connect+json framing) that ingests a private-bank statement or synthetic Singapore MFO fixture (dbs_xlsx, cayman_pdf, ubs_pdf, jb_csv), runs calibrated triage, and emits live pipeline stages.",
        "operationId": "IngestService_StreamIngest",
        "requestBody": {
          "content": {
            "application/connect+json": {
              "example": {
                "familyId": "",
                "fixtureKey": "dbs_xlsx"
              },
              "schema": {
                "$ref": "#/components/schemas/StreamIngestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/connect+json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamIngestResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Stream Statement Ingestion Pipeline (Server Streaming)",
        "tags": [
          "IngestService"
        ]
      }
    },
    "/barbell.v1.MarketplaceService/ListDeals": {
      "post": {
        "description": "Returns the closed-publishing catalog of institutional venture, AI compute yield, and short-duration Treasury anchor deals with independent escrow details.",
        "operationId": "MarketplaceService_ListDeals",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {},
              "schema": {
                "$ref": "#/components/schemas/ListDealsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDealsResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "List Curated Institutional Private Deals",
        "tags": [
          "MarketplaceService"
        ]
      }
    },
    "/barbell.v1.MarketplaceService/SimulateFit": {
      "post": {
        "description": "Calculates pro-forma Bucket 1 Core / Bucket 2 Alpha weights, remaining liquid cash, and tech/AI overlap delta for a candidate USD ticket against the live household ledger.",
        "operationId": "MarketplaceService_SimulateFit",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "dealSlug": "silicon-valley-venture-access",
                "familyId": "",
                "ticketUsdCents": 50000000
              },
              "schema": {
                "$ref": "#/components/schemas/SimulateFitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulateFitResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Simulate Deal Portfolio Fit",
        "tags": [
          "MarketplaceService"
        ]
      }
    },
    "/barbell.v1.MarketplaceService/SubmitInterest": {
      "post": {
        "description": "Records a non-binding allocation indication for the active session tenant without touching client funds or initiating bank wires.",
        "operationId": "MarketplaceService_SubmitInterest",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "dealSlug": "silicon-valley-venture-access",
                "familyId": "",
                "fundingCustodian": "UBS Singapore",
                "indicativeAmountCents": 50000000,
                "notes": "Subject to Investment Committee sign-off"
              },
              "schema": {
                "$ref": "#/components/schemas/SubmitInterestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitInterestResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Submit Non-Binding Indication of Interest (IOI)",
        "tags": [
          "MarketplaceService"
        ]
      }
    },
    "/barbell.v1.PortfolioService/GetPortfolio": {
      "post": {
        "description": "Returns the reconciled multi-bank balance sheet, custodian breakdowns, MAS 13U compliance status, Daily Painkiller Watch Strip alerts, and approved multi-currency holdings for the active session tenant.",
        "operationId": "PortfolioService_GetPortfolio",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "displayCurrency": "USD",
                "familyId": ""
              },
              "schema": {
                "$ref": "#/components/schemas/GetPortfolioRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPortfolioResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Get Consolidated Family Portfolio",
        "tags": [
          "PortfolioService"
        ]
      }
    },
    "/barbell.v1.PortfolioService/SimulateShock": {
      "post": {
        "description": "Deterministically simulates a negative equity drawdown (in basis points, e.g. -1500 for -15%) against the household's worst-of Fixed Coupon Note barrier and cross-bank Lombard LTV utilization.",
        "operationId": "PortfolioService_SimulateShock",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "drawdownBps": -1500,
                "familyId": ""
              },
              "schema": {
                "$ref": "#/components/schemas/SimulateShockRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulateShockResponse"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectError"
                }
              }
            },
            "description": "ConnectRPC Error (invalid_argument, failed_precondition, not_found, permission_denied)"
          }
        },
        "summary": "Simulate Equity Drawdown Stress Test",
        "tags": [
          "PortfolioService"
        ]
      }
    },
    "/healthz": {
      "get": {
        "description": "Unauthenticated lightweight uptime probe returning HTTP 200 ok.",
        "operationId": "GetHealthz",
        "responses": {
          "200": {
            "content": {
              "text/plain": {
                "example": "ok\n",
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Service is alive"
          }
        },
        "summary": "Liveness Probe",
        "tags": [
          "Health \u0026 Operations"
        ]
      }
    },
    "/readyz": {
      "get": {
        "description": "Verifies SQLite WAL quick_check integrity and returns build version and Git revision metadata.",
        "operationId": "GetReadyz",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadyzResponse"
                }
              }
            },
            "description": "Service and SQLite store are ready"
          }
        },
        "summary": "Readiness \u0026 Build Metadata Probe",
        "tags": [
          "Health \u0026 Operations"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Current Host (Same-Origin Isolated Session Tenant)",
      "url": "/"
    }
  ],
  "tags": [
    {
      "description": "Consolidated multi-bank balance sheet and deterministic market shock simulations",
      "name": "PortfolioService"
    },
    {
      "description": "In-memory statement ingestion, calibrated triage, and three-way ledger reconciliation approval",
      "name": "IngestService"
    },
    {
      "description": "Curated private deal catalog, live portfolio fit simulator, and zero-custody IOI staging",
      "name": "MarketplaceService"
    },
    {
      "description": "Tenant-isolated portfolio Q\u0026A grounded strictly in the reconciled ledger",
      "name": "CopilotService"
    },
    {
      "description": "Alpaca-compatible global equities sandbox mock adapter",
      "name": "BrokerService"
    },
    {
      "description": "Liveness and SQLite WAL readiness probes",
      "name": "Health \u0026 Operations"
    }
  ]
}