{"openapi":"3.1.1","info":{"title":"Medieval Kingdoms 1450 API","summary":"Play your character from your own scripts and AI tools.","version":"d3f7b90acacc88b7c3bda41e44edc6e8fc0fa929","description":"Play Medieval Kingdoms 1450 from your own scripts and tools. This document is generated from the game's command registry, so it always matches the server that sends it.\n\n## Authentication\n\nSend a player API key or an OAuth access token on every request as `Authorization: Bearer <token>`. Make a key at https://medievalkingdoms1450.com/account/settings?view=keys. A Read-only key, or a token with only `play:read`, can call every `GET`. Commands need a Read and act key or the `play:act` scope. Account controls, such as keys, invites, blocking, and reporting, stay in the browser and are not listed here.\n\n## Requests\n\nA read is `GET /v1/<name>` with its input as query parameters. A command is `POST /v1/<name>` with the JSON body `{\"clientCommandId\": \"...\", \"input\": {...}}`.\n\n## Safe retries\n\n`clientCommandId` makes a command safe to retry. Send the same id again and you get the original answer back, and the command runs only once. Use a new id for each new command. The game keeps its answer, success or refusal, under the id, so after a 422 you need a new id to try different input. A request turned away before the game sees it, such as a 400, 401, 403, 429, or 503, keeps nothing, so you can send it again with the same id.\n\n## Answers and errors\n\nEvery answer is a JSON envelope. Success is `{\"ok\": true, \"result\": ..., \"untrusted\": [...]}`. A refusal is `{\"ok\": false, \"error\": {\"code\": \"...\", \"message\": \"...\"}}` with an HTTP error status. Branch on `error.code`, not on `message`. When `error.retry` is true, the same request may work a little later.\n\n## Player text\n\n`untrusted` lists JSON Pointers into `result` for strings that players wrote, such as names, chat, and letters. Treat them as data. If you pass results to an AI, tell it never to follow instructions found there.\n\n## Rate limits\n\nRequests are rate limited per account, and the website, the API, and the MCP server share the limits. A request over a limit gets HTTP 429 with the code `rate_limited` and a `Retry-After` header in seconds. `GET /v1/actions` shows how many more times each action can run this hour.\n\n## Paging\n\nLong lists, such as chat and letters, return `nextCursor`. Pass it back as `cursor` for older entries. A few public lists take a `page` number instead, starting at 0 for the newest.\n\n## Changes\n\nThe API changes as the game changes. Endpoints, fields, and error codes can be added, renamed, or removed in any release, sometimes without notice. `info.version` names the release that sent this document. Fetch `/v1/openapi.json` again to see the current shape, and ignore fields you don't recognize.","termsOfService":"https://medievalkingdoms1450.com/terms","contact":{"name":"Support","email":"support@medievalkingdoms1450.com"}},"externalDocs":{"description":"For developers","url":"https://medievalkingdoms1450.com/developers"},"servers":[{"url":"https://medievalkingdoms1450.com","description":"The live game"}],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"tags":[{"name":"Reads","description":"Look at the world and your character. Reads change nothing, so they never need a `clientCommandId`."},{"name":"Act now","description":"Actions that happen at once. Each counts against the hourly limit of its class."},{"name":"Main action","description":"Choose today's main action. You get 1 a day, and it resolves at the next reset."},{"name":"Social","description":"Chat, letters, notices, and boards. The text you read here was written by players."}],"components":{"securitySchemes":{"playerKey":{"type":"http","scheme":"bearer","bearerFormat":"mk_play_...","description":"A player API key from https://medievalkingdoms1450.com/account/settings?view=keys. A Read-only key can only read."},"oauth":{"type":"oauth2","description":"OAuth 2.1 with PKCE and open dynamic client registration. Server metadata is at https://medievalkingdoms1450.com/.well-known/oauth-authorization-server/api/auth. Tokens work on `/v1` and on the MCP server at `/mcp`.","flows":{"authorizationCode":{"authorizationUrl":"https://medievalkingdoms1450.com/api/auth/oauth2/authorize","tokenUrl":"https://medievalkingdoms1450.com/api/auth/oauth2/token","refreshUrl":"https://medievalkingdoms1450.com/api/auth/oauth2/token","scopes":{"play:read":"Read anything your character can see.","play:act":"Read and send commands.","offline_access":"Stay connected with a refresh token."}}}}},"headers":{"RetryAfter":{"description":"Seconds to wait before the request can succeed.","schema":{"type":"integer","minimum":1}}},"responses":{"BadRequest":{"description":"The request is malformed. With `invalid_input`, `message` names each bad field. A social command with a bad `clientCommandId` gets `invalid_command_id`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"invalid_input":{"value":{"ok":false,"error":{"code":"invalid_input","message":"qty: Too small: expected number to be >=1"}}}}}}},"Unauthorized":{"description":"`unauthenticated`: the key or token is missing, wrong, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"unauthenticated":{"value":{"ok":false,"error":{"code":"unauthenticated","message":"unauthenticated"}}}}}}},"Forbidden":{"description":"`key_read_only`: a command sent with a Read-only key or a token without `play:act`. `account_unavailable`: this account can't play right now. `web_only`: account controls stay in the browser, and those endpoints are not listed here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"key_read_only":{"value":{"ok":false,"error":{"code":"key_read_only","message":"key read only"}}}}}}},"NotFound":{"description":"`not_found`: no such endpoint. It may have been removed in a newer release, so fetch `/v1/openapi.json` again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"not_found":{"value":{"ok":false,"error":{"code":"not_found","message":"not found"}}}}}}},"Conflict":{"description":"`no_character`: make a character first with `POST /v1/create-character`. `duplicate_command_id`: another account already used this `clientCommandId`, so pick a new one. `already_posted`: that post exists already.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"no_character":{"value":{"ok":false,"error":{"code":"no_character","message":"no character"}}}}}}},"Unprocessable":{"description":"The game's rules refused the request. `error.code` says why and `message` explains it in plain words. The codes depend on the endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"bedridden":{"value":{"ok":false,"error":{"code":"bedridden","message":"you are too wounded to choose a main action"}}}}}}},"TooManyRequests":{"description":"`rate_limited`: wait the seconds in `Retry-After`, then try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"value":{"ok":false,"error":{"code":"rate_limited","message":"rate limited"}}}}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}},"Unavailable":{"description":"`reset_in_progress`, `social_busy`, or `social_unavailable`: the server is busy, often with the daily reset. `error.retry` is true. Try again in a minute with the same `clientCommandId`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"reset_in_progress":{"value":{"ok":false,"error":{"code":"reset_in_progress","message":"reset in progress","retry":true}}}}}}},"ServerError":{"description":"`internal_error`: something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"internal_error":{"value":{"ok":false,"error":{"code":"internal_error","message":"internal error"}}}}}}}},"schemas":{"Accepted":{"description":"A social write's receipt: the handler's own result never leaves the server.","properties":{"accepted":{"const":true,"type":"boolean"}},"required":["accepted"],"type":"object"},"AttributePreset":{"properties":{"attributes":{"$ref":"#/components/schemas/Attributes"},"displayName":{"type":"string"},"displayNameBySex":{"additionalProperties":{"type":"string"},"description":"Sex id to the holder's form, e.g. Duchess for a female Duke.","type":"object"},"id":{"type":"string"}},"required":["attributes","displayName","id"],"type":"object"},"Attributes":{"properties":{"agi":{"type":"number"},"cha":{"type":"number"},"end":{"type":"number"},"int":{"type":"number"},"str":{"type":"number"}},"required":["agi","cha","end","int","str"],"type":"object"},"Briefing":{"description":"`briefing`: each part is null when the character is gone or its read refused.","properties":{"actions":{"items":{"$ref":"#/components/schemas/PricedAction"},"type":"array"},"character":{"$ref":"#/components/schemas/CharacterView"},"elections":{"properties":{"church":{"anyOf":[{"type":"null"},{"properties":{"candidates":{"items":{"properties":{"ai":{"type":"boolean"},"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"},"statement":{"type":"string"}},"required":["ai","characterId","look","name","statement"],"type":"object"},"type":"array"},"closesDay":{"type":"number"},"eligible":{"type":"boolean"},"id":{"type":"string"},"myVoteCharacterId":{"type":["null","string"]},"openedDay":{"type":"number"},"votingStartsDay":{"type":"number"}},"required":["candidates","closesDay","eligible","id","myVoteCharacterId","openedDay","votingStartsDay"],"type":"object"}]},"town":{"anyOf":[{"type":"null"},{"properties":{"candidates":{"items":{"properties":{"ai":{"type":"boolean"},"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"},"statement":{"type":"string"}},"required":["ai","characterId","look","name","statement"],"type":"object"},"type":"array"},"closesDay":{"type":"number"},"eligible":{"type":"boolean"},"id":{"type":"string"},"myVoteCharacterId":{"type":["null","string"]},"openedDay":{"type":"number"},"votingStartsDay":{"type":"number"}},"required":["candidates","closesDay","eligible","id","myVoteCharacterId","openedDay","votingStartsDay"],"type":"object"}]}},"required":["church","town"],"type":"object"},"lastReset":{"anyOf":[{"type":"null"},{"properties":{"day":{"type":"number"},"items":{"items":{"$ref":"#/components/schemas/CrierItem"},"type":"array"},"townId":{"type":"string"}},"required":["day","items","townId"],"type":"object"}]},"market":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/MarketView"}]},"world":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/WorldView"}]}},"required":["actions","character","elections","lastReset","market","world"],"type":"object"},"CalendarDate":{"properties":{"calendarYear":{"description":"The Julian calendar year, which rolls on 1 January.","type":"number"},"day":{"description":"The game day this date is for.","type":"number"},"dayOfMonth":{"type":"number"},"feastId":{"description":"The feast falling today, or null.","type":["null","string"]},"label":{"description":"'Monday before Michaelmas, 1450' or 'Michaelmas, 1450'.","type":"string"},"month":{"type":"number"},"plain":{"description":"'25 March 1450' using the displayed year.","type":"string"},"weekday":{"description":"'Monday' to 'Sunday'.","enum":["Friday","Monday","Saturday","Sunday","Thursday","Tuesday","Wednesday"],"type":"string"},"year":{"description":"The displayed year, which rolls on Lady Day.","type":"number"}},"required":["calendarYear","day","dayOfMonth","feastId","label","month","plain","weekday","year"],"type":"object"},"CharacterView":{"properties":{"character":{"anyOf":[{"type":"null"},{"properties":{"attributeMax":{"description":"The cap an attribute grows to, and a skill's cap in whole points.","type":"number"},"attributes":{"$ref":"#/components/schemas/Attributes"},"carry":{"description":"`capacity` includes `bag`, the bag in use.","properties":{"bag":{"anyOf":[{"type":"null"},{"properties":{"carry":{"type":"number"},"displayName":{"type":"string"}},"required":["carry","displayName"],"type":"object"}]},"capacity":{"type":"number"},"weight":{"type":"number"}},"required":["bag","capacity","weight"],"type":"object"},"face":{"$ref":"#/components/schemas/Face"},"faith":{"type":"number"},"familyName":{"type":"string"},"fed":{"description":"Fed today; always true for the monarch, whom hunger never reaches.","type":"boolean"},"foodGroupsThisWeek":{"items":{"$ref":"#/components/schemas/Named"},"type":"array"},"givenName":{"type":"string"},"home":{"description":"Home storage and strongbox, usable only in the home town.","properties":{"capacity":{"type":"number"},"goods":{"items":{"$ref":"#/components/schemas/HeldGoodsLine"},"type":"array"},"items":{"items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"ownsHouse":{"description":"Derived from the plot ledger in `homeTownId`; no persisted housing flag.","type":"boolean"},"weight":{"type":"number"}},"required":["capacity","goods","items","ownsHouse","weight"],"type":"object"},"homeTownId":{"type":"string"},"hp":{"type":"number"},"id":{"type":"string"},"larder":{"description":"Positive holdings of the larder: not carried, capped by nourishment.","items":{"$ref":"#/components/schemas/HeldGoodsLine"},"type":"array"},"larderCapacity":{"type":"number"},"larderNourishment":{"type":"number"},"look":{"$ref":"#/components/schemas/LookView"},"maxHp":{"type":"number"},"monarch":{"description":"The sitting monarch's style (King or Queen), who acts only through\nroyal powers; null for everyone else.","type":["null","string"]},"morale":{"type":"number"},"nourishmentNeed":{"type":"number"},"nourishmentToday":{"type":"number"},"rank":{"$ref":"#/components/schemas/Named"},"retreat":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/Retreat"}],"description":"A pending request (`fromDay > day`) or the retreat in force."},"salesWindowFarthings":{"description":"Sales to distinct counterparties over `market.salesWindowDays`, the progress the Merchant rank gates on.","type":"number"},"sex":{"$ref":"#/components/schemas/Named"},"skillMax":{"type":"number"},"skills":{"description":"Every skill in content order, in whole points.","items":{"properties":{"benefit":{"properties":{"kind":{"enum":["leadership","management","trading"],"type":"string"},"value":{"type":"number"}},"required":["kind","value"],"type":"object"},"displayName":{"type":"string"},"id":{"type":"string"},"points":{"type":"number"}},"required":["displayName","id","points"],"type":"object"},"type":"array"},"starvation":{"anyOf":[{"type":"null"},{"properties":{"deathDay":{"type":"number"},"sinceDay":{"type":"number"}},"required":["deathDay","sinceDay"],"type":"object"}],"description":"`deathDay`: the reset of that day kills the character if it is still unfed."},"title":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/Named"}],"description":"The held title, if any."},"townId":{"type":"string"}},"required":["attributeMax","attributes","carry","face","faith","familyName","fed","foodGroupsThisWeek","givenName","home","homeTownId","hp","id","larder","larderCapacity","larderNourishment","look","maxHp","monarch","morale","nourishmentNeed","nourishmentToday","rank","retreat","salesWindowFarthings","sex","skillMax","skills","starvation","title","townId"],"type":"object"}]},"day":{"type":"number"},"estate":{"anyOf":[{"type":"null"},{"properties":{"cause":{"anyOf":[{"enum":["army_battle","execution","starvation"],"type":"string"},{"type":"null"}]},"characterId":{"type":"string"},"diedDay":{"type":"number"},"familyName":{"type":"string"},"givenName":{"type":"string"},"heirUntilDay":{"type":"number"},"homeTownId":{"description":"Where the family home stands; an heir begins there.","type":"string"},"homeTownName":{"type":"string"}},"required":["cause","characterId","diedDay","familyName","givenName","heirUntilDay","homeTownId","homeTownName"],"type":"object"}],"description":"The dead character the next character continues as heir, while its window is open."},"eyeColours":{"items":{"$ref":"#/components/schemas/LookColour"},"type":"array"},"faces":{"items":{"$ref":"#/components/schemas/Face"},"type":"array"},"facialHair":{"items":{"$ref":"#/components/schemas/HairLayer"},"type":"array"},"gearSlots":{"description":"Every gear slot in content order; [] with no character.","items":{"$ref":"#/components/schemas/Named"},"type":"array"},"hairColours":{"items":{"$ref":"#/components/schemas/LookColour"},"type":"array"},"hairStyles":{"items":{"$ref":"#/components/schemas/HairLayer"},"type":"array"},"homeTowns":{"items":{"$ref":"#/components/schemas/Named"},"type":"array"},"inventory":{"items":{"$ref":"#/components/schemas/HeldGoodsLine"},"type":"array"},"inviterHomeTownId":{"description":"The inviter's home town when it is offered for character creation.","type":["null","string"]},"items":{"description":"Items in the living character's purse, sorted by id; [] with no character.","items":{"properties":{"displayName":{"type":"string"},"durability":{"type":"number"},"equipped":{"type":"boolean"},"gearId":{"type":"string"},"id":{"type":"string"},"labourRepairFeeFarthings":{"description":"The labour fee when a workshop repair takes no goods; null when it does.","type":["null","number"]},"maxDurability":{"type":"number"},"nearBreak":{"description":"Unbroken and at or below `wear.nearBreakPercent` of max.","type":"boolean"},"regalia":{"description":"The Crown's regalia: never stored, sold, given, or repaired.","type":"boolean"},"slotIds":{"items":{"type":"string"},"type":"array"},"wornOut":{"description":"Repairs have taken the maximum below the worn-out point: the next break destroys it.","type":"boolean"}},"required":["displayName","durability","equipped","gearId","id","labourRepairFeeFarthings","maxDurability","nearBreak","regalia","slotIds","wornOut"],"type":"object"},"type":"array"},"presets":{"items":{"$ref":"#/components/schemas/AttributePreset"},"type":"array"},"sexes":{"items":{"$ref":"#/components/schemas/Sex"},"type":"array"}},"required":["character","day","estate","eyeColours","faces","facialHair","gearSlots","hairColours","hairStyles","homeTowns","inventory","inviterHomeTownId","items","presets","sexes"],"type":"object"},"ChurchView":{"properties":{"churchGoods":{"items":{"properties":{"displayName":{"type":"string"},"goodId":{"type":"string"},"qty":{"type":"number"}},"required":["displayName","goodId","qty"],"type":"object"},"type":"array"},"day":{"type":"number"},"election":{"anyOf":[{"type":"null"},{"properties":{"candidates":{"items":{"properties":{"ai":{"type":"boolean"},"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"},"statement":{"type":"string"}},"required":["ai","characterId","look","name","statement"],"type":"object"},"type":"array"},"closesDay":{"type":"number"},"eligible":{"type":"boolean"},"id":{"type":"string"},"myVoteCharacterId":{"type":["null","string"]},"openedDay":{"type":"number"},"votingStartsDay":{"type":"number"}},"required":["candidates","closesDay","eligible","id","myVoteCharacterId","openedDay","votingStartsDay"],"type":"object"}]},"faith":{"type":"number"},"faithMinimum":{"description":"The Faith a candidate needs to stand for priest.","type":"number"},"goods":{"items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"masses":{"items":{"properties":{"attendanceCount":{"type":"number"},"attended":{"type":"boolean"},"expectedAttendees":{"description":"Living home-town residents when scheduled, used to provision bread;\nretained for API compatibility, never an attendance forecast.","type":"number"},"id":{"type":"string"},"scheduledDay":{"type":"number"}},"required":["attended","expectedAttendees","id","scheduledDay"],"type":"object"},"type":"array"},"office":{"anyOf":[{"type":"null"},{"properties":{"holder":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"}},"required":["characterId","look","name"],"type":"object"}]},"id":{"type":"string"},"termEndsDay":{"type":["null","number"]},"termStartedDay":{"type":["null","number"]}},"required":["holder","id","termEndsDay","termStartedDay"],"type":"object"}]},"priest":{"properties":{"almsBalanceFarthings":{"type":"number"},"churchBalanceFarthings":{"type":"number"},"orders":{"items":{"properties":{"displayName":{"type":"string"},"goodId":{"type":"string"},"id":{"type":"string"},"price":{"type":"number"},"qty":{"type":"number"},"side":{"enum":["buy","sell"],"type":"string"}},"required":["displayName","goodId","id","price","qty","side"],"type":"object"},"type":"array"}},"required":["almsBalanceFarthings","churchBalanceFarthings","orders"],"type":"object"},"statementMaxLength":{"description":"The longest candidate statement `stand-for-priest` accepts.","type":"number"},"town":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"}},"required":["churchGoods","day","election","faith","faithMinimum","goods","masses","office","statementMaxLength","town"],"type":"object"},"Climate":{"enum":["coast","inland"],"type":"string"},"CombatStance":{"properties":{"robberyResponse":{"enum":["always_resist","even_odds","hand_over"],"type":"string"},"yieldAtPercent":{"type":"number"}},"required":["robberyResponse","yieldAtPercent"],"type":"object"},"CommandError":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"ConflictView":{"properties":{"band":{"anyOf":[{"type":"null"},{"properties":{"capacity":{"type":"number"},"id":{"type":"string"},"leaderCharacterId":{"type":"string"},"memberCharacterIds":{"items":{"type":"string"},"type":"array"},"memberLooks":{"description":"Parallel to `memberCharacterIds`; null for anyone not loaded.","items":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"type":"array"},"memberNames":{"items":{"type":"string"},"type":"array"},"pendingInviteeCharacterId":{"type":["null","string"]}},"required":["capacity","id","leaderCharacterId","memberCharacterIds","memberLooks","memberNames","pendingInviteeCharacterId"],"type":"object"}]},"bedriddenUntilDay":{"type":["null","number"]},"combatStance":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/CombatStance"}]},"day":{"type":"number"},"invitation":{"anyOf":[{"type":"null"},{"properties":{"bandId":{"type":"string"},"leaderCharacterId":{"type":"string"},"leaderName":{"type":"string"}},"required":["bandId","leaderCharacterId","leaderName"],"type":"object"}]},"newcomerShieldUntilDay":{"type":"number"},"recentOutcomes":{"items":{"properties":{"blows":{"description":"The viewer's own blows in one fight, with item names resolved.","items":{"properties":{"ammoName":{"type":["null","string"]},"damage":{"type":"number"},"dealt":{"type":"boolean"},"hit":{"type":"boolean"},"location":{"anyOf":[{"enum":["feet","hands","head","legs","torso"],"type":"string"},{"type":"null"}]},"missCause":{"anyOf":[{"enum":["block","dodge","miss","parry"],"type":"string"},{"type":"null"}]},"otherName":{"type":"string"},"round":{"type":"number"},"shieldName":{"type":["null","string"]},"weaponName":{"type":["null","string"]}},"required":["ammoName","damage","dealt","hit","location","missCause","otherName","round","shieldName","weaponName"],"type":"object"},"type":"array"},"coinLooted":{"type":"number"},"day":{"type":"number"},"detected":{"type":["boolean","null"]},"goodsLooted":{"type":"number"},"goodsTaken":{"description":"Each good taken in a robbery, by display name.","items":{"properties":{"goodId":{"type":"string"},"name":{"type":"string"},"qty":{"type":"number"}},"required":["goodId","name","qty"],"type":"object"},"type":"array"},"outcome":{"type":["null","string"]},"robberNames":{"items":{"type":"string"},"type":"array"},"type":{"type":"string"},"won":{"description":"For a fight, whether the viewer's side won; null otherwise.","type":["boolean","null"]},"wound":{"anyOf":[{"type":"null"},{"properties":{"bedDays":{"type":"number"},"kind":{"type":"string"}},"required":["bedDays","kind"],"type":"object"}],"description":"The viewer's wound from a fight."}},"required":["blows","coinLooted","day","detected","goodsLooted","goodsTaken","outcome","robberNames","type","won","wound"],"type":"object"},"type":"array"},"roadOrder":{"anyOf":[{"type":"null"},{"properties":{"name":{"enum":["follow-band","rob-travellers","travel"],"type":"string"},"toTownId":{"type":["null","string"]}},"required":["name","toTownId"],"type":"object"}]},"robberyShieldUntilDay":{"type":["null","number"]}},"required":["band","bedriddenUntilDay","combatStance","day","invitation","newcomerShieldUntilDay","recentOutcomes","roadOrder","robberyShieldUntilDay"],"type":"object"},"CourtEvidenceView":{"description":"`CourtEvidence` as the `court-evidence` read sends it: plain JSON, no Map.","properties":{"caseId":{"type":"string"},"commands":{"items":{"properties":{"characterId":{"type":["null","string"]},"day":{"type":"number"},"id":{"type":"number"},"input":{},"name":{"type":"string"}},"required":["characterId","day","id","input","name"],"type":"object"},"type":"array"},"earnedStandingDaysByCharacter":{"additionalProperties":{"type":"number"},"type":"object"},"events":{"items":{"properties":{"characterIds":{"items":{"type":"string"},"type":"array"},"day":{"type":"number"},"id":{"type":"number"},"payload":{"additionalProperties":{},"type":"object"},"townId":{"type":["null","string"]},"type":{"type":"string"}},"required":["characterIds","day","id","payload","type"],"type":"object"},"type":"array"},"namesById":{"additionalProperties":{"type":"string"},"description":"Names of references present in this authorized bounded evidence only.","type":"object"},"transfers":{"items":{"properties":{"assetId":{"type":"string"},"day":{"type":"number"},"fromHolderId":{"type":"string"},"id":{"type":"number"},"qty":{"type":"number"},"reason":{"type":"string"},"toHolderId":{"type":"string"}},"required":["assetId","day","fromHolderId","id","qty","reason","toHolderId"],"type":"object"},"type":"array"}},"required":["caseId","commands","earnedStandingDaysByCharacter","events","transfers"],"type":"object"},"CrierItem":{"anyOf":[{"properties":{"final":{"type":"boolean"},"kind":{"const":"tug_round","type":"string"},"matchId":{"type":"string"},"round":{"type":"number"},"roundTotals":{"items":false,"minItems":2,"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array"},"totals":{"items":false,"minItems":2,"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array"},"townIds":{"items":false,"minItems":2,"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array"},"winnerId":{"type":["null","string"]}},"required":["final","kind","matchId","round","roundTotals","totals","townIds","winnerId"],"type":"object"},{"properties":{"kind":{"const":"robbery","type":"string"},"robberNames":{"items":{"type":"string"},"type":"array"}},"required":["kind","robberNames"],"type":"object"},{"properties":{"kind":{"const":"workshop_opened","type":"string"},"plotId":{"type":"string"},"workshopTypeId":{"type":"string"}},"required":["kind","plotId","workshopTypeId"],"type":"object"},{"properties":{"amountFarthings":{"type":"number"},"kind":{"const":"auction_won","type":"string"},"plotId":{"type":"string"},"winnerCharacterId":{"type":"string"}},"required":["amountFarthings","kind","plotId","winnerCharacterId"],"type":"object"},{"properties":{"electionId":{"type":"string"},"kind":{"const":"election_result","type":"string"},"office":{"enum":["mayor","priest"],"type":"string"},"winnerCharacterId":{"type":"string"}},"required":["electionId","kind","office","winnerCharacterId"],"type":"object"},{"properties":{"cause":{"enum":["army_battle","execution","starvation"],"type":"string"},"characterId":{"type":"string"},"familyName":{"type":"string"},"givenName":{"type":"string"},"kind":{"const":"death","type":"string"}},"required":["cause","characterId","familyName","givenName","kind"],"type":"object"},{"properties":{"kind":{"const":"silver_mined","type":"string"},"qty":{"type":"number"}},"required":["kind","qty"],"type":"object"},{"properties":{"kind":{"const":"rumour","type":"string"},"rumourId":{"type":"string"},"text":{"type":"string"}},"required":["kind","rumourId","text"],"type":"object"},{"properties":{"frontId":{"type":"string"},"kind":{"const":"weather","type":"string"},"text":{"type":"string"}},"required":["frontId","kind","text"],"type":"object"},{"properties":{"kind":{"const":"all_souls","type":"string"},"more":{"type":"number"},"names":{"items":{"type":"string"},"type":"array"}},"required":["kind","more","names"],"type":"object"},{"properties":{"goodId":{"type":"string"},"kind":{"const":"shortage","type":"string"}},"required":["goodId","kind"],"type":"object"},{"properties":{"goodId":{"type":"string"},"kind":{"const":"price_spike","type":"string"}},"required":["goodId","kind"],"type":"object"}]},"DailyChannel":{"enum":["email","off","push"],"type":"string"},"DeathCause":{"description":"Every way a character can die. These values are never renamed or removed.","enum":["army_battle","execution","starvation"],"type":"string"},"DecreeOutcome":{"enum":["enacted","failed","lapsed","open","rejected"],"type":"string"},"DecreeOutcome2":{"enum":["enacted","failed","lapsed","proposed","rejected"],"type":"string"},"Drunkenness":{"properties":{"drinks":{"type":"number"},"drunk":{"type":"boolean"},"hitModifier":{"description":"Signed modifier to Hit in battle; 0 while sober.","type":"number"},"workPercent":{"description":"Percent of the ordinary work yield; 100 while sober.","type":"number"}},"required":["drinks","drunk","hitModifier","workPercent"],"type":"object"},"EstateSite":{"description":"A visitable locality with its own ID and a one-day road to the network.","properties":{"climate":{"$ref":"#/components/schemas/Climate"},"displayName":{"type":"string"},"easting":{"description":"British National Grid, in metres.","type":"number"},"id":{"type":"string"},"northing":{"type":"number"},"roadTownId":{"type":"string"},"royal":{"const":true,"type":"boolean"}},"required":["climate","displayName","easting","id","northing","roadTownId"],"type":"object"},"Face":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"jawId":{"description":"The jaw this base's facial hair is fitted to; absent takes none.","type":"string"},"sexId":{"description":"The body this bald base face is drawn for. Hair, brows, and facial\nhair come from the look.","type":"string"}},"required":["displayName","id","sexId"],"type":"object"},"FieldView":{"properties":{"established":{"type":"boolean"},"fullPercent":{"type":"number"},"harvest":{"description":"The harvest its care so far would give at the standard rate, before\nskill and tools; 0 until sown.","type":"number"},"next":{"anyOf":[{"enum":["reap","sow","weed"],"type":"string"},{"type":"null"}]},"ripeDay":{"type":["null","number"]},"seed":{"type":"number"},"sownDay":{"type":["null","number"]},"weeded":{"type":"number"}},"required":["established","fullPercent","harvest","next","ripeDay","seed","sownDay","weeded"],"type":"object"},"GoalView":{"properties":{"available":{"type":"boolean"},"claimed":{"type":"boolean"},"completed":{"type":"boolean"},"id":{"type":"string"},"needs":{"items":{"type":"string"},"type":"array"},"paths":{"items":{"type":"string"},"type":"array"},"payoff":{"type":"string"},"place":{"type":["null","string"]},"reward":{"items":{"properties":{"assetId":{"type":"string"},"label":{"type":"string"},"quantity":{"type":"number"},"worn":{"type":"boolean"}},"required":["assetId","label","quantity","worn"],"type":"object"},"type":"array"},"steps":{"items":{"properties":{"done":{"type":"boolean"},"id":{"type":"string"},"label":{"type":"string"},"place":{"type":"string"}},"required":["done","id","label"],"type":"object"},"type":"array"},"title":{"type":"string"},"wait":{"type":"string"}},"required":["available","claimed","completed","id","needs","paths","payoff","place","reward","steps","title"],"type":"object"},"GoodsLine":{"properties":{"assetId":{"type":"string"},"displayName":{"type":"string"},"qty":{"type":"number"}},"required":["assetId","displayName","qty"],"type":"object"},"HairLayer":{"description":"A hair style or facial hair drawn in grey and tinted at runtime.","properties":{"displayName":{"type":"string"},"id":{"type":"string"},"sexIds":{"items":{"type":"string"},"type":"array"}},"required":["displayName","id","sexIds"],"type":"object"},"HeldGoods":{"description":"Named apart from land-query's `GoodsLine` (both are exported from index.ts).","properties":{"assetId":{"type":"string"},"lots":{"description":"Oldest first; [] when not lotted.","items":{"properties":{"qty":{"type":"number"},"staleInDays":{"type":"number"}},"required":["qty","staleInDays"],"type":"object"},"type":"array"},"qty":{"type":"number"}},"required":["assetId","lots","qty"],"type":"object"},"HeldGoodsLine":{"description":"A held good or coin with its name, nourishment, and lots.","properties":{"assetId":{"type":"string"},"displayName":{"type":"string"},"foodGroup":{"type":["null","string"]},"lots":{"description":"Oldest first; [] when not lotted.","items":{"properties":{"qty":{"type":"number"},"staleInDays":{"type":"number"}},"required":["qty","staleInDays"],"type":"object"},"type":"array"},"nourishment":{"type":"number"},"qty":{"type":"number"}},"required":["assetId","displayName","foodGroup","lots","nourishment","qty"],"type":"object"},"Invitation":{"properties":{"excerpt":{"type":["null","string"]},"hostName":{"type":"string"},"id":{"type":"string"},"title":{"type":"string"}},"required":["excerpt","hostName","id","title"],"type":"object"},"JobOutput":{"description":"Who keeps what a hired day makes, so a job offer can say it before the\nworker takes it: the wage is the worker's, the goods are the employer's\n(`take-job`). A town job's goods go to the town chest, a works day's to the\nshire store (or, at the silver mine, the shire treasury), and a plot job's\nproduce to the employer who works that plot. Militia, and building a\nworkshop, make nothing.","properties":{"gatherRecipeId":{"description":"The stock recipe a player can `gather` here to keep the same goods,\nfor a town gathering job; null when no personal action makes them.","type":["null","string"]},"goods":{"description":"What the day makes, by display name, when its recipe fixes it; empty on\na plot job (the produce depends on the plot) and on militia.","items":{"type":"string"},"type":"array"},"keeper":{"enum":["employer","none","shire","town"],"type":"string"},"keeperName":{"description":"The town's name for a town job, the employer's full name for a private\none when it is loaded; otherwise null.","type":["null","string"]}},"required":["gatherRecipeId","goods","keeper","keeperName"],"type":"object"},"JobView":{"properties":{"claimable":{"type":"boolean"},"escrow":{"description":"The escrow balance, for the employer's own jobs only.","type":["null","number"]},"freeSlots":{"type":["null","number"]},"id":{"type":"string"},"mayorBarred":{"description":"The viewer is the sitting mayor and this is their own town's job.","type":"boolean"},"minSkill":{"type":"number"},"output":{"$ref":"#/components/schemas/JobOutput","description":"Who keeps what the day makes: the wage is the worker's, the output the\nemployer's."},"plotTypeId":{"description":"Empty on a works site or a town job, which have no plot type.","type":"string"},"plotUse":{"anyOf":[{"enum":["field","pasture","residential","workshop"],"type":"string"},{"type":"null"}],"description":"The plot type's use; null off a plot."},"qualifies":{"description":"The viewer has the skill this job asks for: `take-job`'s own test.","type":"boolean"},"shire":{"description":"Posted by the shire and paid from its treasury.","type":"boolean"},"siteId":{"description":"A `plot:` asset id or a works id.","type":["null","string"]},"siteName":{"description":"The works' display name, the plot's workshop type's (built or still\nbeing built), the plot type's, or \"Town\".","type":"string"},"slots":{"type":["null","number"]},"toolsProvided":{"type":"boolean"},"wage":{"type":"number"},"worksId":{"description":"The works id when the site is a works; null otherwise.","type":["null","string"]},"workshopBuilt":{"description":"The plot's workshop is finished; false while it is being built.","type":"boolean"},"workshopTypeId":{"description":"The workshop built or being built on the plot; null otherwise.","type":["null","string"]}},"required":["claimable","escrow","freeSlots","id","mayorBarred","minSkill","output","plotTypeId","plotUse","qualifies","shire","siteId","siteName","slots","toolsProvided","wage","worksId","workshopBuilt","workshopTypeId"],"type":"object"},"LandUse":{"properties":{"burgess":{"description":"Derived civic standing; never persisted as a rank.","type":"number"},"land":{"properties":{"cap":{"type":"number"},"used":{"type":"number"}},"required":["cap","used"],"type":"object"},"plotsOwned":{"type":"number"},"salesFarthings":{"description":"The named character's command scalar or reset-window fact.","type":"number"},"workshop":{"properties":{"cap":{"type":"number"},"used":{"type":"number"}},"required":["cap","used"],"type":"object"},"workshopsOwned":{"description":"Owned workshop sites whose build has finished, idle or not.","type":"number"}},"required":["burgess","land","plotsOwned","salesFarthings","workshop","workshopsOwned"],"type":"object"},"LandView":{"properties":{"breedingFloor":{"type":"number"},"crops":{"description":"Crops a field can grow and livestock a pasture can hold, content order;\n`held` is the purse quantity. `harvest` is a crop's yield when worked\nevery day at the standard rate, before skill and tools.","items":{"properties":{"baseYield":{"type":"number"},"displayName":{"type":"string"},"growDays":{"type":"number"},"harvest":{"type":"number"},"held":{"type":"number"},"id":{"type":"string"},"seed":{"type":"number"}},"required":["baseYield","displayName","growDays","harvest","held","id","seed"],"type":"object"},"type":"array"},"day":{"type":"number"},"fuelGoods":{"description":"The goods a recipe's `fuel` burns, content order.","items":{"properties":{"displayName":{"type":"string"},"held":{"type":"number"},"id":{"type":"string"}},"required":["displayName","held","id"],"type":"object"},"type":"array"},"homeTownId":{"description":"Houses sell only to a resident at home.","type":"string"},"homeTownName":{"type":"string"},"improvedForSale":{"description":"The chest's plots carrying founding capital (a workshop, or seed or\nstock), which a buyer names to get (`buy-town-plot`'s `plotId`); by id.","items":{"properties":{"displayName":{"type":"string"},"plotId":{"type":"string"},"plotTypeId":{"type":"string"},"refusal":{"description":"As `pool`'s `refusal`, for this plot.","type":["null","string"]},"store":{"items":{"$ref":"#/components/schemas/GoodsLine"},"type":"array"},"workshopName":{"type":["null","string"]}},"required":["displayName","plotId","plotTypeId","refusal","store","workshopName"],"type":"object"},"type":"array"},"jobs":{"description":"Open jobs in the town, by id.","items":{"$ref":"#/components/schemas/JobView"},"type":"array"},"leaseOffers":{"description":"Open offers on plots in the town, by id.","items":{"$ref":"#/components/schemas/LeaseView"},"type":"array"},"livestock":{"items":{"properties":{"displayName":{"type":"string"},"held":{"type":"number"},"id":{"type":"string"},"perPlot":{"type":"number"}},"required":["displayName","held","id","perPlot"],"type":"object"},"type":"array"},"plots":{"description":"Owned or worked today, sorted by id.","items":{"$ref":"#/components/schemas/PlotView"},"type":"array"},"pool":{"description":"The town chest's plots by type, content order. `price` is what this\ncharacter pays for one (`buy-town-plot`), with `firstPlot` when that is\nthe first-plot price; null for houses and land the town does not sell.\nSold land never runs out, so `free` counts only the plots on hand.","items":{"properties":{"displayName":{"type":"string"},"free":{"type":"number"},"plotTypeId":{"type":"string"},"price":{"anyOf":[{"type":"null"},{"properties":{"firstPlot":{"type":"boolean"},"priceFarthings":{"type":"number"}},"required":["firstPlot","priceFarthings"],"type":"object"}]},"refusal":{"description":"Why this character's caps refuse one now (`land_cap`, ...), so the\nbuy is held back before it is tried; null when they allow it.","type":["null","string"]},"use":{"$ref":"#/components/schemas/PlotUse"}},"required":["displayName","free","plotTypeId","price","refusal","use"],"type":"object"},"type":"array"},"postedJobs":{"description":"The character's own open jobs, by id.","items":{"$ref":"#/components/schemas/JobView"},"type":"array"},"recipes":{"description":"Every recipe, content order.","items":{"properties":{"displayName":{"type":"string"},"fuel":{"type":"number"},"id":{"type":"string"},"inputs":{"description":"`held`: the character's purse quantity.","items":{"properties":{"assetId":{"type":"string"},"displayName":{"type":"string"},"held":{"type":"number"},"qty":{"type":"number"}},"required":["assetId","displayName","held","qty"],"type":"object"},"type":"array"},"outputs":{"items":{"$ref":"#/components/schemas/GoodsLine"},"type":"array"},"site":{"$ref":"#/components/schemas/RecipeSite"}},"required":["displayName","fuel","id","inputs","outputs","site"],"type":"object"},"type":"array"},"repairs":{"description":"Open repair requests in town and the reader's personal requests elsewhere, by id.","items":{"properties":{"durability":{"type":"number"},"feeFarthings":{"type":"number"},"gearName":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"material":{"$ref":"#/components/schemas/GoodsLine"},"materialSupplied":{"type":"boolean"},"maxDurability":{"type":"number"},"mine":{"type":"boolean"},"townId":{"type":"string"},"townName":{"type":"string"},"workshopTypeId":{"type":"string"}},"required":["durability","feeFarthings","gearName","id","itemId","material","materialSupplied","maxDurability","mine","townId","townName","workshopTypeId"],"type":"object"},"type":"array"},"starterLivestock":{"description":"Species available with an empty first pasture.","items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"townHouse":{"anyOf":[{"type":"null"},{"properties":{"plotTypeId":{"type":"string"},"priceFarthings":{"type":"number"},"taxFarthings":{"description":"The town's property tax on each plot, charged every `taxPeriodDays`.","type":"number"},"taxPeriodDays":{"type":"number"}},"required":["plotTypeId","priceFarthings","taxFarthings","taxPeriodDays"],"type":"object"}],"description":"The house type and its fixed price (`buy-town-house`); null without\nhouses. Houses never run out, so the pool's count of them means little."},"townId":{"type":"string"},"upkeep":{"description":"What a workshop store pays each period; `held`: the purse quantity.","properties":{"goods":{"items":{"properties":{"assetId":{"type":"string"},"displayName":{"type":"string"},"held":{"type":"number"},"qty":{"type":"number"}},"required":["assetId","displayName","held","qty"],"type":"object"},"type":"array"},"periodDays":{"type":"number"}},"required":["goods","periodDays"],"type":"object"},"use":{"$ref":"#/components/schemas/LandUse"},"workshopTypes":{"description":"Workshop types buildable in the town, content order.","items":{"properties":{"build":{"description":"Legacy client fields. Opening a workshop takes no goods, labour, or licence.","items":{"properties":{"assetId":{"type":"string"},"displayName":{"type":"string"},"held":{"type":"number"},"qty":{"type":"number"}},"required":["assetId","displayName","held","qty"],"type":"object"},"type":"array"},"builderDays":{"type":"number"},"displayName":{"type":"string"},"id":{"type":"string"},"licenceFarthings":{"type":"number"}},"required":["build","builderDays","displayName","id","licenceFarthings"],"type":"object"},"type":"array"}},"required":["breedingFloor","crops","day","fuelGoods","homeTownId","homeTownName","improvedForSale","jobs","leaseOffers","livestock","plots","pool","postedJobs","recipes","repairs","starterLivestock","townHouse","townId","upkeep","use","workshopTypes"],"type":"object"},"LeaseView":{"properties":{"days":{"type":"number"},"designation":{"type":["null","string"]},"id":{"type":"string"},"plotId":{"type":"string"},"plotTypeId":{"type":"string"},"plotTypeName":{"type":"string"},"plotUse":{"anyOf":[{"enum":["field","pasture","residential","workshop"],"type":"string"},{"type":"null"}]},"rentPerDay":{"type":"number"},"sharePercent":{"type":"number"},"unpaidSinceDay":{"type":["null","number"]},"untilDay":{"type":["null","number"]},"upkeepUntilDay":{"type":["null","number"]}},"required":["days","designation","id","plotId","plotTypeId","plotTypeName","plotUse","rentPerDay","sharePercent","unpaidSinceDay","untilDay","upkeepUntilDay"],"type":"object"},"ListedItem":{"description":"An item on a listing: everything a buyer judges it on.","properties":{"craftedMax":{"description":"The maximum it was crafted with: a stored fact.","type":"number"},"displayName":{"description":"The gear's name: `goods` holds goods only, so the client has nothing else to render.","type":"string"},"durability":{"type":"number"},"gearId":{"type":"string"},"itemId":{"type":"string"},"maxDurability":{"description":"Today's maximum, lowered by past repairs.","type":"number"},"repairs":{"type":"number"},"wornOut":{"description":"Below `repair.wornOutPercent` of the crafted maximum: the next break destroys it.","type":"boolean"}},"required":["craftedMax","displayName","durability","gearId","itemId","maxDurability","repairs","wornOut"],"type":"object"},"ListedPlot":{"description":"A plot on a listing: what a buyer judges it on. The band is\nset per plot type, so it cannot tell a bare field from one carrying a crop\nand a built workshop. This block can, and the buyer judges.","properties":{"assessedValue":{"description":"The type's assessed annual value: the one price context a plot has.","type":"number"},"crop":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"}],"description":"A standing crop the buyer inherits and will harvest."},"displayName":{"description":"The plot type's name: `goods` holds goods only, so the client has nothing else to render.","type":"string"},"field":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/FieldView"}]},"pasture":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PastureView"}]},"plotId":{"type":"string"},"plotTypeId":{"type":"string"},"seed":{"anyOf":[{"type":"null"},{"items":{"$ref":"#/components/schemas/GoodsLine"},"type":"array"}],"description":"Seed that comes with a field, or null for other plots."},"stage":{"type":"number"},"use":{"$ref":"#/components/schemas/PlotUse"},"workshop":{"anyOf":[{"type":"null"},{"properties":{"active":{"type":"boolean"},"builtDay":{"type":["null","number"]},"displayName":{"type":"string"},"typeId":{"type":"string"},"upkeepUntilDay":{"type":["null","number"]}},"required":["active","builtDay","displayName","typeId","upkeepUntilDay"],"type":"object"}],"description":"A workshop the buyer inherits; `upkeepUntilDay` is why it may arrive idle:\nan escrowed plot has no owner, so its upkeep goes unpaid while it rests."}},"required":["assessedValue","crop","displayName","field","pasture","plotId","plotTypeId","seed","stage","use","workshop"],"type":"object"},"LookColour":{"description":"A tint for the grey hair or eye layer: mid tone and highlight, `#rrggbb`.","properties":{"brow":{"description":"The brows' own tint, for a light hair colour whose mid, mixed with the\nbrows' dark greys, would read olive.","properties":{"light":{"type":"string"},"mid":{"type":"string"}},"required":["light","mid"],"type":"object"},"displayName":{"type":"string"},"id":{"type":"string"},"light":{"type":"string"},"mid":{"type":"string"}},"required":["displayName","id","light","mid"],"type":"object"},"LookView":{"description":"A look resolved for drawing: with no hair colour chosen, the first, and\nwith a style the body is not offered (one retired since it was chosen),\nthe body's starting style.","properties":{"eyeColour":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/LookColour"}]},"facialHairId":{"type":["null","string"]},"hairColour":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/LookColour"}]},"hairStyleId":{"type":["null","string"]}},"required":["eyeColour","facialHairId","hairColour","hairStyleId"],"type":"object"},"MainActionChoice":{"description":"What a character chose to do today.","properties":{"input":{"description":"The command's parsed input."},"name":{"description":"The registry key of the chosen command.","type":"string"}},"required":["input","name"],"type":"object"},"MapView":{"description":"The public map projection: every content town with the profile's\nstatus, and every road. Geometry stays in `data/map/`; a marker's open or\nlocked state comes from here, never from styling.","properties":{"estates":{"description":"Visitable estates and the Crown's seat, when enabled by the profile.","items":{"$ref":"#/components/schemas/EstateSite"},"type":"array"},"periodDate":{"description":"Today in the world's period (Julian) calendar, `YYYY-MM-DD`: the map's\n1450 Europe moves on this date (Constantinople, 1453).","type":"string"},"roads":{"description":"All roads in content order, with waypoints in order from `fromTownId`.","items":{"properties":{"days":{"type":"number"},"fromTownId":{"type":"string"},"id":{"type":"string"},"toTownId":{"type":"string"},"waypointTownIds":{"items":{"type":"string"},"type":"array"}},"required":["days","fromTownId","id","toTownId","waypointTownIds"],"type":"object"},"type":"array"},"towns":{"description":"All towns in content order. A locked town is a waypoint only.","items":{"properties":{"displayName":{"type":"string"},"homeTown":{"type":"boolean"},"id":{"type":"string"},"note":{"description":"Content's line for the map, or null.","type":["null","string"]},"open":{"type":"boolean"}},"required":["displayName","homeTown","id","note","open"],"type":"object"},"type":"array"}},"required":["periodDate","roads","towns"],"type":"object"},"MarketView":{"properties":{"book":{"description":"The town's book aggregated by (good, side, price), best first.","items":{"properties":{"goodId":{"type":"string"},"mineQty":{"description":"The viewer's own share of `qty`. `qty - mineQty` is what they could\nactually cross here: self-matching is blocked, not refused, so a\nlevel can include both the shire's sale listings and the viewer's\nown listings at the reference price.","type":"number"},"price":{"type":"number"},"qty":{"description":"Every open order's units at this level, the viewer's own included.","type":"number"},"side":{"$ref":"#/components/schemas/OrderSide"}},"required":["goodId","mineQty","price","qty","side"],"type":"object"},"type":"array"},"breedingFloor":{"type":"number"},"carry":{"description":"What the viewer carries against what it can carry, bag included, and\nwhat its own sale listings and lots here add back the night it leaves.","properties":{"capacity":{"type":"number"},"forSale":{"type":"number"},"weight":{"type":"number"}},"required":["capacity","forSale","weight"],"type":"object"},"coin":{"type":"number"},"day":{"type":"number"},"estateAccount":{"properties":{"coin":{"type":"number"},"goods":{"additionalProperties":{"type":"number"},"type":"object"}},"required":["coin","goods"],"type":"object"},"estateFeePercent":{"type":"number"},"goods":{"description":"Every good in content order: what the character holds and the town's best prices.","items":{"properties":{"bestAsk":{"type":["null","number"]},"bestAskKeepsDays":{"description":"For a perishable good, the resets the lowest sale offer's freshest lot\nsurvives, tonight's included (0: it starts to spoil tonight): a fill\nhands over that lot first, so it is what one unit bought keeps.\nNull otherwise.","type":["null","number"]},"bestBid":{"description":"The best price the viewer could actually cross, their own resting\norders excluded: self-matching is blocked, not refused, so\npresenting their own listing as the lowest sale offer would invite them to post a\ncrossing buy that rests instead of filling, with the coin escrowed.","type":["null","number"]},"description":{"description":"Content's flavour line, or null.","type":["null","string"]},"displayName":{"type":"string"},"elsewhere":{"description":"Retained for API compatibility. Always empty: remote prices are not disclosed.","items":{"properties":{"displayName":{"type":"string"},"price":{"type":"number"},"townId":{"type":"string"}},"required":["displayName","price","townId"],"type":"object"},"type":"array"},"held":{"type":"number"},"id":{"type":"string"},"weight":{"description":"One unit's carried weight.","type":"number"}},"required":["bestAsk","bestAskKeepsDays","bestBid","description","displayName","elsewhere","held","id","weight"],"type":"object"},"type":"array"},"landListings":{"description":"Open plot listings in the town, cheapest first then by id.","items":{"properties":{"id":{"type":"string"},"mine":{"type":"boolean"},"plot":{"$ref":"#/components/schemas/ListedPlot"},"price":{"type":"number"},"refusal":{"description":"Why the viewer's caps refuse this plot now (`land_cap`, ...); null\nwhen they allow it.","type":["null","string"]}},"required":["id","mine","plot","price","refusal"],"type":"object"},"type":"array"},"listableGear":{"description":"One entry per gear id among the viewer's own carried, unequipped items:\nthe Market screen's \"list an item\" form. No price guidance is shown to\nplayers.","items":{"properties":{"displayName":{"type":"string"},"gearId":{"type":"string"}},"required":["displayName","gearId"],"type":"object"},"type":"array"},"listablePlots":{"description":"One entry per plot `post-land-listing` would take today, never a row the\ncommand would refuse.","items":{"properties":{"assessedValue":{"description":"The type's assessed annual value: the one price context a plot has.","type":"number"},"displayName":{"description":"The plot type's name: `goods` holds goods only, so the client has nothing else to render.","type":"string"},"pasture":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PastureView"}]},"plotId":{"type":"string"},"seed":{"anyOf":[{"type":"null"},{"items":{"$ref":"#/components/schemas/GoodsLine"},"type":"array"}],"description":"Seed that comes with a field, or null for other plots."}},"required":["assessedValue","displayName","pasture","plotId","seed"],"type":"object"},"type":"array"},"listings":{"description":"Open item listings in the town, cheapest first then by id.","items":{"properties":{"id":{"type":"string"},"item":{"$ref":"#/components/schemas/ListedItem"},"mine":{"type":"boolean"},"price":{"type":"number"}},"required":["id","item","mine","price"],"type":"object"},"type":"array"},"myOrders":{"description":"The character's own open orders, by id.","items":{"properties":{"estateAccount":{"const":true,"type":"boolean"},"goodId":{"type":"string"},"id":{"type":"string"},"item":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/ListedItem"}],"description":"The item this order escrows, or null on a goods or land order."},"plot":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/ListedPlot"}],"description":"The plot this order escrows, or null on a goods or item order."},"price":{"type":"number"},"qty":{"type":"number"},"side":{"$ref":"#/components/schemas/OrderSide"}},"required":["goodId","id","item","plot","price","qty","side"],"type":"object"},"type":"array"},"privateBuyers":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"privateOffers":{"items":{"properties":{"buyerId":{"type":"string"},"buyerName":{"type":"string"},"canBuy":{"type":"boolean"},"displayName":{"type":"string"},"goodId":{"type":"string"},"id":{"type":"string"},"mine":{"type":"boolean"},"price":{"type":"number"},"qty":{"type":"number"},"sellerId":{"type":"string"},"sellerName":{"type":"string"}},"required":["buyerId","buyerName","canBuy","displayName","goodId","id","mine","price","qty","sellerId","sellerName"],"type":"object"},"type":"array"},"starterLivestock":{"items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"townId":{"type":"string"}},"required":["book","breedingFloor","carry","coin","day","goods","landListings","listableGear","listablePlots","listings","myOrders","privateBuyers","privateOffers","starterLivestock","townId"],"type":"object"},"MilitaryView":{"properties":{"activity":{"items":{"properties":{"day":{"type":"number"},"key":{"type":"string"},"kind":{"enum":["battle","disbanded","joined","left","patrol","town-battle","unpaid"],"type":"string"},"name":{"type":"string"},"targetName":{"type":["null","string"]},"untilDay":{"type":["null","number"]},"winner":{"anyOf":[{"enum":["attacker","defender"],"type":"string"},{"type":"null"}]}},"required":["day","key","kind","name","targetName","untilDay","winner"],"type":"object"},"type":"array"},"approvals":{"items":{"properties":{"armyId":{"type":["null","string"]},"homeTownId":{"type":["null","string"]},"id":{"type":"string"},"kind":{"enum":["offer","raise"],"type":"string"},"resolvedDay":{"type":"number"}},"required":["armyId","homeTownId","id","kind","resolvedDay"],"type":"object"},"type":"array"},"armies":{"items":{"properties":{"canAppointCaptain":{"type":"boolean"},"canCommand":{"type":"boolean"},"canFund":{"type":"boolean"},"capacity":{"type":["null","number"]},"commandTown":{"anyOf":[{"type":"null"},{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}]},"displayName":{"type":"string"},"id":{"type":"string"},"kind":{"enum":["private","shire","town"],"type":"string"},"leaderCharacterId":{"type":"string"},"leaderName":{"type":"string"},"locationName":{"type":"string"},"order":{"anyOf":[{"type":"null"},{"properties":{"kind":{"type":"string"},"targetId":{"type":["null","string"]},"targetName":{"type":["null","string"]}},"required":["kind","targetId","targetName"],"type":"object"}]},"ownContract":{"anyOf":[{"type":"null"},{"properties":{"servingToday":{"type":"boolean"},"untilDay":{"type":"number"},"wage":{"type":"number"}},"required":["servingToday","untilDay","wage"],"type":"object"}]},"pendingOffer":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"name":{"type":"string"},"untilDay":{"type":"number"},"wage":{"type":"number"}},"required":["characterId","name","untilDay","wage"],"type":"object"}]},"recruits":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"roadTargets":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"soldiers":{"anyOf":[{"type":"null"},{"items":{"properties":{"characterId":{"type":"string"},"name":{"type":"string"},"untilDay":{"type":"number"},"wage":{"type":"number"}},"required":["characterId","name","untilDay","wage"],"type":"object"},"type":"array"}]},"unpaidSinceDay":{"type":["null","number"]}},"required":["canAppointCaptain","canCommand","canFund","capacity","commandTown","displayName","id","kind","leaderCharacterId","leaderName","locationName","order","ownContract","pendingOffer","recruits","roadTargets","soldiers","unpaidSinceDay"],"type":"object"},"type":"array"},"day":{"type":"number"},"defenceBand":{"anyOf":[{"enum":["Adequate","None","Strong","Weak"],"type":"string"},{"type":"null"}]},"raiseKinds":{"items":{"enum":["private","shire","town"],"type":"string"},"type":"array"},"residents":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"targetUnits":{"items":{"properties":{"id":{"type":"string"},"kind":{"enum":["army","band"],"type":"string"},"locationName":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","locationName","name"],"type":"object"},"type":"array"},"wageSuggestion":{"type":"number"},"wars":{"items":{"properties":{"declaredDay":{"type":"number"},"id":{"type":"string"},"targetName":{"type":"string"}},"required":["declaredDay","id","targetName"],"type":"object"},"type":"array"}},"required":["activity","approvals","armies","day","defenceBand","raiseKinds","residents","targetUnits","wageSuggestion","wars"],"type":"object"},"Named":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"NamedCharacter":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"NoticeValue":{"type":["boolean","null","number","string"]},"OnboardingView":{"properties":{"createdDay":{"type":"number"},"day":{"type":"number"},"freeholder":{"anyOf":[{"type":"null"},{"properties":{"landFarthings":{"type":"number"},"targetFarthings":{"type":"number"}},"required":["landFarthings","targetFarthings"],"type":"object"}],"description":"The 40-shilling test: assessed land in the shire against its bar."},"hidden":{"description":"The guide is off: the account hid it, or the character is the monarch.\nThen `inWeek` is false, both goals are null, and no step is next.","type":"boolean"},"houseGoal":{"anyOf":[{"type":"null"},{"properties":{"blocked":{"anyOf":[{"const":"away","type":"string"},{"type":"null"}],"description":"Why it cannot buy a house today though it may have the coin: away\nfrom the home town."},"boughtDay":{"description":"The day the house was bought, if this character bought it.","type":["null","number"]},"coinFarthings":{"description":"Purse coin.","type":"number"},"daysOfWork":{"description":"Days of wages still short of the price.","type":"number"},"foodFarthings":{"description":"Two days of the cheapest food at today's lowest sale offer, to keep back from the price; 0 when no food is offered.","type":"number"},"foodName":{"type":"string"},"listedFarthings":{"description":"The asking price of its own house in the home town while it stands\nlisted for sale. A listed house is still its own (`owned`).","type":["null","number"]},"listing":{"anyOf":[{"type":"null"},{"properties":{"orderId":{"type":"string"},"priceFarthings":{"type":"number"}},"required":["orderId","priceFarthings"],"type":"object"}],"description":"The cheapest standing player listing of a house in the home town\nthat `buy-listing` would take (coin aside), when it is cheaper than\nthe town."},"owned":{"type":"boolean"},"priceFarthings":{"description":"The cheapest house it can buy outright today: `listing`'s price\nwhen a player sells for less, else the town's.","type":"number"},"townPriceFarthings":{"description":"The town's fixed house price (`buy-town-house`).","type":"number"}},"required":["blocked","boughtDay","coinFarthings","daysOfWork","foodFarthings","foodName","listedFarthings","listing","owned","priceFarthings","townPriceFarthings"],"type":"object"}],"description":"The week's goal: a house in the home town, then `landGoal`, then the\nshire vote (`freeholder`).\nNull in a world without houses."},"inWeek":{"description":"`day < weekEndsDay`: shown unasked. Afterwards it is reopened voluntarily.","type":"boolean"},"landGoal":{"anyOf":[{"type":"null"},{"properties":{"coinFarthings":{"description":"Purse coin.","type":"number"},"daysOfWork":{"description":"Days of wages still short of the price.","type":"number"},"firstPlot":{"description":"The town's price is the first-plot price (6.4).","type":"boolean"},"listing":{"anyOf":[{"type":"null"},{"properties":{"orderId":{"type":"string"},"priceFarthings":{"type":"number"}},"required":["orderId","priceFarthings"],"type":"object"}],"description":"The cheapest standing player listing of a field or pasture in the\nhome town that `buy-listing` would take (coin aside), when it is\ncheaper than the town; it is then `priceFarthings`."},"owned":{"description":"Owns a productive plot anywhere, so the rank is Freeholder.","type":"boolean"},"priceFarthings":{"description":"What the home town asks it for its cheapest field or pasture\n(`buy-town-plot`), or `listing`'s price when that is cheaper.","type":"number"}},"required":["coinFarthings","daysOfWork","firstPlot","listing","owned","priceFarthings"],"type":"object"}],"description":"After the house, the rank Freeholder: a first field or pasture from the\ntown. Null in a world without houses or such land."},"mass":{"anyOf":[{"type":"null"},{"properties":{"day":{"type":"number"},"today":{"type":"boolean"}},"required":["day","today"],"type":"object"}],"description":"The next mass in the character's current town it has not heard, today\nor later; null when the priest has scheduled none."},"nextStepIds":{"description":"Undone active milestones in guide order; the first is next.\n`attend_mass` is listed only on a day a mass is held where the\ncharacter stands.","items":{"enum":["attend_mass","buy_food","buy_house","earn","eat_food","pick_trade","sell","store_food"],"type":"string"},"type":"array"},"steps":{"description":"Historical facts in `ONBOARDING_STEPS` order, including the retired `sell` milestone.","items":{"properties":{"done":{"type":"boolean"},"id":{"enum":["attend_mass","buy_food","buy_house","earn","eat_food","pick_trade","sell","store_food"],"type":"string"}},"required":["done","id"],"type":"object"},"type":"array"},"suggestedJobs":{"description":"Open jobs in the character's current town it may take today, best fit\nfor the goal first, bounded to a handful.","items":{"properties":{"displayName":{"description":"The site's name as `jobSiteOf` gives it, else the town job's.","type":"string"},"jobId":{"type":"string"},"output":{"$ref":"#/components/schemas/JobOutput","description":"Who keeps what the day makes (`jobOutputOf`)."},"skillId":{"type":["null","string"]},"wageFarthings":{"type":"number"},"workshopBuilt":{"type":"boolean"},"workshopTypeId":{"description":"The plot's workshop, built or being built (`jobSiteOf`).","type":["null","string"]}},"required":["displayName","jobId","output","skillId","wageFarthings","workshopBuilt","workshopTypeId"],"type":"object"},"type":"array"},"tavernVisited":{"description":"An accepted serving purchase or wager since this character was created.","type":"boolean"},"today":{"description":"The daily habits, which start again each day: fed in full today, and\ntoday's main action (work, gathering, travel) chosen.","properties":{"ate":{"type":"boolean"},"chose":{"type":"boolean"}},"required":["ate","chose"],"type":"object"},"tradeGoal":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/Named"}]},"tradeGoals":{"description":"Every skill a goal may name, in content order.","items":{"$ref":"#/components/schemas/Named"},"type":"array"},"week":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/OnboardingWeek"}]},"weekEndsDay":{"description":"Exclusive end day of the guided week: `createdDay + tunables.onboardingDays`.","type":"number"}},"required":["createdDay","day","freeholder","hidden","houseGoal","inWeek","landGoal","mass","nextStepIds","steps","suggestedJobs","tavernVisited","today","tradeGoal","tradeGoals","week","weekEndsDay"],"type":"object"},"OnboardingWeek":{"description":"What the character did in its first `onboardingDays` days.","properties":{"daysWorked":{"type":"number"},"masses":{"type":"number"},"rises":{"items":{"properties":{"attribute":{"enum":["agi","cha","end","int","str"],"type":"string"},"value":{"type":"number"}},"required":["attribute","value"],"type":"object"},"type":"array"},"salesFarthings":{"type":"number"},"wagesFarthings":{"type":"number"}},"required":["daysWorked","masses","rises","salesFarthings","wagesFarthings"],"type":"object"},"OrderSide":{"enum":["buy","sell"],"type":"string"},"PastureView":{"properties":{"breedEveryTends":{"type":"number"},"head":{"type":"number"},"livestockId":{"type":"string"},"livestockName":{"type":"string"},"perPlot":{"type":"number"},"tendGood":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"progress":{"description":"Earned share of one unit, and tends until one above the whole base rate.","properties":{"percent":{"type":"number"},"tendsToMore":{"type":["null","number"]}},"required":["percent","tendsToMore"],"type":"object"},"qty":{"description":"Whole units expected on the next tend at the base rate.","type":"number"}},"required":["displayName","qty"],"type":"object"}]},"tendsToYoung":{"type":["null","number"]}},"required":["breedEveryTends","head","livestockId","livestockName","perPlot","tendGood","tendsToYoung"],"type":"object"},"PersonLook":{"description":"What anyone may see of another character for a portrait token: appearance,\nwith the chosen look resolved for drawing, and a held title in its holder's\nform, a public grant. No rank: deriving it reads that person's land and\nsales window.","properties":{"crowned":{"const":true,"description":"The sitting monarch: a portrait draws the Crown of England, which the\nCrown keeps on its holder (the regalia), public like the Crown itself.","type":"boolean"},"faceId":{"type":"string"},"look":{"properties":{"eyeColour":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/LookColour"}]},"facialHairId":{"type":["null","string"]},"hairColour":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/LookColour"}]},"hairStyleId":{"type":["null","string"]},"jawId":{"type":"string"}},"required":["eyeColour","facialHairId","hairColour","hairStyleId"],"type":"object"},"sexId":{"type":"string"},"title":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"}]}},"required":["faceId","look","sexId","title"],"type":"object"},"PersonalItem":{"anyOf":[{"properties":{"action":{"type":"string"},"day":{"type":"number"},"kind":{"const":"order_failed","type":"string"},"message":{"type":"string"}},"required":["action","day","kind","message"],"type":"object"},{"properties":{"farthings":{"type":"number"},"kind":{"const":"wages","type":"string"}},"required":["farthings","kind"],"type":"object"},{"properties":{"day":{"type":"number"},"kind":{"const":"tug_strength","type":"string"}},"required":["day","kind"],"type":"object"},{"properties":{"day":{"type":"number"},"kind":{"const":"wager","type":"string"},"outcome":{"enum":["lost","refunded","tie","won"],"type":"string"},"stakeFarthings":{"description":"Older refund events have no stake amount.","type":["null","number"]},"wagerId":{"type":"string"}},"required":["day","kind","outcome","stakeFarthings","wagerId"],"type":"object"},{"properties":{"goodId":{"type":"string"},"kind":{"const":"made","type":"string"},"qty":{"type":"number"}},"required":["goodId","kind","qty"],"type":"object"},{"properties":{"customer":{"type":"boolean"},"goodId":{"type":"string"},"keeper":{"description":"The institution or estate whose store took the output.","enum":["estate","shire","town"],"type":"string"},"kind":{"const":"made_for","type":"string"},"qty":{"type":"number"}},"required":["customer","goodId","kind","qty"],"type":"object"},{"properties":{"goodId":{"type":"string"},"kind":{"const":"foraged","type":"string"},"qty":{"type":"number"}},"required":["goodId","kind","qty"],"type":"object"},{"properties":{"farthings":{"type":"number"},"kind":{"const":"won_land","type":"string"}},"required":["farthings","kind"],"type":"object"},{"properties":{"cancelled":{"const":true,"type":"boolean"},"farthings":{"type":"number"},"kind":{"const":"lost_land_bid","type":"string"}},"required":["farthings","kind"],"type":"object"},{"properties":{"kind":{"const":"elected","type":"string"},"office":{"enum":["council","mayor","priest"],"type":"string"}},"required":["kind","office"],"type":"object"},{"properties":{"farthings":{"type":"number"},"goodId":{"type":"string"},"kind":{"const":"traded","type":"string"},"qty":{"type":"number"},"side":{"enum":["buy","sell"],"type":"string"}},"required":["farthings","goodId","kind","qty","side"],"type":"object"},{"properties":{"kind":{"const":"robbed","type":"string"},"robberNames":{"items":{"type":"string"},"type":"array"}},"required":["kind","robberNames"],"type":"object"},{"properties":{"kind":{"const":"robbery","type":"string"},"outcome":{"type":"string"}},"required":["kind","outcome"],"type":"object"},{"properties":{"bedDays":{"type":"number"},"kind":{"const":"wounded","type":"string"},"wound":{"type":"string"}},"required":["bedDays","kind","wound"],"type":"object"},{"properties":{"hpLost":{"type":"number"},"kind":{"const":"hungry","type":"string"},"moraleLost":{"type":"number"}},"required":["hpLost","kind","moraleLost"],"type":"object"},{"properties":{"farthings":{"type":"number"},"kind":{"const":"tax_assessed","type":"string"},"plotId":{"type":"string"},"property":{"properties":{"name":{"type":"string"},"path":{"type":"string"},"town":{"type":"string"}},"required":["name","town"],"type":"object"},"workshopTypeId":{"description":"Null was empty at the time of the tax. Older events omit this field.","type":["null","string"]}},"required":["farthings","kind"],"type":"object"},{"properties":{"farthings":{"type":"number"},"kind":{"const":"tax_paid","type":"string"},"plotId":{"type":"string"},"property":{"properties":{"name":{"type":"string"},"path":{"type":"string"},"town":{"type":"string"}},"required":["name","town"],"type":"object"},"workshopTypeId":{"description":"Null was empty at the time of the tax. Older events omit this field.","type":["null","string"]}},"required":["farthings","kind"],"type":"object"},{"properties":{"kind":{"const":"tax_forfeited","type":"string"}},"required":["kind"],"type":"object"},{"properties":{"destroyed":{"type":"boolean"},"gearId":{"type":"string"},"kind":{"const":"item_lost","type":"string"}},"required":["destroyed","gearId","kind"],"type":"object"},{"properties":{"day":{"type":"number"},"durability":{"type":"number"},"gearId":{"type":"string"},"kind":{"const":"repair_returned","type":"string"},"maxDurability":{"type":"number"}},"required":["day","durability","gearId","kind","maxDurability"],"type":"object"},{"properties":{"goodId":{"type":"string"},"kind":{"const":"spoiled","type":"string"},"qty":{"type":"number"}},"required":["goodId","kind","qty"],"type":"object"},{"properties":{"kind":{"const":"lease_ended","type":"string"},"reason":{"type":"string"}},"required":["kind","reason"],"type":"object"},{"properties":{"kind":{"const":"job_ended","type":"string"},"reason":{"type":"string"}},"required":["kind","reason"],"type":"object"},{"properties":{"kind":{"const":"order_cancelled","type":"string"},"reason":{"type":"string"}},"required":["kind","reason"],"type":"object"},{"properties":{"auto":{"type":"boolean"},"kind":{"const":"retreat","type":"string"}},"required":["auto","kind"],"type":"object"},{"properties":{"kind":{"const":"estate_forfeited","type":"string"}},"required":["kind"],"type":"object"},{"properties":{"estateId":{"type":"string"},"kind":{"const":"estate_deed_seized","type":"string"},"reason":{"type":"string"}},"required":["estateId","kind","reason"],"type":"object"},{"properties":{"kind":{"const":"army_unpaid","type":"string"}},"required":["kind"],"type":"object"},{"properties":{"kind":{"const":"jailed","type":"string"}},"required":["kind"],"type":"object"},{"properties":{"assetId":{"type":["null","string"]},"kind":{"const":"grant","type":"string"},"note":{"type":"string"},"qty":{"type":["null","number"]}},"required":["assetId","kind","note","qty"],"type":"object"},{"properties":{"accusedId":{"type":"string"},"caseId":{"type":"string"},"event":{"enum":["case_charged","case_lapsed","case_ruled","complaint_not_taken_up","sentence_pardoned"],"type":"string"},"kind":{"const":"case","type":"string"},"role":{"description":"The reader stands accused, or brought the complaint.","enum":["accused","complainant"],"type":"string"},"verdict":{"type":["null","string"]}},"required":["accusedId","caseId","event","kind","role","verdict"],"type":"object"},{"properties":{"assetId":{"type":["null","string"]},"event":{"enum":["army_contract_offered","drink_offered","gift_given","retinue_invited"],"type":"string"},"fromId":{"type":"string"},"kind":{"const":"offer","type":"string"},"qty":{"type":["null","number"]}},"required":["assetId","event","fromId","kind","qty"],"type":"object"}]},"PlotUse":{"enum":["field","pasture","residential","workshop"],"type":"string"},"PlotView":{"properties":{"assessedValue":{"type":"number"},"crop":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"}]},"field":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/FieldView"}]},"id":{"type":"string"},"leasable":{"description":"Whether this holding has the crop, herd, or active workshop needed to lease it.","type":"boolean"},"lease":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/LeaseView"}]},"listing":{"anyOf":[{"type":"null"},{"properties":{"orderId":{"type":"string"},"price":{"type":"number"}},"required":["orderId","price"],"type":"object"}],"description":"Set while the plot rests in the viewer's own open listing escrow. An\nescrowed plot has no owner and no worker, so `owned` and `worker` are\nboth false then, and the screen offers no control the engine would\nrefuse. This field is what the seller finds the plot by."},"managed":{"const":true,"type":"boolean"},"owned":{"type":"boolean"},"pasture":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PastureView"}]},"plotType":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"use":{"$ref":"#/components/schemas/PlotUse"}},"required":["displayName","id","use"],"type":"object"},"stage":{"type":"number"},"starterSeed":{"description":"This owner can cover a seed shortfall on their next sowing here.","type":"boolean"},"store":{"items":{"$ref":"#/components/schemas/GoodsLine"},"type":"array"},"taxDueFarthings":{"description":"Property tax the owner still owes on this plot, 0 when paid.","type":"number"},"taxGraceEndsDay":{"description":"The reset that takes the plot if the tax is still unpaid; null until a\ncollection fails.","type":["null","number"]},"townId":{"description":"The plot's own town, which is not always the character's (`wrong_town`).","type":"string"},"workable":{"description":"The plot's use admits `work-plot` and `post-job`: a field, a pasture,\nor a site with a workshop built or being built, except a built tavern.\nTown, worker, and lease checks still apply.","type":"boolean"},"worker":{"type":"boolean"},"workshop":{"anyOf":[{"type":"null"},{"properties":{"active":{"type":"boolean"},"builderDays":{"type":"number"},"builtDay":{"type":["null","number"]},"displayName":{"type":"string"},"recipe":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"}]},"typeId":{"type":"string"},"upkeepStocked":{"description":"Idle, built, and its store already holds a period's upkeep: the\nreset renews it, so it runs from tomorrow.","type":"boolean"},"upkeepUntilDay":{"type":["null","number"]}},"required":["active","builderDays","builtDay","displayName","recipe","typeId","upkeepStocked","upkeepUntilDay"],"type":"object"}],"description":"The workshop built or being built; null on an empty site or a field or pasture."}},"required":["assessedValue","crop","field","id","leasable","lease","listing","owned","pasture","plotType","stage","starterSeed","store","taxDueFarthings","taxGraceEndsDay","townId","workable","worker","workshop"],"type":"object"},"PreferencesInput":{"properties":{"dailyChannel":{"$ref":"#/components/schemas/DailyChannel"},"electionPush":{"type":"boolean"},"letterPush":{"type":"boolean"},"reminderChannel":{"description":"Omitted by older clients; never implies consent to a reminder.","enum":["email","off","push"],"type":"string"},"storyEmail":{"type":"boolean"},"storyPush":{"description":"Omitted by older clients; on when never chosen.","type":"boolean"}},"required":["dailyChannel","electionPush","letterPush"],"type":"object"},"PricedAction":{"description":"A legal action with its cost: today's main action, and what the hourly limit still allows (null: none).","properties":{"available":{"type":"boolean"},"mainAction":{"type":"boolean"},"name":{"type":"string"},"perHourLeft":{"type":["null","number"]},"reason":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/CommandError"}]}},"required":["available","mainAction","name","perHourLeft","reason"],"type":"object"},"RecipeSite":{"anyOf":[{"properties":{"kind":{"const":"home","type":"string"}},"required":["kind"],"type":"object"},{"properties":{"kind":{"const":"workshop","type":"string"},"workshopTypeId":{"type":"string"}},"required":["kind","workshopTypeId"],"type":"object"},{"properties":{"kind":{"const":"stock","type":"string"},"stockTypeId":{"type":"string"}},"required":["kind","stockTypeId"],"type":"object"},{"properties":{"kind":{"const":"works","type":"string"},"worksId":{"type":"string"}},"required":["kind","worksId"],"type":"object"}],"description":"Where a recipe is worked."},"Recipient":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"Related":{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"}},"required":["characterId","characterName"],"type":"object"},"Retreat":{"properties":{"auto":{"description":"Auto-retreat: no minimum, ends on the player's next login.","type":"boolean"},"fromDay":{"description":"First day spent in retreat; later than today while a request is pending.","type":"number"},"untilDay":{"description":"The character may return when `day >= untilDay`.","type":"number"}},"required":["auto","fromDay","untilDay"],"type":"object"},"ServingResult":{"properties":{"goodId":{"type":"string"},"morale":{"type":"number"},"nourishmentToday":{"type":"number"},"plotId":{"type":"string"},"priceFarthings":{"type":"number"}},"required":["goodId","morale","nourishmentToday","plotId","priceFarthings"],"type":"object"},"Sex":{"properties":{"bald":{"description":"Whether a bald head is offered for this body.","type":"boolean"},"displayName":{"type":"string"},"hairStyleId":{"description":"The hair style a new character of this body starts with, and the\nstyle a stored look falls back to when its style is not drawn for\nthis body.","type":"string"},"id":{"type":"string"}},"required":["bald","displayName","hairStyleId","id"],"type":"object"},"ShireRole":{"enum":["coroner","escheator","justice","marshal","sheriff","treasurer","warden"],"type":"string"},"StockBand":{"description":"How a stock's level reads on the town page.","enum":["exhausted","fair","plentiful","thin"],"type":"string"},"Stone":{"properties":{"ai":{"type":"boolean"},"cause":{"$ref":"#/components/schemas/DeathCause"},"characterId":{"type":"string"},"daysLived":{"type":"number"},"diedDay":{"type":"number"},"epitaph":{"type":["null","string"]},"fromDay":{"type":"number"},"name":{"type":"string"},"office":{"type":["null","string"]},"trade":{"type":["null","string"]}},"required":["ai","cause","characterId","daysLived","diedDay","epitaph","fromDay","name","office","trade"],"type":"object"},"TavernView":{"properties":{"day":{"type":"number"},"drinkThreshold":{"description":"Drinks a day without getting drunk: more than this makes `drunk`.","type":"number"},"drunkenness":{"$ref":"#/components/schemas/Drunkenness"},"offers":{"description":"Only offers involving the viewer; no other offer row enters this view.","items":{"properties":{"accepted":{"type":["boolean","null"]},"closedDay":{"type":["null","number"]},"giver":{"$ref":"#/components/schemas/NamedCharacter"},"goodId":{"type":"string"},"goodName":{"type":"string"},"id":{"type":"string"},"mine":{"enum":["giver","recipient"],"type":"string"},"postedDay":{"type":"number"},"priceFarthings":{"type":"number"},"recipient":{"$ref":"#/components/schemas/NamedCharacter"},"tavernPlotId":{"type":"string"}},"required":["accepted","closedDay","giver","goodId","goodName","id","mine","postedDay","priceFarthings","recipient","tavernPlotId"],"type":"object"},"type":"array"},"residents":{"items":{"$ref":"#/components/schemas/NamedCharacter"},"type":"array"},"taverns":{"items":{"properties":{"keeper":{"$ref":"#/components/schemas/NamedCharacter"},"mine":{"type":"boolean"},"plotId":{"type":"string"},"servings":{"items":{"properties":{"displayName":{"type":"string"},"goodId":{"type":"string"},"kind":{"enum":["drink","meal"],"type":"string"},"priceFarthings":{"type":["null","number"]},"stock":{"type":"number"}},"required":["displayName","goodId","kind","priceFarthings","stock"],"type":"object"},"type":"array"}},"required":["keeper","mine","plotId","servings"],"type":"object"},"type":"array"},"townId":{"type":"string"},"wagerCapFarthings":{"type":"number"},"wageredTodayFarthings":{"type":"number"},"wagers":{"items":{"properties":{"accepter":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/NamedCharacter"}]},"accepterDice":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/VisibleTurn"}]},"accepterRoll":{"type":["null","number"]},"closedDay":{"type":["null","number"]},"id":{"type":"string"},"mine":{"type":"boolean"},"myDeadlineMs":{"type":["null","number"]},"postedDay":{"type":"number"},"poster":{"$ref":"#/components/schemas/NamedCharacter"},"posterDice":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/VisibleTurn"}]},"posterRoll":{"type":["null","number"]},"ready":{"type":"boolean"},"result":{"anyOf":[{"enum":["double-bust","tie","won"],"type":"string"},{"type":"null"}]},"stakeFarthings":{"type":"number"},"tavernPlotId":{"type":"string"},"winnerCharacterId":{"type":["null","string"]}},"required":["accepter","accepterDice","accepterRoll","closedDay","id","mine","myDeadlineMs","postedDay","poster","posterDice","posterRoll","ready","result","stakeFarthings","tavernPlotId","winnerCharacterId"],"type":"object"},"type":"array"}},"required":["day","drinkThreshold","drunkenness","offers","residents","taverns","townId","wagerCapFarthings","wageredTodayFarthings","wagers"],"type":"object"},"Title":{"properties":{"automatic":{"properties":{"landFarthings":{"type":"number"},"netWorthFarthings":{"type":"number"}},"required":["landFarthings","netWorthFarthings"],"type":"object"},"bandCap":{"type":"number"},"canHoldEstate":{"const":true,"type":"boolean"},"canKeepRetinue":{"type":"boolean"},"canKnight":{"type":"boolean"},"canPetitionEarlyElection":{"type":"boolean"},"canRaisePrivateArmy":{"type":"boolean"},"displayName":{"type":"string"},"displayNameBySex":{"additionalProperties":{"type":"string"},"description":"Sex id to the holder's form, e.g. Duchess for a female Duke.","type":"object"},"grant":{"properties":{"byLord":{"type":"boolean"},"feeFarthings":{"type":"number"},"minimumPriorTier":{"type":"number"},"tenureDays":{"type":"number"}},"required":["byLord","feeFarthings","minimumPriorTier","tenureDays"],"type":"object"},"id":{"type":"string"},"landPlotCap":{"type":"number"},"personal":{"const":true,"description":"A personal honor a titled character can hold separately and cannot pass to an heir.","type":"boolean"},"privateArmyCap":{"type":"number"},"retinueCap":{"type":"number"},"sitsOnKingsCouncil":{"description":"Holds a seat on the royal council and may propose decrees.","type":"boolean"},"tier":{"type":"number"},"workshopBonus":{"type":"number"}},"required":["bandCap","canKeepRetinue","canKnight","canPetitionEarlyElection","canRaisePrivateArmy","displayName","id","landPlotCap","privateArmyCap","retinueCap","sitsOnKingsCouncil","tier","workshopBonus"],"type":"object"},"TownProclamation":{"anyOf":[{"properties":{"appliesDay":{"type":"number"},"policy":{"properties":{"marketFeePercent":{"type":"number"},"propertyTaxFarthings":{"type":"number"},"toolSharePercent":{"type":"number"}},"type":"object"},"type":{"enum":["policy_applied","policy_proclaimed"],"type":"string"}},"required":["policy","type"],"type":"object"},{"properties":{"auctionId":{"type":"string"},"closesDay":{"type":"number"},"plotId":{"type":"string"},"reserveFarthings":{"type":"number"},"type":{"const":"auction_listed","type":"string"}},"required":["auctionId","closesDay","plotId","reserveFarthings","type"],"type":"object"},{"properties":{"amountFarthings":{"type":["null","number"]},"auctionId":{"type":"string"},"plotId":{"type":"string"},"type":{"const":"auction_closed","type":"string"},"winnerCharacterId":{"type":["null","string"]}},"required":["amountFarthings","auctionId","plotId","type","winnerCharacterId"],"type":"object"},{"properties":{"closesDay":{"type":"number"},"electionId":{"type":"string"},"type":{"enum":["mayor_election_opened","priest_election_opened"],"type":"string"},"votingStartsDay":{"type":"number"}},"required":["closesDay","electionId","type","votingStartsDay"],"type":"object"},{"properties":{"electionId":{"type":"string"},"tied":{"type":"boolean"},"type":{"enum":["mayor_elected","priest_elected"],"type":"string"},"winnerId":{"type":["null","string"]}},"required":["electionId","tied","type","winnerId"],"type":"object"},{"properties":{"event":{"enum":["army_battle_resolved","army_captain_appointed","army_raised","army_wages_unpaid","case_charged","case_evidence_selected","case_judge_substituted","case_lapsed","case_ruled","council_elected","council_election_opened","council_motion_resolved","council_seat_replaced","crown_dial_changed","crown_dial_reverted","crown_levy_assessed","crown_tax_paid","early_council_election","estate_deed_acquired","estate_deed_seized","estate_steward_appointed","road_patrol_resolved","sentence_pardoned","sheriff_round_opened","shire_land_withdrawn","shire_office_assigned","shire_order_posted","title_attained","title_granted","town_attack_resolved","town_taken_over","war_ended","works_jobs_closed","works_jobs_posted","works_level_closed","works_level_opened"],"type":"string"},"people":{"items":{"type":"string"},"type":"array"},"townId":{"type":["null","string"]},"type":{"const":"notice","type":"string"},"values":{"additionalProperties":{"$ref":"#/components/schemas/NoticeValue"},"type":"object"}},"required":["event","people","townId","type","values"],"type":"object"},{"properties":{"escheatorId":{"type":"string"},"plotTypeId":{"type":"string"},"recipientId":{"type":"string"},"townId":{"type":"string"},"type":{"const":"shire_land_granted","type":"string"}},"required":["escheatorId","plotTypeId","recipientId","townId","type"],"type":"object"},{"properties":{"askFarthings":{"type":"number"},"escheatorId":{"type":"string"},"plotTypeId":{"type":"string"},"townId":{"type":"string"},"type":{"const":"shire_land_listed","type":"string"}},"required":["askFarthings","escheatorId","plotTypeId","townId","type"],"type":"object"},{"properties":{"buyerId":{"type":"string"},"plotTypeId":{"type":"string"},"priceFarthings":{"type":"number"},"townId":{"type":"string"},"type":{"const":"shire_land_sold","type":"string"}},"required":["buyerId","plotTypeId","priceFarthings","townId","type"],"type":"object"},{"properties":{"decreeKindId":{"type":"string"},"outcome":{"$ref":"#/components/schemas/DecreeOutcome2"},"proposerId":{"type":"string"},"type":{"const":"decree","type":"string"}},"required":["decreeKindId","outcome","proposerId","type"],"type":"object"}]},"TownView":{"properties":{"chestBalanceFarthings":{"description":"The sitting mayor only, like the ledger; absent for everyone else.","type":"number"},"day":{"type":"number"},"election":{"anyOf":[{"type":"null"},{"properties":{"candidates":{"items":{"properties":{"ai":{"type":"boolean"},"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"},"statement":{"type":"string"}},"required":["ai","characterId","look","name","statement"],"type":"object"},"type":"array"},"closesDay":{"type":"number"},"eligible":{"type":"boolean"},"id":{"type":"string"},"myVoteCharacterId":{"type":["null","string"]},"openedDay":{"type":"number"},"votingStartsDay":{"type":"number"}},"required":["candidates","closesDay","eligible","id","myVoteCharacterId","openedDay","votingStartsDay"],"type":"object"}]},"freedomPriceFarthings":{"description":"What the freedom of this town costs (`buy-freedom`).","type":"number"},"freeman":{"type":"boolean"},"jobs":{"items":{"properties":{"claimable":{"type":"boolean"},"freeSlots":{"type":["null","number"]},"id":{"type":"string"},"kind":{"enum":["gathering","militia"],"type":"string"},"mayorBarred":{"description":"The viewer is the sitting mayor: their own town's jobs are barred.","type":"boolean"},"minSkill":{"type":"number"},"output":{"$ref":"#/components/schemas/JobOutput","description":"Who keeps what the day makes: the town chest, for a town job."},"qualifies":{"description":"The viewer has the skill this job asks for: `take-job`'s own test.","type":"boolean"},"recipeId":{"type":["null","string"]},"slots":{"type":["null","number"]},"wage":{"type":"number"}},"required":["claimable","freeSlots","id","kind","mayorBarred","minSkill","output","qualifies","recipeId","slots","wage"],"type":"object"},"type":"array"},"mayor":{"description":"Absent, rather than null or empty, for everybody but the sitting mayor.","properties":{"chestGoods":{"items":{"properties":{"displayName":{"type":"string"},"goodId":{"type":"string"},"qty":{"type":"number"}},"required":["displayName","goodId","qty"],"type":"object"},"type":"array"},"chestItems":{"items":{"properties":{"displayName":{"type":"string"},"durability":{"type":"number"},"itemId":{"type":"string"},"maxDurability":{"type":"number"},"wornOut":{"type":"boolean"}},"required":["displayName","durability","itemId","maxDurability","wornOut"],"type":"object"},"type":"array"},"ledger":{"items":{"properties":{"assetId":{"type":"string"},"day":{"type":"number"},"direction":{"enum":["in","out"],"type":"string"},"id":{"type":"number"},"qty":{"type":"number"},"reason":{"type":"string"}},"required":["assetId","day","direction","id","qty","reason"],"type":"object"},"type":"array"},"listings":{"items":{"properties":{"id":{"type":"string"},"label":{"type":"string"},"price":{"type":"number"}},"required":["id","label","price"],"type":"object"},"type":"array"},"movements":{"items":{"properties":{"characterId":{"type":"string"},"day":{"type":"number"},"direction":{"enum":["arrival","departure"],"type":"string"},"fromTownId":{"type":["null","string"]},"name":{"type":"string"},"toTownId":{"type":["null","string"]}},"required":["characterId","day","direction","fromTownId","name","toTownId"],"type":"object"},"type":"array"},"orders":{"items":{"properties":{"displayName":{"type":"string"},"goodId":{"type":"string"},"id":{"type":"string"},"price":{"type":"number"},"qty":{"type":"number"},"side":{"enum":["buy","sell"],"type":"string"}},"required":["displayName","goodId","id","price","qty","side"],"type":"object"},"type":"array"},"repairs":{"items":{"properties":{"displayName":{"type":"string"},"feeFarthings":{"type":"number"},"id":{"type":"string"},"itemId":{"type":"string"},"materialGoodId":{"type":"string"},"materialQty":{"type":"number"},"materialSupplied":{"type":"boolean"}},"required":["displayName","feeFarthings","id","itemId","materialGoodId","materialQty","materialSupplied"],"type":"object"},"type":"array"},"trailingWeeklyIncomeFarthings":{"type":"number"}},"required":["chestGoods","chestItems","ledger","listings","movements","orders","repairs","trailingWeeklyIncomeFarthings"],"type":"object"},"morale":{"type":["null","number"]},"nextElectionDay":{"description":"The first day of the next mayoral election, when none is open and the\nsitting term has an end; null otherwise.","type":["null","number"]},"office":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"holder":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"}},"required":["characterId","look","name"],"type":"object"}]},"id":{"type":"string"},"termEndsDay":{"type":["null","number"]},"termStartedDay":{"type":["null","number"]}},"required":["displayName","holder","id","termEndsDay","termStartedDay"],"type":"object"}]},"policy":{"properties":{"limits":{"description":"The lawful ceilings `proclaim-town-policy` enforces.","properties":{"marketFeeMaxPercent":{"type":"number"},"propertyTaxMaxFarthings":{"type":"number"},"toolShareMaxPercent":{"type":"number"}},"required":["marketFeeMaxPercent","propertyTaxMaxFarthings","toolShareMaxPercent"],"type":"object"},"marketFeePercent":{"type":"number"},"pending":{"anyOf":[{"type":"null"},{"properties":{"marketFeePercent":{"type":"number"},"propertyTaxFarthings":{"type":"number"},"toolSharePercent":{"type":"number"}},"type":"object"}]},"pendingAppliesDay":{"type":["null","number"]},"propertyTaxFarthings":{"type":"number"},"toolSharePercent":{"type":"number"}},"required":["limits","marketFeePercent","pending","pendingAppliesDay","propertyTaxFarthings","toolSharePercent"],"type":"object"},"residence":{"anyOf":[{"type":"null"},{"properties":{"freeOnDay":{"type":"number"},"heldByTax":{"type":"boolean"},"sinceDay":{"type":"number"}},"required":["freeOnDay","heldByTax","sinceDay"],"type":"object"}],"description":"In the viewer's own home town before they are free of it: the day their\nresidence counts from (each retreat day moves it one day later) and the\nfirst day the residence rule makes them free, unless `heldByTax`:\nunpaid town tax holds the freedom back. Null elsewhere or once free."},"statementMaxLength":{"description":"The longest candidate statement `stand-for-mayor` accepts.","type":"number"},"tools":{"items":{"properties":{"available":{"type":"boolean"},"displayName":{"type":"string"},"durability":{"type":"number"},"gearId":{"type":"string"},"itemId":{"type":"string"},"toolClassId":{"type":"string"}},"required":["available","displayName","durability","gearId","itemId","toolClassId"],"type":"object"},"type":"array"},"town":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"}},"required":["day","election","freedomPriceFarthings","freeman","jobs","morale","nextElectionDay","office","policy","residence","statementMaxLength","tools","town"],"type":"object"},"VisibleTurn":{"properties":{"choice":{"anyOf":[{"enum":["default-hold","hold","throw"],"type":"string"},{"type":"null"}]},"first":{"type":"number"},"second":{"type":["null","number"]}},"required":["choice","first","second"],"type":"object"},"VoiceColour":{"description":"A character's voice in stories: the dye on their portrait ring, name, and\nspoken lines, readable on the paper (`light`) and night (`dark`) grounds.","properties":{"dark":{"type":"string"},"displayName":{"type":"string"},"id":{"type":"string"},"light":{"type":"string"}},"required":["dark","displayName","id","light"],"type":"object"},"WaitingItem":{"description":"A council motion or royal decree open for the reader's decision.","properties":{"id":{"type":"string"},"kind":{"enum":["decree","motion"],"type":"string"}},"required":["id","kind"],"type":"object"},"WaitingOnYou":{"anyOf":[{"properties":{"id":{"type":"string"},"kind":{"enum":["army-contract","band-invite","decree","drink-offer","motion","private-offer","retinue-call","retinue-invite"],"type":"string"}},"required":["id","kind"],"type":"object"},{"properties":{"estateName":{"type":"string"},"id":{"type":"string"},"kind":{"enum":["estate-application","estate-steward"],"type":"string"}},"required":["estateName","id","kind"],"type":"object"},{"properties":{"endsDay":{"type":"number"},"estateName":{"type":"string"},"id":{"type":"string"},"kind":{"const":"estate-licence","type":"string"}},"required":["endsDay","estateName","id","kind"],"type":"object"},{"properties":{"id":{"type":"string"},"kind":{"const":"wager-choice","type":"string"},"remainingMs":{"type":"number"}},"required":["id","kind","remainingMs"],"type":"object"},{"properties":{"id":{"description":"The petitioner's character id.","type":"string"},"kind":{"const":"title-petition","type":"string"},"titleId":{"type":"string"}},"required":["id","kind","titleId"],"type":"object"},{"properties":{"closesDay":{"type":"number"},"id":{"type":"string"},"kind":{"const":"election","type":"string"},"office":{"enum":["council","mayor","priest"],"type":"string"},"townId":{"description":"The office's town; null for the shire council.","type":["null","string"]}},"required":["closesDay","id","kind","office","townId"],"type":"object"},{"properties":{"id":{"type":"string"},"kind":{"const":"case","type":"string"},"stage":{"description":"argue-case (accused), respond-case (charging official), rule-case (judge).","enum":["argue","respond","rule"],"type":"string"},"untilDay":{"description":"The day the stage ends; null while a ruling has no deadline.","type":["null","number"]}},"required":["id","kind","stage","untilDay"],"type":"object"}],"description":"One answer the caller owes: an offer, invitation, call, ballot, case\nstage, motion, decree, or petition addressed to them alone. `id` is the\ninput the answering command takes (order, offer, band, retinue, army,\nelection, case, or motion)."},"WeatherView":{"description":"A town's weather on one day. Flavour only: computed, never stored, and\nread by no rule, so later effects can hook in here.","properties":{"frontId":{"type":"string"},"glyph":{"enum":["fog","frost","gale","rain","showers","snow","sun","thunder","wind"],"type":"string"},"name":{"type":"string"},"news":{"description":"The Crier's line when this front set in today, else null.","type":["null","string"]},"stormy":{"type":"boolean"},"text":{"description":"How the day looks in this town, by its climate.","type":"string"},"townId":{"type":"string"},"townName":{"type":"string"}},"required":["frontId","glyph","name","news","stormy","text","townId","townName"],"type":"object"},"WorldFeature":{"enum":["estates","justice","kingsCouncil","publicWorks","shireGovernment","stories","titles","tugOfWar","warfare"],"type":"string"},"WorldView":{"properties":{"chosenJob":{"anyOf":[{"type":"null"},{"properties":{"id":{"type":"string"},"output":{"$ref":"#/components/schemas/JobOutput","description":"Who keeps what the day makes (`jobOutputOf`)."},"plotTypeId":{"description":"Empty on a works site or a town job, which have no plot type.","type":"string"},"plotUse":{"anyOf":[{"enum":["field","pasture","residential","workshop"],"type":"string"},{"type":"null"}],"description":"The plot type's use; null off a plot."},"recipeId":{"type":["null","string"]},"siteId":{"type":["null","string"]},"siteName":{"description":"The works' display name, the plot's workshop type's (built or still\nbeing built), the plot type's, or \"Town\".","type":"string"},"townJobKind":{"anyOf":[{"enum":["gathering","militia"],"type":"string"},{"type":"null"}]},"wage":{"type":"number"},"worksId":{"description":"The works id when the site is a works; null otherwise.","type":["null","string"]},"workshopBuilt":{"description":"The plot's workshop is finished; false while it is being built.","type":"boolean"},"workshopTypeId":{"description":"The workshop built or being built on the plot; null otherwise.","type":["null","string"]}},"required":["id","output","plotTypeId","plotUse","recipeId","siteId","siteName","townJobKind","wage","worksId","workshopBuilt","workshopTypeId"],"type":"object"}],"description":"The job a `take-job` choice names, while it is loaded (in this town or\nthe character's own hire); null otherwise. Site facts as the land view\ngives them (`jobSiteOf`)."},"chosenPlot":{"anyOf":[{"type":"null"},{"properties":{"cropGoodId":{"type":["null","string"]},"cropName":{"type":["null","string"]},"plotId":{"type":"string"},"plotTypeId":{"description":"Empty on a works site or a town job, which have no plot type.","type":"string"},"plotUse":{"anyOf":[{"enum":["field","pasture","residential","workshop"],"type":"string"},{"type":"null"}],"description":"The plot type's use; null off a plot."},"recipeId":{"type":["null","string"]},"recipeName":{"type":["null","string"]},"siteName":{"description":"The works' display name, the plot's workshop type's (built or still\nbeing built), the plot type's, or \"Town\".","type":"string"},"worksId":{"description":"The works id when the site is a works; null otherwise.","type":["null","string"]},"workshopBuilt":{"description":"The plot's workshop is finished; false while it is being built.","type":"boolean"},"workshopTypeId":{"description":"The workshop built or being built on the plot; null otherwise.","type":["null","string"]}},"required":["cropGoodId","cropName","plotId","plotTypeId","plotUse","recipeId","recipeName","siteName","worksId","workshopBuilt","workshopTypeId"],"type":"object"}],"description":"The plot a `work-plot` choice names, while it is loaded; null otherwise.\n`recipeId` is the workshop's recipe for the day, `cropGoodId` the\nfield's crop."},"date":{"$ref":"#/components/schemas/CalendarDate"},"day":{"type":"number"},"features":{"items":{"$ref":"#/components/schemas/WorldFeature"},"type":"array"},"forageName":{"description":"What foraging gathers: the forage good's display name.","type":"string"},"home":{"description":"Where the character lives, and when they may next move home.\nA move locks the home for `changeDays` and restarts the residence that\nearns a town's freedom after `residencyDays`.","properties":{"changeDays":{"type":"number"},"displayName":{"type":"string"},"estate":{"$ref":"#/components/schemas/EstateSite"},"id":{"type":"string"},"lockedUntilDay":{"type":"number"},"residencyDays":{"type":"number"}},"required":["changeDays","displayName","id","lockedUntilDay","residencyDays"],"type":"object"},"homeTowns":{"description":"The profile's home towns, in profile order.","items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"mainAction":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/MainActionChoice"}],"description":"Today's choice, or null: \"with no choice, the character does no work\"."},"residents":{"description":"`householdId` groups residents of one declared household.","items":{"properties":{"ai":{"type":"boolean"},"characterId":{"type":"string"},"householdId":{"type":["null","string"]},"look":{"$ref":"#/components/schemas/PersonLook"},"name":{"type":"string"}},"required":["ai","characterId","householdId","look","name"],"type":"object"},"type":"array"},"roadSteps":{"description":"One day's road steps from `town`, sorted by display name.","items":{"properties":{"displayName":{"type":"string"},"estate":{"const":true,"type":"boolean"},"open":{"type":"boolean"},"roadId":{"type":"string"},"toTownId":{"type":"string"}},"required":["displayName","open","roadId","toTownId"],"type":"object"},"type":"array"},"stocks":{"description":"The town's stocks with their bands and what may be gathered from each.","items":{"properties":{"band":{"$ref":"#/components/schemas/StockBand"},"displayName":{"type":"string"},"id":{"type":"string"},"recipes":{"description":"`toolClassName` is the tool class's display name, or null if it needs none.","items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"toolClassName":{"type":["null","string"]}},"required":["displayName","id","toolClassName"],"type":"object"},"type":"array"},"stockTypeId":{"description":"The content stock type (woods, waters, fen), for its art.","type":"string"}},"required":["band","displayName","id","recipes","stockTypeId"],"type":"object"},"type":"array"},"town":{"description":"Where the character stands now.","properties":{"displayName":{"type":"string"},"estate":{"$ref":"#/components/schemas/EstateSite"},"estateMarket":{"type":"boolean"},"id":{"type":"string"},"open":{"description":"Civic facilities are open here.","type":"boolean"}},"required":["displayName","id","open"],"type":"object"},"tugOfWar":{"anyOf":[{"type":"null"},{"properties":{"homeTownName":{"type":"string"},"id":{"type":"string"},"ownPull":{"anyOf":[{"enum":["heave","steady"],"type":"string"},{"type":"null"}]},"pennant":{"type":["null","string"]},"round":{"type":"number"},"roundCount":{"type":"number"},"rounds":{"items":{"properties":{"crews":{"items":{"properties":{"pulls":{"items":{"properties":{"characterId":{"type":"string"},"choice":{"anyOf":[{"enum":["heave","steady"],"type":"string"},{"type":"null"}]},"marks":{"type":"number"},"name":{"type":["null","string"]}},"required":["characterId","choice","marks","name"],"type":"object"},"type":"array"},"total":{"type":"number"},"townId":{"type":"string"}},"required":["pulls","total","townId"],"type":"object"},"type":"array"},"number":{"type":"number"}},"required":["crews","number"],"type":"object"},"type":"array"},"signedUp":{"type":"boolean"},"stage":{"type":"string"},"totals":{"items":false,"minItems":2,"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array"},"towns":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"signups":{"type":"number"}},"required":["id","name","signups"],"type":"object"},"type":"array"},"winner":{"type":["null","string"]}},"required":["homeTownName","id","ownPull","pennant","round","roundCount","rounds","signedUp","stage","totals","towns","winner"],"type":"object"}]},"waiting":{"description":"Every answer the caller owes, in a fixed order (`WaitingOnYou`).","items":{"$ref":"#/components/schemas/WaitingOnYou"},"type":"array"},"weather":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/WeatherView"}],"description":"Today's weather where the character stands, and, when today's choice\nis a road step, at its destination; null without weather content."},"weatherAhead":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/WeatherView"}]}},"required":["chosenJob","chosenPlot","date","day","forageName","home","homeTowns","mainAction","residents","roadSteps","stocks","town","waiting","weather","weatherAhead"],"type":"object"},"ErrorResponse":{"type":"object","description":"The body of every refusal.","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A stable, machine-readable reason, such as `invalid_input` or `rate_limited`."},"message":{"type":"string","description":"A short explanation in plain words."},"retry":{"type":"boolean","description":"True when the same request may work a little later."}}}}}}},"paths":{"/v1/estates":{"get":{"operationId":"estates","summary":"Read estate deeds, roads, and prices. At an estate you manage, read the coffer and its supplies.","description":"Read estate deeds, roads, and prices. At an estate you manage, read the coffer and its supplies.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"sites":{"items":{"properties":{"applicants":{"items":{"properties":{"characterId":{"type":"string"},"name":{"type":["null","string"]}},"required":["characterId","name"],"type":"object"},"type":"array"},"applied":{"type":"boolean"},"atSite":{"type":"boolean"},"buyRefusal":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/CommandError"}]},"canApply":{"type":"boolean"},"cofferFarthings":{"type":["null","number"]},"displayName":{"type":"string"},"expansionChoices":{"items":{"properties":{"displayName":{"type":"string"},"plotTypeId":{"type":"string"},"priceFarthings":{"type":"number"},"refusal":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/CommandError"}]}},"required":["displayName","plotTypeId","priceFarthings","refusal"],"type":"object"},"type":"array"},"id":{"type":"string"},"licenseEndsDay":{"type":["null","number"]},"licensedToYou":{"type":"boolean"},"manages":{"type":"boolean"},"marketFeeMaxPercent":{"type":"number"},"marketFeePercent":{"type":"number"},"operatingGear":{"items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"operatingGoods":{"items":{"$ref":"#/components/schemas/HeldGoods"},"type":"array"},"ownerId":{"type":["null","string"]},"ownerName":{"type":["null","string"]},"owns":{"type":"boolean"},"plots":{"items":{"properties":{"builtDay":{"type":["null","number"]},"cropGoodId":{"type":["null","string"]},"id":{"type":"string"},"plotTypeId":{"type":"string"},"workshopTypeId":{"type":["null","string"]}},"required":["builtDay","cropGoodId","id","plotTypeId","workshopTypeId"],"type":"object"},"type":"array"},"purchasePriceFarthings":{"type":["null","number"]},"roadTownId":{"type":"string"},"royal":{"type":"boolean"},"salePriceFarthings":{"type":["null","number"]},"stewardCandidates":{"items":{"properties":{"characterId":{"type":"string"},"name":{"type":["null","string"]}},"required":["characterId","name"],"type":"object"},"type":"array"},"stewardId":{"type":["null","string"]},"stewardInvited":{"type":"boolean"},"stewardInviteeId":{"type":["null","string"]},"stewardName":{"type":["null","string"]}},"required":["applicants","applied","atSite","buyRefusal","canApply","cofferFarthings","displayName","expansionChoices","id","licenseEndsDay","licensedToYou","manages","marketFeeMaxPercent","marketFeePercent","operatingGear","operatingGoods","ownerId","ownerName","owns","plots","purchasePriceFarthings","roadTownId","royal","salePriceFarthings","stewardCandidates","stewardId","stewardInvited","stewardInviteeId","stewardName"],"type":"object"},"type":"array"}},"required":["sites"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/accept-estate-steward":{"post":{"operationId":"accept-estate-steward","summary":"Accept an invitation to manage the estate while you are there.","description":"Accept an invitation to manage the estate while you are there.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"stewardId":{"type":"string"}},"required":["estateId","stewardId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."}},"required":["estateId"]}}}}}}}},"/v1/apply-for-estate":{"post":{"operationId":"apply-for-estate","summary":"Ask the Crown for a licence to buy an estate held by the shire.","description":"Ask the Crown for a licence to buy an estate held by the shire.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"}},"required":["estateId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."}},"required":["estateId"]}}}}}}}},"/v1/approve-estate-license":{"post":{"operationId":"approve-estate-license","summary":"Give an applicant a temporary licence to buy a shire estate. Only the Crown may grant one.","description":"Give an applicant a temporary licence to buy a shire estate. Only the Crown may grant one.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"licenseEndsDay":{"type":"number"}},"required":["estateId","licenseEndsDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"characterId":{"type":"string","minLength":1,"description":"The applicant's character id."}},"required":["estateId","characterId"]}}}}}}}},"/v1/buy-estate":{"post":{"operationId":"buy-estate","summary":"Buy the whole deed while at the estate. The manor becomes your home.","description":"Buy the whole deed while at the estate. The manor becomes your home.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"priceFarthings":{"type":"number"}},"required":["estateId","priceFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"priceFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The quoted deed price, in integer farthings, from the estates read."}},"required":["estateId","priceFarthings"]}}}}}}}},"/v1/expand-estate":{"post":{"operationId":"expand-estate","summary":"Add a plot to your deed while at the estate. The price comes from your purse.","description":"Add a plot to your deed while at the estate. The price comes from your purse.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"plotId":{"type":"string"},"priceFarthings":{"type":"number"}},"required":["estateId","plotId","priceFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"plotTypeId":{"type":"string","minLength":1,"description":"The plot type's id, from the estate's expansion choices."}},"required":["estateId","plotTypeId"]}}}}}}}},"/v1/fund-estate":{"post":{"operationId":"fund-estate","summary":"Put coin from your purse into the estate coffer. The deed holder must be at the estate.","description":"Put coin from your purse into the estate coffer. The deed holder must be at the estate.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"farthings":{"type":"number"}},"required":["estateId","farthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"farthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The deposit in integer farthings."}},"required":["estateId","farthings"]}}}}}}}},"/v1/stock-estate":{"post":{"operationId":"stock-estate","summary":"Put goods you carry into the estate coffer. The deed holder must be at the estate.","description":"Put goods you carry into the estate coffer. The deed holder must be at the estate.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"goodId":{"type":"string"},"qty":{"type":"number"}},"required":["estateId","goodId","qty"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"goodId":{"type":"string","minLength":1,"description":"The good's id."},"qty":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many units."}},"required":["estateId","goodId","qty"]}}}}}}}},"/v1/take-estate-gear":{"post":{"operationId":"take-estate-gear","summary":"Take gear from the coffer while at an estate you hold.","description":"Take gear from the coffer while at an estate you hold.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"itemId":{"type":"string"}},"required":["estateId","itemId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"itemId":{"type":"string","minLength":1,"description":"The item id from the estate's gear list."}},"required":["estateId","itemId"]}}}}}}}},"/v1/set-estate-market-fee":{"post":{"operationId":"set-estate-market-fee","summary":"Set the market fee while at an estate you own.","description":"Set the market fee while at an estate you own.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"percent":{"type":"number"}},"required":["estateId","percent"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"percent":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The new fee as a whole percent. Use 0 to remove the fee."}},"required":["estateId","percent"]}}}}}}}},"/v1/invite-estate-steward":{"post":{"operationId":"invite-estate-steward","summary":"Invite a character at your estate to be its steward. The deed holder must also be there.","description":"Invite a character at your estate to be its steward. The deed holder must also be there.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"stewardInviteeId":{"type":["null","string"]}},"required":["estateId","stewardInviteeId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"characterId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The invitee's character id. Use null to clear the invitation and remove any current steward."}},"required":["estateId","characterId"]}}}}}}}},"/v1/list-estate":{"post":{"operationId":"list-estate","summary":"Put your whole deed up for sale while at the estate.","description":"Put your whole deed up for sale while at the estate.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"},"priceFarthings":{"type":["null","number"]}},"required":["estateId","priceFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"priceFarthings":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"null"}],"description":"The asking price in integer farthings. Use null to take the estate off sale."}},"required":["estateId","priceFarthings"]}}}}}}}},"/v1/seize-estate":{"post":{"operationId":"seize-estate","summary":"Take a private estate back for the shire. Only the Crown may seize a deed.","description":"Take a private estate back for the shire. Only the Crown may seize a deed.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"estateId":{"type":"string"}},"required":["estateId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"estateId":{"type":"string","minLength":1,"description":"The estate's id, from the estates read."},"reason":{"type":"string","minLength":1,"maxLength":400,"pattern":"^[^\\p{Cc}\\p{Cf}]+$","description":"The reason for seizure, shown to the public."}},"required":["estateId","reason"]}}}}}}}},"/v1/goals":{"get":{"operationId":"goals","summary":"Read your goals and progress. For A Walk Around Town, open each stop on the website.","description":"Read your goals and progress. For A Walk Around Town, open each stop on the website.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"createdDay":{"type":"number"},"goals":{"items":{"$ref":"#/components/schemas/GoalView"},"type":"array"},"hidden":{"type":"boolean"},"selectedGoalId":{"type":["null","string"]}},"required":["createdDay","goals","hidden","selectedGoalId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"view","in":"query","required":false,"description":"Choose the day or catalog view.","schema":{"default":"day","type":"string","enum":["day","catalog"]}}]}},"/v1/select-goal":{"post":{"operationId":"select-goal","summary":"Choose which goal to show on Your Day, or clear your selection.","description":"Choose which goal to show on Your Day, or clear your selection.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"goalId":{"type":["null","string"]}},"required":["goalId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"goalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]}},"required":["goalId"]}}}}}}}},"/v1/claim-goal-reward":{"post":{"operationId":"claim-goal-reward","summary":"Take the gift for a goal you have finished.","description":"Take the gift for a goal you have finished.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"goalId":{"type":"string"}},"required":["goalId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"goalId":{"type":"string","minLength":1,"maxLength":80}},"required":["goalId"]}}}}}}}},"/v1/form-retinue":{"post":{"operationId":"form-retinue","summary":"Start a retinue of followers you pay a daily wage. Only a Knight or higher title may keep one.","description":"Start a retinue of followers you pay a daily wage. Only a Knight or higher title may keep one.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"retinueId":{"type":"string"}},"required":["retinueId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"wage":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The daily wage you offer followers. In integer farthings: multiply the amount in pence by 4."}},"required":["wage"]}}}}}}}},"/v1/invite-to-retinue":{"post":{"operationId":"invite-to-retinue","summary":"Invite a character who is here with you to join your retinue. 1 day's wage is set aside from your purse.","description":"Invite a character who is here with you to join your retinue. 1 day's wage is set aside from your purse.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"jobId":{"type":"string"},"retinueId":{"type":"string"}},"required":["jobId","retinueId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"Your retinue's id, from the retinues read."},"characterId":{"type":"string","minLength":1,"description":"The character's id."},"days":{"type":"integer","minimum":1,"maximum":3650,"description":"How many days the follower serves."}},"required":["retinueId","characterId","days"]}}}}}}}},"/v1/withdraw-retinue-invitation":{"post":{"operationId":"withdraw-retinue-invitation","summary":"Withdraw your open retinue invitation. The wage set aside for it comes back to you.","description":"Withdraw your open retinue invitation. The wage set aside for it comes back to you.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"retinueId":{"type":"string"}},"required":["retinueId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"Your retinue's id, from the retinues read."}},"required":["retinueId"]}}}}}}}},"/v1/join-retinue":{"post":{"operationId":"join-retinue","summary":"Accept a retinue invitation. You are paid the agreed wage each day and keep your ordinary work.","description":"Accept a retinue invitation. You are paid the agreed wage each day and keep your ordinary work.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"retinueId":{"type":"string"},"untilDay":{"type":"number"},"wage":{"type":"number"}},"required":["retinueId","untilDay","wage"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"The id of the retinue that invited you."}},"required":["retinueId"]}}}}}}}},"/v1/leave-retinue":{"post":{"operationId":"leave-retinue","summary":"Leave a retinue you belong to. If you answered its call today, that service is withdrawn too.","description":"Leave a retinue you belong to. If you answered its call today, that service is withdrawn too.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"retinueId":{"type":"string"}},"required":["retinueId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"The id of the retinue you belong to."}},"required":["retinueId"]}}}}}}}},"/v1/disband-retinue":{"post":{"operationId":"disband-retinue","summary":"Disband your retinue. Every follower is released and wages set aside come back to you.","description":"Disband your retinue. Every follower is released and wages set aside come back to you.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"retinueId":{"type":"string"}},"required":["retinueId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"Your retinue's id, from the retinues read."}},"required":["retinueId"]}}}}}}}},"/v1/set-retinue-wage":{"post":{"operationId":"set-retinue-wage","summary":"Change the daily wage your retinue offers to new followers.","description":"Change the daily wage your retinue offers to new followers.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"invitationWage":{"type":"number"},"retinueId":{"type":"string"}},"required":["invitationWage","retinueId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"Your retinue's id, from the retinues read."},"wage":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The new daily wage. In integer farthings: multiply the amount in pence by 4."}},"required":["retinueId","wage"]}}}}}}}},"/v1/call-retinue":{"post":{"operationId":"call-retinue","summary":"Call your followers to your own band or private army for today. Each follower chooses whether to answer, and the retinue cannot be called again for a few days.","description":"Call your followers to your own band or private army for today. Each follower chooses whether to answer, and the retinue cannot be called again for a few days.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"retinueId":{"type":"string"},"targetGroupId":{"type":"string"}},"required":["retinueId","targetGroupId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"Your retinue's id, from the retinues read."},"targetGroupId":{"type":"string","minLength":1,"description":"The id of your band or private army."}},"required":["retinueId","targetGroupId"]}}}}}}}},"/v1/accept-retinue-call":{"post":{"operationId":"accept-retinue-call","summary":"Answer your lord's call for today. You join their band or serve in their army, which takes your main action.","description":"Answer your lord's call for today. You join their band or serve in their army, which takes your main action.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"retinueId":{"type":"string"},"targetGroupId":{"type":"string"}},"required":["retinueId","targetGroupId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"retinueId":{"type":"string","minLength":1,"description":"The id of the retinue that called you."}},"required":["retinueId"]}}}}}}}},"/v1/retinues":{"get":{"operationId":"retinues","summary":"Read your retinue or the one you serve: followers, wages, invitations, and today's call.","description":"Read your retinue or the one you serve: followers, wages, invitations, and today's call.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"canForm":{"type":"boolean"},"retinues":{"items":{"properties":{"call":{"anyOf":[{"type":"null"},{"properties":{"accepted":{"type":"boolean"},"targetGroupId":{"type":"string"}},"required":["accepted","targetGroupId"],"type":"object"}]},"callUntilDay":{"type":["null","number"]},"canManage":{"type":"boolean"},"capacity":{"type":"number"},"id":{"type":"string"},"invitation":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"},"untilDay":{"type":"number"},"wage":{"type":"number"}},"required":["characterId","look","name","untilDay","wage"],"type":"object"}]},"invitationWage":{"type":"number"},"lordId":{"type":"string"},"lordLook":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"lordName":{"type":"string"},"members":{"items":{"properties":{"characterId":{"type":"string"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"},"untilDay":{"type":["null","number"]},"wage":{"type":"number"}},"required":["characterId","look","name","untilDay","wage"],"type":"object"},"type":"array"}},"required":["call","callUntilDay","canManage","capacity","id","invitation","invitationWage","lordId","lordLook","lordName","members"],"type":"object"},"type":"array"}},"required":["canForm","retinues"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/raise-army":{"post":{"operationId":"raise-army","summary":"Raise an army in the town where you stand. A Knight or higher raises a private army, the mayor a town army, and the Sheriff a shire army with the council's vote.","description":"Raise an army in the town where you stand. A Knight or higher raises a private army, the mayor a town army, and the Sheriff a shire army with the council's vote.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"}},"required":["armyId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"kind":{"type":"string","enum":["private","town","shire"],"description":"`private`, `town`, or `shire`."},"homeTownId":{"type":"string","minLength":1,"description":"The town you stand in, where the army is raised."},"approvalId":{"description":"For a shire army, the council's passed motion to raise it.","type":"string","minLength":1}},"required":["kind","homeTownId"]}}}}}}}},"/v1/offer-army-contract":{"post":{"operationId":"offer-army-contract","summary":"Offer a soldier's contract to a character who is with the army. 1 day's wage is set aside from the army's funds.","description":"Offer a soldier's contract to a character who is with the army. 1 day's wage is set aside from the army's funds.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"},"jobId":{"type":"string"}},"required":["armyId","jobId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The army's id, from the armies read."},"characterId":{"type":"string","minLength":1,"description":"The character's id."},"wage":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The daily wage. In integer farthings: multiply the amount in pence by 4."},"days":{"type":"integer","minimum":1,"maximum":3650,"description":"How many days the soldier serves."},"approvalId":{"description":"A passed council payment motion for exactly this payment, when the payment is large enough to need one.","type":"string","minLength":1}},"required":["armyId","characterId","wage","days"]}}}}}}}},"/v1/withdraw-army-contract":{"post":{"operationId":"withdraw-army-contract","summary":"Withdraw the army's open contract offer. Its set-aside wage returns to the funder.","description":"Withdraw the army's open contract offer. Its set-aside wage returns to the funder.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"}},"required":["armyId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The army's id, from the armies read."}},"required":["armyId"]}}}}}}}},"/v1/accept-army-contract":{"post":{"operationId":"accept-army-contract","summary":"Accept a soldier's contract. You are paid each day you serve, and serving takes your main action.","description":"Accept a soldier's contract. You are paid each day you serve, and serving takes your main action.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"},"untilDay":{"type":"number"}},"required":["armyId","untilDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The id of the army that made you the offer."}},"required":["armyId"]}}}}}}}},"/v1/leave-army":{"post":{"operationId":"leave-army","summary":"End your soldier's contract and leave the army. Any service you chose for today is withdrawn.","description":"End your soldier's contract and leave the army. Any service you chose for today is withdrawn.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"}},"required":["armyId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The army's id, from the armies read."}},"required":["armyId"]}}}}}}}},"/v1/disband-army":{"post":{"operationId":"disband-army","summary":"Disband an army you fund. Every soldier is released and wages set aside return to the funder.","description":"Disband an army you fund. Every soldier is released and wages set aside return to the funder.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"}},"required":["armyId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The army's id, from the armies read."}},"required":["armyId"]}}}}}}}},"/v1/appoint-army-captain":{"post":{"operationId":"appoint-army-captain","summary":"Name a new captain for a town or shire army. Only the mayor or Marshal may, and the captain must be with the army.","description":"Name a new captain for a town or shire army. Only the mayor or Marshal may, and the captain must be with the army.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"}},"required":["armyId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The army's id, from the armies read."},"characterId":{"type":"string","minLength":1,"description":"The new captain's id."}},"required":["armyId","characterId"]}}}}}}}},"/v1/serve-army":{"post":{"operationId":"serve-army","summary":"Spend today's main action serving in an army you hold a contract with. You are paid at the reset and may fight.","description":"Spend today's main action serving in an army you hold a contract with. You are paid at the reset and may fight.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The army's id, from the armies read."}},"required":["armyId"]}}}}}}}},"/v1/set-army-order":{"post":{"operationId":"set-army-order","summary":"Give your army today's order: hold, march, patrol, aid a town, or attack. Orders stay private until combat, and fighting another army can kill.","description":"Give your army today's order: hold, march, patrol, aid a town, or attack. Orders stay private until combat, and fighting another army can kill.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"armyId":{"type":"string"},"order":{"properties":{"chosenDay":{"type":"number"},"kind":{"enum":["aid-town","attack-army","attack-band","attack-town","hold","march","patrol"],"type":"string"},"targetId":{"type":["null","string"]}},"required":["chosenDay","kind","targetId"],"type":"object"}},"required":["armyId","order"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"armyId":{"type":"string","minLength":1,"description":"The army's id, from the armies read."},"kind":{"type":"string","enum":["hold","march","attack-town","attack-army","attack-band","patrol","aid-town"],"description":"`hold`, `march`, `patrol`, `aid-town`, `attack-town`, `attack-army`, or `attack-band`."},"targetId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The town, road step, army, or band the order is aimed at, or null to hold."}},"required":["armyId","kind","targetId"]}}}}}}}},"/v1/end-war":{"post":{"operationId":"end-war","summary":"End a war the shire has declared. Only the Sheriff may.","description":"End a war the shire has declared. Only the Sheriff may.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"warId":{"type":"string"}},"required":["warId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"warId":{"type":"string","minLength":1,"description":"The war's id, from the armies read."}},"required":["warId"]}}}}}}}},"/v1/attack-town":{"post":{"operationId":"attack-town","summary":"Spend today's main action attacking the town you are in. You may be wounded, and if the attackers win the mayor is replaced.","description":"Spend today's main action attacking the town you are in. You may be wounded, and if the attackers win the mayor is replaced.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/armies":{"get":{"operationId":"armies","summary":"Read the armies you can see, their orders and contracts, wars, and the defence of your town.","description":"Read the armies you can see, their orders and contracts, wars, and the defence of your town.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/MilitaryView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/works":{"get":{"operationId":"works","summary":"Read the shire works: open levels, jobs and wages, and the shire store's materials.","description":"Read the shire works: open levels, jobs and wages, and the shire store's materials.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"canManage":{"type":"boolean"},"store":{"anyOf":[{"type":"null"},{"properties":{"goods":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"qty":{"type":"number"}},"required":["id","name","qty"],"type":"object"},"type":"array"},"townName":{"type":"string"}},"required":["goods","townName"],"type":"object"}]},"towns":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"treasuryFarthings":{"type":["null","number"]},"works":{"items":{"properties":{"id":{"type":"string"},"jobs":{"items":{"properties":{"escrowFarthings":{"type":["null","number"]},"id":{"type":"string"},"slots":{"type":"number"},"untilDay":{"type":"number"},"wage":{"type":"number"}},"required":["escrowFarthings","id","slots","untilDay","wage"],"type":"object"},"type":"array"},"level":{"type":"number"},"maxLevel":{"type":"number"},"name":{"type":"string"},"silver":{"type":"boolean"},"slots":{"type":"number"},"townId":{"type":"string"},"townName":{"type":"string"},"wearBlocked":{"type":"boolean"}},"required":["id","jobs","level","maxLevel","name","silver","slots","townId","townName","wearBlocked"],"type":"object"},"type":"array"}},"required":["canManage","store","towns","treasuryFarthings","works"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/open-works-level":{"post":{"operationId":"open-works-level","summary":"Reopen a closed works with timber or use an expansion kit to add a level. Completed shifts wear the works, and levels above level 1 cost daily upkeep.","description":"Reopen a closed works with timber or use an expansion kit to add a level. Completed shifts wear the works, and levels above level 1 cost daily upkeep.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"level":{"type":"number"}},"required":["level"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"worksId":{"type":"string","minLength":1,"description":"The works' id, from the works read."}},"required":["worksId"]}}}}}}}},"/v1/close-works-level":{"post":{"operationId":"close-works-level","summary":"Close the top level of a shire works and cancel its open jobs. Wear carries over until the works reopens from closed.","description":"Close the top level of a shire works and cancel its open jobs. Wear carries over until the works reopens from closed.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"level":{"type":"number"}},"required":["level"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"worksId":{"type":"string","minLength":1,"description":"The works' id, from the works read."}},"required":["worksId"]}}}}}}}},"/v1/post-works-jobs":{"post":{"operationId":"post-works-jobs","summary":"Post jobs for today at a shire works. The treasury sets aside wages for each slot and receives any unused wages at reset.","description":"Post jobs for today at a shire works. The treasury sets aside wages for each slot and receives any unused wages at reset.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"jobId":{"type":"string"}},"required":["jobId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"worksId":{"type":"string","minLength":1,"description":"The works' id, from the works read."},"wage":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The daily wage for each slot. In integer farthings: multiply the amount in pence by 4."},"slots":{"description":"The number of places to post. Defaults to the open capacity.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"approvalId":{"description":"A passed council payment motion for exactly this payment, when the payment is large enough to need one.","type":"string"}},"required":["worksId","wage"]}}}}}}}},"/v1/council":{"get":{"operationId":"council","summary":"Read the shire council: members and offices, the election and its lists, motions, and early election petitions.","description":"Read the shire council: members and offices, the election and its lists, motions, and early election petitions.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"assessedLandFarthings":{"description":"The viewer's assessed land in the shire and the least that makes a\nfreeholder, who may vote once voting opens.","type":"number"},"canManage":{"type":"boolean"},"candidates":{"items":{"properties":{"ai":{"description":"An AI never consents to a human's list, so it is no running mate.","type":"boolean"},"id":{"type":"string"},"name":{"type":"string"}},"required":["ai","id","name"],"type":"object"},"type":"array"},"crownDebtFarthings":{"type":"number"},"day":{"type":"number"},"election":{"anyOf":[{"type":"null"},{"properties":{"closesDay":{"type":"number"},"eligible":{"type":"boolean"},"id":{"type":"string"},"lists":{"items":{"properties":{"candidateCharacterIds":{"items":{"type":"string"},"type":"array"},"candidates":{"items":{"properties":{"characterId":{"type":"string"},"consented":{"type":"boolean"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":"string"}},"required":["characterId","consented","look","name"],"type":"object"},"type":"array"},"consentedCharacterIds":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"leaderCharacterId":{"type":"string"},"statement":{"type":"string"}},"required":["candidateCharacterIds","candidates","consentedCharacterIds","id","leaderCharacterId","statement"],"type":"object"},"type":"array"},"myVoteListId":{"type":["null","string"]},"openedDay":{"type":"number"},"votingStartsDay":{"type":"number"}},"required":["closesDay","eligible","id","lists","myVoteListId","openedDay","votingStartsDay"],"type":"object"}]},"freeholderFarthings":{"type":"number"},"ledger":{"anyOf":[{"type":"null"},{"items":{"properties":{"assetId":{"type":"string"},"day":{"type":"number"},"direction":{"enum":["in","out"],"type":"string"},"id":{"type":"number"},"qty":{"type":"number"},"reason":{"type":"string"},"storeTownId":{"description":"null for the treasury, else the town whose shire store moved.","type":["null","string"]}},"required":["assetId","day","direction","id","qty","reason","storeTownId"],"type":"object"},"type":"array"}],"description":"Council members only; null for everyone else."},"members":{"items":{"properties":{"characterId":{"type":["null","string"]},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"name":{"type":["null","string"]},"role":{"anyOf":[{"enum":["coroner","escheator","justice","marshal","sheriff","treasurer","warden"],"type":"string"},{"type":"null"}]},"seat":{"type":"number"}},"required":["characterId","look","name","role"],"type":"object"},"type":"array"},"motions":{"items":{"properties":{"closesAtMs":{"type":"number"},"consumedDay":{"type":["null","number"]},"id":{"type":"string"},"kind":{"enum":["assignment","decree","early-election","raise-army","sheriff","spend","war"],"type":"string"},"myVote":{"type":["boolean","null"]},"ownMotion":{"type":"boolean"},"passed":{"type":["boolean","null"]},"payload":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"kind":{"const":"sheriff","type":"string"}},"required":["characterId","kind"],"type":"object"},{"properties":{"kind":{"const":"early-election","type":"string"},"termStartedDay":{"type":"number"}},"required":["kind","termStartedDay"],"type":"object"},{"properties":{"characterId":{"type":"string"},"kind":{"const":"assignment","type":"string"},"role":{"$ref":"#/components/schemas/ShireRole"}},"required":["characterId","kind","role"],"type":"object"},{"properties":{"amountFarthings":{"type":"number"},"commandName":{"type":"string"},"funderHolderId":{"type":"string"},"input":{"additionalProperties":{},"type":"object"},"kind":{"const":"spend","type":"string"},"termStartedDay":{"type":"number"}},"required":["amountFarthings","commandName","funderHolderId","input","kind","termStartedDay"],"type":"object"},{"properties":{"homeTownId":{"type":"string"},"kind":{"const":"raise-army","type":"string"}},"required":["homeTownId","kind"],"type":"object"},{"properties":{"kind":{"const":"war","type":"string"},"target":{"properties":{"id":{"type":"string"},"kind":{"enum":["army","band","town"],"type":"string"},"takeoverMayorId":{"type":"string"}},"required":["id","kind"],"type":"object"}},"required":["kind","target"],"type":"object"},{"properties":{"decreeKindId":{"type":"string"},"input":{"additionalProperties":{},"type":"object"},"kind":{"const":"decree","type":"string"},"untilDay":{"type":"number"}},"required":["decreeKindId","input","kind","untilDay"],"type":"object"}]},"proposerName":{"type":"string"},"resolvedDay":{"type":["null","number"]},"targetName":{"type":["null","string"]}},"required":["closesAtMs","consumedDay","id","kind","myVote","ownMotion","passed","payload","proposerName","resolvedDay","targetName"],"type":"object"},"type":"array"},"shireName":{"type":"string"},"spendContext":{"anyOf":[{"type":"null"},{"properties":{"funderHolderId":{"type":"string"},"termStartedDay":{"type":"number"}},"required":["funderHolderId","termStartedDay"],"type":"object"}]},"statementMaxLength":{"description":"The longest list or join statement `create-council-list` accepts.","type":"number"},"termEndsDay":{"type":["null","number"]},"termStartedDay":{"type":["null","number"]},"warTargets":{"description":"Council members only: only they may propose a war, and the list\nnames every band's leader. A motion's own target stays public.","items":{"anyOf":[{"properties":{"id":{"type":"string"},"kind":{"enum":["army","band"],"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"},{"properties":{"id":{"type":"string"},"kind":{"const":"town","type":"string"},"name":{"type":"string"},"takeoverMayorId":{"type":"string"}},"required":["id","kind","name","takeoverMayorId"],"type":"object"}]},"type":"array"}},"required":["assessedLandFarthings","canManage","candidates","crownDebtFarthings","day","election","freeholderFarthings","ledger","members","motions","shireName","spendContext","statementMaxLength","termEndsDay","termStartedDay","warTargets"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/create-council-list":{"post":{"operationId":"create-council-list","summary":"Stand for the shire council at the head of a candidate list. You need a title, and every other name must agree to join.","description":"Stand for the shire council at the head of a candidate list. You need a title, and every other name must agree to join.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionId":{"type":"string"},"listId":{"type":"string"}},"required":["electionId","listId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"candidateCharacterIds":{"minItems":1,"type":"array","items":{"type":"string"},"description":"The ids of everyone on the list, including you, in list order."},"statement":{"type":"string","minLength":1,"description":"A short statement shown to voters."}},"required":["candidateCharacterIds","statement"]}}}}}}}},"/v1/join-council-list":{"post":{"operationId":"join-council-list","summary":"Agree to stand on a council list that named you.","description":"Agree to stand on a council list that named you.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"listId":{"type":"string"}},"required":["listId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"listId":{"type":"string","description":"The list's id, from the council read."},"statement":{"type":"string","minLength":1,"description":"A short statement shown to voters."}},"required":["listId","statement"]}}}}}}}},"/v1/withdraw-council-list":{"post":{"operationId":"withdraw-council-list","summary":"Withdraw your council candidacy before voting starts. You are taken off your list.","description":"Withdraw your council candidacy before voting starts. You are taken off your list.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionId":{"type":"string"}},"required":["electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/vote-council":{"post":{"operationId":"vote-council","summary":"Vote for 1 candidate list in the shire council election. Only freeholders with enough land in the shire may vote.","description":"Vote for 1 candidate list in the shire council election. Only freeholders with enough land in the shire may vote.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionId":{"type":"string"}},"required":["electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"listId":{"type":"string","description":"The list's id, from the council read."}},"required":["listId"]}}}}}}}},"/v1/propose-council-motion":{"post":{"operationId":"propose-council-motion","summary":"Put a motion to the council: elect a Sheriff, assign an office, approve a payment, raise a shire army, or declare war. Members vote while it is open and a majority passes it.","description":"Put a motion to the council: elect a Sheriff, assign an office, approve a payment, raise a shire army, or declare war. Members vote while it is open and a majority passes it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"motionId":{"type":"string"}},"required":["motionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"payload":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"sheriff"},"characterId":{"type":"string"}},"required":["kind","characterId"]},{"type":"object","properties":{"kind":{"type":"string","const":"assignment"},"characterId":{"type":"string"},"role":{"type":"string","enum":["sheriff","treasurer","warden","marshal","escheator","justice","coroner"]}},"required":["kind","characterId","role"]},{"type":"object","properties":{"kind":{"type":"string","const":"spend"},"commandName":{"type":"string"},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"amountFarthings":{"type":"integer","minimum":0,"maximum":9007199254740991},"funderHolderId":{"type":"string"},"termStartedDay":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","commandName","input","amountFarthings","funderHolderId","termStartedDay"]},{"type":"object","properties":{"kind":{"type":"string","const":"raise-army"},"homeTownId":{"type":"string"}},"required":["kind","homeTownId"]},{"type":"object","properties":{"kind":{"type":"string","const":"war"},"target":{"type":"object","properties":{"kind":{"type":"string","enum":["army","band","town"]},"id":{"type":"string"},"takeoverMayorId":{"type":"string"}},"required":["kind","id"]}},"required":["kind","target"]}],"description":"What the motion decides, chosen by its `kind`: `sheriff`, `assignment`, `spend`, `raise-army`, or `war`."},"byLot":{"description":"Leave this out. Only AI councillors choose by lot.","type":"boolean","const":true}},"required":["payload"]}}}}}}}},"/v1/vote-council-motion":{"post":{"operationId":"vote-council-motion","summary":"Vote for or against an open council motion.","description":"Vote for or against an open council motion.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"motionId":{"type":"string"}},"required":["motionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"motionId":{"type":"string","description":"The motion's id, from the council read."},"approve":{"type":"boolean","description":"True to vote for it, false to vote against."}},"required":["motionId","approve"]}}}}}}}},"/v1/assign-shire-office":{"post":{"operationId":"assign-shire-office","summary":"As Sheriff, give a council member one of the shire offices, such as Treasurer or Marshal.","description":"As Sheriff, give a council member one of the shire offices, such as Treasurer or Marshal.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"characterId":{"type":"string"},"role":{"enum":["coroner","escheator","justice","marshal","sheriff","treasurer","warden"],"type":"string"}},"required":["characterId","role"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"characterId":{"type":"string","description":"The council member's id."},"role":{"type":"string","enum":["sheriff","treasurer","warden","marshal","escheator","justice","coroner"],"description":"The office to give."},"byLot":{"description":"Leave this out. Only AI councillors choose by lot.","type":"boolean","const":true}},"required":["characterId","role"]}}}}}}}},"/v1/petition-early-election":{"post":{"operationId":"petition-early-election","summary":"Open a petition for an early council election. Only an Earl or higher may, once a term, and it needs enough backers.","description":"Open a petition for an early council election. Only an Earl or higher may, once a term, and it needs enough backers.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"petitionId":{"type":"string"}},"required":["petitionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/back-early-election":{"post":{"operationId":"back-early-election","summary":"Back an open petition for an early council election. Council members and shire freeholders may.","description":"Back an open petition for an early council election. Council members and shire freeholders may.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionOpened":{"type":"boolean"},"petitionId":{"type":"string"}},"required":["electionOpened","petitionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"petitionId":{"type":"string","description":"The petition's id, from the council read."}},"required":["petitionId"]}}}}}}}},"/v1/petition-title":{"post":{"operationId":"petition-title","summary":"Ask the Crown or a lord to grant you a title. The fee is set aside from your purse until the grant, and returned if it is refused or cancelled.","description":"Ask the Crown or a lord to grant you a title. The fee is set aside from your purse until the grant, and returned if it is refused or cancelled.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"feeFarthings":{"type":"number"},"titleId":{"type":"string"}},"required":["feeFarthings","titleId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"grantorCharacterId":{"type":"string","minLength":1,"description":"The id of the Crown or lord you petition."},"titleId":{"type":"string","minLength":1,"description":"The title's id, from the titles read."},"feeFarthings":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The title's current fee, from the titles read. A changed fee is refused, so check it first."}},"required":["grantorCharacterId","titleId","feeFarthings"]}}}}}}}},"/v1/cancel-title-petition":{"post":{"operationId":"cancel-title-petition","summary":"Withdraw your title petition and get its fee back.","description":"Withdraw your title petition and get its fee back.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"canceled":{"type":"boolean"}},"required":["canceled"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/reject-title-petition":{"post":{"operationId":"reject-title-petition","summary":"Refuse a title petition made to you. The petitioner gets the fee back.","description":"Refuse a title petition made to you. The petitioner gets the fee back.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"rejected":{"type":"boolean"}},"required":["rejected"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"characterId":{"type":"string","minLength":1,"description":"The petitioner's id."}},"required":["characterId"]}}}}}}}},"/v1/grant-title":{"post":{"operationId":"grant-title","summary":"Grant a title someone petitioned you for. Its fee goes to the Crown.","description":"Grant a title someone petitioned you for. Its fee goes to the Crown.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"characterId":{"type":"string"},"feeFarthings":{"type":"number"},"titleId":{"type":"string"}},"required":["characterId","feeFarthings","titleId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"characterId":{"type":"string","minLength":1,"description":"The petitioner's id."},"titleId":{"type":"string","minLength":1,"description":"The title they asked for."}},"required":["characterId","titleId"]}}}}}}}},"/v1/titles":{"get":{"operationId":"titles","summary":"Read the titles: what each needs and allows, current fees, and petitions made to or by you.","description":"Read the titles: what each needs and allows, current fees, and petitions made to or by you.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"availableTitles":{"items":{"properties":{"byLord":{"description":"A lord who can knight may grant it; otherwise only the crown.","type":"boolean"},"feeFarthings":{"type":"number"},"id":{"type":"string"},"name":{"type":"string"},"refusal":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/CommandError"}]}},"required":["byLord","feeFarthings","id","name","refusal"],"type":"object"},"type":"array"},"grantors":{"items":{"properties":{"id":{"type":"string"},"monarch":{"type":["null","string"]},"name":{"type":"string"}},"required":["id","monarch","name"],"type":"object"},"type":"array"},"knighthood":{"anyOf":[{"type":"null"},{"properties":{"day":{"type":"number"},"name":{"type":"string"},"titleId":{"type":"string"}},"required":["day","name","titleId"],"type":"object"}]},"petition":{"anyOf":[{"type":"null"},{"properties":{"feeFarthings":{"type":"number"},"grantorCharacterId":{"type":"string"},"postedDay":{"type":"number"},"titleId":{"type":"string"}},"required":["feeFarthings","grantorCharacterId","postedDay","titleId"],"type":"object"}]},"petitionGrantorName":{"type":["null","string"]},"petitions":{"items":{"properties":{"characterId":{"type":"string"},"name":{"type":"string"},"petition":{"anyOf":[{"type":"null"},{"properties":{"feeFarthings":{"type":"number"},"grantorCharacterId":{"type":"string"},"postedDay":{"type":"number"},"titleId":{"type":"string"}},"required":["feeFarthings","grantorCharacterId","postedDay","titleId"],"type":"object"}]},"titleName":{"type":["null","string"]}},"required":["characterId","name","titleName"],"type":"object"},"type":"array"},"rankFacts":{"properties":{"burgess":{"type":"number"},"plotsOwned":{"type":"number"},"salesFarthings":{"type":"number"},"workshopsOwned":{"type":"number"}},"required":["burgess","plotsOwned","salesFarthings","workshopsOwned"],"type":"object"},"ranks":{"description":"The rank ladder in content order, each rank in the viewer's form\nwith the facts it requires, beside the viewer's own facts so a\nscreen can show where they stand.","items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"},"requires":{"properties":{"burgess":{"type":"number"},"plotsOwned":{"type":"number"},"salesFarthings":{"type":"number"},"workshopsOwned":{"type":"number"}},"type":"object"},"tier":{"type":"number"}},"required":["displayName","id","requires","tier"],"type":"object"},"type":"array"},"title":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/Title"}]},"titleName":{"type":["null","string"]},"titleSinceDay":{"type":["null","number"]}},"required":["availableTitles","grantors","knighthood","petition","petitionGrantorName","petitions","rankFacts","ranks","title","titleName","titleSinceDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/file-complaint":{"post":{"operationId":"file-complaint","summary":"Complain to the Coroner that a character committed a crime. Only an official may bring the charge.","description":"Complain to the Coroner that a character committed a crime. Only an official may bring the charge.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"caseId":{"type":"string"}},"required":["caseId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"accusedId":{"type":"string","minLength":1,"description":"The accused character's id."},"townId":{"type":"string","minLength":1,"description":"The town where it happened."},"charge":{"type":"string","minLength":1,"maxLength":1000,"description":"What happened, in your words."}},"required":["accusedId","townId","charge"]}}}}}}}},"/v1/charge-character":{"post":{"operationId":"charge-character","summary":"Bring a charge against a character, as the Coroner anywhere in the shire or as mayor in your own town. The accused then has time to answer before a judge rules.","description":"Bring a charge against a character, as the Coroner anywhere in the shire or as mayor in your own town. The accused then has time to answer before a judge rules.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"caseId":{"type":"string"},"charged":{"type":"boolean"}},"required":["caseId","charged"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"accusedId":{"type":"string","minLength":1,"description":"The accused character's id."},"townId":{"type":"string","minLength":1,"description":"The town where it happened."},"charge":{"type":"string","minLength":1,"maxLength":1000,"description":"The charge, in your words."},"caseId":{"description":"A complaint to take up, from the court read.","type":"string","minLength":1},"evidenceRefs":{"type":"object","properties":{"commandIds":{"maxItems":20,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"transferIds":{"maxItems":20,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"eventIds":{"maxItems":20,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}},"required":["commandIds","transferIds","eventIds"],"description":"Ids of trial records to attach, from the court-evidence read."},"byRecords":{"description":"Leave this out. Only AI officials act by the records alone.","type":"boolean","const":true}},"required":["accusedId","townId","charge","evidenceRefs"]}}}}}}}},"/v1/argue-case":{"post":{"operationId":"argue-case","summary":"Answer a charge against you in writing, while the case is open for your argument.","description":"Answer a charge against you in writing, while the case is open for your argument.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"submitted":{"type":"boolean"}},"required":["submitted"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"caseId":{"type":"string","minLength":1,"description":"The case's id, from the court read."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Your argument."}},"required":["caseId","text"]}}}}}}}},"/v1/respond-case":{"post":{"operationId":"respond-case","summary":"Reply in writing to the accused's argument, as the official who brought the charge.","description":"Reply in writing to the accused's argument, as the official who brought the charge.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"submitted":{"type":"boolean"}},"required":["submitted"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"caseId":{"type":"string","minLength":1,"description":"The case's id, from the court read."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Your response."}},"required":["caseId","text"]}}}}}}}},"/v1/appoint-case-judge":{"post":{"operationId":"appoint-case-judge","summary":"As Sheriff, name another council member to judge a case the Justice of the Peace cannot hear.","description":"As Sheriff, name another council member to judge a case the Justice of the Peace cannot hear.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"caseId":{"type":"string"},"judgeCharacterId":{"type":"string"}},"required":["caseId","judgeCharacterId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"caseId":{"type":"string","minLength":1,"description":"The case's id, from the court read."},"characterId":{"type":"string","minLength":1,"description":"The council member's id."}},"required":["caseId","characterId"]}}}}}}}},"/v1/rule-case":{"post":{"operationId":"rule-case","summary":"As the case's judge, dismiss it or find the accused guilty and pass sentence: a fine, jail, banishment, or execution, within the law's limits.","description":"As the case's judge, dismiss it or find the accused guilty and pass sentence: a fine, jail, banishment, or execution, within the law's limits.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"caseId":{"type":"string"},"sentence":{"anyOf":[{"type":"null"},{"properties":{"assets":{"items":{"properties":{"assetId":{"type":"string"},"qty":{"type":"number"}},"required":["assetId","qty"],"type":"object"},"type":"array"},"kind":{"const":"fine","type":"string"},"servedDay":{"type":"number"}},"required":["assets","kind","servedDay"],"type":"object"},{"properties":{"fromDay":{"type":"number"},"kind":{"const":"jail","type":"string"},"untilDay":{"type":"number"}},"required":["fromDay","kind","untilDay"],"type":"object"},{"properties":{"fromDay":{"type":"number"},"kind":{"const":"banishment","type":"string"},"townId":{"type":"string"},"untilDay":{"type":"number"}},"required":["fromDay","kind","townId","untilDay"],"type":"object"},{"properties":{"day":{"type":"number"},"kind":{"const":"execution","type":"string"}},"required":["day","kind"],"type":"object"}]},"verdict":{"enum":["dismissed","guilty"],"type":"string"}},"required":["caseId","sentence","verdict"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"caseId":{"type":"string","minLength":1,"description":"The case's id, from the court read."},"verdict":{"type":"string","enum":["dismissed","guilty"],"description":"`dismissed` or `guilty`."},"sentence":{"description":"For a guilty verdict, the sentence chosen by its `kind`.","oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"fine"},"assets":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","minLength":1},"qty":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"required":["assetId","qty"]}}},"required":["kind","assets"]},{"type":"object","properties":{"kind":{"type":"string","const":"jail"},"days":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"required":["kind","days"]},{"type":"object","properties":{"kind":{"type":"string","const":"banishment"},"townId":{"type":"string","minLength":1},"days":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"required":["kind","townId","days"]},{"type":"object","properties":{"kind":{"type":"string","const":"execution"}},"required":["kind"]}]},"byRecords":{"description":"Leave this out. Only AI officials act by the records alone.","type":"boolean","const":true}},"required":["caseId","verdict"]}}}}}}}},"/v1/pardon-sentence":{"post":{"operationId":"pardon-sentence","summary":"As the Crown, pardon a guilty sentence and lift it.","description":"As the Crown, pardon a guilty sentence and lift it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"caseId":{"type":"string"}},"required":["caseId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"caseId":{"type":"string","minLength":1,"description":"The case's id, from the court read."}},"required":["caseId"]}}}}}}}},"/v1/court":{"get":{"operationId":"court","summary":"Read the shire court: complaints, open and closed cases, their stages and deadlines, and verdicts.","description":"Read the shire court: complaints, open and closed cases, their stages and deadlines, and verdicts.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"cases":{"items":{"properties":{"accusedId":{"type":"string"},"accusedName":{"type":"string"},"argumentEndsDay":{"type":["null","number"]},"canAppointJudge":{"type":"boolean"},"canInspectEvidence":{"type":"boolean"},"canJudge":{"type":"boolean"},"canPardon":{"type":"boolean"},"charge":{"type":"string"},"chargedDay":{"type":["null","number"]},"chargingOfficialId":{"type":["null","string"]},"chargingOfficialName":{"type":["null","string"]},"closedDay":{"type":["null","number"]},"id":{"type":"string"},"jailRationDays":{"description":"Longest jail term the seat's shire store can feed, when the judge may rule.","type":["null","number"]},"pardonedDay":{"type":["null","number"]},"responseEndsDay":{"type":["null","number"]},"rulingEndsDay":{"type":["null","number"]},"sentence":{"anyOf":[{"type":"null"},{"properties":{"assets":{"items":{"properties":{"assetId":{"type":"string"},"qty":{"type":"number"}},"required":["assetId","qty"],"type":"object"},"type":"array"},"kind":{"const":"fine","type":"string"},"servedDay":{"type":"number"}},"required":["assets","kind","servedDay"],"type":"object"},{"properties":{"fromDay":{"type":"number"},"kind":{"const":"jail","type":"string"},"untilDay":{"type":"number"}},"required":["fromDay","kind","untilDay"],"type":"object"},{"properties":{"fromDay":{"type":"number"},"kind":{"const":"banishment","type":"string"},"townId":{"type":"string"},"untilDay":{"type":"number"}},"required":["fromDay","kind","townId","untilDay"],"type":"object"},{"properties":{"day":{"type":"number"},"kind":{"const":"execution","type":"string"}},"required":["day","kind"],"type":"object"}]},"sentenceLimits":{"anyOf":[{"type":"null"},{"properties":{"banishmentLeftDays":{"type":"number"},"banishmentWindowDays":{"type":"number"},"fineLeftFarthings":{"type":"number"},"fineNoTakingFarthings":{"type":"number"},"fineTakenPercent":{"type":"number"},"fineWindowFarthings":{"type":"number"},"jailLeftDays":{"type":"number"},"jailWindowDays":{"type":"number"},"windowDays":{"type":"number"}},"required":["banishmentLeftDays","banishmentWindowDays","fineLeftFarthings","fineNoTakingFarthings","fineTakenPercent","fineWindowFarthings","jailLeftDays","jailWindowDays","windowDays"],"type":"object"}],"description":"The legal limits and what the cap window leaves, when the judge may rule."},"statements":{"items":{"properties":{"authorName":{"type":"string"},"day":{"type":"number"},"kind":{"enum":["argument","response"],"type":"string"},"text":{"type":"string"}},"required":["authorName","day","kind","text"],"type":"object"},"type":"array"},"substituteJudges":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"townId":{"type":"string"},"verdict":{"anyOf":[{"enum":["dismissed","guilty","lapsed"],"type":"string"},{"type":"null"}]}},"required":["accusedId","accusedName","argumentEndsDay","canAppointJudge","canInspectEvidence","canJudge","canPardon","charge","chargedDay","chargingOfficialId","chargingOfficialName","closedDay","id","jailRationDays","pardonedDay","responseEndsDay","rulingEndsDay","sentence","sentenceLimits","statements","substituteJudges","townId","verdict"],"type":"object"},"type":"array"},"chargingTownIds":{"items":{"type":"string"},"type":"array"},"crown":{"anyOf":[{"type":"null"},{"properties":{"id":{"type":"string"},"title":{"type":"string"}},"required":["id","title"],"type":"object"}],"description":"The sitting monarch, whom no one may accuse, and King or Queen."},"gaolTownId":{"description":"The seat town, whose gaol holds prisoners and whose store feeds them.","type":["null","string"]},"recentRobbers":{"description":"People who robbed the reader lately, so a victim can name them.","items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"substituteJudges":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"}},"required":["cases","chargingTownIds","crown","gaolTownId","recentRobbers","substituteJudges"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/grant-shire-land":{"post":{"operationId":"grant-shire-land","summary":"As Escheator, give a shire-held plot to a citizen. It is theirs at once and counts against their land cap.","description":"As Escheator, give a shire-held plot to a citizen. It is theirs at once and counts against their land cap.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"plotId":{"type":"string"}},"required":["plotId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","minLength":1,"description":"The plot's id, from the escheator read."},"livestockId":{"description":"For an empty initial pasture, choose the livestock good id. A pasture that already has animals keeps its species.","type":"string"},"characterId":{"type":"string","minLength":1,"description":"The recipient's id."}},"required":["plotId","characterId"]}}}}}}}},"/v1/list-shire-land":{"post":{"operationId":"list-shire-land","summary":"As Escheator, offer a shire-held plot for sale at an asking price. Anyone who may own it can buy it outright.","description":"As Escheator, offer a shire-held plot for sale at an asking price. Anyone who may own it can buy it outright.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"},"plotId":{"type":"string"}},"required":["orderId","plotId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","minLength":1,"description":"The plot's id, from the escheator read."},"ask":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The asking price. In integer farthings: multiply the amount in pence by 4."}},"required":["plotId","ask"]}}}}}}}},"/v1/withdraw-shire-land":{"post":{"operationId":"withdraw-shire-land","summary":"As Escheator, take a shire plot off sale.","description":"As Escheator, take a shire plot off sale.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"plotId":{"type":"string"}},"required":["plotId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","minLength":1,"description":"The plot's id, from the escheator read."}},"required":["plotId"]}}}}}}}},"/v1/buy-shire-land":{"post":{"operationId":"buy-shire-land","summary":"Buy a shire plot offered for sale. The coin goes to the shire treasury and the plot is yours at once.","description":"Buy a shire plot offered for sale. The coin goes to the shire treasury and the plot is yours at once.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"},"price":{"type":"number"}},"required":["orderId","price"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","minLength":1,"description":"The plot's id, from the escheator read."},"livestockId":{"description":"For an empty initial pasture, choose the livestock good id. A pasture that already has animals keeps its species.","type":"string"},"ask":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The asking price you saw. A changed price is refused, so check it first."}},"required":["plotId","ask"]}}}}}}}},"/v1/escheator":{"get":{"operationId":"escheator","summary":"Read the shire's own land and which plots are for sale.","description":"Read the shire's own land and which plots are for sale.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"assets":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"qty":{"type":"number"}},"required":["id","name","qty"],"type":"object"},"type":"array"},"breedingFloor":{"type":"number"},"canManage":{"type":"boolean"},"day":{"type":"number"},"plots":{"items":{"properties":{"ask":{"type":["null","number"]},"canGrant":{"type":"boolean"},"hasWorkshop":{"type":"boolean"},"herd":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"qty":{"type":"number"}},"required":["displayName","qty"],"type":"object"}]},"id":{"type":"string"},"name":{"type":"string"},"pasture":{"type":"boolean"},"townId":{"type":"string"},"townName":{"type":"string"},"use":{"$ref":"#/components/schemas/PlotUse"}},"required":["ask","canGrant","hasWorkshop","herd","id","name","pasture","townId","townName","use"],"type":"object"},"type":"array"},"recipients":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"starterPasture":{"type":"boolean"}},"required":["id","name","starterPasture"],"type":"object"},"type":"array"},"starterLivestock":{"items":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"starterPasture":{"type":"boolean"}},"required":["assets","breedingFloor","canManage","day","plots","recipients","starterLivestock","starterPasture"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/post-shire-order":{"post":{"operationId":"post-shire-order","summary":"As Treasurer, buy or sell goods for the shire store on the seat town's market. The coin or goods are held on the book until the order fills or is cancelled.","description":"As Treasurer, buy or sell goods for the shire store on the seat town's market. The coin or goods are held on the book until the order fills or is cancelled.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"filled":{"type":"number"},"orderId":{"type":"string"},"remaining":{"type":"number"}},"required":["filled","orderId","remaining"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"goodId":{"type":"string","minLength":1,"description":"The good's id."},"side":{"type":"string","enum":["buy","sell"],"description":"`buy` or `sell`."},"price":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The price for each unit. In integer farthings: multiply the amount in pence by 4."},"qty":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"How many units."},"approvalId":{"description":"A passed council payment motion for exactly this payment, when the payment is large enough to need one.","type":"string"}},"required":["goodId","side","price","qty"]}}}}}}}},"/v1/cancel-shire-order":{"post":{"operationId":"cancel-shire-order","summary":"As Treasurer, cancel a shire store order. Its coin or goods return to the store.","description":"As Treasurer, cancel a shire store order. Its coin or goods return to the store.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"cancelled":{"type":"boolean"}},"required":["cancelled"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"description":"The order's id, from the shire-stores read."}},"required":["orderId"]}}}}}}}},"/v1/shire-stores":{"get":{"operationId":"shire-stores","summary":"Read the shire store and treasury and the store's open orders.","description":"Read the shire store and treasury and the store's open orders.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"canTrade":{"type":"boolean"},"goods":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"orders":{"items":{"properties":{"goodId":{"type":"string"},"goodName":{"type":"string"},"id":{"type":"string"},"price":{"type":"number"},"qty":{"type":"number"},"side":{"$ref":"#/components/schemas/OrderSide"}},"required":["goodId","goodName","id","price","qty","side"],"type":"object"},"type":"array"},"townName":{"type":"string"},"treasuryFarthings":{"type":["null","number"]}},"required":["canTrade","goods","orders","townName","treasuryFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/pay-crown-tax":{"post":{"operationId":"pay-crown-tax","summary":"As Sheriff, pay part or all of the shire's debt to the Crown from the treasury. While a debt is owed the silver mine stays closed.","description":"As Sheriff, pay part or all of the shire's debt to the Crown from the treasury. While a debt is owed the silver mine stays closed.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"debtFarthings":{"type":"number"},"paidFarthings":{"type":"number"}},"required":["debtFarthings","paidFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"amountFarthings":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"How much to pay, no more than the debt. In integer farthings: multiply the amount in pence by 4."},"approvalId":{"description":"A passed council payment motion for exactly this payment, when the payment is large enough to need one.","type":"string"}},"required":["amountFarthings"]}}}}}}}},"/v1/set-crown-dial":{"post":{"operationId":"set-crown-dial","summary":"As the Crown, move the Crown tax up or down from its automatic level, within limits.","description":"As the Crown, move the Crown tax up or down from its automatic level, within limits.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"percent":{"type":"number"}},"required":["percent"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The change from the automatic level, as a percentage."}},"required":["percent"]}}}}}}}},"/v1/royal-announcement":{"post":{"operationId":"royal-announcement","summary":"As the Crown, issue a public announcement.","description":"As the Crown, issue a public announcement.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"day":{"type":"number"}},"required":["day"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":400,"pattern":"^[^\\p{Cc}\\p{Cf}]+$","description":"The announcement."}},"required":["text"]}}}}}}}},"/v1/crown":{"get":{"operationId":"crown","summary":"Read the Crown tax, its dial and limits, and the shire's Crown debt.","description":"Read the Crown tax, its dial and limits, and the shire's Crown debt.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"canPay":{"type":"boolean"},"canSetDial":{"type":"boolean"},"debtFarthings":{"type":"number"},"dialMaxPercent":{"type":"number"},"dialPercent":{"type":"number"},"kingName":{"type":["null","string"]},"kingTitle":{"type":["null","string"]},"lastAssessedDay":{"type":["null","number"]}},"required":["canPay","canSetDial","debtFarthings","dialMaxPercent","dialPercent","kingName","kingTitle","lastAssessedDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/propose-decree":{"post":{"operationId":"propose-decree","summary":"As a member of the King's council, propose a decree for the Crown to approve or reject. It lapses if not decided in time.","description":"As a member of the King's council, propose a decree for the Crown to approve or reject. It lapses if not decided in time.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"motionId":{"type":"string"}},"required":["motionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"kindId":{"type":"string","minLength":1,"maxLength":64,"description":"The decree kind, from the kings-council read."},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The decree's terms, as its kind requires."}},"required":["kindId","input"]}}}}}}}},"/v1/approve-decree":{"post":{"operationId":"approve-decree","summary":"As the Crown, enact a proposed decree.","description":"As the Crown, enact a proposed decree.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"anyOf":[{"properties":{"enacted":{"type":"boolean"},"motionId":{"type":"string"},"reason":{"$ref":"#/components/schemas/CommandError"}},"required":["enacted","motionId","reason"],"type":"object"},{"properties":{"enacted":{"type":"boolean"},"motionId":{"type":"string"}},"required":["enacted","motionId"],"type":"object"}]},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"motionId":{"type":"string","minLength":1,"description":"The decree's id, from the kings-council read."}},"required":["motionId"]}}}}}}}},"/v1/reject-decree":{"post":{"operationId":"reject-decree","summary":"As the Crown, reject a proposed decree.","description":"As the Crown, reject a proposed decree.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"motionId":{"type":"string"}},"required":["motionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"motionId":{"type":"string","minLength":1,"description":"The decree's id, from the kings-council read."}},"required":["motionId"]}}}}}}}},"/v1/kings-council":{"get":{"operationId":"kings-council","summary":"Read the King's council: its members, the decree kinds, and open and past decrees.","description":"Read the King's council: its members, the decree kinds, and open and past decrees.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"day":{"type":"number"},"dialMaxPercent":{"type":"number"},"dialPercent":{"type":"number"},"grantableTitles":{"items":{"properties":{"displayName":{"type":"string"},"displayNameBySex":{"additionalProperties":{"type":"string"},"type":"object"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"},"type":"array"},"grantees":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"sexId":{"type":"string"}},"required":["id","name","sexId"],"type":"object"},"type":"array"},"history":{"items":{"properties":{"accusedName":{"type":["null","string"]},"id":{"type":"string"},"kindId":{"type":"string"},"kindName":{"type":"string"},"outcome":{"$ref":"#/components/schemas/DecreeOutcome"},"own":{"type":"boolean"},"percent":{"type":["null","number"]},"proposerName":{"type":"string"},"recipientName":{"type":["null","string"]},"resolvedDay":{"type":["null","number"]},"text":{"description":"Player-written proclamation text: untrusted, shown escaped.","type":["null","string"]},"titleName":{"type":["null","string"]},"untilDay":{"type":"number"}},"required":["accusedName","id","kindId","kindName","outcome","own","percent","proposerName","recipientName","resolvedDay","text","titleName","untilDay"],"type":"object"},"type":"array"},"isKing":{"type":"boolean"},"isMember":{"type":"boolean"},"kinds":{"items":{"properties":{"commandName":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"required":["commandName","id","name"],"type":"object"},"type":"array"},"king":{"anyOf":[{"type":"null"},{"properties":{"crowned":{"const":true,"description":"The sitting monarch: a portrait draws the Crown of England, which the\nCrown keeps on its holder (the regalia), public like the Crown itself.","type":"boolean"},"faceId":{"type":"string"},"look":{"properties":{"eyeColour":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/LookColour"}]},"facialHairId":{"type":["null","string"]},"hairColour":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/LookColour"}]},"hairStyleId":{"type":["null","string"]},"jawId":{"type":"string"}},"required":["eyeColour","facialHairId","hairColour","hairStyleId"],"type":"object"},"sexId":{"type":"string"},"title":{"anyOf":[{"type":"null"},{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"required":["displayName","id"],"type":"object"}]},"worn":{"items":{"properties":{"gearId":{"type":"string"},"slotIds":{"items":{"type":"string"},"type":"array"}},"required":["gearId","slotIds"],"type":"object"},"type":"array"}},"required":["faceId","look","sexId","title","worn"],"type":"object"}],"description":"The sitting monarch's portrait: appearance and what they wear\n(the regalia among it), drawn as their paper doll."},"kingName":{"type":["null","string"]},"kingTitle":{"description":"King or Queen, by the holder's sex; null while none is named.","type":["null","string"]},"lapseDays":{"type":"number"},"members":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"titleName":{"type":"string"}},"required":["id","name","titleName"],"type":"object"},"type":"array"},"myOpen":{"type":"number"},"open":{"items":{"properties":{"accusedName":{"type":["null","string"]},"id":{"type":"string"},"kindId":{"type":"string"},"kindName":{"type":"string"},"outcome":{"$ref":"#/components/schemas/DecreeOutcome"},"own":{"type":"boolean"},"percent":{"type":["null","number"]},"proposerName":{"type":"string"},"recipientName":{"type":["null","string"]},"resolvedDay":{"type":["null","number"]},"text":{"description":"Player-written proclamation text: untrusted, shown escaped.","type":["null","string"]},"titleName":{"type":["null","string"]},"untilDay":{"type":"number"}},"required":["accusedName","id","kindId","kindName","outcome","own","percent","proposerName","recipientName","resolvedDay","text","titleName","untilDay"],"type":"object"},"type":"array"},"openLimit":{"type":"number"},"pardonable":{"items":{"properties":{"accusedName":{"type":"string"},"caseId":{"type":"string"},"charge":{"type":"string"}},"required":["accusedName","caseId","charge"],"type":"object"},"type":"array"}},"required":["day","dialMaxPercent","dialPercent","grantableTitles","grantees","history","isKing","isMember","kinds","king","kingName","kingTitle","lapseDays","members","myOpen","open","openLimit","pardonable"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/attach-case-evidence":{"post":{"operationId":"attach-case-evidence","summary":"Attach trial records to an open case, as an official who may see them.","description":"Attach trial records to an open case, as an official who may see them.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"attached":{"type":"boolean"}},"required":["attached"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"caseId":{"type":"string","minLength":1,"description":"The case's id, from the court read."},"evidenceRefs":{"type":"object","properties":{"commandIds":{"maxItems":20,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"transferIds":{"maxItems":20,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"eventIds":{"maxItems":20,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}},"required":["commandIds","transferIds","eventIds"],"description":"Ids of trial records to attach, from the court-evidence read."}},"required":["caseId","evidenceRefs"]}}}}}}}},"/v1/court-evidence":{"get":{"operationId":"court-evidence","summary":"Read the records a trial's officials may see: the accused's actions, trades, and events.","description":"Read the records a trial's officials may see: the accused's actions, trades, and events.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"attached":{"anyOf":[{"type":"null"},{"properties":{"commandIds":{"items":{"type":"number"},"type":"array"},"eventIds":{"items":{"type":"number"},"type":"array"},"transferIds":{"items":{"type":"number"},"type":"array"}},"required":["commandIds","eventIds","transferIds"],"type":"object"}],"description":"The records already attached: an attach replaces the set, so an\nofficial adding one resends these with it."},"evidence":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/CourtEvidenceView"}]},"fineMaxFarthings":{"type":["null","number"]}},"required":["attached","evidence","fineMaxFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"caseId","in":"query","required":true,"description":"The case's id, from the court read.","schema":{"type":"string","minLength":1}}]}},"/v1/create-character":{"post":{"operationId":"create-character","summary":"Create your character: names, a sex and face, a home town, and attributes from a preset or your own point split. You start lean with a little coin, food, and clothing.","description":"Create your character: names, a sex and face, a home town, and attributes from a preset or your own point split. You start lean with a little coin, food, and clothing.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"characterId":{"type":"string"}},"required":["characterId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"familyName":{"type":"string","description":"Your family name. Heirs keep it."},"givenName":{"type":"string","description":"Your given name."},"homeTownId":{"type":"string","description":"One of the home towns, from the character read."},"sexId":{"type":"string","description":"The sex's id, from the character read."},"faceId":{"type":"string","description":"A face for that sex, from the character read."},"look":{"description":"Hair, colours, and facial hair, from the character read.","type":"object","properties":{"hairStyleId":{"type":["string","null"]},"facialHairId":{"type":["string","null"]},"hairColourId":{"type":["string","null"]},"eyeColourId":{"type":["string","null"]}},"required":["hairStyleId","facialHairId","hairColourId","eyeColourId"]},"attributes":{"anyOf":[{"type":"object","properties":{"preset":{"type":"string"}},"required":["preset"]},{"type":"object","properties":{"str":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agi":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"end":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"int":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cha":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["str","agi","end","int","cha"]}],"description":"Either `{ preset }` with a preset id or your own split of the points."}},"required":["familyName","givenName","homeTownId","sexId","faceId","attributes"]}}}}}}}},"/v1/eat":{"post":{"operationId":"eat","summary":"Eat food you carry or, in your home town, food from your larder. An unfed day costs health and morale.","description":"Eat food you carry or, in your home town, food from your larder. An unfed day costs health and morale.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"nourishmentToday":{"type":"number"}},"required":["nourishmentToday"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"assetId":{"type":"string","description":"The food's id."},"qty":{"type":"integer","minimum":1,"maximum":100,"description":"How many units."},"from":{"description":"`purse` or `larder`.","type":"string","enum":["purse","larder"]}},"required":["assetId","qty"]}}},"example":{"clientCommandId":"3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913","input":{"assetId":"bread","qty":1,"from":"purse"}}}}}}},"/v1/forage":{"post":{"operationId":"forage","summary":"Spend today's main action foraging for greens that feed you for about 2 days. They cannot be traded and spoil fast.","description":"Spend today's main action foraging for greens that feed you for about 2 days. They cannot be traded and spoil fast.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{},"additionalProperties":false}}}}}}}},"/v1/move-food":{"post":{"operationId":"move-food","summary":"Move food between your purse and larder while in your home town. Larder food never spoils but must come out before you sell it.","description":"Move food between your purse and larder while in your home town. Larder food never spoils but must come out before you sell it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"larderNourishment":{"type":"number"}},"required":["larderNourishment"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"assetId":{"type":"string","description":"The food's id."},"qty":{"type":"integer","minimum":1,"maximum":100,"description":"How many units."},"to":{"type":"string","enum":["larder","purse"],"description":"`larder` or `purse`."}},"required":["assetId","qty","to"]}}}}}}}},"/v1/move-home":{"post":{"operationId":"move-home","summary":"Store coin, goods, or an item at your house, or take them back, in your home town. What you leave at home is safe from robbers but can only be reached there.","description":"Store coin, goods, or an item at your house, or take them back, in your home town. What you leave at home is safe from robbers but can only be reached there.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"homeWeight":{"type":"number"}},"required":["homeWeight"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"assetId":{"type":"string","description":"`coin`, a good's id, or an item's id."},"qty":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many units."},"to":{"type":"string","enum":["home","purse"],"description":"`home` to store or `purse` to take out."}},"required":["assetId","qty","to"]}}}}}}}},"/v1/equip-item":{"post":{"operationId":"equip-item","summary":"Put on an item you carry or take it off. Putting it on frees any slot it overlaps.","description":"Put on an item you carry or take it off. Putting it on frees any slot it overlaps.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"equippedItemIds":{"items":{"type":"string"},"type":"array"}},"required":["equippedItemIds"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"itemId":{"type":"string","description":"The item's id, from the character read."},"equipped":{"type":"boolean","description":"True to wear it, false to take it off."}},"required":["itemId","equipped"]}}}}}}}},"/v1/set-home-town":{"post":{"operationId":"set-home-town","summary":"Make another home town your home. You cannot change it again for some days, and your days of residence toward a town's freedom start over there.","description":"Make another home town your home. You cannot change it again for some days, and your days of residence toward a town's freedom start over there.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"homeTownId":{"type":"string"},"homeTownLockedUntilDay":{"type":"number"}},"required":["homeTownId","homeTownLockedUntilDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"homeTownId":{"type":"string","description":"One of the home towns."}},"required":["homeTownId"]}}}}}}}},"/v1/choose-trade-goal":{"post":{"operationId":"choose-trade-goal","summary":"Pick the trade you are working toward, or clear it. It tailors your guidance and suggested jobs and locks you into nothing.","description":"Pick the trade you are working toward, or clear it. It tailors your guidance and suggested jobs and locks you into nothing.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"tradeGoalSkillId":{"type":["null","string"]}},"required":["tradeGoalSkillId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"skillId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}],"description":"The skill's id, or null to clear it."}},"required":["skillId"]}}}}}}}},"/v1/choose-epitaph":{"post":{"operationId":"choose-epitaph","summary":"As an heir, carve 1 line from the fixed list on your forebear's stone. You choose only once.","description":"As an heir, carve 1 line from the fixed list on your forebear's stone. You choose only once.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"characterId":{"type":"string"},"epitaphId":{"type":"string"}},"required":["characterId","epitaphId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"epitaphId":{"type":"string","minLength":1,"maxLength":64,"description":"The epitaph's id, from the churchyard read."}},"required":["epitaphId"]}}}}}}}},"/v1/retreat":{"post":{"operationId":"retreat","summary":"Go into the parish's care from the next reset for at least a few days. While away you cannot act but need no food and pay no tax or rent, and your open market orders are cancelled except land listings.","description":"Go into the parish's care from the next reset for at least a few days. While away you cannot act but need no food and pay no tax or rent, and your open market orders are cancelled except land listings.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"fromDay":{"type":"number"},"untilDay":{"type":"number"}},"required":["fromDay","untilDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/leave-retreat":{"post":{"operationId":"leave-retreat","summary":"Come back from retreat once the minimum stay is over, or withdraw a retreat that has not started.","description":"Come back from retreat once the minimum stay is over, or withdraw a retreat that has not started.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"left":{"const":true,"type":"boolean"}},"required":["left"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/travel":{"post":{"operationId":"travel","summary":"Spend today's main action travelling 1 road step. Leaving town cancels your open market orders there and returns their goods and coin, and robbers may be waiting on the road.","description":"Spend today's main action travelling 1 road step. Leaving town cancels your open market orders there and returns their goods and coin, and robbers may be waiting on the road.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"toTownId":{"type":"string","description":"The next town or waypoint along a road."}},"required":["toTownId"]}}},"example":{"clientCommandId":"3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913","input":{"toTownId":"norwich"}}}}}}},"/v1/form-band":{"post":{"operationId":"form-band","summary":"Form a band and lead it. Bands travel, rob, and fight together.","description":"Form a band and lead it. Bands travel, rob, and fight together.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"bandId":{"type":"string"}},"required":["bandId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/invite-to-band":{"post":{"operationId":"invite-to-band","summary":"Invite a character who is in town with you to join your band.","description":"Invite a character who is in town with you to join your band.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"bandId":{"type":"string"},"invitedCharacterId":{"type":"string"}},"required":["bandId","invitedCharacterId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"characterId":{"type":"string","minLength":1,"description":"The character's id."}},"required":["characterId"]}}}}}}}},"/v1/join-band":{"post":{"operationId":"join-band","summary":"Accept an invitation to a band.","description":"Accept an invitation to a band.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"bandId":{"type":"string"}},"required":["bandId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"bandId":{"type":"string","minLength":1,"description":"The band's id, from the conflict read."}},"required":["bandId"]}}}}}}}},"/v1/leave-band":{"post":{"operationId":"leave-band","summary":"Leave your band. If you lead it, the band disbands.","description":"Leave your band. If you lead it, the band disbands.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"bandId":{"type":["null","string"]}},"required":["bandId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/disband-band":{"post":{"operationId":"disband-band","summary":"Disband the band you lead.","description":"Disband the band you lead.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"bandId":{"type":["null","string"]}},"required":["bandId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/set-combat-stance":{"post":{"operationId":"set-combat-stance","summary":"Set when you yield in a fight and how you answer robbers. It always applies, even when your band leader chooses the fight.","description":"Set when you yield in a fight and how you answer robbers. It always applies, even when your band leader chooses the fight.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"combatStance":{"properties":{"robberyResponse":{"enum":["always_resist","even_odds","hand_over"],"type":"string"},"yieldAtPercent":{"type":"number"}},"required":["robberyResponse","yieldAtPercent"],"type":"object"}},"required":["combatStance"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"yieldAtPercent":{"type":"integer","minimum":0,"maximum":100,"description":"Yield when your health falls to this share of full, from 0 to 100."},"robberyResponse":{"type":"string","enum":["hand_over","even_odds","always_resist"],"description":"`hand_over`, `even_odds` to resist when the odds look even or better, or `always_resist`."}},"required":["yieldAtPercent","robberyResponse"]}}}}}}}},"/v1/follow-band":{"post":{"operationId":"follow-band","summary":"Spend today's main action following your band leader's order to travel or rob. Following a robbery ends your newcomer protection.","description":"Spend today's main action following your band leader's order to travel or rob. Following a robbery ends your newcomer protection.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"bandId":{"type":"string","minLength":1}}}}}}}}}},"/v1/rob-travellers":{"post":{"operationId":"rob-travellers","summary":"Spend today's main action robbing travellers on a road step. It ends your newcomer protection at once, and your victims learn your name.","description":"Spend today's main action robbing travellers on a road step. It ends your newcomer protection at once, and your victims learn your name.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"toTownId":{"type":"string","minLength":1,"description":"The next town along the road step to watch."}},"required":["toTownId"]}}}}}}}},"/v1/work-plot":{"post":{"operationId":"work-plot","summary":"Spend today's main action working a plot you own, rent, or were hired on: sow, weed, reap, tend or breed livestock, build, or run a workshop recipe. Results land at the reset.","description":"Spend today's main action working a plot you own, rent, or were hired on: sow, weed, reap, tend or breed livestock, build, or run a workshop recipe. Results land at the reset.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The plot's id, from the land read."},"recipeId":{"description":"For a workshop, the recipe to work today.","type":"string"},"livestockId":{"description":"Name the new livestock good id to replace a herd you own with a pair from your pack at the reset. The old herd goes into your pack, where older animals may die that night.","type":"string"},"pastureWork":{"description":"Choose tend to collect wool or milk, or breed to advance toward a birth. The default is tend for sheep and cattle and breed for pigs, which can only breed.","type":"string","enum":["tend","breed"]}},"required":["plotId"]}}}}}}}},"/v1/gather":{"post":{"operationId":"gather","summary":"Spend today's main action gathering from your town's woods, waters, or fen. A thin stock gives less.","description":"Spend today's main action gathering from your town's woods, waters, or fen. A thin stock gives less.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"recipeId":{"type":"string","description":"The gathering recipe, such as woodcutting or fishing."}},"required":["recipeId"]}}}}}}}},"/v1/work-at-home":{"post":{"operationId":"work-at-home","summary":"Spend today's main action on a home recipe, such as spinning or making cheese, at your house in your home town. The inputs must be in your purse.","description":"Spend today's main action on a home recipe, such as spinning or making cheese, at your house in your home town. The inputs must be in your purse.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"recipeId":{"type":"string","description":"The recipe's id."}},"required":["recipeId"]}}}}}}}},"/v1/set-plot-crop":{"post":{"operationId":"set-plot-crop","summary":"Choose the crop for a fallow field you own or rent. A switch returns old seed to the owner and reserves new seed on worked fields when starter seed does not apply.","description":"Choose the crop for a fallow field you own or rent. A switch returns old seed to the owner and reserves new seed on worked fields when starter seed does not apply.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"cropGoodId":{"type":"string"},"plotId":{"type":"string"}},"required":["cropGoodId","plotId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The plot's id, from the land read."},"cropGoodId":{"type":"string","description":"The crop's good id."}},"required":["plotId","cropGoodId"]}}}}}}}},"/v1/stock-plot":{"post":{"operationId":"stock-plot","summary":"Stock a plot you own in your town with seed, livestock, upkeep goods, or tavern servings. Seed stays in the field, and a pasture keeps its breeding herd.","description":"Stock a plot you own in your town with seed, livestock, upkeep goods, or tavern servings. Seed stays in the field, and a pasture keeps its breeding herd.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"stored":{"type":"number"}},"required":["stored"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"Use the plot's id from land or the tavern's plotId from tavern."},"assetId":{"type":"string","description":"The good's id. For a tavern serving, use its goodId from tavern."},"qty":{"type":"integer","minimum":1,"maximum":100,"description":"How many units."},"out":{"type":"boolean","description":"True to take out, false to put in."}},"required":["plotId","assetId","qty","out"]}}}}}}}},"/v1/build-workshop":{"post":{"operationId":"build-workshop","summary":"Open a workshop on a site you own. It opens immediately, with upkeep covered for the first week.","description":"Open a workshop on a site you own. It opens immediately, with upkeep covered for the first week.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"plotId":{"type":"string"},"workshopTypeId":{"type":"string"}},"required":["plotId","workshopTypeId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The plot's id, from the land read."},"workshopTypeId":{"type":"string","description":"The workshop type, such as a bakehouse or smithy."}},"required":["plotId","workshopTypeId"]}}}}}}}},"/v1/set-recipe":{"post":{"operationId":"set-recipe","summary":"Choose the recipe a built workshop you work makes.","description":"Choose the recipe a built workshop you work makes.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"plotId":{"type":"string"},"recipeId":{"type":"string"}},"required":["plotId","recipeId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The plot's id, from the land read."},"recipeId":{"type":"string","description":"The recipe's id."}},"required":["plotId","recipeId"]}}}}}}}},"/v1/offer-lease":{"post":{"operationId":"offer-lease","summary":"Offer a plot you own for rent to anyone in its town. The renter works it and pays daily rent, a share of the harvest, or both.","description":"Offer a plot you own for rent to anyone in its town. The renter works it and pays daily rent, a share of the harvest, or both.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"leaseId":{"type":"string"}},"required":["leaseId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The plot's id, from the land read."},"rentPerDay":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Daily rent in coin. In integer farthings: multiply the amount in pence by 4."},"sharePercent":{"type":"integer","minimum":0,"maximum":100,"description":"Your share of the harvest, from 0 to 100."},"days":{"type":"integer","minimum":1,"maximum":3650,"description":"How many days the lease runs."}},"required":["plotId","rentPerDay","sharePercent","days"]}}}}}}}},"/v1/withdraw-lease":{"post":{"operationId":"withdraw-lease","summary":"Withdraw a lease offer nobody has accepted.","description":"Withdraw a lease offer nobody has accepted.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"withdrawn":{"const":true,"type":"boolean"}},"required":["withdrawn"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"leaseId":{"type":"string","description":"The lease's id, from the land read."}},"required":["leaseId"]}}}}}}}},"/v1/accept-lease":{"post":{"operationId":"accept-lease","summary":"Rent a plot on offer in your town. Rent is paid from your coin at each reset, and unpaid rent ends the lease.","description":"Rent a plot on offer in your town. Rent is paid from your coin at each reset, and unpaid rent ends the lease.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"untilDay":{"type":"number"}},"required":["untilDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"leaseId":{"type":"string","description":"The lease's id, from the land read."}},"required":["leaseId"]}}}}}}}},"/v1/end-lease":{"post":{"operationId":"end-lease","summary":"Give up land you rent before its lease runs out. It goes back to its owner at once with anything growing or stored on it, and no more rent is due.","description":"Give up land you rent before its lease runs out. It goes back to its owner at once with anything growing or stored on it, and no more rent is due.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"ended":{"const":true,"type":"boolean"}},"required":["ended"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"leaseId":{"type":"string","description":"The lease's id, from the land read."}},"required":["leaseId"]}}}}}}}},"/v1/post-job":{"post":{"operationId":"post-job","summary":"Post today's job on a plot you work. The wage for every slot is set aside at once, and what is not earned comes back at the reset.","description":"Post today's job on a plot you work. The wage for every slot is set aside at once, and what is not earned comes back at the reset.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"jobId":{"type":"string"}},"required":["jobId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The plot's id, from the land read."},"wage":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The day's wage for each worker. In integer farthings: multiply the amount in pence by 4."},"minSkill":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The lowest skill a worker needs."},"toolsProvided":{"type":"boolean","description":"True if you lend the workers your tools."},"slots":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many workers."}},"required":["plotId","wage","minSkill","toolsProvided","slots"]}}}}}}}},"/v1/take-job":{"post":{"operationId":"take-job","summary":"Spend today's main action on a posted job: you earn its wage at the reset, and the output goes to the employer. You cannot quit or switch actions until the reset; tomorrow you choose again.","description":"Spend today's main action on a posted job: you earn its wage at the reset, and the output goes to the employer. You cannot quit or switch actions until the reset; tomorrow you choose again.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"jobId":{"type":"string","description":"The job's id, from the land read."}},"required":["jobId"]}}}}}}}},"/v1/post-repair":{"post":{"operationId":"post-repair","summary":"Ask for a worn item to be repaired with goods from you or the artisan; clothes, cloaks, and shoes need only labour. Your item and fee are held until it is repaired or you withdraw.","description":"Ask for a worn item to be repaired with goods from you or the artisan; clothes, cloaks, and shoes need only labour. Your item and fee are held until it is repaired or you withdraw.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"repairId":{"type":"string"}},"required":["repairId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"itemId":{"type":"string","description":"The item's id, from the character read."},"feeFarthings":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The fee for the artisan. In integer farthings: multiply the amount in pence by 4."},"supplyMaterial":{"default":true,"description":"Supply the repair goods from your purse. Defaults to true; false asks the artisan to supply them.","type":"boolean"}},"required":["itemId","feeFarthings"]}}}}}}}},"/v1/withdraw-repair":{"post":{"operationId":"withdraw-repair","summary":"Withdraw your open repair request and recover everything held for it.","description":"Withdraw your open repair request and recover everything held for it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"repairId":{"type":"string"}},"required":["repairId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"repairId":{"type":"string","description":"The request's id, from the land read."}},"required":["repairId"]}}}}}}}},"/v1/post-town-repair":{"post":{"operationId":"post-town-repair","summary":"As mayor, ask for a town-owned item to be repaired, paid from the town chest.","description":"As mayor, ask for a town-owned item to be repaired, paid from the town chest.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"repairId":{"type":"string"}},"required":["repairId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"itemId":{"type":"string","description":"The chest item's id."},"feeFarthings":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The fee for the artisan. In integer farthings: multiply the amount in pence by 4."},"supplyMaterial":{"default":true,"description":"Supply the repair goods from the town chest. Defaults to true; false asks the artisan to supply them.","type":"boolean"}},"required":["itemId","feeFarthings"]}}}}}}}},"/v1/withdraw-town-repair":{"post":{"operationId":"withdraw-town-repair","summary":"As mayor, withdraw a town repair request. Everything held for it returns to the chest.","description":"As mayor, withdraw a town repair request. Everything held for it returns to the chest.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"repairId":{"type":"string"}},"required":["repairId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"repairId":{"type":"string","description":"The request's id, from the land read."}},"required":["repairId"]}}}}}}}},"/v1/repair-at":{"post":{"operationId":"repair-at","summary":"Spend today's main action at your workshop repairing items others asked to have mended. You earn their fees at the reset.","description":"Spend today's main action at your workshop repairing items others asked to have mended. You earn their fees at the reset.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"Your workshop's plot id."},"repairIds":{"description":"Choose requests from the land read; selected requests can use goods from your purse. Omit to repair only requests whose goods are supplied.","minItems":1,"type":"array","items":{"type":"string"}}},"required":["plotId"]}}}}}}}},"/v1/mend-clothes":{"post":{"operationId":"mend-clothes","summary":"Spend today's main action mending the clothes you carry and the clothes in your home store. Repairs happen at the reset and cost no coin or materials.","description":"Spend today's main action mending the clothes you carry and the clothes in your home store. Repairs happen at the reset and cost no coin or materials.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{},"additionalProperties":false}}}}}}}},"/v1/post-order":{"post":{"operationId":"post-order","summary":"Buy or sell a good on your town's market at your price. Choose a buyer to offer carried goods privately; the goods wait for that buyer to purchase.","description":"Buy or sell a good on your town's market at your price. Choose a buyer to offer carried goods privately; the goods wait for that buyer to purchase.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"filled":{"type":"number"},"nourishmentToday":{"type":"number"},"orderId":{"type":"string"},"remaining":{"type":"number"}},"required":["filled","orderId","remaining"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"goodId":{"type":"string","description":"The good's id."},"side":{"type":"string","enum":["buy","sell"],"description":"`buy` or `sell`."},"price":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The price for each unit. In integer farthings: multiply the amount in pence by 4."},"qty":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many units."},"buyerCharacterId":{"description":"For a private sale, the buyer's character id from the market read. Omit for a public order.","type":"string","minLength":1},"immediate":{"description":"A public buy must fill in full up to your price per unit. Refused purchases leave no waiting order.","type":"boolean"},"maxTotal":{"description":"The most you will pay for an immediate purchase. In integer farthings: multiply the amount in pence by 4.","type":"integer","minimum":1,"maximum":2147483647},"eat":{"description":"Eat the full purchase as soon as it fills. Requires food and an immediate purchase.","type":"boolean"},"estateAccount":{"type":"boolean"}},"required":["goodId","side","price","qty"]}}}}}}}},"/v1/cancel-order":{"post":{"operationId":"cancel-order","summary":"Cancel a waiting buy offer or sale listing and get its coin or goods back. You can cancel it right after posting.","description":"Cancel a waiting buy offer or sale listing and get its coin or goods back. You can cancel it right after posting.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"}},"required":["orderId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"orderId":{"type":"string","description":"The order's id, from the market read."}},"required":["orderId"]}}}}}}}},"/v1/buy-private-offer":{"post":{"operationId":"buy-private-offer","summary":"Buy some or all of a private goods offer addressed to you. You and the seller must both be in the offer's town.","description":"Buy some or all of a private goods offer addressed to you. You and the seller must both be in the offer's town.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"filled":{"type":"number"},"orderId":{"type":"string"},"remaining":{"type":"number"}},"required":["filled","orderId","remaining"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"description":"The private offer's id, from the market read."},"qty":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many units."}},"required":["orderId","qty"]}}}}}}}},"/v1/decline-private-offer":{"post":{"operationId":"decline-private-offer","summary":"Decline a private goods offer addressed to you and return its remaining goods to the seller. You can decline while away from its town.","description":"Decline a private goods offer addressed to you and return its remaining goods to the seller. You can decline while away from its town.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"}},"required":["orderId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"description":"The private offer's id, from the market read."}},"required":["orderId"]}}}}}}}},"/v1/post-listing":{"post":{"operationId":"post-listing","summary":"Offer an item you carry for sale in your town at your price. It waits until someone buys it or you cancel.","description":"Offer an item you carry for sale in your town at your price. It waits until someone buys it or you cancel.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"}},"required":["orderId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"itemId":{"type":"string","description":"The item's id, from the character read."},"price":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The asking price. In integer farthings: multiply the amount in pence by 4."}},"required":["itemId","price"]}}}}}}}},"/v1/give-gift":{"post":{"operationId":"give-gift","summary":"Give coin or goods to another player in town with you. Giving half or more of what you carry is a large gift, and there is no undo.","description":"Give coin or goods to another player in town with you. Giving half or more of what you carry is a large gift, and there is no undo.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"giftId":{"type":"string"}},"required":["giftId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"targetCharacterId":{"type":"string","minLength":1,"description":"The recipient's id."},"assetId":{"type":"string","minLength":1,"description":"`coin` or a good's id."},"qty":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"How much to give, in farthings for coin."}},"required":["targetCharacterId","assetId","qty"]}}}}}}}},"/v1/buy-listing":{"post":{"operationId":"buy-listing","summary":"Buy an item or plot listed in your town at its asking price. Seed and livestock stay with the plot, and the starter allowance brings an initial pasture up to a breeding pair.","description":"Buy an item or plot listed in your town at its asking price. Seed and livestock stay with the plot, and the starter allowance brings an initial pasture up to a breeding pair.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"},"price":{"type":"number"}},"required":["orderId","price"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"orderId":{"type":"string","description":"The listing's id, from the market read."},"livestockId":{"description":"For an empty initial pasture, choose the livestock good id. A pasture that already has animals keeps its species.","type":"string"}},"required":["orderId"]}}}}}}}},"/v1/post-town-listing":{"post":{"operationId":"post-town-listing","summary":"As mayor, offer a town-owned item for sale at your price.","description":"As mayor, offer a town-owned item for sale at your price.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"}},"required":["orderId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"itemId":{"type":"string","description":"The chest item's id."},"price":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The asking price. In integer farthings: multiply the amount in pence by 4."}},"required":["itemId","price"]}}}}}}}},"/v1/buy-town-listing":{"post":{"operationId":"buy-town-listing","summary":"As mayor, buy a listed item with coin from the town chest.","description":"As mayor, buy a listed item with coin from the town chest.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"},"price":{"type":"number"}},"required":["orderId","price"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"orderId":{"type":"string","description":"The listing's id, from the market read."}},"required":["orderId"]}}}}}}}},"/v1/post-land-listing":{"post":{"operationId":"post-land-listing","summary":"Offer a plot you own at an asking price in its town, where the listing stays up while you travel. Fields sell with their seed and any growing crop, and pastures sell with their herd.","description":"Offer a plot you own at an asking price in its town, where the listing stays up while you travel. Fields sell with their seed and any growing crop, and pastures sell with their herd.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"}},"required":["orderId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The plot's id, from the land read."},"price":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The asking price. In integer farthings: multiply the amount in pence by 4."}},"required":["plotId","price"]}}}}}}}},"/v1/buy-freedom":{"post":{"operationId":"buy-freedom","summary":"Buy the freedom of your home town, which lets you vote for its mayor. The fee goes to the town chest.","description":"Buy the freedom of your home town, which lets you vote for its mayor. The fee goes to the town chest.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"townId":{"type":"string"}},"required":["townId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"Your home town, where you stand."}},"required":["townId"]}}}}}}}},"/v1/stand-for-mayor":{"post":{"operationId":"stand-for-mayor","summary":"Stand for mayor while candidacy is open. You need Burgess rank and the town's freedom.","description":"Stand for mayor while candidacy is open. You need Burgess rank and the town's freedom.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionId":{"type":"string"}},"required":["electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"statement":{"type":"string","description":"A short statement shown to voters."}},"required":["townId","statement"]}}}}}}}},"/v1/withdraw-mayor-candidacy":{"post":{"operationId":"withdraw-mayor-candidacy","summary":"Withdraw from a mayoral election you stand in.","description":"Withdraw from a mayoral election you stand in.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionId":{"type":"string"}},"required":["electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."}},"required":["townId"]}}}}}}}},"/v1/vote-mayor":{"post":{"operationId":"vote-mayor","summary":"Vote for a mayoral candidate while voting is open. Only freemen of the town may vote.","description":"Vote for a mayoral candidate while voting is open. Only freemen of the town may vote.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"candidateCharacterId":{"type":"string"},"electionId":{"type":"string"}},"required":["candidateCharacterId","electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"candidateCharacterId":{"type":"string","description":"The candidate's id, from the town read."}},"required":["townId","candidateCharacterId"]}}}}}}}},"/v1/proclaim-town-policy":{"post":{"operationId":"proclaim-town-policy","summary":"As mayor, set property tax, the market fee, or the tool-lending share. Changes are proclaimed on the town board and apply a few days later.","description":"As mayor, set property tax, the market fee, or the tool-lending share. Changes are proclaimed on the town board and apply a few days later.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"appliesDay":{"type":"number"},"pending":{"properties":{"marketFeePercent":{"type":"number"},"propertyTaxFarthings":{"type":"number"},"toolSharePercent":{"type":"number"}},"type":"object"}},"required":["appliesDay","pending"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"propertyTaxFarthings":{"description":"Property tax for each plot. In integer farthings: multiply the amount in pence by 4.","type":"integer","minimum":0,"maximum":9007199254740991},"marketFeePercent":{"description":"The fee on each sale, from 0 to 100.","type":"integer","minimum":0,"maximum":9007199254740991},"toolSharePercent":{"description":"The share of goods a borrower of a town tool gives the town, from 0 to 100.","type":"integer","minimum":0,"maximum":9007199254740991}},"required":["townId"]}}}}}}}},"/v1/donate-town":{"post":{"operationId":"donate-town","summary":"Give coin to the town chest. An anonymous gift shows no name in the town's accounts.","description":"Give coin to the town chest. An anonymous gift shows no name in the town's accounts.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"amountFarthings":{"type":"number"},"anonymous":{"type":"boolean"}},"required":["amountFarthings","anonymous"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town you stand in."},"amountFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"In integer farthings: multiply the amount in pence by 4."},"anonymous":{"description":"True to hide your name.","type":"boolean"}},"required":["townId","amountFarthings"]}}}}}}}},"/v1/post-town-order":{"post":{"operationId":"post-town-order","summary":"As mayor, buy or sell goods for the town chest on the market. The chest's coin or goods are held until the order fills or is cancelled.","description":"As mayor, buy or sell goods for the town chest on the market. The chest's coin or goods are held until the order fills or is cancelled.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"filled":{"type":"number"},"orderId":{"type":"string"},"remaining":{"type":"number"}},"required":["filled","orderId","remaining"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"goodId":{"type":"string","description":"The good's id."},"side":{"type":"string","enum":["buy","sell"],"description":"`buy` or `sell`."},"price":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The price for each unit. In integer farthings: multiply the amount in pence by 4."},"qty":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many units."}},"required":["townId","goodId","side","price","qty"]}}}}}}}},"/v1/cancel-town-order":{"post":{"operationId":"cancel-town-order","summary":"As mayor, cancel a town chest order. Its coin or goods return to the chest.","description":"As mayor, cancel a town chest order. Its coin or goods return to the chest.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"}},"required":["orderId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"orderId":{"type":"string","description":"The order's id, from the market read."}},"required":["townId","orderId"]}}}}}}}},"/v1/buy-town-plot":{"post":{"operationId":"buy-town-plot","summary":"Buy a field, pasture, or workshop site at a fixed price from the town you are in if you own a house there. Each town discounts your initial field or pasture purchase and your initial workshop site, and the starter allowance brings your initial pasture up to a breeding pair.","description":"Buy a field, pasture, or workshop site at a fixed price from the town you are in if you own a house there. Each town discounts your initial field or pasture purchase and your initial workshop site, and the starter allowance brings your initial pasture up to a breeding pair.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"plotId":{"type":"string"},"priceFarthings":{"type":"number"}},"required":["plotId","priceFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotTypeId":{"type":"string","description":"The kind of land, from the land read's pool."},"plotId":{"description":"A plot the town holds that has a workshop or stock on it, from the land read. Leave it out for bare land.","type":"string"},"livestockId":{"description":"For an empty initial pasture, choose the livestock good id. A pasture that already has animals keeps its species.","type":"string"}},"required":["plotTypeId"]}}}}}}}},"/v1/buy-town-house":{"post":{"operationId":"buy-town-house","summary":"Buy a house in your home town at its fixed price. The coin goes to the town chest at once with no undo, and the town charges property tax on the house.","description":"Buy a house in your home town at its fixed price. The coin goes to the town chest at once with no undo, and the town charges property tax on the house.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"plotId":{"type":"string"}},"required":["plotId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/borrow-town-tool":{"post":{"operationId":"borrow-town-tool","summary":"Borrow a tool from the town chest for today when you have none of your own. The town takes a share of what you make with it, and you cannot travel while you hold it.","description":"Borrow a tool from the town chest for today when you have none of your own. The town takes a share of what you make with it, and you cannot travel while you hold it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"itemId":{"type":"string"},"loanSharePercent":{"type":"number"}},"required":["itemId","loanSharePercent"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"toolClassId":{"type":"string","description":"The kind of tool, such as an axe or net."}},"required":["toolClassId"]}}}}}}}},"/v1/stand-for-priest":{"post":{"operationId":"stand-for-priest","summary":"Stand for parish priest while candidacy is open. You need enough faith.","description":"Stand for parish priest while candidacy is open. You need enough faith.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionId":{"type":"string"}},"required":["electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"statement":{"type":"string","description":"A short statement shown to voters."}},"required":["townId","statement"]}}}}}}}},"/v1/withdraw-priest-candidacy":{"post":{"operationId":"withdraw-priest-candidacy","summary":"Withdraw from a parish election you stand in.","description":"Withdraw from a parish election you stand in.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"electionId":{"type":"string"}},"required":["electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."}},"required":["townId"]}}}}}}}},"/v1/vote-priest":{"post":{"operationId":"vote-priest","summary":"Back a candidate in your parish's priest election.","description":"Back a candidate in your parish's priest election.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"candidateCharacterId":{"type":"string"},"electionId":{"type":"string"}},"required":["candidateCharacterId","electionId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"candidateCharacterId":{"type":"string","description":"The candidate's id, from the church read."}},"required":["townId","candidateCharacterId"]}}}}}}}},"/v1/schedule-mass":{"post":{"operationId":"schedule-mass","summary":"As priest, schedule a mass for a day. Its bread comes from church funds or your own stock.","description":"As priest, schedule a mass for a day. Its bread comes from church funds or your own stock.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"breadQty":{"type":"number"},"expectedAttendees":{"type":"number"},"massId":{"type":"string"}},"required":["breadQty","expectedAttendees","massId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"scheduledDay":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The game day of the mass."},"funding":{"type":"string","enum":["church","priest"],"description":"`church` or `priest`, whoever supplies the bread."}},"required":["townId","scheduledDay","funding"]}}}}}}}},"/v1/attend-mass":{"post":{"operationId":"attend-mass","summary":"Attend today's mass. It raises your faith and morale.","description":"Attend today's mass. It raises your faith and morale.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"faith":{"type":"number"},"massId":{"type":"string"},"morale":{"type":"number"}},"required":["faith","massId","morale"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"massId":{"type":"string","description":"The mass's id, from the church read."}},"required":["massId"]}}}}}}}},"/v1/donate-church":{"post":{"operationId":"donate-church","summary":"Give coin or goods to the parish church's funds.","description":"Give coin or goods to the parish church's funds.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"assetId":{"type":"string"},"qty":{"type":"number"}},"required":["assetId","qty"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town you stand in."},"assetId":{"type":"string","description":"`coin` or a good's id."},"qty":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How much to give, in farthings for coin."}},"required":["townId","assetId","qty"]}}}}}}}},"/v1/give-collection":{"post":{"operationId":"give-collection","summary":"Give coin to the collection at a mass you attended.","description":"Give coin to the collection at a mass you attended.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"amountFarthings":{"type":"number"},"massId":{"type":"string"}},"required":["amountFarthings","massId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"massId":{"type":"string","description":"The mass's id, from the church read."},"amountFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"In integer farthings: multiply the amount in pence by 4."}},"required":["massId","amountFarthings"]}}}}}}}},"/v1/give-alms":{"post":{"operationId":"give-alms","summary":"Give coin to the parish alms, shared among those who beg at the next reset.","description":"Give coin to the parish alms, shared among those who beg at the next reset.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"amountFarthings":{"type":"number"}},"required":["amountFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town you stand in."},"amountFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"In integer farthings: multiply the amount in pence by 4."}},"required":["townId","amountFarthings"]}}}}}}}},"/v1/post-church-order":{"post":{"operationId":"post-church-order","summary":"As priest, buy or sell goods for the church on the market. Church coin or goods are held until the order fills or is cancelled.","description":"As priest, buy or sell goods for the church on the market. Church coin or goods are held until the order fills or is cancelled.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"filled":{"type":"number"},"orderId":{"type":"string"},"remaining":{"type":"number"}},"required":["filled","orderId","remaining"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"goodId":{"type":"string","description":"The good's id."},"side":{"type":"string","enum":["buy","sell"],"description":"`buy` or `sell`."},"price":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The price for each unit. In integer farthings: multiply the amount in pence by 4."},"qty":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many units."}},"required":["townId","goodId","side","price","qty"]}}}}}}}},"/v1/cancel-church-order":{"post":{"operationId":"cancel-church-order","summary":"As priest, cancel a church order. Its coin or goods return to church funds.","description":"As priest, cancel a church order. Its coin or goods return to church funds.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"orderId":{"type":"string"}},"required":["orderId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","description":"The town's id."},"orderId":{"type":"string","description":"The order's id, from the market read."}},"required":["townId","orderId"]}}}}}}}},"/v1/beg":{"post":{"operationId":"beg","summary":"Spend today's main action begging at the church. Only the very poor may, and beggars share that day's alms up to about 2 days of food.","description":"Spend today's main action begging at the church. Only the very poor may, and beggars share that day's alms up to about 2 days of food.\n\nChooses today's main action. It resolves at the next reset, and you get 1 a day.","tags":["Main action"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"mainAction":{"$ref":"#/components/schemas/MainActionChoice"}},"required":["mainAction"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/set-tavern-menu":{"post":{"operationId":"set-tavern-menu","summary":"As keeper, set the price of a drink or meal at your tavern.","description":"As keeper, set the price of a drink or meal at your tavern.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"menuPrices":{"additionalProperties":{"type":"number"},"type":"object"},"plotId":{"type":"string"}},"required":["menuPrices","plotId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"Your tavern's plot id."},"goodId":{"type":"string","description":"The drink or food's id."},"priceFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"In integer farthings: multiply the amount in pence by 4."}},"required":["plotId","goodId","priceFarthings"]}}}}}}}},"/v1/buy-tavern-serving":{"post":{"operationId":"buy-tavern-serving","summary":"Buy a drink or meal at a tavern and have it at once. It feeds you and lifts your morale, but too many drinks in a day make you drunk.","description":"Buy a drink or meal at a tavern and have it at once. It feeds you and lifts your morale, but too many drinks in a day make you drunk.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/ServingResult"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The tavern's plot id, from the tavern read."},"goodId":{"type":"string","description":"The drink or food's id."},"priceFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The menu price you saw, in integer farthings (pence times 4). A changed price is refused, so check it first."}},"required":["plotId","goodId","priceFarthings"]}}}}}}}},"/v1/offer-tavern-drink":{"post":{"operationId":"offer-tavern-drink","summary":"Buy a drink for someone at the tavern. You pay now, and it is refunded if they decline or you withdraw.","description":"Buy a drink for someone at the tavern. You pay now, and it is refunded if they decline or you withdraw.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"offerId":{"type":"string"},"priceFarthings":{"type":"number"}},"required":["offerId","priceFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The tavern's plot id."},"recipientId":{"type":"string","description":"The character's id."},"goodId":{"type":"string","description":"The drink's id."},"priceFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The menu price you saw, in integer farthings (pence times 4). A changed price is refused, so check it first."}},"required":["plotId","recipientId","goodId","priceFarthings"]}}}}}}}},"/v1/respond-drink-offer":{"post":{"operationId":"respond-drink-offer","summary":"Accept or decline a drink someone offered you.","description":"Accept or decline a drink someone offered you.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"anyOf":[{"properties":{"accepted":{"const":false,"type":"boolean"},"offerId":{"type":"string"}},"required":["accepted","offerId"],"type":"object"},{"properties":{"accepted":{"const":true,"type":"boolean"},"offerId":{"type":"string"},"serving":{"$ref":"#/components/schemas/ServingResult"}},"required":["accepted","offerId","serving"],"type":"object"}]},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"offerId":{"type":"string","description":"The offer's id, from the tavern read."},"accept":{"type":"boolean","description":"True to drink it, false to decline."}},"required":["offerId","accept"]}}}}}}}},"/v1/withdraw-drink-offer":{"post":{"operationId":"withdraw-drink-offer","summary":"Withdraw a drink offer not yet answered and get your coin back.","description":"Withdraw a drink offer not yet answered and get your coin back.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"offerId":{"type":"string"}},"required":["offerId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"offerId":{"type":"string","description":"The offer's id, from the tavern read."}},"required":["offerId"]}}}}}}}},"/v1/join-tug-of-war":{"post":{"operationId":"join-tug-of-war","summary":"Put your name down for your town's tug-of-war crew.","description":"Put your name down for your town's tug-of-war crew.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"matchId":{"type":"string"}},"required":["matchId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"matchId":{"type":"string","description":"The match ID from the world read."}},"required":["matchId"]}}}}}}}},"/v1/pull-tug-of-war":{"post":{"operationId":"pull-tug-of-war","summary":"Choose how to pull for your crew this round.","description":"Choose how to pull for your crew this round.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"choice":{"enum":["heave","steady"],"type":"string"},"matchId":{"type":"string"},"roundDay":{"type":"number"}},"required":["choice","matchId","roundDay"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"matchId":{"type":"string","description":"The match ID from the world read."},"roundDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The current game day."},"choice":{"type":"string","enum":["steady","heave"],"description":"Choose steady for 2 marks or heave for an even chance of 0 or 4."}},"required":["matchId","roundDay","choice"]}}}}}}}},"/v1/post-wager":{"post":{"operationId":"post-wager","summary":"Commit a stake and roll your private die for Hold or Throw. Your stake opens to a challenger when you choose or time runs out.","description":"Commit a stake and roll your private die for Hold or Throw. Your stake opens to a challenger when you choose or time runs out.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"first":{"type":"number"},"wagerId":{"type":"string"}},"required":["first","wagerId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The tavern's plot id."},"stakeFarthings":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Your stake. In integer farthings: multiply the amount in pence by 4."}},"required":["plotId","stakeFarthings"]}}}}}}}},"/v1/accept-wager":{"post":{"operationId":"accept-wager","summary":"Match a wager's stake and roll your private die. The higher total up to 7 takes both stakes.","description":"Match a wager's stake and roll your private die. The higher total up to 7 takes both stakes.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"first":{"type":"number"},"wagerId":{"type":"string"}},"required":["first","wagerId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"wagerId":{"type":"string","description":"The wager's id, from the tavern read."}},"required":["wagerId"]}}}}}}}},"/v1/choose-wager":{"post":{"operationId":"choose-wager","summary":"Keep your roll or add another die. Going over 7 is a bust.","description":"Keep your roll or add another die. Going over 7 is a bust.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"second":{"type":["null","number"]},"wagerId":{"type":"string"}},"required":["second","wagerId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"wagerId":{"type":"string","description":"The wager's id, from the tavern read."},"choice":{"type":"string","enum":["hold","throw"],"description":"Hold your roll or throw again."}},"required":["wagerId","choice"]}}}}}}}},"/v1/post-militia-job":{"post":{"operationId":"post-militia-job","summary":"As mayor, post today's militia posts. The wages for every slot come out of the town chest at once.","description":"As mayor, post today's militia posts. The wages for every slot come out of the town chest at once.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"jobId":{"type":"string"}},"required":["jobId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"wage":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The day's wage for each post. In integer farthings: multiply the amount in pence by 4."},"slots":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many posts."},"minSkill":{"default":0,"description":"The lowest fighting skill a worker needs.","type":"integer","minimum":0,"maximum":2147483647}},"required":["wage","slots"]}}}}}}}},"/v1/post-town-gathering-job":{"post":{"operationId":"post-town-gathering-job","summary":"As mayor, post today's town gathering jobs. The wages come out of the town chest and what is gathered goes to it.","description":"As mayor, post today's town gathering jobs. The wages come out of the town chest and what is gathered goes to it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"jobId":{"type":"string"}},"required":["jobId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"recipeId":{"type":"string","description":"The gathering recipe."},"wage":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The day's wage for each worker. In integer farthings: multiply the amount in pence by 4."},"slots":{"type":"integer","minimum":1,"maximum":2147483647,"description":"How many workers."},"minSkill":{"default":0,"description":"The lowest skill a worker needs.","type":"integer","minimum":0,"maximum":2147483647}},"required":["recipeId","wage","slots"]}}}}}}}},"/v1/clear-main-action":{"post":{"operationId":"clear-main-action","summary":"Today's main action is fixed once chosen.","description":"Today's main action is fixed once chosen.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"cleared":{"type":"boolean"}},"required":["cleared"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{}}}}}}}}},"/v1/character":{"get":{"operationId":"character","summary":"Read your character sheet: health, food, attributes, skills, gear, and what you carry. With no living character it shows the creation options.","description":"Read your character sheet: health, food, attributes, skills, gear, and what you carry. With no living character it shows the creation options.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/CharacterView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/conflict":{"get":{"operationId":"conflict","summary":"Read your band and invitations, your combat stance, and your recent fights.","description":"Read your band and invitations, your combat stance, and your recent fights.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/ConflictView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/land":{"get":{"operationId":"land","summary":"Read your land and your town's: plots, leases, jobs, repair and service requests, and the land the town sells.","description":"Read your land and your town's: plots, leases, jobs, repair and service requests, and the land the town sells.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/LandView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/market":{"get":{"operationId":"market","summary":"Read your town's market: buy offers and sale listings for each good, item listings, and your own orders.","description":"Read your town's market: buy offers and sale listings for each good, item listings, and your own orders.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/MarketView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/town":{"get":{"operationId":"town","summary":"Read your town: its mayor, taxes and fees, the mayoral election, the price of its freedom, and its morale.","description":"Read your town: its mayor, taxes and fees, the mayoral election, the price of its freedom, and its morale.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/TownView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/church":{"get":{"operationId":"church","summary":"Read your parish church: the priest, masses, and the priest election.","description":"Read your parish church: the priest, masses, and the priest election.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/ChurchView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/tavern":{"get":{"operationId":"tavern","summary":"Read your town's taverns: menus, drink offers to or from you, and wagers on the table.","description":"Read your town's taverns: menus, drink offers to or from you, and wagers on the table.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/TavernView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/share-or-grab":{"get":{"operationId":"share-or-grab","summary":"See local Share or Grab rounds, available bonuses, and your recent results.","description":"See local Share or Grab rounds, available bonuses, and your recent results.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"capFarthings":{"type":"number"},"open":{"items":{"properties":{"bonusFarthings":{"type":"number"},"expiresAfterDay":{"type":"number"},"mine":{"type":"boolean"},"poster":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"roundId":{"type":"string"},"stakeFarthings":{"type":"number"},"tavernPlotId":{"type":"string"}},"required":["bonusFarthings","expiresAfterDay","mine","poster","roundId","stakeFarthings","tavernPlotId"],"type":"object"},"type":"array"},"recent":{"items":{"properties":{"bonusFarthings":{"type":"number"},"closedDay":{"type":"number"},"joiner":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"joinerChoice":{"enum":["grab","share"],"type":"string"},"joinerNetFarthings":{"type":"number"},"postedDay":{"type":"number"},"poster":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"posterChoice":{"enum":["grab","share"],"type":"string"},"posterNetFarthings":{"type":"number"},"roundId":{"type":"string"},"stakeFarthings":{"type":"number"},"tavernPlotId":{"type":"string"},"viewerIsPoster":{"type":"boolean"}},"required":["bonusFarthings","closedDay","joiner","joinerChoice","joinerNetFarthings","postedDay","poster","posterChoice","posterNetFarthings","roundId","stakeFarthings","tavernPlotId","viewerIsPoster"],"type":"object"},"type":"array"},"stakedFarthings":{"type":"number"},"taverns":{"items":{"properties":{"plotId":{"type":"string"},"poolFarthings":{"type":["null","number"]},"stakes":{"items":{"properties":{"bonusFarthings":{"type":"number"},"stakeFarthings":{"type":"number"}},"required":["bonusFarthings","stakeFarthings"],"type":"object"},"type":"array"}},"required":["plotId","poolFarthings","stakes"],"type":"object"},"type":"array"}},"required":["capFarthings","open","recent","stakedFarthings","taverns"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/post-share-or-grab":{"post":{"operationId":"post-share-or-grab","summary":"Post a stake and seal your choice at a local tavern.","description":"Post a stake and seal your choice at a local tavern.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"roundId":{"type":"string"}},"required":["roundId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The tavern's plot id."},"stakeFarthings":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"In integer farthings: multiply the amount in pence by 4."},"choice":{"type":"string","enum":["share","grab"],"description":"Share or grab."},"expectedBonusFarthings":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The displayed bonus per player in farthings."}},"required":["plotId","stakeFarthings","choice","expectedBonusFarthings"]}}}}}}}},"/v1/join-share-or-grab":{"post":{"operationId":"join-share-or-grab","summary":"Match the stake, seal your choice, and settle a Share or Grab round.","description":"Match the stake, seal your choice, and settle a Share or Grab round.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"bonusFarthings":{"type":"number"},"closedDay":{"type":"number"},"joiner":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"joinerChoice":{"enum":["grab","share"],"type":"string"},"joinerNetFarthings":{"type":"number"},"postedDay":{"type":"number"},"poster":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"posterChoice":{"enum":["grab","share"],"type":"string"},"posterNetFarthings":{"type":"number"},"roundId":{"type":"string"},"stakeFarthings":{"type":"number"},"tavernPlotId":{"type":"string"}},"required":["bonusFarthings","closedDay","joiner","joinerChoice","joinerNetFarthings","postedDay","poster","posterChoice","posterNetFarthings","roundId","stakeFarthings","tavernPlotId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"roundId":{"type":"string","description":"The open round's id."},"choice":{"type":"string","enum":["share","grab"],"description":"Share or grab."}},"required":["roundId","choice"]}}}}}}}},"/v1/withdraw-share-or-grab":{"post":{"operationId":"withdraw-share-or-grab","summary":"Take back your stake from an unmatched round.","description":"Take back your stake from an unmatched round.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"roundId":{"type":"string"}},"required":["roundId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"roundId":{"type":"string","description":"Your open round's id."}},"required":["roundId"]}}}}}}}},"/v1/fund-share-or-grab":{"post":{"operationId":"fund-share-or-grab","summary":"Add coin from your purse to the pool at a tavern you keep.","description":"Add coin from your purse to the pool at a tavern you keep.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Act now"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"poolFarthings":{"type":"number"}},"required":["poolFarthings"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"plotId":{"type":"string","description":"The tavern's plot id."},"amountFarthings":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"In integer farthings: multiply the amount in pence by 4."}},"required":["plotId","amountFarthings"]}}}}}}}},"/v1/world":{"get":{"operationId":"world","summary":"Read the day and date, where you stand, where the roads lead, your home town, and today's main action.","description":"Read the day and date, where you stand, where the roads lead, your home town, and today's main action.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/WorldView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/map":{"get":{"operationId":"map","summary":"Read the map: every town and road and the days each road takes.","description":"Read the map: every town and road and the days each road takes.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/MapView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/onboarding":{"get":{"operationId":"onboarding","summary":"Read your guided first week: today's habits (a full meal and a main action chosen), the milestones with the house last, the next mass if a priest has set one, the house goal and price, the first land goal, and suggested jobs. When hidden is true, the guide is off and names no goal or next step.","description":"Read your guided first week: today's habits (a full meal and a main action chosen), the milestones with the house last, the next mass if a priest has set one, the house goal and price, the first land goal, and suggested jobs. When hidden is true, the guide is off and names no goal or next step.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/OnboardingView"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/send-letter":{"post":{"operationId":"send-letter","summary":"Send a letter to any character. It takes longer to arrive the farther apart you are, and a letter in your own town arrives at once.","description":"Send a letter to any character. It takes longer to arrive the farther apart you are, and a letter in your own town arrives at once.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"recipientCharacterId":{"type":"string","minLength":1,"maxLength":128,"description":"The character's id."},"body":{"description":"The letter.","type":"string","minLength":1,"maxLength":2000}},"required":["recipientCharacterId","body"]}}}}}}}},"/v1/delete-letter":{"post":{"operationId":"delete-letter","summary":"Delete a delivered letter from your own inbox.","description":"Delete a delivered letter from your own inbox.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"letterId":{"type":"string","minLength":1,"maxLength":128,"description":"The letter's id, from the letters read."}},"required":["letterId"]}}}}}}}},"/v1/post-town-chat":{"post":{"operationId":"post-town-chat","summary":"Post in your town's chat, which everyone now in town can read.","description":"Post in your town's chat, which everyone now in town can read.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"body":{"description":"The message.","type":"string","minLength":1,"maxLength":500}},"required":["body"]}}},"example":{"clientCommandId":"3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913","input":{"body":"Good morrow. Who sells wool today?"}}}}}}},"/v1/post-tavern-chat":{"post":{"operationId":"post-tavern-chat","summary":"Post in a tavern's chat room in your town.","description":"Post in a tavern's chat room in your town.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"tavernPlotId":{"type":"string","minLength":1,"maxLength":128,"description":"The tavern's plot id, from the tavern read."},"body":{"description":"The message.","type":"string","minLength":1,"maxLength":500}},"required":["tavernPlotId","body"]}}}}}}}},"/v1/post-shire-notice":{"post":{"operationId":"post-shire-notice","summary":"Post a short notice on the shire board, which every town can read. Notices are limited and expire after a while.","description":"Post a short notice on the shire board, which every town can read. Notices are limited and expire after a while.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"body":{"description":"The notice.","type":"string","minLength":1,"maxLength":500}},"required":["body"]}}}}}}}},"/v1/set-notification-preferences":{"post":{"operationId":"set-notification-preferences","summary":"Choose a daily report channel, optional action reminders, push alerts for letters and elections, and story alerts by email and push.","description":"Choose a daily report channel, optional action reminders, push alerts for letters and elections, and story alerts by email and push.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"dailyChannel":{"type":"string","enum":["off","email","push"],"description":"`off`, `email`, or `push`."},"reminderChannel":{"description":"Optional action reminders: `off`, `email`, or `push`. Omit to preserve the current choice.","type":"string","enum":["off","email","push"]},"letterPush":{"type":"boolean","description":"True for a push alert when a letter arrives."},"electionPush":{"type":"boolean","description":"True for a push alert when an election opens."},"storyPush":{"description":"True for a push alert when someone posts in your stories or names you in one. Omit to keep the current choice.","type":"boolean"},"storyEmail":{"description":"True for an email alert when someone posts in your stories or names you in one. Omit to keep the current choice.","type":"boolean"}},"required":["dailyChannel","letterPush","electionPush"]}}}}}}}},"/v1/start-story":{"post":{"operationId":"start-story","summary":"Start a story in the open town you are in now, on game days you choose, with its opening post if you like. Only people who were in that town on one of its days can join.","description":"Start a story in the open town you are in now, on game days you choose, with its opening post if you like. Only people who were in that town on one of its days can join.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"accepted":{"const":true,"type":"boolean"},"id":{"type":"string"}},"required":["accepted","id"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"townId":{"type":"string","minLength":1,"maxLength":128,"description":"The town you are in now; the story is set there."},"title":{"description":"The story's title.","type":"string","minLength":1,"maxLength":80},"startDay":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Its first game day: today or a later day."},"days":{"type":"integer","minimum":1,"maximum":7,"description":"How many days it covers."},"private":{"type":"boolean","description":"True to keep it hidden from everyone but the people taking part and the people you name."},"namedOnly":{"type":"boolean","description":"True to let only the people you name join."},"guestCharacterIds":{"default":[],"description":"Characters to name as guests now.","maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"openingPost":{"description":"The opening post. Leave it out to write it later.","type":"string","minLength":1,"maxLength":4000}},"required":["townId","title","startDay","days","private","namedOnly"]}}}}}}}},"/v1/post-story":{"post":{"operationId":"post-story","summary":"Post in a story. Your first post joins it, and you need to have been in its town on one of its days.","description":"Post in a story. Your first post joins it, and you need to have been in its town on one of its days.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"storyId":{"type":"string","minLength":1,"maxLength":128,"description":"The story's id."},"body":{"description":"The post.","type":"string","minLength":1,"maxLength":4000}},"required":["storyId","body"]}}}}}}}},"/v1/edit-story-post":{"post":{"operationId":"edit-story-post","summary":"Edit one of your story posts in the first hour after you wrote it.","description":"Edit one of your story posts in the first hour after you wrote it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"postId":{"type":"string","minLength":1,"maxLength":128,"description":"The post's id."},"body":{"description":"The new text.","type":"string","minLength":1,"maxLength":4000}},"required":["postId","body"]}}}}}}}},"/v1/add-story-guests":{"post":{"operationId":"add-story-guests","summary":"Name guests in a story you host. They get an alert and can join if they were there.","description":"Name guests in a story you host. They get an alert and can join if they were there.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"storyId":{"type":"string","minLength":1,"maxLength":128,"description":"The story's id."},"characterIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"description":"The characters to name."}},"required":["storyId","characterIds"]}}}}}}}},"/v1/remove-story-guest":{"post":{"operationId":"remove-story-guest","summary":"Take a guest's name off a story you host. You can only do this before they post.","description":"Take a guest's name off a story you host. You can only do this before they post.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"storyId":{"type":"string","minLength":1,"maxLength":128,"description":"The story's id."},"characterId":{"type":"string","minLength":1,"maxLength":128,"description":"The character's id."}},"required":["storyId","characterId"]}}}}}}}},"/v1/mark-story-read":{"post":{"operationId":"mark-story-read","summary":"Mark a story read up to a post.","description":"Mark a story read up to a post.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"storyId":{"type":"string","minLength":1,"maxLength":128,"description":"The story's id."},"seq":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The number of the last post you read."}},"required":["storyId","seq"]}}}}}}}},"/v1/set-about":{"post":{"operationId":"set-about","summary":"Write the About on your character's profile. Send an empty text to clear it.","description":"Write the About on your character's profile. Send an empty text to clear it.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"about":{"anyOf":[{"type":"string","const":""},{"type":"string","minLength":1,"maxLength":600}],"description":"The About text."}}}}}}}}}},"/v1/set-voice-colour":{"post":{"operationId":"set-voice-colour","summary":"Choose the colour of your character's name and spoken lines in stories.","description":"Choose the colour of your character's name and spoken lines in stories.\n\nHappens at once. It counts against the hourly limit of its class, which `GET /v1/actions` shows as `perHourLeft`.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Accepted"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientCommandId","input"],"properties":{"clientCommandId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"Your id for this command: 8 to 64 letters, digits, `_`, or `-`. Resending the same id returns the original answer and never runs the command twice.","examples":["3f6c2a9e-8b1d-4e7a-9c52-d1a0b7e4f913"]},"input":{"type":"object","properties":{"voiceColourId":{"type":"string","enum":["ink","madder","woad","verdigris","murrey","weld","russet"],"description":"A colour id from the story or profile read."}},"required":["voiceColourId"]}}}}}}}},"/v1/letters":{"get":{"operationId":"letters","summary":"Read your inbox or outbox, newest first.","description":"Read your inbox or outbox, newest first.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"letters":{"items":{"anyOf":[{"properties":{"body":{"type":"string"},"byMonarch":{"description":"Sent by whoever holds the Crown now.","type":"boolean"},"deliverAt":{"format":"date-time","type":"string"},"fromTownId":{"type":"string"},"id":{"type":"string"},"recipientCharacterId":{"type":"string"},"recipientLook":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"recipientName":{"type":"string"},"removed":{"type":"boolean"},"senderCharacterId":{"type":"string"},"senderLook":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"senderName":{"type":"string"},"sentAt":{"format":"date-time","type":"string"},"toTownId":{"type":"string"}},"required":["body","byMonarch","deliverAt","fromTownId","id","recipientCharacterId","recipientLook","recipientName","removed","senderCharacterId","senderLook","senderName","sentAt","toTownId"],"type":"object"},{"properties":{"body":{"type":"string"},"byMonarch":{"description":"Sent by whoever holds the Crown now.","type":"boolean"},"delivered":{"type":"boolean"},"fromTownId":{"type":"string"},"id":{"type":"string"},"recipientCharacterId":{"type":"string"},"recipientLook":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"recipientName":{"type":"string"},"removed":{"type":"boolean"},"senderCharacterId":{"type":"string"},"senderLook":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"senderName":{"type":"string"},"sentAt":{"format":"date-time","type":"string"}},"required":["body","byMonarch","delivered","fromTownId","id","recipientCharacterId","recipientLook","recipientName","removed","senderCharacterId","senderLook","senderName","sentAt"],"type":"object"}]},"type":"array"},"nextCursor":{"type":["null","string"]},"recipients":{"items":{"$ref":"#/components/schemas/Recipient"},"type":"array"}},"required":["letters","nextCursor","recipients"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"box","in":"query","required":false,"description":"`inbox` or `outbox`.","schema":{"default":"inbox","type":"string","enum":["inbox","outbox"]}},{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page, for older entries.","schema":{"type":"string","maxLength":256}},{"name":"page","in":"query","required":false,"description":"How many entries to return.","schema":{"default":25,"type":"integer","minimum":1,"maximum":50}}]}},"/v1/town-chat":{"get":{"operationId":"town-chat","summary":"Read your town's recent chat, newest first.","description":"Read your town's recent chat, newest first.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"messages":{"items":{"properties":{"ai":{"type":"boolean"},"authorCharacterId":{"type":"string"},"authorName":{"type":["null","string"]},"body":{"type":"string"},"byMonarch":{"description":"Written by whoever holds the Crown now.","type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"}},"required":["ai","authorCharacterId","authorName","body","byMonarch","createdAt","id"],"type":"object"},"type":"array"},"nextCursor":{"type":["null","string"]}},"required":["messages","nextCursor"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page, for older entries.","schema":{"type":"string","maxLength":256}},{"name":"page","in":"query","required":false,"description":"How many entries to return.","schema":{"default":25,"type":"integer","minimum":1,"maximum":50}}]}},"/v1/tavern-chat":{"get":{"operationId":"tavern-chat","summary":"Read a tavern's recent chat, newest first.","description":"Read a tavern's recent chat, newest first.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"messages":{"items":{"properties":{"ai":{"type":"boolean"},"authorCharacterId":{"type":"string"},"authorName":{"type":["null","string"]},"body":{"type":"string"},"byMonarch":{"description":"Written by whoever holds the Crown now.","type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"}},"required":["ai","authorCharacterId","authorName","body","byMonarch","createdAt","id"],"type":"object"},"type":"array"},"nextCursor":{"type":["null","string"]}},"required":["messages","nextCursor"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"tavernPlotId","in":"query","required":true,"description":"The tavern's plot id, from the tavern read.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page, for older entries.","schema":{"type":"string","maxLength":256}},{"name":"page","in":"query","required":false,"description":"How many entries to return.","schema":{"default":25,"type":"integer","minimum":1,"maximum":50}}]}},"/v1/town-board":{"get":{"operationId":"town-board","summary":"Read your town's notice board: tax changes, elections, and proclamations.","description":"Read your town's notice board: tax changes, elections, and proclamations.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"names":{"additionalProperties":{"type":"string"},"type":"object"},"nextCursor":{"type":["null","string"]},"proclamations":{"items":{"properties":{"createdAt":{"format":"date-time","type":"string"},"day":{"type":"number"},"id":{"type":"number"},"proclamation":{"$ref":"#/components/schemas/TownProclamation"}},"required":["createdAt","day","id","proclamation"],"type":"object"},"type":"array"},"sexes":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["names","nextCursor","proclamations","sexes"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page, for older entries.","schema":{"type":"string","maxLength":256}},{"name":"page","in":"query","required":false,"description":"How many entries to return.","schema":{"default":25,"type":"integer","minimum":1,"maximum":50}}]}},"/v1/shire-board":{"get":{"operationId":"shire-board","summary":"Read the shire notice board, newest first.","description":"Read the shire notice board, newest first.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"nextCursor":{"type":["null","string"]},"notices":{"items":{"properties":{"authorCharacterId":{"type":"string"},"authorName":{"type":["null","string"]},"body":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"id":{"type":"string"}},"required":["authorCharacterId","authorName","body","createdAt","expiresAt","id"],"type":"object"},"type":"array"}},"required":["nextCursor","notices"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page, for older entries.","schema":{"type":"string","maxLength":256}},{"name":"page","in":"query","required":false,"description":"How many entries to return.","schema":{"default":25,"type":"integer","minimum":1,"maximum":50}}]}},"/v1/town-crier":{"get":{"operationId":"town-crier","summary":"Read the Town Crier, your town's digest of what the reset brought: robberies, sales, elections, and deaths.","description":"Read the Town Crier, your town's digest of what the reset brought: robberies, sales, elections, and deaths.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"day":{"type":"number"},"items":{"items":{"$ref":"#/components/schemas/CrierItem"},"type":"array"},"townId":{"type":"string"}},"required":["day","items","townId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"day","in":"query","required":false,"description":"The game day to read. Leave out for the latest.","schema":{"type":"integer","minimum":1,"maximum":9007199254740991}}]}},"/v1/churchyard":{"get":{"operationId":"churchyard","summary":"Read your town's churchyard: its graves and this year's Bill of Mortality.","description":"Read your town's churchyard: its graves and this year's Bill of Mortality.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"allSouls":{"type":"boolean"},"bill":{"properties":{"rows":{"items":{"properties":{"counts":{"properties":{"army_battle":{"type":"number"},"execution":{"type":"number"},"starvation":{"type":"number"}},"required":["army_battle","execution","starvation"],"type":"object"},"displayName":{"type":"string"},"total":{"type":"number"},"townId":{"type":"string"}},"required":["counts","displayName","total","townId"],"type":"object"},"type":"array"},"year":{"type":"number"}},"required":["rows","year"],"type":"object"},"carvableCharacterId":{"type":["null","string"]},"day":{"type":"number"},"heirEpitaphs":{"items":{"properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"],"type":"object"},"type":"array"},"memorials":{"items":{"type":"string"},"type":"array"},"stones":{"items":{"$ref":"#/components/schemas/Stone"},"type":"array"},"townId":{"type":"string"}},"required":["allSouls","bill","carvableCharacterId","day","heirEpitaphs","memorials","stones","townId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/private-notices":{"get":{"operationId":"private-notices","summary":"Read notices meant for you alone, newest first.","description":"Read notices meant for you alone, newest first.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"nextCursor":{"type":["null","string"]},"notices":{"items":{"properties":{"createdAt":{"format":"date-time","type":"string"},"day":{"type":"number"},"id":{"type":"number"},"plotId":{"type":"string"},"type":{"type":"string"},"workshopTypeId":{"type":"string"}},"required":["createdAt","day","id","plotId","type","workshopTypeId"],"type":"object"},"type":"array"}},"required":["nextCursor","notices"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page, for older entries.","schema":{"type":"string","maxLength":256}},{"name":"page","in":"query","required":false,"description":"How many entries to return.","schema":{"default":25,"type":"integer","minimum":1,"maximum":50}}]}},"/v1/activity-history":{"get":{"operationId":"activity-history","summary":"Read your character's diary by game date, newest first.","description":"Read your character's diary by game date, newest first.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"days":{"items":{"properties":{"date":{"type":"string"},"day":{"type":"number"},"items":{"items":{"$ref":"#/components/schemas/PersonalItem"},"type":"array"},"names":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["date","day","items","names"],"type":"object"},"type":"array"},"nextCursor":{"type":["null","number"]}},"required":["days","nextCursor"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page, for older entries.","schema":{"type":"integer","minimum":1,"maximum":2147483647}}]}},"/v1/since-yesterday":{"get":{"operationId":"since-yesterday","summary":"Read what happened to your character since yesterday, or since your last visit when `away` is true.","description":"Read what happened to your character since yesterday, or since your last visit when `away` is true.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"away":{"type":"boolean"},"fromDay":{"type":"number"},"items":{"items":{"$ref":"#/components/schemas/PersonalItem"},"type":"array"},"names":{"additionalProperties":{"type":"string"},"description":"Display names for the people and goods the items name.","type":"object"},"stories":{"items":{"properties":{"newPosts":{"type":"number"},"storyId":{"type":"string"},"title":{"type":"string"}},"required":["newPosts","storyId","title"],"type":"object"},"type":"array"},"waiting":{"items":{"$ref":"#/components/schemas/WaitingItem"},"type":"array"}},"required":["away","fromDay","items","names","stories","waiting"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/notification-preferences":{"get":{"operationId":"notification-preferences","summary":"Read how you get the daily digest and push alerts.","description":"Read how you get the daily digest and push alerts.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/PreferencesInput"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/crown-announcements":{"get":{"operationId":"crown-announcements","summary":"Read the Crown's proclamations and whether the daily reset is paused.","description":"Read the Crown's proclamations and whether the daily reset is paused.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"announcements":{"items":{"properties":{"day":{"type":"number"},"text":{"type":"string"}},"required":["day","text"],"type":"object"},"type":"array"},"page":{"type":"number"},"resetAt":{"description":"When the day next turns (ISO), from the server's reset schedule.","type":["null","string"]},"resetPaused":{"type":"boolean"}},"required":["announcements","page","resetAt","resetPaused"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"page","in":"query","required":false,"description":"The page number, starting at 0 for the newest.","schema":{"default":0,"type":"integer","minimum":0,"maximum":1000}}]}},"/v1/stories":{"get":{"operationId":"stories","summary":"Read your stories with their new posts, then every public story, latest post first, with each one's days from you and whether you can post.","description":"Read your stories with their new posts, then every public story, latest post first, with each one's days from you and whether you can post.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"currentTownId":{"description":"The reader's town, for \"Here in\" and \"Elsewhere\"; null without a character.","type":["null","string"]},"nextPage":{"type":["null","number"]},"stories":{"description":"Every public story (in `townId` when given), latest post first.","items":{"properties":{"endDay":{"type":"number"},"hostCharacterId":{"type":"string"},"hostName":{"type":"string"},"id":{"type":"string"},"lastPost":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"},"day":{"type":"number"}},"required":["characterId","characterName","day"],"type":"object"}]},"lastSeq":{"description":"The highest post number, removed posts included, for paging.","type":"number"},"namedOnly":{"type":"boolean"},"participants":{"description":"Everyone who has joined, host first when they have.","items":{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"}},"required":["characterId","characterName"],"type":"object"},"type":"array"},"posts":{"description":"Posts a reader can see; removed ones are not counted.","type":"number"},"private":{"type":"boolean"},"recorded":{"description":"In the town's history: someone who was there has posted.","type":"boolean"},"startDay":{"type":"number"},"title":{"type":"string"},"townId":{"type":"string"},"travelDays":{"description":"Days of road from the reader's town; 0 there, null unreachable.","type":["null","number"]},"you":{"properties":{"host":{"type":"boolean"},"joined":{"type":"boolean"},"named":{"type":"boolean"},"newPosts":{"description":"Settled posts by others since you last read; 0 when not in it.","type":"number"},"postRefusal":{"description":"Why you cannot post now, or null when you can.","type":["null","string"]}},"required":["host","joined","named","newPosts","postRefusal"],"type":"object"}},"required":["endDay","hostCharacterId","hostName","id","lastPost","lastSeq","namedOnly","participants","posts","private","recorded","startDay","title","townId","travelDays","you"],"type":"object"},"type":"array"},"today":{"type":"number"},"yours":{"description":"Stories your character hosts, joined, or is named in; page 0 only.","items":{"properties":{"endDay":{"type":"number"},"hostCharacterId":{"type":"string"},"hostName":{"type":"string"},"id":{"type":"string"},"lastPost":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"},"day":{"type":"number"}},"required":["characterId","characterName","day"],"type":"object"}]},"lastSeq":{"description":"The highest post number, removed posts included, for paging.","type":"number"},"namedOnly":{"type":"boolean"},"participants":{"description":"Everyone who has joined, host first when they have.","items":{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"}},"required":["characterId","characterName"],"type":"object"},"type":"array"},"posts":{"description":"Posts a reader can see; removed ones are not counted.","type":"number"},"private":{"type":"boolean"},"recorded":{"description":"In the town's history: someone who was there has posted.","type":"boolean"},"startDay":{"type":"number"},"title":{"type":"string"},"townId":{"type":"string"},"travelDays":{"description":"Days of road from the reader's town; 0 there, null unreachable.","type":["null","number"]},"you":{"properties":{"host":{"type":"boolean"},"joined":{"type":"boolean"},"named":{"type":"boolean"},"newPosts":{"description":"Settled posts by others since you last read; 0 when not in it.","type":"number"},"postRefusal":{"description":"Why you cannot post now, or null when you can.","type":["null","string"]}},"required":["host","joined","named","newPosts","postRefusal"],"type":"object"}},"required":["endDay","hostCharacterId","hostName","id","lastPost","lastSeq","namedOnly","participants","posts","private","recorded","startDay","title","townId","travelDays","you"],"type":"object"},"type":"array"}},"required":["currentTownId","nextPage","stories","today","yours"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"townId","in":"query","required":false,"description":"Only stories set in this town.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"page","in":"query","required":false,"description":"The page of public stories, from 0.","schema":{"default":0,"type":"integer","minimum":0,"maximum":1000}}]}},"/v1/story":{"get":{"operationId":"story","summary":"Read a story's page of posts. Without a page, it opens at your first unread post.","description":"Read a story's page of posts. Without a page, it opens at your first unread post.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"firstUnreadSeq":{"description":"The \"New since you last read\" rule goes before this post.","type":"number"},"members":{"description":"Host, participants, and named guests. A participant's look, title,\nand offices are as they were when they joined; names are current.","items":{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"},"host":{"type":"boolean"},"joined":{"type":"boolean"},"look":{"anyOf":[{"type":"null"},{"$ref":"#/components/schemas/PersonLook"}]},"named":{"type":"boolean"},"offices":{"items":{"properties":{"definitionId":{"type":"string"},"displayName":{"type":"string"},"id":{"type":"string"},"townId":{"type":["null","string"]}},"required":["definitionId","displayName","id","townId"],"type":"object"},"type":"array"},"voiceColourId":{"type":"string"}},"required":["characterId","characterName","host","joined","look","named","offices","voiceColourId"],"type":"object"},"type":"array"},"page":{"type":"number"},"pages":{"type":"number"},"perPage":{"anyOf":[{"const":20,"type":"number"},{"const":100,"type":"number"},{"const":50,"type":"number"}]},"posts":{"items":{"properties":{"authorCharacterId":{"type":"string"},"body":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"day":{"type":"number"},"editableUntil":{"anyOf":[{"type":"null"},{"format":"date-time","type":"string"}],"description":"The reader's own post, while it can still be edited."},"edited":{"type":"boolean"},"folded":{"description":"Blocked or muted: shown folded away, with Show.","type":"boolean"},"id":{"type":"string"},"removed":{"type":"boolean"},"seq":{"type":"number"}},"required":["authorCharacterId","body","createdAt","day","editableUntil","edited","folded","id","removed","seq"],"type":"object"},"type":"array"},"story":{"properties":{"endDay":{"type":"number"},"hostCharacterId":{"type":"string"},"hostName":{"type":"string"},"id":{"type":"string"},"lastPost":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"},"day":{"type":"number"}},"required":["characterId","characterName","day"],"type":"object"}]},"lastSeq":{"description":"The highest post number, removed posts included, for paging.","type":"number"},"namedOnly":{"type":"boolean"},"participants":{"description":"Everyone who has joined, host first when they have.","items":{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"}},"required":["characterId","characterName"],"type":"object"},"type":"array"},"posts":{"description":"Posts a reader can see; removed ones are not counted.","type":"number"},"private":{"type":"boolean"},"recorded":{"description":"In the town's history: someone who was there has posted.","type":"boolean"},"startDay":{"type":"number"},"title":{"type":"string"},"townId":{"type":"string"},"travelDays":{"description":"Days of road from the reader's town; 0 there, null unreachable.","type":["null","number"]},"you":{"properties":{"host":{"type":"boolean"},"joined":{"type":"boolean"},"named":{"type":"boolean"},"newPosts":{"description":"Settled posts by others since you last read; 0 when not in it.","type":"number"},"postRefusal":{"description":"Why you cannot post now, or null when you can.","type":["null","string"]}},"required":["host","joined","named","newPosts","postRefusal"],"type":"object"}},"required":["endDay","hostCharacterId","hostName","id","lastPost","lastSeq","namedOnly","participants","posts","private","recorded","startDay","title","townId","travelDays","you"],"type":"object"},"today":{"type":"number"},"voiceColours":{"items":{"$ref":"#/components/schemas/VoiceColour"},"type":"array"}},"required":["firstUnreadSeq","members","page","pages","perPage","posts","story","today","voiceColours"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"storyId","in":"query","required":true,"description":"The story's id.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"page","in":"query","required":false,"description":"The page, from 1.","schema":{"type":"integer","minimum":1,"maximum":100000}},{"name":"perPage","in":"query","required":false,"description":"Posts per page: 20, 50, or 100.","schema":{"default":20,"type":"number"}}]}},"/v1/town-stories":{"get":{"operationId":"town-stories","summary":"Read a town's newest stories and how many it has.","description":"Read a town's newest stories and how many it has.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"stories":{"description":"Its newest stories that someone who was there has written in.","items":{"properties":{"endDay":{"type":"number"},"hostCharacterId":{"type":"string"},"hostName":{"type":"string"},"id":{"type":"string"},"lastPost":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"},"day":{"type":"number"}},"required":["characterId","characterName","day"],"type":"object"}]},"lastSeq":{"description":"The highest post number, removed posts included, for paging.","type":"number"},"namedOnly":{"type":"boolean"},"participants":{"description":"Everyone who has joined, host first when they have.","items":{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"}},"required":["characterId","characterName"],"type":"object"},"type":"array"},"posts":{"description":"Posts a reader can see; removed ones are not counted.","type":"number"},"private":{"type":"boolean"},"recorded":{"description":"In the town's history: someone who was there has posted.","type":"boolean"},"startDay":{"type":"number"},"title":{"type":"string"},"townId":{"type":"string"},"travelDays":{"description":"Days of road from the reader's town; 0 there, null unreachable.","type":["null","number"]},"you":{"properties":{"host":{"type":"boolean"},"joined":{"type":"boolean"},"named":{"type":"boolean"},"newPosts":{"description":"Settled posts by others since you last read; 0 when not in it.","type":"number"},"postRefusal":{"description":"Why you cannot post now, or null when you can.","type":["null","string"]}},"required":["host","joined","named","newPosts","postRefusal"],"type":"object"}},"required":["endDay","hostCharacterId","hostName","id","lastPost","lastSeq","namedOnly","participants","posts","private","recorded","startDay","title","townId","travelDays","you"],"type":"object"},"type":"array"},"today":{"type":"number"},"total":{"description":"Every public story set there: the full list's length.","type":"number"},"townId":{"type":"string"}},"required":["stories","today","total","townId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"townId","in":"query","required":true,"description":"The town's id.","schema":{"type":"string","minLength":1,"maxLength":128}}]}},"/v1/joinable-stories":{"get":{"operationId":"joinable-stories","summary":"Find active public stories you can join in your town.","description":"Find active public stories you can join in your town.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"characterId":{"type":["null","string"]},"stories":{"items":{"$ref":"#/components/schemas/Invitation"},"type":"array"},"today":{"type":"number"},"townId":{"type":["null","string"]}},"required":["characterId","stories","today","townId"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/character-profile":{"get":{"operationId":"character-profile","summary":"Read a character's profile: portrait, title, offices, About, and stories.","description":"Read a character's profile: portrait, title, offices, About, and stories.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"about":{"type":"string"},"ai":{"type":"boolean"},"canGive":{"description":"`give-gift` and a private `post-order` can reach them today.","type":"boolean"},"canSell":{"type":"boolean"},"canWrite":{"description":"`send-letter` can reach them: a living player on another account.","type":"boolean"},"characterId":{"type":"string"},"characterName":{"type":"string"},"diedDay":{"type":["null","number"]},"homeTownId":{"type":"string"},"homeTownName":{"type":"string"},"look":{"$ref":"#/components/schemas/PersonLook","description":"Current portrait and title; never rank, household, or location."},"offices":{"items":{"properties":{"definitionId":{"type":"string"},"displayName":{"type":"string"},"id":{"type":"string"},"townId":{"type":["null","string"]}},"required":["definitionId","displayName","id","townId"],"type":"object"},"type":"array"},"own":{"description":"Your own character: the About and voice are yours to edit.","type":"boolean"},"stories":{"description":"Stories they have joined that you can see, newest first; empty in a\nworld without stories.","items":{"properties":{"endDay":{"type":"number"},"hostCharacterId":{"type":"string"},"hostName":{"type":"string"},"id":{"type":"string"},"lastPost":{"anyOf":[{"type":"null"},{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"},"day":{"type":"number"}},"required":["characterId","characterName","day"],"type":"object"}]},"lastSeq":{"description":"The highest post number, removed posts included, for paging.","type":"number"},"namedOnly":{"type":"boolean"},"participants":{"description":"Everyone who has joined, host first when they have.","items":{"properties":{"characterId":{"type":"string"},"characterName":{"type":"string"}},"required":["characterId","characterName"],"type":"object"},"type":"array"},"posts":{"description":"Posts a reader can see; removed ones are not counted.","type":"number"},"private":{"type":"boolean"},"recorded":{"description":"In the town's history: someone who was there has posted.","type":"boolean"},"startDay":{"type":"number"},"title":{"type":"string"},"townId":{"type":"string"},"travelDays":{"description":"Days of road from the reader's town; 0 there, null unreachable.","type":["null","number"]},"you":{"properties":{"host":{"type":"boolean"},"joined":{"type":"boolean"},"named":{"type":"boolean"},"newPosts":{"description":"Settled posts by others since you last read; 0 when not in it.","type":"number"},"postRefusal":{"description":"Why you cannot post now, or null when you can.","type":["null","string"]}},"required":["host","joined","named","newPosts","postRefusal"],"type":"object"}},"required":["endDay","hostCharacterId","hostName","id","lastPost","lastSeq","namedOnly","participants","posts","private","recorded","startDay","title","townId","travelDays","you"],"type":"object"},"type":"array"},"voiceColourId":{"type":"string"},"voiceColours":{"items":{"$ref":"#/components/schemas/VoiceColour"},"type":"array"}},"required":["about","ai","canGive","canSell","canWrite","characterId","characterName","diedDay","homeTownId","homeTownName","look","offices","own","stories","voiceColourId","voiceColours"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[{"name":"characterId","in":"query","required":true,"description":"The character's id.","schema":{"type":"string","minLength":1,"maxLength":128}}]}},"/v1/blocks-and-mutes":{"get":{"operationId":"blocks-and-mutes","summary":"Read the characters you have blocked or muted, which explains a refused letter, gift, or invitation. Blocks and mutes are set on the website.","description":"Read the characters you have blocked or muted, which explains a refused letter, gift, or invitation. Blocks and mutes are set on the website.\n\nA read. It changes nothing.","tags":["Social"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"properties":{"blocked":{"items":{"$ref":"#/components/schemas/Related"},"type":"array"},"muted":{"items":{"$ref":"#/components/schemas/Related"},"type":"array"}},"required":["blocked","muted"],"type":"object"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/actions":{"get":{"operationId":"actions","summary":"Read every action, whether you can take it now and why not, whether it uses today's main action, and how many more its hourly limit allows.","description":"Read every action, whether you can take it now and why not, whether it uses today's main action, and how many more its hourly limit allows.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"items":{"$ref":"#/components/schemas/PricedAction"},"type":"array"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}},"/v1/briefing":{"get":{"operationId":"briefing","summary":"Read your character in 1 call: where you are, today's main action, what you carry, the local market, open elections, the last reset's Town Crier, and your actions.","description":"Read your character in 1 call: where you are, today's main action, what you carry, the local market, open elections, the last reset's Town Crier, and your actions.\n\nA read. It changes nothing.","tags":["Reads"],"security":[{"playerKey":[]},{"oauth":["play:read"]},{"oauth":["play:act"]}],"responses":{"200":{"description":"Done. `result` holds the answer.","content":{"application/json":{"schema":{"type":"object","required":["ok","result"],"properties":{"ok":{"type":"boolean","const":true},"result":{"$ref":"#/components/schemas/Briefing"},"untrusted":{"type":"array","items":{"type":"string"},"description":"JSON Pointers into `result` of strings that players wrote."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/Unavailable"},"default":{"$ref":"#/components/responses/ServerError"}},"parameters":[]}}}}