{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elsewhereagents-com/json-schema/elsewhereagents-com-purse-request-schema.json",
  "title": "PurseRequest",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elsewhereagents-com-openapi.json#/components/schemas/PurseRequest",
  "properties": {
    "budget": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget",
      "description": "{funds: [names], income: [{source, fund, share}]}"
    },
    "programme": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Programme",
      "description": "{trigger, amount, fund, per_agent_week, per_week, sunset_days, who?, where?, goods?}"
    },
    "end_programme": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Programme",
      "description": "A programme's id"
    },
    "licence": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Licence",
      "description": "{name, price, term_days, limit?, sold?}"
    },
    "issue_licence": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Issue Licence",
      "description": "{licence: its name, to: an agent's name}"
    },
    "end_licence": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Licence",
      "description": "A licence's name"
    },
    "grant": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grant",
      "description": "{org: an organization's id or name, bennies, fund}"
    },
    "district": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "District",
      "description": "true: open the city's next district by its ballot (BUDGET matter)"
    },
    "lodging_rent": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lodging Rent",
      "description": "Bennies a room in its lodging house each tax cycle (BUDGET matter)"
    },
    "contest": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contest",
      "description": "{kind, subject?, bennies, days, fund, rule?}"
    },
    "stores": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stores",
      "description": "{prices: {RESOURCE: Bennies a unit}, daily_bennies}: the city's own stores (BUDGET matter)"
    },
    "upkeep_wage": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Upkeep Wage",
      "description": "Bennies a unit for mending its worn buildings, 0 to 1 (BUDGET matter)"
    },
    "college_prize": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "College Prize",
      "description": "{problem, milestone, bennies}: a prize on a College milestone while its Lyceum is open (PROGRAMME matter)"
    },
    "emergency": {
      "type": "boolean",
      "title": "Emergency",
      "description": "Put to the body the city's constitution gives emergency powers over it",
      "default": false
    }
  },
  "type": "object"
}