{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/retirementlab-app/json-schema/retirementlab-app-sweep-request-schema.json",
  "title": "SweepRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/retirementlab-app-openapi.json#/components/schemas/SweepRequest",
  "properties": {
    "config_name": {
      "type": "string",
      "title": "Config Name"
    },
    "simulation": {
      "$ref": "#/$defs/SimulationConfigPayload"
    },
    "sweep_variable": {
      "type": "string",
      "enum": [
        "retirement_year",
        "annual_savings",
        "portfolio_preset",
        "baseline_annual_expenses",
        "initial_net_worth",
        "country",
        "claim_age",
        "bond_tilt_pp"
      ],
      "title": "Sweep Variable"
    },
    "sweep_values": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Sweep Values"
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 200,
      "title": "Idempotency Key"
    },
    "col_enabled": {
      "type": "boolean",
      "title": "Col Enabled",
      "default": true
    },
    "col_adjustments": {
      "additionalProperties": {
        "type": "number"
      },
      "type": "object",
      "title": "Col Adjustments"
    },
    "sweep_target_income_id": {
      "type": "string",
      "title": "Sweep Target Income Id"
    },
    "currency_context": {
      "type": "object",
      "title": "Currency Context",
      "description": "MCP-owned currency provenance (input_currency, simulation_currency, and FX receipts). Set by the MCP layer; ignored for non-MCP callers."
    },
    "fx_rate_table": {
      "type": "object",
      "title": "Fx Rate Table",
      "description": "MCP-owned frozen exchange-rate snapshot used for country-sweep points. Set by the MCP layer; ignored for non-MCP callers."
    },
    "preview": {
      "type": "boolean",
      "title": "Preview",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "sweep_variable"
  ],
  "$defs": {
    "AccountAccessRulePayload": {
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "default",
            "available_now",
            "penalty_free_from",
            "locked_until"
          ],
          "title": "Mode",
          "default": "default"
        },
        "age": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Age"
        },
        "year": {
          "type": "integer",
          "title": "Year"
        },
        "rule_of_55_eligible": {
          "type": "boolean",
          "title": "Rule Of 55 Eligible"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "AccountAccessRulePayload"
    },
    "Article24ReliefFactsPayload": {
      "properties": {
        "schema_version": {
          "type": "integer",
          "title": "Schema Version",
          "default": 1
        },
        "eligibility_status": {
          "type": "string",
          "enum": [
            "unknown",
            "eligible",
            "ineligible"
          ],
          "title": "Eligibility Status",
          "default": "unknown"
        },
        "qualifying_investment_income_fraction": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Qualifying Investment Income Fraction"
        },
        "qualifying_capital_gains_fraction": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Qualifying Capital Gains Fraction"
        },
        "us_source_or_asset_qualification_confirmed": {
          "type": "boolean",
          "title": "Us Source Or Asset Qualification Confirmed"
        },
        "beneficial_ownership_confirmed": {
          "type": "boolean",
          "title": "Beneficial Ownership Confirmed"
        },
        "us_reporting_compliance_confirmed": {
          "type": "boolean",
          "title": "Us Reporting Compliance Confirmed"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "Article24ReliefFactsPayload",
      "description": "France-US tax treaty Article 24 portfolio relief facts.\n\nThese are user-confirmed simulation facts, not a determination of legal\neligibility — user-facing copy referencing this block must say \"based on\nyour inputs\" and avoid advisory terms. ``eligibility_status`` defaults to\n``\"unknown\"``, which must never silently activate relief downstream. A\nglobally diversified portfolio can contain both qualifying and\nnon-qualifying assets, so eligibility is recorded as fractions rather\nthan a single domestic/foreign flag."
    },
    "BaselineAdjustmentPayload": {
      "properties": {
        "year": {
          "type": "integer",
          "title": "Year"
        },
        "new_baseline": {
          "type": "number",
          "minimum": 0.0,
          "title": "New Baseline"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        },
        "derived_from": {
          "type": "string",
          "title": "Derived From"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "year",
        "new_baseline"
      ],
      "title": "BaselineAdjustmentPayload"
    },
    "ComponentSourceTagPayload": {
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "domestic",
            "foreign"
          ],
          "title": "Source",
          "default": "domestic"
        },
        "remitted": {
          "type": "boolean",
          "title": "Remitted",
          "default": true
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "ComponentSourceTagPayload"
    },
    "CrossBorderTaxFactsPayload": {
      "properties": {
        "roth_contribution_basis": {
          "type": "number",
          "minimum": 0.0,
          "title": "Roth Contribution Basis"
        },
        "qualified_roth_distribution": {
          "type": "boolean",
          "title": "Qualified Roth Distribution"
        },
        "canada_roth_election": {
          "type": "boolean",
          "title": "Canada Roth Election"
        },
        "post_residency_contribution": {
          "type": "boolean",
          "title": "Post Residency Contribution"
        },
        "payment_form": {
          "type": "string",
          "enum": [
            "lump_sum",
            "periodic"
          ],
          "title": "Payment Form"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "CrossBorderTaxFactsPayload",
      "description": "Wrapper-tax facts the simulator cannot infer from a balance.\n\nEvery field is optional: ``None`` (or absent) means the user has not\nasserted the fact yet. Empty payloads round-trip as ``None`` on the\nparent ``SimulationAccountPayload`` so existing scenarios stay\nbackwards compatible."
    },
    "GlidePathWaypointPayload": {
      "properties": {
        "age": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Age"
        },
        "allocation": {
          "items": {
            "type": "object"
          },
          "type": "array",
          "title": "Allocation"
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "age",
        "allocation"
      ],
      "title": "GlidePathWaypointPayload"
    },
    "PumaCsmAssumptionPayload": {
      "properties": {
        "eligibility_status": {
          "type": "string",
          "enum": [
            "unknown",
            "eligible",
            "ineligible"
          ],
          "title": "Eligibility Status",
          "default": "unknown"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PumaCsmAssumptionPayload",
      "description": "France PUMa cotisation subsidiaire maladie (CSM) eligibility assumption.\n\nA scenario-level state, separate from the per-adult\n``puma_household_adults`` entries. ``\"unknown\"`` (the default) must never\nsilently activate CSM liability downstream."
    },
    "PumaHouseholdAdultPayload": {
      "properties": {
        "household_relationship": {
          "type": "string",
          "enum": [
            "self",
            "spouse",
            "pacs_partner",
            "other_adult"
          ],
          "title": "Household Relationship",
          "default": "self"
        },
        "income_attribution": {
          "type": "string",
          "enum": [
            "per_adult",
            "equal_household"
          ],
          "title": "Income Attribution",
          "default": "per_adult"
        },
        "person": {
          "type": "string",
          "enum": [
            "A",
            "B"
          ],
          "title": "Person"
        },
        "coverage_start_date": {
          "type": "string",
          "format": "date",
          "title": "Coverage Start Date"
        },
        "coverage_end_date": {
          "type": "string",
          "format": "date",
          "title": "Coverage End Date"
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PumaHouseholdAdultPayload",
      "description": "One durable per-adult record for France PUMa/CSM liability facts.\n\n``person`` links this entry back to the existing ``person`` tag (\"A\"/\"B\")\nused on income/account rows so the CSM statutory-formula income inputs\ncan reuse already-modeled professional-income and pension facts instead\nof duplicating them here."
    },
    "RelocationEventPayload": {
      "properties": {
        "year": {
          "type": "integer",
          "title": "Year"
        },
        "to_country": {
          "type": "string",
          "title": "To Country"
        },
        "regime": {
          "type": "string",
          "title": "Regime"
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        },
        "sell_primary": {
          "type": "boolean",
          "title": "Sell Primary",
          "default": false
        },
        "buy_primary_value": {
          "type": "number",
          "minimum": 0.0,
          "title": "Buy Primary Value"
        },
        "buy_primary_mortgage": {
          "type": "number",
          "minimum": 0.0,
          "title": "Buy Primary Mortgage"
        },
        "fx_rate": {
          "type": "number",
          "title": "Fx Rate"
        },
        "fx_source_currency": {
          "type": "string",
          "title": "Fx Source Currency"
        },
        "fx_destination_currency": {
          "type": "string",
          "title": "Fx Destination Currency"
        },
        "fx_assumption_source": {
          "type": "string",
          "enum": [
            "caller_supplied_fixed_rate"
          ],
          "title": "Fx Assumption Source"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "year",
        "to_country"
      ],
      "title": "RelocationEventPayload",
      "description": "Residency change at an absolute calendar year.\n\nHousing fields are captured for the relocation editor's \"Housing\"\nsub-section. They are stored but engine-unused in v1."
    },
    "RothConversionPayload": {
      "properties": {
        "year": {
          "type": "integer",
          "title": "Year"
        },
        "amount": {
          "type": "number",
          "minimum": 0.0,
          "title": "Amount"
        },
        "from_wrapper_id": {
          "type": "string",
          "title": "From Wrapper Id"
        },
        "to_wrapper_id": {
          "type": "string",
          "title": "To Wrapper Id"
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        },
        "derived_from": {
          "type": "string",
          "title": "Derived From"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "year",
        "amount",
        "from_wrapper_id",
        "to_wrapper_id"
      ],
      "title": "RothConversionPayload",
      "description": "Roth conversion event scheduled for a specific calendar year.\n\nMoves ``amount`` (real dollars at sc.initial_year) from a tax-deferred\nwrapper to a tax-free wrapper at the start of ``year``. The wrapper-bucket\nvalidation is enforced at the SimulationConfigPayload root validator so\ncross-field error messages can list the offending wrapper id."
    },
    "SimulationAccountPayload": {
      "properties": {
        "wrapper_id": {
          "type": "string",
          "title": "Wrapper Id"
        },
        "balance": {
          "type": "number",
          "minimum": 0.0,
          "title": "Balance",
          "description": "Account balance in full local currency units."
        },
        "cost_basis": {
          "type": "number",
          "minimum": 0.0,
          "title": "Cost Basis"
        },
        "person": {
          "type": "string",
          "enum": [
            "A",
            "B"
          ],
          "title": "Person"
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        },
        "cross_border_tax_facts": {
          "$ref": "#/$defs/CrossBorderTaxFactsPayload"
        },
        "withdrawal_access": {
          "$ref": "#/$defs/AccountAccessRulePayload"
        },
        "securities_holding_eligibility_override": {
          "type": "string",
          "enum": [
            "eligible",
            "ineligible"
          ],
          "title": "Securities Holding Eligibility Override"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "wrapper_id",
        "balance"
      ],
      "title": "SimulationAccountPayload"
    },
    "SimulationConfigPayload": {
      "properties": {
        "initial_year": {
          "type": "integer",
          "title": "Initial Year"
        },
        "initial_net_worth": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "Initial Net Worth",
          "description": "Starting portfolio value in full local currency units."
        },
        "baseline_annual_expenses": {
          "type": "number",
          "minimum": 0.0,
          "title": "Baseline Annual Expenses",
          "description": "Baseline annual spending in full local currency units."
        },
        "additional_expenses": {
          "items": {
            "$ref": "#/$defs/SimulationExpensePayload"
          },
          "type": "array",
          "title": "Additional Expenses"
        },
        "additional_income": {
          "items": {
            "$ref": "#/$defs/SimulationIncomePayload"
          },
          "type": "array",
          "title": "Additional Income"
        },
        "country": {
          "type": "string",
          "title": "Country"
        },
        "citizenship": {
          "type": "string",
          "title": "Citizenship",
          "default": ""
        },
        "avg_return": {
          "type": "number",
          "title": "Avg Return"
        },
        "volatility": {
          "type": "number",
          "minimum": 0.0,
          "title": "Volatility"
        },
        "approximate_yield_rate": {
          "type": "number",
          "minimum": 0.0,
          "title": "Approximate Yield Rate"
        },
        "taxable_balance": {
          "type": "number",
          "minimum": 0.0,
          "title": "Taxable Balance"
        },
        "tax_deferred_balance": {
          "type": "number",
          "minimum": 0.0,
          "title": "Tax Deferred Balance"
        },
        "tax_free_balance": {
          "type": "number",
          "minimum": 0.0,
          "title": "Tax Free Balance"
        },
        "taxable_cost_basis": {
          "type": "number",
          "minimum": 0.0,
          "title": "Taxable Cost Basis"
        },
        "accounts": {
          "items": {
            "$ref": "#/$defs/SimulationAccountPayload"
          },
          "type": "array",
          "title": "Accounts"
        },
        "withdrawal_order": {
          "type": "string",
          "enum": [
            "taxable_first",
            "tax_deferred_first",
            "tax_free_first"
          ],
          "title": "Withdrawal Order",
          "default": "taxable_first"
        },
        "tax_filing_status": {
          "type": "string",
          "enum": [
            "single",
            "married_filing_jointly",
            "head_of_household"
          ],
          "title": "Tax Filing Status",
          "default": "single"
        },
        "wealth_tax_region": {
          "type": "string",
          "title": "Wealth Tax Region",
          "default": "default"
        },
        "tax_regime": {
          "type": "string",
          "title": "Tax Regime",
          "default": "default"
        },
        "subnational_region": {
          "type": "string",
          "title": "Subnational Region",
          "default": "default"
        },
        "taxable_portfolio_source": {
          "type": "string",
          "enum": [
            "domestic",
            "foreign"
          ],
          "title": "Taxable Portfolio Source",
          "default": "domestic"
        },
        "tax_regime_years_remaining": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Tax Regime Years Remaining"
        },
        "portfolio_dividend_qualified_pct": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Portfolio Dividend Qualified Pct"
        },
        "portfolio_gains_longterm_pct": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Portfolio Gains Longterm Pct"
        },
        "primary_residence_value": {
          "type": "number",
          "minimum": 0.0,
          "title": "Primary Residence Value"
        },
        "primary_residence_debt": {
          "type": "number",
          "minimum": 0.0,
          "title": "Primary Residence Debt"
        },
        "non_portfolio_property_value": {
          "type": "number",
          "minimum": 0.0,
          "title": "Non Portfolio Property Value"
        },
        "regime_eligibility_facts": {
          "type": "object",
          "title": "Regime Eligibility Facts"
        },
        "tax_profile_extended": {
          "additionalProperties": {
            "anyOf": [
              {
                "$ref": "#/$defs/ComponentSourceTagPayload"
              },
              {
                "type": "string"
              }
            ]
          },
          "type": "object",
          "title": "Tax Profile Extended"
        },
        "medicare_levy_applicable": {
          "type": "boolean",
          "title": "Medicare Levy Applicable"
        },
        "super_characterization": {
          "type": "string",
          "title": "Super Characterization"
        },
        "remittance_basis": {
          "type": "boolean",
          "title": "Remittance Basis"
        },
        "tax_profile_explicit_fields": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Tax Profile Explicit Fields"
        },
        "horizon": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Horizon",
          "default": 50
        },
        "n_scenarios": {
          "type": "integer",
          "minimum": 1.0,
          "title": "N Scenarios",
          "default": 10000
        },
        "inflation": {
          "type": "number",
          "title": "Inflation",
          "default": 0.02
        },
        "tail_profile": {
          "type": "string",
          "enum": [
            "none",
            "historical",
            "severe"
          ],
          "title": "Tail Profile",
          "description": "Shape of each asset's annual returns. 'historical' (default): skew and tail weight fitted to long US histories; 'none': plain log-normal; 'severe': the heaviest stock-market tail the 1871-2024 record cannot rule out. Expected returns and volatilities are unchanged by the choice.",
          "default": "historical"
        },
        "market_turbulence": {
          "type": "string",
          "enum": [
            "calmer",
            "historical",
            "rougher"
          ],
          "title": "Market Turbulence",
          "description": "How big each year's market ups and downs are. 'historical' (default): US stock volatility over 1871-2024; 'calmer': the calmest 30-year stretch on record (1871-1900); 'rougher': the roughest (1927-1956). Scales every asset's volatility; expected compound returns are unchanged.",
          "default": "historical"
        },
        "skewness_start": {
          "type": "number",
          "title": "Skewness Start",
          "description": "Deprecated and ignored; use tail_profile.",
          "default": -1.0
        },
        "skewness_factor": {
          "type": "number",
          "minimum": 0.0,
          "title": "Skewness Factor",
          "description": "Deprecated and ignored; use tail_profile.",
          "default": 1.4
        },
        "minimum_ending_balance": {
          "type": "number",
          "minimum": 0.0,
          "title": "Minimum Ending Balance",
          "default": 0.0
        },
        "primary_heir_country": {
          "type": "string",
          "title": "Primary Heir Country"
        },
        "retirement_year": {
          "type": "integer",
          "title": "Retirement Year"
        },
        "annual_savings": {
          "type": "number",
          "minimum": 0.0,
          "title": "Annual Savings"
        },
        "age": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Age"
        },
        "plan_to_age": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Plan To Age"
        },
        "person_b_retirement_year": {
          "type": "integer",
          "title": "Person B Retirement Year"
        },
        "person_b_age": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Person B Age"
        },
        "person_b_plan_to_age": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Person B Plan To Age"
        },
        "person_labels": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Person Labels"
        },
        "portfolio_preset": {
          "type": "string",
          "title": "Portfolio Preset"
        },
        "portfolio_allocation": {
          "items": {
            "type": "object"
          },
          "type": "array",
          "title": "Portfolio Allocation"
        },
        "glide_path": {
          "items": {
            "$ref": "#/$defs/GlidePathWaypointPayload"
          },
          "type": "array",
          "title": "Glide Path"
        },
        "rebalancing_mode": {
          "type": "string",
          "enum": [
            "annual",
            "threshold",
            "none"
          ],
          "title": "Rebalancing Mode",
          "default": "annual"
        },
        "rebalancing_threshold": {
          "type": "number",
          "title": "Rebalancing Threshold",
          "default": 0.05
        },
        "regime_aware": {
          "type": "boolean",
          "title": "Regime Aware",
          "default": false
        },
        "simulation_mode": {
          "type": "string",
          "enum": [
            "monte_carlo_regime",
            "monte_carlo_iid",
            "historical"
          ],
          "title": "Simulation Mode",
          "default": "monte_carlo_iid"
        },
        "withdrawal_strategy": {
          "type": "string",
          "title": "Withdrawal Strategy",
          "default": "fixed"
        },
        "withdrawal_strategy_params": {
          "type": "object",
          "title": "Withdrawal Strategy Params"
        },
        "return_assumption_preset": {
          "type": "string",
          "title": "Return Assumption Preset",
          "default": "historical"
        },
        "return_overrides": {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object",
          "title": "Return Overrides"
        },
        "aca_subsidies_enabled": {
          "type": "boolean",
          "title": "Aca Subsidies Enabled",
          "default": false
        },
        "household_size": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Household Size"
        },
        "aca_state": {
          "type": "string",
          "title": "Aca State"
        },
        "medicare_enabled": {
          "type": "boolean",
          "title": "Medicare Enabled",
          "default": false
        },
        "irmaa_enabled": {
          "type": "boolean",
          "title": "Irmaa Enabled",
          "default": false
        },
        "tax_loss_harvesting_enabled": {
          "type": "boolean",
          "title": "Tax Loss Harvesting Enabled",
          "default": false
        },
        "residency_schedule": {
          "items": {
            "type": "object"
          },
          "type": "array",
          "title": "Residency Schedule"
        },
        "relocation_events": {
          "items": {
            "$ref": "#/$defs/RelocationEventPayload"
          },
          "type": "array",
          "title": "Relocation Events"
        },
        "baseline_adjustments": {
          "items": {
            "$ref": "#/$defs/BaselineAdjustmentPayload"
          },
          "type": "array",
          "title": "Baseline Adjustments"
        },
        "roth_conversions": {
          "items": {
            "$ref": "#/$defs/RothConversionPayload"
          },
          "type": "array",
          "title": "Roth Conversions"
        },
        "article24_relief": {
          "$ref": "#/$defs/Article24ReliefFactsPayload"
        },
        "puma_csm": {
          "$ref": "#/$defs/PumaCsmAssumptionPayload"
        },
        "puma_household_adults": {
          "items": {
            "$ref": "#/$defs/PumaHouseholdAdultPayload"
          },
          "type": "array",
          "title": "Puma Household Adults"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "initial_year",
        "initial_net_worth",
        "baseline_annual_expenses",
        "additional_expenses",
        "additional_income",
        "country",
        "avg_return",
        "volatility",
        "approximate_yield_rate",
        "taxable_balance",
        "tax_deferred_balance",
        "tax_free_balance",
        "taxable_cost_basis"
      ],
      "title": "SimulationConfigPayload",
      "description": "Simulation payload with all money values represented in full currency units."
    },
    "SimulationExpensePayload": {
      "properties": {
        "description": {
          "type": "string",
          "title": "Description"
        },
        "cost": {
          "type": "number",
          "title": "Cost",
          "description": "Expense amount in full local currency units."
        },
        "begin_year": {
          "type": "integer",
          "title": "Begin Year",
          "description": "First year the expense applies (inclusive)."
        },
        "end_year": {
          "type": "integer",
          "title": "End Year",
          "description": "Last year the expense applies (inclusive). For a single-year expense, set begin_year == end_year. The API services layer converts to the engine's half-open ``[begin, end)`` interval."
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        },
        "seeded_from": {
          "type": "string",
          "title": "Seeded From",
          "description": "Marker identifying a helper that generated this row (e.g. 'healthcare_defaults'). Absent on user-authored rows."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "description",
        "cost",
        "begin_year",
        "end_year"
      ],
      "title": "SimulationExpensePayload"
    },
    "SimulationIncomePayload": {
      "properties": {
        "description": {
          "type": "string",
          "title": "Description"
        },
        "income": {
          "type": "number",
          "title": "Income",
          "description": "Income amount in full local currency units."
        },
        "begin_year": {
          "type": "integer",
          "title": "Begin Year",
          "description": "First year the income applies (inclusive)."
        },
        "end_year": {
          "type": "integer",
          "title": "End Year",
          "description": "Last year the income applies (inclusive). For a single-year income, set begin_year == end_year. The API services layer converts to the engine's half-open ``[begin, end)`` interval."
        },
        "type": {
          "type": "string",
          "enum": [
            "employment",
            "social_security",
            "public_pension",
            "private_pension",
            "rental",
            "other",
            "asset_sale"
          ],
          "title": "Type",
          "default": "other"
        },
        "source_country": {
          "type": "string",
          "title": "Source Country"
        },
        "claim_age": {
          "type": "integer",
          "title": "Claim Age"
        },
        "benefit_source": {
          "type": "string",
          "title": "Benefit Source"
        },
        "cost_basis": {
          "type": "number",
          "minimum": 0.0,
          "title": "Cost Basis"
        },
        "person": {
          "type": "string",
          "enum": [
            "A",
            "B"
          ],
          "title": "Person"
        },
        "item_id": {
          "type": "string",
          "format": "uuid",
          "title": "Item Id"
        },
        "ss_benefit_basis_mode": {
          "type": "string",
          "enum": [
            "fra_benefit",
            "ssa_estimate_at_age",
            "already_receiving"
          ],
          "title": "Ss Benefit Basis Mode"
        },
        "ss_monthly_benefit_basis": {
          "type": "number",
          "minimum": 0.0,
          "title": "Ss Monthly Benefit Basis"
        },
        "ss_benefit_basis_age": {
          "type": "integer",
          "maximum": 80.0,
          "minimum": 50.0,
          "title": "Ss Benefit Basis Age"
        },
        "ss_fra_age": {
          "type": "integer",
          "maximum": 70.0,
          "minimum": 60.0,
          "title": "Ss Fra Age"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "description",
        "income",
        "begin_year",
        "end_year"
      ],
      "title": "SimulationIncomePayload"
    }
  }
}