{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stonewake-ai/json-schema/stonewake-ai-v1-deal-detail-out-schema.json",
  "title": "V1DealDetailOut",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stonewake-ai-openapi.json#/components/schemas/V1DealDetailOut",
  "properties": {
    "deal_id": {
      "type": "string",
      "title": "Deal Id",
      "description": "The deal's id, the deal_id of every deal route."
    },
    "team_id": {
      "type": "string",
      "title": "Team Id",
      "description": "The team whose book holds this row. A key reads exactly the one team it was issued for; GET /v1/me states it."
    },
    "team_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Name",
      "description": "That team's display name."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "The deal's name as the sources report it."
    },
    "summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary",
      "description": "A short description of the transaction from its sources, null when none was written."
    },
    "primary_country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Primary Country",
      "description": "The deal's main country in words, null when no source names one."
    },
    "primary_country_iso3": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Primary Country Iso3",
      "description": "The main country as an ISO 3166 alpha 3 code, null when it could not be resolved."
    },
    "countries": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Countries",
      "description": "Every country the deal names, in words."
    },
    "countries_iso3": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Countries Iso3",
      "description": "Every country the deal names as ISO 3166 alpha 3 codes, empty when none could be resolved."
    },
    "sector": {
      "type": "string",
      "title": "Sector",
      "description": "The deal's sector, one of the values the sector parameter of GET /v1/deals takes."
    },
    "stage": {
      "type": "string",
      "title": "Stage",
      "description": "The pipeline stage, one of the values the stage parameter of GET /v1/deals takes."
    },
    "stage_confidence": {
      "type": "string",
      "title": "Stage Confidence",
      "description": "How sure the evidence that set the stage is, high, medium or low, high when an analyst set it."
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "The analyst workflow status, new, tracking or dismissed."
    },
    "relevance_score": {
      "type": "integer",
      "title": "Relevance Score",
      "description": "The priority the deal was ranked with, 0 to 100, read inside its score_window and never across the book."
    },
    "contract_value_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Value Usd",
      "description": "The Value's one amount in US dollars: in dollars as stated, else the dollar figure the source gives beside it, else converted at the ECB euro reference rates of 29 October 2026 or an official fixed parity, else at the IMF's dollar value of the SDR of that day (the African Development Bank's unit of account at par) or the US Treasury Reporting Rates of Exchange of 30 September 2026 or a later amendment of one of them, rounded to the last place the source states (GBP 82m serves 109000000, never 109198592.93) and never coarser than the Deal Book prints it. Null for a bound or a range, which contract_value_bound, contract_value_usd_min and contract_value_usd_max serve, for several amounts and for a currency without a rate. The Deal Book sorts and filters by the highest figure the Value states."
    },
    "contract_value_bound": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "at_least",
            "up_to",
            "range"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Value Bound",
      "description": "at_least where the Value states a lower bound (exceeding EUR 1bn, more than SEK 100 million, EUR 900+ million), up_to where it states an upper bound (up to $1.1bn), range where it states two ends, null otherwise. A bound is never a point figure."
    },
    "contract_value_usd_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Value Usd Min",
      "description": "The lower bound in US dollars of an at_least or range Value, converted like contract_value_usd and rounded down to the last place the source states, null otherwise."
    },
    "contract_value_usd_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Value Usd Max",
      "description": "The upper bound in US dollars of an up_to or range Value, converted like contract_value_usd and rounded up to the last place the source states, null otherwise."
    },
    "contract_value_usd_unread": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "several_amounts",
            "price_per_unit",
            "not_one_figure",
            "no_currency",
            "shared_currency",
            "no_rate"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Value Usd Unread",
      "description": "Why a reported Value has no dollar figure, each reason in words on the Deal Book page, one of several_amounts, price_per_unit, not_one_figure, no_currency, shared_currency (a sign or word several currencies share, such as Rs, P, lira or lei) or no_rate; null where it has a figure or no Value is reported."
    },
    "contract_value_conversion": {
      "anyOf": [
        {
          "$ref": "#/$defs/ValueConversionOut"
        },
        {
          "type": "null"
        }
      ],
      "description": "How the dollar figures were reached, null when there are none: basis stated_usd, source_usd (the dollar figure the source gives beside the amount) or reference_rate, the amount read as a plain decimal (a range's upper end, its lower end in amount_min), and for a conversion the currency, the rate as published, its quotation, its date and its source, and the place each figure is rounded to, so every figure is recomputed from these numbers alone."
    },
    "contract_value_raw": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Value Raw",
      "description": "A reported amount with its currency as first reported, never a date, a tenor or a capacity, null when none was reported."
    },
    "value_status": {
      "type": "string",
      "enum": [
        "confirmed",
        "reported",
        "absent"
      ],
      "title": "Value Status",
      "description": "confirmed where a verified quote states the figure, reported where no verified quote confirms it, absent where no amount is reported."
    },
    "value_text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Value Text",
      "description": "The Value to print, in the currency the source reported it, with the limit word the quotes set before it, null when no amount is reported."
    },
    "value_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Value Note",
      "description": "The one sentence every surface prints beside a reported Value, null unless value_status is reported."
    },
    "value_finding_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Value Finding Id",
      "description": "The linked finding whose verified quote states the Value, null unless value_status is confirmed."
    },
    "value_basis": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "financing",
            "contract",
            "unclassified"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Value Basis",
      "description": "What the Value is, financing, contract or unclassified, null exactly when value_text is null."
    },
    "contract_value_finding_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Value Finding Id",
      "description": "The finding the Value came from, null when none did."
    },
    "buyer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Buyer",
      "description": "One of the buyers the deal's parties name, null when none is named."
    },
    "ecas": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Ecas",
      "description": "The agency names on the deal under their canonical registry names."
    },
    "agencies": {
      "items": {
        "$ref": "#/$defs/V1AgencyOut"
      },
      "type": "array",
      "title": "Agencies",
      "description": "The agencies, one per institution under its canonical registry name, with its kind and roles."
    },
    "exporters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Exporters",
      "description": "The exporter names on the deal."
    },
    "lenders": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Lenders",
      "description": "The lender names on the deal in name order. An institution agencies already lists is not repeated here."
    },
    "first_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "First Seen At",
      "description": "When the deal first entered the book."
    },
    "last_event_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Event At",
      "description": "The earliest publication date among the fetched pages of the deal's newest reported event, null when no fetched page is dated. Never later than today in UTC."
    },
    "dismissed_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dismissed Reason",
      "description": "Why an analyst dismissed the deal, wrong_country, wrong_sector, too_small, not_financeable, duplicate, historical or other, null unless it is dismissed."
    },
    "score_window": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Score Window",
      "description": "The window the deal was ranked in, financing_open, early_stage, not_confirmed, financing_closed or cancelled, null when no ranking has scored it."
    },
    "score_window_label": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Score Window Label",
      "description": "The window in words, null when no ranking has scored the deal."
    },
    "score_band": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Score Band",
      "description": "The band word that goes with the score, null when no ranking has scored the deal."
    },
    "score_reason_count": {
      "type": "integer",
      "title": "Score Reason Count",
      "description": "How many reasons stand behind the score, 0 when no ranking has scored the deal."
    },
    "score_hidden": {
      "type": "boolean",
      "title": "Score Hidden",
      "description": "True for the rows a desk holds back by default, which the book serves only with include_hidden=true."
    },
    "score_own_bank": {
      "type": "boolean",
      "title": "Score Own Bank",
      "description": "True when your own bank is named as a lender on the deal, read from the stored demotion."
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "State",
      "description": "The state the deal's linked findings confirm, null when no source's quote confirmed one."
    },
    "state_label": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "State Label",
      "description": "The confirmed state in words, null when state is null."
    },
    "event_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Event Date",
      "description": "The newest event date a source stated in its own words, as a plain date, null when none was stated."
    },
    "angle": {
      "type": "string",
      "title": "Angle",
      "description": "Why the row is on the desk's list, in the words of the desk of the team whose book holds it."
    },
    "ask": {
      "type": "string",
      "title": "Ask",
      "description": "What is still to be financed, in the words of that desk, derived from the confirmed state, the window, the agencies and the lenders."
    },
    "merged_into": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Merged Into",
      "description": "The deal this one was folded into after it turned out to be the same transaction, null on every standing deal."
    },
    "from_pool": {
      "type": "boolean",
      "title": "From Pool",
      "default": false,
      "description": "True on a deal of the shared deal pool, whose facts and research Stonewake keeps once for every workspace, while its status, its dismissed_reason and its next step are your team's own."
    },
    "dismissed_in_pool": {
      "type": "boolean",
      "title": "Dismissed In Pool",
      "default": false,
      "description": "True where Stonewake dismissed the pool deal in the pool, because it was merged into another deal or set aside, so it reads dismissed in every workspace and can be neither reopened nor followed."
    },
    "latest_update": {
      "anyOf": [
        {
          "$ref": "#/$defs/LatestUpdateOut"
        },
        {
          "type": "null"
        }
      ],
      "description": "The newest dated event on the deal's timeline whose quote confirmed a state, null when there is none."
    },
    "has_unseen_update": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Has Unseen Update",
      "description": "True when that event reached the deal after you last opened it in the dashboard, null for an API key, which records no opens."
    },
    "q_matched": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/DealQMatchOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Q Matched",
      "description": "Read with q, one entry per word or phrase of q the row holds, in the order of q, naming the first field that holds it, so a kept row says why it was kept, null on a page read without q."
    },
    "score_breakdown": {
      "additionalProperties": {
        "type": "number"
      },
      "type": "object",
      "title": "Score Breakdown",
      "description": "The points each scoring component earned, by component name."
    },
    "score_weights": {
      "additionalProperties": {
        "type": "number"
      },
      "type": "object",
      "title": "Score Weights",
      "description": "The most points each component can earn under the rubric that scored the deal, by component name."
    },
    "score_reasons": {
      "properties": {
        "score": {
          "type": "integer",
          "title": "Score",
          "description": "The priority the deal was ranked with, 0 to 100, inside its window."
        },
        "band": {
          "type": "string",
          "title": "Band",
          "description": "The band word that goes with the score, today Strong fit, Worth a look, Weak fit or Not a fit."
        },
        "window": {
          "type": "string",
          "title": "Window",
          "description": "The window the deal was ranked in, as score_window names it."
        },
        "reason_count": {
          "type": "integer",
          "title": "Reason Count",
          "description": "How many components stand behind the score."
        },
        "hidden": {
          "type": "boolean",
          "title": "Hidden",
          "description": "True when the desk holds the deal back by default, as score_hidden says."
        },
        "components": {
          "items": {
            "properties": {
              "component": {
                "type": "string",
                "title": "Component",
                "description": "The scoring component, the name its points stand under."
              },
              "label": {
                "type": "string",
                "title": "Label",
                "description": "The component's name in words."
              },
              "points": {
                "type": "number",
                "title": "Points",
                "description": "The points the component earned."
              },
              "weight": {
                "type": "number",
                "title": "Weight",
                "description": "The most points the component can earn."
              },
              "reason": {
                "type": "string",
                "title": "Reason",
                "description": "One plain sentence saying which fact the component matched, or that it found none."
              },
              "matched": {
                "type": "boolean",
                "title": "Matched",
                "description": "False when the component found nothing, which is a reason in itself."
              }
            },
            "type": "object",
            "required": [
              "component",
              "label",
              "points",
              "weight",
              "reason",
              "matched"
            ],
            "title": "ScoreComponentShape",
            "description": "One scoring component's contribution and the fact behind it."
          },
          "type": "array",
          "title": "Components",
          "description": "One entry per scoring component."
        },
        "demotions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Demotions",
          "description": "The demotions applied, each a short phrase such as Country not stated, Own bank lends or No movement since 1 Apr 2025."
        },
        "lowered": {
          "type": "boolean",
          "title": "Lowered",
          "description": "True when any of the demotions lowers the score."
        }
      },
      "type": "object",
      "title": "ScoreReasonsShape",
      "description": "Why the deal ranks where it does, as the ranking stored it, an empty object for a deal no ranking has scored. A row ranked before 20 October 2026 is served in the same short phrases."
    },
    "next_action": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Action",
      "description": "The analyst's own next step, null when none is set."
    },
    "summary_lines": {
      "items": {
        "$ref": "#/$defs/SummaryLine"
      },
      "type": "array",
      "title": "Summary Lines",
      "description": "Three lines generated from the cited findings by fixed rules, not by a model, each with its citations."
    },
    "briefing": {
      "anyOf": [
        {
          "$ref": "#/$defs/DealBriefingOut"
        },
        {
          "type": "null"
        }
      ],
      "description": "A quick summary a model drafted from the deal's own sources, with those sources, null unless it passed its release check."
    },
    "parties": {
      "items": {
        "$ref": "#/$defs/V1DealPartyOut"
      },
      "type": "array",
      "title": "Parties",
      "description": "The deal's parties, each with its role and the registry entry or company node it is bound to where one is."
    },
    "unnamed_roles": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Unnamed Roles",
      "description": "The role of the deal's cast no source names yet, exporter where neither an exporter nor an EPC contractor is named, else empty."
    },
    "project_records": {
      "items": {
        "$ref": "#/$defs/DealProjectRecordOut"
      },
      "type": "array",
      "title": "Project Records",
      "description": "The UK Renewable Energy Planning Database or EIA 860M generator inventory records of an energy deal's project in the United Kingdom or the United States, each with its status, planned and first planned dates, delay and edition, empty when no register holds the project or two projects share its name."
    },
    "tracking_next_check_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tracking Next Check At",
      "description": "When the deal's daily check runs next while the deal is tracked, null when no check is scheduled."
    },
    "tracking_scheduled_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tracking Scheduled Seconds",
      "description": "How often research checks the deal in your workspace while it is followed, in seconds, also for a deal not followed yet, null where following adds no research check of its own."
    },
    "dismissed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dismissed At",
      "description": "When the deal was dismissed, null unless it is dismissed."
    },
    "timeline": {
      "items": {
        "$ref": "#/$defs/V1LinkedFindingOut"
      },
      "type": "array",
      "title": "Timeline",
      "description": "The linked findings, newest first, at most timeline_limit of them."
    },
    "timeline_total": {
      "type": "integer",
      "title": "Timeline Total",
      "description": "How many findings are linked to the deal, whatever the timeline shows."
    },
    "events": {
      "items": {
        "$ref": "#/$defs/V1DealEventOut"
      },
      "type": "array",
      "title": "Events",
      "description": "The deal's lifecycle events, newest first, at most 50."
    },
    "events_total": {
      "type": "integer",
      "title": "Events Total",
      "description": "How many lifecycle events the deal has."
    },
    "sources": {
      "items": {
        "$ref": "#/$defs/V1SourceOut"
      },
      "type": "array",
      "title": "Sources",
      "description": "The sources the returned timeline cites."
    },
    "economics": {
      "anyOf": [
        {
          "$ref": "#/$defs/DealEconomicsOut"
        },
        {
          "type": "null"
        }
      ],
      "description": "The financing terms your analysts entered, null until any is entered."
    },
    "desk_economics": {
      "anyOf": [
        {
          "$ref": "#/$defs/DeskEconomicsOut"
        },
        {
          "type": "null"
        }
      ],
      "description": "The terms a project finance or real estate desk stores for the deal, null until an analyst enters any."
    }
  },
  "type": "object",
  "required": [
    "deal_id",
    "team_id",
    "team_name",
    "name",
    "summary",
    "primary_country",
    "primary_country_iso3",
    "countries",
    "countries_iso3",
    "sector",
    "stage",
    "stage_confidence",
    "status",
    "relevance_score",
    "contract_value_usd",
    "contract_value_raw",
    "value_status",
    "value_text",
    "value_note",
    "value_finding_id",
    "value_basis",
    "contract_value_finding_id",
    "buyer",
    "ecas",
    "agencies",
    "exporters",
    "lenders",
    "first_seen_at",
    "last_event_at",
    "dismissed_reason",
    "score_window",
    "score_window_label",
    "score_band",
    "score_reason_count",
    "score_hidden",
    "score_own_bank",
    "state",
    "state_label",
    "event_date",
    "angle",
    "ask",
    "score_breakdown",
    "score_weights",
    "score_reasons",
    "next_action",
    "summary_lines",
    "briefing",
    "parties",
    "unnamed_roles",
    "project_records",
    "tracking_next_check_at",
    "tracking_scheduled_seconds",
    "dismissed_at",
    "timeline",
    "timeline_total",
    "events",
    "events_total",
    "sources",
    "economics",
    "desk_economics"
  ],
  "$defs": {
    "BriefingSourceOut": {
      "properties": {
        "source_id": {
          "type": "string",
          "title": "Source Id",
          "description": "The source's id, matching an entry of the deal's sources."
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "The source's address."
        },
        "publisher": {
          "type": "string",
          "title": "Publisher",
          "description": "The publisher's name."
        },
        "published_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published At",
          "description": "When the publisher dated the source, null when it states no date."
        }
      },
      "type": "object",
      "required": [
        "source_id",
        "url",
        "publisher",
        "published_at"
      ],
      "title": "BriefingSourceOut",
      "description": "One source the model was given, as the deal detail serves a source."
    },
    "DealBriefingOut": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text",
          "description": "The drafted summary of what the deal's cited sources report. It is not a statement of fact by Stonewake."
        },
        "drafted_at": {
          "type": "string",
          "format": "date-time",
          "title": "Drafted At",
          "description": "When the summary was drafted."
        },
        "drafted_by": {
          "type": "string",
          "const": "model",
          "title": "Drafted By",
          "default": "model",
          "description": "Always model, because an AI model drafts the text."
        },
        "sources": {
          "items": {
            "$ref": "#/$defs/BriefingSourceOut"
          },
          "type": "array",
          "title": "Sources",
          "description": "The sources the model was given."
        }
      },
      "type": "object",
      "required": [
        "text",
        "drafted_at",
        "sources"
      ],
      "title": "DealBriefingOut",
      "description": "The model drafted briefing a surface may print, with the sources it was drafted\nfrom, or nothing: the detail carries null unless it passed its release check."
    },
    "DealEconomicsOut": {
      "properties": {
        "eca_product": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Eca Product",
          "description": "The export credit product, hermes_finanzkredit, hermes_lieferantenkredit, ukef_buyer_credit or other."
        },
        "financed_amount_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Financed Amount Usd",
          "description": "The financed amount in USD."
        },
        "financed_amount_raw": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Financed Amount Raw",
          "description": "The financed amount as entered, with its currency."
        },
        "down_payment_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Down Payment Pct",
          "description": "The down payment in percent of the contract value."
        },
        "tenor_years": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tenor Years",
          "description": "The tenor in years."
        },
        "repayment_profile": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Repayment Profile",
          "description": "How the loan is repaid, semi_annual, annual or sculpted."
        },
        "starting_point_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Starting Point Note",
          "description": "When repayment starts, in words."
        },
        "interest_basis": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Interest Basis",
          "description": "How interest is set, cirr_fixed or floating_margin."
        },
        "margin_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Margin Note",
          "description": "The margin, in words."
        },
        "cover_political_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cover Political Pct",
          "description": "The political risk cover in percent of the loan."
        },
        "cover_commercial_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cover Commercial Pct",
          "description": "The commercial risk cover in percent of the loan."
        },
        "premium_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Premium Note",
          "description": "The cover premium, in words."
        },
        "security_package": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Security Package",
          "default": [],
          "description": "The security package, one item per entry."
        },
        "conditions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Conditions",
          "default": [],
          "description": "The conditions, one item per entry."
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At",
          "description": "When the terms were last entered."
        }
      },
      "type": "object",
      "title": "DealEconomicsOut",
      "description": "The deal's analyst-entered financing terms, all optional (the pack renders\nlabelled fill-in slots for absent fields). `updated_by` stays off the wire:\nthe detail shows WHEN terms were entered, the audit ledger knows by whom."
    },
    "DealProjectRecordOut": {
      "properties": {
        "register_id": {
          "type": "string",
          "enum": [
            "uk_repd",
            "us_eia860m"
          ],
          "title": "Register Id",
          "description": "uk_repd or us_eia860m."
        },
        "register_name": {
          "type": "string",
          "title": "Register Name",
          "description": "The register's name."
        },
        "project_key": {
          "type": "string",
          "title": "Project Key",
          "description": "The register's own key, the REPD Ref ID or the EIA 860M plant id."
        },
        "sub_key": {
          "type": "string",
          "title": "Sub Key",
          "description": "The EIA 860M generator id, empty for a REPD project."
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The site or plant name the register prints."
        },
        "operator_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Operator Name",
          "description": "The operator or applicant the register names, null when none."
        },
        "technology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Technology",
          "description": "The technology the register states, null when none."
        },
        "capacity_mw": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Capacity Mw",
          "description": "The capacity in megawatts the register states, null when none."
        },
        "status": {
          "type": "string",
          "title": "Status",
          "description": "The status as the register publishes it, an EIA 860M code or REPD's words."
        },
        "status_label": {
          "type": "string",
          "title": "Status Label",
          "description": "The status in plain words, the publisher's meaning of its code."
        },
        "status_since": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status Since",
          "description": "The data date of the first edition that shows this status."
        },
        "status_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status Date",
          "description": "REPD's Record Last Updated date or the EIA 860M retirement month, null when none."
        },
        "planned_cod": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Planned Cod",
          "description": "The planned operation month of the newest edition, null when none."
        },
        "first_planned_cod": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Planned Cod",
          "description": "The first planned operation month the register reported."
        },
        "first_planned_edition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Planned Edition",
          "description": "The edition that first reported that plan."
        },
        "delay_months": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Delay Months",
          "description": "How many months the planned date moved against the first one the register reported, null where the register states no plan or the unit operates."
        },
        "actual_cod": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actual Cod",
          "description": "The month the unit went into operation, as the register states it."
        },
        "delayed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Delayed",
          "description": "True when the register reads the project delayed beyond two quarters or canceled, abandoned, out of service or retired, false when it does not, null when its history cannot tell yet."
        },
        "edition": {
          "type": "string",
          "title": "Edition",
          "description": "The register edition the record is read from."
        },
        "edition_published": {
          "type": "string",
          "format": "date",
          "title": "Edition Published",
          "description": "The day the publisher released that edition."
        },
        "data_as_of": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data As Of",
          "description": "The date the edition's data describes, null when unstated."
        },
        "source_url": {
          "type": "string",
          "title": "Source Url",
          "description": "The register's own file of that edition."
        }
      },
      "type": "object",
      "required": [
        "register_id",
        "register_name",
        "project_key",
        "sub_key",
        "name",
        "operator_name",
        "technology",
        "capacity_mw",
        "status",
        "status_label",
        "status_since",
        "status_date",
        "planned_cod",
        "first_planned_cod",
        "first_planned_edition",
        "delay_months",
        "actual_cod",
        "delayed",
        "edition",
        "edition_published",
        "data_as_of",
        "source_url"
      ],
      "title": "DealProjectRecordOut"
    },
    "DealQMatchOut": {
      "properties": {
        "term": {
          "type": "string",
          "title": "Term",
          "description": "One word or phrase of q."
        },
        "field": {
          "type": "string",
          "enum": [
            "name",
            "buyer",
            "agencies",
            "exporters",
            "summary"
          ],
          "title": "Field",
          "description": "The first field of the row that holds the term, name, buyer, agencies, exporters or summary."
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value",
          "description": "The name the row prints for a term found in agencies or exporters, which an agency may match through its registry full name or an alias, null for any other field."
        }
      },
      "type": "object",
      "required": [
        "term",
        "field"
      ],
      "title": "DealQMatchOut",
      "description": "Where one word or phrase of the free text search q was found on a kept row, the field, and for an agency or an exporter the name the row prints, which an agency may match through its registry full name or an alias."
    },
    "DeskEconomicsOut": {
      "properties": {
        "desk": {
          "type": "string",
          "title": "Desk",
          "description": "The desk whose schema the terms were entered under."
        },
        "fields": {
          "properties": {
            "sponsor": {
              "type": "string",
              "title": "Sponsor",
              "description": "Project finance. The project's sponsor."
            },
            "project_cost_usd": {
              "type": "number",
              "title": "Project Cost Usd",
              "description": "Project finance. The project cost in USD."
            },
            "debt_amount_usd": {
              "type": "number",
              "title": "Debt Amount Usd",
              "description": "Project finance. The debt amount in USD."
            },
            "tenor_years": {
              "type": "number",
              "title": "Tenor Years",
              "description": "Project finance. The tenor in years."
            },
            "dfi_participation": {
              "type": "string",
              "title": "Dfi Participation",
              "description": "Project finance. The development finance institutions taking part, in words."
            },
            "offtake_type": {
              "type": "string",
              "enum": [
                "ppa",
                "concession",
                "availability",
                "merchant",
                "tolling",
                "other"
              ],
              "title": "Offtake Type",
              "description": "Project finance. How the output is sold."
            },
            "ltv_pct": {
              "type": "number",
              "title": "Ltv Pct",
              "description": "Real estate. The loan to value the evidence reports, in percent, never computed."
            },
            "valuation_usd": {
              "type": "number",
              "title": "Valuation Usd",
              "description": "Real estate. The reported valuation in USD."
            },
            "rental_income_usd": {
              "type": "number",
              "title": "Rental Income Usd",
              "description": "Real estate. The reported annual rental income in USD, the net operating income where the evidence reports that basis."
            },
            "wault_years": {
              "type": "number",
              "title": "Wault Years",
              "description": "Real estate. The weighted average unexpired lease term in years."
            },
            "tenant_covenant": {
              "type": "string",
              "title": "Tenant Covenant",
              "description": "Real estate. The reported corporate tenant and its covenant strength."
            },
            "floor_area_sqm": {
              "type": "number",
              "title": "Floor Area Sqm",
              "description": "Real estate. The floor area in square metres."
            }
          },
          "type": "object",
          "title": "DeskTermsShape",
          "description": "The terms the deal's desk stores, only those an analyst entered."
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At",
          "description": "When the terms were last entered."
        }
      },
      "type": "object",
      "required": [
        "desk",
        "fields"
      ],
      "title": "DeskEconomicsOut",
      "description": "The terms a project finance or real estate desk stores for a deal, the desk whose schema they were entered under and when they were entered."
    },
    "LatestUpdateOut": {
      "properties": {
        "date": {
          "type": "string",
          "format": "date",
          "title": "Date",
          "description": "The event date a source stated in its own words."
        },
        "label": {
          "type": "string",
          "title": "Label",
          "description": "The confirmed state's word, then the reported amount only where a cited quote states it and the label stays within 64 characters."
        },
        "state": {
          "type": "string",
          "title": "State",
          "description": "The confirmed state, from the closed vocabulary."
        },
        "finding_id": {
          "type": "integer",
          "title": "Finding Id",
          "description": "The timeline entry the words rest on; the deal detail serves its sources and quotes."
        }
      },
      "type": "object",
      "required": [
        "date",
        "label",
        "state",
        "finding_id"
      ],
      "title": "LatestUpdateOut",
      "description": "A deal's newest dated event as the list and the detail serve it."
    },
    "SummaryCitation": {
      "properties": {
        "field": {
          "type": "string",
          "enum": [
            "buyer",
            "instrument",
            "amount",
            "state",
            "event_date",
            "agency",
            "market",
            "sector",
            "mandate_fit"
          ],
          "title": "Field",
          "description": "The stated field the citation backs, buyer, instrument, amount, state, event_date, agency, market, sector or mandate_fit."
        },
        "finding_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Finding Id",
          "description": "The linked finding whose quote states the field; null for the mandate fit, which is the ranking's stored reason."
        },
        "quote": {
          "type": "string",
          "title": "Quote",
          "description": "The verbatim quote the field rests on, or the ranking's stored reason for the mandate fit."
        }
      },
      "type": "object",
      "required": [
        "field",
        "finding_id",
        "quote"
      ],
      "title": "SummaryCitation",
      "description": "What one stated field rests on: the linked finding and its verified quote, or,\nfor the mandate fit, the ranking's stored reason (no finding)."
    },
    "SummaryLine": {
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "who_what",
            "stage",
            "why"
          ],
          "title": "Kind",
          "description": "Which line this is, who_what, stage or why."
        },
        "text": {
          "type": "string",
          "title": "Text",
          "description": "The line as every surface prints it."
        },
        "citations": {
          "items": {
            "$ref": "#/$defs/SummaryCitation"
          },
          "type": "array",
          "title": "Citations",
          "description": "What each stated field of the line rests on."
        }
      },
      "type": "object",
      "required": [
        "kind",
        "text",
        "citations"
      ],
      "title": "SummaryLine"
    },
    "V1AgencyOut": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The institution's canonical registry name."
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Kind",
          "description": "The registry kind, eca, multilateral, dfi, development_bank, agency or bank, null when the registry does not hold the reported spelling."
        },
        "kind_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Kind Label",
          "description": "The kind in words, null when kind is null."
        },
        "entity_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Id",
          "description": "The registry id of the institution, as GET /v1/entities serves it, null when the registry does not hold it."
        },
        "roles": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Roles",
          "description": "agency, and lender when the deal's lender list names the institution too."
        }
      },
      "type": "object",
      "required": [
        "name",
        "kind",
        "kind_label",
        "entity_id",
        "roles"
      ],
      "title": "V1AgencyOut",
      "description": "One named agency under its canonical registry name, with the registry kind\n(eca, multilateral, dfi, development_bank, agency, bank) and its word. Null\nkind: the registry does not hold the reported spelling, so its type is not\nconfirmed. `roles` says whether the lender list names it too (\"agency\" and\n\"lender\"); the row then lists it once, here, and not again under lenders."
    },
    "V1DealEventOut": {
      "properties": {
        "ts": {
          "type": "string",
          "format": "date-time",
          "title": "Ts",
          "description": "When the event happened."
        },
        "event_type": {
          "type": "string",
          "title": "Event Type",
          "description": "The kind of lifecycle event, for example created, stage_change or status_change."
        },
        "actor_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actor Label",
          "description": "Linker, Synthesis or Research for a system process, null when a person acted. No identity is served."
        },
        "from_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "From Value",
          "description": "The value before the change, null when the event changes none."
        },
        "to_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "To Value",
          "description": "The value after the change, null when the event changes none."
        },
        "finding_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Finding Id",
          "description": "The finding that triggered the event, null when none did."
        }
      },
      "type": "object",
      "required": [
        "ts",
        "event_type",
        "actor_label",
        "from_value",
        "to_value",
        "finding_id"
      ],
      "title": "V1DealEventOut",
      "description": "One lifecycle event: the system actor label only (Linker/Synthesis/\nResearch; null = a human acted), never the acting identity or its note."
    },
    "V1DealPartyOut": {
      "properties": {
        "role": {
          "type": "string",
          "title": "Role",
          "description": "The party's commercial role on the deal, such as buyer, exporter, eca or lender."
        },
        "roles": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Roles",
          "description": "Every role the party plays on the deal, in the desk's order, role the first."
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The party's name as the sources report it."
        },
        "also_named": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Also Named",
          "description": "Every other spelling of the party a source reported, in first seen order."
        },
        "entity_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Id",
          "description": "The registry id the party is bound to, null when it is bound to none."
        },
        "entity_display_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Display Name",
          "description": "The registry entry's display name, null when the party is bound to none."
        },
        "entity_full_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Full Name",
          "description": "The registry entry's full name, null when the party is bound to none."
        },
        "entity_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Kind",
          "description": "The registry entry's kind, null when the party is bound to none."
        },
        "node_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Node Id",
          "description": "The company node the party is matched to, null until it is matched to a register."
        }
      },
      "type": "object",
      "required": [
        "role",
        "roles",
        "name",
        "also_named",
        "entity_id",
        "entity_display_name",
        "entity_full_name",
        "entity_kind",
        "node_id"
      ],
      "title": "V1DealPartyOut",
      "description": "One party of the deal, once whatever spellings and roles its sources gave it:\nrole is its first role, roles all of them, name its most complete reported name and\nalso_named every other spelling a source reported."
    },
    "V1LinkedFindingOut": {
      "properties": {
        "attribute": {
          "type": "string",
          "title": "Attribute",
          "description": "What the finding is about, for example mandate or recent_program."
        },
        "claim": {
          "type": "string",
          "title": "Claim",
          "description": "The finding in one readable statement."
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value",
          "description": "The finding's value as one plain figure or word, null when it states none."
        },
        "confidence": {
          "type": "string",
          "title": "Confidence",
          "description": "How sure the extraction is, high, medium or low."
        },
        "verification": {
          "type": "string",
          "title": "Verification",
          "description": "Whether the cited text bears the claim out, supported, partially_supported, unsupported or unverified."
        },
        "verifier_rationale": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Verifier Rationale",
          "description": "Why the verification reads as it does, null when no reason was recorded."
        },
        "novelty": {
          "type": "string",
          "title": "Novelty",
          "description": "Whether the finding is new, an update of an earlier one or a duplicate."
        },
        "source_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Source Ids",
          "description": "The ids of the sources the finding cites, each an entry of sources."
        },
        "quotes": {
          "items": {
            "$ref": "#/$defs/V1QuoteOut"
          },
          "type": "array",
          "title": "Quotes",
          "description": "The verbatim passages behind the finding, each capped and attributed."
        },
        "published_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published At",
          "description": "The newest publication date among the finding's cited sources, null when none is dated."
        },
        "finding_id": {
          "type": "integer",
          "title": "Finding Id",
          "description": "The finding's id, which the deal's other fields name."
        },
        "link_method": {
          "type": "string",
          "title": "Link Method",
          "description": "How the finding was linked to the deal, such as seed for the finding that started it or manual for an analyst's link."
        },
        "linked_at": {
          "type": "string",
          "format": "date-time",
          "title": "Linked At",
          "description": "When the finding was linked to the deal."
        },
        "state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "State",
          "description": "The state the finding's quote confirmed, null when nothing was confirmed."
        },
        "state_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "State Label",
          "description": "That state in words, null when state is null."
        },
        "state_quote": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "State Quote",
          "description": "The passage that confirmed the state, capped like every quote, null when nothing was confirmed."
        },
        "event_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Event Date",
          "description": "The event date the finding's quote states, null when none was confirmed."
        }
      },
      "type": "object",
      "required": [
        "attribute",
        "claim",
        "value",
        "confidence",
        "verification",
        "verifier_rationale",
        "novelty",
        "source_ids",
        "quotes",
        "published_at",
        "finding_id",
        "link_method",
        "linked_at",
        "state",
        "state_label",
        "state_quote",
        "event_date"
      ],
      "title": "V1LinkedFindingOut",
      "description": "A timeline entry: the finding plus its link provenance and what the state\ngate confirmed on it (the state, its word, the confirming passage under the\nhouse quote cap, and the quote backed event date; null where nothing was)."
    },
    "V1QuoteOut": {
      "properties": {
        "source_id": {
          "type": "string",
          "title": "Source Id",
          "description": "The id of the source the passage comes from."
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "The source's address."
        },
        "attribution": {
          "type": "string",
          "title": "Attribution",
          "description": "The source line to show with the passage."
        },
        "passage": {
          "type": "string",
          "title": "Passage",
          "description": "The verbatim passage, at most 240 characters."
        }
      },
      "type": "object",
      "required": [
        "source_id",
        "url",
        "attribution",
        "passage"
      ],
      "title": "V1QuoteOut",
      "description": "One capped supporting passage with its attribution (licence terms:\nURL + attribution are mandatory, so both fields are non-optional)."
    },
    "V1SourceOut": {
      "properties": {
        "source_id": {
          "type": "string",
          "title": "Source Id",
          "description": "The source's id, as findings cite it."
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "The source's address."
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title",
          "description": "The page's title, null when it has none."
        },
        "snippet": {
          "type": "string",
          "title": "Snippet",
          "description": "The passage of the source shown with it, capped like every quote."
        },
        "retrieved_at": {
          "type": "string",
          "format": "date-time",
          "title": "Retrieved At",
          "description": "When the source was read."
        },
        "published_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published At",
          "description": "When the publisher dated the source, null when it states no date."
        },
        "text_provenance": {
          "type": "string",
          "title": "Text Provenance",
          "description": "Where the text came from, page for a fetched page, snippet for a search index and record for a register record. A snippet counts as one report whose page is not verified."
        },
        "source_tier": {
          "type": "integer",
          "title": "Source Tier",
          "description": "The publisher tier, 1 a primary source, 2 trade press, 3 an aggregator or an unclassified publisher."
        },
        "tier_label": {
          "type": "string",
          "title": "Tier Label",
          "description": "The tier in words."
        },
        "reliability": {
          "anyOf": [
            {
              "type": "string",
              "const": "disinformation_network"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reliability",
          "description": "disinformation_network when a public authority names the outlet as part of a disinformation network, else null. Such a source is shown with its warning and never counts toward confirmation."
        },
        "reliability_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reliability Label",
          "description": "The warning in words, naming the authority and its publication, null when reliability is null."
        }
      },
      "type": "object",
      "required": [
        "source_id",
        "url",
        "title",
        "snippet",
        "retrieved_at",
        "published_at",
        "text_provenance",
        "source_tier",
        "tier_label"
      ],
      "title": "V1SourceOut",
      "description": "One cited source with its snippet, capped like every quote. source_tier and tier_label name the publisher tier, a primary source, trade press or an aggregator."
    },
    "ValueConversionOut": {
      "properties": {
        "basis": {
          "type": "string",
          "enum": [
            "stated_usd",
            "source_usd",
            "reference_rate"
          ],
          "title": "Basis",
          "description": "How the dollar sort key was reached, stated_usd when the Value is in US dollars, source_usd when the source gives a dollar figure beside it, or reference_rate when amount was converted at rate."
        },
        "amount": {
          "type": "string",
          "title": "Amount",
          "description": "The figure the rule read as a plain decimal, in currency for reference_rate and in US dollars otherwise, so the dollar figure can be recomputed from published numbers alone."
        },
        "currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Currency",
          "description": "The ISO 4217 code of amount, null unless basis is reference_rate."
        },
        "rate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rate",
          "description": "The reference rate exactly as its source publishes it, null unless basis is reference_rate."
        },
        "quote": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quote",
          "description": "How rate is quoted, such as GBP per EUR beside the ECB's USD per EUR or SAR per USD, null unless basis is reference_rate."
        },
        "rate_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rate Date",
          "description": "The day the rate is published for, null unless basis is reference_rate."
        },
        "rate_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rate Source",
          "description": "Who publishes the rate, null unless basis is reference_rate."
        },
        "rounded_to": {
          "type": "string",
          "title": "Rounded To",
          "default": "0.01",
          "description": "The place the dollar figure of amount is rounded to, such as 1000000 for GBP 82m or 0.01 for an amount stated to the cent or in US dollars."
        },
        "amount_min": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Amount Min",
          "description": "The lower end of a range as a plain decimal in the same currency, null unless the Value states a range."
        },
        "rounded_to_min": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rounded To Min",
          "description": "The place the dollar figure of amount_min is rounded to, null unless the Value states a range."
        }
      },
      "type": "object",
      "required": [
        "basis",
        "amount"
      ],
      "title": "ValueConversionOut",
      "description": "How the dollar sort key was reached, so it can be traced and reproduced (the\napi rehearsal of 31 Oct 2026, mcp-itai-7): `basis` stated_usd (the Value is in US\ndollars), source_usd (the dollar figure the source gives beside it) or\nreference_rate (`currency` converted at `rate`, quoted as `quote`, published for\n`rate_date` at `rate_source`). `amount` is the figure the rule read, a plain decimal\nin `currency` for reference_rate, in dollars otherwise, so the dollar figure is\nrecomputed from the published numbers alone (review rv-dealtruth of 1 Nov 2026)."
    }
  }
}